@stellar/stellar-base
Version:
Low-level support library for the Stellar network.
1,910 lines (1,292 loc) • 416 kB
TypeScript
// Automatically generated by xdrgen on 2024-09-12T11:09:00-08:00
// DO NOT EDIT or your changes may be overwritten
import { Operation } from './index';
export {};
// Hidden namespace as hack to work around name collision.
declare namespace xdrHidden {
// tslint:disable-line:strict-export-declare-modifiers
class Operation2<T extends Operation = Operation> {
constructor(attributes: {
sourceAccount: null | xdr.MuxedAccount;
body: xdr.OperationBody;
});
sourceAccount(value?: null | xdr.MuxedAccount): null | xdr.MuxedAccount;
body(value?: xdr.OperationBody): xdr.OperationBody;
toXDR(format?: 'raw'): Buffer;
toXDR(format: 'hex' | 'base64'): string;
static read(io: Buffer): xdr.Operation;
static write(value: xdr.Operation, io: Buffer): void;
static isValid(value: xdr.Operation): boolean;
static toXDR(value: xdr.Operation): Buffer;
static fromXDR(input: Buffer, format?: 'raw'): xdr.Operation;
static fromXDR(input: string, format: 'hex' | 'base64'): xdr.Operation;
static validateXDR(input: Buffer, format?: 'raw'): boolean;
static validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
}
export namespace xdr {
export import Operation = xdrHidden.Operation2; // tslint:disable-line:strict-export-declare-modifiers
type Hash = Opaque[]; // workaround, cause unknown
/**
* Returns an {@link ScVal} with a map type and sorted entries.
*
* @param items the key-value pairs to sort.
*
* @warning This only performs "best-effort" sorting, working best when the
* keys are all either numeric or string-like.
*/
function scvSortedMap(items: ScMapEntry[]): ScVal;
interface SignedInt {
readonly MAX_VALUE: 2147483647;
readonly MIN_VALUE: -2147483648;
read(io: Buffer): number;
write(value: number, io: Buffer): void;
isValid(value: number): boolean;
toXDR(value: number): Buffer;
fromXDR(input: Buffer, format?: 'raw'): number;
fromXDR(input: string, format: 'hex' | 'base64'): number;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
interface UnsignedInt {
readonly MAX_VALUE: 4294967295;
readonly MIN_VALUE: 0;
read(io: Buffer): number;
write(value: number, io: Buffer): void;
isValid(value: number): boolean;
toXDR(value: number): Buffer;
fromXDR(input: Buffer, format?: 'raw'): number;
fromXDR(input: string, format: 'hex' | 'base64'): number;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
interface Bool {
read(io: Buffer): boolean;
write(value: boolean, io: Buffer): void;
isValid(value: boolean): boolean;
toXDR(value: boolean): Buffer;
fromXDR(input: Buffer, format?: 'raw'): boolean;
fromXDR(input: string, format: 'hex' | 'base64'): boolean;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
class Hyper {
low: number;
high: number;
unsigned: boolean;
constructor(
values: string | bigint | number | Array<string | bigint | number>,
);
toXDR(format?: 'raw'): Buffer;
toXDR(format: 'hex' | 'base64'): string;
static toXDR(value: Hyper): Buffer;
static fromXDR(input: Buffer, format?: 'raw'): Hyper;
static fromXDR(input: string, format: 'hex' | 'base64'): Hyper;
static validateXDR(input: Buffer, format?: 'raw'): boolean;
static validateXDR(input: string, format: 'hex' | 'base64'): boolean;
static readonly MAX_VALUE: Hyper;
static readonly MIN_VALUE: Hyper;
static read(io: Buffer): Hyper;
static write(value: Hyper, io: Buffer): void;
static fromString(input: string): Hyper;
static fromBytes(low: number, high: number): Hyper;
static isValid(value: Hyper): boolean;
toBigInt(): bigint;
toString(): string;
}
class UnsignedHyper {
low: number;
high: number;
unsigned: boolean;
constructor(
values: string | bigint | number | Array<string | bigint | number>,
);
toXDR(format?: 'raw'): Buffer;
toXDR(format: 'hex' | 'base64'): string;
static toXDR(value: UnsignedHyper): Buffer;
static fromXDR(input: Buffer, format?: 'raw'): UnsignedHyper;
static fromXDR(input: string, format: 'hex' | 'base64'): UnsignedHyper;
static validateXDR(input: Buffer, format?: 'raw'): boolean;
static validateXDR(input: string, format: 'hex' | 'base64'): boolean;
static readonly MAX_VALUE: UnsignedHyper;
static readonly MIN_VALUE: UnsignedHyper;
static read(io: Buffer): UnsignedHyper;
static write(value: UnsignedHyper, io: Buffer): void;
static fromString(input: string): UnsignedHyper;
static fromBytes(low: number, high: number): UnsignedHyper;
static isValid(value: UnsignedHyper): boolean;
toBigInt(): bigint;
toString(): string;
}
class XDRString {
constructor(maxLength: 4294967295);
read(io: Buffer): Buffer;
readString(io: Buffer): string;
write(value: string | Buffer, io: Buffer): void;
isValid(value: string | number[] | Buffer): boolean;
toXDR(value: string | Buffer): Buffer;
fromXDR(input: Buffer, format?: 'raw'): Buffer;
fromXDR(input: string, format: 'hex' | 'base64'): Buffer;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
class XDRArray<T> {
read(io: Buffer): Buffer;
write(value: T[], io: Buffer): void;
isValid(value: T[]): boolean;
toXDR(value: T[]): Buffer;
fromXDR(input: Buffer, format?: 'raw'): T[];
fromXDR(input: string, format: 'hex' | 'base64'): T[];
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
class Opaque {
constructor(length: number);
read(io: Buffer): Buffer;
write(value: Buffer, io: Buffer): void;
isValid(value: Buffer): boolean;
toXDR(value: Buffer): Buffer;
fromXDR(input: Buffer, format?: 'raw'): Buffer;
fromXDR(input: string, format: 'hex' | 'base64'): Buffer;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
class VarOpaque extends Opaque {}
class Option {
constructor(childType: {
read(io: any): any;
write(value: any, io: Buffer): void;
isValid(value: any): boolean;
});
read(io: Buffer): any;
write(value: any, io: Buffer): void;
isValid(value: any): boolean;
toXDR(value: any): Buffer;
fromXDR(input: Buffer, format?: 'raw'): any;
fromXDR(input: string, format: 'hex' | 'base64'): any;
validateXDR(input: Buffer, format?: 'raw'): boolean;
validateXDR(input: string, format: 'hex' | 'base64'): boolean;
}
class ScpStatementType {
readonly name:
| 'scpStPrepare'
| 'scpStConfirm'
| 'scpStExternalize'
| 'scpStNominate';
readonly value: 0 | 1 | 2 | 3;
static scpStPrepare(): ScpStatementType;
static scpStConfirm(): ScpStatementType;
static scpStExternalize(): ScpStatementType;
static scpStNominate(): ScpStatementType;
}
class AssetType {
readonly name:
| 'assetTypeNative'
| 'assetTypeCreditAlphanum4'
| 'assetTypeCreditAlphanum12'
| 'assetTypePoolShare';
readonly value: 0 | 1 | 2 | 3;
static assetTypeNative(): AssetType;
static assetTypeCreditAlphanum4(): AssetType;
static assetTypeCreditAlphanum12(): AssetType;
static assetTypePoolShare(): AssetType;
}
class ThresholdIndices {
readonly name:
| 'thresholdMasterWeight'
| 'thresholdLow'
| 'thresholdMed'
| 'thresholdHigh';
readonly value: 0 | 1 | 2 | 3;
static thresholdMasterWeight(): ThresholdIndices;
static thresholdLow(): ThresholdIndices;
static thresholdMed(): ThresholdIndices;
static thresholdHigh(): ThresholdIndices;
}
class LedgerEntryType {
readonly name:
| 'account'
| 'trustline'
| 'offer'
| 'data'
| 'claimableBalance'
| 'liquidityPool'
| 'contractData'
| 'contractCode'
| 'configSetting'
| 'ttl';
readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
static account(): LedgerEntryType;
static trustline(): LedgerEntryType;
static offer(): LedgerEntryType;
static data(): LedgerEntryType;
static claimableBalance(): LedgerEntryType;
static liquidityPool(): LedgerEntryType;
static contractData(): LedgerEntryType;
static contractCode(): LedgerEntryType;
static configSetting(): LedgerEntryType;
static ttl(): LedgerEntryType;
}
class AccountFlags {
readonly name:
| 'authRequiredFlag'
| 'authRevocableFlag'
| 'authImmutableFlag'
| 'authClawbackEnabledFlag';
readonly value: 1 | 2 | 4 | 8;
static authRequiredFlag(): AccountFlags;
static authRevocableFlag(): AccountFlags;
static authImmutableFlag(): AccountFlags;
static authClawbackEnabledFlag(): AccountFlags;
}
class TrustLineFlags {
readonly name:
| 'authorizedFlag'
| 'authorizedToMaintainLiabilitiesFlag'
| 'trustlineClawbackEnabledFlag';
readonly value: 1 | 2 | 4;
static authorizedFlag(): TrustLineFlags;
static authorizedToMaintainLiabilitiesFlag(): TrustLineFlags;
static trustlineClawbackEnabledFlag(): TrustLineFlags;
}
class LiquidityPoolType {
readonly name: 'liquidityPoolConstantProduct';
readonly value: 0;
static liquidityPoolConstantProduct(): LiquidityPoolType;
}
class OfferEntryFlags {
readonly name: 'passiveFlag';
readonly value: 1;
static passiveFlag(): OfferEntryFlags;
}
class ClaimPredicateType {
readonly name:
| 'claimPredicateUnconditional'
| 'claimPredicateAnd'
| 'claimPredicateOr'
| 'claimPredicateNot'
| 'claimPredicateBeforeAbsoluteTime'
| 'claimPredicateBeforeRelativeTime';
readonly value: 0 | 1 | 2 | 3 | 4 | 5;
static claimPredicateUnconditional(): ClaimPredicateType;
static claimPredicateAnd(): ClaimPredicateType;
static claimPredicateOr(): ClaimPredicateType;
static claimPredicateNot(): ClaimPredicateType;
static claimPredicateBeforeAbsoluteTime(): ClaimPredicateType;
static claimPredicateBeforeRelativeTime(): ClaimPredicateType;
}
class ClaimantType {
readonly name: 'claimantTypeV0';
readonly value: 0;
static claimantTypeV0(): ClaimantType;
}
class ClaimableBalanceIdType {
readonly name: 'claimableBalanceIdTypeV0';
readonly value: 0;
static claimableBalanceIdTypeV0(): ClaimableBalanceIdType;
}
class ClaimableBalanceFlags {
readonly name: 'claimableBalanceClawbackEnabledFlag';
readonly value: 1;
static claimableBalanceClawbackEnabledFlag(): ClaimableBalanceFlags;
}
class ContractDataDurability {
readonly name: 'temporary' | 'persistent';
readonly value: 0 | 1;
static temporary(): ContractDataDurability;
static persistent(): ContractDataDurability;
}
class EnvelopeType {
readonly name:
| 'envelopeTypeTxV0'
| 'envelopeTypeScp'
| 'envelopeTypeTx'
| 'envelopeTypeAuth'
| 'envelopeTypeScpvalue'
| 'envelopeTypeTxFeeBump'
| 'envelopeTypeOpId'
| 'envelopeTypePoolRevokeOpId'
| 'envelopeTypeContractId'
| 'envelopeTypeSorobanAuthorization';
readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
static envelopeTypeTxV0(): EnvelopeType;
static envelopeTypeScp(): EnvelopeType;
static envelopeTypeTx(): EnvelopeType;
static envelopeTypeAuth(): EnvelopeType;
static envelopeTypeScpvalue(): EnvelopeType;
static envelopeTypeTxFeeBump(): EnvelopeType;
static envelopeTypeOpId(): EnvelopeType;
static envelopeTypePoolRevokeOpId(): EnvelopeType;
static envelopeTypeContractId(): EnvelopeType;
static envelopeTypeSorobanAuthorization(): EnvelopeType;
}
class BucketListType {
readonly name: 'live' | 'hotArchive' | 'coldArchive';
readonly value: 0 | 1 | 2;
static live(): BucketListType;
static hotArchive(): BucketListType;
static coldArchive(): BucketListType;
}
class BucketEntryType {
readonly name: 'metaentry' | 'liveentry' | 'deadentry' | 'initentry';
readonly value: -1 | 0 | 1 | 2;
static metaentry(): BucketEntryType;
static liveentry(): BucketEntryType;
static deadentry(): BucketEntryType;
static initentry(): BucketEntryType;
}
class HotArchiveBucketEntryType {
readonly name:
| 'hotArchiveMetaentry'
| 'hotArchiveArchived'
| 'hotArchiveLive'
| 'hotArchiveDeleted';
readonly value: -1 | 0 | 1 | 2;
static hotArchiveMetaentry(): HotArchiveBucketEntryType;
static hotArchiveArchived(): HotArchiveBucketEntryType;
static hotArchiveLive(): HotArchiveBucketEntryType;
static hotArchiveDeleted(): HotArchiveBucketEntryType;
}
class ColdArchiveBucketEntryType {
readonly name:
| 'coldArchiveMetaentry'
| 'coldArchiveArchivedLeaf'
| 'coldArchiveDeletedLeaf'
| 'coldArchiveBoundaryLeaf'
| 'coldArchiveHash';
readonly value: -1 | 0 | 1 | 2 | 3;
static coldArchiveMetaentry(): ColdArchiveBucketEntryType;
static coldArchiveArchivedLeaf(): ColdArchiveBucketEntryType;
static coldArchiveDeletedLeaf(): ColdArchiveBucketEntryType;
static coldArchiveBoundaryLeaf(): ColdArchiveBucketEntryType;
static coldArchiveHash(): ColdArchiveBucketEntryType;
}
class StellarValueType {
readonly name: 'stellarValueBasic' | 'stellarValueSigned';
readonly value: 0 | 1;
static stellarValueBasic(): StellarValueType;
static stellarValueSigned(): StellarValueType;
}
class LedgerHeaderFlags {
readonly name:
| 'disableLiquidityPoolTradingFlag'
| 'disableLiquidityPoolDepositFlag'
| 'disableLiquidityPoolWithdrawalFlag';
readonly value: 1 | 2 | 4;
static disableLiquidityPoolTradingFlag(): LedgerHeaderFlags;
static disableLiquidityPoolDepositFlag(): LedgerHeaderFlags;
static disableLiquidityPoolWithdrawalFlag(): LedgerHeaderFlags;
}
class LedgerUpgradeType {
readonly name:
| 'ledgerUpgradeVersion'
| 'ledgerUpgradeBaseFee'
| 'ledgerUpgradeMaxTxSetSize'
| 'ledgerUpgradeBaseReserve'
| 'ledgerUpgradeFlags'
| 'ledgerUpgradeConfig'
| 'ledgerUpgradeMaxSorobanTxSetSize';
readonly value: 1 | 2 | 3 | 4 | 5 | 6 | 7;
static ledgerUpgradeVersion(): LedgerUpgradeType;
static ledgerUpgradeBaseFee(): LedgerUpgradeType;
static ledgerUpgradeMaxTxSetSize(): LedgerUpgradeType;
static ledgerUpgradeBaseReserve(): LedgerUpgradeType;
static ledgerUpgradeFlags(): LedgerUpgradeType;
static ledgerUpgradeConfig(): LedgerUpgradeType;
static ledgerUpgradeMaxSorobanTxSetSize(): LedgerUpgradeType;
}
class TxSetComponentType {
readonly name: 'txsetCompTxsMaybeDiscountedFee';
readonly value: 0;
static txsetCompTxsMaybeDiscountedFee(): TxSetComponentType;
}
class LedgerEntryChangeType {
readonly name:
| 'ledgerEntryCreated'
| 'ledgerEntryUpdated'
| 'ledgerEntryRemoved'
| 'ledgerEntryState';
readonly value: 0 | 1 | 2 | 3;
static ledgerEntryCreated(): LedgerEntryChangeType;
static ledgerEntryUpdated(): LedgerEntryChangeType;
static ledgerEntryRemoved(): LedgerEntryChangeType;
static ledgerEntryState(): LedgerEntryChangeType;
}
class ContractEventType {
readonly name: 'system' | 'contract' | 'diagnostic';
readonly value: 0 | 1 | 2;
static system(): ContractEventType;
static contract(): ContractEventType;
static diagnostic(): ContractEventType;
}
class ErrorCode {
readonly name: 'errMisc' | 'errData' | 'errConf' | 'errAuth' | 'errLoad';
readonly value: 0 | 1 | 2 | 3 | 4;
static errMisc(): ErrorCode;
static errData(): ErrorCode;
static errConf(): ErrorCode;
static errAuth(): ErrorCode;
static errLoad(): ErrorCode;
}
class IpAddrType {
readonly name: 'iPv4' | 'iPv6';
readonly value: 0 | 1;
static iPv4(): IpAddrType;
static iPv6(): IpAddrType;
}
class MessageType {
readonly name:
| 'errorMsg'
| 'auth'
| 'dontHave'
| 'getPeers'
| 'peers'
| 'getTxSet'
| 'txSet'
| 'generalizedTxSet'
| 'transaction'
| 'getScpQuorumset'
| 'scpQuorumset'
| 'scpMessage'
| 'getScpState'
| 'hello'
| 'surveyRequest'
| 'surveyResponse'
| 'sendMore'
| 'sendMoreExtended'
| 'floodAdvert'
| 'floodDemand'
| 'timeSlicedSurveyRequest'
| 'timeSlicedSurveyResponse'
| 'timeSlicedSurveyStartCollecting'
| 'timeSlicedSurveyStopCollecting';
readonly value:
| 0
| 2
| 3
| 4
| 5
| 6
| 7
| 17
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 20
| 18
| 19
| 21
| 22
| 23
| 24;
static errorMsg(): MessageType;
static auth(): MessageType;
static dontHave(): MessageType;
static getPeers(): MessageType;
static peers(): MessageType;
static getTxSet(): MessageType;
static txSet(): MessageType;
static generalizedTxSet(): MessageType;
static transaction(): MessageType;
static getScpQuorumset(): MessageType;
static scpQuorumset(): MessageType;
static scpMessage(): MessageType;
static getScpState(): MessageType;
static hello(): MessageType;
static surveyRequest(): MessageType;
static surveyResponse(): MessageType;
static sendMore(): MessageType;
static sendMoreExtended(): MessageType;
static floodAdvert(): MessageType;
static floodDemand(): MessageType;
static timeSlicedSurveyRequest(): MessageType;
static timeSlicedSurveyResponse(): MessageType;
static timeSlicedSurveyStartCollecting(): MessageType;
static timeSlicedSurveyStopCollecting(): MessageType;
}
class SurveyMessageCommandType {
readonly name: 'surveyTopology' | 'timeSlicedSurveyTopology';
readonly value: 0 | 1;
static surveyTopology(): SurveyMessageCommandType;
static timeSlicedSurveyTopology(): SurveyMessageCommandType;
}
class SurveyMessageResponseType {
readonly name:
| 'surveyTopologyResponseV0'
| 'surveyTopologyResponseV1'
| 'surveyTopologyResponseV2';
readonly value: 0 | 1 | 2;
static surveyTopologyResponseV0(): SurveyMessageResponseType;
static surveyTopologyResponseV1(): SurveyMessageResponseType;
static surveyTopologyResponseV2(): SurveyMessageResponseType;
}
class OperationType {
readonly name:
| 'createAccount'
| 'payment'
| 'pathPaymentStrictReceive'
| 'manageSellOffer'
| 'createPassiveSellOffer'
| 'setOptions'
| 'changeTrust'
| 'allowTrust'
| 'accountMerge'
| 'inflation'
| 'manageData'
| 'bumpSequence'
| 'manageBuyOffer'
| 'pathPaymentStrictSend'
| 'createClaimableBalance'
| 'claimClaimableBalance'
| 'beginSponsoringFutureReserves'
| 'endSponsoringFutureReserves'
| 'revokeSponsorship'
| 'clawback'
| 'clawbackClaimableBalance'
| 'setTrustLineFlags'
| 'liquidityPoolDeposit'
| 'liquidityPoolWithdraw'
| 'invokeHostFunction'
| 'extendFootprintTtl'
| 'restoreFootprint';
readonly value:
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 17
| 18
| 19
| 20
| 21
| 22
| 23
| 24
| 25
| 26;
static createAccount(): OperationType;
static payment(): OperationType;
static pathPaymentStrictReceive(): OperationType;
static manageSellOffer(): OperationType;
static createPassiveSellOffer(): OperationType;
static setOptions(): OperationType;
static changeTrust(): OperationType;
static allowTrust(): OperationType;
static accountMerge(): OperationType;
static inflation(): OperationType;
static manageData(): OperationType;
static bumpSequence(): OperationType;
static manageBuyOffer(): OperationType;
static pathPaymentStrictSend(): OperationType;
static createClaimableBalance(): OperationType;
static claimClaimableBalance(): OperationType;
static beginSponsoringFutureReserves(): OperationType;
static endSponsoringFutureReserves(): OperationType;
static revokeSponsorship(): OperationType;
static clawback(): OperationType;
static clawbackClaimableBalance(): OperationType;
static setTrustLineFlags(): OperationType;
static liquidityPoolDeposit(): OperationType;
static liquidityPoolWithdraw(): OperationType;
static invokeHostFunction(): OperationType;
static extendFootprintTtl(): OperationType;
static restoreFootprint(): OperationType;
}
class RevokeSponsorshipType {
readonly name: 'revokeSponsorshipLedgerEntry' | 'revokeSponsorshipSigner';
readonly value: 0 | 1;
static revokeSponsorshipLedgerEntry(): RevokeSponsorshipType;
static revokeSponsorshipSigner(): RevokeSponsorshipType;
}
class HostFunctionType {
readonly name:
| 'hostFunctionTypeInvokeContract'
| 'hostFunctionTypeCreateContract'
| 'hostFunctionTypeUploadContractWasm'
| 'hostFunctionTypeCreateContractV2';
readonly value: 0 | 1 | 2 | 3;
static hostFunctionTypeInvokeContract(): HostFunctionType;
static hostFunctionTypeCreateContract(): HostFunctionType;
static hostFunctionTypeUploadContractWasm(): HostFunctionType;
static hostFunctionTypeCreateContractV2(): HostFunctionType;
}
class ContractIdPreimageType {
readonly name:
| 'contractIdPreimageFromAddress'
| 'contractIdPreimageFromAsset';
readonly value: 0 | 1;
static contractIdPreimageFromAddress(): ContractIdPreimageType;
static contractIdPreimageFromAsset(): ContractIdPreimageType;
}
class SorobanAuthorizedFunctionType {
readonly name:
| 'sorobanAuthorizedFunctionTypeContractFn'
| 'sorobanAuthorizedFunctionTypeCreateContractHostFn'
| 'sorobanAuthorizedFunctionTypeCreateContractV2HostFn';
readonly value: 0 | 1 | 2;
static sorobanAuthorizedFunctionTypeContractFn(): SorobanAuthorizedFunctionType;
static sorobanAuthorizedFunctionTypeCreateContractHostFn(): SorobanAuthorizedFunctionType;
static sorobanAuthorizedFunctionTypeCreateContractV2HostFn(): SorobanAuthorizedFunctionType;
}
class SorobanCredentialsType {
readonly name:
| 'sorobanCredentialsSourceAccount'
| 'sorobanCredentialsAddress';
readonly value: 0 | 1;
static sorobanCredentialsSourceAccount(): SorobanCredentialsType;
static sorobanCredentialsAddress(): SorobanCredentialsType;
}
class MemoType {
readonly name:
| 'memoNone'
| 'memoText'
| 'memoId'
| 'memoHash'
| 'memoReturn';
readonly value: 0 | 1 | 2 | 3 | 4;
static memoNone(): MemoType;
static memoText(): MemoType;
static memoId(): MemoType;
static memoHash(): MemoType;
static memoReturn(): MemoType;
}
class PreconditionType {
readonly name: 'precondNone' | 'precondTime' | 'precondV2';
readonly value: 0 | 1 | 2;
static precondNone(): PreconditionType;
static precondTime(): PreconditionType;
static precondV2(): PreconditionType;
}
class ArchivalProofType {
readonly name: 'existence' | 'nonexistence';
readonly value: 0 | 1;
static existence(): ArchivalProofType;
static nonexistence(): ArchivalProofType;
}
class ClaimAtomType {
readonly name:
| 'claimAtomTypeV0'
| 'claimAtomTypeOrderBook'
| 'claimAtomTypeLiquidityPool';
readonly value: 0 | 1 | 2;
static claimAtomTypeV0(): ClaimAtomType;
static claimAtomTypeOrderBook(): ClaimAtomType;
static claimAtomTypeLiquidityPool(): ClaimAtomType;
}
class CreateAccountResultCode {
readonly name:
| 'createAccountSuccess'
| 'createAccountMalformed'
| 'createAccountUnderfunded'
| 'createAccountLowReserve'
| 'createAccountAlreadyExist';
readonly value: 0 | -1 | -2 | -3 | -4;
static createAccountSuccess(): CreateAccountResultCode;
static createAccountMalformed(): CreateAccountResultCode;
static createAccountUnderfunded(): CreateAccountResultCode;
static createAccountLowReserve(): CreateAccountResultCode;
static createAccountAlreadyExist(): CreateAccountResultCode;
}
class PaymentResultCode {
readonly name:
| 'paymentSuccess'
| 'paymentMalformed'
| 'paymentUnderfunded'
| 'paymentSrcNoTrust'
| 'paymentSrcNotAuthorized'
| 'paymentNoDestination'
| 'paymentNoTrust'
| 'paymentNotAuthorized'
| 'paymentLineFull'
| 'paymentNoIssuer';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9;
static paymentSuccess(): PaymentResultCode;
static paymentMalformed(): PaymentResultCode;
static paymentUnderfunded(): PaymentResultCode;
static paymentSrcNoTrust(): PaymentResultCode;
static paymentSrcNotAuthorized(): PaymentResultCode;
static paymentNoDestination(): PaymentResultCode;
static paymentNoTrust(): PaymentResultCode;
static paymentNotAuthorized(): PaymentResultCode;
static paymentLineFull(): PaymentResultCode;
static paymentNoIssuer(): PaymentResultCode;
}
class PathPaymentStrictReceiveResultCode {
readonly name:
| 'pathPaymentStrictReceiveSuccess'
| 'pathPaymentStrictReceiveMalformed'
| 'pathPaymentStrictReceiveUnderfunded'
| 'pathPaymentStrictReceiveSrcNoTrust'
| 'pathPaymentStrictReceiveSrcNotAuthorized'
| 'pathPaymentStrictReceiveNoDestination'
| 'pathPaymentStrictReceiveNoTrust'
| 'pathPaymentStrictReceiveNotAuthorized'
| 'pathPaymentStrictReceiveLineFull'
| 'pathPaymentStrictReceiveNoIssuer'
| 'pathPaymentStrictReceiveTooFewOffers'
| 'pathPaymentStrictReceiveOfferCrossSelf'
| 'pathPaymentStrictReceiveOverSendmax';
readonly value:
| 0
| -1
| -2
| -3
| -4
| -5
| -6
| -7
| -8
| -9
| -10
| -11
| -12;
static pathPaymentStrictReceiveSuccess(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveMalformed(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveUnderfunded(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveSrcNoTrust(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveSrcNotAuthorized(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveNoDestination(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveNoTrust(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveNotAuthorized(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveLineFull(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveNoIssuer(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveTooFewOffers(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveOfferCrossSelf(): PathPaymentStrictReceiveResultCode;
static pathPaymentStrictReceiveOverSendmax(): PathPaymentStrictReceiveResultCode;
}
class PathPaymentStrictSendResultCode {
readonly name:
| 'pathPaymentStrictSendSuccess'
| 'pathPaymentStrictSendMalformed'
| 'pathPaymentStrictSendUnderfunded'
| 'pathPaymentStrictSendSrcNoTrust'
| 'pathPaymentStrictSendSrcNotAuthorized'
| 'pathPaymentStrictSendNoDestination'
| 'pathPaymentStrictSendNoTrust'
| 'pathPaymentStrictSendNotAuthorized'
| 'pathPaymentStrictSendLineFull'
| 'pathPaymentStrictSendNoIssuer'
| 'pathPaymentStrictSendTooFewOffers'
| 'pathPaymentStrictSendOfferCrossSelf'
| 'pathPaymentStrictSendUnderDestmin';
readonly value:
| 0
| -1
| -2
| -3
| -4
| -5
| -6
| -7
| -8
| -9
| -10
| -11
| -12;
static pathPaymentStrictSendSuccess(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendMalformed(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendUnderfunded(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendSrcNoTrust(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendSrcNotAuthorized(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendNoDestination(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendNoTrust(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendNotAuthorized(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendLineFull(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendNoIssuer(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendTooFewOffers(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendOfferCrossSelf(): PathPaymentStrictSendResultCode;
static pathPaymentStrictSendUnderDestmin(): PathPaymentStrictSendResultCode;
}
class ManageSellOfferResultCode {
readonly name:
| 'manageSellOfferSuccess'
| 'manageSellOfferMalformed'
| 'manageSellOfferSellNoTrust'
| 'manageSellOfferBuyNoTrust'
| 'manageSellOfferSellNotAuthorized'
| 'manageSellOfferBuyNotAuthorized'
| 'manageSellOfferLineFull'
| 'manageSellOfferUnderfunded'
| 'manageSellOfferCrossSelf'
| 'manageSellOfferSellNoIssuer'
| 'manageSellOfferBuyNoIssuer'
| 'manageSellOfferNotFound'
| 'manageSellOfferLowReserve';
readonly value:
| 0
| -1
| -2
| -3
| -4
| -5
| -6
| -7
| -8
| -9
| -10
| -11
| -12;
static manageSellOfferSuccess(): ManageSellOfferResultCode;
static manageSellOfferMalformed(): ManageSellOfferResultCode;
static manageSellOfferSellNoTrust(): ManageSellOfferResultCode;
static manageSellOfferBuyNoTrust(): ManageSellOfferResultCode;
static manageSellOfferSellNotAuthorized(): ManageSellOfferResultCode;
static manageSellOfferBuyNotAuthorized(): ManageSellOfferResultCode;
static manageSellOfferLineFull(): ManageSellOfferResultCode;
static manageSellOfferUnderfunded(): ManageSellOfferResultCode;
static manageSellOfferCrossSelf(): ManageSellOfferResultCode;
static manageSellOfferSellNoIssuer(): ManageSellOfferResultCode;
static manageSellOfferBuyNoIssuer(): ManageSellOfferResultCode;
static manageSellOfferNotFound(): ManageSellOfferResultCode;
static manageSellOfferLowReserve(): ManageSellOfferResultCode;
}
class ManageOfferEffect {
readonly name:
| 'manageOfferCreated'
| 'manageOfferUpdated'
| 'manageOfferDeleted';
readonly value: 0 | 1 | 2;
static manageOfferCreated(): ManageOfferEffect;
static manageOfferUpdated(): ManageOfferEffect;
static manageOfferDeleted(): ManageOfferEffect;
}
class ManageBuyOfferResultCode {
readonly name:
| 'manageBuyOfferSuccess'
| 'manageBuyOfferMalformed'
| 'manageBuyOfferSellNoTrust'
| 'manageBuyOfferBuyNoTrust'
| 'manageBuyOfferSellNotAuthorized'
| 'manageBuyOfferBuyNotAuthorized'
| 'manageBuyOfferLineFull'
| 'manageBuyOfferUnderfunded'
| 'manageBuyOfferCrossSelf'
| 'manageBuyOfferSellNoIssuer'
| 'manageBuyOfferBuyNoIssuer'
| 'manageBuyOfferNotFound'
| 'manageBuyOfferLowReserve';
readonly value:
| 0
| -1
| -2
| -3
| -4
| -5
| -6
| -7
| -8
| -9
| -10
| -11
| -12;
static manageBuyOfferSuccess(): ManageBuyOfferResultCode;
static manageBuyOfferMalformed(): ManageBuyOfferResultCode;
static manageBuyOfferSellNoTrust(): ManageBuyOfferResultCode;
static manageBuyOfferBuyNoTrust(): ManageBuyOfferResultCode;
static manageBuyOfferSellNotAuthorized(): ManageBuyOfferResultCode;
static manageBuyOfferBuyNotAuthorized(): ManageBuyOfferResultCode;
static manageBuyOfferLineFull(): ManageBuyOfferResultCode;
static manageBuyOfferUnderfunded(): ManageBuyOfferResultCode;
static manageBuyOfferCrossSelf(): ManageBuyOfferResultCode;
static manageBuyOfferSellNoIssuer(): ManageBuyOfferResultCode;
static manageBuyOfferBuyNoIssuer(): ManageBuyOfferResultCode;
static manageBuyOfferNotFound(): ManageBuyOfferResultCode;
static manageBuyOfferLowReserve(): ManageBuyOfferResultCode;
}
class SetOptionsResultCode {
readonly name:
| 'setOptionsSuccess'
| 'setOptionsLowReserve'
| 'setOptionsTooManySigners'
| 'setOptionsBadFlags'
| 'setOptionsInvalidInflation'
| 'setOptionsCantChange'
| 'setOptionsUnknownFlag'
| 'setOptionsThresholdOutOfRange'
| 'setOptionsBadSigner'
| 'setOptionsInvalidHomeDomain'
| 'setOptionsAuthRevocableRequired';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -10;
static setOptionsSuccess(): SetOptionsResultCode;
static setOptionsLowReserve(): SetOptionsResultCode;
static setOptionsTooManySigners(): SetOptionsResultCode;
static setOptionsBadFlags(): SetOptionsResultCode;
static setOptionsInvalidInflation(): SetOptionsResultCode;
static setOptionsCantChange(): SetOptionsResultCode;
static setOptionsUnknownFlag(): SetOptionsResultCode;
static setOptionsThresholdOutOfRange(): SetOptionsResultCode;
static setOptionsBadSigner(): SetOptionsResultCode;
static setOptionsInvalidHomeDomain(): SetOptionsResultCode;
static setOptionsAuthRevocableRequired(): SetOptionsResultCode;
}
class ChangeTrustResultCode {
readonly name:
| 'changeTrustSuccess'
| 'changeTrustMalformed'
| 'changeTrustNoIssuer'
| 'changeTrustInvalidLimit'
| 'changeTrustLowReserve'
| 'changeTrustSelfNotAllowed'
| 'changeTrustTrustLineMissing'
| 'changeTrustCannotDelete'
| 'changeTrustNotAuthMaintainLiabilities';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8;
static changeTrustSuccess(): ChangeTrustResultCode;
static changeTrustMalformed(): ChangeTrustResultCode;
static changeTrustNoIssuer(): ChangeTrustResultCode;
static changeTrustInvalidLimit(): ChangeTrustResultCode;
static changeTrustLowReserve(): ChangeTrustResultCode;
static changeTrustSelfNotAllowed(): ChangeTrustResultCode;
static changeTrustTrustLineMissing(): ChangeTrustResultCode;
static changeTrustCannotDelete(): ChangeTrustResultCode;
static changeTrustNotAuthMaintainLiabilities(): ChangeTrustResultCode;
}
class AllowTrustResultCode {
readonly name:
| 'allowTrustSuccess'
| 'allowTrustMalformed'
| 'allowTrustNoTrustLine'
| 'allowTrustTrustNotRequired'
| 'allowTrustCantRevoke'
| 'allowTrustSelfNotAllowed'
| 'allowTrustLowReserve';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6;
static allowTrustSuccess(): AllowTrustResultCode;
static allowTrustMalformed(): AllowTrustResultCode;
static allowTrustNoTrustLine(): AllowTrustResultCode;
static allowTrustTrustNotRequired(): AllowTrustResultCode;
static allowTrustCantRevoke(): AllowTrustResultCode;
static allowTrustSelfNotAllowed(): AllowTrustResultCode;
static allowTrustLowReserve(): AllowTrustResultCode;
}
class AccountMergeResultCode {
readonly name:
| 'accountMergeSuccess'
| 'accountMergeMalformed'
| 'accountMergeNoAccount'
| 'accountMergeImmutableSet'
| 'accountMergeHasSubEntries'
| 'accountMergeSeqnumTooFar'
| 'accountMergeDestFull'
| 'accountMergeIsSponsor';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7;
static accountMergeSuccess(): AccountMergeResultCode;
static accountMergeMalformed(): AccountMergeResultCode;
static accountMergeNoAccount(): AccountMergeResultCode;
static accountMergeImmutableSet(): AccountMergeResultCode;
static accountMergeHasSubEntries(): AccountMergeResultCode;
static accountMergeSeqnumTooFar(): AccountMergeResultCode;
static accountMergeDestFull(): AccountMergeResultCode;
static accountMergeIsSponsor(): AccountMergeResultCode;
}
class InflationResultCode {
readonly name: 'inflationSuccess' | 'inflationNotTime';
readonly value: 0 | -1;
static inflationSuccess(): InflationResultCode;
static inflationNotTime(): InflationResultCode;
}
class ManageDataResultCode {
readonly name:
| 'manageDataSuccess'
| 'manageDataNotSupportedYet'
| 'manageDataNameNotFound'
| 'manageDataLowReserve'
| 'manageDataInvalidName';
readonly value: 0 | -1 | -2 | -3 | -4;
static manageDataSuccess(): ManageDataResultCode;
static manageDataNotSupportedYet(): ManageDataResultCode;
static manageDataNameNotFound(): ManageDataResultCode;
static manageDataLowReserve(): ManageDataResultCode;
static manageDataInvalidName(): ManageDataResultCode;
}
class BumpSequenceResultCode {
readonly name: 'bumpSequenceSuccess' | 'bumpSequenceBadSeq';
readonly value: 0 | -1;
static bumpSequenceSuccess(): BumpSequenceResultCode;
static bumpSequenceBadSeq(): BumpSequenceResultCode;
}
class CreateClaimableBalanceResultCode {
readonly name:
| 'createClaimableBalanceSuccess'
| 'createClaimableBalanceMalformed'
| 'createClaimableBalanceLowReserve'
| 'createClaimableBalanceNoTrust'
| 'createClaimableBalanceNotAuthorized'
| 'createClaimableBalanceUnderfunded';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static createClaimableBalanceSuccess(): CreateClaimableBalanceResultCode;
static createClaimableBalanceMalformed(): CreateClaimableBalanceResultCode;
static createClaimableBalanceLowReserve(): CreateClaimableBalanceResultCode;
static createClaimableBalanceNoTrust(): CreateClaimableBalanceResultCode;
static createClaimableBalanceNotAuthorized(): CreateClaimableBalanceResultCode;
static createClaimableBalanceUnderfunded(): CreateClaimableBalanceResultCode;
}
class ClaimClaimableBalanceResultCode {
readonly name:
| 'claimClaimableBalanceSuccess'
| 'claimClaimableBalanceDoesNotExist'
| 'claimClaimableBalanceCannotClaim'
| 'claimClaimableBalanceLineFull'
| 'claimClaimableBalanceNoTrust'
| 'claimClaimableBalanceNotAuthorized';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static claimClaimableBalanceSuccess(): ClaimClaimableBalanceResultCode;
static claimClaimableBalanceDoesNotExist(): ClaimClaimableBalanceResultCode;
static claimClaimableBalanceCannotClaim(): ClaimClaimableBalanceResultCode;
static claimClaimableBalanceLineFull(): ClaimClaimableBalanceResultCode;
static claimClaimableBalanceNoTrust(): ClaimClaimableBalanceResultCode;
static claimClaimableBalanceNotAuthorized(): ClaimClaimableBalanceResultCode;
}
class BeginSponsoringFutureReservesResultCode {
readonly name:
| 'beginSponsoringFutureReservesSuccess'
| 'beginSponsoringFutureReservesMalformed'
| 'beginSponsoringFutureReservesAlreadySponsored'
| 'beginSponsoringFutureReservesRecursive';
readonly value: 0 | -1 | -2 | -3;
static beginSponsoringFutureReservesSuccess(): BeginSponsoringFutureReservesResultCode;
static beginSponsoringFutureReservesMalformed(): BeginSponsoringFutureReservesResultCode;
static beginSponsoringFutureReservesAlreadySponsored(): BeginSponsoringFutureReservesResultCode;
static beginSponsoringFutureReservesRecursive(): BeginSponsoringFutureReservesResultCode;
}
class EndSponsoringFutureReservesResultCode {
readonly name:
| 'endSponsoringFutureReservesSuccess'
| 'endSponsoringFutureReservesNotSponsored';
readonly value: 0 | -1;
static endSponsoringFutureReservesSuccess(): EndSponsoringFutureReservesResultCode;
static endSponsoringFutureReservesNotSponsored(): EndSponsoringFutureReservesResultCode;
}
class RevokeSponsorshipResultCode {
readonly name:
| 'revokeSponsorshipSuccess'
| 'revokeSponsorshipDoesNotExist'
| 'revokeSponsorshipNotSponsor'
| 'revokeSponsorshipLowReserve'
| 'revokeSponsorshipOnlyTransferable'
| 'revokeSponsorshipMalformed';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static revokeSponsorshipSuccess(): RevokeSponsorshipResultCode;
static revokeSponsorshipDoesNotExist(): RevokeSponsorshipResultCode;
static revokeSponsorshipNotSponsor(): RevokeSponsorshipResultCode;
static revokeSponsorshipLowReserve(): RevokeSponsorshipResultCode;
static revokeSponsorshipOnlyTransferable(): RevokeSponsorshipResultCode;
static revokeSponsorshipMalformed(): RevokeSponsorshipResultCode;
}
class ClawbackResultCode {
readonly name:
| 'clawbackSuccess'
| 'clawbackMalformed'
| 'clawbackNotClawbackEnabled'
| 'clawbackNoTrust'
| 'clawbackUnderfunded';
readonly value: 0 | -1 | -2 | -3 | -4;
static clawbackSuccess(): ClawbackResultCode;
static clawbackMalformed(): ClawbackResultCode;
static clawbackNotClawbackEnabled(): ClawbackResultCode;
static clawbackNoTrust(): ClawbackResultCode;
static clawbackUnderfunded(): ClawbackResultCode;
}
class ClawbackClaimableBalanceResultCode {
readonly name:
| 'clawbackClaimableBalanceSuccess'
| 'clawbackClaimableBalanceDoesNotExist'
| 'clawbackClaimableBalanceNotIssuer'
| 'clawbackClaimableBalanceNotClawbackEnabled';
readonly value: 0 | -1 | -2 | -3;
static clawbackClaimableBalanceSuccess(): ClawbackClaimableBalanceResultCode;
static clawbackClaimableBalanceDoesNotExist(): ClawbackClaimableBalanceResultCode;
static clawbackClaimableBalanceNotIssuer(): ClawbackClaimableBalanceResultCode;
static clawbackClaimableBalanceNotClawbackEnabled(): ClawbackClaimableBalanceResultCode;
}
class SetTrustLineFlagsResultCode {
readonly name:
| 'setTrustLineFlagsSuccess'
| 'setTrustLineFlagsMalformed'
| 'setTrustLineFlagsNoTrustLine'
| 'setTrustLineFlagsCantRevoke'
| 'setTrustLineFlagsInvalidState'
| 'setTrustLineFlagsLowReserve';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static setTrustLineFlagsSuccess(): SetTrustLineFlagsResultCode;
static setTrustLineFlagsMalformed(): SetTrustLineFlagsResultCode;
static setTrustLineFlagsNoTrustLine(): SetTrustLineFlagsResultCode;
static setTrustLineFlagsCantRevoke(): SetTrustLineFlagsResultCode;
static setTrustLineFlagsInvalidState(): SetTrustLineFlagsResultCode;
static setTrustLineFlagsLowReserve(): SetTrustLineFlagsResultCode;
}
class LiquidityPoolDepositResultCode {
readonly name:
| 'liquidityPoolDepositSuccess'
| 'liquidityPoolDepositMalformed'
| 'liquidityPoolDepositNoTrust'
| 'liquidityPoolDepositNotAuthorized'
| 'liquidityPoolDepositUnderfunded'
| 'liquidityPoolDepositLineFull'
| 'liquidityPoolDepositBadPrice'
| 'liquidityPoolDepositPoolFull';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7;
static liquidityPoolDepositSuccess(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositMalformed(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositNoTrust(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositNotAuthorized(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositUnderfunded(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositLineFull(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositBadPrice(): LiquidityPoolDepositResultCode;
static liquidityPoolDepositPoolFull(): LiquidityPoolDepositResultCode;
}
class LiquidityPoolWithdrawResultCode {
readonly name:
| 'liquidityPoolWithdrawSuccess'
| 'liquidityPoolWithdrawMalformed'
| 'liquidityPoolWithdrawNoTrust'
| 'liquidityPoolWithdrawUnderfunded'
| 'liquidityPoolWithdrawLineFull'
| 'liquidityPoolWithdrawUnderMinimum';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static liquidityPoolWithdrawSuccess(): LiquidityPoolWithdrawResultCode;
static liquidityPoolWithdrawMalformed(): LiquidityPoolWithdrawResultCode;
static liquidityPoolWithdrawNoTrust(): LiquidityPoolWithdrawResultCode;
static liquidityPoolWithdrawUnderfunded(): LiquidityPoolWithdrawResultCode;
static liquidityPoolWithdrawLineFull(): LiquidityPoolWithdrawResultCode;
static liquidityPoolWithdrawUnderMinimum(): LiquidityPoolWithdrawResultCode;
}
class InvokeHostFunctionResultCode {
readonly name:
| 'invokeHostFunctionSuccess'
| 'invokeHostFunctionMalformed'
| 'invokeHostFunctionTrapped'
| 'invokeHostFunctionResourceLimitExceeded'
| 'invokeHostFunctionEntryArchived'
| 'invokeHostFunctionInsufficientRefundableFee';
readonly value: 0 | -1 | -2 | -3 | -4 | -5;
static invokeHostFunctionSuccess(): InvokeHostFunctionResultCode;
static invokeHostFunctionMalformed(): InvokeHostFunctionResultCode;
static invokeHostFunctionTrapped(): InvokeHostFunctionResultCode;
static invokeHostFunctionResourceLimitExceeded(): InvokeHostFunctionResultCode;
static invokeHostFunctionEntryArchived(): InvokeHostFunctionResultCode;
static invokeHostFunctionInsufficientRefundableFee(): InvokeHostFunctionResultCode;
}
class ExtendFootprintTtlResultCode {
readonly name:
| 'extendFootprintTtlSuccess'
| 'extendFootprintTtlMalformed'
| 'extendFootprintTtlResourceLimitExceeded'
| 'extendFootprintTtlInsufficientRefundableFee';
readonly value: 0 | -1 | -2 | -3;
static extendFootprintTtlSuccess(): ExtendFootprintTtlResultCode;
static extendFootprintTtlMalformed(): ExtendFootprintTtlResultCode;
static extendFootprintTtlResourceLimitExceeded(): ExtendFootprintTtlResultCode;
static extendFootprintTtlInsufficientRefundableFee(): ExtendFootprintTtlResultCode;
}
class RestoreFootprintResultCode {
readonly name:
| 'restoreFootprintSuccess'
| 'restoreFootprintMalformed'
| 'restoreFootprintResourceLimitExceeded'
| 'restoreFootprintInsufficientRefundableFee';
readonly value: 0 | -1 | -2 | -3;
static restoreFootprintSuccess(): RestoreFootprintResultCode;
static restoreFootprintMalformed(): RestoreFootprintResultCode;
static restoreFootprintResourceLimitExceeded(): RestoreFootprintResultCode;
static restoreFootprintInsufficientRefundableFee(): RestoreFootprintResultCode;
}
class OperationResultCode {
readonly name:
| 'opInner'
| 'opBadAuth'
| 'opNoAccount'
| 'opNotSupported'
| 'opTooManySubentries'
| 'opExceededWorkLimit'
| 'opTooManySponsoring';
readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6;
static opInner(): OperationResultCode;
static opBadAuth(): OperationResultCode;
static opNoAccount(): OperationResultCode;
static opNotSupported(): OperationResultCode;
static opTooManySubentries(): OperationResultCode;
static opExceededWorkLimit(): OperationResultCode;
static opTooManySponsoring(): OperationResultCode;
}
class TransactionResultCode {
readonly name:
| 'txFeeBumpInnerSuccess'
| 'txSuccess'
| 'txFailed'
| 'txTooEarly'
| 'txTooLate'
| 'txMissingOperation'
| 'txBadSeq'
| 'txBadAuth'
| 'txInsufficientBalance'
| 'txNoAccount'
| 'txInsufficientFee'
| 'txBadAuthExtra'
| 'txInternalError'
| 'txNotSupported'
| 'txFeeBumpInnerFailed'
| 'txBadSponsorship'
| 'txBadMinSeqAgeOrGap'
| 'txMalformed'
| 'txSorobanInvalid';
readonly value:
| 1
| 0
| -1
| -2
| -3
| -4
| -5
| -6
| -7
| -8
| -9
| -10
| -11
| -12
| -13
| -14
| -15
| -16
| -17;
static txFeeBumpInnerSuccess(): TransactionResultCode;
static txSuccess(): TransactionResultCode;
static txFailed(): TransactionResultCode;
static txTooEarly(): TransactionResultCode;
static txTooLate(): TransactionResultCode;
static txMissingOperation(): TransactionResultCode;
static txBadSeq(): TransactionResultCode;
static txBadAuth(): TransactionResultCode;
static txInsufficientBalance(): TransactionResultCode;
static txNoAccount(): TransactionResultCode;
static txInsufficientFee(): TransactionResultCode;
static txBadAuthExtra(): TransactionResultCode;
static txInternalError(): TransactionResultCode;
static txNotSupported(): TransactionResultCode;
static txFeeBumpInnerFailed(): TransactionResultCode;
static txBadSponsorship(): TransactionResultCode;
static txBadMinSeqAgeOrGap(): TransactionResultCode;
static txMalformed(): TransactionResultCode;
static txSorobanInvalid(): TransactionResultCode;
}
class Crypto