From 26198dcdd9ffc3eefc80a379260c0a25737ee85f Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 May 2025 12:48:32 -0700 Subject: [PATCH 1/4] 1. Run the generator: Change the commit hash to the right sha of stellar/stellar-xdr. Add any new filenames (if needed: here Stellar-exporter.x for Galexie). Run `make reset-xdr` from the project root. --- Makefile | 10 +- src/generated/curr_generated.js | 1515 ++--- src/generated/next_generated.js | 1504 ++--- types/curr.d.ts | 6673 ++++++++++---------- types/next.d.ts | 6579 ++++++++++--------- xdr/curr/Stellar-contract-config-setting.x | 92 +- xdr/curr/Stellar-contract-spec.x | 38 +- xdr/curr/Stellar-contract.x | 24 +- xdr/curr/Stellar-exporter.x | 23 + xdr/curr/Stellar-ledger-entries.x | 69 +- xdr/curr/Stellar-ledger.x | 156 +- xdr/curr/Stellar-overlay.x | 58 +- xdr/curr/Stellar-transaction.x | 73 +- xdr/curr/Stellar-types.x | 15 + xdr/next/Stellar-contract-config-setting.x | 91 +- xdr/next/Stellar-contract-spec.x | 38 +- xdr/next/Stellar-contract.x | 24 +- xdr/next/Stellar-exporter.x | 23 + xdr/next/Stellar-ledger-entries.x | 67 +- xdr/next/Stellar-ledger.x | 149 +- xdr/next/Stellar-overlay.x | 58 +- xdr/next/Stellar-transaction.x | 67 +- xdr/next/Stellar-types.x | 17 +- 23 files changed, 8904 insertions(+), 8459 deletions(-) create mode 100644 xdr/curr/Stellar-exporter.x create mode 100644 xdr/next/Stellar-exporter.x diff --git a/Makefile b/Makefile index 85313fdd..213be4ec 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -XDR_BASE_URL_CURR=https://github.com/stellar/stellar-xdr/raw/529d5176f24c73eeccfa5eba481d4e89c19b1181 +XDR_BASE_URL_CURR=https://github.com/stellar/stellar-xdr/raw/4b7a2ef7931ab2ca2499be68d849f38190b443ca XDR_BASE_LOCAL_CURR=xdr/curr XDR_FILES_CURR= \ Stellar-SCP.x \ @@ -11,10 +11,11 @@ XDR_FILES_CURR= \ Stellar-contract-env-meta.x \ Stellar-contract-meta.x \ Stellar-contract-spec.x \ - Stellar-contract-config-setting.x + Stellar-contract-config-setting.x \ + Stellar-exporter.x XDR_FILES_LOCAL_CURR=$(addprefix xdr/curr/,$(XDR_FILES_CURR)) -XDR_BASE_URL_NEXT=https://github.com/stellar/stellar-xdr/raw/8c88608d0a20b01873056a5ec13be245e1f2aa27 +XDR_BASE_URL_NEXT=https://github.com/stellar/stellar-xdr/raw/4b7a2ef7931ab2ca2499be68d849f38190b443ca XDR_BASE_LOCAL_NEXT=xdr/next XDR_FILES_NEXT= \ Stellar-SCP.x \ @@ -27,7 +28,8 @@ XDR_FILES_NEXT= \ Stellar-contract-env-meta.x \ Stellar-contract-meta.x \ Stellar-contract-spec.x \ - Stellar-contract-config-setting.x + Stellar-contract-config-setting.x \ + Stellar-exporter.x XDR_FILES_LOCAL_NEXT=$(addprefix xdr/next/,$(XDR_FILES_NEXT)) XDRGEN_COMMIT=master diff --git a/src/generated/curr_generated.js b/src/generated/curr_generated.js index db4b4f40..803a0094 100644 --- a/src/generated/curr_generated.js +++ b/src/generated/curr_generated.js @@ -1,4 +1,4 @@ -// Automatically generated by xdrgen on 2024-09-12T11:09:00-08:00 +// Automatically generated by xdrgen // DO NOT EDIT or your changes may be overwritten /* jshint maxstatements:2147483647 */ @@ -8,12 +8,6 @@ import * as XDR from '@stellar/js-xdr'; var types = XDR.config(xdr => { -// Workaround for https://github.com/stellar/xdrgen/issues/152 -// -// The "correct" way would be to replace bare instances of each constant with -// xdr.lookup("..."), but that's more error-prone. -const SCSYMBOL_LIMIT = 32; -const SC_SPEC_DOC_LIMIT = 1024; // === xdr source ============================================================ // @@ -186,7 +180,7 @@ xdr.union("ScpStatementPledges", { // { // NodeID nodeID; // v // uint64 slotIndex; // i -// +// // union switch (SCPStatementType type) // { // case SCP_ST_PREPARE: @@ -293,13 +287,6 @@ xdr.typedef("SequenceNumber", xdr.lookup("Int64")); // =========================================================================== xdr.typedef("DataValue", xdr.varOpaque(64)); -// === xdr source ============================================================ -// -// typedef Hash PoolID; -// -// =========================================================================== -xdr.typedef("PoolId", xdr.lookup("Hash")); - // === xdr source ============================================================ // // typedef opaque AssetCode4[4]; @@ -338,10 +325,10 @@ xdr.enum("AssetType", { // { // case ASSET_TYPE_CREDIT_ALPHANUM4: // AssetCode4 assetCode4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AssetCode12 assetCode12; -// +// // // add other asset types here in the future // }; // @@ -393,13 +380,13 @@ xdr.struct("AlphaNum12", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // // add other asset types here in the future // }; // @@ -512,7 +499,7 @@ xdr.struct("Signer", [ // // enum AccountFlags // { // masks for each flag -// +// // // Flags set on issuer accounts // // TrustLines are created with authorized set to "false" requiring // // the issuer to set it for each TrustLine @@ -571,10 +558,10 @@ xdr.typedef("SponsorshipDescriptor", xdr.option(xdr.lookup("AccountId"))); // // We can use this to add more fields, or because it is first, to // // change AccountEntryExtensionV3 into a union. // ExtensionPoint ext; -// +// // // Ledger number at which `seqNum` took on its present value. // uint32 seqLedger; -// +// // // Time at which `seqNum` took on its present value. // TimePoint seqTime; // }; @@ -616,7 +603,7 @@ xdr.union("AccountEntryExtensionV2Ext", { // uint32 numSponsored; // uint32 numSponsoring; // SponsorshipDescriptor signerSponsoringIDs; -// +// // union switch (int v) // { // case 0: @@ -663,7 +650,7 @@ xdr.union("AccountEntryExtensionV1Ext", { // struct AccountEntryExtensionV1 // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -714,15 +701,15 @@ xdr.union("AccountEntryExt", { // // drives the reserve // AccountID* inflationDest; // Account to vote for during inflation // uint32 flags; // see AccountFlags -// +// // string32 homeDomain; // can be used for reverse federation and memo lookup -// +// // // fields used for signatures // // thresholds stores unsigned bytes: [weight of master|low|medium|high] // Thresholds thresholds; -// +// // Signer signers; // possible signers for this account -// +// // // reserved for future use // union switch (int v) // { @@ -808,16 +795,16 @@ xdr.enum("LiquidityPoolType", { // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // PoolID liquidityPoolID; -// +// // // add other asset types here in the future // }; // @@ -862,7 +849,7 @@ xdr.union("TrustLineEntryExtensionV2Ext", { // struct TrustLineEntryExtensionV2 // { // int32 liquidityPoolUseCount; -// +// // union switch (int v) // { // case 0: @@ -905,7 +892,7 @@ xdr.union("TrustLineEntryV1Ext", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -932,7 +919,7 @@ xdr.struct("TrustLineEntryV1", [ // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -965,10 +952,10 @@ xdr.union("TrustLineEntryExt", { // TrustLineAsset asset; // type of asset (with issuer) // int64 balance; // how much of this asset the user has. // // Asset defines the unit for this; -// +// // int64 limit; // balance cannot be above this // uint32 flags; // see TrustLineFlags -// +// // // reserved for future use // union switch (int v) // { @@ -978,7 +965,7 @@ xdr.union("TrustLineEntryExt", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -1051,7 +1038,7 @@ xdr.union("OfferEntryExt", { // Asset selling; // A // Asset buying; // B // int64 amount; // amount of A -// +// // /* price for this offer: // price of A in terms of B // price=AmountB/AmountA=priceNumerator/priceDenominator @@ -1059,7 +1046,7 @@ xdr.union("OfferEntryExt", { // */ // Price price; // uint32 flags; // see OfferEntryFlags -// +// // // reserved for future use // union switch (int v) // { @@ -1107,7 +1094,7 @@ xdr.union("DataEntryExt", { // AccountID accountID; // account this data belongs to // string64 dataName; // DataValue dataValue; -// +// // // reserved for future use // union switch (int v) // { @@ -1237,38 +1224,6 @@ xdr.union("Claimant", { }, }); -// === xdr source ============================================================ -// -// enum ClaimableBalanceIDType -// { -// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -// }; -// -// =========================================================================== -xdr.enum("ClaimableBalanceIdType", { - claimableBalanceIdTypeV0: 0, -}); - -// === xdr source ============================================================ -// -// union ClaimableBalanceID switch (ClaimableBalanceIDType type) -// { -// case CLAIMABLE_BALANCE_ID_TYPE_V0: -// Hash v0; -// }; -// -// =========================================================================== -xdr.union("ClaimableBalanceId", { - switchOn: xdr.lookup("ClaimableBalanceIdType"), - switchName: "type", - switches: [ - ["claimableBalanceIdTypeV0", "v0"], - ], - arms: { - v0: xdr.lookup("Hash"), - }, -}); - // === xdr source ============================================================ // // enum ClaimableBalanceFlags @@ -1319,7 +1274,7 @@ xdr.union("ClaimableBalanceEntryExtensionV1Ext", { // void; // } // ext; -// +// // uint32 flags; // see ClaimableBalanceFlags // }; // @@ -1358,16 +1313,16 @@ xdr.union("ClaimableBalanceEntryExt", { // { // // Unique identifier for this ClaimableBalanceEntry // ClaimableBalanceID balanceID; -// +// // // List of claimants with associated predicate // Claimant claimants<10>; -// +// // // Any asset including native // Asset asset; -// +// // // Amount of asset // int64 amount; -// +// // // reserved for future use // union switch (int v) // { @@ -1409,7 +1364,7 @@ xdr.struct("LiquidityPoolConstantProductParameters", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1434,7 +1389,7 @@ xdr.struct("LiquidityPoolEntryConstantProduct", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1460,14 +1415,14 @@ xdr.union("LiquidityPoolEntryBody", { // struct LiquidityPoolEntry // { // PoolID liquidityPoolID; -// +// // union switch (LiquidityPoolType type) // { // case LIQUIDITY_POOL_CONSTANT_PRODUCT: // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1501,7 +1456,7 @@ xdr.enum("ContractDataDurability", { // // struct ContractDataEntry { // ExtensionPoint ext; -// +// // SCAddress contract; // SCVal key; // ContractDataDurability durability; @@ -1603,7 +1558,7 @@ xdr.union("ContractCodeEntryExt", { // ContractCodeCostInputs costInputs; // } v1; // } ext; -// +// // Hash hash; // opaque code<>; // }; @@ -1653,7 +1608,7 @@ xdr.union("LedgerEntryExtensionV1Ext", { // struct LedgerEntryExtensionV1 // { // SponsorshipDescriptor sponsoringID; -// +// // union switch (int v) // { // case 0: @@ -1752,7 +1707,7 @@ xdr.union("LedgerEntryExt", { // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed -// +// // union switch (LedgerEntryType type) // { // case ACCOUNT: @@ -1777,7 +1732,7 @@ xdr.union("LedgerEntryExt", { // TTLEntry ttl; // } // data; -// +// // // reserved for future use // union switch (int v) // { @@ -1936,34 +1891,34 @@ xdr.struct("LedgerKeyTtl", [ // { // AccountID accountID; // } account; -// +// // case TRUSTLINE: // struct // { // AccountID accountID; // TrustLineAsset asset; // } trustLine; -// +// // case OFFER: // struct // { // AccountID sellerID; // int64 offerID; // } offer; -// +// // case DATA: // struct // { // AccountID accountID; // string64 dataName; // } data; -// +// // case CLAIMABLE_BALANCE: // struct // { // ClaimableBalanceID balanceID; // } claimableBalance; -// +// // case LIQUIDITY_POOL: // struct // { @@ -2059,15 +2014,13 @@ xdr.enum("EnvelopeType", { // enum BucketListType // { // LIVE = 0, -// HOT_ARCHIVE = 1, -// COLD_ARCHIVE = 2 +// HOT_ARCHIVE = 1 // }; // // =========================================================================== xdr.enum("BucketListType", { live: 0, hotArchive: 1, - coldArchive: 2, }); // === xdr source ============================================================ @@ -2096,10 +2049,9 @@ xdr.enum("BucketEntryType", { // { // HOT_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. // HOT_ARCHIVE_ARCHIVED = 0, // Entry is Archived -// HOT_ARCHIVE_LIVE = 1, // Entry was previously HOT_ARCHIVE_ARCHIVED, or HOT_ARCHIVE_DELETED, but +// HOT_ARCHIVE_LIVE = 1 // Entry was previously HOT_ARCHIVE_ARCHIVED, but // // has been added back to the live BucketList. // // Does not need to be persisted. -// HOT_ARCHIVE_DELETED = 2 // Entry deleted (Note: must be persisted in archive) // }; // // =========================================================================== @@ -2107,27 +2059,6 @@ xdr.enum("HotArchiveBucketEntryType", { hotArchiveMetaentry: -1, hotArchiveArchived: 0, hotArchiveLive: 1, - hotArchiveDeleted: 2, -}); - -// === xdr source ============================================================ -// -// enum ColdArchiveBucketEntryType -// { -// COLD_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. -// COLD_ARCHIVE_ARCHIVED_LEAF = 0, // Full LedgerEntry that was archived during the epoch -// COLD_ARCHIVE_DELETED_LEAF = 1, // LedgerKey that was deleted during the epoch -// COLD_ARCHIVE_BOUNDARY_LEAF = 2, // Dummy leaf representing low/high bound -// COLD_ARCHIVE_HASH = 3 // Intermediary Merkle hash entry -// }; -// -// =========================================================================== -xdr.enum("ColdArchiveBucketEntryType", { - coldArchiveMetaentry: -1, - coldArchiveArchivedLeaf: 0, - coldArchiveDeletedLeaf: 1, - coldArchiveBoundaryLeaf: 2, - coldArchiveHash: 3, }); // === xdr source ============================================================ @@ -2159,7 +2090,7 @@ xdr.union("BucketMetadataExt", { // { // // Indicates the protocol version used to create / merge this bucket. // uint32 ledgerVersion; -// +// // // reserved for future use // union switch (int v) // { @@ -2184,7 +2115,7 @@ xdr.struct("BucketMetadata", [ // case LIVEENTRY: // case INITENTRY: // LedgerEntry liveEntry; -// +// // case DEADENTRY: // LedgerKey deadEntry; // case METAENTRY: @@ -2214,9 +2145,8 @@ xdr.union("BucketEntry", { // { // case HOT_ARCHIVE_ARCHIVED: // LedgerEntry archivedEntry; -// +// // case HOT_ARCHIVE_LIVE: -// case HOT_ARCHIVE_DELETED: // LedgerKey key; // case HOT_ARCHIVE_METAENTRY: // BucketMetadata metaEntry; @@ -2229,7 +2159,6 @@ xdr.union("HotArchiveBucketEntry", { switches: [ ["hotArchiveArchived", "archivedEntry"], ["hotArchiveLive", "key"], - ["hotArchiveDeleted", "key"], ["hotArchiveMetaentry", "metaEntry"], ], arms: { @@ -2239,100 +2168,6 @@ xdr.union("HotArchiveBucketEntry", { }, }); -// === xdr source ============================================================ -// -// struct ColdArchiveArchivedLeaf -// { -// uint32 index; -// LedgerEntry archivedEntry; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveArchivedLeaf", [ - ["index", xdr.lookup("Uint32")], - ["archivedEntry", xdr.lookup("LedgerEntry")], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveDeletedLeaf -// { -// uint32 index; -// LedgerKey deletedKey; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveDeletedLeaf", [ - ["index", xdr.lookup("Uint32")], - ["deletedKey", xdr.lookup("LedgerKey")], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveBoundaryLeaf -// { -// uint32 index; -// bool isLowerBound; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveBoundaryLeaf", [ - ["index", xdr.lookup("Uint32")], - ["isLowerBound", xdr.bool()], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveHashEntry -// { -// uint32 index; -// uint32 level; -// Hash hash; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveHashEntry", [ - ["index", xdr.lookup("Uint32")], - ["level", xdr.lookup("Uint32")], - ["hash", xdr.lookup("Hash")], -]); - -// === xdr source ============================================================ -// -// union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) -// { -// case COLD_ARCHIVE_METAENTRY: -// BucketMetadata metaEntry; -// case COLD_ARCHIVE_ARCHIVED_LEAF: -// ColdArchiveArchivedLeaf archivedLeaf; -// case COLD_ARCHIVE_DELETED_LEAF: -// ColdArchiveDeletedLeaf deletedLeaf; -// case COLD_ARCHIVE_BOUNDARY_LEAF: -// ColdArchiveBoundaryLeaf boundaryLeaf; -// case COLD_ARCHIVE_HASH: -// ColdArchiveHashEntry hashEntry; -// }; -// -// =========================================================================== -xdr.union("ColdArchiveBucketEntry", { - switchOn: xdr.lookup("ColdArchiveBucketEntryType"), - switchName: "type", - switches: [ - ["coldArchiveMetaentry", "metaEntry"], - ["coldArchiveArchivedLeaf", "archivedLeaf"], - ["coldArchiveDeletedLeaf", "deletedLeaf"], - ["coldArchiveBoundaryLeaf", "boundaryLeaf"], - ["coldArchiveHash", "hashEntry"], - ], - arms: { - metaEntry: xdr.lookup("BucketMetadata"), - archivedLeaf: xdr.lookup("ColdArchiveArchivedLeaf"), - deletedLeaf: xdr.lookup("ColdArchiveDeletedLeaf"), - boundaryLeaf: xdr.lookup("ColdArchiveBoundaryLeaf"), - hashEntry: xdr.lookup("ColdArchiveHashEntry"), - }, -}); - // === xdr source ============================================================ // // typedef opaque UpgradeType<128>; @@ -2397,14 +2232,14 @@ xdr.union("StellarValueExt", { // { // Hash txSetHash; // transaction set to apply to previous ledger // TimePoint closeTime; // network close time -// +// // // upgrades to apply to the previous ledger (usually empty) // // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop // // unknown steps during consensus if needed. // // see notes below on 'LedgerUpgrade' for more detail // // max size is dictated by number of upgrade types (+ room for future) // UpgradeType upgrades<6>; -// +// // // reserved for future use // union switch (StellarValueType v) // { @@ -2471,7 +2306,7 @@ xdr.union("LedgerHeaderExtensionV1Ext", { // struct LedgerHeaderExtensionV1 // { // uint32 flags; // LedgerHeaderFlags -// +// // union switch (int v) // { // case 0: @@ -2518,28 +2353,28 @@ xdr.union("LedgerHeaderExt", { // StellarValue scpValue; // what consensus agreed to // Hash txSetResultHash; // the TransactionResultSet that led to this ledger // Hash bucketListHash; // hash of the ledger state -// +// // uint32 ledgerSeq; // sequence number of this ledger -// +// // int64 totalCoins; // total number of stroops in existence. // // 10,000,000 stroops in 1 XLM -// +// // int64 feePool; // fees burned since last inflation run // uint32 inflationSeq; // inflation sequence number -// +// // uint64 idPool; // last used global ID, used for generating objects -// +// // uint32 baseFee; // base fee per operation in stroops // uint32 baseReserve; // account base reserve in stroops -// +// // uint32 maxTxSetSize; // maximum size a transaction set can be -// +// // Hash skipList[4]; // hashes of ledgers in the past. allows you to jump back // // in time without walking the chain back ledger by ledger // // each slot contains the oldest ledger that is mod of // // either 50 5000 50000 or 500000 depending on index // // skipList[0] mod(50), skipList[1] mod(5000), etc -// +// // // reserved for future use // union switch (int v) // { @@ -2597,13 +2432,13 @@ xdr.enum("LedgerUpgradeType", { // === xdr source ============================================================ // // struct ConfigUpgradeSetKey { -// Hash contractID; +// ContractID contractID; // Hash contentHash; // }; // // =========================================================================== xdr.struct("ConfigUpgradeSetKey", [ - ["contractId", xdr.lookup("Hash")], + ["contractId", xdr.lookup("ContractId")], ["contentHash", xdr.lookup("Hash")], ]); @@ -2679,6 +2514,37 @@ xdr.enum("TxSetComponentType", { txsetCompTxsMaybeDiscountedFee: 0, }); +// === xdr source ============================================================ +// +// typedef TransactionEnvelope DependentTxCluster<>; +// +// =========================================================================== +xdr.typedef("DependentTxCluster", xdr.varArray(xdr.lookup("TransactionEnvelope"), 2147483647)); + +// === xdr source ============================================================ +// +// typedef DependentTxCluster ParallelTxExecutionStage<>; +// +// =========================================================================== +xdr.typedef("ParallelTxExecutionStage", xdr.varArray(xdr.lookup("DependentTxCluster"), 2147483647)); + +// === xdr source ============================================================ +// +// struct ParallelTxsComponent +// { +// int64* baseFee; +// // A sequence of stages that *may* have arbitrary data dependencies between +// // each other, i.e. in a general case the stage execution order may not be +// // arbitrarily shuffled without affecting the end result. +// ParallelTxExecutionStage executionStages<>; +// }; +// +// =========================================================================== +xdr.struct("ParallelTxsComponent", [ + ["baseFee", xdr.option(xdr.lookup("Int64"))], + ["executionStages", xdr.varArray(xdr.lookup("ParallelTxExecutionStage"), 2147483647)], +]); + // === xdr source ============================================================ // // struct @@ -2723,6 +2589,8 @@ xdr.union("TxSetComponent", { // { // case 0: // TxSetComponent v0Components<>; +// case 1: +// ParallelTxsComponent parallelTxsComponent; // }; // // =========================================================================== @@ -2731,9 +2599,11 @@ xdr.union("TransactionPhase", { switchName: "v", switches: [ [0, "v0Components"], + [1, "parallelTxsComponent"], ], arms: { v0Components: xdr.varArray(xdr.lookup("TxSetComponent"), 2147483647), + parallelTxsComponent: xdr.lookup("ParallelTxsComponent"), }, }); @@ -2841,7 +2711,7 @@ xdr.union("TransactionHistoryEntryExt", { // { // uint32 ledgerSeq; // TransactionSet txSet; -// +// // // when v != 0, txSet must be empty // union switch (int v) // { @@ -2885,7 +2755,7 @@ xdr.union("TransactionHistoryResultEntryExt", { // { // uint32 ledgerSeq; // TransactionResultSet txResultSet; -// +// // // reserved for future use // union switch (int v) // { @@ -2927,7 +2797,7 @@ xdr.union("LedgerHeaderHistoryEntryExt", { // { // Hash hash; // LedgerHeader header; -// +// // // reserved for future use // union switch (int v) // { @@ -2999,7 +2869,8 @@ xdr.union("ScpHistoryEntry", { // LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger // LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger // LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger -// LEDGER_ENTRY_STATE = 3 // value of the entry +// LEDGER_ENTRY_STATE = 3, // value of the entry +// LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger // }; // // =========================================================================== @@ -3008,6 +2879,7 @@ xdr.enum("LedgerEntryChangeType", { ledgerEntryUpdated: 1, ledgerEntryRemoved: 2, ledgerEntryState: 3, + ledgerEntryRestored: 4, }); // === xdr source ============================================================ @@ -3022,6 +2894,8 @@ xdr.enum("LedgerEntryChangeType", { // LedgerKey removed; // case LEDGER_ENTRY_STATE: // LedgerEntry state; +// case LEDGER_ENTRY_RESTORED: +// LedgerEntry restored; // }; // // =========================================================================== @@ -3033,12 +2907,14 @@ xdr.union("LedgerEntryChange", { ["ledgerEntryUpdated", "updated"], ["ledgerEntryRemoved", "removed"], ["ledgerEntryState", "state"], + ["ledgerEntryRestored", "restored"], ], arms: { created: xdr.lookup("LedgerEntry"), updated: xdr.lookup("LedgerEntry"), removed: xdr.lookup("LedgerKey"), state: xdr.lookup("LedgerEntry"), + restored: xdr.lookup("LedgerEntry"), }, }); @@ -3154,10 +3030,10 @@ xdr.union("ContractEventBody", { // // We can use this to add more fields, or because it // // is first, to change ContractEvent into a union. // ExtensionPoint ext; -// -// Hash* contractID; +// +// ContractID* contractID; // ContractEventType type; -// +// // union switch (int v) // { // case 0: @@ -3173,7 +3049,7 @@ xdr.union("ContractEventBody", { // =========================================================================== xdr.struct("ContractEvent", [ ["ext", xdr.lookup("ExtensionPoint")], - ["contractId", xdr.option(xdr.lookup("Hash"))], + ["contractId", xdr.option(xdr.lookup("ContractId"))], ["type", xdr.lookup("ContractEventType")], ["body", xdr.lookup("ContractEventBody")], ]); @@ -3192,34 +3068,27 @@ xdr.struct("DiagnosticEvent", [ ["event", xdr.lookup("ContractEvent")], ]); -// === xdr source ============================================================ -// -// typedef DiagnosticEvent DiagnosticEvents<>; -// -// =========================================================================== -xdr.typedef("DiagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)); - // === xdr source ============================================================ // // struct SorobanTransactionMetaExtV1 // { // ExtensionPoint ext; -// +// // // The following are the components of the overall Soroban resource fee // // charged for the transaction. // // The following relation holds: // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged` -// // where `resourceFeeCharged` is the overall fee charged for the -// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` +// // where `resourceFeeCharged` is the overall fee charged for the +// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` // // i.e.we never charge more than the declared resource fee. -// // The inclusion fee for charged the Soroban transaction can be found using +// // The inclusion fee for charged the Soroban transaction can be found using // // the following equation: // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`. -// +// // // Total amount (in stroops) that has been charged for non-refundable // // Soroban resources. // // Non-refundable resources are charged based on the usage declared in -// // the transaction envelope (such as `instructions`, `readBytes` etc.) and +// // the transaction envelope (such as `instructions`, `readBytes` etc.) and // // is charged regardless of the success of the transaction. // int64 totalNonRefundableResourceFeeCharged; // // Total amount (in stroops) that has been charged for refundable @@ -3268,14 +3137,14 @@ xdr.union("SorobanTransactionMetaExt", { // === xdr source ============================================================ // -// struct SorobanTransactionMeta +// struct SorobanTransactionMeta // { // SorobanTransactionMetaExt ext; -// +// // ContractEvent events<>; // custom events populated by the // // contracts themselves. // SCVal returnValue; // return value of the host fn invocation -// +// // // Diagnostics events that are not hashed. // // This will contain all contract and diagnostic events. Even ones // // that were emitted in a failed contract call. @@ -3295,13 +3164,13 @@ xdr.struct("SorobanTransactionMeta", [ // struct TransactionMetaV3 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMeta operations<>; // meta for each operation // LedgerEntryChanges txChangesAfter; // tx level changes after operations are // // applied if any -// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for +// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). // }; // @@ -3314,6 +3183,102 @@ xdr.struct("TransactionMetaV3", [ ["sorobanMeta", xdr.option(xdr.lookup("SorobanTransactionMeta"))], ]); +// === xdr source ============================================================ +// +// struct OperationMetaV2 +// { +// ExtensionPoint ext; +// +// LedgerEntryChanges changes; +// +// ContractEvent events<>; +// }; +// +// =========================================================================== +xdr.struct("OperationMetaV2", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["changes", xdr.lookup("LedgerEntryChanges")], + ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], +]); + +// === xdr source ============================================================ +// +// struct SorobanTransactionMetaV2 +// { +// SorobanTransactionMetaExt ext; +// +// SCVal* returnValue; +// }; +// +// =========================================================================== +xdr.struct("SorobanTransactionMetaV2", [ + ["ext", xdr.lookup("SorobanTransactionMetaExt")], + ["returnValue", xdr.option(xdr.lookup("ScVal"))], +]); + +// === xdr source ============================================================ +// +// enum TransactionEventStage { +// // The event has happened before any one of the transactions has its +// // operations applied. +// TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, +// // The event has happened immediately after operations of the transaction +// // have been applied. +// TRANSACTION_EVENT_STAGE_AFTER_TX = 1, +// // The event has happened after every transaction had its operations +// // applied. +// TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 +// }; +// +// =========================================================================== +xdr.enum("TransactionEventStage", { + transactionEventStageBeforeAllTxes: 0, + transactionEventStageAfterTx: 1, + transactionEventStageAfterAllTxes: 2, +}); + +// === xdr source ============================================================ +// +// struct TransactionEvent { +// TransactionEventStage stage; // Stage at which an event has occurred. +// ContractEvent event; // The contract event that has occurred. +// }; +// +// =========================================================================== +xdr.struct("TransactionEvent", [ + ["stage", xdr.lookup("TransactionEventStage")], + ["event", xdr.lookup("ContractEvent")], +]); + +// === xdr source ============================================================ +// +// struct TransactionMetaV4 +// { +// ExtensionPoint ext; +// +// LedgerEntryChanges txChangesBefore; // tx level changes before operations +// // are applied if any +// OperationMetaV2 operations<>; // meta for each operation +// LedgerEntryChanges txChangesAfter; // tx level changes after operations are +// // applied if any +// SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for +// // Soroban transactions). +// +// TransactionEvent events<>; // Used for transaction-level events (like fee payment) +// DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information +// }; +// +// =========================================================================== +xdr.struct("TransactionMetaV4", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["txChangesBefore", xdr.lookup("LedgerEntryChanges")], + ["operations", xdr.varArray(xdr.lookup("OperationMetaV2"), 2147483647)], + ["txChangesAfter", xdr.lookup("LedgerEntryChanges")], + ["sorobanMeta", xdr.option(xdr.lookup("SorobanTransactionMetaV2"))], + ["events", xdr.varArray(xdr.lookup("TransactionEvent"), 2147483647)], + ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)], +]); + // === xdr source ============================================================ // // struct InvokeHostFunctionSuccessPreImage @@ -3340,6 +3305,8 @@ xdr.struct("InvokeHostFunctionSuccessPreImage", [ // TransactionMetaV2 v2; // case 3: // TransactionMetaV3 v3; +// case 4: +// TransactionMetaV4 v4; // }; // // =========================================================================== @@ -3351,12 +3318,14 @@ xdr.union("TransactionMeta", { [1, "v1"], [2, "v2"], [3, "v3"], + [4, "v4"], ], arms: { operations: xdr.varArray(xdr.lookup("OperationMeta"), 2147483647), v1: xdr.lookup("TransactionMetaV1"), v2: xdr.lookup("TransactionMetaV2"), v3: xdr.lookup("TransactionMetaV3"), + v4: xdr.lookup("TransactionMetaV4"), }, }); @@ -3376,6 +3345,28 @@ xdr.struct("TransactionResultMeta", [ ["txApplyProcessing", xdr.lookup("TransactionMeta")], ]); +// === xdr source ============================================================ +// +// struct TransactionResultMetaV1 +// { +// ExtensionPoint ext; +// +// TransactionResultPair result; +// LedgerEntryChanges feeProcessing; +// TransactionMeta txApplyProcessing; +// +// LedgerEntryChanges postTxApplyFeeProcessing; +// }; +// +// =========================================================================== +xdr.struct("TransactionResultMetaV1", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["result", xdr.lookup("TransactionResultPair")], + ["feeProcessing", xdr.lookup("LedgerEntryChanges")], + ["txApplyProcessing", xdr.lookup("TransactionMeta")], + ["postTxApplyFeeProcessing", xdr.lookup("LedgerEntryChanges")], +]); + // === xdr source ============================================================ // // struct UpgradeEntryMeta @@ -3397,15 +3388,15 @@ xdr.struct("UpgradeEntryMeta", [ // LedgerHeaderHistoryEntry ledgerHeader; // // NB: txSet is sorted in "Hash order" // TransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; // }; @@ -3461,32 +3452,31 @@ xdr.union("LedgerCloseMetaExt", { // struct LedgerCloseMetaV1 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// -// // Size in bytes of BucketList, to support downstream +// +// // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. -// uint64 totalByteSizeOfBucketList; -// -// // Temp keys that are being evicted at this ledger. -// LedgerKey evictedTemporaryLedgerKeys<>; -// -// // Archived restorable ledger entries that are being -// // evicted at this ledger. -// LedgerEntry evictedPersistentLedgerEntries<>; +// uint64 totalByteSizeOfLiveSorobanState; +// +// // TTL and data/code keys that have been evicted at this ledger. +// LedgerKey evictedKeys<>; +// +// // Maintained for backwards compatibility, should never be populated. +// LedgerEntry unused<>; // }; // // =========================================================================== @@ -3497,9 +3487,50 @@ xdr.struct("LedgerCloseMetaV1", [ ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], - ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], - ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], - ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)], + ["totalByteSizeOfLiveSorobanState", xdr.lookup("Uint64")], + ["evictedKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], + ["unused", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)], +]); + +// === xdr source ============================================================ +// +// struct LedgerCloseMetaV2 +// { +// LedgerCloseMetaExt ext; +// +// LedgerHeaderHistoryEntry ledgerHeader; +// +// GeneralizedTransactionSet txSet; +// +// // NB: transactions are sorted in apply order here +// // fees for all transactions are processed first +// // followed by applying transactions +// TransactionResultMetaV1 txProcessing<>; +// +// // upgrades are applied last +// UpgradeEntryMeta upgradesProcessing<>; +// +// // other misc information attached to the ledger close +// SCPHistoryEntry scpInfo<>; +// +// // Size in bytes of live Soroban state, to support downstream +// // systems calculating storage fees correctly. +// uint64 totalByteSizeOfLiveSorobanState; +// +// // TTL and data/code keys that have been evicted at this ledger. +// LedgerKey evictedKeys<>; +// }; +// +// =========================================================================== +xdr.struct("LedgerCloseMetaV2", [ + ["ext", xdr.lookup("LedgerCloseMetaExt")], + ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], + ["txSet", xdr.lookup("GeneralizedTransactionSet")], + ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMetaV1"), 2147483647)], + ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], + ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], + ["totalByteSizeOfLiveSorobanState", xdr.lookup("Uint64")], + ["evictedKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ]); // === xdr source ============================================================ @@ -3510,6 +3541,8 @@ xdr.struct("LedgerCloseMetaV1", [ // LedgerCloseMetaV0 v0; // case 1: // LedgerCloseMetaV1 v1; +// case 2: +// LedgerCloseMetaV2 v2; // }; // // =========================================================================== @@ -3519,10 +3552,12 @@ xdr.union("LedgerCloseMeta", { switches: [ [0, "v0"], [1, "v1"], + [2, "v2"], ], arms: { v0: xdr.lookup("LedgerCloseMetaV0"), v1: xdr.lookup("LedgerCloseMetaV1"), + v2: xdr.lookup("LedgerCloseMetaV2"), }, }); @@ -3717,34 +3752,34 @@ xdr.struct("PeerAddress", [ // ERROR_MSG = 0, // AUTH = 2, // DONT_HAVE = 3, -// -// GET_PEERS = 4, // gets a list of peers this guy knows about +// // GET_PEERS (4) is deprecated +// // PEERS = 5, -// +// // GET_TX_SET = 6, // gets a particular txset by hash // TX_SET = 7, // GENERALIZED_TX_SET = 17, -// +// // TRANSACTION = 8, // pass on a tx you have heard about -// +// // // SCP // GET_SCP_QUORUMSET = 9, // SCP_QUORUMSET = 10, // SCP_MESSAGE = 11, // GET_SCP_STATE = 12, -// +// // // new messages // HELLO = 13, -// -// SURVEY_REQUEST = 14, -// SURVEY_RESPONSE = 15, -// +// +// // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST +// // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE +// // SEND_MORE = 16, // SEND_MORE_EXTENDED = 20, -// +// // FLOOD_ADVERT = 18, // FLOOD_DEMAND = 19, -// +// // TIME_SLICED_SURVEY_REQUEST = 21, // TIME_SLICED_SURVEY_RESPONSE = 22, // TIME_SLICED_SURVEY_START_COLLECTING = 23, @@ -3756,7 +3791,6 @@ xdr.enum("MessageType", { errorMsg: 0, auth: 2, dontHave: 3, - getPeers: 4, peers: 5, getTxSet: 6, txSet: 7, @@ -3767,8 +3801,6 @@ xdr.enum("MessageType", { scpMessage: 11, getScpState: 12, hello: 13, - surveyRequest: 14, - surveyResponse: 15, sendMore: 16, sendMoreExtended: 20, floodAdvert: 18, @@ -3797,13 +3829,11 @@ xdr.struct("DontHave", [ // // enum SurveyMessageCommandType // { -// SURVEY_TOPOLOGY = 0, // TIME_SLICED_SURVEY_TOPOLOGY = 1 // }; // // =========================================================================== xdr.enum("SurveyMessageCommandType", { - surveyTopology: 0, timeSlicedSurveyTopology: 1, }); @@ -3811,15 +3841,11 @@ xdr.enum("SurveyMessageCommandType", { // // enum SurveyMessageResponseType // { -// SURVEY_TOPOLOGY_RESPONSE_V0 = 0, -// SURVEY_TOPOLOGY_RESPONSE_V1 = 1, // SURVEY_TOPOLOGY_RESPONSE_V2 = 2 // }; // // =========================================================================== xdr.enum("SurveyMessageResponseType", { - surveyTopologyResponseV0: 0, - surveyTopologyResponseV1: 1, surveyTopologyResponseV2: 2, }); @@ -3921,20 +3947,6 @@ xdr.struct("TimeSlicedSurveyRequestMessage", [ ["outboundPeersIndex", xdr.lookup("Uint32")], ]); -// === xdr source ============================================================ -// -// struct SignedSurveyRequestMessage -// { -// Signature requestSignature; -// SurveyRequestMessage request; -// }; -// -// =========================================================================== -xdr.struct("SignedSurveyRequestMessage", [ - ["requestSignature", xdr.lookup("Signature")], - ["request", xdr.lookup("SurveyRequestMessage")], -]); - // === xdr source ============================================================ // // struct SignedTimeSlicedSurveyRequestMessage @@ -3990,20 +4002,6 @@ xdr.struct("TimeSlicedSurveyResponseMessage", [ ["nonce", xdr.lookup("Uint32")], ]); -// === xdr source ============================================================ -// -// struct SignedSurveyResponseMessage -// { -// Signature responseSignature; -// SurveyResponseMessage response; -// }; -// -// =========================================================================== -xdr.struct("SignedSurveyResponseMessage", [ - ["responseSignature", xdr.lookup("Signature")], - ["response", xdr.lookup("SurveyResponseMessage")], -]); - // === xdr source ============================================================ // // struct SignedTimeSlicedSurveyResponseMessage @@ -4029,12 +4027,12 @@ xdr.struct("SignedTimeSlicedSurveyResponseMessage", [ // uint64 bytesRead; // uint64 bytesWritten; // uint64 secondsConnected; -// +// // uint64 uniqueFloodBytesRecv; // uint64 duplicateFloodBytesRecv; // uint64 uniqueFetchBytesRecv; // uint64 duplicateFetchBytesRecv; -// +// // uint64 uniqueFloodMessageRecv; // uint64 duplicateFloodMessageRecv; // uint64 uniqueFetchMessageRecv; @@ -4060,13 +4058,6 @@ xdr.struct("PeerStats", [ ["duplicateFetchMessageRecv", xdr.lookup("Uint64")], ]); -// === xdr source ============================================================ -// -// typedef PeerStats PeerStatList<25>; -// -// =========================================================================== -xdr.typedef("PeerStatList", xdr.varArray(xdr.lookup("PeerStats"), 25)); - // === xdr source ============================================================ // // struct TimeSlicedNodeData @@ -4075,14 +4066,14 @@ xdr.typedef("PeerStatList", xdr.varArray(xdr.lookup("PeerStats"), 25)); // uint32 droppedAuthenticatedPeers; // uint32 totalInboundPeerCount; // uint32 totalOutboundPeerCount; -// +// // // SCP stats // uint32 p75SCPFirstToSelfLatencyMs; // uint32 p75SCPSelfToOtherLatencyMs; -// +// // // How many times the node lost sync in the time slice // uint32 lostSyncCount; -// +// // // Config data // bool isValidator; // uint32 maxInboundPeerCount; @@ -4124,49 +4115,6 @@ xdr.struct("TimeSlicedPeerData", [ // =========================================================================== xdr.typedef("TimeSlicedPeerDataList", xdr.varArray(xdr.lookup("TimeSlicedPeerData"), 25)); -// === xdr source ============================================================ -// -// struct TopologyResponseBodyV0 -// { -// PeerStatList inboundPeers; -// PeerStatList outboundPeers; -// -// uint32 totalInboundPeerCount; -// uint32 totalOutboundPeerCount; -// }; -// -// =========================================================================== -xdr.struct("TopologyResponseBodyV0", [ - ["inboundPeers", xdr.lookup("PeerStatList")], - ["outboundPeers", xdr.lookup("PeerStatList")], - ["totalInboundPeerCount", xdr.lookup("Uint32")], - ["totalOutboundPeerCount", xdr.lookup("Uint32")], -]); - -// === xdr source ============================================================ -// -// struct TopologyResponseBodyV1 -// { -// PeerStatList inboundPeers; -// PeerStatList outboundPeers; -// -// uint32 totalInboundPeerCount; -// uint32 totalOutboundPeerCount; -// -// uint32 maxInboundPeerCount; -// uint32 maxOutboundPeerCount; -// }; -// -// =========================================================================== -xdr.struct("TopologyResponseBodyV1", [ - ["inboundPeers", xdr.lookup("PeerStatList")], - ["outboundPeers", xdr.lookup("PeerStatList")], - ["totalInboundPeerCount", xdr.lookup("Uint32")], - ["totalOutboundPeerCount", xdr.lookup("Uint32")], - ["maxInboundPeerCount", xdr.lookup("Uint32")], - ["maxOutboundPeerCount", xdr.lookup("Uint32")], -]); - // === xdr source ============================================================ // // struct TopologyResponseBodyV2 @@ -4187,10 +4135,6 @@ xdr.struct("TopologyResponseBodyV2", [ // // union SurveyResponseBody switch (SurveyMessageResponseType type) // { -// case SURVEY_TOPOLOGY_RESPONSE_V0: -// TopologyResponseBodyV0 topologyResponseBodyV0; -// case SURVEY_TOPOLOGY_RESPONSE_V1: -// TopologyResponseBodyV1 topologyResponseBodyV1; // case SURVEY_TOPOLOGY_RESPONSE_V2: // TopologyResponseBodyV2 topologyResponseBodyV2; // }; @@ -4200,13 +4144,9 @@ xdr.union("SurveyResponseBody", { switchOn: xdr.lookup("SurveyMessageResponseType"), switchName: "type", switches: [ - ["surveyTopologyResponseV0", "topologyResponseBodyV0"], - ["surveyTopologyResponseV1", "topologyResponseBodyV1"], ["surveyTopologyResponseV2", "topologyResponseBodyV2"], ], arms: { - topologyResponseBodyV0: xdr.lookup("TopologyResponseBodyV0"), - topologyResponseBodyV1: xdr.lookup("TopologyResponseBodyV1"), topologyResponseBodyV2: xdr.lookup("TopologyResponseBodyV2"), }, }); @@ -4275,41 +4215,33 @@ xdr.struct("FloodDemand", [ // Auth auth; // case DONT_HAVE: // DontHave dontHave; -// case GET_PEERS: -// void; // case PEERS: // PeerAddress peers<100>; -// +// // case GET_TX_SET: // uint256 txSetHash; // case TX_SET: // TransactionSet txSet; // case GENERALIZED_TX_SET: // GeneralizedTransactionSet generalizedTxSet; -// +// // case TRANSACTION: // TransactionEnvelope transaction; -// -// case SURVEY_REQUEST: -// SignedSurveyRequestMessage signedSurveyRequestMessage; -// -// case SURVEY_RESPONSE: -// SignedSurveyResponseMessage signedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_REQUEST: // SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; -// +// // case TIME_SLICED_SURVEY_RESPONSE: // SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_START_COLLECTING: // SignedTimeSlicedSurveyStartCollectingMessage // signedTimeSlicedSurveyStartCollectingMessage; -// +// // case TIME_SLICED_SURVEY_STOP_COLLECTING: // SignedTimeSlicedSurveyStopCollectingMessage // signedTimeSlicedSurveyStopCollectingMessage; -// +// // // SCP // case GET_SCP_QUORUMSET: // uint256 qSetHash; @@ -4339,14 +4271,11 @@ xdr.union("StellarMessage", { ["hello", "hello"], ["auth", "auth"], ["dontHave", "dontHave"], - ["getPeers", xdr.void()], ["peers", "peers"], ["getTxSet", "txSetHash"], ["txSet", "txSet"], ["generalizedTxSet", "generalizedTxSet"], ["transaction", "transaction"], - ["surveyRequest", "signedSurveyRequestMessage"], - ["surveyResponse", "signedSurveyResponseMessage"], ["timeSlicedSurveyRequest", "signedTimeSlicedSurveyRequestMessage"], ["timeSlicedSurveyResponse", "signedTimeSlicedSurveyResponseMessage"], ["timeSlicedSurveyStartCollecting", "signedTimeSlicedSurveyStartCollectingMessage"], @@ -4370,8 +4299,6 @@ xdr.union("StellarMessage", { txSet: xdr.lookup("TransactionSet"), generalizedTxSet: xdr.lookup("GeneralizedTransactionSet"), transaction: xdr.lookup("TransactionEnvelope"), - signedSurveyRequestMessage: xdr.lookup("SignedSurveyRequestMessage"), - signedSurveyResponseMessage: xdr.lookup("SignedSurveyResponseMessage"), signedTimeSlicedSurveyRequestMessage: xdr.lookup("SignedTimeSlicedSurveyRequestMessage"), signedTimeSlicedSurveyResponseMessage: xdr.lookup("SignedTimeSlicedSurveyResponseMessage"), signedTimeSlicedSurveyStartCollectingMessage: xdr.lookup("SignedTimeSlicedSurveyStartCollectingMessage"), @@ -4613,11 +4540,11 @@ xdr.struct("PaymentOp", [ // int64 sendMax; // the maximum amount of sendAsset to // // send (excluding fees). // // The operation will fail if can't be met -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destAmount; // amount they end up with -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4637,13 +4564,13 @@ xdr.struct("PathPaymentStrictReceiveOp", [ // { // Asset sendAsset; // asset we pay with // int64 sendAmount; // amount of sendAsset to send (excluding fees) -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destMin; // the minimum amount of dest asset to // // be received // // The operation will fail if it can't be met -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4665,7 +4592,7 @@ xdr.struct("PathPaymentStrictSendOp", [ // Asset buying; // int64 amount; // amount being sold. if set to 0, delete the offer // Price price; // price of thing being sold in terms of what you are buying -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4688,7 +4615,7 @@ xdr.struct("ManageSellOfferOp", [ // int64 buyAmount; // amount being bought. if set to 0, delete the offer // Price price; // price of thing being bought in terms of what you are // // selling -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4725,18 +4652,18 @@ xdr.struct("CreatePassiveSellOfferOp", [ // struct SetOptionsOp // { // AccountID* inflationDest; // sets the inflation destination -// +// // uint32* clearFlags; // which flags to clear // uint32* setFlags; // which flags to set -// +// // // account threshold manipulation // uint32* masterWeight; // weight of the master account // uint32* lowThreshold; // uint32* medThreshold; // uint32* highThreshold; -// +// // string32* homeDomain; // sets the home domain -// +// // // Add, update or remove a signer for the account // // signer is deleted if the weight is 0 // Signer* signer; @@ -4761,16 +4688,16 @@ xdr.struct("SetOptionsOp", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // LiquidityPoolParameters liquidityPool; -// +// // // add other asset types here in the future // }; // @@ -4796,7 +4723,7 @@ xdr.union("ChangeTrustAsset", { // struct ChangeTrustOp // { // ChangeTrustAsset line; -// +// // // if limit is set to 0, deletes the trust line // int64 limit; // }; @@ -4813,7 +4740,7 @@ xdr.struct("ChangeTrustOp", [ // { // AccountID trustor; // AssetCode asset; -// +// // // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG // uint32 authorize; // }; @@ -4981,7 +4908,7 @@ xdr.struct("ClawbackClaimableBalanceOp", [ // { // AccountID trustor; // Asset asset; -// +// // uint32 clearFlags; // which flags to clear // uint32 setFlags; // which flags to set // }; @@ -5216,7 +5143,7 @@ xdr.enum("SorobanAuthorizedFunctionType", { // // This variant of auth payload for creating new contract instances // // doesn't allow specifying the constructor arguments, creating contracts // // with constructors that take arguments is only possible by authorizing -// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` +// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` // // (protocol 22+). // case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: // CreateContractArgs createContractHostFn; @@ -5263,7 +5190,7 @@ xdr.struct("SorobanAuthorizedInvocation", [ // { // SCAddress address; // int64 nonce; -// uint32 signatureExpirationLedger; +// uint32 signatureExpirationLedger; // SCVal signature; // }; // @@ -5326,6 +5253,13 @@ xdr.struct("SorobanAuthorizationEntry", [ ["rootInvocation", xdr.lookup("SorobanAuthorizedInvocation")], ]); +// === xdr source ============================================================ +// +// typedef SorobanAuthorizationEntry SorobanAuthorizationEntries<>; +// +// =========================================================================== +xdr.typedef("SorobanAuthorizationEntries", xdr.varArray(xdr.lookup("SorobanAuthorizationEntry"), 2147483647)); + // === xdr source ============================================================ // // struct InvokeHostFunctionOp @@ -5498,7 +5432,7 @@ xdr.union("OperationBody", { // // if not set, the runtime defaults to "sourceAccount" specified at // // the transaction level // MuxedAccount* sourceAccount; -// +// // union switch (OperationType type) // { // case CREATE_ACCOUNT: @@ -5586,7 +5520,7 @@ xdr.struct("HashIdPreimageOperationId", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5648,7 +5582,7 @@ xdr.struct("HashIdPreimageSorobanAuthorization", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5775,12 +5709,12 @@ xdr.struct("LedgerBounds", [ // struct PreconditionsV2 // { // TimeBounds* timeBounds; -// +// // // Transaction only valid for ledger numbers n such that // // minLedger <= n < maxLedger (if maxLedger == 0, then // // only minLedger is checked) // LedgerBounds* ledgerBounds; -// +// // // If NULL, only valid when sourceAccount's sequence number // // is seqNum - 1. Otherwise, valid when sourceAccount's // // sequence number n satisfies minSeqNum <= n < tx.seqNum. @@ -5788,16 +5722,16 @@ xdr.struct("LedgerBounds", [ // // is always raised to tx.seqNum, and a transaction is not // // valid if tx.seqNum is too high to ensure replay protection. // SequenceNumber* minSeqNum; -// +// // // For the transaction to be valid, the current ledger time must // // be at least minSeqAge greater than sourceAccount's seqTime. // Duration minSeqAge; -// +// // // For the transaction to be valid, the current ledger number // // must be at least minSeqLedgerGap greater than sourceAccount's // // seqLedger. // uint32 minSeqLedgerGap; -// +// // // For the transaction to be valid, there must be a signature // // corresponding to every Signer in this array, even if the // // signature is not otherwise required by the sourceAccount or @@ -5874,156 +5808,79 @@ xdr.struct("LedgerFootprint", [ // === xdr source ============================================================ // -// enum ArchivalProofType -// { -// EXISTENCE = 0, -// NONEXISTENCE = 1 -// }; -// -// =========================================================================== -xdr.enum("ArchivalProofType", { - existence: 0, - nonexistence: 1, -}); - -// === xdr source ============================================================ -// -// struct ArchivalProofNode -// { -// uint32 index; -// Hash hash; -// }; -// -// =========================================================================== -xdr.struct("ArchivalProofNode", [ - ["index", xdr.lookup("Uint32")], - ["hash", xdr.lookup("Hash")], -]); - -// === xdr source ============================================================ -// -// typedef ArchivalProofNode ProofLevel<>; -// -// =========================================================================== -xdr.typedef("ProofLevel", xdr.varArray(xdr.lookup("ArchivalProofNode"), 2147483647)); - -// === xdr source ============================================================ -// -// struct NonexistenceProofBody -// { -// ColdArchiveBucketEntry entriesToProve<>; -// -// // Vector of vectors, where proofLevels[level] -// // contains all HashNodes that correspond with that level -// ProofLevel proofLevels<>; -// }; -// -// =========================================================================== -xdr.struct("NonexistenceProofBody", [ - ["entriesToProve", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["proofLevels", xdr.varArray(xdr.lookup("ProofLevel"), 2147483647)], -]); - -// === xdr source ============================================================ -// -// struct ExistenceProofBody -// { -// LedgerKey keysToProve<>; -// -// // Bounds for each key being proved, where bound[n] -// // corresponds to keysToProve[n] -// ColdArchiveBucketEntry lowBoundEntries<>; -// ColdArchiveBucketEntry highBoundEntries<>; -// -// // Vector of vectors, where proofLevels[level] -// // contains all HashNodes that correspond with that level -// ProofLevel proofLevels<>; +// struct SorobanResources +// { +// // The ledger footprint of the transaction. +// LedgerFootprint footprint; +// // The maximum number of instructions this transaction can use +// uint32 instructions; +// +// // The maximum number of bytes this transaction can read from disk backed entries +// uint32 diskReadBytes; +// // The maximum number of bytes this transaction can write to ledger +// uint32 writeBytes; // }; // // =========================================================================== -xdr.struct("ExistenceProofBody", [ - ["keysToProve", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], - ["lowBoundEntries", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["highBoundEntries", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["proofLevels", xdr.varArray(xdr.lookup("ProofLevel"), 2147483647)], +xdr.struct("SorobanResources", [ + ["footprint", xdr.lookup("LedgerFootprint")], + ["instructions", xdr.lookup("Uint32")], + ["diskReadBytes", xdr.lookup("Uint32")], + ["writeBytes", xdr.lookup("Uint32")], ]); // === xdr source ============================================================ // -// union switch (ArchivalProofType t) -// { -// case EXISTENCE: -// NonexistenceProofBody nonexistenceProof; -// case NONEXISTENCE: -// ExistenceProofBody existenceProof; -// } -// -// =========================================================================== -xdr.union("ArchivalProofBody", { - switchOn: xdr.lookup("ArchivalProofType"), - switchName: "t", - switches: [ - ["existence", "nonexistenceProof"], - ["nonexistence", "existenceProof"], - ], - arms: { - nonexistenceProof: xdr.lookup("NonexistenceProofBody"), - existenceProof: xdr.lookup("ExistenceProofBody"), - }, -}); - -// === xdr source ============================================================ -// -// struct ArchivalProof +// struct SorobanResourcesExtV0 // { -// uint32 epoch; // AST Subtree for this proof -// -// union switch (ArchivalProofType t) -// { -// case EXISTENCE: -// NonexistenceProofBody nonexistenceProof; -// case NONEXISTENCE: -// ExistenceProofBody existenceProof; -// } body; +// // Vector of indices representing what Soroban +// // entries in the footprint are archived, based on the +// // order of keys provided in the readWrite footprint. +// uint32 archivedSorobanEntries<>; // }; // // =========================================================================== -xdr.struct("ArchivalProof", [ - ["epoch", xdr.lookup("Uint32")], - ["body", xdr.lookup("ArchivalProofBody")], +xdr.struct("SorobanResourcesExtV0", [ + ["archivedSorobanEntries", xdr.varArray(xdr.lookup("Uint32"), 2147483647)], ]); -// === xdr source ============================================================ -// -// struct SorobanResources -// { -// // The ledger footprint of the transaction. -// LedgerFootprint footprint; -// // The maximum number of instructions this transaction can use -// uint32 instructions; -// -// // The maximum number of bytes this transaction can read from ledger -// uint32 readBytes; -// // The maximum number of bytes this transaction can write to ledger -// uint32 writeBytes; -// }; +// === xdr source ============================================================ +// +// union switch (int v) +// { +// case 0: +// void; +// case 1: +// SorobanResourcesExtV0 resourceExt; +// } // // =========================================================================== -xdr.struct("SorobanResources", [ - ["footprint", xdr.lookup("LedgerFootprint")], - ["instructions", xdr.lookup("Uint32")], - ["readBytes", xdr.lookup("Uint32")], - ["writeBytes", xdr.lookup("Uint32")], -]); +xdr.union("SorobanTransactionDataExt", { + switchOn: xdr.int(), + switchName: "v", + switches: [ + [0, xdr.void()], + [1, "resourceExt"], + ], + arms: { + resourceExt: xdr.lookup("SorobanResourcesExtV0"), + }, +}); // === xdr source ============================================================ // // struct SorobanTransactionData // { -// ExtensionPoint ext; +// union switch (int v) +// { +// case 0: +// void; +// case 1: +// SorobanResourcesExtV0 resourceExt; +// } ext; // SorobanResources resources; // // Amount of the transaction `fee` allocated to the Soroban resource fees. -// // The fraction of `resourceFee` corresponding to `resources` specified +// // The fraction of `resourceFee` corresponding to `resources` specified // // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // // well as fees for the transaction size. // // The remaining part of the fee is refundable and the charged value is @@ -6036,7 +5893,7 @@ xdr.struct("SorobanResources", [ // // =========================================================================== xdr.struct("SorobanTransactionData", [ - ["ext", xdr.lookup("ExtensionPoint")], + ["ext", xdr.lookup("SorobanTransactionDataExt")], ["resources", xdr.lookup("SorobanResources")], ["resourceFee", xdr.lookup("Int64")], ]); @@ -6134,21 +5991,20 @@ xdr.union("TransactionExt", { // { // // account used to run the transaction // MuxedAccount sourceAccount; -// +// // // the fee the sourceAccount will pay // uint32 fee; -// +// // // sequence number to consume in the account // SequenceNumber seqNum; -// +// // // validity conditions // Preconditions cond; -// +// // Memo memo; -// +// // Operation operations; -// -// // reserved for future use +// // union switch (int v) // { // case 0: @@ -6367,11 +6223,11 @@ xdr.enum("ClaimAtomType", { // // emitted to identify the offer // uint256 sellerEd25519; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6394,11 +6250,11 @@ xdr.struct("ClaimOfferAtomV0", [ // // emitted to identify the offer // AccountID sellerID; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6419,11 +6275,11 @@ xdr.struct("ClaimOfferAtom", [ // struct ClaimLiquidityAtom // { // PoolID liquidityPoolID; -// +// // // amount and asset taken from the pool // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the pool // Asset assetBought; // int64 amountBought; @@ -6472,7 +6328,7 @@ xdr.union("ClaimAtom", { // { // // codes considered as "success" for the operation // CREATE_ACCOUNT_SUCCESS = 0, // account was created -// +// // // codes considered as "failure" for the operation // CREATE_ACCOUNT_MALFORMED = -1, // invalid destination // CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account @@ -6524,7 +6380,7 @@ xdr.union("CreateAccountResult", { // { // // codes considered as "success" for the operation // PAYMENT_SUCCESS = 0, // payment successfully completed -// +// // // codes considered as "failure" for the operation // PAYMENT_MALFORMED = -1, // bad input // PAYMENT_UNDERFUNDED = -2, // not enough funds in source account @@ -6595,7 +6451,7 @@ xdr.union("PaymentResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = @@ -6726,7 +6582,7 @@ xdr.union("PathPaymentStrictReceiveResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_SEND_UNDERFUNDED = @@ -6839,7 +6695,7 @@ xdr.union("PathPaymentStrictSendResult", { // { // // codes considered as "success" for the operation // MANAGE_SELL_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_SELL_OFFER_SELL_NO_TRUST = @@ -6853,11 +6709,11 @@ xdr.union("PathPaymentStrictSendResult", { // -8, // would cross an offer from the same user // MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_SELL_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_SELL_OFFER_LOW_RESERVE = // -12 // not enough funds to create a new Offer // }; @@ -6926,7 +6782,7 @@ xdr.union("ManageOfferSuccessResultOffer", { // { // // offers that got claimed while creating this offer // ClaimAtom offersClaimed<>; -// +// // union switch (ManageOfferEffect effect) // { // case MANAGE_OFFER_CREATED: @@ -6995,7 +6851,7 @@ xdr.union("ManageSellOfferResult", { // { // // codes considered as "success" for the operation // MANAGE_BUY_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling @@ -7007,11 +6863,11 @@ xdr.union("ManageSellOfferResult", { // MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user // MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_BUY_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer // }; // @@ -7601,7 +7457,7 @@ xdr.union("ClaimClaimableBalanceResult", { // { // // codes considered as "success" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1, // BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2, @@ -7649,7 +7505,7 @@ xdr.union("BeginSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // END_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1 // }; @@ -7689,7 +7545,7 @@ xdr.union("EndSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // REVOKE_SPONSORSHIP_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, // REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, @@ -7744,7 +7600,7 @@ xdr.union("RevokeSponsorshipResult", { // { // // codes considered as "success" for the operation // CLAWBACK_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_MALFORMED = -1, // CLAWBACK_NOT_CLAWBACK_ENABLED = -2, @@ -7795,7 +7651,7 @@ xdr.union("ClawbackResult", { // { // // codes considered as "success" for the operation // CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, // CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2, @@ -7843,7 +7699,7 @@ xdr.union("ClawbackClaimableBalanceResult", { // { // // codes considered as "success" for the operation // SET_TRUST_LINE_FLAGS_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // SET_TRUST_LINE_FLAGS_MALFORMED = -1, // SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, @@ -7899,7 +7755,7 @@ xdr.union("SetTrustLineFlagsResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input // LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the @@ -7966,7 +7822,7 @@ xdr.union("LiquidityPoolDepositResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input // LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the @@ -8024,7 +7880,7 @@ xdr.union("LiquidityPoolWithdrawResult", { // { // // codes considered as "success" for the operation // INVOKE_HOST_FUNCTION_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // INVOKE_HOST_FUNCTION_MALFORMED = -1, // INVOKE_HOST_FUNCTION_TRAPPED = -2, @@ -8080,7 +7936,7 @@ xdr.union("InvokeHostFunctionResult", { // { // // codes considered as "success" for the operation // EXTEND_FOOTPRINT_TTL_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // EXTEND_FOOTPRINT_TTL_MALFORMED = -1, // EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8127,7 +7983,7 @@ xdr.union("ExtendFootprintTtlResult", { // { // // codes considered as "success" for the operation // RESTORE_FOOTPRINT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // RESTORE_FOOTPRINT_MALFORMED = -1, // RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8173,7 +8029,7 @@ xdr.union("RestoreFootprintResult", { // enum OperationResultCode // { // opINNER = 0, // inner object result is valid -// +// // opBAD_AUTH = -1, // too few valid signatures / wrong network // opNO_ACCOUNT = -2, // source account was not found // opNOT_SUPPORTED = -3, // operation not supported at this time @@ -8413,21 +8269,21 @@ xdr.union("OperationResult", { // { // txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded // txSUCCESS = 0, // all operations succeeded -// +// // txFAILED = -1, // one of the operations failed (none were applied) -// +// // txTOO_EARLY = -2, // ledger closeTime before minTime // txTOO_LATE = -3, // ledger closeTime after maxTime // txMISSING_OPERATION = -4, // no operation was specified // txBAD_SEQ = -5, // sequence number does not match source account -// +// // txBAD_AUTH = -6, // too few valid signatures / wrong network // txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve // txNO_ACCOUNT = -8, // source account not found // txINSUFFICIENT_FEE = -9, // fee is too small // txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction // txINTERNAL_ERROR = -11, // an unknown error occurred -// +// // txNOT_SUPPORTED = -12, // transaction type not supported // txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed // txBAD_SPONSORSHIP = -14, // sponsorship not confirmed @@ -8539,7 +8395,7 @@ xdr.union("InnerTransactionResultExt", { // { // // Always 0. Here for binary compatibility. // int64 feeCharged; -// +// // union switch (TransactionResultCode code) // { // // txFEE_BUMP_INNER_SUCCESS is not included @@ -8565,7 +8421,7 @@ xdr.union("InnerTransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8680,7 +8536,7 @@ xdr.union("TransactionResultExt", { // struct TransactionResult // { // int64 feeCharged; // actual fee charged for the transaction -// +// // union switch (TransactionResultCode code) // { // case txFEE_BUMP_INNER_SUCCESS: @@ -8708,7 +8564,7 @@ xdr.union("TransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8956,6 +8812,13 @@ xdr.typedef("NodeId", xdr.lookup("PublicKey")); // =========================================================================== xdr.typedef("AccountId", xdr.lookup("PublicKey")); +// === xdr source ============================================================ +// +// typedef Hash ContractID; +// +// =========================================================================== +xdr.typedef("ContractId", xdr.lookup("Hash")); + // === xdr source ============================================================ // // struct Curve25519Secret @@ -9037,10 +8900,10 @@ xdr.enum("BinaryFuseFilterType", { // struct SerializedBinaryFuseFilter // { // BinaryFuseFilterType type; -// +// // // Seed used to hash input to filter // ShortHashSeed inputHashSeed; -// +// // // Seed used for internal filter hash operations // ShortHashSeed filterSeed; // uint32 segmentLength; @@ -9048,7 +8911,7 @@ xdr.enum("BinaryFuseFilterType", { // uint32 segmentCount; // uint32 segmentCountLength; // uint32 fingerprintLength; // Length in terms of element count, not bytes -// +// // // Array of uint8_t, uint16_t, or uint32_t depending on filter type // opaque fingerprints<>; // }; @@ -9066,6 +8929,45 @@ xdr.struct("SerializedBinaryFuseFilter", [ ["fingerprints", xdr.varOpaque()], ]); +// === xdr source ============================================================ +// +// typedef Hash PoolID; +// +// =========================================================================== +xdr.typedef("PoolId", xdr.lookup("Hash")); + +// === xdr source ============================================================ +// +// enum ClaimableBalanceIDType +// { +// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +// }; +// +// =========================================================================== +xdr.enum("ClaimableBalanceIdType", { + claimableBalanceIdTypeV0: 0, +}); + +// === xdr source ============================================================ +// +// union ClaimableBalanceID switch (ClaimableBalanceIDType type) +// { +// case CLAIMABLE_BALANCE_ID_TYPE_V0: +// Hash v0; +// }; +// +// =========================================================================== +xdr.union("ClaimableBalanceId", { + switchOn: xdr.lookup("ClaimableBalanceIdType"), + switchName: "type", + switches: [ + ["claimableBalanceIdTypeV0", "v0"], + ], + arms: { + v0: xdr.lookup("Hash"), + }, +}); + // === xdr source ============================================================ // // enum SCValType @@ -9073,49 +8975,49 @@ xdr.struct("SerializedBinaryFuseFilter", [ // SCV_BOOL = 0, // SCV_VOID = 1, // SCV_ERROR = 2, -// +// // // 32 bits is the smallest type in WASM or XDR; no need for u8/u16. // SCV_U32 = 3, // SCV_I32 = 4, -// +// // // 64 bits is naturally supported by both WASM and XDR also. // SCV_U64 = 5, // SCV_I64 = 6, -// +// // // Time-related u64 subtypes with their own functions and formatting. // SCV_TIMEPOINT = 7, // SCV_DURATION = 8, -// +// // // 128 bits is naturally supported by Rust and we use it for Soroban // // fixed-point arithmetic prices / balances / similar "quantities". These // // are represented in XDR as a pair of 2 u64s. // SCV_U128 = 9, // SCV_I128 = 10, -// +// // // 256 bits is the size of sha256 output, ed25519 keys, and the EVM machine // // word, so for interop use we include this even though it requires a small // // amount of Rust guest and/or host library code. // SCV_U256 = 11, // SCV_I256 = 12, -// +// // // Bytes come in 3 flavors, 2 of which have meaningfully different // // formatting and validity-checking / domain-restriction. // SCV_BYTES = 13, // SCV_STRING = 14, // SCV_SYMBOL = 15, -// +// // // Vecs and maps are just polymorphic containers of other ScVals. // SCV_VEC = 16, // SCV_MAP = 17, -// +// // // Address is the universal identifier for contracts and classic // // accounts. // SCV_ADDRESS = 18, -// +// // // The following are the internal SCVal variants that are not -// // exposed to the contracts. +// // exposed to the contracts. // SCV_CONTRACT_INSTANCE = 19, -// +// // // SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique // // symbolic SCVals used as the key for ledger entries for a contract's // // instance and an address' nonce, respectively. @@ -9351,15 +9253,35 @@ xdr.union("ContractExecutable", { // enum SCAddressType // { // SC_ADDRESS_TYPE_ACCOUNT = 0, -// SC_ADDRESS_TYPE_CONTRACT = 1 +// SC_ADDRESS_TYPE_CONTRACT = 1, +// SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, +// SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, +// SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 // }; // // =========================================================================== xdr.enum("ScAddressType", { scAddressTypeAccount: 0, scAddressTypeContract: 1, + scAddressTypeMuxedAccount: 2, + scAddressTypeClaimableBalance: 3, + scAddressTypeLiquidityPool: 4, }); +// === xdr source ============================================================ +// +// struct MuxedEd25519Account +// { +// uint64 id; +// uint256 ed25519; +// }; +// +// =========================================================================== +xdr.struct("MuxedEd25519Account", [ + ["id", xdr.lookup("Uint64")], + ["ed25519", xdr.lookup("Uint256")], +]); + // === xdr source ============================================================ // // union SCAddress switch (SCAddressType type) @@ -9367,7 +9289,13 @@ xdr.enum("ScAddressType", { // case SC_ADDRESS_TYPE_ACCOUNT: // AccountID accountId; // case SC_ADDRESS_TYPE_CONTRACT: -// Hash contractId; +// ContractID contractId; +// case SC_ADDRESS_TYPE_MUXED_ACCOUNT: +// MuxedEd25519Account muxedAccount; +// case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: +// ClaimableBalanceID claimableBalanceId; +// case SC_ADDRESS_TYPE_LIQUIDITY_POOL: +// PoolID liquidityPoolId; // }; // // =========================================================================== @@ -9377,10 +9305,16 @@ xdr.union("ScAddress", { switches: [ ["scAddressTypeAccount", "accountId"], ["scAddressTypeContract", "contractId"], + ["scAddressTypeMuxedAccount", "muxedAccount"], + ["scAddressTypeClaimableBalance", "claimableBalanceId"], + ["scAddressTypeLiquidityPool", "liquidityPoolId"], ], arms: { accountId: xdr.lookup("AccountId"), - contractId: xdr.lookup("Hash"), + contractId: xdr.lookup("ContractId"), + muxedAccount: xdr.lookup("MuxedEd25519Account"), + claimableBalanceId: xdr.lookup("ClaimableBalanceId"), + liquidityPoolId: xdr.lookup("PoolId"), }, }); @@ -9454,19 +9388,19 @@ xdr.struct("ScContractInstance", [ // // union SCVal switch (SCValType type) // { -// +// // case SCV_BOOL: // bool b; // case SCV_VOID: // void; // case SCV_ERROR: // SCError error; -// +// // case SCV_U32: // uint32 u32; // case SCV_I32: // int32 i32; -// +// // case SCV_U64: // uint64 u64; // case SCV_I64: @@ -9475,43 +9409,42 @@ xdr.struct("ScContractInstance", [ // TimePoint timepoint; // case SCV_DURATION: // Duration duration; -// +// // case SCV_U128: // UInt128Parts u128; // case SCV_I128: // Int128Parts i128; -// +// // case SCV_U256: // UInt256Parts u256; // case SCV_I256: // Int256Parts i256; -// +// // case SCV_BYTES: // SCBytes bytes; // case SCV_STRING: // SCString str; // case SCV_SYMBOL: // SCSymbol sym; -// +// // // Vec and Map are recursive so need to live // // behind an option, due to xdrpp limitations. // case SCV_VEC: // SCVec *vec; // case SCV_MAP: // SCMap *map; -// +// // case SCV_ADDRESS: // SCAddress address; -// +// // // Special SCVals reserved for system-constructed contract-data // // ledger keys, not generally usable elsewhere. +// case SCV_CONTRACT_INSTANCE: +// SCContractInstance instance; // case SCV_LEDGER_KEY_CONTRACT_INSTANCE: // void; // case SCV_LEDGER_KEY_NONCE: // SCNonceKey nonce_key; -// -// case SCV_CONTRACT_INSTANCE: -// SCContractInstance instance; // }; // // =========================================================================== @@ -9538,9 +9471,9 @@ xdr.union("ScVal", { ["scvVec", "vec"], ["scvMap", "map"], ["scvAddress", "address"], + ["scvContractInstance", "instance"], ["scvLedgerKeyContractInstance", xdr.void()], ["scvLedgerKeyNonce", "nonceKey"], - ["scvContractInstance", "instance"], ], arms: { b: xdr.bool(), @@ -9561,8 +9494,8 @@ xdr.union("ScVal", { vec: xdr.option(xdr.lookup("ScVec")), map: xdr.option(xdr.lookup("ScMap")), address: xdr.lookup("ScAddress"), - nonceKey: xdr.lookup("ScNonceKey"), instance: xdr.lookup("ScContractInstance"), + nonceKey: xdr.lookup("ScNonceKey"), }, }); @@ -9686,7 +9619,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // enum SCSpecType // { // SC_SPEC_TYPE_VAL = 0, -// +// // // Types with no parameters. // SC_SPEC_TYPE_BOOL = 1, // SC_SPEC_TYPE_VOID = 2, @@ -9705,7 +9638,8 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_STRING = 16, // SC_SPEC_TYPE_SYMBOL = 17, // SC_SPEC_TYPE_ADDRESS = 19, -// +// SC_SPEC_TYPE_MUXED_ADDRESS = 20, +// // // Types with parameters. // SC_SPEC_TYPE_OPTION = 1000, // SC_SPEC_TYPE_RESULT = 1001, @@ -9713,7 +9647,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_MAP = 1004, // SC_SPEC_TYPE_TUPLE = 1005, // SC_SPEC_TYPE_BYTES_N = 1006, -// +// // // User defined types. // SC_SPEC_TYPE_UDT = 2000 // }; @@ -9738,6 +9672,7 @@ xdr.enum("ScSpecType", { scSpecTypeString: 16, scSpecTypeSymbol: 17, scSpecTypeAddress: 19, + scSpecTypeMuxedAddress: 20, scSpecTypeOption: 1000, scSpecTypeResult: 1001, scSpecTypeVec: 1002, @@ -9857,6 +9792,7 @@ xdr.struct("ScSpecTypeUdt", [ // case SC_SPEC_TYPE_STRING: // case SC_SPEC_TYPE_SYMBOL: // case SC_SPEC_TYPE_ADDRESS: +// case SC_SPEC_TYPE_MUXED_ADDRESS: // void; // case SC_SPEC_TYPE_OPTION: // SCSpecTypeOption option; @@ -9897,6 +9833,7 @@ xdr.union("ScSpecTypeDef", { ["scSpecTypeString", xdr.void()], ["scSpecTypeSymbol", xdr.void()], ["scSpecTypeAddress", xdr.void()], + ["scSpecTypeMuxedAddress", xdr.void()], ["scSpecTypeOption", "option"], ["scSpecTypeResult", "result"], ["scSpecTypeVec", "vec"], @@ -10138,6 +10075,76 @@ xdr.struct("ScSpecFunctionV0", [ ["outputs", xdr.varArray(xdr.lookup("ScSpecTypeDef"), 1)], ]); +// === xdr source ============================================================ +// +// enum SCSpecEventParamLocationV0 +// { +// SC_SPEC_EVENT_PARAM_LOCATION_DATA = 0, +// SC_SPEC_EVENT_PARAM_LOCATION_TOPIC_LIST = 1 +// }; +// +// =========================================================================== +xdr.enum("ScSpecEventParamLocationV0", { + scSpecEventParamLocationData: 0, + scSpecEventParamLocationTopicList: 1, +}); + +// === xdr source ============================================================ +// +// struct SCSpecEventParamV0 +// { +// string doc; +// string name<30>; +// SCSpecTypeDef type; +// SCSpecEventParamLocationV0 location; +// }; +// +// =========================================================================== +xdr.struct("ScSpecEventParamV0", [ + ["doc", xdr.string(SC_SPEC_DOC_LIMIT)], + ["name", xdr.string(30)], + ["type", xdr.lookup("ScSpecTypeDef")], + ["location", xdr.lookup("ScSpecEventParamLocationV0")], +]); + +// === xdr source ============================================================ +// +// enum SCSpecEventDataFormat +// { +// SC_SPEC_EVENT_DATA_FORMAT_SINGLE_VALUE = 0, +// SC_SPEC_EVENT_DATA_FORMAT_VEC = 1, +// SC_SPEC_EVENT_DATA_FORMAT_MAP = 2 +// }; +// +// =========================================================================== +xdr.enum("ScSpecEventDataFormat", { + scSpecEventDataFormatSingleValue: 0, + scSpecEventDataFormatVec: 1, + scSpecEventDataFormatMap: 2, +}); + +// === xdr source ============================================================ +// +// struct SCSpecEventV0 +// { +// string doc; +// string lib<80>; +// SCSymbol name; +// SCSymbol prefixTopics<2>; +// SCSpecEventParamV0 params<50>; +// SCSpecEventDataFormat dataFormat; +// }; +// +// =========================================================================== +xdr.struct("ScSpecEventV0", [ + ["doc", xdr.string(SC_SPEC_DOC_LIMIT)], + ["lib", xdr.string(80)], + ["name", xdr.lookup("ScSymbol")], + ["prefixTopics", xdr.varArray(xdr.lookup("ScSymbol"), 2)], + ["params", xdr.varArray(xdr.lookup("ScSpecEventParamV0"), 50)], + ["dataFormat", xdr.lookup("ScSpecEventDataFormat")], +]); + // === xdr source ============================================================ // // enum SCSpecEntryKind @@ -10146,7 +10153,8 @@ xdr.struct("ScSpecFunctionV0", [ // SC_SPEC_ENTRY_UDT_STRUCT_V0 = 1, // SC_SPEC_ENTRY_UDT_UNION_V0 = 2, // SC_SPEC_ENTRY_UDT_ENUM_V0 = 3, -// SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4 +// SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4, +// SC_SPEC_ENTRY_EVENT_V0 = 5 // }; // // =========================================================================== @@ -10156,6 +10164,7 @@ xdr.enum("ScSpecEntryKind", { scSpecEntryUdtUnionV0: 2, scSpecEntryUdtEnumV0: 3, scSpecEntryUdtErrorEnumV0: 4, + scSpecEntryEventV0: 5, }); // === xdr source ============================================================ @@ -10172,6 +10181,8 @@ xdr.enum("ScSpecEntryKind", { // SCSpecUDTEnumV0 udtEnumV0; // case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0: // SCSpecUDTErrorEnumV0 udtErrorEnumV0; +// case SC_SPEC_ENTRY_EVENT_V0: +// SCSpecEventV0 eventV0; // }; // // =========================================================================== @@ -10184,6 +10195,7 @@ xdr.union("ScSpecEntry", { ["scSpecEntryUdtUnionV0", "udtUnionV0"], ["scSpecEntryUdtEnumV0", "udtEnumV0"], ["scSpecEntryUdtErrorEnumV0", "udtErrorEnumV0"], + ["scSpecEntryEventV0", "eventV0"], ], arms: { functionV0: xdr.lookup("ScSpecFunctionV0"), @@ -10191,6 +10203,7 @@ xdr.union("ScSpecEntry", { udtUnionV0: xdr.lookup("ScSpecUdtUnionV0"), udtEnumV0: xdr.lookup("ScSpecUdtEnumV0"), udtErrorEnumV0: xdr.lookup("ScSpecUdtErrorEnumV0"), + eventV0: xdr.lookup("ScSpecEventV0"), }, }); @@ -10217,7 +10230,7 @@ xdr.struct("ConfigSettingContractExecutionLanesV0", [ // int64 txMaxInstructions; // // Cost of 10000 instructions // int64 feeRatePerInstructionsIncrement; -// +// // // Memory limit per transaction. Unlike instructions, there is no fee // // for memory, just the limit. // uint32 txMemoryLimit; @@ -10231,61 +10244,95 @@ xdr.struct("ConfigSettingContractComputeV0", [ ["txMemoryLimit", xdr.lookup("Uint32")], ]); +// === xdr source ============================================================ +// +// struct ConfigSettingContractParallelComputeV0 +// { +// // Maximum number of clusters with dependent transactions allowed in a +// // stage of parallel tx set component. +// // This effectively sets the lower bound on the number of physical threads +// // necessary to effectively apply transaction sets in parallel. +// uint32 ledgerMaxDependentTxClusters; +// }; +// +// =========================================================================== +xdr.struct("ConfigSettingContractParallelComputeV0", [ + ["ledgerMaxDependentTxClusters", xdr.lookup("Uint32")], +]); + // === xdr source ============================================================ // // struct ConfigSettingContractLedgerCostV0 // { -// // Maximum number of ledger entry read operations per ledger -// uint32 ledgerMaxReadLedgerEntries; -// // Maximum number of bytes that can be read per ledger -// uint32 ledgerMaxReadBytes; +// // Maximum number of disk entry read operations per ledger +// uint32 ledgerMaxDiskReadEntries; +// // Maximum number of bytes of disk reads that can be performed per ledger +// uint32 ledgerMaxDiskReadBytes; // // Maximum number of ledger entry write operations per ledger // uint32 ledgerMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per ledger // uint32 ledgerMaxWriteBytes; -// -// // Maximum number of ledger entry read operations per transaction -// uint32 txMaxReadLedgerEntries; -// // Maximum number of bytes that can be read per transaction -// uint32 txMaxReadBytes; +// +// // Maximum number of disk entry read operations per transaction +// uint32 txMaxDiskReadEntries; +// // Maximum number of bytes of disk reads that can be performed per transaction +// uint32 txMaxDiskReadBytes; // // Maximum number of ledger entry write operations per transaction // uint32 txMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per transaction // uint32 txMaxWriteBytes; -// -// int64 feeReadLedgerEntry; // Fee per ledger entry read -// int64 feeWriteLedgerEntry; // Fee per ledger entry write -// -// int64 feeRead1KB; // Fee for reading 1KB -// +// +// int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read +// int64 feeWriteLedgerEntry; // Fee per ledger entry write +// +// int64 feeDiskRead1KB; // Fee for reading 1KB disk +// // // The following parameters determine the write fee per 1KB. -// // Write fee grows linearly until bucket list reaches this size -// int64 bucketListTargetSizeBytes; -// // Fee per 1KB write when the bucket list is empty -// int64 writeFee1KBBucketListLow; -// // Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes` -// int64 writeFee1KBBucketListHigh; -// // Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes` -// uint32 bucketListWriteFeeGrowthFactor; +// // Rent fee grows linearly until soroban state reaches this size +// int64 sorobanStateTargetSizeBytes; +// // Fee per 1KB rent when the soroban state is empty +// int64 rentFee1KBSorobanStateSizeLow; +// // Fee per 1KB rent when the soroban state has reached `sorobanStateTargetSizeBytes` +// int64 rentFee1KBSorobanStateSizeHigh; +// // Rent fee multiplier for any additional data past the first `sorobanStateTargetSizeBytes` +// uint32 sorobanStateRentFeeGrowthFactor; // }; // // =========================================================================== xdr.struct("ConfigSettingContractLedgerCostV0", [ - ["ledgerMaxReadLedgerEntries", xdr.lookup("Uint32")], - ["ledgerMaxReadBytes", xdr.lookup("Uint32")], + ["ledgerMaxDiskReadEntries", xdr.lookup("Uint32")], + ["ledgerMaxDiskReadBytes", xdr.lookup("Uint32")], ["ledgerMaxWriteLedgerEntries", xdr.lookup("Uint32")], ["ledgerMaxWriteBytes", xdr.lookup("Uint32")], - ["txMaxReadLedgerEntries", xdr.lookup("Uint32")], - ["txMaxReadBytes", xdr.lookup("Uint32")], + ["txMaxDiskReadEntries", xdr.lookup("Uint32")], + ["txMaxDiskReadBytes", xdr.lookup("Uint32")], ["txMaxWriteLedgerEntries", xdr.lookup("Uint32")], ["txMaxWriteBytes", xdr.lookup("Uint32")], - ["feeReadLedgerEntry", xdr.lookup("Int64")], + ["feeDiskReadLedgerEntry", xdr.lookup("Int64")], ["feeWriteLedgerEntry", xdr.lookup("Int64")], - ["feeRead1Kb", xdr.lookup("Int64")], - ["bucketListTargetSizeBytes", xdr.lookup("Int64")], - ["writeFee1KbBucketListLow", xdr.lookup("Int64")], - ["writeFee1KbBucketListHigh", xdr.lookup("Int64")], - ["bucketListWriteFeeGrowthFactor", xdr.lookup("Uint32")], + ["feeDiskRead1Kb", xdr.lookup("Int64")], + ["sorobanStateTargetSizeBytes", xdr.lookup("Int64")], + ["rentFee1KbSorobanStateSizeLow", xdr.lookup("Int64")], + ["rentFee1KbSorobanStateSizeHigh", xdr.lookup("Int64")], + ["sorobanStateRentFeeGrowthFactor", xdr.lookup("Uint32")], +]); + +// === xdr source ============================================================ +// +// struct ConfigSettingContractLedgerCostExtV0 +// { +// // Maximum number of RO+RW entries in the transaction footprint. +// uint32 txMaxFootprintEntries; +// // Fee per 1 KB of data written to the ledger. +// // Unlike the rent fee, this is a flat fee that is charged for any ledger +// // write, independent of the type of the entry being written. +// int64 feeWrite1KB; +// }; +// +// =========================================================================== +xdr.struct("ConfigSettingContractLedgerCostExtV0", [ + ["txMaxFootprintEntries", xdr.lookup("Uint32")], + ["feeWrite1Kb", xdr.lookup("Int64")], ]); // === xdr source ============================================================ @@ -10324,7 +10371,7 @@ xdr.struct("ConfigSettingContractEventsV0", [ // uint32 ledgerMaxTxsSizeBytes; // // Maximum size in bytes for a transaction // uint32 txMaxSizeBytes; -// +// // // Fee for 1 KB of transaction size // int64 feeTxSize1KB; // }; @@ -10350,7 +10397,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // // Cost of a host function dispatch, not including the actual work done by // // the function nor the cost of VM invocation machinary // DispatchHostFunction = 4, -// // Cost of visiting a host object from the host object storage. Exists to +// // Cost of visiting a host object from the host object storage. Exists to // // make sure some baseline cost coverage, i.e. repeatly visiting objects // // by the guest will always incur some charges. // VisitObject = 5, @@ -10390,7 +10437,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // Int256Shift = 21, // // Cost of drawing random bytes using a ChaCha20 PRNG // ChaCha20DrawBytes = 22, -// +// // // Cost of parsing wasm bytes that only encode instructions. // ParseWasmInstructions = 23, // // Cost of parsing a known number of wasm functions. @@ -10411,7 +10458,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // ParseWasmExports = 31, // // Cost of parsing a known number of data segment bytes. // ParseWasmDataSegmentBytes = 32, -// +// // // Cost of instantiating wasm bytes that only encode instructions. // InstantiateWasmInstructions = 33, // // Cost of instantiating a known number of wasm functions. @@ -10432,13 +10479,13 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // InstantiateWasmExports = 41, // // Cost of instantiating a known number of data segment bytes. // InstantiateWasmDataSegmentBytes = 42, -// +// // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded // // point on a 256-bit elliptic curve // Sec1DecodePointUncompressed = 43, // // Cost of verifying an ECDSA Secp256r1 signature // VerifyEcdsaSecp256r1Sig = 44, -// +// // // Cost of encoding a BLS12-381 Fp (base field element) // Bls12381EncodeFp = 45, // // Cost of decoding a BLS12-381 Fp (base field element) @@ -10570,7 +10617,7 @@ xdr.enum("ContractCostType", { // struct ContractCostParamEntry { // // use `ext` to add more terms (e.g. higher order polynomials) in the future // ExtensionPoint ext; -// +// // int64 constTerm; // int64 linearTerm; // }; @@ -10588,23 +10635,23 @@ xdr.struct("ContractCostParamEntry", [ // uint32 maxEntryTTL; // uint32 minTemporaryTTL; // uint32 minPersistentTTL; -// +// // // rent_fee = wfee_rate_average / rent_rate_denominator_for_type // int64 persistentRentRateDenominator; // int64 tempRentRateDenominator; -// +// // // max number of entries that emit archival meta in a single ledger // uint32 maxEntriesToArchive; -// -// // Number of snapshots to use when calculating average BucketList size -// uint32 bucketListSizeWindowSampleSize; -// -// // How often to sample the BucketList size for the average, in ledgers -// uint32 bucketListWindowSamplePeriod; -// +// +// // Number of snapshots to use when calculating average live Soroban State size +// uint32 liveSorobanStateSizeWindowSampleSize; +// +// // How often to sample the live Soroban State size for the average, in ledgers +// uint32 liveSorobanStateSizeWindowSamplePeriod; +// // // Maximum number of bytes that we scan for eviction per ledger // uint32 evictionScanSize; -// +// // // Lowest BucketList level to be scanned to evict entries // uint32 startingEvictionScanLevel; // }; @@ -10617,8 +10664,8 @@ xdr.struct("StateArchivalSettings", [ ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], - ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], - ["bucketListWindowSamplePeriod", xdr.lookup("Uint32")], + ["liveSorobanStateSizeWindowSampleSize", xdr.lookup("Uint32")], + ["liveSorobanStateSizeWindowSamplePeriod", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint32")], ["startingEvictionScanLevel", xdr.lookup("Uint32")], ]); @@ -10638,6 +10685,25 @@ xdr.struct("EvictionIterator", [ ["bucketFileOffset", xdr.lookup("Uint64")], ]); +// === xdr source ============================================================ +// +// struct ConfigSettingSCPTiming { +// uint32 ledgerTargetCloseTimeMilliseconds; +// uint32 nominationTimeoutInitialMilliseconds; +// uint32 nominationTimeoutIncrementMilliseconds; +// uint32 ballotTimeoutInitialMilliseconds; +// uint32 ballotTimeoutIncrementMilliseconds; +// }; +// +// =========================================================================== +xdr.struct("ConfigSettingScpTiming", [ + ["ledgerTargetCloseTimeMilliseconds", xdr.lookup("Uint32")], + ["nominationTimeoutInitialMilliseconds", xdr.lookup("Uint32")], + ["nominationTimeoutIncrementMilliseconds", xdr.lookup("Uint32")], + ["ballotTimeoutInitialMilliseconds", xdr.lookup("Uint32")], + ["ballotTimeoutIncrementMilliseconds", xdr.lookup("Uint32")], +]); + // === xdr source ============================================================ // // const CONTRACT_COST_COUNT_LIMIT = 1024; @@ -10668,8 +10734,11 @@ xdr.typedef("ContractCostParams", xdr.varArray(xdr.lookup("ContractCostParamEntr // CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, // CONFIG_SETTING_STATE_ARCHIVAL = 10, // CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, -// CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, -// CONFIG_SETTING_EVICTION_ITERATOR = 13 +// CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW = 12, +// CONFIG_SETTING_EVICTION_ITERATOR = 13, +// CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14, +// CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0 = 15, +// CONFIG_SETTING_SCP_TIMING = 16 // }; // // =========================================================================== @@ -10686,8 +10755,11 @@ xdr.enum("ConfigSettingId", { configSettingContractDataEntrySizeBytes: 9, configSettingStateArchival: 10, configSettingContractExecutionLanes: 11, - configSettingBucketlistSizeWindow: 12, + configSettingLiveSorobanStateSizeWindow: 12, configSettingEvictionIterator: 13, + configSettingContractParallelComputeV0: 14, + configSettingContractLedgerCostExtV0: 15, + configSettingScpTiming: 16, }); // === xdr source ============================================================ @@ -10718,10 +10790,16 @@ xdr.enum("ConfigSettingId", { // StateArchivalSettings stateArchivalSettings; // case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: // ConfigSettingContractExecutionLanesV0 contractExecutionLanes; -// case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW: -// uint64 bucketListSizeWindow<>; +// case CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW: +// uint64 liveSorobanStateSizeWindow<>; // case CONFIG_SETTING_EVICTION_ITERATOR: // EvictionIterator evictionIterator; +// case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0: +// ConfigSettingContractParallelComputeV0 contractParallelCompute; +// case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0: +// ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt; +// case CONFIG_SETTING_SCP_TIMING: +// ConfigSettingSCPTiming contractSCPTiming; // }; // // =========================================================================== @@ -10741,8 +10819,11 @@ xdr.union("ConfigSettingEntry", { ["configSettingContractDataEntrySizeBytes", "contractDataEntrySizeBytes"], ["configSettingStateArchival", "stateArchivalSettings"], ["configSettingContractExecutionLanes", "contractExecutionLanes"], - ["configSettingBucketlistSizeWindow", "bucketListSizeWindow"], + ["configSettingLiveSorobanStateSizeWindow", "liveSorobanStateSizeWindow"], ["configSettingEvictionIterator", "evictionIterator"], + ["configSettingContractParallelComputeV0", "contractParallelCompute"], + ["configSettingContractLedgerCostExtV0", "contractLedgerCostExt"], + ["configSettingScpTiming", "contractScpTiming"], ], arms: { contractMaxSizeBytes: xdr.lookup("Uint32"), @@ -10757,10 +10838,34 @@ xdr.union("ConfigSettingEntry", { contractDataEntrySizeBytes: xdr.lookup("Uint32"), stateArchivalSettings: xdr.lookup("StateArchivalSettings"), contractExecutionLanes: xdr.lookup("ConfigSettingContractExecutionLanesV0"), - bucketListSizeWindow: xdr.varArray(xdr.lookup("Uint64"), 2147483647), + liveSorobanStateSizeWindow: xdr.varArray(xdr.lookup("Uint64"), 2147483647), evictionIterator: xdr.lookup("EvictionIterator"), + contractParallelCompute: xdr.lookup("ConfigSettingContractParallelComputeV0"), + contractLedgerCostExt: xdr.lookup("ConfigSettingContractLedgerCostExtV0"), + contractScpTiming: xdr.lookup("ConfigSettingScpTiming"), }, }); +// === xdr source ============================================================ +// +// struct LedgerCloseMetaBatch +// { +// // starting ledger sequence number in the batch +// uint32 startSequence; +// +// // ending ledger sequence number in the batch +// uint32 endSequence; +// +// // Ledger close meta for each ledger within the batch +// LedgerCloseMeta ledgerCloseMetas<>; +// }; +// +// =========================================================================== +xdr.struct("LedgerCloseMetaBatch", [ + ["startSequence", xdr.lookup("Uint32")], + ["endSequence", xdr.lookup("Uint32")], + ["ledgerCloseMeta", xdr.varArray(xdr.lookup("LedgerCloseMeta"), 2147483647)], +]); + }); export default types; diff --git a/src/generated/next_generated.js b/src/generated/next_generated.js index fe8ce869..803a0094 100644 --- a/src/generated/next_generated.js +++ b/src/generated/next_generated.js @@ -1,4 +1,4 @@ -// Automatically generated by xdrgen on 2024-09-12T11:09:00-08:00 +// Automatically generated by xdrgen // DO NOT EDIT or your changes may be overwritten /* jshint maxstatements:2147483647 */ @@ -8,12 +8,13 @@ import * as XDR from '@stellar/js-xdr'; var types = XDR.config(xdr => { -// Workaround for https://github.com/stellar/xdrgen/issues/152 + +// === xdr source ============================================================ // -// The "correct" way would be to replace bare instances of each constant with -// xdr.lookup("..."), but that's more error-prone. -const SCSYMBOL_LIMIT = 32; -const SC_SPEC_DOC_LIMIT = 1024; +// typedef opaque Value<>; +// +// =========================================================================== +xdr.typedef("Value", xdr.varOpaque()); // === xdr source ============================================================ // @@ -179,7 +180,7 @@ xdr.union("ScpStatementPledges", { // { // NodeID nodeID; // v // uint64 slotIndex; // i -// +// // union switch (SCPStatementType type) // { // case SCP_ST_PREPARE: @@ -286,13 +287,6 @@ xdr.typedef("SequenceNumber", xdr.lookup("Int64")); // =========================================================================== xdr.typedef("DataValue", xdr.varOpaque(64)); -// === xdr source ============================================================ -// -// typedef Hash PoolID; -// -// =========================================================================== -xdr.typedef("PoolId", xdr.lookup("Hash")); - // === xdr source ============================================================ // // typedef opaque AssetCode4[4]; @@ -331,10 +325,10 @@ xdr.enum("AssetType", { // { // case ASSET_TYPE_CREDIT_ALPHANUM4: // AssetCode4 assetCode4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AssetCode12 assetCode12; -// +// // // add other asset types here in the future // }; // @@ -386,13 +380,13 @@ xdr.struct("AlphaNum12", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // // add other asset types here in the future // }; // @@ -505,7 +499,7 @@ xdr.struct("Signer", [ // // enum AccountFlags // { // masks for each flag -// +// // // Flags set on issuer accounts // // TrustLines are created with authorized set to "false" requiring // // the issuer to set it for each TrustLine @@ -564,10 +558,10 @@ xdr.typedef("SponsorshipDescriptor", xdr.option(xdr.lookup("AccountId"))); // // We can use this to add more fields, or because it is first, to // // change AccountEntryExtensionV3 into a union. // ExtensionPoint ext; -// +// // // Ledger number at which `seqNum` took on its present value. // uint32 seqLedger; -// +// // // Time at which `seqNum` took on its present value. // TimePoint seqTime; // }; @@ -609,7 +603,7 @@ xdr.union("AccountEntryExtensionV2Ext", { // uint32 numSponsored; // uint32 numSponsoring; // SponsorshipDescriptor signerSponsoringIDs; -// +// // union switch (int v) // { // case 0: @@ -656,7 +650,7 @@ xdr.union("AccountEntryExtensionV1Ext", { // struct AccountEntryExtensionV1 // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -707,15 +701,15 @@ xdr.union("AccountEntryExt", { // // drives the reserve // AccountID* inflationDest; // Account to vote for during inflation // uint32 flags; // see AccountFlags -// +// // string32 homeDomain; // can be used for reverse federation and memo lookup -// +// // // fields used for signatures // // thresholds stores unsigned bytes: [weight of master|low|medium|high] // Thresholds thresholds; -// +// // Signer signers; // possible signers for this account -// +// // // reserved for future use // union switch (int v) // { @@ -801,16 +795,16 @@ xdr.enum("LiquidityPoolType", { // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // PoolID liquidityPoolID; -// +// // // add other asset types here in the future // }; // @@ -855,7 +849,7 @@ xdr.union("TrustLineEntryExtensionV2Ext", { // struct TrustLineEntryExtensionV2 // { // int32 liquidityPoolUseCount; -// +// // union switch (int v) // { // case 0: @@ -898,7 +892,7 @@ xdr.union("TrustLineEntryV1Ext", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -925,7 +919,7 @@ xdr.struct("TrustLineEntryV1", [ // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -958,10 +952,10 @@ xdr.union("TrustLineEntryExt", { // TrustLineAsset asset; // type of asset (with issuer) // int64 balance; // how much of this asset the user has. // // Asset defines the unit for this; -// +// // int64 limit; // balance cannot be above this // uint32 flags; // see TrustLineFlags -// +// // // reserved for future use // union switch (int v) // { @@ -971,7 +965,7 @@ xdr.union("TrustLineEntryExt", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -1044,7 +1038,7 @@ xdr.union("OfferEntryExt", { // Asset selling; // A // Asset buying; // B // int64 amount; // amount of A -// +// // /* price for this offer: // price of A in terms of B // price=AmountB/AmountA=priceNumerator/priceDenominator @@ -1052,7 +1046,7 @@ xdr.union("OfferEntryExt", { // */ // Price price; // uint32 flags; // see OfferEntryFlags -// +// // // reserved for future use // union switch (int v) // { @@ -1100,7 +1094,7 @@ xdr.union("DataEntryExt", { // AccountID accountID; // account this data belongs to // string64 dataName; // DataValue dataValue; -// +// // // reserved for future use // union switch (int v) // { @@ -1230,38 +1224,6 @@ xdr.union("Claimant", { }, }); -// === xdr source ============================================================ -// -// enum ClaimableBalanceIDType -// { -// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -// }; -// -// =========================================================================== -xdr.enum("ClaimableBalanceIdType", { - claimableBalanceIdTypeV0: 0, -}); - -// === xdr source ============================================================ -// -// union ClaimableBalanceID switch (ClaimableBalanceIDType type) -// { -// case CLAIMABLE_BALANCE_ID_TYPE_V0: -// Hash v0; -// }; -// -// =========================================================================== -xdr.union("ClaimableBalanceId", { - switchOn: xdr.lookup("ClaimableBalanceIdType"), - switchName: "type", - switches: [ - ["claimableBalanceIdTypeV0", "v0"], - ], - arms: { - v0: xdr.lookup("Hash"), - }, -}); - // === xdr source ============================================================ // // enum ClaimableBalanceFlags @@ -1312,7 +1274,7 @@ xdr.union("ClaimableBalanceEntryExtensionV1Ext", { // void; // } // ext; -// +// // uint32 flags; // see ClaimableBalanceFlags // }; // @@ -1351,16 +1313,16 @@ xdr.union("ClaimableBalanceEntryExt", { // { // // Unique identifier for this ClaimableBalanceEntry // ClaimableBalanceID balanceID; -// +// // // List of claimants with associated predicate // Claimant claimants<10>; -// +// // // Any asset including native // Asset asset; -// +// // // Amount of asset // int64 amount; -// +// // // reserved for future use // union switch (int v) // { @@ -1402,7 +1364,7 @@ xdr.struct("LiquidityPoolConstantProductParameters", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1427,7 +1389,7 @@ xdr.struct("LiquidityPoolEntryConstantProduct", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1453,14 +1415,14 @@ xdr.union("LiquidityPoolEntryBody", { // struct LiquidityPoolEntry // { // PoolID liquidityPoolID; -// +// // union switch (LiquidityPoolType type) // { // case LIQUIDITY_POOL_CONSTANT_PRODUCT: // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1494,7 +1456,7 @@ xdr.enum("ContractDataDurability", { // // struct ContractDataEntry { // ExtensionPoint ext; -// +// // SCAddress contract; // SCVal key; // ContractDataDurability durability; @@ -1596,7 +1558,7 @@ xdr.union("ContractCodeEntryExt", { // ContractCodeCostInputs costInputs; // } v1; // } ext; -// +// // Hash hash; // opaque code<>; // }; @@ -1646,7 +1608,7 @@ xdr.union("LedgerEntryExtensionV1Ext", { // struct LedgerEntryExtensionV1 // { // SponsorshipDescriptor sponsoringID; -// +// // union switch (int v) // { // case 0: @@ -1745,7 +1707,7 @@ xdr.union("LedgerEntryExt", { // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed -// +// // union switch (LedgerEntryType type) // { // case ACCOUNT: @@ -1770,7 +1732,7 @@ xdr.union("LedgerEntryExt", { // TTLEntry ttl; // } // data; -// +// // // reserved for future use // union switch (int v) // { @@ -1929,34 +1891,34 @@ xdr.struct("LedgerKeyTtl", [ // { // AccountID accountID; // } account; -// +// // case TRUSTLINE: // struct // { // AccountID accountID; // TrustLineAsset asset; // } trustLine; -// +// // case OFFER: // struct // { // AccountID sellerID; // int64 offerID; // } offer; -// +// // case DATA: // struct // { // AccountID accountID; // string64 dataName; // } data; -// +// // case CLAIMABLE_BALANCE: // struct // { // ClaimableBalanceID balanceID; // } claimableBalance; -// +// // case LIQUIDITY_POOL: // struct // { @@ -2052,15 +2014,13 @@ xdr.enum("EnvelopeType", { // enum BucketListType // { // LIVE = 0, -// HOT_ARCHIVE = 1, -// COLD_ARCHIVE = 2 +// HOT_ARCHIVE = 1 // }; // // =========================================================================== xdr.enum("BucketListType", { live: 0, hotArchive: 1, - coldArchive: 2, }); // === xdr source ============================================================ @@ -2089,10 +2049,9 @@ xdr.enum("BucketEntryType", { // { // HOT_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. // HOT_ARCHIVE_ARCHIVED = 0, // Entry is Archived -// HOT_ARCHIVE_LIVE = 1, // Entry was previously HOT_ARCHIVE_ARCHIVED, or HOT_ARCHIVE_DELETED, but +// HOT_ARCHIVE_LIVE = 1 // Entry was previously HOT_ARCHIVE_ARCHIVED, but // // has been added back to the live BucketList. // // Does not need to be persisted. -// HOT_ARCHIVE_DELETED = 2 // Entry deleted (Note: must be persisted in archive) // }; // // =========================================================================== @@ -2100,27 +2059,6 @@ xdr.enum("HotArchiveBucketEntryType", { hotArchiveMetaentry: -1, hotArchiveArchived: 0, hotArchiveLive: 1, - hotArchiveDeleted: 2, -}); - -// === xdr source ============================================================ -// -// enum ColdArchiveBucketEntryType -// { -// COLD_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. -// COLD_ARCHIVE_ARCHIVED_LEAF = 0, // Full LedgerEntry that was archived during the epoch -// COLD_ARCHIVE_DELETED_LEAF = 1, // LedgerKey that was deleted during the epoch -// COLD_ARCHIVE_BOUNDARY_LEAF = 2, // Dummy leaf representing low/high bound -// COLD_ARCHIVE_HASH = 3 // Intermediary Merkle hash entry -// }; -// -// =========================================================================== -xdr.enum("ColdArchiveBucketEntryType", { - coldArchiveMetaentry: -1, - coldArchiveArchivedLeaf: 0, - coldArchiveDeletedLeaf: 1, - coldArchiveBoundaryLeaf: 2, - coldArchiveHash: 3, }); // === xdr source ============================================================ @@ -2152,7 +2090,7 @@ xdr.union("BucketMetadataExt", { // { // // Indicates the protocol version used to create / merge this bucket. // uint32 ledgerVersion; -// +// // // reserved for future use // union switch (int v) // { @@ -2177,7 +2115,7 @@ xdr.struct("BucketMetadata", [ // case LIVEENTRY: // case INITENTRY: // LedgerEntry liveEntry; -// +// // case DEADENTRY: // LedgerKey deadEntry; // case METAENTRY: @@ -2207,9 +2145,8 @@ xdr.union("BucketEntry", { // { // case HOT_ARCHIVE_ARCHIVED: // LedgerEntry archivedEntry; -// +// // case HOT_ARCHIVE_LIVE: -// case HOT_ARCHIVE_DELETED: // LedgerKey key; // case HOT_ARCHIVE_METAENTRY: // BucketMetadata metaEntry; @@ -2222,7 +2159,6 @@ xdr.union("HotArchiveBucketEntry", { switches: [ ["hotArchiveArchived", "archivedEntry"], ["hotArchiveLive", "key"], - ["hotArchiveDeleted", "key"], ["hotArchiveMetaentry", "metaEntry"], ], arms: { @@ -2232,100 +2168,6 @@ xdr.union("HotArchiveBucketEntry", { }, }); -// === xdr source ============================================================ -// -// struct ColdArchiveArchivedLeaf -// { -// uint32 index; -// LedgerEntry archivedEntry; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveArchivedLeaf", [ - ["index", xdr.lookup("Uint32")], - ["archivedEntry", xdr.lookup("LedgerEntry")], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveDeletedLeaf -// { -// uint32 index; -// LedgerKey deletedKey; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveDeletedLeaf", [ - ["index", xdr.lookup("Uint32")], - ["deletedKey", xdr.lookup("LedgerKey")], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveBoundaryLeaf -// { -// uint32 index; -// bool isLowerBound; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveBoundaryLeaf", [ - ["index", xdr.lookup("Uint32")], - ["isLowerBound", xdr.bool()], -]); - -// === xdr source ============================================================ -// -// struct ColdArchiveHashEntry -// { -// uint32 index; -// uint32 level; -// Hash hash; -// }; -// -// =========================================================================== -xdr.struct("ColdArchiveHashEntry", [ - ["index", xdr.lookup("Uint32")], - ["level", xdr.lookup("Uint32")], - ["hash", xdr.lookup("Hash")], -]); - -// === xdr source ============================================================ -// -// union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) -// { -// case COLD_ARCHIVE_METAENTRY: -// BucketMetadata metaEntry; -// case COLD_ARCHIVE_ARCHIVED_LEAF: -// ColdArchiveArchivedLeaf archivedLeaf; -// case COLD_ARCHIVE_DELETED_LEAF: -// ColdArchiveDeletedLeaf deletedLeaf; -// case COLD_ARCHIVE_BOUNDARY_LEAF: -// ColdArchiveBoundaryLeaf boundaryLeaf; -// case COLD_ARCHIVE_HASH: -// ColdArchiveHashEntry hashEntry; -// }; -// -// =========================================================================== -xdr.union("ColdArchiveBucketEntry", { - switchOn: xdr.lookup("ColdArchiveBucketEntryType"), - switchName: "type", - switches: [ - ["coldArchiveMetaentry", "metaEntry"], - ["coldArchiveArchivedLeaf", "archivedLeaf"], - ["coldArchiveDeletedLeaf", "deletedLeaf"], - ["coldArchiveBoundaryLeaf", "boundaryLeaf"], - ["coldArchiveHash", "hashEntry"], - ], - arms: { - metaEntry: xdr.lookup("BucketMetadata"), - archivedLeaf: xdr.lookup("ColdArchiveArchivedLeaf"), - deletedLeaf: xdr.lookup("ColdArchiveDeletedLeaf"), - boundaryLeaf: xdr.lookup("ColdArchiveBoundaryLeaf"), - hashEntry: xdr.lookup("ColdArchiveHashEntry"), - }, -}); - // === xdr source ============================================================ // // typedef opaque UpgradeType<128>; @@ -2390,14 +2232,14 @@ xdr.union("StellarValueExt", { // { // Hash txSetHash; // transaction set to apply to previous ledger // TimePoint closeTime; // network close time -// +// // // upgrades to apply to the previous ledger (usually empty) // // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop // // unknown steps during consensus if needed. // // see notes below on 'LedgerUpgrade' for more detail // // max size is dictated by number of upgrade types (+ room for future) // UpgradeType upgrades<6>; -// +// // // reserved for future use // union switch (StellarValueType v) // { @@ -2464,7 +2306,7 @@ xdr.union("LedgerHeaderExtensionV1Ext", { // struct LedgerHeaderExtensionV1 // { // uint32 flags; // LedgerHeaderFlags -// +// // union switch (int v) // { // case 0: @@ -2511,28 +2353,28 @@ xdr.union("LedgerHeaderExt", { // StellarValue scpValue; // what consensus agreed to // Hash txSetResultHash; // the TransactionResultSet that led to this ledger // Hash bucketListHash; // hash of the ledger state -// +// // uint32 ledgerSeq; // sequence number of this ledger -// +// // int64 totalCoins; // total number of stroops in existence. // // 10,000,000 stroops in 1 XLM -// +// // int64 feePool; // fees burned since last inflation run // uint32 inflationSeq; // inflation sequence number -// +// // uint64 idPool; // last used global ID, used for generating objects -// +// // uint32 baseFee; // base fee per operation in stroops // uint32 baseReserve; // account base reserve in stroops -// +// // uint32 maxTxSetSize; // maximum size a transaction set can be -// +// // Hash skipList[4]; // hashes of ledgers in the past. allows you to jump back // // in time without walking the chain back ledger by ledger // // each slot contains the oldest ledger that is mod of // // either 50 5000 50000 or 500000 depending on index // // skipList[0] mod(50), skipList[1] mod(5000), etc -// +// // // reserved for future use // union switch (int v) // { @@ -2590,13 +2432,13 @@ xdr.enum("LedgerUpgradeType", { // === xdr source ============================================================ // // struct ConfigUpgradeSetKey { -// Hash contractID; +// ContractID contractID; // Hash contentHash; // }; // // =========================================================================== xdr.struct("ConfigUpgradeSetKey", [ - ["contractId", xdr.lookup("Hash")], + ["contractId", xdr.lookup("ContractId")], ["contentHash", xdr.lookup("Hash")], ]); @@ -2674,23 +2516,26 @@ xdr.enum("TxSetComponentType", { // === xdr source ============================================================ // -// typedef TransactionEnvelope TxExecutionThread<>; +// typedef TransactionEnvelope DependentTxCluster<>; // // =========================================================================== -xdr.typedef("TxExecutionThread", xdr.varArray(xdr.lookup("TransactionEnvelope"), 2147483647)); +xdr.typedef("DependentTxCluster", xdr.varArray(xdr.lookup("TransactionEnvelope"), 2147483647)); // === xdr source ============================================================ // -// typedef TxExecutionThread ParallelTxExecutionStage<>; +// typedef DependentTxCluster ParallelTxExecutionStage<>; // // =========================================================================== -xdr.typedef("ParallelTxExecutionStage", xdr.varArray(xdr.lookup("TxExecutionThread"), 2147483647)); +xdr.typedef("ParallelTxExecutionStage", xdr.varArray(xdr.lookup("DependentTxCluster"), 2147483647)); // === xdr source ============================================================ // // struct ParallelTxsComponent // { // int64* baseFee; +// // A sequence of stages that *may* have arbitrary data dependencies between +// // each other, i.e. in a general case the stage execution order may not be +// // arbitrarily shuffled without affecting the end result. // ParallelTxExecutionStage executionStages<>; // }; // @@ -2866,7 +2711,7 @@ xdr.union("TransactionHistoryEntryExt", { // { // uint32 ledgerSeq; // TransactionSet txSet; -// +// // // when v != 0, txSet must be empty // union switch (int v) // { @@ -2910,7 +2755,7 @@ xdr.union("TransactionHistoryResultEntryExt", { // { // uint32 ledgerSeq; // TransactionResultSet txResultSet; -// +// // // reserved for future use // union switch (int v) // { @@ -2952,7 +2797,7 @@ xdr.union("LedgerHeaderHistoryEntryExt", { // { // Hash hash; // LedgerHeader header; -// +// // // reserved for future use // union switch (int v) // { @@ -3024,7 +2869,8 @@ xdr.union("ScpHistoryEntry", { // LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger // LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger // LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger -// LEDGER_ENTRY_STATE = 3 // value of the entry +// LEDGER_ENTRY_STATE = 3, // value of the entry +// LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger // }; // // =========================================================================== @@ -3033,6 +2879,7 @@ xdr.enum("LedgerEntryChangeType", { ledgerEntryUpdated: 1, ledgerEntryRemoved: 2, ledgerEntryState: 3, + ledgerEntryRestored: 4, }); // === xdr source ============================================================ @@ -3047,6 +2894,8 @@ xdr.enum("LedgerEntryChangeType", { // LedgerKey removed; // case LEDGER_ENTRY_STATE: // LedgerEntry state; +// case LEDGER_ENTRY_RESTORED: +// LedgerEntry restored; // }; // // =========================================================================== @@ -3058,12 +2907,14 @@ xdr.union("LedgerEntryChange", { ["ledgerEntryUpdated", "updated"], ["ledgerEntryRemoved", "removed"], ["ledgerEntryState", "state"], + ["ledgerEntryRestored", "restored"], ], arms: { created: xdr.lookup("LedgerEntry"), updated: xdr.lookup("LedgerEntry"), removed: xdr.lookup("LedgerKey"), state: xdr.lookup("LedgerEntry"), + restored: xdr.lookup("LedgerEntry"), }, }); @@ -3179,10 +3030,10 @@ xdr.union("ContractEventBody", { // // We can use this to add more fields, or because it // // is first, to change ContractEvent into a union. // ExtensionPoint ext; -// -// Hash* contractID; +// +// ContractID* contractID; // ContractEventType type; -// +// // union switch (int v) // { // case 0: @@ -3198,7 +3049,7 @@ xdr.union("ContractEventBody", { // =========================================================================== xdr.struct("ContractEvent", [ ["ext", xdr.lookup("ExtensionPoint")], - ["contractId", xdr.option(xdr.lookup("Hash"))], + ["contractId", xdr.option(xdr.lookup("ContractId"))], ["type", xdr.lookup("ContractEventType")], ["body", xdr.lookup("ContractEventBody")], ]); @@ -3222,22 +3073,22 @@ xdr.struct("DiagnosticEvent", [ // struct SorobanTransactionMetaExtV1 // { // ExtensionPoint ext; -// +// // // The following are the components of the overall Soroban resource fee // // charged for the transaction. // // The following relation holds: // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged` -// // where `resourceFeeCharged` is the overall fee charged for the -// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` +// // where `resourceFeeCharged` is the overall fee charged for the +// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` // // i.e.we never charge more than the declared resource fee. -// // The inclusion fee for charged the Soroban transaction can be found using +// // The inclusion fee for charged the Soroban transaction can be found using // // the following equation: // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`. -// +// // // Total amount (in stroops) that has been charged for non-refundable // // Soroban resources. // // Non-refundable resources are charged based on the usage declared in -// // the transaction envelope (such as `instructions`, `readBytes` etc.) and +// // the transaction envelope (such as `instructions`, `readBytes` etc.) and // // is charged regardless of the success of the transaction. // int64 totalNonRefundableResourceFeeCharged; // // Total amount (in stroops) that has been charged for refundable @@ -3286,14 +3137,14 @@ xdr.union("SorobanTransactionMetaExt", { // === xdr source ============================================================ // -// struct SorobanTransactionMeta +// struct SorobanTransactionMeta // { // SorobanTransactionMetaExt ext; -// +// // ContractEvent events<>; // custom events populated by the // // contracts themselves. // SCVal returnValue; // return value of the host fn invocation -// +// // // Diagnostics events that are not hashed. // // This will contain all contract and diagnostic events. Even ones // // that were emitted in a failed contract call. @@ -3313,13 +3164,13 @@ xdr.struct("SorobanTransactionMeta", [ // struct TransactionMetaV3 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMeta operations<>; // meta for each operation // LedgerEntryChanges txChangesAfter; // tx level changes after operations are // // applied if any -// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for +// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). // }; // @@ -3332,6 +3183,102 @@ xdr.struct("TransactionMetaV3", [ ["sorobanMeta", xdr.option(xdr.lookup("SorobanTransactionMeta"))], ]); +// === xdr source ============================================================ +// +// struct OperationMetaV2 +// { +// ExtensionPoint ext; +// +// LedgerEntryChanges changes; +// +// ContractEvent events<>; +// }; +// +// =========================================================================== +xdr.struct("OperationMetaV2", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["changes", xdr.lookup("LedgerEntryChanges")], + ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], +]); + +// === xdr source ============================================================ +// +// struct SorobanTransactionMetaV2 +// { +// SorobanTransactionMetaExt ext; +// +// SCVal* returnValue; +// }; +// +// =========================================================================== +xdr.struct("SorobanTransactionMetaV2", [ + ["ext", xdr.lookup("SorobanTransactionMetaExt")], + ["returnValue", xdr.option(xdr.lookup("ScVal"))], +]); + +// === xdr source ============================================================ +// +// enum TransactionEventStage { +// // The event has happened before any one of the transactions has its +// // operations applied. +// TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, +// // The event has happened immediately after operations of the transaction +// // have been applied. +// TRANSACTION_EVENT_STAGE_AFTER_TX = 1, +// // The event has happened after every transaction had its operations +// // applied. +// TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 +// }; +// +// =========================================================================== +xdr.enum("TransactionEventStage", { + transactionEventStageBeforeAllTxes: 0, + transactionEventStageAfterTx: 1, + transactionEventStageAfterAllTxes: 2, +}); + +// === xdr source ============================================================ +// +// struct TransactionEvent { +// TransactionEventStage stage; // Stage at which an event has occurred. +// ContractEvent event; // The contract event that has occurred. +// }; +// +// =========================================================================== +xdr.struct("TransactionEvent", [ + ["stage", xdr.lookup("TransactionEventStage")], + ["event", xdr.lookup("ContractEvent")], +]); + +// === xdr source ============================================================ +// +// struct TransactionMetaV4 +// { +// ExtensionPoint ext; +// +// LedgerEntryChanges txChangesBefore; // tx level changes before operations +// // are applied if any +// OperationMetaV2 operations<>; // meta for each operation +// LedgerEntryChanges txChangesAfter; // tx level changes after operations are +// // applied if any +// SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for +// // Soroban transactions). +// +// TransactionEvent events<>; // Used for transaction-level events (like fee payment) +// DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information +// }; +// +// =========================================================================== +xdr.struct("TransactionMetaV4", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["txChangesBefore", xdr.lookup("LedgerEntryChanges")], + ["operations", xdr.varArray(xdr.lookup("OperationMetaV2"), 2147483647)], + ["txChangesAfter", xdr.lookup("LedgerEntryChanges")], + ["sorobanMeta", xdr.option(xdr.lookup("SorobanTransactionMetaV2"))], + ["events", xdr.varArray(xdr.lookup("TransactionEvent"), 2147483647)], + ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)], +]); + // === xdr source ============================================================ // // struct InvokeHostFunctionSuccessPreImage @@ -3358,6 +3305,8 @@ xdr.struct("InvokeHostFunctionSuccessPreImage", [ // TransactionMetaV2 v2; // case 3: // TransactionMetaV3 v3; +// case 4: +// TransactionMetaV4 v4; // }; // // =========================================================================== @@ -3369,12 +3318,14 @@ xdr.union("TransactionMeta", { [1, "v1"], [2, "v2"], [3, "v3"], + [4, "v4"], ], arms: { operations: xdr.varArray(xdr.lookup("OperationMeta"), 2147483647), v1: xdr.lookup("TransactionMetaV1"), v2: xdr.lookup("TransactionMetaV2"), v3: xdr.lookup("TransactionMetaV3"), + v4: xdr.lookup("TransactionMetaV4"), }, }); @@ -3394,6 +3345,28 @@ xdr.struct("TransactionResultMeta", [ ["txApplyProcessing", xdr.lookup("TransactionMeta")], ]); +// === xdr source ============================================================ +// +// struct TransactionResultMetaV1 +// { +// ExtensionPoint ext; +// +// TransactionResultPair result; +// LedgerEntryChanges feeProcessing; +// TransactionMeta txApplyProcessing; +// +// LedgerEntryChanges postTxApplyFeeProcessing; +// }; +// +// =========================================================================== +xdr.struct("TransactionResultMetaV1", [ + ["ext", xdr.lookup("ExtensionPoint")], + ["result", xdr.lookup("TransactionResultPair")], + ["feeProcessing", xdr.lookup("LedgerEntryChanges")], + ["txApplyProcessing", xdr.lookup("TransactionMeta")], + ["postTxApplyFeeProcessing", xdr.lookup("LedgerEntryChanges")], +]); + // === xdr source ============================================================ // // struct UpgradeEntryMeta @@ -3415,15 +3388,15 @@ xdr.struct("UpgradeEntryMeta", [ // LedgerHeaderHistoryEntry ledgerHeader; // // NB: txSet is sorted in "Hash order" // TransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; // }; @@ -3479,32 +3452,31 @@ xdr.union("LedgerCloseMetaExt", { // struct LedgerCloseMetaV1 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// -// // Size in bytes of BucketList, to support downstream +// +// // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. -// uint64 totalByteSizeOfBucketList; -// -// // Temp keys that are being evicted at this ledger. -// LedgerKey evictedTemporaryLedgerKeys<>; -// -// // Archived restorable ledger entries that are being -// // evicted at this ledger. -// LedgerEntry evictedPersistentLedgerEntries<>; +// uint64 totalByteSizeOfLiveSorobanState; +// +// // TTL and data/code keys that have been evicted at this ledger. +// LedgerKey evictedKeys<>; +// +// // Maintained for backwards compatibility, should never be populated. +// LedgerEntry unused<>; // }; // // =========================================================================== @@ -3515,9 +3487,50 @@ xdr.struct("LedgerCloseMetaV1", [ ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], - ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], - ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], - ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)], + ["totalByteSizeOfLiveSorobanState", xdr.lookup("Uint64")], + ["evictedKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], + ["unused", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)], +]); + +// === xdr source ============================================================ +// +// struct LedgerCloseMetaV2 +// { +// LedgerCloseMetaExt ext; +// +// LedgerHeaderHistoryEntry ledgerHeader; +// +// GeneralizedTransactionSet txSet; +// +// // NB: transactions are sorted in apply order here +// // fees for all transactions are processed first +// // followed by applying transactions +// TransactionResultMetaV1 txProcessing<>; +// +// // upgrades are applied last +// UpgradeEntryMeta upgradesProcessing<>; +// +// // other misc information attached to the ledger close +// SCPHistoryEntry scpInfo<>; +// +// // Size in bytes of live Soroban state, to support downstream +// // systems calculating storage fees correctly. +// uint64 totalByteSizeOfLiveSorobanState; +// +// // TTL and data/code keys that have been evicted at this ledger. +// LedgerKey evictedKeys<>; +// }; +// +// =========================================================================== +xdr.struct("LedgerCloseMetaV2", [ + ["ext", xdr.lookup("LedgerCloseMetaExt")], + ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], + ["txSet", xdr.lookup("GeneralizedTransactionSet")], + ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMetaV1"), 2147483647)], + ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], + ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], + ["totalByteSizeOfLiveSorobanState", xdr.lookup("Uint64")], + ["evictedKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ]); // === xdr source ============================================================ @@ -3528,6 +3541,8 @@ xdr.struct("LedgerCloseMetaV1", [ // LedgerCloseMetaV0 v0; // case 1: // LedgerCloseMetaV1 v1; +// case 2: +// LedgerCloseMetaV2 v2; // }; // // =========================================================================== @@ -3537,10 +3552,12 @@ xdr.union("LedgerCloseMeta", { switches: [ [0, "v0"], [1, "v1"], + [2, "v2"], ], arms: { v0: xdr.lookup("LedgerCloseMetaV0"), v1: xdr.lookup("LedgerCloseMetaV1"), + v2: xdr.lookup("LedgerCloseMetaV2"), }, }); @@ -3735,34 +3752,34 @@ xdr.struct("PeerAddress", [ // ERROR_MSG = 0, // AUTH = 2, // DONT_HAVE = 3, -// -// GET_PEERS = 4, // gets a list of peers this guy knows about +// // GET_PEERS (4) is deprecated +// // PEERS = 5, -// +// // GET_TX_SET = 6, // gets a particular txset by hash // TX_SET = 7, // GENERALIZED_TX_SET = 17, -// +// // TRANSACTION = 8, // pass on a tx you have heard about -// +// // // SCP // GET_SCP_QUORUMSET = 9, // SCP_QUORUMSET = 10, // SCP_MESSAGE = 11, // GET_SCP_STATE = 12, -// +// // // new messages // HELLO = 13, -// -// SURVEY_REQUEST = 14, -// SURVEY_RESPONSE = 15, -// +// +// // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST +// // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE +// // SEND_MORE = 16, // SEND_MORE_EXTENDED = 20, -// +// // FLOOD_ADVERT = 18, // FLOOD_DEMAND = 19, -// +// // TIME_SLICED_SURVEY_REQUEST = 21, // TIME_SLICED_SURVEY_RESPONSE = 22, // TIME_SLICED_SURVEY_START_COLLECTING = 23, @@ -3774,7 +3791,6 @@ xdr.enum("MessageType", { errorMsg: 0, auth: 2, dontHave: 3, - getPeers: 4, peers: 5, getTxSet: 6, txSet: 7, @@ -3785,8 +3801,6 @@ xdr.enum("MessageType", { scpMessage: 11, getScpState: 12, hello: 13, - surveyRequest: 14, - surveyResponse: 15, sendMore: 16, sendMoreExtended: 20, floodAdvert: 18, @@ -3815,13 +3829,11 @@ xdr.struct("DontHave", [ // // enum SurveyMessageCommandType // { -// SURVEY_TOPOLOGY = 0, // TIME_SLICED_SURVEY_TOPOLOGY = 1 // }; // // =========================================================================== xdr.enum("SurveyMessageCommandType", { - surveyTopology: 0, timeSlicedSurveyTopology: 1, }); @@ -3829,15 +3841,11 @@ xdr.enum("SurveyMessageCommandType", { // // enum SurveyMessageResponseType // { -// SURVEY_TOPOLOGY_RESPONSE_V0 = 0, -// SURVEY_TOPOLOGY_RESPONSE_V1 = 1, // SURVEY_TOPOLOGY_RESPONSE_V2 = 2 // }; // // =========================================================================== xdr.enum("SurveyMessageResponseType", { - surveyTopologyResponseV0: 0, - surveyTopologyResponseV1: 1, surveyTopologyResponseV2: 2, }); @@ -3939,20 +3947,6 @@ xdr.struct("TimeSlicedSurveyRequestMessage", [ ["outboundPeersIndex", xdr.lookup("Uint32")], ]); -// === xdr source ============================================================ -// -// struct SignedSurveyRequestMessage -// { -// Signature requestSignature; -// SurveyRequestMessage request; -// }; -// -// =========================================================================== -xdr.struct("SignedSurveyRequestMessage", [ - ["requestSignature", xdr.lookup("Signature")], - ["request", xdr.lookup("SurveyRequestMessage")], -]); - // === xdr source ============================================================ // // struct SignedTimeSlicedSurveyRequestMessage @@ -4008,20 +4002,6 @@ xdr.struct("TimeSlicedSurveyResponseMessage", [ ["nonce", xdr.lookup("Uint32")], ]); -// === xdr source ============================================================ -// -// struct SignedSurveyResponseMessage -// { -// Signature responseSignature; -// SurveyResponseMessage response; -// }; -// -// =========================================================================== -xdr.struct("SignedSurveyResponseMessage", [ - ["responseSignature", xdr.lookup("Signature")], - ["response", xdr.lookup("SurveyResponseMessage")], -]); - // === xdr source ============================================================ // // struct SignedTimeSlicedSurveyResponseMessage @@ -4047,12 +4027,12 @@ xdr.struct("SignedTimeSlicedSurveyResponseMessage", [ // uint64 bytesRead; // uint64 bytesWritten; // uint64 secondsConnected; -// +// // uint64 uniqueFloodBytesRecv; // uint64 duplicateFloodBytesRecv; // uint64 uniqueFetchBytesRecv; // uint64 duplicateFetchBytesRecv; -// +// // uint64 uniqueFloodMessageRecv; // uint64 duplicateFloodMessageRecv; // uint64 uniqueFetchMessageRecv; @@ -4078,13 +4058,6 @@ xdr.struct("PeerStats", [ ["duplicateFetchMessageRecv", xdr.lookup("Uint64")], ]); -// === xdr source ============================================================ -// -// typedef PeerStats PeerStatList<25>; -// -// =========================================================================== -xdr.typedef("PeerStatList", xdr.varArray(xdr.lookup("PeerStats"), 25)); - // === xdr source ============================================================ // // struct TimeSlicedNodeData @@ -4093,14 +4066,14 @@ xdr.typedef("PeerStatList", xdr.varArray(xdr.lookup("PeerStats"), 25)); // uint32 droppedAuthenticatedPeers; // uint32 totalInboundPeerCount; // uint32 totalOutboundPeerCount; -// +// // // SCP stats // uint32 p75SCPFirstToSelfLatencyMs; // uint32 p75SCPSelfToOtherLatencyMs; -// +// // // How many times the node lost sync in the time slice // uint32 lostSyncCount; -// +// // // Config data // bool isValidator; // uint32 maxInboundPeerCount; @@ -4142,49 +4115,6 @@ xdr.struct("TimeSlicedPeerData", [ // =========================================================================== xdr.typedef("TimeSlicedPeerDataList", xdr.varArray(xdr.lookup("TimeSlicedPeerData"), 25)); -// === xdr source ============================================================ -// -// struct TopologyResponseBodyV0 -// { -// PeerStatList inboundPeers; -// PeerStatList outboundPeers; -// -// uint32 totalInboundPeerCount; -// uint32 totalOutboundPeerCount; -// }; -// -// =========================================================================== -xdr.struct("TopologyResponseBodyV0", [ - ["inboundPeers", xdr.lookup("PeerStatList")], - ["outboundPeers", xdr.lookup("PeerStatList")], - ["totalInboundPeerCount", xdr.lookup("Uint32")], - ["totalOutboundPeerCount", xdr.lookup("Uint32")], -]); - -// === xdr source ============================================================ -// -// struct TopologyResponseBodyV1 -// { -// PeerStatList inboundPeers; -// PeerStatList outboundPeers; -// -// uint32 totalInboundPeerCount; -// uint32 totalOutboundPeerCount; -// -// uint32 maxInboundPeerCount; -// uint32 maxOutboundPeerCount; -// }; -// -// =========================================================================== -xdr.struct("TopologyResponseBodyV1", [ - ["inboundPeers", xdr.lookup("PeerStatList")], - ["outboundPeers", xdr.lookup("PeerStatList")], - ["totalInboundPeerCount", xdr.lookup("Uint32")], - ["totalOutboundPeerCount", xdr.lookup("Uint32")], - ["maxInboundPeerCount", xdr.lookup("Uint32")], - ["maxOutboundPeerCount", xdr.lookup("Uint32")], -]); - // === xdr source ============================================================ // // struct TopologyResponseBodyV2 @@ -4205,10 +4135,6 @@ xdr.struct("TopologyResponseBodyV2", [ // // union SurveyResponseBody switch (SurveyMessageResponseType type) // { -// case SURVEY_TOPOLOGY_RESPONSE_V0: -// TopologyResponseBodyV0 topologyResponseBodyV0; -// case SURVEY_TOPOLOGY_RESPONSE_V1: -// TopologyResponseBodyV1 topologyResponseBodyV1; // case SURVEY_TOPOLOGY_RESPONSE_V2: // TopologyResponseBodyV2 topologyResponseBodyV2; // }; @@ -4218,13 +4144,9 @@ xdr.union("SurveyResponseBody", { switchOn: xdr.lookup("SurveyMessageResponseType"), switchName: "type", switches: [ - ["surveyTopologyResponseV0", "topologyResponseBodyV0"], - ["surveyTopologyResponseV1", "topologyResponseBodyV1"], ["surveyTopologyResponseV2", "topologyResponseBodyV2"], ], arms: { - topologyResponseBodyV0: xdr.lookup("TopologyResponseBodyV0"), - topologyResponseBodyV1: xdr.lookup("TopologyResponseBodyV1"), topologyResponseBodyV2: xdr.lookup("TopologyResponseBodyV2"), }, }); @@ -4293,41 +4215,33 @@ xdr.struct("FloodDemand", [ // Auth auth; // case DONT_HAVE: // DontHave dontHave; -// case GET_PEERS: -// void; // case PEERS: // PeerAddress peers<100>; -// +// // case GET_TX_SET: // uint256 txSetHash; // case TX_SET: // TransactionSet txSet; // case GENERALIZED_TX_SET: // GeneralizedTransactionSet generalizedTxSet; -// +// // case TRANSACTION: // TransactionEnvelope transaction; -// -// case SURVEY_REQUEST: -// SignedSurveyRequestMessage signedSurveyRequestMessage; -// -// case SURVEY_RESPONSE: -// SignedSurveyResponseMessage signedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_REQUEST: // SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; -// +// // case TIME_SLICED_SURVEY_RESPONSE: // SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_START_COLLECTING: // SignedTimeSlicedSurveyStartCollectingMessage // signedTimeSlicedSurveyStartCollectingMessage; -// +// // case TIME_SLICED_SURVEY_STOP_COLLECTING: // SignedTimeSlicedSurveyStopCollectingMessage // signedTimeSlicedSurveyStopCollectingMessage; -// +// // // SCP // case GET_SCP_QUORUMSET: // uint256 qSetHash; @@ -4357,14 +4271,11 @@ xdr.union("StellarMessage", { ["hello", "hello"], ["auth", "auth"], ["dontHave", "dontHave"], - ["getPeers", xdr.void()], ["peers", "peers"], ["getTxSet", "txSetHash"], ["txSet", "txSet"], ["generalizedTxSet", "generalizedTxSet"], ["transaction", "transaction"], - ["surveyRequest", "signedSurveyRequestMessage"], - ["surveyResponse", "signedSurveyResponseMessage"], ["timeSlicedSurveyRequest", "signedTimeSlicedSurveyRequestMessage"], ["timeSlicedSurveyResponse", "signedTimeSlicedSurveyResponseMessage"], ["timeSlicedSurveyStartCollecting", "signedTimeSlicedSurveyStartCollectingMessage"], @@ -4388,8 +4299,6 @@ xdr.union("StellarMessage", { txSet: xdr.lookup("TransactionSet"), generalizedTxSet: xdr.lookup("GeneralizedTransactionSet"), transaction: xdr.lookup("TransactionEnvelope"), - signedSurveyRequestMessage: xdr.lookup("SignedSurveyRequestMessage"), - signedSurveyResponseMessage: xdr.lookup("SignedSurveyResponseMessage"), signedTimeSlicedSurveyRequestMessage: xdr.lookup("SignedTimeSlicedSurveyRequestMessage"), signedTimeSlicedSurveyResponseMessage: xdr.lookup("SignedTimeSlicedSurveyResponseMessage"), signedTimeSlicedSurveyStartCollectingMessage: xdr.lookup("SignedTimeSlicedSurveyStartCollectingMessage"), @@ -4631,11 +4540,11 @@ xdr.struct("PaymentOp", [ // int64 sendMax; // the maximum amount of sendAsset to // // send (excluding fees). // // The operation will fail if can't be met -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destAmount; // amount they end up with -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4655,13 +4564,13 @@ xdr.struct("PathPaymentStrictReceiveOp", [ // { // Asset sendAsset; // asset we pay with // int64 sendAmount; // amount of sendAsset to send (excluding fees) -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destMin; // the minimum amount of dest asset to // // be received // // The operation will fail if it can't be met -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4683,7 +4592,7 @@ xdr.struct("PathPaymentStrictSendOp", [ // Asset buying; // int64 amount; // amount being sold. if set to 0, delete the offer // Price price; // price of thing being sold in terms of what you are buying -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4706,7 +4615,7 @@ xdr.struct("ManageSellOfferOp", [ // int64 buyAmount; // amount being bought. if set to 0, delete the offer // Price price; // price of thing being bought in terms of what you are // // selling -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4743,18 +4652,18 @@ xdr.struct("CreatePassiveSellOfferOp", [ // struct SetOptionsOp // { // AccountID* inflationDest; // sets the inflation destination -// +// // uint32* clearFlags; // which flags to clear // uint32* setFlags; // which flags to set -// +// // // account threshold manipulation // uint32* masterWeight; // weight of the master account // uint32* lowThreshold; // uint32* medThreshold; // uint32* highThreshold; -// +// // string32* homeDomain; // sets the home domain -// +// // // Add, update or remove a signer for the account // // signer is deleted if the weight is 0 // Signer* signer; @@ -4779,16 +4688,16 @@ xdr.struct("SetOptionsOp", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // LiquidityPoolParameters liquidityPool; -// +// // // add other asset types here in the future // }; // @@ -4814,7 +4723,7 @@ xdr.union("ChangeTrustAsset", { // struct ChangeTrustOp // { // ChangeTrustAsset line; -// +// // // if limit is set to 0, deletes the trust line // int64 limit; // }; @@ -4831,7 +4740,7 @@ xdr.struct("ChangeTrustOp", [ // { // AccountID trustor; // AssetCode asset; -// +// // // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG // uint32 authorize; // }; @@ -4999,7 +4908,7 @@ xdr.struct("ClawbackClaimableBalanceOp", [ // { // AccountID trustor; // Asset asset; -// +// // uint32 clearFlags; // which flags to clear // uint32 setFlags; // which flags to set // }; @@ -5234,7 +5143,7 @@ xdr.enum("SorobanAuthorizedFunctionType", { // // This variant of auth payload for creating new contract instances // // doesn't allow specifying the constructor arguments, creating contracts // // with constructors that take arguments is only possible by authorizing -// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` +// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` // // (protocol 22+). // case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: // CreateContractArgs createContractHostFn; @@ -5281,7 +5190,7 @@ xdr.struct("SorobanAuthorizedInvocation", [ // { // SCAddress address; // int64 nonce; -// uint32 signatureExpirationLedger; +// uint32 signatureExpirationLedger; // SCVal signature; // }; // @@ -5344,6 +5253,13 @@ xdr.struct("SorobanAuthorizationEntry", [ ["rootInvocation", xdr.lookup("SorobanAuthorizedInvocation")], ]); +// === xdr source ============================================================ +// +// typedef SorobanAuthorizationEntry SorobanAuthorizationEntries<>; +// +// =========================================================================== +xdr.typedef("SorobanAuthorizationEntries", xdr.varArray(xdr.lookup("SorobanAuthorizationEntry"), 2147483647)); + // === xdr source ============================================================ // // struct InvokeHostFunctionOp @@ -5516,7 +5432,7 @@ xdr.union("OperationBody", { // // if not set, the runtime defaults to "sourceAccount" specified at // // the transaction level // MuxedAccount* sourceAccount; -// +// // union switch (OperationType type) // { // case CREATE_ACCOUNT: @@ -5604,7 +5520,7 @@ xdr.struct("HashIdPreimageOperationId", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5666,7 +5582,7 @@ xdr.struct("HashIdPreimageSorobanAuthorization", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5793,12 +5709,12 @@ xdr.struct("LedgerBounds", [ // struct PreconditionsV2 // { // TimeBounds* timeBounds; -// +// // // Transaction only valid for ledger numbers n such that // // minLedger <= n < maxLedger (if maxLedger == 0, then // // only minLedger is checked) // LedgerBounds* ledgerBounds; -// +// // // If NULL, only valid when sourceAccount's sequence number // // is seqNum - 1. Otherwise, valid when sourceAccount's // // sequence number n satisfies minSeqNum <= n < tx.seqNum. @@ -5806,16 +5722,16 @@ xdr.struct("LedgerBounds", [ // // is always raised to tx.seqNum, and a transaction is not // // valid if tx.seqNum is too high to ensure replay protection. // SequenceNumber* minSeqNum; -// +// // // For the transaction to be valid, the current ledger time must // // be at least minSeqAge greater than sourceAccount's seqTime. // Duration minSeqAge; -// +// // // For the transaction to be valid, the current ledger number // // must be at least minSeqLedgerGap greater than sourceAccount's // // seqLedger. // uint32 minSeqLedgerGap; -// +// // // For the transaction to be valid, there must be a signature // // corresponding to every Signer in this array, even if the // // signature is not otherwise required by the sourceAccount or @@ -5851,177 +5767,56 @@ xdr.enum("PreconditionType", { // === xdr source ============================================================ // -// union Preconditions switch (PreconditionType type) -// { -// case PRECOND_NONE: -// void; -// case PRECOND_TIME: -// TimeBounds timeBounds; -// case PRECOND_V2: -// PreconditionsV2 v2; -// }; -// -// =========================================================================== -xdr.union("Preconditions", { - switchOn: xdr.lookup("PreconditionType"), - switchName: "type", - switches: [ - ["precondNone", xdr.void()], - ["precondTime", "timeBounds"], - ["precondV2", "v2"], - ], - arms: { - timeBounds: xdr.lookup("TimeBounds"), - v2: xdr.lookup("PreconditionsV2"), - }, -}); - -// === xdr source ============================================================ -// -// struct LedgerFootprint -// { -// LedgerKey readOnly<>; -// LedgerKey readWrite<>; -// }; -// -// =========================================================================== -xdr.struct("LedgerFootprint", [ - ["readOnly", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], - ["readWrite", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], -]); - -// === xdr source ============================================================ -// -// enum ArchivalProofType -// { -// EXISTENCE = 0, -// NONEXISTENCE = 1 -// }; -// -// =========================================================================== -xdr.enum("ArchivalProofType", { - existence: 0, - nonexistence: 1, -}); - -// === xdr source ============================================================ -// -// struct ArchivalProofNode -// { -// uint32 index; -// Hash hash; -// }; -// -// =========================================================================== -xdr.struct("ArchivalProofNode", [ - ["index", xdr.lookup("Uint32")], - ["hash", xdr.lookup("Hash")], -]); - -// === xdr source ============================================================ -// -// typedef ArchivalProofNode ProofLevel<>; -// -// =========================================================================== -xdr.typedef("ProofLevel", xdr.varArray(xdr.lookup("ArchivalProofNode"), 2147483647)); - -// === xdr source ============================================================ -// -// struct NonexistenceProofBody -// { -// ColdArchiveBucketEntry entriesToProve<>; -// -// // Vector of vectors, where proofLevels[level] -// // contains all HashNodes that correspond with that level -// ProofLevel proofLevels<>; -// }; -// -// =========================================================================== -xdr.struct("NonexistenceProofBody", [ - ["entriesToProve", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["proofLevels", xdr.varArray(xdr.lookup("ProofLevel"), 2147483647)], -]); - -// === xdr source ============================================================ -// -// struct ExistenceProofBody -// { -// LedgerKey keysToProve<>; -// -// // Bounds for each key being proved, where bound[n] -// // corresponds to keysToProve[n] -// ColdArchiveBucketEntry lowBoundEntries<>; -// ColdArchiveBucketEntry highBoundEntries<>; -// -// // Vector of vectors, where proofLevels[level] -// // contains all HashNodes that correspond with that level -// ProofLevel proofLevels<>; -// }; -// -// =========================================================================== -xdr.struct("ExistenceProofBody", [ - ["keysToProve", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], - ["lowBoundEntries", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["highBoundEntries", xdr.varArray(xdr.lookup("ColdArchiveBucketEntry"), 2147483647)], - ["proofLevels", xdr.varArray(xdr.lookup("ProofLevel"), 2147483647)], -]); - -// === xdr source ============================================================ -// -// union switch (ArchivalProofType t) -// { -// case EXISTENCE: -// NonexistenceProofBody nonexistenceProof; -// case NONEXISTENCE: -// ExistenceProofBody existenceProof; -// } +// union Preconditions switch (PreconditionType type) +// { +// case PRECOND_NONE: +// void; +// case PRECOND_TIME: +// TimeBounds timeBounds; +// case PRECOND_V2: +// PreconditionsV2 v2; +// }; // // =========================================================================== -xdr.union("ArchivalProofBody", { - switchOn: xdr.lookup("ArchivalProofType"), - switchName: "t", +xdr.union("Preconditions", { + switchOn: xdr.lookup("PreconditionType"), + switchName: "type", switches: [ - ["existence", "nonexistenceProof"], - ["nonexistence", "existenceProof"], + ["precondNone", xdr.void()], + ["precondTime", "timeBounds"], + ["precondV2", "v2"], ], arms: { - nonexistenceProof: xdr.lookup("NonexistenceProofBody"), - existenceProof: xdr.lookup("ExistenceProofBody"), + timeBounds: xdr.lookup("TimeBounds"), + v2: xdr.lookup("PreconditionsV2"), }, }); // === xdr source ============================================================ // -// struct ArchivalProof +// struct LedgerFootprint // { -// uint32 epoch; // AST Subtree for this proof -// -// union switch (ArchivalProofType t) -// { -// case EXISTENCE: -// NonexistenceProofBody nonexistenceProof; -// case NONEXISTENCE: -// ExistenceProofBody existenceProof; -// } body; +// LedgerKey readOnly<>; +// LedgerKey readWrite<>; // }; // // =========================================================================== -xdr.struct("ArchivalProof", [ - ["epoch", xdr.lookup("Uint32")], - ["body", xdr.lookup("ArchivalProofBody")], +xdr.struct("LedgerFootprint", [ + ["readOnly", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], + ["readWrite", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ]); // === xdr source ============================================================ // // struct SorobanResources -// { +// { // // The ledger footprint of the transaction. // LedgerFootprint footprint; // // The maximum number of instructions this transaction can use -// uint32 instructions; -// -// // The maximum number of bytes this transaction can read from ledger -// uint32 readBytes; +// uint32 instructions; +// +// // The maximum number of bytes this transaction can read from disk backed entries +// uint32 diskReadBytes; // // The maximum number of bytes this transaction can write to ledger // uint32 writeBytes; // }; @@ -6030,10 +5825,25 @@ xdr.struct("ArchivalProof", [ xdr.struct("SorobanResources", [ ["footprint", xdr.lookup("LedgerFootprint")], ["instructions", xdr.lookup("Uint32")], - ["readBytes", xdr.lookup("Uint32")], + ["diskReadBytes", xdr.lookup("Uint32")], ["writeBytes", xdr.lookup("Uint32")], ]); +// === xdr source ============================================================ +// +// struct SorobanResourcesExtV0 +// { +// // Vector of indices representing what Soroban +// // entries in the footprint are archived, based on the +// // order of keys provided in the readWrite footprint. +// uint32 archivedSorobanEntries<>; +// }; +// +// =========================================================================== +xdr.struct("SorobanResourcesExtV0", [ + ["archivedSorobanEntries", xdr.varArray(xdr.lookup("Uint32"), 2147483647)], +]); + // === xdr source ============================================================ // // union switch (int v) @@ -6041,7 +5851,7 @@ xdr.struct("SorobanResources", [ // case 0: // void; // case 1: -// ArchivalProof proofs<>; +// SorobanResourcesExtV0 resourceExt; // } // // =========================================================================== @@ -6050,10 +5860,10 @@ xdr.union("SorobanTransactionDataExt", { switchName: "v", switches: [ [0, xdr.void()], - [1, "proofs"], + [1, "resourceExt"], ], arms: { - proofs: xdr.varArray(xdr.lookup("ArchivalProof"), 2147483647), + resourceExt: xdr.lookup("SorobanResourcesExtV0"), }, }); @@ -6066,11 +5876,11 @@ xdr.union("SorobanTransactionDataExt", { // case 0: // void; // case 1: -// ArchivalProof proofs<>; +// SorobanResourcesExtV0 resourceExt; // } ext; // SorobanResources resources; // // Amount of the transaction `fee` allocated to the Soroban resource fees. -// // The fraction of `resourceFee` corresponding to `resources` specified +// // The fraction of `resourceFee` corresponding to `resources` specified // // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // // well as fees for the transaction size. // // The remaining part of the fee is refundable and the charged value is @@ -6181,21 +5991,20 @@ xdr.union("TransactionExt", { // { // // account used to run the transaction // MuxedAccount sourceAccount; -// +// // // the fee the sourceAccount will pay // uint32 fee; -// +// // // sequence number to consume in the account // SequenceNumber seqNum; -// +// // // validity conditions // Preconditions cond; -// +// // Memo memo; -// +// // Operation operations; -// -// // reserved for future use +// // union switch (int v) // { // case 0: @@ -6414,11 +6223,11 @@ xdr.enum("ClaimAtomType", { // // emitted to identify the offer // uint256 sellerEd25519; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6441,11 +6250,11 @@ xdr.struct("ClaimOfferAtomV0", [ // // emitted to identify the offer // AccountID sellerID; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6466,11 +6275,11 @@ xdr.struct("ClaimOfferAtom", [ // struct ClaimLiquidityAtom // { // PoolID liquidityPoolID; -// +// // // amount and asset taken from the pool // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the pool // Asset assetBought; // int64 amountBought; @@ -6519,7 +6328,7 @@ xdr.union("ClaimAtom", { // { // // codes considered as "success" for the operation // CREATE_ACCOUNT_SUCCESS = 0, // account was created -// +// // // codes considered as "failure" for the operation // CREATE_ACCOUNT_MALFORMED = -1, // invalid destination // CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account @@ -6571,7 +6380,7 @@ xdr.union("CreateAccountResult", { // { // // codes considered as "success" for the operation // PAYMENT_SUCCESS = 0, // payment successfully completed -// +// // // codes considered as "failure" for the operation // PAYMENT_MALFORMED = -1, // bad input // PAYMENT_UNDERFUNDED = -2, // not enough funds in source account @@ -6642,7 +6451,7 @@ xdr.union("PaymentResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = @@ -6773,7 +6582,7 @@ xdr.union("PathPaymentStrictReceiveResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_SEND_UNDERFUNDED = @@ -6886,7 +6695,7 @@ xdr.union("PathPaymentStrictSendResult", { // { // // codes considered as "success" for the operation // MANAGE_SELL_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_SELL_OFFER_SELL_NO_TRUST = @@ -6900,11 +6709,11 @@ xdr.union("PathPaymentStrictSendResult", { // -8, // would cross an offer from the same user // MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_SELL_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_SELL_OFFER_LOW_RESERVE = // -12 // not enough funds to create a new Offer // }; @@ -6973,7 +6782,7 @@ xdr.union("ManageOfferSuccessResultOffer", { // { // // offers that got claimed while creating this offer // ClaimAtom offersClaimed<>; -// +// // union switch (ManageOfferEffect effect) // { // case MANAGE_OFFER_CREATED: @@ -7042,7 +6851,7 @@ xdr.union("ManageSellOfferResult", { // { // // codes considered as "success" for the operation // MANAGE_BUY_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling @@ -7054,11 +6863,11 @@ xdr.union("ManageSellOfferResult", { // MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user // MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_BUY_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer // }; // @@ -7648,7 +7457,7 @@ xdr.union("ClaimClaimableBalanceResult", { // { // // codes considered as "success" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1, // BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2, @@ -7696,7 +7505,7 @@ xdr.union("BeginSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // END_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1 // }; @@ -7736,7 +7545,7 @@ xdr.union("EndSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // REVOKE_SPONSORSHIP_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, // REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, @@ -7791,7 +7600,7 @@ xdr.union("RevokeSponsorshipResult", { // { // // codes considered as "success" for the operation // CLAWBACK_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_MALFORMED = -1, // CLAWBACK_NOT_CLAWBACK_ENABLED = -2, @@ -7842,7 +7651,7 @@ xdr.union("ClawbackResult", { // { // // codes considered as "success" for the operation // CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, // CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2, @@ -7890,7 +7699,7 @@ xdr.union("ClawbackClaimableBalanceResult", { // { // // codes considered as "success" for the operation // SET_TRUST_LINE_FLAGS_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // SET_TRUST_LINE_FLAGS_MALFORMED = -1, // SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, @@ -7946,7 +7755,7 @@ xdr.union("SetTrustLineFlagsResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input // LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the @@ -8013,7 +7822,7 @@ xdr.union("LiquidityPoolDepositResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input // LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the @@ -8071,7 +7880,7 @@ xdr.union("LiquidityPoolWithdrawResult", { // { // // codes considered as "success" for the operation // INVOKE_HOST_FUNCTION_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // INVOKE_HOST_FUNCTION_MALFORMED = -1, // INVOKE_HOST_FUNCTION_TRAPPED = -2, @@ -8127,7 +7936,7 @@ xdr.union("InvokeHostFunctionResult", { // { // // codes considered as "success" for the operation // EXTEND_FOOTPRINT_TTL_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // EXTEND_FOOTPRINT_TTL_MALFORMED = -1, // EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8174,7 +7983,7 @@ xdr.union("ExtendFootprintTtlResult", { // { // // codes considered as "success" for the operation // RESTORE_FOOTPRINT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // RESTORE_FOOTPRINT_MALFORMED = -1, // RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8220,7 +8029,7 @@ xdr.union("RestoreFootprintResult", { // enum OperationResultCode // { // opINNER = 0, // inner object result is valid -// +// // opBAD_AUTH = -1, // too few valid signatures / wrong network // opNO_ACCOUNT = -2, // source account was not found // opNOT_SUPPORTED = -3, // operation not supported at this time @@ -8460,21 +8269,21 @@ xdr.union("OperationResult", { // { // txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded // txSUCCESS = 0, // all operations succeeded -// +// // txFAILED = -1, // one of the operations failed (none were applied) -// +// // txTOO_EARLY = -2, // ledger closeTime before minTime // txTOO_LATE = -3, // ledger closeTime after maxTime // txMISSING_OPERATION = -4, // no operation was specified // txBAD_SEQ = -5, // sequence number does not match source account -// +// // txBAD_AUTH = -6, // too few valid signatures / wrong network // txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve // txNO_ACCOUNT = -8, // source account not found // txINSUFFICIENT_FEE = -9, // fee is too small // txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction // txINTERNAL_ERROR = -11, // an unknown error occurred -// +// // txNOT_SUPPORTED = -12, // transaction type not supported // txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed // txBAD_SPONSORSHIP = -14, // sponsorship not confirmed @@ -8586,7 +8395,7 @@ xdr.union("InnerTransactionResultExt", { // { // // Always 0. Here for binary compatibility. // int64 feeCharged; -// +// // union switch (TransactionResultCode code) // { // // txFEE_BUMP_INNER_SUCCESS is not included @@ -8612,7 +8421,7 @@ xdr.union("InnerTransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8727,7 +8536,7 @@ xdr.union("TransactionResultExt", { // struct TransactionResult // { // int64 feeCharged; // actual fee charged for the transaction -// +// // union switch (TransactionResultCode code) // { // case txFEE_BUMP_INNER_SUCCESS: @@ -8755,7 +8564,7 @@ xdr.union("TransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -9003,6 +8812,13 @@ xdr.typedef("NodeId", xdr.lookup("PublicKey")); // =========================================================================== xdr.typedef("AccountId", xdr.lookup("PublicKey")); +// === xdr source ============================================================ +// +// typedef Hash ContractID; +// +// =========================================================================== +xdr.typedef("ContractId", xdr.lookup("Hash")); + // === xdr source ============================================================ // // struct Curve25519Secret @@ -9084,10 +8900,10 @@ xdr.enum("BinaryFuseFilterType", { // struct SerializedBinaryFuseFilter // { // BinaryFuseFilterType type; -// +// // // Seed used to hash input to filter // ShortHashSeed inputHashSeed; -// +// // // Seed used for internal filter hash operations // ShortHashSeed filterSeed; // uint32 segmentLength; @@ -9095,7 +8911,7 @@ xdr.enum("BinaryFuseFilterType", { // uint32 segmentCount; // uint32 segmentCountLength; // uint32 fingerprintLength; // Length in terms of element count, not bytes -// +// // // Array of uint8_t, uint16_t, or uint32_t depending on filter type // opaque fingerprints<>; // }; @@ -9113,6 +8929,45 @@ xdr.struct("SerializedBinaryFuseFilter", [ ["fingerprints", xdr.varOpaque()], ]); +// === xdr source ============================================================ +// +// typedef Hash PoolID; +// +// =========================================================================== +xdr.typedef("PoolId", xdr.lookup("Hash")); + +// === xdr source ============================================================ +// +// enum ClaimableBalanceIDType +// { +// CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +// }; +// +// =========================================================================== +xdr.enum("ClaimableBalanceIdType", { + claimableBalanceIdTypeV0: 0, +}); + +// === xdr source ============================================================ +// +// union ClaimableBalanceID switch (ClaimableBalanceIDType type) +// { +// case CLAIMABLE_BALANCE_ID_TYPE_V0: +// Hash v0; +// }; +// +// =========================================================================== +xdr.union("ClaimableBalanceId", { + switchOn: xdr.lookup("ClaimableBalanceIdType"), + switchName: "type", + switches: [ + ["claimableBalanceIdTypeV0", "v0"], + ], + arms: { + v0: xdr.lookup("Hash"), + }, +}); + // === xdr source ============================================================ // // enum SCValType @@ -9120,49 +8975,49 @@ xdr.struct("SerializedBinaryFuseFilter", [ // SCV_BOOL = 0, // SCV_VOID = 1, // SCV_ERROR = 2, -// +// // // 32 bits is the smallest type in WASM or XDR; no need for u8/u16. // SCV_U32 = 3, // SCV_I32 = 4, -// +// // // 64 bits is naturally supported by both WASM and XDR also. // SCV_U64 = 5, // SCV_I64 = 6, -// +// // // Time-related u64 subtypes with their own functions and formatting. // SCV_TIMEPOINT = 7, // SCV_DURATION = 8, -// +// // // 128 bits is naturally supported by Rust and we use it for Soroban // // fixed-point arithmetic prices / balances / similar "quantities". These // // are represented in XDR as a pair of 2 u64s. // SCV_U128 = 9, // SCV_I128 = 10, -// +// // // 256 bits is the size of sha256 output, ed25519 keys, and the EVM machine // // word, so for interop use we include this even though it requires a small // // amount of Rust guest and/or host library code. // SCV_U256 = 11, // SCV_I256 = 12, -// +// // // Bytes come in 3 flavors, 2 of which have meaningfully different // // formatting and validity-checking / domain-restriction. // SCV_BYTES = 13, // SCV_STRING = 14, // SCV_SYMBOL = 15, -// +// // // Vecs and maps are just polymorphic containers of other ScVals. // SCV_VEC = 16, // SCV_MAP = 17, -// +// // // Address is the universal identifier for contracts and classic // // accounts. // SCV_ADDRESS = 18, -// +// // // The following are the internal SCVal variants that are not -// // exposed to the contracts. +// // exposed to the contracts. // SCV_CONTRACT_INSTANCE = 19, -// +// // // SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique // // symbolic SCVals used as the key for ledger entries for a contract's // // instance and an address' nonce, respectively. @@ -9398,15 +9253,35 @@ xdr.union("ContractExecutable", { // enum SCAddressType // { // SC_ADDRESS_TYPE_ACCOUNT = 0, -// SC_ADDRESS_TYPE_CONTRACT = 1 +// SC_ADDRESS_TYPE_CONTRACT = 1, +// SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, +// SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, +// SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 // }; // // =========================================================================== xdr.enum("ScAddressType", { scAddressTypeAccount: 0, scAddressTypeContract: 1, + scAddressTypeMuxedAccount: 2, + scAddressTypeClaimableBalance: 3, + scAddressTypeLiquidityPool: 4, }); +// === xdr source ============================================================ +// +// struct MuxedEd25519Account +// { +// uint64 id; +// uint256 ed25519; +// }; +// +// =========================================================================== +xdr.struct("MuxedEd25519Account", [ + ["id", xdr.lookup("Uint64")], + ["ed25519", xdr.lookup("Uint256")], +]); + // === xdr source ============================================================ // // union SCAddress switch (SCAddressType type) @@ -9414,7 +9289,13 @@ xdr.enum("ScAddressType", { // case SC_ADDRESS_TYPE_ACCOUNT: // AccountID accountId; // case SC_ADDRESS_TYPE_CONTRACT: -// Hash contractId; +// ContractID contractId; +// case SC_ADDRESS_TYPE_MUXED_ACCOUNT: +// MuxedEd25519Account muxedAccount; +// case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: +// ClaimableBalanceID claimableBalanceId; +// case SC_ADDRESS_TYPE_LIQUIDITY_POOL: +// PoolID liquidityPoolId; // }; // // =========================================================================== @@ -9424,10 +9305,16 @@ xdr.union("ScAddress", { switches: [ ["scAddressTypeAccount", "accountId"], ["scAddressTypeContract", "contractId"], + ["scAddressTypeMuxedAccount", "muxedAccount"], + ["scAddressTypeClaimableBalance", "claimableBalanceId"], + ["scAddressTypeLiquidityPool", "liquidityPoolId"], ], arms: { accountId: xdr.lookup("AccountId"), - contractId: xdr.lookup("Hash"), + contractId: xdr.lookup("ContractId"), + muxedAccount: xdr.lookup("MuxedEd25519Account"), + claimableBalanceId: xdr.lookup("ClaimableBalanceId"), + liquidityPoolId: xdr.lookup("PoolId"), }, }); @@ -9501,19 +9388,19 @@ xdr.struct("ScContractInstance", [ // // union SCVal switch (SCValType type) // { -// +// // case SCV_BOOL: // bool b; // case SCV_VOID: // void; // case SCV_ERROR: // SCError error; -// +// // case SCV_U32: // uint32 u32; // case SCV_I32: // int32 i32; -// +// // case SCV_U64: // uint64 u64; // case SCV_I64: @@ -9522,43 +9409,42 @@ xdr.struct("ScContractInstance", [ // TimePoint timepoint; // case SCV_DURATION: // Duration duration; -// +// // case SCV_U128: // UInt128Parts u128; // case SCV_I128: // Int128Parts i128; -// +// // case SCV_U256: // UInt256Parts u256; // case SCV_I256: // Int256Parts i256; -// +// // case SCV_BYTES: // SCBytes bytes; // case SCV_STRING: // SCString str; // case SCV_SYMBOL: // SCSymbol sym; -// +// // // Vec and Map are recursive so need to live // // behind an option, due to xdrpp limitations. // case SCV_VEC: // SCVec *vec; // case SCV_MAP: // SCMap *map; -// +// // case SCV_ADDRESS: // SCAddress address; -// +// // // Special SCVals reserved for system-constructed contract-data // // ledger keys, not generally usable elsewhere. +// case SCV_CONTRACT_INSTANCE: +// SCContractInstance instance; // case SCV_LEDGER_KEY_CONTRACT_INSTANCE: // void; // case SCV_LEDGER_KEY_NONCE: // SCNonceKey nonce_key; -// -// case SCV_CONTRACT_INSTANCE: -// SCContractInstance instance; // }; // // =========================================================================== @@ -9585,9 +9471,9 @@ xdr.union("ScVal", { ["scvVec", "vec"], ["scvMap", "map"], ["scvAddress", "address"], + ["scvContractInstance", "instance"], ["scvLedgerKeyContractInstance", xdr.void()], ["scvLedgerKeyNonce", "nonceKey"], - ["scvContractInstance", "instance"], ], arms: { b: xdr.bool(), @@ -9608,8 +9494,8 @@ xdr.union("ScVal", { vec: xdr.option(xdr.lookup("ScVec")), map: xdr.option(xdr.lookup("ScMap")), address: xdr.lookup("ScAddress"), - nonceKey: xdr.lookup("ScNonceKey"), instance: xdr.lookup("ScContractInstance"), + nonceKey: xdr.lookup("ScNonceKey"), }, }); @@ -9733,7 +9619,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // enum SCSpecType // { // SC_SPEC_TYPE_VAL = 0, -// +// // // Types with no parameters. // SC_SPEC_TYPE_BOOL = 1, // SC_SPEC_TYPE_VOID = 2, @@ -9752,7 +9638,8 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_STRING = 16, // SC_SPEC_TYPE_SYMBOL = 17, // SC_SPEC_TYPE_ADDRESS = 19, -// +// SC_SPEC_TYPE_MUXED_ADDRESS = 20, +// // // Types with parameters. // SC_SPEC_TYPE_OPTION = 1000, // SC_SPEC_TYPE_RESULT = 1001, @@ -9760,7 +9647,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_MAP = 1004, // SC_SPEC_TYPE_TUPLE = 1005, // SC_SPEC_TYPE_BYTES_N = 1006, -// +// // // User defined types. // SC_SPEC_TYPE_UDT = 2000 // }; @@ -9785,6 +9672,7 @@ xdr.enum("ScSpecType", { scSpecTypeString: 16, scSpecTypeSymbol: 17, scSpecTypeAddress: 19, + scSpecTypeMuxedAddress: 20, scSpecTypeOption: 1000, scSpecTypeResult: 1001, scSpecTypeVec: 1002, @@ -9904,6 +9792,7 @@ xdr.struct("ScSpecTypeUdt", [ // case SC_SPEC_TYPE_STRING: // case SC_SPEC_TYPE_SYMBOL: // case SC_SPEC_TYPE_ADDRESS: +// case SC_SPEC_TYPE_MUXED_ADDRESS: // void; // case SC_SPEC_TYPE_OPTION: // SCSpecTypeOption option; @@ -9944,6 +9833,7 @@ xdr.union("ScSpecTypeDef", { ["scSpecTypeString", xdr.void()], ["scSpecTypeSymbol", xdr.void()], ["scSpecTypeAddress", xdr.void()], + ["scSpecTypeMuxedAddress", xdr.void()], ["scSpecTypeOption", "option"], ["scSpecTypeResult", "result"], ["scSpecTypeVec", "vec"], @@ -10185,6 +10075,76 @@ xdr.struct("ScSpecFunctionV0", [ ["outputs", xdr.varArray(xdr.lookup("ScSpecTypeDef"), 1)], ]); +// === xdr source ============================================================ +// +// enum SCSpecEventParamLocationV0 +// { +// SC_SPEC_EVENT_PARAM_LOCATION_DATA = 0, +// SC_SPEC_EVENT_PARAM_LOCATION_TOPIC_LIST = 1 +// }; +// +// =========================================================================== +xdr.enum("ScSpecEventParamLocationV0", { + scSpecEventParamLocationData: 0, + scSpecEventParamLocationTopicList: 1, +}); + +// === xdr source ============================================================ +// +// struct SCSpecEventParamV0 +// { +// string doc; +// string name<30>; +// SCSpecTypeDef type; +// SCSpecEventParamLocationV0 location; +// }; +// +// =========================================================================== +xdr.struct("ScSpecEventParamV0", [ + ["doc", xdr.string(SC_SPEC_DOC_LIMIT)], + ["name", xdr.string(30)], + ["type", xdr.lookup("ScSpecTypeDef")], + ["location", xdr.lookup("ScSpecEventParamLocationV0")], +]); + +// === xdr source ============================================================ +// +// enum SCSpecEventDataFormat +// { +// SC_SPEC_EVENT_DATA_FORMAT_SINGLE_VALUE = 0, +// SC_SPEC_EVENT_DATA_FORMAT_VEC = 1, +// SC_SPEC_EVENT_DATA_FORMAT_MAP = 2 +// }; +// +// =========================================================================== +xdr.enum("ScSpecEventDataFormat", { + scSpecEventDataFormatSingleValue: 0, + scSpecEventDataFormatVec: 1, + scSpecEventDataFormatMap: 2, +}); + +// === xdr source ============================================================ +// +// struct SCSpecEventV0 +// { +// string doc; +// string lib<80>; +// SCSymbol name; +// SCSymbol prefixTopics<2>; +// SCSpecEventParamV0 params<50>; +// SCSpecEventDataFormat dataFormat; +// }; +// +// =========================================================================== +xdr.struct("ScSpecEventV0", [ + ["doc", xdr.string(SC_SPEC_DOC_LIMIT)], + ["lib", xdr.string(80)], + ["name", xdr.lookup("ScSymbol")], + ["prefixTopics", xdr.varArray(xdr.lookup("ScSymbol"), 2)], + ["params", xdr.varArray(xdr.lookup("ScSpecEventParamV0"), 50)], + ["dataFormat", xdr.lookup("ScSpecEventDataFormat")], +]); + // === xdr source ============================================================ // // enum SCSpecEntryKind @@ -10193,7 +10153,8 @@ xdr.struct("ScSpecFunctionV0", [ // SC_SPEC_ENTRY_UDT_STRUCT_V0 = 1, // SC_SPEC_ENTRY_UDT_UNION_V0 = 2, // SC_SPEC_ENTRY_UDT_ENUM_V0 = 3, -// SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4 +// SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4, +// SC_SPEC_ENTRY_EVENT_V0 = 5 // }; // // =========================================================================== @@ -10203,6 +10164,7 @@ xdr.enum("ScSpecEntryKind", { scSpecEntryUdtUnionV0: 2, scSpecEntryUdtEnumV0: 3, scSpecEntryUdtErrorEnumV0: 4, + scSpecEntryEventV0: 5, }); // === xdr source ============================================================ @@ -10219,6 +10181,8 @@ xdr.enum("ScSpecEntryKind", { // SCSpecUDTEnumV0 udtEnumV0; // case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0: // SCSpecUDTErrorEnumV0 udtErrorEnumV0; +// case SC_SPEC_ENTRY_EVENT_V0: +// SCSpecEventV0 eventV0; // }; // // =========================================================================== @@ -10231,6 +10195,7 @@ xdr.union("ScSpecEntry", { ["scSpecEntryUdtUnionV0", "udtUnionV0"], ["scSpecEntryUdtEnumV0", "udtEnumV0"], ["scSpecEntryUdtErrorEnumV0", "udtErrorEnumV0"], + ["scSpecEntryEventV0", "eventV0"], ], arms: { functionV0: xdr.lookup("ScSpecFunctionV0"), @@ -10238,6 +10203,7 @@ xdr.union("ScSpecEntry", { udtUnionV0: xdr.lookup("ScSpecUdtUnionV0"), udtEnumV0: xdr.lookup("ScSpecUdtEnumV0"), udtErrorEnumV0: xdr.lookup("ScSpecUdtErrorEnumV0"), + eventV0: xdr.lookup("ScSpecEventV0"), }, }); @@ -10264,7 +10230,7 @@ xdr.struct("ConfigSettingContractExecutionLanesV0", [ // int64 txMaxInstructions; // // Cost of 10000 instructions // int64 feeRatePerInstructionsIncrement; -// +// // // Memory limit per transaction. Unlike instructions, there is no fee // // for memory, just the limit. // uint32 txMemoryLimit; @@ -10282,75 +10248,91 @@ xdr.struct("ConfigSettingContractComputeV0", [ // // struct ConfigSettingContractParallelComputeV0 // { -// // Maximum number of threads that can be used to apply a -// // transaction set to close the ledger. -// // This doesn't limit or defined the actual number of -// // threads used and instead only defines the minimum number -// // of physical threads that a tier-1 validator has to support -// // in order to not fall out of sync with the network. -// uint32 ledgerMaxParallelThreads; +// // Maximum number of clusters with dependent transactions allowed in a +// // stage of parallel tx set component. +// // This effectively sets the lower bound on the number of physical threads +// // necessary to effectively apply transaction sets in parallel. +// uint32 ledgerMaxDependentTxClusters; // }; // // =========================================================================== xdr.struct("ConfigSettingContractParallelComputeV0", [ - ["ledgerMaxParallelThreads", xdr.lookup("Uint32")], + ["ledgerMaxDependentTxClusters", xdr.lookup("Uint32")], ]); // === xdr source ============================================================ // // struct ConfigSettingContractLedgerCostV0 // { -// // Maximum number of ledger entry read operations per ledger -// uint32 ledgerMaxReadLedgerEntries; -// // Maximum number of bytes that can be read per ledger -// uint32 ledgerMaxReadBytes; +// // Maximum number of disk entry read operations per ledger +// uint32 ledgerMaxDiskReadEntries; +// // Maximum number of bytes of disk reads that can be performed per ledger +// uint32 ledgerMaxDiskReadBytes; // // Maximum number of ledger entry write operations per ledger // uint32 ledgerMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per ledger // uint32 ledgerMaxWriteBytes; -// -// // Maximum number of ledger entry read operations per transaction -// uint32 txMaxReadLedgerEntries; -// // Maximum number of bytes that can be read per transaction -// uint32 txMaxReadBytes; +// +// // Maximum number of disk entry read operations per transaction +// uint32 txMaxDiskReadEntries; +// // Maximum number of bytes of disk reads that can be performed per transaction +// uint32 txMaxDiskReadBytes; // // Maximum number of ledger entry write operations per transaction // uint32 txMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per transaction // uint32 txMaxWriteBytes; -// -// int64 feeReadLedgerEntry; // Fee per ledger entry read -// int64 feeWriteLedgerEntry; // Fee per ledger entry write -// -// int64 feeRead1KB; // Fee for reading 1KB -// +// +// int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read +// int64 feeWriteLedgerEntry; // Fee per ledger entry write +// +// int64 feeDiskRead1KB; // Fee for reading 1KB disk +// // // The following parameters determine the write fee per 1KB. -// // Write fee grows linearly until bucket list reaches this size -// int64 bucketListTargetSizeBytes; -// // Fee per 1KB write when the bucket list is empty -// int64 writeFee1KBBucketListLow; -// // Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes` -// int64 writeFee1KBBucketListHigh; -// // Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes` -// uint32 bucketListWriteFeeGrowthFactor; +// // Rent fee grows linearly until soroban state reaches this size +// int64 sorobanStateTargetSizeBytes; +// // Fee per 1KB rent when the soroban state is empty +// int64 rentFee1KBSorobanStateSizeLow; +// // Fee per 1KB rent when the soroban state has reached `sorobanStateTargetSizeBytes` +// int64 rentFee1KBSorobanStateSizeHigh; +// // Rent fee multiplier for any additional data past the first `sorobanStateTargetSizeBytes` +// uint32 sorobanStateRentFeeGrowthFactor; // }; // // =========================================================================== xdr.struct("ConfigSettingContractLedgerCostV0", [ - ["ledgerMaxReadLedgerEntries", xdr.lookup("Uint32")], - ["ledgerMaxReadBytes", xdr.lookup("Uint32")], + ["ledgerMaxDiskReadEntries", xdr.lookup("Uint32")], + ["ledgerMaxDiskReadBytes", xdr.lookup("Uint32")], ["ledgerMaxWriteLedgerEntries", xdr.lookup("Uint32")], ["ledgerMaxWriteBytes", xdr.lookup("Uint32")], - ["txMaxReadLedgerEntries", xdr.lookup("Uint32")], - ["txMaxReadBytes", xdr.lookup("Uint32")], + ["txMaxDiskReadEntries", xdr.lookup("Uint32")], + ["txMaxDiskReadBytes", xdr.lookup("Uint32")], ["txMaxWriteLedgerEntries", xdr.lookup("Uint32")], ["txMaxWriteBytes", xdr.lookup("Uint32")], - ["feeReadLedgerEntry", xdr.lookup("Int64")], + ["feeDiskReadLedgerEntry", xdr.lookup("Int64")], ["feeWriteLedgerEntry", xdr.lookup("Int64")], - ["feeRead1Kb", xdr.lookup("Int64")], - ["bucketListTargetSizeBytes", xdr.lookup("Int64")], - ["writeFee1KbBucketListLow", xdr.lookup("Int64")], - ["writeFee1KbBucketListHigh", xdr.lookup("Int64")], - ["bucketListWriteFeeGrowthFactor", xdr.lookup("Uint32")], + ["feeDiskRead1Kb", xdr.lookup("Int64")], + ["sorobanStateTargetSizeBytes", xdr.lookup("Int64")], + ["rentFee1KbSorobanStateSizeLow", xdr.lookup("Int64")], + ["rentFee1KbSorobanStateSizeHigh", xdr.lookup("Int64")], + ["sorobanStateRentFeeGrowthFactor", xdr.lookup("Uint32")], +]); + +// === xdr source ============================================================ +// +// struct ConfigSettingContractLedgerCostExtV0 +// { +// // Maximum number of RO+RW entries in the transaction footprint. +// uint32 txMaxFootprintEntries; +// // Fee per 1 KB of data written to the ledger. +// // Unlike the rent fee, this is a flat fee that is charged for any ledger +// // write, independent of the type of the entry being written. +// int64 feeWrite1KB; +// }; +// +// =========================================================================== +xdr.struct("ConfigSettingContractLedgerCostExtV0", [ + ["txMaxFootprintEntries", xdr.lookup("Uint32")], + ["feeWrite1Kb", xdr.lookup("Int64")], ]); // === xdr source ============================================================ @@ -10389,7 +10371,7 @@ xdr.struct("ConfigSettingContractEventsV0", [ // uint32 ledgerMaxTxsSizeBytes; // // Maximum size in bytes for a transaction // uint32 txMaxSizeBytes; -// +// // // Fee for 1 KB of transaction size // int64 feeTxSize1KB; // }; @@ -10415,7 +10397,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // // Cost of a host function dispatch, not including the actual work done by // // the function nor the cost of VM invocation machinary // DispatchHostFunction = 4, -// // Cost of visiting a host object from the host object storage. Exists to +// // Cost of visiting a host object from the host object storage. Exists to // // make sure some baseline cost coverage, i.e. repeatly visiting objects // // by the guest will always incur some charges. // VisitObject = 5, @@ -10455,7 +10437,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // Int256Shift = 21, // // Cost of drawing random bytes using a ChaCha20 PRNG // ChaCha20DrawBytes = 22, -// +// // // Cost of parsing wasm bytes that only encode instructions. // ParseWasmInstructions = 23, // // Cost of parsing a known number of wasm functions. @@ -10476,7 +10458,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // ParseWasmExports = 31, // // Cost of parsing a known number of data segment bytes. // ParseWasmDataSegmentBytes = 32, -// +// // // Cost of instantiating wasm bytes that only encode instructions. // InstantiateWasmInstructions = 33, // // Cost of instantiating a known number of wasm functions. @@ -10497,13 +10479,13 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // InstantiateWasmExports = 41, // // Cost of instantiating a known number of data segment bytes. // InstantiateWasmDataSegmentBytes = 42, -// +// // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded // // point on a 256-bit elliptic curve // Sec1DecodePointUncompressed = 43, // // Cost of verifying an ECDSA Secp256r1 signature // VerifyEcdsaSecp256r1Sig = 44, -// +// // // Cost of encoding a BLS12-381 Fp (base field element) // Bls12381EncodeFp = 45, // // Cost of decoding a BLS12-381 Fp (base field element) @@ -10635,7 +10617,7 @@ xdr.enum("ContractCostType", { // struct ContractCostParamEntry { // // use `ext` to add more terms (e.g. higher order polynomials) in the future // ExtensionPoint ext; -// +// // int64 constTerm; // int64 linearTerm; // }; @@ -10653,23 +10635,23 @@ xdr.struct("ContractCostParamEntry", [ // uint32 maxEntryTTL; // uint32 minTemporaryTTL; // uint32 minPersistentTTL; -// +// // // rent_fee = wfee_rate_average / rent_rate_denominator_for_type // int64 persistentRentRateDenominator; // int64 tempRentRateDenominator; -// +// // // max number of entries that emit archival meta in a single ledger // uint32 maxEntriesToArchive; -// -// // Number of snapshots to use when calculating average BucketList size -// uint32 bucketListSizeWindowSampleSize; -// -// // How often to sample the BucketList size for the average, in ledgers -// uint32 bucketListWindowSamplePeriod; -// +// +// // Number of snapshots to use when calculating average live Soroban State size +// uint32 liveSorobanStateSizeWindowSampleSize; +// +// // How often to sample the live Soroban State size for the average, in ledgers +// uint32 liveSorobanStateSizeWindowSamplePeriod; +// // // Maximum number of bytes that we scan for eviction per ledger // uint32 evictionScanSize; -// +// // // Lowest BucketList level to be scanned to evict entries // uint32 startingEvictionScanLevel; // }; @@ -10682,8 +10664,8 @@ xdr.struct("StateArchivalSettings", [ ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], - ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], - ["bucketListWindowSamplePeriod", xdr.lookup("Uint32")], + ["liveSorobanStateSizeWindowSampleSize", xdr.lookup("Uint32")], + ["liveSorobanStateSizeWindowSamplePeriod", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint32")], ["startingEvictionScanLevel", xdr.lookup("Uint32")], ]); @@ -10703,6 +10685,25 @@ xdr.struct("EvictionIterator", [ ["bucketFileOffset", xdr.lookup("Uint64")], ]); +// === xdr source ============================================================ +// +// struct ConfigSettingSCPTiming { +// uint32 ledgerTargetCloseTimeMilliseconds; +// uint32 nominationTimeoutInitialMilliseconds; +// uint32 nominationTimeoutIncrementMilliseconds; +// uint32 ballotTimeoutInitialMilliseconds; +// uint32 ballotTimeoutIncrementMilliseconds; +// }; +// +// =========================================================================== +xdr.struct("ConfigSettingScpTiming", [ + ["ledgerTargetCloseTimeMilliseconds", xdr.lookup("Uint32")], + ["nominationTimeoutInitialMilliseconds", xdr.lookup("Uint32")], + ["nominationTimeoutIncrementMilliseconds", xdr.lookup("Uint32")], + ["ballotTimeoutInitialMilliseconds", xdr.lookup("Uint32")], + ["ballotTimeoutIncrementMilliseconds", xdr.lookup("Uint32")], +]); + // === xdr source ============================================================ // // const CONTRACT_COST_COUNT_LIMIT = 1024; @@ -10733,9 +10734,11 @@ xdr.typedef("ContractCostParams", xdr.varArray(xdr.lookup("ContractCostParamEntr // CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, // CONFIG_SETTING_STATE_ARCHIVAL = 10, // CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, -// CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, +// CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW = 12, // CONFIG_SETTING_EVICTION_ITERATOR = 13, -// CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14 +// CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14, +// CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0 = 15, +// CONFIG_SETTING_SCP_TIMING = 16 // }; // // =========================================================================== @@ -10752,9 +10755,11 @@ xdr.enum("ConfigSettingId", { configSettingContractDataEntrySizeBytes: 9, configSettingStateArchival: 10, configSettingContractExecutionLanes: 11, - configSettingBucketlistSizeWindow: 12, + configSettingLiveSorobanStateSizeWindow: 12, configSettingEvictionIterator: 13, configSettingContractParallelComputeV0: 14, + configSettingContractLedgerCostExtV0: 15, + configSettingScpTiming: 16, }); // === xdr source ============================================================ @@ -10785,12 +10790,16 @@ xdr.enum("ConfigSettingId", { // StateArchivalSettings stateArchivalSettings; // case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: // ConfigSettingContractExecutionLanesV0 contractExecutionLanes; -// case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW: -// uint64 bucketListSizeWindow<>; +// case CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW: +// uint64 liveSorobanStateSizeWindow<>; // case CONFIG_SETTING_EVICTION_ITERATOR: // EvictionIterator evictionIterator; // case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0: // ConfigSettingContractParallelComputeV0 contractParallelCompute; +// case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0: +// ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt; +// case CONFIG_SETTING_SCP_TIMING: +// ConfigSettingSCPTiming contractSCPTiming; // }; // // =========================================================================== @@ -10810,9 +10819,11 @@ xdr.union("ConfigSettingEntry", { ["configSettingContractDataEntrySizeBytes", "contractDataEntrySizeBytes"], ["configSettingStateArchival", "stateArchivalSettings"], ["configSettingContractExecutionLanes", "contractExecutionLanes"], - ["configSettingBucketlistSizeWindow", "bucketListSizeWindow"], + ["configSettingLiveSorobanStateSizeWindow", "liveSorobanStateSizeWindow"], ["configSettingEvictionIterator", "evictionIterator"], ["configSettingContractParallelComputeV0", "contractParallelCompute"], + ["configSettingContractLedgerCostExtV0", "contractLedgerCostExt"], + ["configSettingScpTiming", "contractScpTiming"], ], arms: { contractMaxSizeBytes: xdr.lookup("Uint32"), @@ -10827,11 +10838,34 @@ xdr.union("ConfigSettingEntry", { contractDataEntrySizeBytes: xdr.lookup("Uint32"), stateArchivalSettings: xdr.lookup("StateArchivalSettings"), contractExecutionLanes: xdr.lookup("ConfigSettingContractExecutionLanesV0"), - bucketListSizeWindow: xdr.varArray(xdr.lookup("Uint64"), 2147483647), + liveSorobanStateSizeWindow: xdr.varArray(xdr.lookup("Uint64"), 2147483647), evictionIterator: xdr.lookup("EvictionIterator"), contractParallelCompute: xdr.lookup("ConfigSettingContractParallelComputeV0"), + contractLedgerCostExt: xdr.lookup("ConfigSettingContractLedgerCostExtV0"), + contractScpTiming: xdr.lookup("ConfigSettingScpTiming"), }, }); +// === xdr source ============================================================ +// +// struct LedgerCloseMetaBatch +// { +// // starting ledger sequence number in the batch +// uint32 startSequence; +// +// // ending ledger sequence number in the batch +// uint32 endSequence; +// +// // Ledger close meta for each ledger within the batch +// LedgerCloseMeta ledgerCloseMetas<>; +// }; +// +// =========================================================================== +xdr.struct("LedgerCloseMetaBatch", [ + ["startSequence", xdr.lookup("Uint32")], + ["endSequence", xdr.lookup("Uint32")], + ["ledgerCloseMeta", xdr.varArray(xdr.lookup("LedgerCloseMeta"), 2147483647)], +]); + }); export default types; diff --git a/types/curr.d.ts b/types/curr.d.ts index 00be76e4..a5ec3be0 100644 --- a/types/curr.d.ts +++ b/types/curr.d.ts @@ -1,59 +1,4 @@ -// 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 { - 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; - +declare namespace xdr { interface SignedInt { readonly MAX_VALUE: 2147483647; readonly MIN_VALUE: -2147483648; @@ -61,10 +6,10 @@ export namespace xdr { 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; + 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 { @@ -74,10 +19,10 @@ export namespace xdr { 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; + 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 { @@ -85,10 +30,10 @@ export namespace xdr { 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; + 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 { @@ -99,22 +44,22 @@ export namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | Array, + values: string | bigint | number | (string | bigint | number)[], ); - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static toXDR(value: Hyper): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Hyper; + static fromXDR(input: Buffer, format?: "raw"): Hyper; - static fromXDR(input: string, format: 'hex' | 'base64'): Hyper; + static fromXDR(input: string, format: "hex" | "base64"): Hyper; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; static readonly MAX_VALUE: Hyper; @@ -143,22 +88,22 @@ export namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | Array, + values: string | bigint | number | (string | bigint | number)[], ); - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static toXDR(value: UnsignedHyper): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UnsignedHyper; + static fromXDR(input: Buffer, format?: "raw"): UnsignedHyper; - static fromXDR(input: string, format: 'hex' | 'base64'): UnsignedHyper; + static fromXDR(input: string, format: "hex" | "base64"): UnsignedHyper; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; static readonly MAX_VALUE: UnsignedHyper; @@ -192,13 +137,13 @@ export namespace xdr { toXDR(value: string | Buffer): Buffer; - fromXDR(input: Buffer, format?: 'raw'): Buffer; + fromXDR(input: Buffer, format?: "raw"): Buffer; - fromXDR(input: string, format: 'hex' | 'base64'): Buffer; + fromXDR(input: string, format: "hex" | "base64"): Buffer; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class XDRArray { @@ -210,13 +155,13 @@ export namespace xdr { toXDR(value: T[]): Buffer; - fromXDR(input: Buffer, format?: 'raw'): T[]; + fromXDR(input: Buffer, format?: "raw"): T[]; - fromXDR(input: string, format: 'hex' | 'base64'): T[]; + fromXDR(input: string, format: "hex" | "base64"): T[]; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class Opaque { @@ -230,13 +175,13 @@ export namespace xdr { toXDR(value: Buffer): Buffer; - fromXDR(input: Buffer, format?: 'raw'): Buffer; + fromXDR(input: Buffer, format?: "raw"): Buffer; - fromXDR(input: string, format: 'hex' | 'base64'): Buffer; + fromXDR(input: string, format: "hex" | "base64"): Buffer; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class VarOpaque extends Opaque {} @@ -256,21 +201,21 @@ export namespace xdr { toXDR(value: any): Buffer; - fromXDR(input: Buffer, format?: 'raw'): any; + fromXDR(input: Buffer, format?: "raw"): any; - fromXDR(input: string, format: 'hex' | 'base64'): any; + fromXDR(input: string, format: "hex" | "base64"): any; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementType { readonly name: - | 'scpStPrepare' - | 'scpStConfirm' - | 'scpStExternalize' - | 'scpStNominate'; + | "scpStPrepare" + | "scpStConfirm" + | "scpStExternalize" + | "scpStNominate"; readonly value: 0 | 1 | 2 | 3; @@ -285,10 +230,10 @@ export namespace xdr { class AssetType { readonly name: - | 'assetTypeNative' - | 'assetTypeCreditAlphanum4' - | 'assetTypeCreditAlphanum12' - | 'assetTypePoolShare'; + | "assetTypeNative" + | "assetTypeCreditAlphanum4" + | "assetTypeCreditAlphanum12" + | "assetTypePoolShare"; readonly value: 0 | 1 | 2 | 3; @@ -303,10 +248,10 @@ export namespace xdr { class ThresholdIndices { readonly name: - | 'thresholdMasterWeight' - | 'thresholdLow' - | 'thresholdMed' - | 'thresholdHigh'; + | "thresholdMasterWeight" + | "thresholdLow" + | "thresholdMed" + | "thresholdHigh"; readonly value: 0 | 1 | 2 | 3; @@ -321,16 +266,16 @@ export namespace xdr { class LedgerEntryType { readonly name: - | 'account' - | 'trustline' - | 'offer' - | 'data' - | 'claimableBalance' - | 'liquidityPool' - | 'contractData' - | 'contractCode' - | 'configSetting' - | 'ttl'; + | "account" + | "trustline" + | "offer" + | "data" + | "claimableBalance" + | "liquidityPool" + | "contractData" + | "contractCode" + | "configSetting" + | "ttl"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -357,10 +302,10 @@ export namespace xdr { class AccountFlags { readonly name: - | 'authRequiredFlag' - | 'authRevocableFlag' - | 'authImmutableFlag' - | 'authClawbackEnabledFlag'; + | "authRequiredFlag" + | "authRevocableFlag" + | "authImmutableFlag" + | "authClawbackEnabledFlag"; readonly value: 1 | 2 | 4 | 8; @@ -375,9 +320,9 @@ export namespace xdr { class TrustLineFlags { readonly name: - | 'authorizedFlag' - | 'authorizedToMaintainLiabilitiesFlag' - | 'trustlineClawbackEnabledFlag'; + | "authorizedFlag" + | "authorizedToMaintainLiabilitiesFlag" + | "trustlineClawbackEnabledFlag"; readonly value: 1 | 2 | 4; @@ -389,7 +334,7 @@ export namespace xdr { } class LiquidityPoolType { - readonly name: 'liquidityPoolConstantProduct'; + readonly name: "liquidityPoolConstantProduct"; readonly value: 0; @@ -397,7 +342,7 @@ export namespace xdr { } class OfferEntryFlags { - readonly name: 'passiveFlag'; + readonly name: "passiveFlag"; readonly value: 1; @@ -406,12 +351,12 @@ export namespace xdr { class ClaimPredicateType { readonly name: - | 'claimPredicateUnconditional' - | 'claimPredicateAnd' - | 'claimPredicateOr' - | 'claimPredicateNot' - | 'claimPredicateBeforeAbsoluteTime' - | 'claimPredicateBeforeRelativeTime'; + | "claimPredicateUnconditional" + | "claimPredicateAnd" + | "claimPredicateOr" + | "claimPredicateNot" + | "claimPredicateBeforeAbsoluteTime" + | "claimPredicateBeforeRelativeTime"; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -429,23 +374,15 @@ export namespace xdr { } class ClaimantType { - readonly name: 'claimantTypeV0'; + 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 name: "claimableBalanceClawbackEnabledFlag"; readonly value: 1; @@ -453,7 +390,7 @@ export namespace xdr { } class ContractDataDurability { - readonly name: 'temporary' | 'persistent'; + readonly name: "temporary" | "persistent"; readonly value: 0 | 1; @@ -464,16 +401,16 @@ export namespace xdr { class EnvelopeType { readonly name: - | 'envelopeTypeTxV0' - | 'envelopeTypeScp' - | 'envelopeTypeTx' - | 'envelopeTypeAuth' - | 'envelopeTypeScpvalue' - | 'envelopeTypeTxFeeBump' - | 'envelopeTypeOpId' - | 'envelopeTypePoolRevokeOpId' - | 'envelopeTypeContractId' - | 'envelopeTypeSorobanAuthorization'; + | "envelopeTypeTxV0" + | "envelopeTypeScp" + | "envelopeTypeTx" + | "envelopeTypeAuth" + | "envelopeTypeScpvalue" + | "envelopeTypeTxFeeBump" + | "envelopeTypeOpId" + | "envelopeTypePoolRevokeOpId" + | "envelopeTypeContractId" + | "envelopeTypeSorobanAuthorization"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -499,19 +436,17 @@ export namespace xdr { } class BucketListType { - readonly name: 'live' | 'hotArchive' | 'coldArchive'; + readonly name: "live" | "hotArchive"; - readonly value: 0 | 1 | 2; + readonly value: 0 | 1; static live(): BucketListType; static hotArchive(): BucketListType; - - static coldArchive(): BucketListType; } class BucketEntryType { - readonly name: 'metaentry' | 'liveentry' | 'deadentry' | 'initentry'; + readonly name: "metaentry" | "liveentry" | "deadentry" | "initentry"; readonly value: -1 | 0 | 1 | 2; @@ -526,45 +461,21 @@ export namespace xdr { class HotArchiveBucketEntryType { readonly name: - | 'hotArchiveMetaentry' - | 'hotArchiveArchived' - | 'hotArchiveLive' - | 'hotArchiveDeleted'; + | "hotArchiveMetaentry" + | "hotArchiveArchived" + | "hotArchiveLive"; - readonly value: -1 | 0 | 1 | 2; + readonly value: -1 | 0 | 1; 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 name: "stellarValueBasic" | "stellarValueSigned"; readonly value: 0 | 1; @@ -575,9 +486,9 @@ export namespace xdr { class LedgerHeaderFlags { readonly name: - | 'disableLiquidityPoolTradingFlag' - | 'disableLiquidityPoolDepositFlag' - | 'disableLiquidityPoolWithdrawalFlag'; + | "disableLiquidityPoolTradingFlag" + | "disableLiquidityPoolDepositFlag" + | "disableLiquidityPoolWithdrawalFlag"; readonly value: 1 | 2 | 4; @@ -590,13 +501,13 @@ export namespace xdr { class LedgerUpgradeType { readonly name: - | 'ledgerUpgradeVersion' - | 'ledgerUpgradeBaseFee' - | 'ledgerUpgradeMaxTxSetSize' - | 'ledgerUpgradeBaseReserve' - | 'ledgerUpgradeFlags' - | 'ledgerUpgradeConfig' - | 'ledgerUpgradeMaxSorobanTxSetSize'; + | "ledgerUpgradeVersion" + | "ledgerUpgradeBaseFee" + | "ledgerUpgradeMaxTxSetSize" + | "ledgerUpgradeBaseReserve" + | "ledgerUpgradeFlags" + | "ledgerUpgradeConfig" + | "ledgerUpgradeMaxSorobanTxSetSize"; readonly value: 1 | 2 | 3 | 4 | 5 | 6 | 7; @@ -616,7 +527,7 @@ export namespace xdr { } class TxSetComponentType { - readonly name: 'txsetCompTxsMaybeDiscountedFee'; + readonly name: "txsetCompTxsMaybeDiscountedFee"; readonly value: 0; @@ -625,12 +536,13 @@ export namespace xdr { class LedgerEntryChangeType { readonly name: - | 'ledgerEntryCreated' - | 'ledgerEntryUpdated' - | 'ledgerEntryRemoved' - | 'ledgerEntryState'; + | "ledgerEntryCreated" + | "ledgerEntryUpdated" + | "ledgerEntryRemoved" + | "ledgerEntryState" + | "ledgerEntryRestored"; - readonly value: 0 | 1 | 2 | 3; + readonly value: 0 | 1 | 2 | 3 | 4; static ledgerEntryCreated(): LedgerEntryChangeType; @@ -639,10 +551,12 @@ export namespace xdr { static ledgerEntryRemoved(): LedgerEntryChangeType; static ledgerEntryState(): LedgerEntryChangeType; + + static ledgerEntryRestored(): LedgerEntryChangeType; } class ContractEventType { - readonly name: 'system' | 'contract' | 'diagnostic'; + readonly name: "system" | "contract" | "diagnostic"; readonly value: 0 | 1 | 2; @@ -653,8 +567,23 @@ export namespace xdr { static diagnostic(): ContractEventType; } + class TransactionEventStage { + readonly name: + | "transactionEventStageBeforeAllTxes" + | "transactionEventStageAfterTx" + | "transactionEventStageAfterAllTxes"; + + readonly value: 0 | 1 | 2; + + static transactionEventStageBeforeAllTxes(): TransactionEventStage; + + static transactionEventStageAfterTx(): TransactionEventStage; + + static transactionEventStageAfterAllTxes(): TransactionEventStage; + } + class ErrorCode { - readonly name: 'errMisc' | 'errData' | 'errConf' | 'errAuth' | 'errLoad'; + readonly name: "errMisc" | "errData" | "errConf" | "errAuth" | "errLoad"; readonly value: 0 | 1 | 2 | 3 | 4; @@ -670,7 +599,7 @@ export namespace xdr { } class IpAddrType { - readonly name: 'iPv4' | 'iPv6'; + readonly name: "iPv4" | "iPv6"; readonly value: 0 | 1; @@ -681,36 +610,32 @@ export namespace xdr { 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'; + | "errorMsg" + | "auth" + | "dontHave" + | "peers" + | "getTxSet" + | "txSet" + | "generalizedTxSet" + | "transaction" + | "getScpQuorumset" + | "scpQuorumset" + | "scpMessage" + | "getScpState" + | "hello" + | "sendMore" + | "sendMoreExtended" + | "floodAdvert" + | "floodDemand" + | "timeSlicedSurveyRequest" + | "timeSlicedSurveyResponse" + | "timeSlicedSurveyStartCollecting" + | "timeSlicedSurveyStopCollecting"; readonly value: | 0 | 2 | 3 - | 4 | 5 | 6 | 7 @@ -721,8 +646,6 @@ export namespace xdr { | 11 | 12 | 13 - | 14 - | 15 | 16 | 20 | 18 @@ -738,8 +661,6 @@ export namespace xdr { static dontHave(): MessageType; - static getPeers(): MessageType; - static peers(): MessageType; static getTxSet(): MessageType; @@ -760,10 +681,6 @@ export namespace xdr { static hello(): MessageType; - static surveyRequest(): MessageType; - - static surveyResponse(): MessageType; - static sendMore(): MessageType; static sendMoreExtended(): MessageType; @@ -782,59 +699,50 @@ export namespace xdr { } class SurveyMessageCommandType { - readonly name: 'surveyTopology' | 'timeSlicedSurveyTopology'; + readonly name: "timeSlicedSurveyTopology"; - readonly value: 0 | 1; - - static surveyTopology(): SurveyMessageCommandType; + readonly value: 1; static timeSlicedSurveyTopology(): SurveyMessageCommandType; } class SurveyMessageResponseType { - readonly name: - | 'surveyTopologyResponseV0' - | 'surveyTopologyResponseV1' - | 'surveyTopologyResponseV2'; + readonly name: "surveyTopologyResponseV2"; - readonly value: 0 | 1 | 2; - - static surveyTopologyResponseV0(): SurveyMessageResponseType; - - static surveyTopologyResponseV1(): SurveyMessageResponseType; + readonly value: 2; 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'; + | "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 @@ -921,7 +829,7 @@ export namespace xdr { } class RevokeSponsorshipType { - readonly name: 'revokeSponsorshipLedgerEntry' | 'revokeSponsorshipSigner'; + readonly name: "revokeSponsorshipLedgerEntry" | "revokeSponsorshipSigner"; readonly value: 0 | 1; @@ -932,10 +840,10 @@ export namespace xdr { class HostFunctionType { readonly name: - | 'hostFunctionTypeInvokeContract' - | 'hostFunctionTypeCreateContract' - | 'hostFunctionTypeUploadContractWasm' - | 'hostFunctionTypeCreateContractV2'; + | "hostFunctionTypeInvokeContract" + | "hostFunctionTypeCreateContract" + | "hostFunctionTypeUploadContractWasm" + | "hostFunctionTypeCreateContractV2"; readonly value: 0 | 1 | 2 | 3; @@ -950,8 +858,8 @@ export namespace xdr { class ContractIdPreimageType { readonly name: - | 'contractIdPreimageFromAddress' - | 'contractIdPreimageFromAsset'; + | "contractIdPreimageFromAddress" + | "contractIdPreimageFromAsset"; readonly value: 0 | 1; @@ -962,9 +870,9 @@ export namespace xdr { class SorobanAuthorizedFunctionType { readonly name: - | 'sorobanAuthorizedFunctionTypeContractFn' - | 'sorobanAuthorizedFunctionTypeCreateContractHostFn' - | 'sorobanAuthorizedFunctionTypeCreateContractV2HostFn'; + | "sorobanAuthorizedFunctionTypeContractFn" + | "sorobanAuthorizedFunctionTypeCreateContractHostFn" + | "sorobanAuthorizedFunctionTypeCreateContractV2HostFn"; readonly value: 0 | 1 | 2; @@ -977,8 +885,8 @@ export namespace xdr { class SorobanCredentialsType { readonly name: - | 'sorobanCredentialsSourceAccount' - | 'sorobanCredentialsAddress'; + | "sorobanCredentialsSourceAccount" + | "sorobanCredentialsAddress"; readonly value: 0 | 1; @@ -989,11 +897,11 @@ export namespace xdr { class MemoType { readonly name: - | 'memoNone' - | 'memoText' - | 'memoId' - | 'memoHash' - | 'memoReturn'; + | "memoNone" + | "memoText" + | "memoId" + | "memoHash" + | "memoReturn"; readonly value: 0 | 1 | 2 | 3 | 4; @@ -1009,7 +917,7 @@ export namespace xdr { } class PreconditionType { - readonly name: 'precondNone' | 'precondTime' | 'precondV2'; + readonly name: "precondNone" | "precondTime" | "precondV2"; readonly value: 0 | 1 | 2; @@ -1020,21 +928,11 @@ export namespace xdr { 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'; + | "claimAtomTypeV0" + | "claimAtomTypeOrderBook" + | "claimAtomTypeLiquidityPool"; readonly value: 0 | 1 | 2; @@ -1047,11 +945,11 @@ export namespace xdr { class CreateAccountResultCode { readonly name: - | 'createAccountSuccess' - | 'createAccountMalformed' - | 'createAccountUnderfunded' - | 'createAccountLowReserve' - | 'createAccountAlreadyExist'; + | "createAccountSuccess" + | "createAccountMalformed" + | "createAccountUnderfunded" + | "createAccountLowReserve" + | "createAccountAlreadyExist"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1068,16 +966,16 @@ export namespace xdr { class PaymentResultCode { readonly name: - | 'paymentSuccess' - | 'paymentMalformed' - | 'paymentUnderfunded' - | 'paymentSrcNoTrust' - | 'paymentSrcNotAuthorized' - | 'paymentNoDestination' - | 'paymentNoTrust' - | 'paymentNotAuthorized' - | 'paymentLineFull' - | 'paymentNoIssuer'; + | "paymentSuccess" + | "paymentMalformed" + | "paymentUnderfunded" + | "paymentSrcNoTrust" + | "paymentSrcNotAuthorized" + | "paymentNoDestination" + | "paymentNoTrust" + | "paymentNotAuthorized" + | "paymentLineFull" + | "paymentNoIssuer"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9; @@ -1104,19 +1002,19 @@ export namespace xdr { class PathPaymentStrictReceiveResultCode { readonly name: - | 'pathPaymentStrictReceiveSuccess' - | 'pathPaymentStrictReceiveMalformed' - | 'pathPaymentStrictReceiveUnderfunded' - | 'pathPaymentStrictReceiveSrcNoTrust' - | 'pathPaymentStrictReceiveSrcNotAuthorized' - | 'pathPaymentStrictReceiveNoDestination' - | 'pathPaymentStrictReceiveNoTrust' - | 'pathPaymentStrictReceiveNotAuthorized' - | 'pathPaymentStrictReceiveLineFull' - | 'pathPaymentStrictReceiveNoIssuer' - | 'pathPaymentStrictReceiveTooFewOffers' - | 'pathPaymentStrictReceiveOfferCrossSelf' - | 'pathPaymentStrictReceiveOverSendmax'; + | "pathPaymentStrictReceiveSuccess" + | "pathPaymentStrictReceiveMalformed" + | "pathPaymentStrictReceiveUnderfunded" + | "pathPaymentStrictReceiveSrcNoTrust" + | "pathPaymentStrictReceiveSrcNotAuthorized" + | "pathPaymentStrictReceiveNoDestination" + | "pathPaymentStrictReceiveNoTrust" + | "pathPaymentStrictReceiveNotAuthorized" + | "pathPaymentStrictReceiveLineFull" + | "pathPaymentStrictReceiveNoIssuer" + | "pathPaymentStrictReceiveTooFewOffers" + | "pathPaymentStrictReceiveOfferCrossSelf" + | "pathPaymentStrictReceiveOverSendmax"; readonly value: | 0 @@ -1162,19 +1060,19 @@ export namespace xdr { class PathPaymentStrictSendResultCode { readonly name: - | 'pathPaymentStrictSendSuccess' - | 'pathPaymentStrictSendMalformed' - | 'pathPaymentStrictSendUnderfunded' - | 'pathPaymentStrictSendSrcNoTrust' - | 'pathPaymentStrictSendSrcNotAuthorized' - | 'pathPaymentStrictSendNoDestination' - | 'pathPaymentStrictSendNoTrust' - | 'pathPaymentStrictSendNotAuthorized' - | 'pathPaymentStrictSendLineFull' - | 'pathPaymentStrictSendNoIssuer' - | 'pathPaymentStrictSendTooFewOffers' - | 'pathPaymentStrictSendOfferCrossSelf' - | 'pathPaymentStrictSendUnderDestmin'; + | "pathPaymentStrictSendSuccess" + | "pathPaymentStrictSendMalformed" + | "pathPaymentStrictSendUnderfunded" + | "pathPaymentStrictSendSrcNoTrust" + | "pathPaymentStrictSendSrcNotAuthorized" + | "pathPaymentStrictSendNoDestination" + | "pathPaymentStrictSendNoTrust" + | "pathPaymentStrictSendNotAuthorized" + | "pathPaymentStrictSendLineFull" + | "pathPaymentStrictSendNoIssuer" + | "pathPaymentStrictSendTooFewOffers" + | "pathPaymentStrictSendOfferCrossSelf" + | "pathPaymentStrictSendUnderDestmin"; readonly value: | 0 @@ -1220,19 +1118,19 @@ export namespace xdr { class ManageSellOfferResultCode { readonly name: - | 'manageSellOfferSuccess' - | 'manageSellOfferMalformed' - | 'manageSellOfferSellNoTrust' - | 'manageSellOfferBuyNoTrust' - | 'manageSellOfferSellNotAuthorized' - | 'manageSellOfferBuyNotAuthorized' - | 'manageSellOfferLineFull' - | 'manageSellOfferUnderfunded' - | 'manageSellOfferCrossSelf' - | 'manageSellOfferSellNoIssuer' - | 'manageSellOfferBuyNoIssuer' - | 'manageSellOfferNotFound' - | 'manageSellOfferLowReserve'; + | "manageSellOfferSuccess" + | "manageSellOfferMalformed" + | "manageSellOfferSellNoTrust" + | "manageSellOfferBuyNoTrust" + | "manageSellOfferSellNotAuthorized" + | "manageSellOfferBuyNotAuthorized" + | "manageSellOfferLineFull" + | "manageSellOfferUnderfunded" + | "manageSellOfferCrossSelf" + | "manageSellOfferSellNoIssuer" + | "manageSellOfferBuyNoIssuer" + | "manageSellOfferNotFound" + | "manageSellOfferLowReserve"; readonly value: | 0 @@ -1278,9 +1176,9 @@ export namespace xdr { class ManageOfferEffect { readonly name: - | 'manageOfferCreated' - | 'manageOfferUpdated' - | 'manageOfferDeleted'; + | "manageOfferCreated" + | "manageOfferUpdated" + | "manageOfferDeleted"; readonly value: 0 | 1 | 2; @@ -1293,19 +1191,19 @@ export namespace xdr { class ManageBuyOfferResultCode { readonly name: - | 'manageBuyOfferSuccess' - | 'manageBuyOfferMalformed' - | 'manageBuyOfferSellNoTrust' - | 'manageBuyOfferBuyNoTrust' - | 'manageBuyOfferSellNotAuthorized' - | 'manageBuyOfferBuyNotAuthorized' - | 'manageBuyOfferLineFull' - | 'manageBuyOfferUnderfunded' - | 'manageBuyOfferCrossSelf' - | 'manageBuyOfferSellNoIssuer' - | 'manageBuyOfferBuyNoIssuer' - | 'manageBuyOfferNotFound' - | 'manageBuyOfferLowReserve'; + | "manageBuyOfferSuccess" + | "manageBuyOfferMalformed" + | "manageBuyOfferSellNoTrust" + | "manageBuyOfferBuyNoTrust" + | "manageBuyOfferSellNotAuthorized" + | "manageBuyOfferBuyNotAuthorized" + | "manageBuyOfferLineFull" + | "manageBuyOfferUnderfunded" + | "manageBuyOfferCrossSelf" + | "manageBuyOfferSellNoIssuer" + | "manageBuyOfferBuyNoIssuer" + | "manageBuyOfferNotFound" + | "manageBuyOfferLowReserve"; readonly value: | 0 @@ -1351,17 +1249,17 @@ export namespace xdr { class SetOptionsResultCode { readonly name: - | 'setOptionsSuccess' - | 'setOptionsLowReserve' - | 'setOptionsTooManySigners' - | 'setOptionsBadFlags' - | 'setOptionsInvalidInflation' - | 'setOptionsCantChange' - | 'setOptionsUnknownFlag' - | 'setOptionsThresholdOutOfRange' - | 'setOptionsBadSigner' - | 'setOptionsInvalidHomeDomain' - | 'setOptionsAuthRevocableRequired'; + | "setOptionsSuccess" + | "setOptionsLowReserve" + | "setOptionsTooManySigners" + | "setOptionsBadFlags" + | "setOptionsInvalidInflation" + | "setOptionsCantChange" + | "setOptionsUnknownFlag" + | "setOptionsThresholdOutOfRange" + | "setOptionsBadSigner" + | "setOptionsInvalidHomeDomain" + | "setOptionsAuthRevocableRequired"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -10; @@ -1390,15 +1288,15 @@ export namespace xdr { class ChangeTrustResultCode { readonly name: - | 'changeTrustSuccess' - | 'changeTrustMalformed' - | 'changeTrustNoIssuer' - | 'changeTrustInvalidLimit' - | 'changeTrustLowReserve' - | 'changeTrustSelfNotAllowed' - | 'changeTrustTrustLineMissing' - | 'changeTrustCannotDelete' - | 'changeTrustNotAuthMaintainLiabilities'; + | "changeTrustSuccess" + | "changeTrustMalformed" + | "changeTrustNoIssuer" + | "changeTrustInvalidLimit" + | "changeTrustLowReserve" + | "changeTrustSelfNotAllowed" + | "changeTrustTrustLineMissing" + | "changeTrustCannotDelete" + | "changeTrustNotAuthMaintainLiabilities"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8; @@ -1423,13 +1321,13 @@ export namespace xdr { class AllowTrustResultCode { readonly name: - | 'allowTrustSuccess' - | 'allowTrustMalformed' - | 'allowTrustNoTrustLine' - | 'allowTrustTrustNotRequired' - | 'allowTrustCantRevoke' - | 'allowTrustSelfNotAllowed' - | 'allowTrustLowReserve'; + | "allowTrustSuccess" + | "allowTrustMalformed" + | "allowTrustNoTrustLine" + | "allowTrustTrustNotRequired" + | "allowTrustCantRevoke" + | "allowTrustSelfNotAllowed" + | "allowTrustLowReserve"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1450,14 +1348,14 @@ export namespace xdr { class AccountMergeResultCode { readonly name: - | 'accountMergeSuccess' - | 'accountMergeMalformed' - | 'accountMergeNoAccount' - | 'accountMergeImmutableSet' - | 'accountMergeHasSubEntries' - | 'accountMergeSeqnumTooFar' - | 'accountMergeDestFull' - | 'accountMergeIsSponsor'; + | "accountMergeSuccess" + | "accountMergeMalformed" + | "accountMergeNoAccount" + | "accountMergeImmutableSet" + | "accountMergeHasSubEntries" + | "accountMergeSeqnumTooFar" + | "accountMergeDestFull" + | "accountMergeIsSponsor"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1479,7 +1377,7 @@ export namespace xdr { } class InflationResultCode { - readonly name: 'inflationSuccess' | 'inflationNotTime'; + readonly name: "inflationSuccess" | "inflationNotTime"; readonly value: 0 | -1; @@ -1490,11 +1388,11 @@ export namespace xdr { class ManageDataResultCode { readonly name: - | 'manageDataSuccess' - | 'manageDataNotSupportedYet' - | 'manageDataNameNotFound' - | 'manageDataLowReserve' - | 'manageDataInvalidName'; + | "manageDataSuccess" + | "manageDataNotSupportedYet" + | "manageDataNameNotFound" + | "manageDataLowReserve" + | "manageDataInvalidName"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1510,7 +1408,7 @@ export namespace xdr { } class BumpSequenceResultCode { - readonly name: 'bumpSequenceSuccess' | 'bumpSequenceBadSeq'; + readonly name: "bumpSequenceSuccess" | "bumpSequenceBadSeq"; readonly value: 0 | -1; @@ -1521,12 +1419,12 @@ export namespace xdr { class CreateClaimableBalanceResultCode { readonly name: - | 'createClaimableBalanceSuccess' - | 'createClaimableBalanceMalformed' - | 'createClaimableBalanceLowReserve' - | 'createClaimableBalanceNoTrust' - | 'createClaimableBalanceNotAuthorized' - | 'createClaimableBalanceUnderfunded'; + | "createClaimableBalanceSuccess" + | "createClaimableBalanceMalformed" + | "createClaimableBalanceLowReserve" + | "createClaimableBalanceNoTrust" + | "createClaimableBalanceNotAuthorized" + | "createClaimableBalanceUnderfunded"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1545,12 +1443,12 @@ export namespace xdr { class ClaimClaimableBalanceResultCode { readonly name: - | 'claimClaimableBalanceSuccess' - | 'claimClaimableBalanceDoesNotExist' - | 'claimClaimableBalanceCannotClaim' - | 'claimClaimableBalanceLineFull' - | 'claimClaimableBalanceNoTrust' - | 'claimClaimableBalanceNotAuthorized'; + | "claimClaimableBalanceSuccess" + | "claimClaimableBalanceDoesNotExist" + | "claimClaimableBalanceCannotClaim" + | "claimClaimableBalanceLineFull" + | "claimClaimableBalanceNoTrust" + | "claimClaimableBalanceNotAuthorized"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1569,10 +1467,10 @@ export namespace xdr { class BeginSponsoringFutureReservesResultCode { readonly name: - | 'beginSponsoringFutureReservesSuccess' - | 'beginSponsoringFutureReservesMalformed' - | 'beginSponsoringFutureReservesAlreadySponsored' - | 'beginSponsoringFutureReservesRecursive'; + | "beginSponsoringFutureReservesSuccess" + | "beginSponsoringFutureReservesMalformed" + | "beginSponsoringFutureReservesAlreadySponsored" + | "beginSponsoringFutureReservesRecursive"; readonly value: 0 | -1 | -2 | -3; @@ -1587,8 +1485,8 @@ export namespace xdr { class EndSponsoringFutureReservesResultCode { readonly name: - | 'endSponsoringFutureReservesSuccess' - | 'endSponsoringFutureReservesNotSponsored'; + | "endSponsoringFutureReservesSuccess" + | "endSponsoringFutureReservesNotSponsored"; readonly value: 0 | -1; @@ -1599,12 +1497,12 @@ export namespace xdr { class RevokeSponsorshipResultCode { readonly name: - | 'revokeSponsorshipSuccess' - | 'revokeSponsorshipDoesNotExist' - | 'revokeSponsorshipNotSponsor' - | 'revokeSponsorshipLowReserve' - | 'revokeSponsorshipOnlyTransferable' - | 'revokeSponsorshipMalformed'; + | "revokeSponsorshipSuccess" + | "revokeSponsorshipDoesNotExist" + | "revokeSponsorshipNotSponsor" + | "revokeSponsorshipLowReserve" + | "revokeSponsorshipOnlyTransferable" + | "revokeSponsorshipMalformed"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1623,11 +1521,11 @@ export namespace xdr { class ClawbackResultCode { readonly name: - | 'clawbackSuccess' - | 'clawbackMalformed' - | 'clawbackNotClawbackEnabled' - | 'clawbackNoTrust' - | 'clawbackUnderfunded'; + | "clawbackSuccess" + | "clawbackMalformed" + | "clawbackNotClawbackEnabled" + | "clawbackNoTrust" + | "clawbackUnderfunded"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1644,10 +1542,10 @@ export namespace xdr { class ClawbackClaimableBalanceResultCode { readonly name: - | 'clawbackClaimableBalanceSuccess' - | 'clawbackClaimableBalanceDoesNotExist' - | 'clawbackClaimableBalanceNotIssuer' - | 'clawbackClaimableBalanceNotClawbackEnabled'; + | "clawbackClaimableBalanceSuccess" + | "clawbackClaimableBalanceDoesNotExist" + | "clawbackClaimableBalanceNotIssuer" + | "clawbackClaimableBalanceNotClawbackEnabled"; readonly value: 0 | -1 | -2 | -3; @@ -1662,12 +1560,12 @@ export namespace xdr { class SetTrustLineFlagsResultCode { readonly name: - | 'setTrustLineFlagsSuccess' - | 'setTrustLineFlagsMalformed' - | 'setTrustLineFlagsNoTrustLine' - | 'setTrustLineFlagsCantRevoke' - | 'setTrustLineFlagsInvalidState' - | 'setTrustLineFlagsLowReserve'; + | "setTrustLineFlagsSuccess" + | "setTrustLineFlagsMalformed" + | "setTrustLineFlagsNoTrustLine" + | "setTrustLineFlagsCantRevoke" + | "setTrustLineFlagsInvalidState" + | "setTrustLineFlagsLowReserve"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1686,14 +1584,14 @@ export namespace xdr { class LiquidityPoolDepositResultCode { readonly name: - | 'liquidityPoolDepositSuccess' - | 'liquidityPoolDepositMalformed' - | 'liquidityPoolDepositNoTrust' - | 'liquidityPoolDepositNotAuthorized' - | 'liquidityPoolDepositUnderfunded' - | 'liquidityPoolDepositLineFull' - | 'liquidityPoolDepositBadPrice' - | 'liquidityPoolDepositPoolFull'; + | "liquidityPoolDepositSuccess" + | "liquidityPoolDepositMalformed" + | "liquidityPoolDepositNoTrust" + | "liquidityPoolDepositNotAuthorized" + | "liquidityPoolDepositUnderfunded" + | "liquidityPoolDepositLineFull" + | "liquidityPoolDepositBadPrice" + | "liquidityPoolDepositPoolFull"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1716,12 +1614,12 @@ export namespace xdr { class LiquidityPoolWithdrawResultCode { readonly name: - | 'liquidityPoolWithdrawSuccess' - | 'liquidityPoolWithdrawMalformed' - | 'liquidityPoolWithdrawNoTrust' - | 'liquidityPoolWithdrawUnderfunded' - | 'liquidityPoolWithdrawLineFull' - | 'liquidityPoolWithdrawUnderMinimum'; + | "liquidityPoolWithdrawSuccess" + | "liquidityPoolWithdrawMalformed" + | "liquidityPoolWithdrawNoTrust" + | "liquidityPoolWithdrawUnderfunded" + | "liquidityPoolWithdrawLineFull" + | "liquidityPoolWithdrawUnderMinimum"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1740,12 +1638,12 @@ export namespace xdr { class InvokeHostFunctionResultCode { readonly name: - | 'invokeHostFunctionSuccess' - | 'invokeHostFunctionMalformed' - | 'invokeHostFunctionTrapped' - | 'invokeHostFunctionResourceLimitExceeded' - | 'invokeHostFunctionEntryArchived' - | 'invokeHostFunctionInsufficientRefundableFee'; + | "invokeHostFunctionSuccess" + | "invokeHostFunctionMalformed" + | "invokeHostFunctionTrapped" + | "invokeHostFunctionResourceLimitExceeded" + | "invokeHostFunctionEntryArchived" + | "invokeHostFunctionInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1764,10 +1662,10 @@ export namespace xdr { class ExtendFootprintTtlResultCode { readonly name: - | 'extendFootprintTtlSuccess' - | 'extendFootprintTtlMalformed' - | 'extendFootprintTtlResourceLimitExceeded' - | 'extendFootprintTtlInsufficientRefundableFee'; + | "extendFootprintTtlSuccess" + | "extendFootprintTtlMalformed" + | "extendFootprintTtlResourceLimitExceeded" + | "extendFootprintTtlInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3; @@ -1782,10 +1680,10 @@ export namespace xdr { class RestoreFootprintResultCode { readonly name: - | 'restoreFootprintSuccess' - | 'restoreFootprintMalformed' - | 'restoreFootprintResourceLimitExceeded' - | 'restoreFootprintInsufficientRefundableFee'; + | "restoreFootprintSuccess" + | "restoreFootprintMalformed" + | "restoreFootprintResourceLimitExceeded" + | "restoreFootprintInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3; @@ -1800,13 +1698,13 @@ export namespace xdr { class OperationResultCode { readonly name: - | 'opInner' - | 'opBadAuth' - | 'opNoAccount' - | 'opNotSupported' - | 'opTooManySubentries' - | 'opExceededWorkLimit' - | 'opTooManySponsoring'; + | "opInner" + | "opBadAuth" + | "opNoAccount" + | "opNotSupported" + | "opTooManySubentries" + | "opExceededWorkLimit" + | "opTooManySponsoring"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1827,25 +1725,25 @@ export namespace xdr { class TransactionResultCode { readonly name: - | 'txFeeBumpInnerSuccess' - | 'txSuccess' - | 'txFailed' - | 'txTooEarly' - | 'txTooLate' - | 'txMissingOperation' - | 'txBadSeq' - | 'txBadAuth' - | 'txInsufficientBalance' - | 'txNoAccount' - | 'txInsufficientFee' - | 'txBadAuthExtra' - | 'txInternalError' - | 'txNotSupported' - | 'txFeeBumpInnerFailed' - | 'txBadSponsorship' - | 'txBadMinSeqAgeOrGap' - | 'txMalformed' - | 'txSorobanInvalid'; + | "txFeeBumpInnerSuccess" + | "txSuccess" + | "txFailed" + | "txTooEarly" + | "txTooLate" + | "txMissingOperation" + | "txBadSeq" + | "txBadAuth" + | "txInsufficientBalance" + | "txNoAccount" + | "txInsufficientFee" + | "txBadAuthExtra" + | "txInternalError" + | "txNotSupported" + | "txFeeBumpInnerFailed" + | "txBadSponsorship" + | "txBadMinSeqAgeOrGap" + | "txMalformed" + | "txSorobanInvalid"; readonly value: | 1 @@ -1909,11 +1807,11 @@ export namespace xdr { class CryptoKeyType { readonly name: - | 'keyTypeEd25519' - | 'keyTypePreAuthTx' - | 'keyTypeHashX' - | 'keyTypeEd25519SignedPayload' - | 'keyTypeMuxedEd25519'; + | "keyTypeEd25519" + | "keyTypePreAuthTx" + | "keyTypeHashX" + | "keyTypeEd25519SignedPayload" + | "keyTypeMuxedEd25519"; readonly value: 0 | 1 | 2 | 3 | 256; @@ -1929,7 +1827,7 @@ export namespace xdr { } class PublicKeyType { - readonly name: 'publicKeyTypeEd25519'; + readonly name: "publicKeyTypeEd25519"; readonly value: 0; @@ -1938,10 +1836,10 @@ export namespace xdr { class SignerKeyType { readonly name: - | 'signerKeyTypeEd25519' - | 'signerKeyTypePreAuthTx' - | 'signerKeyTypeHashX' - | 'signerKeyTypeEd25519SignedPayload'; + | "signerKeyTypeEd25519" + | "signerKeyTypePreAuthTx" + | "signerKeyTypeHashX" + | "signerKeyTypeEd25519SignedPayload"; readonly value: 0 | 1 | 2 | 3; @@ -1956,9 +1854,9 @@ export namespace xdr { class BinaryFuseFilterType { readonly name: - | 'binaryFuseFilter8Bit' - | 'binaryFuseFilter16Bit' - | 'binaryFuseFilter32Bit'; + | "binaryFuseFilter8Bit" + | "binaryFuseFilter16Bit" + | "binaryFuseFilter32Bit"; readonly value: 0 | 1 | 2; @@ -1969,30 +1867,38 @@ export namespace xdr { static binaryFuseFilter32Bit(): BinaryFuseFilterType; } + class ClaimableBalanceIdType { + readonly name: "claimableBalanceIdTypeV0"; + + readonly value: 0; + + static claimableBalanceIdTypeV0(): ClaimableBalanceIdType; + } + class ScValType { readonly name: - | 'scvBool' - | 'scvVoid' - | 'scvError' - | 'scvU32' - | 'scvI32' - | 'scvU64' - | 'scvI64' - | 'scvTimepoint' - | 'scvDuration' - | 'scvU128' - | 'scvI128' - | 'scvU256' - | 'scvI256' - | 'scvBytes' - | 'scvString' - | 'scvSymbol' - | 'scvVec' - | 'scvMap' - | 'scvAddress' - | 'scvContractInstance' - | 'scvLedgerKeyContractInstance' - | 'scvLedgerKeyNonce'; + | "scvBool" + | "scvVoid" + | "scvError" + | "scvU32" + | "scvI32" + | "scvU64" + | "scvI64" + | "scvTimepoint" + | "scvDuration" + | "scvU128" + | "scvI128" + | "scvU256" + | "scvI256" + | "scvBytes" + | "scvString" + | "scvSymbol" + | "scvVec" + | "scvMap" + | "scvAddress" + | "scvContractInstance" + | "scvLedgerKeyContractInstance" + | "scvLedgerKeyNonce"; readonly value: | 0 @@ -2065,16 +1971,16 @@ export namespace xdr { class ScErrorType { readonly name: - | 'sceContract' - | 'sceWasmVm' - | 'sceContext' - | 'sceStorage' - | 'sceObject' - | 'sceCrypto' - | 'sceEvents' - | 'sceBudget' - | 'sceValue' - | 'sceAuth'; + | "sceContract" + | "sceWasmVm" + | "sceContext" + | "sceStorage" + | "sceObject" + | "sceCrypto" + | "sceEvents" + | "sceBudget" + | "sceValue" + | "sceAuth"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2101,16 +2007,16 @@ export namespace xdr { class ScErrorCode { readonly name: - | 'scecArithDomain' - | 'scecIndexBounds' - | 'scecInvalidInput' - | 'scecMissingValue' - | 'scecExistingValue' - | 'scecExceededLimit' - | 'scecInvalidAction' - | 'scecInternalError' - | 'scecUnexpectedType' - | 'scecUnexpectedSize'; + | "scecArithDomain" + | "scecIndexBounds" + | "scecInvalidInput" + | "scecMissingValue" + | "scecExistingValue" + | "scecExceededLimit" + | "scecInvalidAction" + | "scecInternalError" + | "scecUnexpectedType" + | "scecUnexpectedSize"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2136,7 +2042,7 @@ export namespace xdr { } class ContractExecutableType { - readonly name: 'contractExecutableWasm' | 'contractExecutableStellarAsset'; + readonly name: "contractExecutableWasm" | "contractExecutableStellarAsset"; readonly value: 0 | 1; @@ -2146,17 +2052,28 @@ export namespace xdr { } class ScAddressType { - readonly name: 'scAddressTypeAccount' | 'scAddressTypeContract'; + readonly name: + | "scAddressTypeAccount" + | "scAddressTypeContract" + | "scAddressTypeMuxedAccount" + | "scAddressTypeClaimableBalance" + | "scAddressTypeLiquidityPool"; - readonly value: 0 | 1; + readonly value: 0 | 1 | 2 | 3 | 4; static scAddressTypeAccount(): ScAddressType; static scAddressTypeContract(): ScAddressType; + + static scAddressTypeMuxedAccount(): ScAddressType; + + static scAddressTypeClaimableBalance(): ScAddressType; + + static scAddressTypeLiquidityPool(): ScAddressType; } class ScEnvMetaKind { - readonly name: 'scEnvMetaKindInterfaceVersion'; + readonly name: "scEnvMetaKindInterfaceVersion"; readonly value: 0; @@ -2164,7 +2081,7 @@ export namespace xdr { } class ScMetaKind { - readonly name: 'scMetaV0'; + readonly name: "scMetaV0"; readonly value: 0; @@ -2173,31 +2090,32 @@ export namespace xdr { class ScSpecType { readonly name: - | 'scSpecTypeVal' - | 'scSpecTypeBool' - | 'scSpecTypeVoid' - | 'scSpecTypeError' - | 'scSpecTypeU32' - | 'scSpecTypeI32' - | 'scSpecTypeU64' - | 'scSpecTypeI64' - | 'scSpecTypeTimepoint' - | 'scSpecTypeDuration' - | 'scSpecTypeU128' - | 'scSpecTypeI128' - | 'scSpecTypeU256' - | 'scSpecTypeI256' - | 'scSpecTypeBytes' - | 'scSpecTypeString' - | 'scSpecTypeSymbol' - | 'scSpecTypeAddress' - | 'scSpecTypeOption' - | 'scSpecTypeResult' - | 'scSpecTypeVec' - | 'scSpecTypeMap' - | 'scSpecTypeTuple' - | 'scSpecTypeBytesN' - | 'scSpecTypeUdt'; + | "scSpecTypeVal" + | "scSpecTypeBool" + | "scSpecTypeVoid" + | "scSpecTypeError" + | "scSpecTypeU32" + | "scSpecTypeI32" + | "scSpecTypeU64" + | "scSpecTypeI64" + | "scSpecTypeTimepoint" + | "scSpecTypeDuration" + | "scSpecTypeU128" + | "scSpecTypeI128" + | "scSpecTypeU256" + | "scSpecTypeI256" + | "scSpecTypeBytes" + | "scSpecTypeString" + | "scSpecTypeSymbol" + | "scSpecTypeAddress" + | "scSpecTypeMuxedAddress" + | "scSpecTypeOption" + | "scSpecTypeResult" + | "scSpecTypeVec" + | "scSpecTypeMap" + | "scSpecTypeTuple" + | "scSpecTypeBytesN" + | "scSpecTypeUdt"; readonly value: | 0 @@ -2218,6 +2136,7 @@ export namespace xdr { | 16 | 17 | 19 + | 20 | 1000 | 1001 | 1002 @@ -2262,6 +2181,8 @@ export namespace xdr { static scSpecTypeAddress(): ScSpecType; + static scSpecTypeMuxedAddress(): ScSpecType; + static scSpecTypeOption(): ScSpecType; static scSpecTypeResult(): ScSpecType; @@ -2278,7 +2199,7 @@ export namespace xdr { } class ScSpecUdtUnionCaseV0Kind { - readonly name: 'scSpecUdtUnionCaseVoidV0' | 'scSpecUdtUnionCaseTupleV0'; + readonly name: "scSpecUdtUnionCaseVoidV0" | "scSpecUdtUnionCaseTupleV0"; readonly value: 0 | 1; @@ -2287,15 +2208,43 @@ export namespace xdr { static scSpecUdtUnionCaseTupleV0(): ScSpecUdtUnionCaseV0Kind; } + class ScSpecEventParamLocationV0 { + readonly name: + | "scSpecEventParamLocationData" + | "scSpecEventParamLocationTopicList"; + + readonly value: 0 | 1; + + static scSpecEventParamLocationData(): ScSpecEventParamLocationV0; + + static scSpecEventParamLocationTopicList(): ScSpecEventParamLocationV0; + } + + class ScSpecEventDataFormat { + readonly name: + | "scSpecEventDataFormatSingleValue" + | "scSpecEventDataFormatVec" + | "scSpecEventDataFormatMap"; + + readonly value: 0 | 1 | 2; + + static scSpecEventDataFormatSingleValue(): ScSpecEventDataFormat; + + static scSpecEventDataFormatVec(): ScSpecEventDataFormat; + + static scSpecEventDataFormatMap(): ScSpecEventDataFormat; + } + class ScSpecEntryKind { readonly name: - | 'scSpecEntryFunctionV0' - | 'scSpecEntryUdtStructV0' - | 'scSpecEntryUdtUnionV0' - | 'scSpecEntryUdtEnumV0' - | 'scSpecEntryUdtErrorEnumV0'; + | "scSpecEntryFunctionV0" + | "scSpecEntryUdtStructV0" + | "scSpecEntryUdtUnionV0" + | "scSpecEntryUdtEnumV0" + | "scSpecEntryUdtErrorEnumV0" + | "scSpecEntryEventV0"; - readonly value: 0 | 1 | 2 | 3 | 4; + readonly value: 0 | 1 | 2 | 3 | 4 | 5; static scSpecEntryFunctionV0(): ScSpecEntryKind; @@ -2306,80 +2255,82 @@ export namespace xdr { static scSpecEntryUdtEnumV0(): ScSpecEntryKind; static scSpecEntryUdtErrorEnumV0(): ScSpecEntryKind; + + static scSpecEntryEventV0(): ScSpecEntryKind; } class ContractCostType { readonly name: - | 'wasmInsnExec' - | 'memAlloc' - | 'memCpy' - | 'memCmp' - | 'dispatchHostFunction' - | 'visitObject' - | 'valSer' - | 'valDeser' - | 'computeSha256Hash' - | 'computeEd25519PubKey' - | 'verifyEd25519Sig' - | 'vmInstantiation' - | 'vmCachedInstantiation' - | 'invokeVmFunction' - | 'computeKeccak256Hash' - | 'decodeEcdsaCurve256Sig' - | 'recoverEcdsaSecp256k1Key' - | 'int256AddSub' - | 'int256Mul' - | 'int256Div' - | 'int256Pow' - | 'int256Shift' - | 'chaCha20DrawBytes' - | 'parseWasmInstructions' - | 'parseWasmFunctions' - | 'parseWasmGlobals' - | 'parseWasmTableEntries' - | 'parseWasmTypes' - | 'parseWasmDataSegments' - | 'parseWasmElemSegments' - | 'parseWasmImports' - | 'parseWasmExports' - | 'parseWasmDataSegmentBytes' - | 'instantiateWasmInstructions' - | 'instantiateWasmFunctions' - | 'instantiateWasmGlobals' - | 'instantiateWasmTableEntries' - | 'instantiateWasmTypes' - | 'instantiateWasmDataSegments' - | 'instantiateWasmElemSegments' - | 'instantiateWasmImports' - | 'instantiateWasmExports' - | 'instantiateWasmDataSegmentBytes' - | 'sec1DecodePointUncompressed' - | 'verifyEcdsaSecp256r1Sig' - | 'bls12381EncodeFp' - | 'bls12381DecodeFp' - | 'bls12381G1CheckPointOnCurve' - | 'bls12381G1CheckPointInSubgroup' - | 'bls12381G2CheckPointOnCurve' - | 'bls12381G2CheckPointInSubgroup' - | 'bls12381G1ProjectiveToAffine' - | 'bls12381G2ProjectiveToAffine' - | 'bls12381G1Add' - | 'bls12381G1Mul' - | 'bls12381G1Msm' - | 'bls12381MapFpToG1' - | 'bls12381HashToG1' - | 'bls12381G2Add' - | 'bls12381G2Mul' - | 'bls12381G2Msm' - | 'bls12381MapFp2ToG2' - | 'bls12381HashToG2' - | 'bls12381Pairing' - | 'bls12381FrFromU256' - | 'bls12381FrToU256' - | 'bls12381FrAddSub' - | 'bls12381FrMul' - | 'bls12381FrPow' - | 'bls12381FrInv'; + | "wasmInsnExec" + | "memAlloc" + | "memCpy" + | "memCmp" + | "dispatchHostFunction" + | "visitObject" + | "valSer" + | "valDeser" + | "computeSha256Hash" + | "computeEd25519PubKey" + | "verifyEd25519Sig" + | "vmInstantiation" + | "vmCachedInstantiation" + | "invokeVmFunction" + | "computeKeccak256Hash" + | "decodeEcdsaCurve256Sig" + | "recoverEcdsaSecp256k1Key" + | "int256AddSub" + | "int256Mul" + | "int256Div" + | "int256Pow" + | "int256Shift" + | "chaCha20DrawBytes" + | "parseWasmInstructions" + | "parseWasmFunctions" + | "parseWasmGlobals" + | "parseWasmTableEntries" + | "parseWasmTypes" + | "parseWasmDataSegments" + | "parseWasmElemSegments" + | "parseWasmImports" + | "parseWasmExports" + | "parseWasmDataSegmentBytes" + | "instantiateWasmInstructions" + | "instantiateWasmFunctions" + | "instantiateWasmGlobals" + | "instantiateWasmTableEntries" + | "instantiateWasmTypes" + | "instantiateWasmDataSegments" + | "instantiateWasmElemSegments" + | "instantiateWasmImports" + | "instantiateWasmExports" + | "instantiateWasmDataSegmentBytes" + | "sec1DecodePointUncompressed" + | "verifyEcdsaSecp256r1Sig" + | "bls12381EncodeFp" + | "bls12381DecodeFp" + | "bls12381G1CheckPointOnCurve" + | "bls12381G1CheckPointInSubgroup" + | "bls12381G2CheckPointOnCurve" + | "bls12381G2CheckPointInSubgroup" + | "bls12381G1ProjectiveToAffine" + | "bls12381G2ProjectiveToAffine" + | "bls12381G1Add" + | "bls12381G1Mul" + | "bls12381G1Msm" + | "bls12381MapFpToG1" + | "bls12381HashToG1" + | "bls12381G2Add" + | "bls12381G2Mul" + | "bls12381G2Msm" + | "bls12381MapFp2ToG2" + | "bls12381HashToG2" + | "bls12381Pairing" + | "bls12381FrFromU256" + | "bls12381FrToU256" + | "bls12381FrAddSub" + | "bls12381FrMul" + | "bls12381FrPow" + | "bls12381FrInv"; readonly value: | 0 @@ -2596,22 +2547,42 @@ export namespace xdr { class ConfigSettingId { readonly name: - | 'configSettingContractMaxSizeBytes' - | 'configSettingContractComputeV0' - | 'configSettingContractLedgerCostV0' - | 'configSettingContractHistoricalDataV0' - | 'configSettingContractEventsV0' - | 'configSettingContractBandwidthV0' - | 'configSettingContractCostParamsCpuInstructions' - | 'configSettingContractCostParamsMemoryBytes' - | 'configSettingContractDataKeySizeBytes' - | 'configSettingContractDataEntrySizeBytes' - | 'configSettingStateArchival' - | 'configSettingContractExecutionLanes' - | 'configSettingBucketlistSizeWindow' - | 'configSettingEvictionIterator'; - - readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13; + | "configSettingContractMaxSizeBytes" + | "configSettingContractComputeV0" + | "configSettingContractLedgerCostV0" + | "configSettingContractHistoricalDataV0" + | "configSettingContractEventsV0" + | "configSettingContractBandwidthV0" + | "configSettingContractCostParamsCpuInstructions" + | "configSettingContractCostParamsMemoryBytes" + | "configSettingContractDataKeySizeBytes" + | "configSettingContractDataEntrySizeBytes" + | "configSettingStateArchival" + | "configSettingContractExecutionLanes" + | "configSettingLiveSorobanStateSizeWindow" + | "configSettingEvictionIterator" + | "configSettingContractParallelComputeV0" + | "configSettingContractLedgerCostExtV0" + | "configSettingScpTiming"; + + readonly value: + | 0 + | 1 + | 2 + | 3 + | 4 + | 5 + | 6 + | 7 + | 8 + | 9 + | 10 + | 11 + | 12 + | 13 + | 14 + | 15 + | 16; static configSettingContractMaxSizeBytes(): ConfigSettingId; @@ -2637,9 +2608,15 @@ export namespace xdr { static configSettingContractExecutionLanes(): ConfigSettingId; - static configSettingBucketlistSizeWindow(): ConfigSettingId; + static configSettingLiveSorobanStateSizeWindow(): ConfigSettingId; static configSettingEvictionIterator(): ConfigSettingId; + + static configSettingContractParallelComputeV0(): ConfigSettingId; + + static configSettingContractLedgerCostExtV0(): ConfigSettingId; + + static configSettingScpTiming(): ConfigSettingId; } const Value: VarOpaque; @@ -2654,8 +2631,6 @@ export namespace xdr { const DataValue: VarOpaque; - type PoolId = Hash; - const AssetCode4: Opaque; const AssetCode12: Opaque; @@ -2664,13 +2639,13 @@ export namespace xdr { const UpgradeType: VarOpaque; - const LedgerEntryChanges: XDRArray; + const DependentTxCluster: XDRArray; - const DiagnosticEvents: XDRArray; + const ParallelTxExecutionStage: XDRArray; - const EncryptedBody: VarOpaque; + const LedgerEntryChanges: XDRArray; - const PeerStatList: XDRArray; + const EncryptedBody: VarOpaque; const TimeSlicedPeerDataList: XDRArray; @@ -2678,7 +2653,7 @@ export namespace xdr { const TxDemandVector: XDRArray; - const ProofLevel: XDRArray; + const SorobanAuthorizationEntries: XDRArray; const Hash: Opaque; @@ -2704,6 +2679,10 @@ export namespace xdr { type AccountId = PublicKey; + type ContractId = Hash; + + type PoolId = Hash; + const ScVec: XDRArray; const ScMap: XDRArray; @@ -2723,9 +2702,9 @@ export namespace xdr { value(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpBallot; @@ -2735,13 +2714,13 @@ export namespace xdr { static toXDR(value: ScpBallot): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpBallot; + static fromXDR(input: Buffer, format?: "raw"): ScpBallot; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpBallot; + static fromXDR(input: string, format: "hex" | "base64"): ScpBallot; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpNomination { @@ -2757,9 +2736,9 @@ export namespace xdr { accepted(value?: Buffer[]): Buffer[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpNomination; @@ -2769,13 +2748,13 @@ export namespace xdr { static toXDR(value: ScpNomination): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpNomination; + static fromXDR(input: Buffer, format?: "raw"): ScpNomination; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpNomination; + static fromXDR(input: string, format: "hex" | "base64"): ScpNomination; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementPrepare { @@ -2800,9 +2779,9 @@ export namespace xdr { nH(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementPrepare; @@ -2812,16 +2791,16 @@ export namespace xdr { static toXDR(value: ScpStatementPrepare): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPrepare; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementPrepare; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementPrepare; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementConfirm { @@ -2843,9 +2822,9 @@ export namespace xdr { quorumSetHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementConfirm; @@ -2855,16 +2834,16 @@ export namespace xdr { static toXDR(value: ScpStatementConfirm): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementConfirm; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementConfirm; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementConfirm; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementExternalize { @@ -2880,9 +2859,9 @@ export namespace xdr { commitQuorumSetHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementExternalize; @@ -2892,16 +2871,16 @@ export namespace xdr { static toXDR(value: ScpStatementExternalize): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementExternalize; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementExternalize; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementExternalize; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatement { @@ -2917,9 +2896,9 @@ export namespace xdr { pledges(value?: ScpStatementPledges): ScpStatementPledges; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatement; @@ -2929,13 +2908,13 @@ export namespace xdr { static toXDR(value: ScpStatement): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatement; + static fromXDR(input: Buffer, format?: "raw"): ScpStatement; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpStatement; + static fromXDR(input: string, format: "hex" | "base64"): ScpStatement; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpEnvelope { @@ -2945,9 +2924,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpEnvelope; @@ -2957,13 +2936,13 @@ export namespace xdr { static toXDR(value: ScpEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpEnvelope; + static fromXDR(input: Buffer, format?: "raw"): ScpEnvelope; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpEnvelope; + static fromXDR(input: string, format: "hex" | "base64"): ScpEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpQuorumSet { @@ -2979,9 +2958,9 @@ export namespace xdr { innerSets(value?: ScpQuorumSet[]): ScpQuorumSet[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpQuorumSet; @@ -2991,13 +2970,13 @@ export namespace xdr { static toXDR(value: ScpQuorumSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpQuorumSet; + static fromXDR(input: Buffer, format?: "raw"): ScpQuorumSet; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpQuorumSet; + static fromXDR(input: string, format: "hex" | "base64"): ScpQuorumSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AlphaNum4 { @@ -3007,9 +2986,9 @@ export namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AlphaNum4; @@ -3019,13 +2998,13 @@ export namespace xdr { static toXDR(value: AlphaNum4): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AlphaNum4; + static fromXDR(input: Buffer, format?: "raw"): AlphaNum4; - static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum4; + static fromXDR(input: string, format: "hex" | "base64"): AlphaNum4; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AlphaNum12 { @@ -3035,9 +3014,9 @@ export namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AlphaNum12; @@ -3047,13 +3026,13 @@ export namespace xdr { static toXDR(value: AlphaNum12): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AlphaNum12; + static fromXDR(input: Buffer, format?: "raw"): AlphaNum12; - static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum12; + static fromXDR(input: string, format: "hex" | "base64"): AlphaNum12; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Price { @@ -3063,9 +3042,9 @@ export namespace xdr { d(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Price; @@ -3075,13 +3054,13 @@ export namespace xdr { static toXDR(value: Price): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Price; + static fromXDR(input: Buffer, format?: "raw"): Price; - static fromXDR(input: string, format: 'hex' | 'base64'): Price; + static fromXDR(input: string, format: "hex" | "base64"): Price; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Liabilities { @@ -3091,9 +3070,9 @@ export namespace xdr { selling(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Liabilities; @@ -3103,13 +3082,13 @@ export namespace xdr { static toXDR(value: Liabilities): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Liabilities; + static fromXDR(input: Buffer, format?: "raw"): Liabilities; - static fromXDR(input: string, format: 'hex' | 'base64'): Liabilities; + static fromXDR(input: string, format: "hex" | "base64"): Liabilities; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Signer { @@ -3119,9 +3098,9 @@ export namespace xdr { weight(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Signer; @@ -3131,13 +3110,13 @@ export namespace xdr { static toXDR(value: Signer): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Signer; + static fromXDR(input: Buffer, format?: "raw"): Signer; - static fromXDR(input: string, format: 'hex' | 'base64'): Signer; + static fromXDR(input: string, format: "hex" | "base64"): Signer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV3 { @@ -3153,9 +3132,9 @@ export namespace xdr { seqTime(value?: TimePoint): TimePoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV3; @@ -3165,16 +3144,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV3): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV3; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV3; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV3; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV2 { @@ -3195,9 +3174,9 @@ export namespace xdr { ext(value?: AccountEntryExtensionV2Ext): AccountEntryExtensionV2Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV2; @@ -3207,16 +3186,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV1 { @@ -3229,9 +3208,9 @@ export namespace xdr { ext(value?: AccountEntryExtensionV1Ext): AccountEntryExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV1; @@ -3241,16 +3220,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntry { @@ -3287,9 +3266,9 @@ export namespace xdr { ext(value?: AccountEntryExt): AccountEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntry; @@ -3299,13 +3278,13 @@ export namespace xdr { static toXDR(value: AccountEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntry; + static fromXDR(input: Buffer, format?: "raw"): AccountEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntry; + static fromXDR(input: string, format: "hex" | "base64"): AccountEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExtensionV2 { @@ -3318,9 +3297,9 @@ export namespace xdr { ext(value?: TrustLineEntryExtensionV2Ext): TrustLineEntryExtensionV2Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExtensionV2; @@ -3330,16 +3309,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryExtensionV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryV1 { @@ -3352,9 +3331,9 @@ export namespace xdr { ext(value?: TrustLineEntryV1Ext): TrustLineEntryV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryV1; @@ -3364,13 +3343,13 @@ export namespace xdr { static toXDR(value: TrustLineEntryV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryV1; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntry { @@ -3395,9 +3374,9 @@ export namespace xdr { ext(value?: TrustLineEntryExt): TrustLineEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntry; @@ -3407,13 +3386,13 @@ export namespace xdr { static toXDR(value: TrustLineEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntry; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntry; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OfferEntry { @@ -3444,9 +3423,9 @@ export namespace xdr { ext(value?: OfferEntryExt): OfferEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OfferEntry; @@ -3456,13 +3435,13 @@ export namespace xdr { static toXDR(value: OfferEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OfferEntry; + static fromXDR(input: Buffer, format?: "raw"): OfferEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntry; + static fromXDR(input: string, format: "hex" | "base64"): OfferEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DataEntry { @@ -3481,9 +3460,9 @@ export namespace xdr { ext(value?: DataEntryExt): DataEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DataEntry; @@ -3493,13 +3472,13 @@ export namespace xdr { static toXDR(value: DataEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DataEntry; + static fromXDR(input: Buffer, format?: "raw"): DataEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): DataEntry; + static fromXDR(input: string, format: "hex" | "base64"): DataEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimantV0 { @@ -3512,9 +3491,9 @@ export namespace xdr { predicate(value?: ClaimPredicate): ClaimPredicate; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimantV0; @@ -3524,13 +3503,13 @@ export namespace xdr { static toXDR(value: ClaimantV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimantV0; + static fromXDR(input: Buffer, format?: "raw"): ClaimantV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimantV0; + static fromXDR(input: string, format: "hex" | "base64"): ClaimantV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExtensionV1 { @@ -3545,9 +3524,9 @@ export namespace xdr { flags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1; @@ -3559,17 +3538,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClaimableBalanceEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntry { @@ -3591,9 +3570,9 @@ export namespace xdr { ext(value?: ClaimableBalanceEntryExt): ClaimableBalanceEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntry; @@ -3603,16 +3582,16 @@ export namespace xdr { static toXDR(value: ClaimableBalanceEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntry; + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolConstantProductParameters { @@ -3624,9 +3603,9 @@ export namespace xdr { fee(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolConstantProductParameters; @@ -3641,17 +3620,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): LiquidityPoolConstantProductParameters; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolConstantProductParameters; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntryConstantProduct { @@ -3675,9 +3654,9 @@ export namespace xdr { poolSharesTrustLineCount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntryConstantProduct; @@ -3689,17 +3668,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): LiquidityPoolEntryConstantProduct; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolEntryConstantProduct; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntry { @@ -3712,9 +3691,9 @@ export namespace xdr { body(value?: LiquidityPoolEntryBody): LiquidityPoolEntryBody; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntry; @@ -3724,13 +3703,13 @@ export namespace xdr { static toXDR(value: LiquidityPoolEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntry; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): LiquidityPoolEntry; + static fromXDR(input: string, format: "hex" | "base64"): LiquidityPoolEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractDataEntry { @@ -3752,9 +3731,9 @@ export namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractDataEntry; @@ -3764,13 +3743,13 @@ export namespace xdr { static toXDR(value: ContractDataEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractDataEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractDataEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractDataEntry; + static fromXDR(input: string, format: "hex" | "base64"): ContractDataEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeCostInputs { @@ -3810,9 +3789,9 @@ export namespace xdr { nDataSegmentBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeCostInputs; @@ -3822,16 +3801,16 @@ export namespace xdr { static toXDR(value: ContractCodeCostInputs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeCostInputs; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeCostInputs; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeCostInputs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntryV1 { @@ -3844,9 +3823,9 @@ export namespace xdr { costInputs(value?: ContractCodeCostInputs): ContractCodeCostInputs; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntryV1; @@ -3856,16 +3835,16 @@ export namespace xdr { static toXDR(value: ContractCodeEntryV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryV1; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeEntryV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntry { @@ -3881,9 +3860,9 @@ export namespace xdr { code(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntry; @@ -3893,13 +3872,13 @@ export namespace xdr { static toXDR(value: ContractCodeEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractCodeEntry; + static fromXDR(input: string, format: "hex" | "base64"): ContractCodeEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TtlEntry { @@ -3909,9 +3888,9 @@ export namespace xdr { liveUntilLedgerSeq(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TtlEntry; @@ -3921,13 +3900,13 @@ export namespace xdr { static toXDR(value: TtlEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TtlEntry; + static fromXDR(input: Buffer, format?: "raw"): TtlEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): TtlEntry; + static fromXDR(input: string, format: "hex" | "base64"): TtlEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExtensionV1 { @@ -3940,9 +3919,9 @@ export namespace xdr { ext(value?: LedgerEntryExtensionV1Ext): LedgerEntryExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExtensionV1; @@ -3952,16 +3931,16 @@ export namespace xdr { static toXDR(value: LedgerEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntry { @@ -3977,9 +3956,9 @@ export namespace xdr { ext(value?: LedgerEntryExt): LedgerEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntry; @@ -3989,13 +3968,13 @@ export namespace xdr { static toXDR(value: LedgerEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntry; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntry; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyAccount { @@ -4003,9 +3982,9 @@ export namespace xdr { accountId(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyAccount; @@ -4015,13 +3994,13 @@ export namespace xdr { static toXDR(value: LedgerKeyAccount): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyAccount; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyAccount; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyAccount; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyAccount; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyTrustLine { @@ -4031,9 +4010,9 @@ export namespace xdr { asset(value?: TrustLineAsset): TrustLineAsset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyTrustLine; @@ -4043,13 +4022,13 @@ export namespace xdr { static toXDR(value: LedgerKeyTrustLine): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTrustLine; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTrustLine; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTrustLine; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTrustLine; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyOffer { @@ -4059,9 +4038,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyOffer; @@ -4071,13 +4050,13 @@ export namespace xdr { static toXDR(value: LedgerKeyOffer): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyOffer; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyOffer; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyOffer; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyOffer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyData { @@ -4090,9 +4069,9 @@ export namespace xdr { dataName(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyData; @@ -4102,13 +4081,13 @@ export namespace xdr { static toXDR(value: LedgerKeyData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyData; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyData; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyData; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyClaimableBalance { @@ -4116,9 +4095,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyClaimableBalance; @@ -4128,16 +4107,16 @@ export namespace xdr { static toXDR(value: LedgerKeyClaimableBalance): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyClaimableBalance; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyClaimableBalance; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyClaimableBalance; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyLiquidityPool { @@ -4145,9 +4124,9 @@ export namespace xdr { liquidityPoolId(value?: PoolId): PoolId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyLiquidityPool; @@ -4157,16 +4136,16 @@ export namespace xdr { static toXDR(value: LedgerKeyLiquidityPool): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyLiquidityPool; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyLiquidityPool; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyLiquidityPool; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyContractData { @@ -4182,9 +4161,9 @@ export namespace xdr { durability(value?: ContractDataDurability): ContractDataDurability; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyContractData; @@ -4194,16 +4173,16 @@ export namespace xdr { static toXDR(value: LedgerKeyContractData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractData; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractData; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyContractData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyContractCode { @@ -4211,9 +4190,9 @@ export namespace xdr { hash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyContractCode; @@ -4223,16 +4202,16 @@ export namespace xdr { static toXDR(value: LedgerKeyContractCode): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractCode; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractCode; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyContractCode; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyConfigSetting { @@ -4240,9 +4219,9 @@ export namespace xdr { configSettingId(value?: ConfigSettingId): ConfigSettingId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyConfigSetting; @@ -4252,16 +4231,16 @@ export namespace xdr { static toXDR(value: LedgerKeyConfigSetting): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyConfigSetting; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyConfigSetting; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyConfigSetting; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyTtl { @@ -4269,9 +4248,9 @@ export namespace xdr { keyHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyTtl; @@ -4281,13 +4260,13 @@ export namespace xdr { static toXDR(value: LedgerKeyTtl): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTtl; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTtl; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTtl; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTtl; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketMetadata { @@ -4297,9 +4276,9 @@ export namespace xdr { ext(value?: BucketMetadataExt): BucketMetadataExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketMetadata; @@ -4309,139 +4288,13 @@ export namespace xdr { static toXDR(value: BucketMetadata): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketMetadata; - - static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadata; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveArchivedLeaf { - constructor(attributes: { index: number; archivedEntry: LedgerEntry }); - - index(value?: number): number; - - archivedEntry(value?: LedgerEntry): LedgerEntry; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveArchivedLeaf; - - static write(value: ColdArchiveArchivedLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveArchivedLeaf): boolean; - - static toXDR(value: ColdArchiveArchivedLeaf): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveArchivedLeaf; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveArchivedLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveDeletedLeaf { - constructor(attributes: { index: number; deletedKey: LedgerKey }); - - index(value?: number): number; - - deletedKey(value?: LedgerKey): LedgerKey; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveDeletedLeaf; - - static write(value: ColdArchiveDeletedLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveDeletedLeaf): boolean; - - static toXDR(value: ColdArchiveDeletedLeaf): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveDeletedLeaf; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveDeletedLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveBoundaryLeaf { - constructor(attributes: { index: number; isLowerBound: boolean }); - - index(value?: number): number; - - isLowerBound(value?: boolean): boolean; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveBoundaryLeaf; - - static write(value: ColdArchiveBoundaryLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveBoundaryLeaf): boolean; - - static toXDR(value: ColdArchiveBoundaryLeaf): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveBoundaryLeaf; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveBoundaryLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveHashEntry { - constructor(attributes: { index: number; level: number; hash: Buffer }); - - index(value?: number): number; - - level(value?: number): number; + static fromXDR(input: Buffer, format?: "raw"): BucketMetadata; - hash(value?: Buffer): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveHashEntry; - - static write(value: ColdArchiveHashEntry, io: Buffer): void; - - static isValid(value: ColdArchiveHashEntry): boolean; - - static toXDR(value: ColdArchiveHashEntry): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveHashEntry; + static fromXDR(input: string, format: "hex" | "base64"): BucketMetadata; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveHashEntry; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseValueSignature { @@ -4451,9 +4304,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseValueSignature; @@ -4463,16 +4316,16 @@ export namespace xdr { static toXDR(value: LedgerCloseValueSignature): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseValueSignature; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseValueSignature; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerCloseValueSignature; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarValue { @@ -4491,9 +4344,9 @@ export namespace xdr { ext(value?: StellarValueExt): StellarValueExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarValue; @@ -4503,13 +4356,13 @@ export namespace xdr { static toXDR(value: StellarValue): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarValue; + static fromXDR(input: Buffer, format?: "raw"): StellarValue; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarValue; + static fromXDR(input: string, format: "hex" | "base64"): StellarValue; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExtensionV1 { @@ -4519,9 +4372,9 @@ export namespace xdr { ext(value?: LedgerHeaderExtensionV1Ext): LedgerHeaderExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExtensionV1; @@ -4531,16 +4384,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeader { @@ -4592,9 +4445,9 @@ export namespace xdr { ext(value?: LedgerHeaderExt): LedgerHeaderExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeader; @@ -4604,25 +4457,25 @@ export namespace xdr { static toXDR(value: LedgerHeader): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeader; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeader; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeader; + static fromXDR(input: string, format: "hex" | "base64"): LedgerHeader; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigUpgradeSetKey { - constructor(attributes: { contractId: Buffer; contentHash: Buffer }); + constructor(attributes: { contractId: ContractId; contentHash: Buffer }); - contractId(value?: Buffer): Buffer; + contractId(value?: ContractId): ContractId; contentHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigUpgradeSetKey; @@ -4632,16 +4485,16 @@ export namespace xdr { static toXDR(value: ConfigUpgradeSetKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSetKey; + static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSetKey; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigUpgradeSetKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigUpgradeSet { @@ -4649,9 +4502,9 @@ export namespace xdr { updatedEntry(value?: ConfigSettingEntry[]): ConfigSettingEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigUpgradeSet; @@ -4661,13 +4514,49 @@ export namespace xdr { static toXDR(value: ConfigUpgradeSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSet; + static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSet; + + static fromXDR(input: string, format: "hex" | "base64"): ConfigUpgradeSet; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ParallelTxsComponent { + constructor(attributes: { + baseFee: null | Int64; + executionStages: TransactionEnvelope[][][]; + }); + + baseFee(value?: null | Int64): null | Int64; + + executionStages( + value?: TransactionEnvelope[][][], + ): TransactionEnvelope[][][]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; - static fromXDR(input: string, format: 'hex' | 'base64'): ConfigUpgradeSet; + static read(io: Buffer): ParallelTxsComponent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static write(value: ParallelTxsComponent, io: Buffer): void; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static isValid(value: ParallelTxsComponent): boolean; + + static toXDR(value: ParallelTxsComponent): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ParallelTxsComponent; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ParallelTxsComponent; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TxSetComponentTxsMaybeDiscountedFee { @@ -4680,9 +4569,9 @@ export namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TxSetComponentTxsMaybeDiscountedFee; @@ -4694,17 +4583,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TxSetComponentTxsMaybeDiscountedFee; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TxSetComponentTxsMaybeDiscountedFee; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSet { @@ -4717,9 +4606,9 @@ export namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSet; @@ -4729,13 +4618,13 @@ export namespace xdr { static toXDR(value: TransactionSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSet; + static fromXDR(input: Buffer, format?: "raw"): TransactionSet; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSet; + static fromXDR(input: string, format: "hex" | "base64"): TransactionSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSetV1 { @@ -4748,9 +4637,9 @@ export namespace xdr { phases(value?: TransactionPhase[]): TransactionPhase[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSetV1; @@ -4760,13 +4649,13 @@ export namespace xdr { static toXDR(value: TransactionSetV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSetV1; + static fromXDR(input: Buffer, format?: "raw"): TransactionSetV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSetV1; + static fromXDR(input: string, format: "hex" | "base64"): TransactionSetV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultPair { @@ -4779,9 +4668,9 @@ export namespace xdr { result(value?: TransactionResult): TransactionResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultPair; @@ -4791,16 +4680,16 @@ export namespace xdr { static toXDR(value: TransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultPair; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultPair; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultPair; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultSet { @@ -4808,9 +4697,9 @@ export namespace xdr { results(value?: TransactionResultPair[]): TransactionResultPair[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultSet; @@ -4820,16 +4709,16 @@ export namespace xdr { static toXDR(value: TransactionResultSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultSet; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultSet; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryEntry { @@ -4845,9 +4734,9 @@ export namespace xdr { ext(value?: TransactionHistoryEntryExt): TransactionHistoryEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryEntry; @@ -4857,16 +4746,16 @@ export namespace xdr { static toXDR(value: TransactionHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryResultEntry { @@ -4884,9 +4773,9 @@ export namespace xdr { value?: TransactionHistoryResultEntryExt, ): TransactionHistoryResultEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryResultEntry; @@ -4898,17 +4787,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionHistoryResultEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryResultEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderHistoryEntry { @@ -4924,9 +4813,9 @@ export namespace xdr { ext(value?: LedgerHeaderHistoryEntryExt): LedgerHeaderHistoryEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderHistoryEntry; @@ -4936,16 +4825,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerScpMessages { @@ -4955,9 +4844,9 @@ export namespace xdr { messages(value?: ScpEnvelope[]): ScpEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerScpMessages; @@ -4967,13 +4856,13 @@ export namespace xdr { static toXDR(value: LedgerScpMessages): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerScpMessages; + static fromXDR(input: Buffer, format?: "raw"): LedgerScpMessages; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerScpMessages; + static fromXDR(input: string, format: "hex" | "base64"): LedgerScpMessages; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpHistoryEntryV0 { @@ -4986,9 +4875,9 @@ export namespace xdr { ledgerMessages(value?: LedgerScpMessages): LedgerScpMessages; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpHistoryEntryV0; @@ -4998,13 +4887,13 @@ export namespace xdr { static toXDR(value: ScpHistoryEntryV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntryV0; + static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntryV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntryV0; + static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntryV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationMeta { @@ -5012,9 +4901,9 @@ export namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationMeta; @@ -5024,13 +4913,13 @@ export namespace xdr { static toXDR(value: OperationMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationMeta; + static fromXDR(input: Buffer, format?: "raw"): OperationMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationMeta; + static fromXDR(input: string, format: "hex" | "base64"): OperationMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV1 { @@ -5043,9 +4932,9 @@ export namespace xdr { operations(value?: OperationMeta[]): OperationMeta[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV1; @@ -5055,13 +4944,13 @@ export namespace xdr { static toXDR(value: TransactionMetaV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV1; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV1; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV2 { @@ -5077,9 +4966,9 @@ export namespace xdr { txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV2; @@ -5089,13 +4978,13 @@ export namespace xdr { static toXDR(value: TransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV2; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV2; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV2; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEventV0 { @@ -5105,9 +4994,9 @@ export namespace xdr { data(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEventV0; @@ -5117,34 +5006,34 @@ export namespace xdr { static toXDR(value: ContractEventV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEventV0; + static fromXDR(input: Buffer, format?: "raw"): ContractEventV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventV0; + static fromXDR(input: string, format: "hex" | "base64"): ContractEventV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEvent { constructor(attributes: { ext: ExtensionPoint; - contractId: null | Buffer; + contractId: null | ContractId; type: ContractEventType; body: ContractEventBody; }); ext(value?: ExtensionPoint): ExtensionPoint; - contractId(value?: null | Buffer): null | Buffer; + contractId(value?: null | ContractId): null | ContractId; type(value?: ContractEventType): ContractEventType; body(value?: ContractEventBody): ContractEventBody; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEvent; @@ -5154,13 +5043,13 @@ export namespace xdr { static toXDR(value: ContractEvent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEvent; + static fromXDR(input: Buffer, format?: "raw"): ContractEvent; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEvent; + static fromXDR(input: string, format: "hex" | "base64"): ContractEvent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DiagnosticEvent { @@ -5173,9 +5062,9 @@ export namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DiagnosticEvent; @@ -5185,13 +5074,13 @@ export namespace xdr { static toXDR(value: DiagnosticEvent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DiagnosticEvent; + static fromXDR(input: Buffer, format?: "raw"): DiagnosticEvent; - static fromXDR(input: string, format: 'hex' | 'base64'): DiagnosticEvent; + static fromXDR(input: string, format: "hex" | "base64"): DiagnosticEvent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMetaExtV1 { @@ -5210,9 +5099,9 @@ export namespace xdr { rentFeeCharged(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMetaExtV1; @@ -5222,16 +5111,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExtV1; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExtV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMetaExtV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMeta { @@ -5250,9 +5139,9 @@ export namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMeta; @@ -5262,16 +5151,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMeta; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMeta; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV3 { @@ -5295,9 +5184,9 @@ export namespace xdr { value?: null | SorobanTransactionMeta, ): null | SorobanTransactionMeta; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV3; @@ -5307,84 +5196,274 @@ export namespace xdr { static toXDR(value: TransactionMetaV3): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV3; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV3; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV3; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV3; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class InvokeHostFunctionSuccessPreImage { - constructor(attributes: { returnValue: ScVal; events: ContractEvent[] }); + class OperationMetaV2 { + constructor(attributes: { + ext: ExtensionPoint; + changes: LedgerEntryChange[]; + events: ContractEvent[]; + }); - returnValue(value?: ScVal): ScVal; + ext(value?: ExtensionPoint): ExtensionPoint; + + changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): InvokeHostFunctionSuccessPreImage; + static read(io: Buffer): OperationMetaV2; - static write(value: InvokeHostFunctionSuccessPreImage, io: Buffer): void; + static write(value: OperationMetaV2, io: Buffer): void; - static isValid(value: InvokeHostFunctionSuccessPreImage): boolean; + static isValid(value: OperationMetaV2): boolean; - static toXDR(value: InvokeHostFunctionSuccessPreImage): Buffer; + static toXDR(value: OperationMetaV2): Buffer; - static fromXDR( - input: Buffer, - format?: 'raw', - ): InvokeHostFunctionSuccessPreImage; + static fromXDR(input: Buffer, format?: "raw"): OperationMetaV2; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): InvokeHostFunctionSuccessPreImage; + static fromXDR(input: string, format: "hex" | "base64"): OperationMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class TransactionResultMeta { + class SorobanTransactionMetaV2 { constructor(attributes: { - result: TransactionResultPair; - feeProcessing: LedgerEntryChange[]; - txApplyProcessing: TransactionMeta; + ext: SorobanTransactionMetaExt; + returnValue: null | ScVal; }); - result(value?: TransactionResultPair): TransactionResultPair; + ext(value?: SorobanTransactionMetaExt): SorobanTransactionMetaExt; - feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + returnValue(value?: null | ScVal): null | ScVal; - txApplyProcessing(value?: TransactionMeta): TransactionMeta; + toXDR(format?: "raw"): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format: "hex" | "base64"): string; - toXDR(format: 'hex' | 'base64'): string; + static read(io: Buffer): SorobanTransactionMetaV2; - static read(io: Buffer): TransactionResultMeta; + static write(value: SorobanTransactionMetaV2, io: Buffer): void; - static write(value: TransactionResultMeta, io: Buffer): void; + static isValid(value: SorobanTransactionMetaV2): boolean; - static isValid(value: TransactionResultMeta): boolean; + static toXDR(value: SorobanTransactionMetaV2): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaV2; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): SorobanTransactionMetaV2; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionEvent { + constructor(attributes: { + stage: TransactionEventStage; + event: ContractEvent; + }); + + stage(value?: TransactionEventStage): TransactionEventStage; + + event(value?: ContractEvent): ContractEvent; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): TransactionEvent; + + static write(value: TransactionEvent, io: Buffer): void; + + static isValid(value: TransactionEvent): boolean; + + static toXDR(value: TransactionEvent): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): TransactionEvent; + + static fromXDR(input: string, format: "hex" | "base64"): TransactionEvent; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionMetaV4 { + constructor(attributes: { + ext: ExtensionPoint; + txChangesBefore: LedgerEntryChange[]; + operations: OperationMetaV2[]; + txChangesAfter: LedgerEntryChange[]; + sorobanMeta: null | SorobanTransactionMetaV2; + events: TransactionEvent[]; + diagnosticEvents: DiagnosticEvent[]; + }); + + ext(value?: ExtensionPoint): ExtensionPoint; + + txChangesBefore(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + operations(value?: OperationMetaV2[]): OperationMetaV2[]; + + txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + sorobanMeta( + value?: null | SorobanTransactionMetaV2, + ): null | SorobanTransactionMetaV2; + + events(value?: TransactionEvent[]): TransactionEvent[]; + + diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): TransactionMetaV4; + + static write(value: TransactionMetaV4, io: Buffer): void; + + static isValid(value: TransactionMetaV4): boolean; + + static toXDR(value: TransactionMetaV4): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV4; + + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV4; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class InvokeHostFunctionSuccessPreImage { + constructor(attributes: { returnValue: ScVal; events: ContractEvent[] }); + + returnValue(value?: ScVal): ScVal; + + events(value?: ContractEvent[]): ContractEvent[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): InvokeHostFunctionSuccessPreImage; + + static write(value: InvokeHostFunctionSuccessPreImage, io: Buffer): void; + + static isValid(value: InvokeHostFunctionSuccessPreImage): boolean; + + static toXDR(value: InvokeHostFunctionSuccessPreImage): Buffer; + + static fromXDR( + input: Buffer, + format?: "raw", + ): InvokeHostFunctionSuccessPreImage; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): InvokeHostFunctionSuccessPreImage; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionResultMeta { + constructor(attributes: { + result: TransactionResultPair; + feeProcessing: LedgerEntryChange[]; + txApplyProcessing: TransactionMeta; + }); + + result(value?: TransactionResultPair): TransactionResultPair; + + feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + txApplyProcessing(value?: TransactionMeta): TransactionMeta; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): TransactionResultMeta; + + static write(value: TransactionResultMeta, io: Buffer): void; + + static isValid(value: TransactionResultMeta): boolean; static toXDR(value: TransactionResultMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMeta; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultMeta; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionResultMetaV1 { + constructor(attributes: { + ext: ExtensionPoint; + result: TransactionResultPair; + feeProcessing: LedgerEntryChange[]; + txApplyProcessing: TransactionMeta; + postTxApplyFeeProcessing: LedgerEntryChange[]; + }); + + ext(value?: ExtensionPoint): ExtensionPoint; + + result(value?: TransactionResultPair): TransactionResultPair; + + feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + txApplyProcessing(value?: TransactionMeta): TransactionMeta; + + postTxApplyFeeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static read(io: Buffer): TransactionResultMetaV1; + + static write(value: TransactionResultMetaV1, io: Buffer): void; + + static isValid(value: TransactionResultMetaV1): boolean; + + static toXDR(value: TransactionResultMetaV1): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): TransactionResultMetaV1; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): TransactionResultMetaV1; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class UpgradeEntryMeta { @@ -5397,9 +5476,9 @@ export namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): UpgradeEntryMeta; @@ -5409,13 +5488,13 @@ export namespace xdr { static toXDR(value: UpgradeEntryMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UpgradeEntryMeta; + static fromXDR(input: Buffer, format?: "raw"): UpgradeEntryMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): UpgradeEntryMeta; + static fromXDR(input: string, format: "hex" | "base64"): UpgradeEntryMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaV0 { @@ -5437,9 +5516,9 @@ export namespace xdr { scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaV0; @@ -5449,13 +5528,13 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV0; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV0; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV0; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaExtV1 { @@ -5465,9 +5544,9 @@ export namespace xdr { sorobanFeeWrite1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaExtV1; @@ -5477,16 +5556,16 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExtV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExtV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerCloseMetaExtV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaV1 { @@ -5497,9 +5576,9 @@ export namespace xdr { txProcessing: TransactionResultMeta[]; upgradesProcessing: UpgradeEntryMeta[]; scpInfo: ScpHistoryEntry[]; - totalByteSizeOfBucketList: Uint64; - evictedTemporaryLedgerKeys: LedgerKey[]; - evictedPersistentLedgerEntries: LedgerEntry[]; + totalByteSizeOfLiveSorobanState: Uint64; + evictedKeys: LedgerKey[]; + unused: LedgerEntry[]; }); ext(value?: LedgerCloseMetaExt): LedgerCloseMetaExt; @@ -5514,15 +5593,15 @@ export namespace xdr { scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; - totalByteSizeOfBucketList(value?: Uint64): Uint64; + totalByteSizeOfLiveSorobanState(value?: Uint64): Uint64; - evictedTemporaryLedgerKeys(value?: LedgerKey[]): LedgerKey[]; + evictedKeys(value?: LedgerKey[]): LedgerKey[]; - evictedPersistentLedgerEntries(value?: LedgerEntry[]): LedgerEntry[]; + unused(value?: LedgerEntry[]): LedgerEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaV1; @@ -5532,13 +5611,62 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV1; + + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV1; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaV2 { + constructor(attributes: { + ext: LedgerCloseMetaExt; + ledgerHeader: LedgerHeaderHistoryEntry; + txSet: GeneralizedTransactionSet; + txProcessing: TransactionResultMetaV1[]; + upgradesProcessing: UpgradeEntryMeta[]; + scpInfo: ScpHistoryEntry[]; + totalByteSizeOfLiveSorobanState: Uint64; + evictedKeys: LedgerKey[]; + }); + + ext(value?: LedgerCloseMetaExt): LedgerCloseMetaExt; + + ledgerHeader(value?: LedgerHeaderHistoryEntry): LedgerHeaderHistoryEntry; + + txSet(value?: GeneralizedTransactionSet): GeneralizedTransactionSet; + + txProcessing(value?: TransactionResultMetaV1[]): TransactionResultMetaV1[]; + + upgradesProcessing(value?: UpgradeEntryMeta[]): UpgradeEntryMeta[]; + + scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; + + totalByteSizeOfLiveSorobanState(value?: Uint64): Uint64; + + evictedKeys(value?: LedgerKey[]): LedgerKey[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): LedgerCloseMetaV2; + + static write(value: LedgerCloseMetaV2, io: Buffer): void; + + static isValid(value: LedgerCloseMetaV2): boolean; + + static toXDR(value: LedgerCloseMetaV2): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV2; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV1; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Error { @@ -5548,9 +5676,9 @@ export namespace xdr { msg(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Error; @@ -5560,13 +5688,13 @@ export namespace xdr { static toXDR(value: Error): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Error; + static fromXDR(input: Buffer, format?: "raw"): Error; - static fromXDR(input: string, format: 'hex' | 'base64'): Error; + static fromXDR(input: string, format: "hex" | "base64"): Error; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SendMore { @@ -5574,9 +5702,9 @@ export namespace xdr { numMessages(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SendMore; @@ -5586,13 +5714,13 @@ export namespace xdr { static toXDR(value: SendMore): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SendMore; + static fromXDR(input: Buffer, format?: "raw"): SendMore; - static fromXDR(input: string, format: 'hex' | 'base64'): SendMore; + static fromXDR(input: string, format: "hex" | "base64"): SendMore; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SendMoreExtended { @@ -5602,9 +5730,9 @@ export namespace xdr { numBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SendMoreExtended; @@ -5614,13 +5742,13 @@ export namespace xdr { static toXDR(value: SendMoreExtended): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SendMoreExtended; + static fromXDR(input: Buffer, format?: "raw"): SendMoreExtended; - static fromXDR(input: string, format: 'hex' | 'base64'): SendMoreExtended; + static fromXDR(input: string, format: "hex" | "base64"): SendMoreExtended; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthCert { @@ -5636,9 +5764,9 @@ export namespace xdr { sig(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthCert; @@ -5648,13 +5776,13 @@ export namespace xdr { static toXDR(value: AuthCert): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthCert; + static fromXDR(input: Buffer, format?: "raw"): AuthCert; - static fromXDR(input: string, format: 'hex' | 'base64'): AuthCert; + static fromXDR(input: string, format: "hex" | "base64"): AuthCert; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Hello { @@ -5688,9 +5816,9 @@ export namespace xdr { nonce(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Hello; @@ -5700,13 +5828,13 @@ export namespace xdr { static toXDR(value: Hello): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Hello; + static fromXDR(input: Buffer, format?: "raw"): Hello; - static fromXDR(input: string, format: 'hex' | 'base64'): Hello; + static fromXDR(input: string, format: "hex" | "base64"): Hello; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Auth { @@ -5714,9 +5842,9 @@ export namespace xdr { flags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Auth; @@ -5726,13 +5854,13 @@ export namespace xdr { static toXDR(value: Auth): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Auth; + static fromXDR(input: Buffer, format?: "raw"): Auth; - static fromXDR(input: string, format: 'hex' | 'base64'): Auth; + static fromXDR(input: string, format: "hex" | "base64"): Auth; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerAddress { @@ -5748,9 +5876,9 @@ export namespace xdr { numFailures(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerAddress; @@ -5760,13 +5888,13 @@ export namespace xdr { static toXDR(value: PeerAddress): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerAddress; + static fromXDR(input: Buffer, format?: "raw"): PeerAddress; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddress; + static fromXDR(input: string, format: "hex" | "base64"): PeerAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DontHave { @@ -5776,9 +5904,9 @@ export namespace xdr { reqHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DontHave; @@ -5788,13 +5916,13 @@ export namespace xdr { static toXDR(value: DontHave): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DontHave; + static fromXDR(input: Buffer, format?: "raw"): DontHave; - static fromXDR(input: string, format: 'hex' | 'base64'): DontHave; + static fromXDR(input: string, format: "hex" | "base64"): DontHave; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyStartCollectingMessage { @@ -5810,9 +5938,9 @@ export namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyStartCollectingMessage; @@ -5827,17 +5955,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyStartCollectingMessage { @@ -5852,9 +5980,9 @@ export namespace xdr { value?: TimeSlicedSurveyStartCollectingMessage, ): TimeSlicedSurveyStartCollectingMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyStartCollectingMessage; @@ -5871,17 +5999,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyStopCollectingMessage { @@ -5897,9 +6025,9 @@ export namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyStopCollectingMessage; @@ -5914,17 +6042,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyStopCollectingMessage { @@ -5939,9 +6067,9 @@ export namespace xdr { value?: TimeSlicedSurveyStopCollectingMessage, ): TimeSlicedSurveyStopCollectingMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyStopCollectingMessage; @@ -5956,17 +6084,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyRequestMessage { @@ -5988,9 +6116,9 @@ export namespace xdr { commandType(value?: SurveyMessageCommandType): SurveyMessageCommandType; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyRequestMessage; @@ -6000,16 +6128,16 @@ export namespace xdr { static toXDR(value: SurveyRequestMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyRequestMessage; + static fromXDR(input: Buffer, format?: "raw"): SurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyRequestMessage { @@ -6028,9 +6156,9 @@ export namespace xdr { outboundPeersIndex(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyRequestMessage; @@ -6042,51 +6170,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class SignedSurveyRequestMessage { - constructor(attributes: { - requestSignature: Buffer; - request: SurveyRequestMessage; - }); - - requestSignature(value?: Buffer): Buffer; - - request(value?: SurveyRequestMessage): SurveyRequestMessage; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): SignedSurveyRequestMessage; - - static write(value: SignedSurveyRequestMessage, io: Buffer): void; - - static isValid(value: SignedSurveyRequestMessage): boolean; - - static toXDR(value: SignedSurveyRequestMessage): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): SignedSurveyRequestMessage; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): SignedSurveyRequestMessage; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyRequestMessage { @@ -6101,9 +6195,9 @@ export namespace xdr { value?: TimeSlicedSurveyRequestMessage, ): TimeSlicedSurveyRequestMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyRequestMessage; @@ -6115,17 +6209,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyResponseMessage { @@ -6147,9 +6241,9 @@ export namespace xdr { encryptedBody(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyResponseMessage; @@ -6159,16 +6253,16 @@ export namespace xdr { static toXDR(value: SurveyResponseMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseMessage; + static fromXDR(input: Buffer, format?: "raw"): SurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyResponseMessage { @@ -6178,9 +6272,9 @@ export namespace xdr { nonce(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyResponseMessage; @@ -6192,51 +6286,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class SignedSurveyResponseMessage { - constructor(attributes: { - responseSignature: Buffer; - response: SurveyResponseMessage; - }); - - responseSignature(value?: Buffer): Buffer; - - response(value?: SurveyResponseMessage): SurveyResponseMessage; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): SignedSurveyResponseMessage; - - static write(value: SignedSurveyResponseMessage, io: Buffer): void; - - static isValid(value: SignedSurveyResponseMessage): boolean; - - static toXDR(value: SignedSurveyResponseMessage): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): SignedSurveyResponseMessage; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): SignedSurveyResponseMessage; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyResponseMessage { @@ -6251,9 +6311,9 @@ export namespace xdr { value?: TimeSlicedSurveyResponseMessage, ): TimeSlicedSurveyResponseMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyResponseMessage; @@ -6268,17 +6328,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerStats { @@ -6330,9 +6390,9 @@ export namespace xdr { duplicateFetchMessageRecv(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerStats; @@ -6342,13 +6402,13 @@ export namespace xdr { static toXDR(value: PeerStats): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerStats; + static fromXDR(input: Buffer, format?: "raw"): PeerStats; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerStats; + static fromXDR(input: string, format: "hex" | "base64"): PeerStats; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedNodeData { @@ -6385,9 +6445,9 @@ export namespace xdr { maxOutboundPeerCount(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedNodeData; @@ -6397,13 +6457,13 @@ export namespace xdr { static toXDR(value: TimeSlicedNodeData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedNodeData; + static fromXDR(input: Buffer, format?: "raw"): TimeSlicedNodeData; - static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedNodeData; + static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedNodeData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedPeerData { @@ -6413,9 +6473,9 @@ export namespace xdr { averageLatencyMs(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedPeerData; @@ -6425,99 +6485,13 @@ export namespace xdr { static toXDR(value: TimeSlicedPeerData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedPeerData; - - static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedPeerData; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class TopologyResponseBodyV0 { - constructor(attributes: { - inboundPeers: PeerStats[]; - outboundPeers: PeerStats[]; - totalInboundPeerCount: number; - totalOutboundPeerCount: number; - }); - - inboundPeers(value?: PeerStats[]): PeerStats[]; - - outboundPeers(value?: PeerStats[]): PeerStats[]; - - totalInboundPeerCount(value?: number): number; - - totalOutboundPeerCount(value?: number): number; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): TopologyResponseBodyV0; - - static write(value: TopologyResponseBodyV0, io: Buffer): void; + static fromXDR(input: Buffer, format?: "raw"): TimeSlicedPeerData; - static isValid(value: TopologyResponseBodyV0): boolean; + static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedPeerData; - static toXDR(value: TopologyResponseBodyV0): Buffer; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV0; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): TopologyResponseBodyV0; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class TopologyResponseBodyV1 { - constructor(attributes: { - inboundPeers: PeerStats[]; - outboundPeers: PeerStats[]; - totalInboundPeerCount: number; - totalOutboundPeerCount: number; - maxInboundPeerCount: number; - maxOutboundPeerCount: number; - }); - - inboundPeers(value?: PeerStats[]): PeerStats[]; - - outboundPeers(value?: PeerStats[]): PeerStats[]; - - totalInboundPeerCount(value?: number): number; - - totalOutboundPeerCount(value?: number): number; - - maxInboundPeerCount(value?: number): number; - - maxOutboundPeerCount(value?: number): number; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): TopologyResponseBodyV1; - - static write(value: TopologyResponseBodyV1, io: Buffer): void; - - static isValid(value: TopologyResponseBodyV1): boolean; - - static toXDR(value: TopologyResponseBodyV1): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV1; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): TopologyResponseBodyV1; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TopologyResponseBodyV2 { @@ -6533,9 +6507,9 @@ export namespace xdr { nodeData(value?: TimeSlicedNodeData): TimeSlicedNodeData; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TopologyResponseBodyV2; @@ -6545,16 +6519,16 @@ export namespace xdr { static toXDR(value: TopologyResponseBodyV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV2; + static fromXDR(input: Buffer, format?: "raw"): TopologyResponseBodyV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TopologyResponseBodyV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FloodAdvert { @@ -6562,9 +6536,9 @@ export namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FloodAdvert; @@ -6574,13 +6548,13 @@ export namespace xdr { static toXDR(value: FloodAdvert): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FloodAdvert; + static fromXDR(input: Buffer, format?: "raw"): FloodAdvert; - static fromXDR(input: string, format: 'hex' | 'base64'): FloodAdvert; + static fromXDR(input: string, format: "hex" | "base64"): FloodAdvert; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FloodDemand { @@ -6588,9 +6562,9 @@ export namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FloodDemand; @@ -6600,13 +6574,13 @@ export namespace xdr { static toXDR(value: FloodDemand): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FloodDemand; + static fromXDR(input: Buffer, format?: "raw"): FloodDemand; - static fromXDR(input: string, format: 'hex' | 'base64'): FloodDemand; + static fromXDR(input: string, format: "hex" | "base64"): FloodDemand; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthenticatedMessageV0 { @@ -6622,9 +6596,9 @@ export namespace xdr { mac(value?: HmacSha256Mac): HmacSha256Mac; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthenticatedMessageV0; @@ -6634,16 +6608,16 @@ export namespace xdr { static toXDR(value: AuthenticatedMessageV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessageV0; + static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessageV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AuthenticatedMessageV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class MuxedAccountMed25519 { @@ -6653,9 +6627,9 @@ export namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): MuxedAccountMed25519; @@ -6665,16 +6639,16 @@ export namespace xdr { static toXDR(value: MuxedAccountMed25519): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): MuxedAccountMed25519; + static fromXDR(input: Buffer, format?: "raw"): MuxedAccountMed25519; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): MuxedAccountMed25519; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DecoratedSignature { @@ -6684,9 +6658,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DecoratedSignature; @@ -6696,13 +6670,13 @@ export namespace xdr { static toXDR(value: DecoratedSignature): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DecoratedSignature; + static fromXDR(input: Buffer, format?: "raw"): DecoratedSignature; - static fromXDR(input: string, format: 'hex' | 'base64'): DecoratedSignature; + static fromXDR(input: string, format: "hex" | "base64"): DecoratedSignature; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateAccountOp { @@ -6712,9 +6686,9 @@ export namespace xdr { startingBalance(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateAccountOp; @@ -6724,13 +6698,13 @@ export namespace xdr { static toXDR(value: CreateAccountOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateAccountOp; + static fromXDR(input: Buffer, format?: "raw"): CreateAccountOp; - static fromXDR(input: string, format: 'hex' | 'base64'): CreateAccountOp; + static fromXDR(input: string, format: "hex" | "base64"): CreateAccountOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PaymentOp { @@ -6746,9 +6720,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PaymentOp; @@ -6758,13 +6732,13 @@ export namespace xdr { static toXDR(value: PaymentOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PaymentOp; + static fromXDR(input: Buffer, format?: "raw"): PaymentOp; - static fromXDR(input: string, format: 'hex' | 'base64'): PaymentOp; + static fromXDR(input: string, format: "hex" | "base64"): PaymentOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveOp { @@ -6789,9 +6763,9 @@ export namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveOp; @@ -6801,16 +6775,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictReceiveOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictReceiveOp; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictReceiveOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendOp { @@ -6835,9 +6809,9 @@ export namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendOp; @@ -6847,16 +6821,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictSendOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendOp; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageSellOfferOp { @@ -6878,9 +6852,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageSellOfferOp; @@ -6890,13 +6864,13 @@ export namespace xdr { static toXDR(value: ManageSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferOp; + static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageSellOfferOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageSellOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageBuyOfferOp { @@ -6918,9 +6892,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageBuyOfferOp; @@ -6930,13 +6904,13 @@ export namespace xdr { static toXDR(value: ManageBuyOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferOp; + static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageBuyOfferOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageBuyOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreatePassiveSellOfferOp { @@ -6955,9 +6929,9 @@ export namespace xdr { price(value?: Price): Price; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreatePassiveSellOfferOp; @@ -6967,16 +6941,16 @@ export namespace xdr { static toXDR(value: CreatePassiveSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreatePassiveSellOfferOp; + static fromXDR(input: Buffer, format?: "raw"): CreatePassiveSellOfferOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreatePassiveSellOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetOptionsOp { @@ -7010,9 +6984,9 @@ export namespace xdr { signer(value?: null | Signer): null | Signer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetOptionsOp; @@ -7022,13 +6996,13 @@ export namespace xdr { static toXDR(value: SetOptionsOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetOptionsOp; + static fromXDR(input: Buffer, format?: "raw"): SetOptionsOp; - static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsOp; + static fromXDR(input: string, format: "hex" | "base64"): SetOptionsOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustOp { @@ -7038,9 +7012,9 @@ export namespace xdr { limit(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustOp; @@ -7050,13 +7024,13 @@ export namespace xdr { static toXDR(value: ChangeTrustOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustOp; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustOp; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AllowTrustOp { @@ -7072,9 +7046,9 @@ export namespace xdr { authorize(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AllowTrustOp; @@ -7084,13 +7058,13 @@ export namespace xdr { static toXDR(value: AllowTrustOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AllowTrustOp; + static fromXDR(input: Buffer, format?: "raw"): AllowTrustOp; - static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustOp; + static fromXDR(input: string, format: "hex" | "base64"): AllowTrustOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageDataOp { @@ -7103,9 +7077,9 @@ export namespace xdr { dataValue(value?: null | Buffer): null | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageDataOp; @@ -7115,13 +7089,13 @@ export namespace xdr { static toXDR(value: ManageDataOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageDataOp; + static fromXDR(input: Buffer, format?: "raw"): ManageDataOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageDataOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BumpSequenceOp { @@ -7129,9 +7103,9 @@ export namespace xdr { bumpTo(value?: SequenceNumber): SequenceNumber; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BumpSequenceOp; @@ -7141,13 +7115,13 @@ export namespace xdr { static toXDR(value: BumpSequenceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceOp; + static fromXDR(input: Buffer, format?: "raw"): BumpSequenceOp; - static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceOp; + static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateClaimableBalanceOp { @@ -7163,9 +7137,9 @@ export namespace xdr { claimants(value?: Claimant[]): Claimant[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateClaimableBalanceOp; @@ -7175,16 +7149,16 @@ export namespace xdr { static toXDR(value: CreateClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimClaimableBalanceOp { @@ -7192,9 +7166,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimClaimableBalanceOp; @@ -7204,16 +7178,16 @@ export namespace xdr { static toXDR(value: ClaimClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BeginSponsoringFutureReservesOp { @@ -7221,9 +7195,9 @@ export namespace xdr { sponsoredId(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BeginSponsoringFutureReservesOp; @@ -7235,17 +7209,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): BeginSponsoringFutureReservesOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): BeginSponsoringFutureReservesOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipOpSigner { @@ -7255,9 +7229,9 @@ export namespace xdr { signerKey(value?: SignerKey): SignerKey; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipOpSigner; @@ -7267,16 +7241,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipOpSigner): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOpSigner; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOpSigner; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipOpSigner; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackOp { @@ -7292,9 +7266,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackOp; @@ -7304,13 +7278,13 @@ export namespace xdr { static toXDR(value: ClawbackOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackOp; + static fromXDR(input: Buffer, format?: "raw"): ClawbackOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackOp; + static fromXDR(input: string, format: "hex" | "base64"): ClawbackOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackClaimableBalanceOp { @@ -7318,9 +7292,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackClaimableBalanceOp; @@ -7330,16 +7304,16 @@ export namespace xdr { static toXDR(value: ClawbackClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): ClawbackClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClawbackClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetTrustLineFlagsOp { @@ -7358,9 +7332,9 @@ export namespace xdr { setFlags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetTrustLineFlagsOp; @@ -7370,16 +7344,16 @@ export namespace xdr { static toXDR(value: SetTrustLineFlagsOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsOp; + static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SetTrustLineFlagsOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolDepositOp { @@ -7401,9 +7375,9 @@ export namespace xdr { maxPrice(value?: Price): Price; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolDepositOp; @@ -7413,16 +7387,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolDepositOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositOp; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolDepositOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolWithdrawOp { @@ -7441,9 +7415,9 @@ export namespace xdr { minAmountB(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolWithdrawOp; @@ -7453,16 +7427,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolWithdrawOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawOp; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolWithdrawOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractIdPreimageFromAddress { @@ -7472,9 +7446,9 @@ export namespace xdr { salt(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractIdPreimageFromAddress; @@ -7486,17 +7460,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ContractIdPreimageFromAddress; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractIdPreimageFromAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateContractArgs { @@ -7509,9 +7483,9 @@ export namespace xdr { executable(value?: ContractExecutable): ContractExecutable; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateContractArgs; @@ -7521,13 +7495,13 @@ export namespace xdr { static toXDR(value: CreateContractArgs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgs; + static fromXDR(input: Buffer, format?: "raw"): CreateContractArgs; - static fromXDR(input: string, format: 'hex' | 'base64'): CreateContractArgs; + static fromXDR(input: string, format: "hex" | "base64"): CreateContractArgs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateContractArgsV2 { @@ -7543,9 +7517,9 @@ export namespace xdr { constructorArgs(value?: ScVal[]): ScVal[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateContractArgsV2; @@ -7555,16 +7529,16 @@ export namespace xdr { static toXDR(value: CreateContractArgsV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgsV2; + static fromXDR(input: Buffer, format?: "raw"): CreateContractArgsV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateContractArgsV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeContractArgs { @@ -7580,9 +7554,9 @@ export namespace xdr { args(value?: ScVal[]): ScVal[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeContractArgs; @@ -7592,13 +7566,13 @@ export namespace xdr { static toXDR(value: InvokeContractArgs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeContractArgs; + static fromXDR(input: Buffer, format?: "raw"): InvokeContractArgs; - static fromXDR(input: string, format: 'hex' | 'base64'): InvokeContractArgs; + static fromXDR(input: string, format: "hex" | "base64"): InvokeContractArgs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizedInvocation { @@ -7613,9 +7587,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation[], ): SorobanAuthorizedInvocation[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizedInvocation; @@ -7625,16 +7599,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizedInvocation): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedInvocation; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedInvocation; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizedInvocation; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAddressCredentials { @@ -7653,9 +7627,9 @@ export namespace xdr { signature(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAddressCredentials; @@ -7665,16 +7639,16 @@ export namespace xdr { static toXDR(value: SorobanAddressCredentials): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAddressCredentials; + static fromXDR(input: Buffer, format?: "raw"): SorobanAddressCredentials; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAddressCredentials; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizationEntry { @@ -7689,9 +7663,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizationEntry; @@ -7701,16 +7675,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizationEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizationEntry; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizationEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizationEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeHostFunctionOp { @@ -7723,9 +7697,9 @@ export namespace xdr { auth(value?: SorobanAuthorizationEntry[]): SorobanAuthorizationEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeHostFunctionOp; @@ -7735,16 +7709,16 @@ export namespace xdr { static toXDR(value: InvokeHostFunctionOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionOp; + static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InvokeHostFunctionOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtendFootprintTtlOp { @@ -7754,9 +7728,9 @@ export namespace xdr { extendTo(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtendFootprintTtlOp; @@ -7766,16 +7740,16 @@ export namespace xdr { static toXDR(value: ExtendFootprintTtlOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlOp; + static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ExtendFootprintTtlOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RestoreFootprintOp { @@ -7783,9 +7757,9 @@ export namespace xdr { ext(value?: ExtensionPoint): ExtensionPoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RestoreFootprintOp; @@ -7795,13 +7769,44 @@ export namespace xdr { static toXDR(value: RestoreFootprintOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintOp; + static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintOp; + + static fromXDR(input: string, format: "hex" | "base64"): RestoreFootprintOp; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class Operation { + constructor(attributes: { + sourceAccount: null | MuxedAccount; + body: OperationBody; + }); + + sourceAccount(value?: null | MuxedAccount): null | MuxedAccount; + + body(value?: OperationBody): OperationBody; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): Operation; + + static write(value: Operation, io: Buffer): void; - static fromXDR(input: string, format: 'hex' | 'base64'): RestoreFootprintOp; + static isValid(value: Operation): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static toXDR(value: Operation): Buffer; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static fromXDR(input: Buffer, format?: "raw"): Operation; + + static fromXDR(input: string, format: "hex" | "base64"): Operation; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageOperationId { @@ -7817,9 +7822,9 @@ export namespace xdr { opNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageOperationId; @@ -7829,16 +7834,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageOperationId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageOperationId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageOperationId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageOperationId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageRevokeId { @@ -7860,9 +7865,9 @@ export namespace xdr { asset(value?: Asset): Asset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageRevokeId; @@ -7872,16 +7877,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageRevokeId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageRevokeId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageRevokeId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageRevokeId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageContractId { @@ -7894,9 +7899,9 @@ export namespace xdr { contractIdPreimage(value?: ContractIdPreimage): ContractIdPreimage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageContractId; @@ -7906,16 +7911,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageContractId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageContractId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageContractId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageContractId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageSorobanAuthorization { @@ -7936,9 +7941,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageSorobanAuthorization; @@ -7950,17 +7955,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): HashIdPreimageSorobanAuthorization; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageSorobanAuthorization; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeBounds { @@ -7970,9 +7975,9 @@ export namespace xdr { maxTime(value?: TimePoint): TimePoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeBounds; @@ -7982,13 +7987,13 @@ export namespace xdr { static toXDR(value: TimeBounds): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeBounds; + static fromXDR(input: Buffer, format?: "raw"): TimeBounds; - static fromXDR(input: string, format: 'hex' | 'base64'): TimeBounds; + static fromXDR(input: string, format: "hex" | "base64"): TimeBounds; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerBounds { @@ -7998,9 +8003,9 @@ export namespace xdr { maxLedger(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerBounds; @@ -8010,13 +8015,13 @@ export namespace xdr { static toXDR(value: LedgerBounds): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerBounds; + static fromXDR(input: Buffer, format?: "raw"): LedgerBounds; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerBounds; + static fromXDR(input: string, format: "hex" | "base64"): LedgerBounds; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PreconditionsV2 { @@ -8041,9 +8046,9 @@ export namespace xdr { extraSigners(value?: SignerKey[]): SignerKey[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PreconditionsV2; @@ -8053,13 +8058,13 @@ export namespace xdr { static toXDR(value: PreconditionsV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PreconditionsV2; + static fromXDR(input: Buffer, format?: "raw"): PreconditionsV2; - static fromXDR(input: string, format: 'hex' | 'base64'): PreconditionsV2; + static fromXDR(input: string, format: "hex" | "base64"): PreconditionsV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerFootprint { @@ -8069,9 +8074,9 @@ export namespace xdr { readWrite(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerFootprint; @@ -8081,197 +8086,97 @@ export namespace xdr { static toXDR(value: LedgerFootprint): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerFootprint; - - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerFootprint; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ArchivalProofNode { - constructor(attributes: { index: number; hash: Buffer }); - - index(value?: number): number; - - hash(value?: Buffer): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ArchivalProofNode; + static fromXDR(input: Buffer, format?: "raw"): LedgerFootprint; - static write(value: ArchivalProofNode, io: Buffer): void; + static fromXDR(input: string, format: "hex" | "base64"): LedgerFootprint; - static isValid(value: ArchivalProofNode): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static toXDR(value: ArchivalProofNode): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProofNode; - - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProofNode; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class NonexistenceProofBody { - constructor(attributes: { - entriesToProve: ColdArchiveBucketEntry[]; - proofLevels: ArchivalProofNode[][]; - }); - - entriesToProve(value?: ColdArchiveBucketEntry[]): ColdArchiveBucketEntry[]; - - proofLevels(value?: ArchivalProofNode[][]): ArchivalProofNode[][]; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): NonexistenceProofBody; - - static write(value: NonexistenceProofBody, io: Buffer): void; - - static isValid(value: NonexistenceProofBody): boolean; - - static toXDR(value: NonexistenceProofBody): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): NonexistenceProofBody; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): NonexistenceProofBody; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ExistenceProofBody { + class SorobanResources { constructor(attributes: { - keysToProve: LedgerKey[]; - lowBoundEntries: ColdArchiveBucketEntry[]; - highBoundEntries: ColdArchiveBucketEntry[]; - proofLevels: ArchivalProofNode[][]; + footprint: LedgerFootprint; + instructions: number; + diskReadBytes: number; + writeBytes: number; }); - keysToProve(value?: LedgerKey[]): LedgerKey[]; - - lowBoundEntries(value?: ColdArchiveBucketEntry[]): ColdArchiveBucketEntry[]; - - highBoundEntries( - value?: ColdArchiveBucketEntry[], - ): ColdArchiveBucketEntry[]; - - proofLevels(value?: ArchivalProofNode[][]): ArchivalProofNode[][]; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ExistenceProofBody; - - static write(value: ExistenceProofBody, io: Buffer): void; - - static isValid(value: ExistenceProofBody): boolean; - - static toXDR(value: ExistenceProofBody): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ExistenceProofBody; - - static fromXDR(input: string, format: 'hex' | 'base64'): ExistenceProofBody; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } + footprint(value?: LedgerFootprint): LedgerFootprint; - class ArchivalProof { - constructor(attributes: { epoch: number; body: ArchivalProofBody }); + instructions(value?: number): number; - epoch(value?: number): number; + diskReadBytes(value?: number): number; - body(value?: ArchivalProofBody): ArchivalProofBody; + writeBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): ArchivalProof; + static read(io: Buffer): SorobanResources; - static write(value: ArchivalProof, io: Buffer): void; + static write(value: SorobanResources, io: Buffer): void; - static isValid(value: ArchivalProof): boolean; + static isValid(value: SorobanResources): boolean; - static toXDR(value: ArchivalProof): Buffer; + static toXDR(value: SorobanResources): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProof; + static fromXDR(input: Buffer, format?: "raw"): SorobanResources; - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProof; + static fromXDR(input: string, format: "hex" | "base64"): SorobanResources; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class SorobanResources { - constructor(attributes: { - footprint: LedgerFootprint; - instructions: number; - readBytes: number; - writeBytes: number; - }); - - footprint(value?: LedgerFootprint): LedgerFootprint; - - instructions(value?: number): number; + class SorobanResourcesExtV0 { + constructor(attributes: { archivedSorobanEntries: number[] }); - readBytes(value?: number): number; + archivedSorobanEntries(value?: number[]): number[]; - writeBytes(value?: number): number; + toXDR(format?: "raw"): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format: "hex" | "base64"): string; - toXDR(format: 'hex' | 'base64'): string; + static read(io: Buffer): SorobanResourcesExtV0; - static read(io: Buffer): SorobanResources; + static write(value: SorobanResourcesExtV0, io: Buffer): void; - static write(value: SorobanResources, io: Buffer): void; - - static isValid(value: SorobanResources): boolean; + static isValid(value: SorobanResourcesExtV0): boolean; - static toXDR(value: SorobanResources): Buffer; + static toXDR(value: SorobanResourcesExtV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanResources; + static fromXDR(input: Buffer, format?: "raw"): SorobanResourcesExtV0; - static fromXDR(input: string, format: 'hex' | 'base64'): SorobanResources; + static fromXDR( + input: string, + format: "hex" | "base64", + ): SorobanResourcesExtV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionData { constructor(attributes: { - ext: ExtensionPoint; + ext: SorobanTransactionDataExt; resources: SorobanResources; resourceFee: Int64; }); - ext(value?: ExtensionPoint): ExtensionPoint; + ext(value?: SorobanTransactionDataExt): SorobanTransactionDataExt; resources(value?: SorobanResources): SorobanResources; resourceFee(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionData; @@ -8281,16 +8186,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionData; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionData; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0 { @@ -8318,9 +8223,9 @@ export namespace xdr { ext(value?: TransactionV0Ext): TransactionV0Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0; @@ -8330,13 +8235,13 @@ export namespace xdr { static toXDR(value: TransactionV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0; + static fromXDR(input: string, format: "hex" | "base64"): TransactionV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0Envelope { @@ -8349,9 +8254,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0Envelope; @@ -8361,16 +8266,16 @@ export namespace xdr { static toXDR(value: TransactionV0Envelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Envelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0Envelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionV0Envelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Transaction { @@ -8398,9 +8303,9 @@ export namespace xdr { ext(value?: TransactionExt): TransactionExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Transaction; @@ -8410,13 +8315,13 @@ export namespace xdr { static toXDR(value: Transaction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Transaction; + static fromXDR(input: Buffer, format?: "raw"): Transaction; - static fromXDR(input: string, format: 'hex' | 'base64'): Transaction; + static fromXDR(input: string, format: "hex" | "base64"): Transaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV1Envelope { @@ -8429,9 +8334,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV1Envelope; @@ -8441,16 +8346,16 @@ export namespace xdr { static toXDR(value: TransactionV1Envelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV1Envelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionV1Envelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionV1Envelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransaction { @@ -8469,9 +8374,9 @@ export namespace xdr { ext(value?: FeeBumpTransactionExt): FeeBumpTransactionExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransaction; @@ -8481,13 +8386,13 @@ export namespace xdr { static toXDR(value: FeeBumpTransaction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransaction; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransaction; - static fromXDR(input: string, format: 'hex' | 'base64'): FeeBumpTransaction; + static fromXDR(input: string, format: "hex" | "base64"): FeeBumpTransaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionEnvelope { @@ -8500,9 +8405,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionEnvelope; @@ -8512,16 +8417,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionEnvelope; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionEnvelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSignaturePayload { @@ -8536,9 +8441,9 @@ export namespace xdr { value?: TransactionSignaturePayloadTaggedTransaction, ): TransactionSignaturePayloadTaggedTransaction; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSignaturePayload; @@ -8548,16 +8453,16 @@ export namespace xdr { static toXDR(value: TransactionSignaturePayload): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSignaturePayload; + static fromXDR(input: Buffer, format?: "raw"): TransactionSignaturePayload; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionSignaturePayload; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimOfferAtomV0 { @@ -8582,9 +8487,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimOfferAtomV0; @@ -8594,13 +8499,13 @@ export namespace xdr { static toXDR(value: ClaimOfferAtomV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtomV0; + static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtomV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtomV0; + static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtomV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimOfferAtom { @@ -8625,9 +8530,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimOfferAtom; @@ -8637,13 +8542,13 @@ export namespace xdr { static toXDR(value: ClaimOfferAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimLiquidityAtom { @@ -8665,9 +8570,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimLiquidityAtom; @@ -8677,13 +8582,13 @@ export namespace xdr { static toXDR(value: ClaimLiquidityAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimLiquidityAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimLiquidityAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimLiquidityAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimLiquidityAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SimplePaymentResult { @@ -8699,9 +8604,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SimplePaymentResult; @@ -8711,16 +8616,16 @@ export namespace xdr { static toXDR(value: SimplePaymentResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SimplePaymentResult; + static fromXDR(input: Buffer, format?: "raw"): SimplePaymentResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SimplePaymentResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveResultSuccess { @@ -8730,9 +8635,9 @@ export namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveResultSuccess; @@ -8747,17 +8652,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictReceiveResultSuccess; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveResultSuccess; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendResultSuccess { @@ -8767,9 +8672,9 @@ export namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendResultSuccess; @@ -8781,17 +8686,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictSendResultSuccess; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendResultSuccess; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageOfferSuccessResult { @@ -8804,9 +8709,9 @@ export namespace xdr { offer(value?: ManageOfferSuccessResultOffer): ManageOfferSuccessResultOffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageOfferSuccessResult; @@ -8816,16 +8721,16 @@ export namespace xdr { static toXDR(value: ManageOfferSuccessResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageOfferSuccessResult; + static fromXDR(input: Buffer, format?: "raw"): ManageOfferSuccessResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageOfferSuccessResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InflationPayout { @@ -8835,9 +8740,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InflationPayout; @@ -8847,13 +8752,13 @@ export namespace xdr { static toXDR(value: InflationPayout): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InflationPayout; + static fromXDR(input: Buffer, format?: "raw"): InflationPayout; - static fromXDR(input: string, format: 'hex' | 'base64'): InflationPayout; + static fromXDR(input: string, format: "hex" | "base64"): InflationPayout; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResult { @@ -8869,9 +8774,9 @@ export namespace xdr { ext(value?: InnerTransactionResultExt): InnerTransactionResultExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResult; @@ -8881,16 +8786,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResult; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultPair { @@ -8903,9 +8808,9 @@ export namespace xdr { result(value?: InnerTransactionResult): InnerTransactionResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultPair; @@ -8915,16 +8820,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultPair; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultPair; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultPair; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResult { @@ -8940,9 +8845,9 @@ export namespace xdr { ext(value?: TransactionResultExt): TransactionResultExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResult; @@ -8952,13 +8857,13 @@ export namespace xdr { static toXDR(value: TransactionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResult; + static fromXDR(input: Buffer, format?: "raw"): TransactionResult; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionResult; + static fromXDR(input: string, format: "hex" | "base64"): TransactionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignerKeyEd25519SignedPayload { @@ -8968,9 +8873,9 @@ export namespace xdr { payload(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignerKeyEd25519SignedPayload; @@ -8982,17 +8887,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignerKeyEd25519SignedPayload; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignerKeyEd25519SignedPayload; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Curve25519Secret { @@ -9000,9 +8905,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Curve25519Secret; @@ -9012,13 +8917,13 @@ export namespace xdr { static toXDR(value: Curve25519Secret): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Curve25519Secret; + static fromXDR(input: Buffer, format?: "raw"): Curve25519Secret; - static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Secret; + static fromXDR(input: string, format: "hex" | "base64"): Curve25519Secret; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Curve25519Public { @@ -9026,9 +8931,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Curve25519Public; @@ -9038,13 +8943,13 @@ export namespace xdr { static toXDR(value: Curve25519Public): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Curve25519Public; + static fromXDR(input: Buffer, format?: "raw"): Curve25519Public; - static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Public; + static fromXDR(input: string, format: "hex" | "base64"): Curve25519Public; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HmacSha256Key { @@ -9052,9 +8957,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HmacSha256Key; @@ -9064,13 +8969,13 @@ export namespace xdr { static toXDR(value: HmacSha256Key): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Key; + static fromXDR(input: Buffer, format?: "raw"): HmacSha256Key; - static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Key; + static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Key; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HmacSha256Mac { @@ -9078,9 +8983,9 @@ export namespace xdr { mac(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HmacSha256Mac; @@ -9090,13 +8995,13 @@ export namespace xdr { static toXDR(value: HmacSha256Mac): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Mac; + static fromXDR(input: Buffer, format?: "raw"): HmacSha256Mac; - static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Mac; + static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Mac; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ShortHashSeed { @@ -9104,9 +9009,9 @@ export namespace xdr { seed(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ShortHashSeed; @@ -9116,13 +9021,13 @@ export namespace xdr { static toXDR(value: ShortHashSeed): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ShortHashSeed; + static fromXDR(input: Buffer, format?: "raw"): ShortHashSeed; - static fromXDR(input: string, format: 'hex' | 'base64'): ShortHashSeed; + static fromXDR(input: string, format: "hex" | "base64"): ShortHashSeed; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SerializedBinaryFuseFilter { @@ -9156,9 +9061,9 @@ export namespace xdr { fingerprints(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SerializedBinaryFuseFilter; @@ -9168,16 +9073,16 @@ export namespace xdr { static toXDR(value: SerializedBinaryFuseFilter): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SerializedBinaryFuseFilter; + static fromXDR(input: Buffer, format?: "raw"): SerializedBinaryFuseFilter; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SerializedBinaryFuseFilter; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class UInt128Parts { @@ -9187,9 +9092,9 @@ export namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): UInt128Parts; @@ -9199,13 +9104,13 @@ export namespace xdr { static toXDR(value: UInt128Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UInt128Parts; + static fromXDR(input: Buffer, format?: "raw"): UInt128Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): UInt128Parts; + static fromXDR(input: string, format: "hex" | "base64"): UInt128Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Int128Parts { @@ -9215,9 +9120,9 @@ export namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Int128Parts; @@ -9227,13 +9132,13 @@ export namespace xdr { static toXDR(value: Int128Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Int128Parts; + static fromXDR(input: Buffer, format?: "raw"): Int128Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): Int128Parts; + static fromXDR(input: string, format: "hex" | "base64"): Int128Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class UInt256Parts { @@ -9252,9 +9157,9 @@ export namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): UInt256Parts; @@ -9264,13 +9169,13 @@ export namespace xdr { static toXDR(value: UInt256Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UInt256Parts; + static fromXDR(input: Buffer, format?: "raw"): UInt256Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): UInt256Parts; + static fromXDR(input: string, format: "hex" | "base64"): UInt256Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Int256Parts { @@ -9289,9 +9194,9 @@ export namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Int256Parts; @@ -9301,13 +9206,44 @@ export namespace xdr { static toXDR(value: Int256Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Int256Parts; + static fromXDR(input: Buffer, format?: "raw"): Int256Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): Int256Parts; + static fromXDR(input: string, format: "hex" | "base64"): Int256Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class MuxedEd25519Account { + constructor(attributes: { id: Uint64; ed25519: Buffer }); + + id(value?: Uint64): Uint64; + + ed25519(value?: Buffer): Buffer; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): MuxedEd25519Account; + + static write(value: MuxedEd25519Account, io: Buffer): void; + + static isValid(value: MuxedEd25519Account): boolean; + + static toXDR(value: MuxedEd25519Account): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): MuxedEd25519Account; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): MuxedEd25519Account; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScNonceKey { @@ -9315,9 +9251,9 @@ export namespace xdr { nonce(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScNonceKey; @@ -9327,13 +9263,13 @@ export namespace xdr { static toXDR(value: ScNonceKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScNonceKey; + static fromXDR(input: Buffer, format?: "raw"): ScNonceKey; - static fromXDR(input: string, format: 'hex' | 'base64'): ScNonceKey; + static fromXDR(input: string, format: "hex" | "base64"): ScNonceKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScContractInstance { @@ -9346,9 +9282,9 @@ export namespace xdr { storage(value?: null | ScMapEntry[]): null | ScMapEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScContractInstance; @@ -9358,13 +9294,13 @@ export namespace xdr { static toXDR(value: ScContractInstance): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScContractInstance; + static fromXDR(input: Buffer, format?: "raw"): ScContractInstance; - static fromXDR(input: string, format: 'hex' | 'base64'): ScContractInstance; + static fromXDR(input: string, format: "hex" | "base64"): ScContractInstance; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMapEntry { @@ -9374,9 +9310,9 @@ export namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMapEntry; @@ -9386,13 +9322,13 @@ export namespace xdr { static toXDR(value: ScMapEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMapEntry; + static fromXDR(input: Buffer, format?: "raw"): ScMapEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMapEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScMapEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScEnvMetaEntryInterfaceVersion { @@ -9402,9 +9338,9 @@ export namespace xdr { preRelease(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScEnvMetaEntryInterfaceVersion; @@ -9416,17 +9352,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ScEnvMetaEntryInterfaceVersion; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScEnvMetaEntryInterfaceVersion; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMetaV0 { @@ -9436,9 +9372,9 @@ export namespace xdr { val(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMetaV0; @@ -9448,13 +9384,13 @@ export namespace xdr { static toXDR(value: ScMetaV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMetaV0; + static fromXDR(input: Buffer, format?: "raw"): ScMetaV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaV0; + static fromXDR(input: string, format: "hex" | "base64"): ScMetaV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeOption { @@ -9462,9 +9398,9 @@ export namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeOption; @@ -9474,13 +9410,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeOption): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeOption; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeOption; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeOption; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeOption; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeResult { @@ -9493,9 +9429,9 @@ export namespace xdr { errorType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeResult; @@ -9505,13 +9441,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeResult; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeResult; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeVec { @@ -9519,9 +9455,9 @@ export namespace xdr { elementType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeVec; @@ -9531,13 +9467,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeVec): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeVec; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeVec; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeVec; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeVec; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeMap { @@ -9550,9 +9486,9 @@ export namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeMap; @@ -9562,13 +9498,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeMap): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeMap; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeMap; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeMap; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeMap; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeTuple { @@ -9576,9 +9512,9 @@ export namespace xdr { valueTypes(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeTuple; @@ -9588,13 +9524,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeTuple): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeTuple; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeTuple; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeTuple; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeTuple; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeBytesN { @@ -9602,9 +9538,9 @@ export namespace xdr { n(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeBytesN; @@ -9614,13 +9550,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeBytesN): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeBytesN; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeBytesN; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeBytesN; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeBytesN; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeUdt { @@ -9628,9 +9564,9 @@ export namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeUdt; @@ -9640,13 +9576,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeUdt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeUdt; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeUdt; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeUdt; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeUdt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtStructFieldV0 { @@ -9662,9 +9598,9 @@ export namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtStructFieldV0; @@ -9674,16 +9610,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtStructFieldV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructFieldV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructFieldV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtStructFieldV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtStructV0 { @@ -9702,9 +9638,9 @@ export namespace xdr { fields(value?: ScSpecUdtStructFieldV0[]): ScSpecUdtStructFieldV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtStructV0; @@ -9714,13 +9650,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtStructV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtStructV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtStructV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseVoidV0 { @@ -9730,9 +9666,9 @@ export namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseVoidV0; @@ -9742,16 +9678,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseVoidV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseVoidV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseVoidV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseVoidV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseTupleV0 { @@ -9767,9 +9703,9 @@ export namespace xdr { type(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseTupleV0; @@ -9779,16 +9715,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseTupleV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseTupleV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseTupleV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseTupleV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionV0 { @@ -9807,9 +9743,9 @@ export namespace xdr { cases(value?: ScSpecUdtUnionCaseV0[]): ScSpecUdtUnionCaseV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionV0; @@ -9819,13 +9755,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtUnionV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtUnionV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtEnumCaseV0 { @@ -9841,9 +9777,9 @@ export namespace xdr { value(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtEnumCaseV0; @@ -9853,16 +9789,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtEnumCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtEnumV0 { @@ -9881,9 +9817,9 @@ export namespace xdr { cases(value?: ScSpecUdtEnumCaseV0[]): ScSpecUdtEnumCaseV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtEnumV0; @@ -9893,13 +9829,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtEnumV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtEnumV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtEnumV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtErrorEnumCaseV0 { @@ -9915,9 +9851,9 @@ export namespace xdr { value(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtErrorEnumCaseV0; @@ -9927,63 +9863,138 @@ export namespace xdr { static toXDR(value: ScSpecUdtErrorEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtErrorEnumCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ScSpecUdtErrorEnumV0 { + constructor(attributes: { + doc: string | Buffer; + lib: string | Buffer; + name: string | Buffer; + cases: ScSpecUdtErrorEnumCaseV0[]; + }); + + doc(value?: string | Buffer): string | Buffer; + + lib(value?: string | Buffer): string | Buffer; + + name(value?: string | Buffer): string | Buffer; + + cases(value?: ScSpecUdtErrorEnumCaseV0[]): ScSpecUdtErrorEnumCaseV0[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ScSpecUdtErrorEnumV0; + + static write(value: ScSpecUdtErrorEnumV0, io: Buffer): void; + + static isValid(value: ScSpecUdtErrorEnumV0): boolean; + + static toXDR(value: ScSpecUdtErrorEnumV0): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumV0; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ScSpecUdtErrorEnumV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ScSpecFunctionInputV0 { + constructor(attributes: { + doc: string | Buffer; + name: string | Buffer; + type: ScSpecTypeDef; + }); + + doc(value?: string | Buffer): string | Buffer; + + name(value?: string | Buffer): string | Buffer; + + type(value?: ScSpecTypeDef): ScSpecTypeDef; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ScSpecFunctionInputV0; + + static write(value: ScSpecFunctionInputV0, io: Buffer): void; + + static isValid(value: ScSpecFunctionInputV0): boolean; + + static toXDR(value: ScSpecFunctionInputV0): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionInputV0; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ScSpecFunctionInputV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class ScSpecUdtErrorEnumV0 { + class ScSpecFunctionV0 { constructor(attributes: { doc: string | Buffer; - lib: string | Buffer; name: string | Buffer; - cases: ScSpecUdtErrorEnumCaseV0[]; + inputs: ScSpecFunctionInputV0[]; + outputs: ScSpecTypeDef[]; }); doc(value?: string | Buffer): string | Buffer; - lib(value?: string | Buffer): string | Buffer; - name(value?: string | Buffer): string | Buffer; - cases(value?: ScSpecUdtErrorEnumCaseV0[]): ScSpecUdtErrorEnumCaseV0[]; + inputs(value?: ScSpecFunctionInputV0[]): ScSpecFunctionInputV0[]; - toXDR(format?: 'raw'): Buffer; + outputs(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; - static read(io: Buffer): ScSpecUdtErrorEnumV0; + toXDR(format: "hex" | "base64"): string; - static write(value: ScSpecUdtErrorEnumV0, io: Buffer): void; + static read(io: Buffer): ScSpecFunctionV0; - static isValid(value: ScSpecUdtErrorEnumV0): boolean; + static write(value: ScSpecFunctionV0, io: Buffer): void; - static toXDR(value: ScSpecUdtErrorEnumV0): Buffer; + static isValid(value: ScSpecFunctionV0): boolean; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumV0; + static toXDR(value: ScSpecFunctionV0): Buffer; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ScSpecUdtErrorEnumV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecFunctionV0; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class ScSpecFunctionInputV0 { + class ScSpecEventParamV0 { constructor(attributes: { doc: string | Buffer; name: string | Buffer; type: ScSpecTypeDef; + location: ScSpecEventParamLocationV0; }); doc(value?: string | Buffer): string | Buffer; @@ -9992,65 +10003,70 @@ export namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + location(value?: ScSpecEventParamLocationV0): ScSpecEventParamLocationV0; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; - static read(io: Buffer): ScSpecFunctionInputV0; + toXDR(format: "hex" | "base64"): string; - static write(value: ScSpecFunctionInputV0, io: Buffer): void; + static read(io: Buffer): ScSpecEventParamV0; - static isValid(value: ScSpecFunctionInputV0): boolean; + static write(value: ScSpecEventParamV0, io: Buffer): void; - static toXDR(value: ScSpecFunctionInputV0): Buffer; + static isValid(value: ScSpecEventParamV0): boolean; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionInputV0; + static toXDR(value: ScSpecEventParamV0): Buffer; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ScSpecFunctionInputV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecEventParamV0; + + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventParamV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class ScSpecFunctionV0 { + class ScSpecEventV0 { constructor(attributes: { doc: string | Buffer; + lib: string | Buffer; name: string | Buffer; - inputs: ScSpecFunctionInputV0[]; - outputs: ScSpecTypeDef[]; + prefixTopics: (string | Buffer)[]; + params: ScSpecEventParamV0[]; + dataFormat: ScSpecEventDataFormat; }); doc(value?: string | Buffer): string | Buffer; + lib(value?: string | Buffer): string | Buffer; + name(value?: string | Buffer): string | Buffer; - inputs(value?: ScSpecFunctionInputV0[]): ScSpecFunctionInputV0[]; + prefixTopics(value?: (string | Buffer)[]): (string | Buffer)[]; - outputs(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; + params(value?: ScSpecEventParamV0[]): ScSpecEventParamV0[]; - toXDR(format?: 'raw'): Buffer; + dataFormat(value?: ScSpecEventDataFormat): ScSpecEventDataFormat; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; - static read(io: Buffer): ScSpecFunctionV0; + toXDR(format: "hex" | "base64"): string; - static write(value: ScSpecFunctionV0, io: Buffer): void; + static read(io: Buffer): ScSpecEventV0; - static isValid(value: ScSpecFunctionV0): boolean; + static write(value: ScSpecEventV0, io: Buffer): void; - static toXDR(value: ScSpecFunctionV0): Buffer; + static isValid(value: ScSpecEventV0): boolean; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionV0; + static toXDR(value: ScSpecEventV0): Buffer; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecFunctionV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecEventV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventV0; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractExecutionLanesV0 { @@ -10058,9 +10074,9 @@ export namespace xdr { ledgerMaxTxCount(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractExecutionLanesV0; @@ -10075,17 +10091,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractExecutionLanesV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractExecutionLanesV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractComputeV0 { @@ -10104,9 +10120,9 @@ export namespace xdr { txMemoryLimit(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractComputeV0; @@ -10118,71 +10134,106 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractComputeV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractComputeV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ConfigSettingContractParallelComputeV0 { + constructor(attributes: { ledgerMaxDependentTxClusters: number }); + + ledgerMaxDependentTxClusters(value?: number): number; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ConfigSettingContractParallelComputeV0; + + static write( + value: ConfigSettingContractParallelComputeV0, + io: Buffer, + ): void; + + static isValid(value: ConfigSettingContractParallelComputeV0): boolean; + + static toXDR(value: ConfigSettingContractParallelComputeV0): Buffer; + + static fromXDR( + input: Buffer, + format?: "raw", + ): ConfigSettingContractParallelComputeV0; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ConfigSettingContractParallelComputeV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractLedgerCostV0 { constructor(attributes: { - ledgerMaxReadLedgerEntries: number; - ledgerMaxReadBytes: number; + ledgerMaxDiskReadEntries: number; + ledgerMaxDiskReadBytes: number; ledgerMaxWriteLedgerEntries: number; ledgerMaxWriteBytes: number; - txMaxReadLedgerEntries: number; - txMaxReadBytes: number; + txMaxDiskReadEntries: number; + txMaxDiskReadBytes: number; txMaxWriteLedgerEntries: number; txMaxWriteBytes: number; - feeReadLedgerEntry: Int64; + feeDiskReadLedgerEntry: Int64; feeWriteLedgerEntry: Int64; - feeRead1Kb: Int64; - bucketListTargetSizeBytes: Int64; - writeFee1KbBucketListLow: Int64; - writeFee1KbBucketListHigh: Int64; - bucketListWriteFeeGrowthFactor: number; + feeDiskRead1Kb: Int64; + sorobanStateTargetSizeBytes: Int64; + rentFee1KbSorobanStateSizeLow: Int64; + rentFee1KbSorobanStateSizeHigh: Int64; + sorobanStateRentFeeGrowthFactor: number; }); - ledgerMaxReadLedgerEntries(value?: number): number; + ledgerMaxDiskReadEntries(value?: number): number; - ledgerMaxReadBytes(value?: number): number; + ledgerMaxDiskReadBytes(value?: number): number; ledgerMaxWriteLedgerEntries(value?: number): number; ledgerMaxWriteBytes(value?: number): number; - txMaxReadLedgerEntries(value?: number): number; + txMaxDiskReadEntries(value?: number): number; - txMaxReadBytes(value?: number): number; + txMaxDiskReadBytes(value?: number): number; txMaxWriteLedgerEntries(value?: number): number; txMaxWriteBytes(value?: number): number; - feeReadLedgerEntry(value?: Int64): Int64; + feeDiskReadLedgerEntry(value?: Int64): Int64; feeWriteLedgerEntry(value?: Int64): Int64; - feeRead1Kb(value?: Int64): Int64; + feeDiskRead1Kb(value?: Int64): Int64; - bucketListTargetSizeBytes(value?: Int64): Int64; + sorobanStateTargetSizeBytes(value?: Int64): Int64; - writeFee1KbBucketListLow(value?: Int64): Int64; + rentFee1KbSorobanStateSizeLow(value?: Int64): Int64; - writeFee1KbBucketListHigh(value?: Int64): Int64; + rentFee1KbSorobanStateSizeHigh(value?: Int64): Int64; - bucketListWriteFeeGrowthFactor(value?: number): number; + sorobanStateRentFeeGrowthFactor(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractLedgerCostV0; @@ -10194,17 +10245,54 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractLedgerCostV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractLedgerCostV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ConfigSettingContractLedgerCostExtV0 { + constructor(attributes: { + txMaxFootprintEntries: number; + feeWrite1Kb: Int64; + }); + + txMaxFootprintEntries(value?: number): number; + + feeWrite1Kb(value?: Int64): Int64; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ConfigSettingContractLedgerCostExtV0; + + static write(value: ConfigSettingContractLedgerCostExtV0, io: Buffer): void; + + static isValid(value: ConfigSettingContractLedgerCostExtV0): boolean; + + static toXDR(value: ConfigSettingContractLedgerCostExtV0): Buffer; + + static fromXDR( + input: Buffer, + format?: "raw", + ): ConfigSettingContractLedgerCostExtV0; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ConfigSettingContractLedgerCostExtV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractHistoricalDataV0 { @@ -10212,9 +10300,9 @@ export namespace xdr { feeHistorical1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractHistoricalDataV0; @@ -10229,17 +10317,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractHistoricalDataV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractHistoricalDataV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractEventsV0 { @@ -10252,9 +10340,9 @@ export namespace xdr { feeContractEvents1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractEventsV0; @@ -10266,17 +10354,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractEventsV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractEventsV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractBandwidthV0 { @@ -10292,9 +10380,9 @@ export namespace xdr { feeTxSize1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractBandwidthV0; @@ -10306,17 +10394,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractBandwidthV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractBandwidthV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCostParamEntry { @@ -10332,9 +10420,9 @@ export namespace xdr { linearTerm(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCostParamEntry; @@ -10344,16 +10432,16 @@ export namespace xdr { static toXDR(value: ContractCostParamEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCostParamEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractCostParamEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCostParamEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StateArchivalSettings { @@ -10364,8 +10452,8 @@ export namespace xdr { persistentRentRateDenominator: Int64; tempRentRateDenominator: Int64; maxEntriesToArchive: number; - bucketListSizeWindowSampleSize: number; - bucketListWindowSamplePeriod: number; + liveSorobanStateSizeWindowSampleSize: number; + liveSorobanStateSizeWindowSamplePeriod: number; evictionScanSize: number; startingEvictionScanLevel: number; }); @@ -10382,17 +10470,17 @@ export namespace xdr { maxEntriesToArchive(value?: number): number; - bucketListSizeWindowSampleSize(value?: number): number; + liveSorobanStateSizeWindowSampleSize(value?: number): number; - bucketListWindowSamplePeriod(value?: number): number; + liveSorobanStateSizeWindowSamplePeriod(value?: number): number; evictionScanSize(value?: number): number; startingEvictionScanLevel(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StateArchivalSettings; @@ -10402,16 +10490,16 @@ export namespace xdr { static toXDR(value: StateArchivalSettings): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StateArchivalSettings; + static fromXDR(input: Buffer, format?: "raw"): StateArchivalSettings; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): StateArchivalSettings; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class EvictionIterator { @@ -10427,9 +10515,9 @@ export namespace xdr { bucketFileOffset(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): EvictionIterator; @@ -10439,13 +10527,93 @@ export namespace xdr { static toXDR(value: EvictionIterator): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): EvictionIterator; + static fromXDR(input: Buffer, format?: "raw"): EvictionIterator; + + static fromXDR(input: string, format: "hex" | "base64"): EvictionIterator; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ConfigSettingScpTiming { + constructor(attributes: { + ledgerTargetCloseTimeMilliseconds: number; + nominationTimeoutInitialMilliseconds: number; + nominationTimeoutIncrementMilliseconds: number; + ballotTimeoutInitialMilliseconds: number; + ballotTimeoutIncrementMilliseconds: number; + }); + + ledgerTargetCloseTimeMilliseconds(value?: number): number; + + nominationTimeoutInitialMilliseconds(value?: number): number; + + nominationTimeoutIncrementMilliseconds(value?: number): number; + + ballotTimeoutInitialMilliseconds(value?: number): number; - static fromXDR(input: string, format: 'hex' | 'base64'): EvictionIterator; + ballotTimeoutIncrementMilliseconds(value?: number): number; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + toXDR(format?: "raw"): Buffer; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ConfigSettingScpTiming; + + static write(value: ConfigSettingScpTiming, io: Buffer): void; + + static isValid(value: ConfigSettingScpTiming): boolean; + + static toXDR(value: ConfigSettingScpTiming): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ConfigSettingScpTiming; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ConfigSettingScpTiming; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaBatch { + constructor(attributes: { + startSequence: number; + endSequence: number; + ledgerCloseMeta: LedgerCloseMeta[]; + }); + + startSequence(value?: number): number; + + endSequence(value?: number): number; + + ledgerCloseMeta(value?: LedgerCloseMeta[]): LedgerCloseMeta[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): LedgerCloseMetaBatch; + + static write(value: LedgerCloseMetaBatch, io: Buffer): void; + + static isValid(value: LedgerCloseMetaBatch): boolean; + + static toXDR(value: LedgerCloseMetaBatch): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaBatch; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): LedgerCloseMetaBatch; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementPledges { @@ -10475,9 +10643,9 @@ export namespace xdr { | ScpStatementExternalize | ScpNomination; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementPledges; @@ -10487,16 +10655,16 @@ export namespace xdr { static toXDR(value: ScpStatementPledges): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPledges; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementPledges; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementPledges; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AssetCode { @@ -10512,9 +10680,9 @@ export namespace xdr { value(): Buffer | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AssetCode; @@ -10524,13 +10692,13 @@ export namespace xdr { static toXDR(value: AssetCode): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AssetCode; + static fromXDR(input: Buffer, format?: "raw"): AssetCode; - static fromXDR(input: string, format: 'hex' | 'base64'): AssetCode; + static fromXDR(input: string, format: "hex" | "base64"): AssetCode; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Asset { @@ -10548,9 +10716,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Asset; @@ -10560,13 +10728,13 @@ export namespace xdr { static toXDR(value: Asset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Asset; + static fromXDR(input: Buffer, format?: "raw"): Asset; - static fromXDR(input: string, format: 'hex' | 'base64'): Asset; + static fromXDR(input: string, format: "hex" | "base64"): Asset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV2Ext { @@ -10580,9 +10748,9 @@ export namespace xdr { value(): AccountEntryExtensionV3 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV2Ext; @@ -10592,16 +10760,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV1Ext { @@ -10615,9 +10783,9 @@ export namespace xdr { value(): AccountEntryExtensionV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV1Ext; @@ -10627,16 +10795,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExt { @@ -10650,9 +10818,9 @@ export namespace xdr { value(): AccountEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExt; @@ -10662,13 +10830,13 @@ export namespace xdr { static toXDR(value: AccountEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExt; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): AccountEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineAsset { @@ -10690,9 +10858,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | PoolId | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineAsset; @@ -10702,13 +10870,13 @@ export namespace xdr { static toXDR(value: TrustLineAsset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineAsset; + static fromXDR(input: Buffer, format?: "raw"): TrustLineAsset; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineAsset; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineAsset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExtensionV2Ext { @@ -10718,9 +10886,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExtensionV2Ext; @@ -10730,16 +10898,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryV1Ext { @@ -10753,9 +10921,9 @@ export namespace xdr { value(): TrustLineEntryExtensionV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryV1Ext; @@ -10765,16 +10933,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1Ext; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExt { @@ -10788,9 +10956,9 @@ export namespace xdr { value(): TrustLineEntryV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExt; @@ -10800,13 +10968,13 @@ export namespace xdr { static toXDR(value: TrustLineEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExt; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OfferEntryExt { @@ -10816,9 +10984,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OfferEntryExt; @@ -10828,13 +10996,13 @@ export namespace xdr { static toXDR(value: OfferEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OfferEntryExt; + static fromXDR(input: Buffer, format?: "raw"): OfferEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): OfferEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DataEntryExt { @@ -10844,9 +11012,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DataEntryExt; @@ -10856,13 +11024,13 @@ export namespace xdr { static toXDR(value: DataEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DataEntryExt; + static fromXDR(input: Buffer, format?: "raw"): DataEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): DataEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): DataEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimPredicate { @@ -10899,9 +11067,9 @@ export namespace xdr { | Int64 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimPredicate; @@ -10911,13 +11079,13 @@ export namespace xdr { static toXDR(value: ClaimPredicate): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimPredicate; + static fromXDR(input: Buffer, format?: "raw"): ClaimPredicate; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimPredicate; + static fromXDR(input: string, format: "hex" | "base64"): ClaimPredicate; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Claimant { @@ -10929,9 +11097,9 @@ export namespace xdr { value(): ClaimantV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Claimant; @@ -10941,43 +11109,13 @@ export namespace xdr { static toXDR(value: Claimant): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Claimant; - - static fromXDR(input: string, format: 'hex' | 'base64'): Claimant; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ClaimableBalanceId { - switch(): ClaimableBalanceIdType; - - v0(value?: Buffer): Buffer; - - static claimableBalanceIdTypeV0(value: Buffer): ClaimableBalanceId; - - value(): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ClaimableBalanceId; - - static write(value: ClaimableBalanceId, io: Buffer): void; + static fromXDR(input: Buffer, format?: "raw"): Claimant; - static isValid(value: ClaimableBalanceId): boolean; - - static toXDR(value: ClaimableBalanceId): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceId; + static fromXDR(input: string, format: "hex" | "base64"): Claimant; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimableBalanceId; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExtensionV1Ext { @@ -10987,9 +11125,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1Ext; @@ -11001,17 +11139,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClaimableBalanceEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExt { @@ -11027,9 +11165,9 @@ export namespace xdr { value(): ClaimableBalanceEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExt; @@ -11039,16 +11177,16 @@ export namespace xdr { static toXDR(value: ClaimableBalanceEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntryExt; + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntryBody { @@ -11064,9 +11202,9 @@ export namespace xdr { value(): LiquidityPoolEntryConstantProduct; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntryBody; @@ -11076,16 +11214,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolEntryBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntryBody; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntryBody; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolEntryBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntryExt { @@ -11099,9 +11237,9 @@ export namespace xdr { value(): ContractCodeEntryV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntryExt; @@ -11111,16 +11249,16 @@ export namespace xdr { static toXDR(value: ContractCodeEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryExt; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExtensionV1Ext { @@ -11130,9 +11268,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExtensionV1Ext; @@ -11142,16 +11280,16 @@ export namespace xdr { static toXDR(value: LedgerEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryData { @@ -11209,9 +11347,9 @@ export namespace xdr { | ConfigSettingEntry | TtlEntry; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryData; @@ -11221,13 +11359,13 @@ export namespace xdr { static toXDR(value: LedgerEntryData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryData; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryData; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryData; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExt { @@ -11241,9 +11379,9 @@ export namespace xdr { value(): LedgerEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExt; @@ -11253,13 +11391,13 @@ export namespace xdr { static toXDR(value: LedgerEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKey { @@ -11319,9 +11457,9 @@ export namespace xdr { | LedgerKeyConfigSetting | LedgerKeyTtl; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKey; @@ -11331,13 +11469,13 @@ export namespace xdr { static toXDR(value: LedgerKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKey; + static fromXDR(input: Buffer, format?: "raw"): LedgerKey; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKey; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketMetadataExt { @@ -11351,9 +11489,9 @@ export namespace xdr { value(): BucketListType | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketMetadataExt; @@ -11363,13 +11501,13 @@ export namespace xdr { static toXDR(value: BucketMetadataExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketMetadataExt; + static fromXDR(input: Buffer, format?: "raw"): BucketMetadataExt; - static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadataExt; + static fromXDR(input: string, format: "hex" | "base64"): BucketMetadataExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketEntry { @@ -11391,9 +11529,9 @@ export namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketEntry; @@ -11403,13 +11541,13 @@ export namespace xdr { static toXDR(value: BucketEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketEntry; + static fromXDR(input: Buffer, format?: "raw"): BucketEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): BucketEntry; + static fromXDR(input: string, format: "hex" | "base64"): BucketEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HotArchiveBucketEntry { @@ -11425,15 +11563,13 @@ export namespace xdr { static hotArchiveLive(value: LedgerKey): HotArchiveBucketEntry; - static hotArchiveDeleted(value: LedgerKey): HotArchiveBucketEntry; - static hotArchiveMetaentry(value: BucketMetadata): HotArchiveBucketEntry; value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HotArchiveBucketEntry; @@ -11443,76 +11579,16 @@ export namespace xdr { static toXDR(value: HotArchiveBucketEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HotArchiveBucketEntry; + static fromXDR(input: Buffer, format?: "raw"): HotArchiveBucketEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HotArchiveBucketEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveBucketEntry { - switch(): ColdArchiveBucketEntryType; - - metaEntry(value?: BucketMetadata): BucketMetadata; - - archivedLeaf(value?: ColdArchiveArchivedLeaf): ColdArchiveArchivedLeaf; - - deletedLeaf(value?: ColdArchiveDeletedLeaf): ColdArchiveDeletedLeaf; - - boundaryLeaf(value?: ColdArchiveBoundaryLeaf): ColdArchiveBoundaryLeaf; - - hashEntry(value?: ColdArchiveHashEntry): ColdArchiveHashEntry; - - static coldArchiveMetaentry(value: BucketMetadata): ColdArchiveBucketEntry; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static coldArchiveArchivedLeaf( - value: ColdArchiveArchivedLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveDeletedLeaf( - value: ColdArchiveDeletedLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveBoundaryLeaf( - value: ColdArchiveBoundaryLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveHash(value: ColdArchiveHashEntry): ColdArchiveBucketEntry; - - value(): - | BucketMetadata - | ColdArchiveArchivedLeaf - | ColdArchiveDeletedLeaf - | ColdArchiveBoundaryLeaf - | ColdArchiveHashEntry; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveBucketEntry; - - static write(value: ColdArchiveBucketEntry, io: Buffer): void; - - static isValid(value: ColdArchiveBucketEntry): boolean; - - static toXDR(value: ColdArchiveBucketEntry): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveBucketEntry; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveBucketEntry; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarValueExt { @@ -11530,9 +11606,9 @@ export namespace xdr { value(): LedgerCloseValueSignature | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarValueExt; @@ -11542,13 +11618,13 @@ export namespace xdr { static toXDR(value: StellarValueExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarValueExt; + static fromXDR(input: Buffer, format?: "raw"): StellarValueExt; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarValueExt; + static fromXDR(input: string, format: "hex" | "base64"): StellarValueExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExtensionV1Ext { @@ -11558,9 +11634,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExtensionV1Ext; @@ -11570,16 +11646,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExt { @@ -11593,9 +11669,9 @@ export namespace xdr { value(): LedgerHeaderExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExt; @@ -11605,13 +11681,13 @@ export namespace xdr { static toXDR(value: LedgerHeaderExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeaderExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerHeaderExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerUpgrade { @@ -11654,9 +11730,9 @@ export namespace xdr { | ConfigUpgradeSetKey | number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerUpgrade; @@ -11666,13 +11742,13 @@ export namespace xdr { static toXDR(value: LedgerUpgrade): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerUpgrade; + static fromXDR(input: Buffer, format?: "raw"): LedgerUpgrade; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerUpgrade; + static fromXDR(input: string, format: "hex" | "base64"): LedgerUpgrade; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TxSetComponent { @@ -11688,9 +11764,9 @@ export namespace xdr { value(): TxSetComponentTxsMaybeDiscountedFee; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TxSetComponent; @@ -11700,13 +11776,13 @@ export namespace xdr { static toXDR(value: TxSetComponent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TxSetComponent; + static fromXDR(input: Buffer, format?: "raw"): TxSetComponent; - static fromXDR(input: string, format: 'hex' | 'base64'): TxSetComponent; + static fromXDR(input: string, format: "hex" | "base64"): TxSetComponent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionPhase { @@ -11714,13 +11790,17 @@ export namespace xdr { v0Components(value?: TxSetComponent[]): TxSetComponent[]; + parallelTxsComponent(value?: ParallelTxsComponent): ParallelTxsComponent; + static 0(value: TxSetComponent[]): TransactionPhase; - value(): TxSetComponent[]; + static 1(value: ParallelTxsComponent): TransactionPhase; - toXDR(format?: 'raw'): Buffer; + value(): TxSetComponent[] | ParallelTxsComponent; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionPhase; @@ -11730,13 +11810,13 @@ export namespace xdr { static toXDR(value: TransactionPhase): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionPhase; + static fromXDR(input: Buffer, format?: "raw"): TransactionPhase; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionPhase; + static fromXDR(input: string, format: "hex" | "base64"): TransactionPhase; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class GeneralizedTransactionSet { @@ -11748,9 +11828,9 @@ export namespace xdr { value(): TransactionSetV1; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): GeneralizedTransactionSet; @@ -11760,16 +11840,16 @@ export namespace xdr { static toXDR(value: GeneralizedTransactionSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): GeneralizedTransactionSet; + static fromXDR(input: Buffer, format?: "raw"): GeneralizedTransactionSet; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): GeneralizedTransactionSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryEntryExt { @@ -11785,9 +11865,9 @@ export namespace xdr { value(): GeneralizedTransactionSet | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryEntryExt; @@ -11797,16 +11877,16 @@ export namespace xdr { static toXDR(value: TransactionHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntryExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryResultEntryExt { @@ -11816,9 +11896,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryResultEntryExt; @@ -11830,17 +11910,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionHistoryResultEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryResultEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderHistoryEntryExt { @@ -11850,9 +11930,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderHistoryEntryExt; @@ -11862,16 +11942,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntryExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderHistoryEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpHistoryEntry { @@ -11883,9 +11963,9 @@ export namespace xdr { value(): ScpHistoryEntryV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpHistoryEntry; @@ -11895,13 +11975,13 @@ export namespace xdr { static toXDR(value: ScpHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryChange { @@ -11915,6 +11995,8 @@ export namespace xdr { state(value?: LedgerEntry): LedgerEntry; + restored(value?: LedgerEntry): LedgerEntry; + static ledgerEntryCreated(value: LedgerEntry): LedgerEntryChange; static ledgerEntryUpdated(value: LedgerEntry): LedgerEntryChange; @@ -11923,11 +12005,13 @@ export namespace xdr { static ledgerEntryState(value: LedgerEntry): LedgerEntryChange; - value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry; + static ledgerEntryRestored(value: LedgerEntry): LedgerEntryChange; - toXDR(format?: 'raw'): Buffer; + value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry | LedgerEntry; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryChange; @@ -11937,13 +12021,13 @@ export namespace xdr { static toXDR(value: LedgerEntryChange): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryChange; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryChange; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryChange; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryChange; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEventBody { @@ -11955,9 +12039,9 @@ export namespace xdr { value(): ContractEventV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEventBody; @@ -11967,13 +12051,13 @@ export namespace xdr { static toXDR(value: ContractEventBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEventBody; + static fromXDR(input: Buffer, format?: "raw"): ContractEventBody; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventBody; + static fromXDR(input: string, format: "hex" | "base64"): ContractEventBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMetaExt { @@ -11987,9 +12071,9 @@ export namespace xdr { value(): SorobanTransactionMetaExtV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMetaExt; @@ -11999,16 +12083,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMetaExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExt; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMetaExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMeta { @@ -12022,6 +12106,8 @@ export namespace xdr { v3(value?: TransactionMetaV3): TransactionMetaV3; + v4(value?: TransactionMetaV4): TransactionMetaV4; + static 0(value: OperationMeta[]): TransactionMeta; static 1(value: TransactionMetaV1): TransactionMeta; @@ -12030,15 +12116,18 @@ export namespace xdr { static 3(value: TransactionMetaV3): TransactionMeta; + static 4(value: TransactionMetaV4): TransactionMeta; + value(): | OperationMeta[] | TransactionMetaV1 | TransactionMetaV2 - | TransactionMetaV3; + | TransactionMetaV3 + | TransactionMetaV4; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMeta; @@ -12048,13 +12137,13 @@ export namespace xdr { static toXDR(value: TransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMeta; + static fromXDR(input: Buffer, format?: "raw"): TransactionMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMeta; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaExt { @@ -12068,9 +12157,9 @@ export namespace xdr { value(): LedgerCloseMetaExtV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaExt; @@ -12080,13 +12169,13 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMeta { @@ -12096,15 +12185,19 @@ export namespace xdr { v1(value?: LedgerCloseMetaV1): LedgerCloseMetaV1; + v2(value?: LedgerCloseMetaV2): LedgerCloseMetaV2; + static 0(value: LedgerCloseMetaV0): LedgerCloseMeta; static 1(value: LedgerCloseMetaV1): LedgerCloseMeta; - value(): LedgerCloseMetaV0 | LedgerCloseMetaV1; + static 2(value: LedgerCloseMetaV2): LedgerCloseMeta; - toXDR(format?: 'raw'): Buffer; + value(): LedgerCloseMetaV0 | LedgerCloseMetaV1 | LedgerCloseMetaV2; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMeta; @@ -12114,13 +12207,13 @@ export namespace xdr { static toXDR(value: LedgerCloseMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMeta; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMeta; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerAddressIp { @@ -12136,9 +12229,9 @@ export namespace xdr { value(): Buffer | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerAddressIp; @@ -12148,50 +12241,31 @@ export namespace xdr { static toXDR(value: PeerAddressIp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerAddressIp; + static fromXDR(input: Buffer, format?: "raw"): PeerAddressIp; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddressIp; + static fromXDR(input: string, format: "hex" | "base64"): PeerAddressIp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyResponseBody { switch(): SurveyMessageResponseType; - topologyResponseBodyV0( - value?: TopologyResponseBodyV0, - ): TopologyResponseBodyV0; - - topologyResponseBodyV1( - value?: TopologyResponseBodyV1, - ): TopologyResponseBodyV1; - topologyResponseBodyV2( value?: TopologyResponseBodyV2, ): TopologyResponseBodyV2; - static surveyTopologyResponseV0( - value: TopologyResponseBodyV0, - ): SurveyResponseBody; - - static surveyTopologyResponseV1( - value: TopologyResponseBodyV1, - ): SurveyResponseBody; - static surveyTopologyResponseV2( value: TopologyResponseBodyV2, ): SurveyResponseBody; - value(): - | TopologyResponseBodyV0 - | TopologyResponseBodyV1 - | TopologyResponseBodyV2; + value(): TopologyResponseBodyV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyResponseBody; @@ -12201,13 +12275,13 @@ export namespace xdr { static toXDR(value: SurveyResponseBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseBody; + static fromXDR(input: Buffer, format?: "raw"): SurveyResponseBody; - static fromXDR(input: string, format: 'hex' | 'base64'): SurveyResponseBody; + static fromXDR(input: string, format: "hex" | "base64"): SurveyResponseBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarMessage { @@ -12233,14 +12307,6 @@ export namespace xdr { transaction(value?: TransactionEnvelope): TransactionEnvelope; - signedSurveyRequestMessage( - value?: SignedSurveyRequestMessage, - ): SignedSurveyRequestMessage; - - signedSurveyResponseMessage( - value?: SignedSurveyResponseMessage, - ): SignedSurveyResponseMessage; - signedTimeSlicedSurveyRequestMessage( value?: SignedTimeSlicedSurveyRequestMessage, ): SignedTimeSlicedSurveyRequestMessage; @@ -12281,8 +12347,6 @@ export namespace xdr { static dontHave(value: DontHave): StellarMessage; - static getPeers(): StellarMessage; - static peers(value: PeerAddress[]): StellarMessage; static getTxSet(value: Buffer): StellarMessage; @@ -12293,10 +12357,6 @@ export namespace xdr { static transaction(value: TransactionEnvelope): StellarMessage; - static surveyRequest(value: SignedSurveyRequestMessage): StellarMessage; - - static surveyResponse(value: SignedSurveyResponseMessage): StellarMessage; - static timeSlicedSurveyRequest( value: SignedTimeSlicedSurveyRequestMessage, ): StellarMessage; @@ -12339,8 +12399,6 @@ export namespace xdr { | TransactionSet | GeneralizedTransactionSet | TransactionEnvelope - | SignedSurveyRequestMessage - | SignedSurveyResponseMessage | SignedTimeSlicedSurveyRequestMessage | SignedTimeSlicedSurveyResponseMessage | SignedTimeSlicedSurveyStartCollectingMessage @@ -12352,12 +12410,11 @@ export namespace xdr { | SendMore | SendMoreExtended | FloodAdvert - | FloodDemand - | void; + | FloodDemand; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarMessage; @@ -12367,13 +12424,13 @@ export namespace xdr { static toXDR(value: StellarMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarMessage; + static fromXDR(input: Buffer, format?: "raw"): StellarMessage; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarMessage; + static fromXDR(input: string, format: "hex" | "base64"): StellarMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthenticatedMessage { @@ -12385,9 +12442,9 @@ export namespace xdr { value(): AuthenticatedMessageV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthenticatedMessage; @@ -12397,16 +12454,16 @@ export namespace xdr { static toXDR(value: AuthenticatedMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessage; + static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AuthenticatedMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolParameters { @@ -12422,9 +12479,9 @@ export namespace xdr { value(): LiquidityPoolConstantProductParameters; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolParameters; @@ -12434,16 +12491,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolParameters): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolParameters; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolParameters; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolParameters; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class MuxedAccount { @@ -12459,9 +12516,9 @@ export namespace xdr { value(): Buffer | MuxedAccountMed25519; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): MuxedAccount; @@ -12471,13 +12528,13 @@ export namespace xdr { static toXDR(value: MuxedAccount): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): MuxedAccount; + static fromXDR(input: Buffer, format?: "raw"): MuxedAccount; - static fromXDR(input: string, format: 'hex' | 'base64'): MuxedAccount; + static fromXDR(input: string, format: "hex" | "base64"): MuxedAccount; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustAsset { @@ -12499,9 +12556,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | LiquidityPoolParameters | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustAsset; @@ -12511,13 +12568,13 @@ export namespace xdr { static toXDR(value: ChangeTrustAsset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustAsset; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustAsset; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustAsset; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustAsset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipOp { @@ -12535,9 +12592,9 @@ export namespace xdr { value(): LedgerKey | RevokeSponsorshipOpSigner; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipOp; @@ -12547,16 +12604,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOp; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractIdPreimage { @@ -12576,9 +12633,9 @@ export namespace xdr { value(): ContractIdPreimageFromAddress | Asset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractIdPreimage; @@ -12588,13 +12645,13 @@ export namespace xdr { static toXDR(value: ContractIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractIdPreimage; + static fromXDR(input: Buffer, format?: "raw"): ContractIdPreimage; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractIdPreimage; + static fromXDR(input: string, format: "hex" | "base64"): ContractIdPreimage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HostFunction { @@ -12628,9 +12685,9 @@ export namespace xdr { | Buffer | CreateContractArgsV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HostFunction; @@ -12640,13 +12697,13 @@ export namespace xdr { static toXDR(value: HostFunction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HostFunction; + static fromXDR(input: Buffer, format?: "raw"): HostFunction; - static fromXDR(input: string, format: 'hex' | 'base64'): HostFunction; + static fromXDR(input: string, format: "hex" | "base64"): HostFunction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizedFunction { @@ -12672,9 +12729,9 @@ export namespace xdr { value(): InvokeContractArgs | CreateContractArgs | CreateContractArgsV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizedFunction; @@ -12684,16 +12741,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizedFunction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedFunction; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedFunction; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizedFunction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanCredentials { @@ -12709,9 +12766,9 @@ export namespace xdr { value(): SorobanAddressCredentials | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanCredentials; @@ -12721,13 +12778,13 @@ export namespace xdr { static toXDR(value: SorobanCredentials): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanCredentials; + static fromXDR(input: Buffer, format?: "raw"): SorobanCredentials; - static fromXDR(input: string, format: 'hex' | 'base64'): SorobanCredentials; + static fromXDR(input: string, format: "hex" | "base64"): SorobanCredentials; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationBody { @@ -12893,9 +12950,9 @@ export namespace xdr { | RestoreFootprintOp | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationBody; @@ -12905,13 +12962,13 @@ export namespace xdr { static toXDR(value: OperationBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationBody; + static fromXDR(input: Buffer, format?: "raw"): OperationBody; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationBody; + static fromXDR(input: string, format: "hex" | "base64"): OperationBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimage { @@ -12947,9 +13004,9 @@ export namespace xdr { | HashIdPreimageContractId | HashIdPreimageSorobanAuthorization; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimage; @@ -12959,13 +13016,13 @@ export namespace xdr { static toXDR(value: HashIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimage; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimage; - static fromXDR(input: string, format: 'hex' | 'base64'): HashIdPreimage; + static fromXDR(input: string, format: "hex" | "base64"): HashIdPreimage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Memo { @@ -12991,9 +13048,9 @@ export namespace xdr { value(): string | Buffer | Uint64 | Buffer | Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Memo; @@ -13003,13 +13060,13 @@ export namespace xdr { static toXDR(value: Memo): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Memo; + static fromXDR(input: Buffer, format?: "raw"): Memo; - static fromXDR(input: string, format: 'hex' | 'base64'): Memo; + static fromXDR(input: string, format: "hex" | "base64"): Memo; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Preconditions { @@ -13027,9 +13084,9 @@ export namespace xdr { value(): TimeBounds | PreconditionsV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Preconditions; @@ -13039,47 +13096,48 @@ export namespace xdr { static toXDR(value: Preconditions): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Preconditions; + static fromXDR(input: Buffer, format?: "raw"): Preconditions; - static fromXDR(input: string, format: 'hex' | 'base64'): Preconditions; + static fromXDR(input: string, format: "hex" | "base64"): Preconditions; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class ArchivalProofBody { - switch(): ArchivalProofType; - - nonexistenceProof(value?: NonexistenceProofBody): NonexistenceProofBody; + class SorobanTransactionDataExt { + switch(): number; - existenceProof(value?: ExistenceProofBody): ExistenceProofBody; + resourceExt(value?: SorobanResourcesExtV0): SorobanResourcesExtV0; - static existence(value: NonexistenceProofBody): ArchivalProofBody; + static 0(): SorobanTransactionDataExt; - static nonexistence(value: ExistenceProofBody): ArchivalProofBody; + static 1(value: SorobanResourcesExtV0): SorobanTransactionDataExt; - value(): NonexistenceProofBody | ExistenceProofBody; + value(): SorobanResourcesExtV0 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): ArchivalProofBody; + static read(io: Buffer): SorobanTransactionDataExt; - static write(value: ArchivalProofBody, io: Buffer): void; + static write(value: SorobanTransactionDataExt, io: Buffer): void; - static isValid(value: ArchivalProofBody): boolean; + static isValid(value: SorobanTransactionDataExt): boolean; - static toXDR(value: ArchivalProofBody): Buffer; + static toXDR(value: SorobanTransactionDataExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProofBody; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionDataExt; - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProofBody; + static fromXDR( + input: string, + format: "hex" | "base64", + ): SorobanTransactionDataExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0Ext { @@ -13089,9 +13147,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0Ext; @@ -13101,13 +13159,13 @@ export namespace xdr { static toXDR(value: TransactionV0Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Ext; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0Ext; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0Ext; + static fromXDR(input: string, format: "hex" | "base64"): TransactionV0Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionExt { @@ -13121,9 +13179,9 @@ export namespace xdr { value(): SorobanTransactionData | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionExt; @@ -13133,13 +13191,13 @@ export namespace xdr { static toXDR(value: TransactionExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionExt; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionExt; + static fromXDR(input: string, format: "hex" | "base64"): TransactionExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionInnerTx { @@ -13153,9 +13211,9 @@ export namespace xdr { value(): TransactionV1Envelope; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionInnerTx; @@ -13165,16 +13223,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionInnerTx): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionInnerTx; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionInnerTx; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionInnerTx; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionExt { @@ -13184,9 +13242,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionExt; @@ -13196,16 +13254,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionExt; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionEnvelope { @@ -13230,9 +13288,9 @@ export namespace xdr { | TransactionV1Envelope | FeeBumpTransactionEnvelope; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionEnvelope; @@ -13242,16 +13300,16 @@ export namespace xdr { static toXDR(value: TransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionEnvelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionEnvelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSignaturePayloadTaggedTransaction { @@ -13271,9 +13329,9 @@ export namespace xdr { value(): Transaction | FeeBumpTransaction; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSignaturePayloadTaggedTransaction; @@ -13290,17 +13348,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionSignaturePayloadTaggedTransaction; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionSignaturePayloadTaggedTransaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimAtom { @@ -13320,9 +13378,9 @@ export namespace xdr { value(): ClaimOfferAtomV0 | ClaimOfferAtom | ClaimLiquidityAtom; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimAtom; @@ -13332,13 +13390,13 @@ export namespace xdr { static toXDR(value: ClaimAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateAccountResult { @@ -13356,9 +13414,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateAccountResult; @@ -13368,16 +13426,16 @@ export namespace xdr { static toXDR(value: CreateAccountResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateAccountResult; + static fromXDR(input: Buffer, format?: "raw"): CreateAccountResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateAccountResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PaymentResult { @@ -13405,9 +13463,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PaymentResult; @@ -13417,13 +13475,13 @@ export namespace xdr { static toXDR(value: PaymentResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PaymentResult; + static fromXDR(input: Buffer, format?: "raw"): PaymentResult; - static fromXDR(input: string, format: 'hex' | 'base64'): PaymentResult; + static fromXDR(input: string, format: "hex" | "base64"): PaymentResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveResult { @@ -13467,9 +13525,9 @@ export namespace xdr { value(): PathPaymentStrictReceiveResultSuccess | Asset | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveResult; @@ -13481,17 +13539,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictReceiveResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendResult { @@ -13535,9 +13593,9 @@ export namespace xdr { value(): PathPaymentStrictSendResultSuccess | Asset | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendResult; @@ -13547,16 +13605,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictSendResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendResult; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageOfferSuccessResultOffer { @@ -13572,9 +13630,9 @@ export namespace xdr { value(): OfferEntry | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageOfferSuccessResultOffer; @@ -13586,17 +13644,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ManageOfferSuccessResultOffer; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageOfferSuccessResultOffer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageSellOfferResult { @@ -13634,9 +13692,9 @@ export namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageSellOfferResult; @@ -13646,16 +13704,16 @@ export namespace xdr { static toXDR(value: ManageSellOfferResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferResult; + static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageSellOfferResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageBuyOfferResult { @@ -13693,9 +13751,9 @@ export namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageBuyOfferResult; @@ -13705,16 +13763,16 @@ export namespace xdr { static toXDR(value: ManageBuyOfferResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferResult; + static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageBuyOfferResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetOptionsResult { @@ -13744,9 +13802,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetOptionsResult; @@ -13756,13 +13814,13 @@ export namespace xdr { static toXDR(value: SetOptionsResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetOptionsResult; + static fromXDR(input: Buffer, format?: "raw"): SetOptionsResult; - static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsResult; + static fromXDR(input: string, format: "hex" | "base64"): SetOptionsResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustResult { @@ -13788,9 +13846,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustResult; @@ -13800,13 +13858,13 @@ export namespace xdr { static toXDR(value: ChangeTrustResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustResult; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustResult; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AllowTrustResult { @@ -13828,9 +13886,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AllowTrustResult; @@ -13840,13 +13898,13 @@ export namespace xdr { static toXDR(value: AllowTrustResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AllowTrustResult; + static fromXDR(input: Buffer, format?: "raw"): AllowTrustResult; - static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustResult; + static fromXDR(input: string, format: "hex" | "base64"): AllowTrustResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountMergeResult { @@ -13872,9 +13930,9 @@ export namespace xdr { value(): Int64 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountMergeResult; @@ -13884,13 +13942,13 @@ export namespace xdr { static toXDR(value: AccountMergeResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountMergeResult; + static fromXDR(input: Buffer, format?: "raw"): AccountMergeResult; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountMergeResult; + static fromXDR(input: string, format: "hex" | "base64"): AccountMergeResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InflationResult { @@ -13904,9 +13962,9 @@ export namespace xdr { value(): InflationPayout[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InflationResult; @@ -13916,13 +13974,13 @@ export namespace xdr { static toXDR(value: InflationResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InflationResult; + static fromXDR(input: Buffer, format?: "raw"): InflationResult; - static fromXDR(input: string, format: 'hex' | 'base64'): InflationResult; + static fromXDR(input: string, format: "hex" | "base64"): InflationResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageDataResult { @@ -13940,9 +13998,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageDataResult; @@ -13952,13 +14010,13 @@ export namespace xdr { static toXDR(value: ManageDataResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageDataResult; + static fromXDR(input: Buffer, format?: "raw"): ManageDataResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataResult; + static fromXDR(input: string, format: "hex" | "base64"): ManageDataResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BumpSequenceResult { @@ -13970,9 +14028,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BumpSequenceResult; @@ -13982,13 +14040,13 @@ export namespace xdr { static toXDR(value: BumpSequenceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceResult; + static fromXDR(input: Buffer, format?: "raw"): BumpSequenceResult; - static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceResult; + static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateClaimableBalanceResult { @@ -14012,9 +14070,9 @@ export namespace xdr { value(): ClaimableBalanceId | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateClaimableBalanceResult; @@ -14024,16 +14082,16 @@ export namespace xdr { static toXDR(value: CreateClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceResult; + static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimClaimableBalanceResult { @@ -14053,9 +14111,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimClaimableBalanceResult; @@ -14065,16 +14123,16 @@ export namespace xdr { static toXDR(value: ClaimClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceResult; + static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BeginSponsoringFutureReservesResult { @@ -14090,9 +14148,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BeginSponsoringFutureReservesResult; @@ -14104,17 +14162,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): BeginSponsoringFutureReservesResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): BeginSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class EndSponsoringFutureReservesResult { @@ -14126,9 +14184,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): EndSponsoringFutureReservesResult; @@ -14140,17 +14198,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): EndSponsoringFutureReservesResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): EndSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipResult { @@ -14170,9 +14228,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipResult; @@ -14182,16 +14240,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipResult; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackResult { @@ -14209,9 +14267,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackResult; @@ -14221,13 +14279,13 @@ export namespace xdr { static toXDR(value: ClawbackResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackResult; + static fromXDR(input: Buffer, format?: "raw"): ClawbackResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackResult; + static fromXDR(input: string, format: "hex" | "base64"): ClawbackResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackClaimableBalanceResult { @@ -14243,9 +14301,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackClaimableBalanceResult; @@ -14257,17 +14315,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClawbackClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClawbackClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetTrustLineFlagsResult { @@ -14287,9 +14345,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetTrustLineFlagsResult; @@ -14299,16 +14357,16 @@ export namespace xdr { static toXDR(value: SetTrustLineFlagsResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsResult; + static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SetTrustLineFlagsResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolDepositResult { @@ -14332,9 +14390,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolDepositResult; @@ -14344,16 +14402,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolDepositResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositResult; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolDepositResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolWithdrawResult { @@ -14373,9 +14431,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolWithdrawResult; @@ -14385,16 +14443,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolWithdrawResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawResult; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolWithdrawResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeHostFunctionResult { @@ -14416,9 +14474,9 @@ export namespace xdr { value(): Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeHostFunctionResult; @@ -14428,16 +14486,16 @@ export namespace xdr { static toXDR(value: InvokeHostFunctionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionResult; + static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InvokeHostFunctionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtendFootprintTtlResult { @@ -14453,9 +14511,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtendFootprintTtlResult; @@ -14465,16 +14523,16 @@ export namespace xdr { static toXDR(value: ExtendFootprintTtlResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlResult; + static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ExtendFootprintTtlResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RestoreFootprintResult { @@ -14490,9 +14548,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RestoreFootprintResult; @@ -14502,16 +14560,16 @@ export namespace xdr { static toXDR(value: RestoreFootprintResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintResult; + static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RestoreFootprintResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationResultTr { @@ -14708,9 +14766,9 @@ export namespace xdr { | ExtendFootprintTtlResult | RestoreFootprintResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationResultTr; @@ -14720,13 +14778,13 @@ export namespace xdr { static toXDR(value: OperationResultTr): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationResultTr; + static fromXDR(input: Buffer, format?: "raw"): OperationResultTr; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationResultTr; + static fromXDR(input: string, format: "hex" | "base64"): OperationResultTr; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationResult { @@ -14750,9 +14808,9 @@ export namespace xdr { value(): OperationResultTr | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationResult; @@ -14762,13 +14820,13 @@ export namespace xdr { static toXDR(value: OperationResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationResult; + static fromXDR(input: Buffer, format?: "raw"): OperationResult; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationResult; + static fromXDR(input: string, format: "hex" | "base64"): OperationResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultResult { @@ -14812,9 +14870,9 @@ export namespace xdr { value(): OperationResult[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultResult; @@ -14824,16 +14882,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultResult; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultExt { @@ -14843,9 +14901,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultExt; @@ -14855,16 +14913,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultExt; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultResult { @@ -14920,9 +14978,9 @@ export namespace xdr { value(): InnerTransactionResultPair | OperationResult[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultResult; @@ -14932,16 +14990,16 @@ export namespace xdr { static toXDR(value: TransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultResult; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultExt { @@ -14951,9 +15009,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultExt; @@ -14963,16 +15021,16 @@ export namespace xdr { static toXDR(value: TransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtensionPoint { @@ -14982,9 +15040,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtensionPoint; @@ -14994,13 +15052,13 @@ export namespace xdr { static toXDR(value: ExtensionPoint): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtensionPoint; + static fromXDR(input: Buffer, format?: "raw"): ExtensionPoint; - static fromXDR(input: string, format: 'hex' | 'base64'): ExtensionPoint; + static fromXDR(input: string, format: "hex" | "base64"): ExtensionPoint; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PublicKey { @@ -15012,9 +15070,9 @@ export namespace xdr { value(): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PublicKey; @@ -15024,13 +15082,13 @@ export namespace xdr { static toXDR(value: PublicKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PublicKey; + static fromXDR(input: Buffer, format?: "raw"): PublicKey; - static fromXDR(input: string, format: 'hex' | 'base64'): PublicKey; + static fromXDR(input: string, format: "hex" | "base64"): PublicKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignerKey { @@ -15058,9 +15116,9 @@ export namespace xdr { value(): Buffer | Buffer | Buffer | SignerKeyEd25519SignedPayload; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignerKey; @@ -15070,13 +15128,43 @@ export namespace xdr { static toXDR(value: SignerKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SignerKey; + static fromXDR(input: Buffer, format?: "raw"): SignerKey; + + static fromXDR(input: string, format: "hex" | "base64"): SignerKey; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ClaimableBalanceId { + switch(): ClaimableBalanceIdType; + + v0(value?: Buffer): Buffer; + + static claimableBalanceIdTypeV0(value: Buffer): ClaimableBalanceId; + + value(): Buffer; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ClaimableBalanceId; + + static write(value: ClaimableBalanceId, io: Buffer): void; + + static isValid(value: ClaimableBalanceId): boolean; + + static toXDR(value: ClaimableBalanceId): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceId; - static fromXDR(input: string, format: 'hex' | 'base64'): SignerKey; + static fromXDR(input: string, format: "hex" | "base64"): ClaimableBalanceId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScError { @@ -15108,9 +15196,9 @@ export namespace xdr { value(): number | ScErrorCode; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScError; @@ -15120,13 +15208,13 @@ export namespace xdr { static toXDR(value: ScError): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScError; + static fromXDR(input: Buffer, format?: "raw"): ScError; - static fromXDR(input: string, format: 'hex' | 'base64'): ScError; + static fromXDR(input: string, format: "hex" | "base64"): ScError; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractExecutable { @@ -15140,9 +15228,9 @@ export namespace xdr { value(): Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractExecutable; @@ -15152,13 +15240,13 @@ export namespace xdr { static toXDR(value: ContractExecutable): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractExecutable; + static fromXDR(input: Buffer, format?: "raw"): ContractExecutable; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractExecutable; + static fromXDR(input: string, format: "hex" | "base64"): ContractExecutable; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScAddress { @@ -15166,17 +15254,34 @@ export namespace xdr { accountId(value?: AccountId): AccountId; - contractId(value?: Buffer): Buffer; + contractId(value?: ContractId): ContractId; + + muxedAccount(value?: MuxedEd25519Account): MuxedEd25519Account; + + claimableBalanceId(value?: ClaimableBalanceId): ClaimableBalanceId; + + liquidityPoolId(value?: PoolId): PoolId; static scAddressTypeAccount(value: AccountId): ScAddress; - static scAddressTypeContract(value: Buffer): ScAddress; + static scAddressTypeContract(value: ContractId): ScAddress; + + static scAddressTypeMuxedAccount(value: MuxedEd25519Account): ScAddress; + + static scAddressTypeClaimableBalance(value: ClaimableBalanceId): ScAddress; - value(): AccountId | Buffer; + static scAddressTypeLiquidityPool(value: PoolId): ScAddress; - toXDR(format?: 'raw'): Buffer; + value(): + | AccountId + | ContractId + | MuxedEd25519Account + | ClaimableBalanceId + | PoolId; + + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScAddress; @@ -15186,13 +15291,13 @@ export namespace xdr { static toXDR(value: ScAddress): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScAddress; + static fromXDR(input: Buffer, format?: "raw"): ScAddress; - static fromXDR(input: string, format: 'hex' | 'base64'): ScAddress; + static fromXDR(input: string, format: "hex" | "base64"): ScAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScVal { @@ -15234,10 +15339,10 @@ export namespace xdr { address(value?: ScAddress): ScAddress; - nonceKey(value?: ScNonceKey): ScNonceKey; - instance(value?: ScContractInstance): ScContractInstance; + nonceKey(value?: ScNonceKey): ScNonceKey; + static scvBool(value: boolean): ScVal; static scvVoid(): ScVal; @@ -15276,12 +15381,12 @@ export namespace xdr { static scvAddress(value: ScAddress): ScVal; + static scvContractInstance(value: ScContractInstance): ScVal; + static scvLedgerKeyContractInstance(): ScVal; static scvLedgerKeyNonce(value: ScNonceKey): ScVal; - static scvContractInstance(value: ScContractInstance): ScVal; - value(): | boolean | ScError @@ -15305,13 +15410,13 @@ export namespace xdr { | null | ScMapEntry[] | ScAddress - | ScNonceKey | ScContractInstance + | ScNonceKey | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScVal; @@ -15321,13 +15426,13 @@ export namespace xdr { static toXDR(value: ScVal): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScVal; + static fromXDR(input: Buffer, format?: "raw"): ScVal; - static fromXDR(input: string, format: 'hex' | 'base64'): ScVal; + static fromXDR(input: string, format: "hex" | "base64"): ScVal; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScEnvMetaEntry { @@ -15343,9 +15448,9 @@ export namespace xdr { value(): ScEnvMetaEntryInterfaceVersion; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScEnvMetaEntry; @@ -15355,13 +15460,13 @@ export namespace xdr { static toXDR(value: ScEnvMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScEnvMetaEntry; + static fromXDR(input: Buffer, format?: "raw"): ScEnvMetaEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScEnvMetaEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScEnvMetaEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMetaEntry { @@ -15373,9 +15478,9 @@ export namespace xdr { value(): ScMetaV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMetaEntry; @@ -15385,13 +15490,13 @@ export namespace xdr { static toXDR(value: ScMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMetaEntry; + static fromXDR(input: Buffer, format?: "raw"): ScMetaEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScMetaEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeDef { @@ -15447,6 +15552,8 @@ export namespace xdr { static scSpecTypeAddress(): ScSpecTypeDef; + static scSpecTypeMuxedAddress(): ScSpecTypeDef; + static scSpecTypeOption(value: ScSpecTypeOption): ScSpecTypeDef; static scSpecTypeResult(value: ScSpecTypeResult): ScSpecTypeDef; @@ -15471,9 +15578,9 @@ export namespace xdr { | ScSpecTypeUdt | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeDef; @@ -15483,13 +15590,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeDef): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeDef; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeDef; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeDef; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeDef; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseV0 { @@ -15509,9 +15616,9 @@ export namespace xdr { value(): ScSpecUdtUnionCaseVoidV0 | ScSpecUdtUnionCaseTupleV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseV0; @@ -15521,16 +15628,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecEntry { @@ -15546,6 +15653,8 @@ export namespace xdr { udtErrorEnumV0(value?: ScSpecUdtErrorEnumV0): ScSpecUdtErrorEnumV0; + eventV0(value?: ScSpecEventV0): ScSpecEventV0; + static scSpecEntryFunctionV0(value: ScSpecFunctionV0): ScSpecEntry; static scSpecEntryUdtStructV0(value: ScSpecUdtStructV0): ScSpecEntry; @@ -15556,16 +15665,19 @@ export namespace xdr { static scSpecEntryUdtErrorEnumV0(value: ScSpecUdtErrorEnumV0): ScSpecEntry; + static scSpecEntryEventV0(value: ScSpecEventV0): ScSpecEntry; + value(): | ScSpecFunctionV0 | ScSpecUdtStructV0 | ScSpecUdtUnionV0 | ScSpecUdtEnumV0 - | ScSpecUdtErrorEnumV0; + | ScSpecUdtErrorEnumV0 + | ScSpecEventV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecEntry; @@ -15575,13 +15687,13 @@ export namespace xdr { static toXDR(value: ScSpecEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecEntry; + static fromXDR(input: Buffer, format?: "raw"): ScSpecEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingEntry { @@ -15627,10 +15739,20 @@ export namespace xdr { value?: ConfigSettingContractExecutionLanesV0, ): ConfigSettingContractExecutionLanesV0; - bucketListSizeWindow(value?: Uint64[]): Uint64[]; + liveSorobanStateSizeWindow(value?: Uint64[]): Uint64[]; evictionIterator(value?: EvictionIterator): EvictionIterator; + contractParallelCompute( + value?: ConfigSettingContractParallelComputeV0, + ): ConfigSettingContractParallelComputeV0; + + contractLedgerCostExt( + value?: ConfigSettingContractLedgerCostExtV0, + ): ConfigSettingContractLedgerCostExtV0; + + contractScpTiming(value?: ConfigSettingScpTiming): ConfigSettingScpTiming; + static configSettingContractMaxSizeBytes(value: number): ConfigSettingEntry; static configSettingContractComputeV0( @@ -15677,7 +15799,7 @@ export namespace xdr { value: ConfigSettingContractExecutionLanesV0, ): ConfigSettingEntry; - static configSettingBucketlistSizeWindow( + static configSettingLiveSorobanStateSizeWindow( value: Uint64[], ): ConfigSettingEntry; @@ -15685,6 +15807,18 @@ export namespace xdr { value: EvictionIterator, ): ConfigSettingEntry; + static configSettingContractParallelComputeV0( + value: ConfigSettingContractParallelComputeV0, + ): ConfigSettingEntry; + + static configSettingContractLedgerCostExtV0( + value: ConfigSettingContractLedgerCostExtV0, + ): ConfigSettingEntry; + + static configSettingScpTiming( + value: ConfigSettingScpTiming, + ): ConfigSettingEntry; + value(): | number | ConfigSettingContractComputeV0 @@ -15699,11 +15833,14 @@ export namespace xdr { | StateArchivalSettings | ConfigSettingContractExecutionLanesV0 | Uint64[] - | EvictionIterator; + | EvictionIterator + | ConfigSettingContractParallelComputeV0 + | ConfigSettingContractLedgerCostExtV0 + | ConfigSettingScpTiming; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingEntry; @@ -15713,12 +15850,12 @@ export namespace xdr { static toXDR(value: ConfigSettingEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingEntry; + static fromXDR(input: Buffer, format?: "raw"): ConfigSettingEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ConfigSettingEntry; + static fromXDR(input: string, format: "hex" | "base64"): ConfigSettingEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } } diff --git a/types/next.d.ts b/types/next.d.ts index ced3636f..a5ec3be0 100644 --- a/types/next.d.ts +++ b/types/next.d.ts @@ -1,49 +1,4 @@ -// 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 { - 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 - +declare namespace xdr { interface SignedInt { readonly MAX_VALUE: 2147483647; readonly MIN_VALUE: -2147483648; @@ -51,10 +6,10 @@ export namespace xdr { 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; + 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 { @@ -64,10 +19,10 @@ export namespace xdr { 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; + 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 { @@ -75,10 +30,10 @@ export namespace xdr { 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; + 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 { @@ -92,19 +47,19 @@ export namespace xdr { values: string | bigint | number | (string | bigint | number)[], ); - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static toXDR(value: Hyper): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Hyper; + static fromXDR(input: Buffer, format?: "raw"): Hyper; - static fromXDR(input: string, format: 'hex' | 'base64'): Hyper; + static fromXDR(input: string, format: "hex" | "base64"): Hyper; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; static readonly MAX_VALUE: Hyper; @@ -136,19 +91,19 @@ export namespace xdr { values: string | bigint | number | (string | bigint | number)[], ); - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static toXDR(value: UnsignedHyper): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UnsignedHyper; + static fromXDR(input: Buffer, format?: "raw"): UnsignedHyper; - static fromXDR(input: string, format: 'hex' | 'base64'): UnsignedHyper; + static fromXDR(input: string, format: "hex" | "base64"): UnsignedHyper; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; static readonly MAX_VALUE: UnsignedHyper; @@ -182,13 +137,13 @@ export namespace xdr { toXDR(value: string | Buffer): Buffer; - fromXDR(input: Buffer, format?: 'raw'): Buffer; + fromXDR(input: Buffer, format?: "raw"): Buffer; - fromXDR(input: string, format: 'hex' | 'base64'): Buffer; + fromXDR(input: string, format: "hex" | "base64"): Buffer; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class XDRArray { @@ -200,13 +155,13 @@ export namespace xdr { toXDR(value: T[]): Buffer; - fromXDR(input: Buffer, format?: 'raw'): T[]; + fromXDR(input: Buffer, format?: "raw"): T[]; - fromXDR(input: string, format: 'hex' | 'base64'): T[]; + fromXDR(input: string, format: "hex" | "base64"): T[]; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class Opaque { @@ -220,13 +175,13 @@ export namespace xdr { toXDR(value: Buffer): Buffer; - fromXDR(input: Buffer, format?: 'raw'): Buffer; + fromXDR(input: Buffer, format?: "raw"): Buffer; - fromXDR(input: string, format: 'hex' | 'base64'): Buffer; + fromXDR(input: string, format: "hex" | "base64"): Buffer; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class VarOpaque extends Opaque {} @@ -246,21 +201,21 @@ export namespace xdr { toXDR(value: any): Buffer; - fromXDR(input: Buffer, format?: 'raw'): any; + fromXDR(input: Buffer, format?: "raw"): any; - fromXDR(input: string, format: 'hex' | 'base64'): any; + fromXDR(input: string, format: "hex" | "base64"): any; - validateXDR(input: Buffer, format?: 'raw'): boolean; + validateXDR(input: Buffer, format?: "raw"): boolean; - validateXDR(input: string, format: 'hex' | 'base64'): boolean; + validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementType { readonly name: - | 'scpStPrepare' - | 'scpStConfirm' - | 'scpStExternalize' - | 'scpStNominate'; + | "scpStPrepare" + | "scpStConfirm" + | "scpStExternalize" + | "scpStNominate"; readonly value: 0 | 1 | 2 | 3; @@ -275,10 +230,10 @@ export namespace xdr { class AssetType { readonly name: - | 'assetTypeNative' - | 'assetTypeCreditAlphanum4' - | 'assetTypeCreditAlphanum12' - | 'assetTypePoolShare'; + | "assetTypeNative" + | "assetTypeCreditAlphanum4" + | "assetTypeCreditAlphanum12" + | "assetTypePoolShare"; readonly value: 0 | 1 | 2 | 3; @@ -293,10 +248,10 @@ export namespace xdr { class ThresholdIndices { readonly name: - | 'thresholdMasterWeight' - | 'thresholdLow' - | 'thresholdMed' - | 'thresholdHigh'; + | "thresholdMasterWeight" + | "thresholdLow" + | "thresholdMed" + | "thresholdHigh"; readonly value: 0 | 1 | 2 | 3; @@ -311,16 +266,16 @@ export namespace xdr { class LedgerEntryType { readonly name: - | 'account' - | 'trustline' - | 'offer' - | 'data' - | 'claimableBalance' - | 'liquidityPool' - | 'contractData' - | 'contractCode' - | 'configSetting' - | 'ttl'; + | "account" + | "trustline" + | "offer" + | "data" + | "claimableBalance" + | "liquidityPool" + | "contractData" + | "contractCode" + | "configSetting" + | "ttl"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -347,10 +302,10 @@ export namespace xdr { class AccountFlags { readonly name: - | 'authRequiredFlag' - | 'authRevocableFlag' - | 'authImmutableFlag' - | 'authClawbackEnabledFlag'; + | "authRequiredFlag" + | "authRevocableFlag" + | "authImmutableFlag" + | "authClawbackEnabledFlag"; readonly value: 1 | 2 | 4 | 8; @@ -365,9 +320,9 @@ export namespace xdr { class TrustLineFlags { readonly name: - | 'authorizedFlag' - | 'authorizedToMaintainLiabilitiesFlag' - | 'trustlineClawbackEnabledFlag'; + | "authorizedFlag" + | "authorizedToMaintainLiabilitiesFlag" + | "trustlineClawbackEnabledFlag"; readonly value: 1 | 2 | 4; @@ -379,7 +334,7 @@ export namespace xdr { } class LiquidityPoolType { - readonly name: 'liquidityPoolConstantProduct'; + readonly name: "liquidityPoolConstantProduct"; readonly value: 0; @@ -387,7 +342,7 @@ export namespace xdr { } class OfferEntryFlags { - readonly name: 'passiveFlag'; + readonly name: "passiveFlag"; readonly value: 1; @@ -396,12 +351,12 @@ export namespace xdr { class ClaimPredicateType { readonly name: - | 'claimPredicateUnconditional' - | 'claimPredicateAnd' - | 'claimPredicateOr' - | 'claimPredicateNot' - | 'claimPredicateBeforeAbsoluteTime' - | 'claimPredicateBeforeRelativeTime'; + | "claimPredicateUnconditional" + | "claimPredicateAnd" + | "claimPredicateOr" + | "claimPredicateNot" + | "claimPredicateBeforeAbsoluteTime" + | "claimPredicateBeforeRelativeTime"; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -419,23 +374,15 @@ export namespace xdr { } class ClaimantType { - readonly name: 'claimantTypeV0'; + 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 name: "claimableBalanceClawbackEnabledFlag"; readonly value: 1; @@ -443,7 +390,7 @@ export namespace xdr { } class ContractDataDurability { - readonly name: 'temporary' | 'persistent'; + readonly name: "temporary" | "persistent"; readonly value: 0 | 1; @@ -454,16 +401,16 @@ export namespace xdr { class EnvelopeType { readonly name: - | 'envelopeTypeTxV0' - | 'envelopeTypeScp' - | 'envelopeTypeTx' - | 'envelopeTypeAuth' - | 'envelopeTypeScpvalue' - | 'envelopeTypeTxFeeBump' - | 'envelopeTypeOpId' - | 'envelopeTypePoolRevokeOpId' - | 'envelopeTypeContractId' - | 'envelopeTypeSorobanAuthorization'; + | "envelopeTypeTxV0" + | "envelopeTypeScp" + | "envelopeTypeTx" + | "envelopeTypeAuth" + | "envelopeTypeScpvalue" + | "envelopeTypeTxFeeBump" + | "envelopeTypeOpId" + | "envelopeTypePoolRevokeOpId" + | "envelopeTypeContractId" + | "envelopeTypeSorobanAuthorization"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -489,19 +436,17 @@ export namespace xdr { } class BucketListType { - readonly name: 'live' | 'hotArchive' | 'coldArchive'; + readonly name: "live" | "hotArchive"; - readonly value: 0 | 1 | 2; + readonly value: 0 | 1; static live(): BucketListType; static hotArchive(): BucketListType; - - static coldArchive(): BucketListType; } class BucketEntryType { - readonly name: 'metaentry' | 'liveentry' | 'deadentry' | 'initentry'; + readonly name: "metaentry" | "liveentry" | "deadentry" | "initentry"; readonly value: -1 | 0 | 1 | 2; @@ -516,45 +461,21 @@ export namespace xdr { class HotArchiveBucketEntryType { readonly name: - | 'hotArchiveMetaentry' - | 'hotArchiveArchived' - | 'hotArchiveLive' - | 'hotArchiveDeleted'; + | "hotArchiveMetaentry" + | "hotArchiveArchived" + | "hotArchiveLive"; - readonly value: -1 | 0 | 1 | 2; + readonly value: -1 | 0 | 1; 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 name: "stellarValueBasic" | "stellarValueSigned"; readonly value: 0 | 1; @@ -565,9 +486,9 @@ export namespace xdr { class LedgerHeaderFlags { readonly name: - | 'disableLiquidityPoolTradingFlag' - | 'disableLiquidityPoolDepositFlag' - | 'disableLiquidityPoolWithdrawalFlag'; + | "disableLiquidityPoolTradingFlag" + | "disableLiquidityPoolDepositFlag" + | "disableLiquidityPoolWithdrawalFlag"; readonly value: 1 | 2 | 4; @@ -580,13 +501,13 @@ export namespace xdr { class LedgerUpgradeType { readonly name: - | 'ledgerUpgradeVersion' - | 'ledgerUpgradeBaseFee' - | 'ledgerUpgradeMaxTxSetSize' - | 'ledgerUpgradeBaseReserve' - | 'ledgerUpgradeFlags' - | 'ledgerUpgradeConfig' - | 'ledgerUpgradeMaxSorobanTxSetSize'; + | "ledgerUpgradeVersion" + | "ledgerUpgradeBaseFee" + | "ledgerUpgradeMaxTxSetSize" + | "ledgerUpgradeBaseReserve" + | "ledgerUpgradeFlags" + | "ledgerUpgradeConfig" + | "ledgerUpgradeMaxSorobanTxSetSize"; readonly value: 1 | 2 | 3 | 4 | 5 | 6 | 7; @@ -606,7 +527,7 @@ export namespace xdr { } class TxSetComponentType { - readonly name: 'txsetCompTxsMaybeDiscountedFee'; + readonly name: "txsetCompTxsMaybeDiscountedFee"; readonly value: 0; @@ -615,12 +536,13 @@ export namespace xdr { class LedgerEntryChangeType { readonly name: - | 'ledgerEntryCreated' - | 'ledgerEntryUpdated' - | 'ledgerEntryRemoved' - | 'ledgerEntryState'; + | "ledgerEntryCreated" + | "ledgerEntryUpdated" + | "ledgerEntryRemoved" + | "ledgerEntryState" + | "ledgerEntryRestored"; - readonly value: 0 | 1 | 2 | 3; + readonly value: 0 | 1 | 2 | 3 | 4; static ledgerEntryCreated(): LedgerEntryChangeType; @@ -629,10 +551,12 @@ export namespace xdr { static ledgerEntryRemoved(): LedgerEntryChangeType; static ledgerEntryState(): LedgerEntryChangeType; + + static ledgerEntryRestored(): LedgerEntryChangeType; } class ContractEventType { - readonly name: 'system' | 'contract' | 'diagnostic'; + readonly name: "system" | "contract" | "diagnostic"; readonly value: 0 | 1 | 2; @@ -643,8 +567,23 @@ export namespace xdr { static diagnostic(): ContractEventType; } + class TransactionEventStage { + readonly name: + | "transactionEventStageBeforeAllTxes" + | "transactionEventStageAfterTx" + | "transactionEventStageAfterAllTxes"; + + readonly value: 0 | 1 | 2; + + static transactionEventStageBeforeAllTxes(): TransactionEventStage; + + static transactionEventStageAfterTx(): TransactionEventStage; + + static transactionEventStageAfterAllTxes(): TransactionEventStage; + } + class ErrorCode { - readonly name: 'errMisc' | 'errData' | 'errConf' | 'errAuth' | 'errLoad'; + readonly name: "errMisc" | "errData" | "errConf" | "errAuth" | "errLoad"; readonly value: 0 | 1 | 2 | 3 | 4; @@ -660,7 +599,7 @@ export namespace xdr { } class IpAddrType { - readonly name: 'iPv4' | 'iPv6'; + readonly name: "iPv4" | "iPv6"; readonly value: 0 | 1; @@ -671,36 +610,32 @@ export namespace xdr { 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'; + | "errorMsg" + | "auth" + | "dontHave" + | "peers" + | "getTxSet" + | "txSet" + | "generalizedTxSet" + | "transaction" + | "getScpQuorumset" + | "scpQuorumset" + | "scpMessage" + | "getScpState" + | "hello" + | "sendMore" + | "sendMoreExtended" + | "floodAdvert" + | "floodDemand" + | "timeSlicedSurveyRequest" + | "timeSlicedSurveyResponse" + | "timeSlicedSurveyStartCollecting" + | "timeSlicedSurveyStopCollecting"; readonly value: | 0 | 2 | 3 - | 4 | 5 | 6 | 7 @@ -711,8 +646,6 @@ export namespace xdr { | 11 | 12 | 13 - | 14 - | 15 | 16 | 20 | 18 @@ -728,8 +661,6 @@ export namespace xdr { static dontHave(): MessageType; - static getPeers(): MessageType; - static peers(): MessageType; static getTxSet(): MessageType; @@ -750,10 +681,6 @@ export namespace xdr { static hello(): MessageType; - static surveyRequest(): MessageType; - - static surveyResponse(): MessageType; - static sendMore(): MessageType; static sendMoreExtended(): MessageType; @@ -772,59 +699,50 @@ export namespace xdr { } class SurveyMessageCommandType { - readonly name: 'surveyTopology' | 'timeSlicedSurveyTopology'; - - readonly value: 0 | 1; + readonly name: "timeSlicedSurveyTopology"; - static surveyTopology(): SurveyMessageCommandType; + readonly value: 1; static timeSlicedSurveyTopology(): SurveyMessageCommandType; } class SurveyMessageResponseType { - readonly name: - | 'surveyTopologyResponseV0' - | 'surveyTopologyResponseV1' - | 'surveyTopologyResponseV2'; - - readonly value: 0 | 1 | 2; - - static surveyTopologyResponseV0(): SurveyMessageResponseType; + readonly name: "surveyTopologyResponseV2"; - static surveyTopologyResponseV1(): SurveyMessageResponseType; + readonly value: 2; 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'; + | "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 @@ -911,7 +829,7 @@ export namespace xdr { } class RevokeSponsorshipType { - readonly name: 'revokeSponsorshipLedgerEntry' | 'revokeSponsorshipSigner'; + readonly name: "revokeSponsorshipLedgerEntry" | "revokeSponsorshipSigner"; readonly value: 0 | 1; @@ -922,10 +840,10 @@ export namespace xdr { class HostFunctionType { readonly name: - | 'hostFunctionTypeInvokeContract' - | 'hostFunctionTypeCreateContract' - | 'hostFunctionTypeUploadContractWasm' - | 'hostFunctionTypeCreateContractV2'; + | "hostFunctionTypeInvokeContract" + | "hostFunctionTypeCreateContract" + | "hostFunctionTypeUploadContractWasm" + | "hostFunctionTypeCreateContractV2"; readonly value: 0 | 1 | 2 | 3; @@ -940,8 +858,8 @@ export namespace xdr { class ContractIdPreimageType { readonly name: - | 'contractIdPreimageFromAddress' - | 'contractIdPreimageFromAsset'; + | "contractIdPreimageFromAddress" + | "contractIdPreimageFromAsset"; readonly value: 0 | 1; @@ -952,9 +870,9 @@ export namespace xdr { class SorobanAuthorizedFunctionType { readonly name: - | 'sorobanAuthorizedFunctionTypeContractFn' - | 'sorobanAuthorizedFunctionTypeCreateContractHostFn' - | 'sorobanAuthorizedFunctionTypeCreateContractV2HostFn'; + | "sorobanAuthorizedFunctionTypeContractFn" + | "sorobanAuthorizedFunctionTypeCreateContractHostFn" + | "sorobanAuthorizedFunctionTypeCreateContractV2HostFn"; readonly value: 0 | 1 | 2; @@ -967,8 +885,8 @@ export namespace xdr { class SorobanCredentialsType { readonly name: - | 'sorobanCredentialsSourceAccount' - | 'sorobanCredentialsAddress'; + | "sorobanCredentialsSourceAccount" + | "sorobanCredentialsAddress"; readonly value: 0 | 1; @@ -979,11 +897,11 @@ export namespace xdr { class MemoType { readonly name: - | 'memoNone' - | 'memoText' - | 'memoId' - | 'memoHash' - | 'memoReturn'; + | "memoNone" + | "memoText" + | "memoId" + | "memoHash" + | "memoReturn"; readonly value: 0 | 1 | 2 | 3 | 4; @@ -999,7 +917,7 @@ export namespace xdr { } class PreconditionType { - readonly name: 'precondNone' | 'precondTime' | 'precondV2'; + readonly name: "precondNone" | "precondTime" | "precondV2"; readonly value: 0 | 1 | 2; @@ -1010,21 +928,11 @@ export namespace xdr { 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'; + | "claimAtomTypeV0" + | "claimAtomTypeOrderBook" + | "claimAtomTypeLiquidityPool"; readonly value: 0 | 1 | 2; @@ -1037,11 +945,11 @@ export namespace xdr { class CreateAccountResultCode { readonly name: - | 'createAccountSuccess' - | 'createAccountMalformed' - | 'createAccountUnderfunded' - | 'createAccountLowReserve' - | 'createAccountAlreadyExist'; + | "createAccountSuccess" + | "createAccountMalformed" + | "createAccountUnderfunded" + | "createAccountLowReserve" + | "createAccountAlreadyExist"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1058,16 +966,16 @@ export namespace xdr { class PaymentResultCode { readonly name: - | 'paymentSuccess' - | 'paymentMalformed' - | 'paymentUnderfunded' - | 'paymentSrcNoTrust' - | 'paymentSrcNotAuthorized' - | 'paymentNoDestination' - | 'paymentNoTrust' - | 'paymentNotAuthorized' - | 'paymentLineFull' - | 'paymentNoIssuer'; + | "paymentSuccess" + | "paymentMalformed" + | "paymentUnderfunded" + | "paymentSrcNoTrust" + | "paymentSrcNotAuthorized" + | "paymentNoDestination" + | "paymentNoTrust" + | "paymentNotAuthorized" + | "paymentLineFull" + | "paymentNoIssuer"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9; @@ -1094,19 +1002,19 @@ export namespace xdr { class PathPaymentStrictReceiveResultCode { readonly name: - | 'pathPaymentStrictReceiveSuccess' - | 'pathPaymentStrictReceiveMalformed' - | 'pathPaymentStrictReceiveUnderfunded' - | 'pathPaymentStrictReceiveSrcNoTrust' - | 'pathPaymentStrictReceiveSrcNotAuthorized' - | 'pathPaymentStrictReceiveNoDestination' - | 'pathPaymentStrictReceiveNoTrust' - | 'pathPaymentStrictReceiveNotAuthorized' - | 'pathPaymentStrictReceiveLineFull' - | 'pathPaymentStrictReceiveNoIssuer' - | 'pathPaymentStrictReceiveTooFewOffers' - | 'pathPaymentStrictReceiveOfferCrossSelf' - | 'pathPaymentStrictReceiveOverSendmax'; + | "pathPaymentStrictReceiveSuccess" + | "pathPaymentStrictReceiveMalformed" + | "pathPaymentStrictReceiveUnderfunded" + | "pathPaymentStrictReceiveSrcNoTrust" + | "pathPaymentStrictReceiveSrcNotAuthorized" + | "pathPaymentStrictReceiveNoDestination" + | "pathPaymentStrictReceiveNoTrust" + | "pathPaymentStrictReceiveNotAuthorized" + | "pathPaymentStrictReceiveLineFull" + | "pathPaymentStrictReceiveNoIssuer" + | "pathPaymentStrictReceiveTooFewOffers" + | "pathPaymentStrictReceiveOfferCrossSelf" + | "pathPaymentStrictReceiveOverSendmax"; readonly value: | 0 @@ -1152,19 +1060,19 @@ export namespace xdr { class PathPaymentStrictSendResultCode { readonly name: - | 'pathPaymentStrictSendSuccess' - | 'pathPaymentStrictSendMalformed' - | 'pathPaymentStrictSendUnderfunded' - | 'pathPaymentStrictSendSrcNoTrust' - | 'pathPaymentStrictSendSrcNotAuthorized' - | 'pathPaymentStrictSendNoDestination' - | 'pathPaymentStrictSendNoTrust' - | 'pathPaymentStrictSendNotAuthorized' - | 'pathPaymentStrictSendLineFull' - | 'pathPaymentStrictSendNoIssuer' - | 'pathPaymentStrictSendTooFewOffers' - | 'pathPaymentStrictSendOfferCrossSelf' - | 'pathPaymentStrictSendUnderDestmin'; + | "pathPaymentStrictSendSuccess" + | "pathPaymentStrictSendMalformed" + | "pathPaymentStrictSendUnderfunded" + | "pathPaymentStrictSendSrcNoTrust" + | "pathPaymentStrictSendSrcNotAuthorized" + | "pathPaymentStrictSendNoDestination" + | "pathPaymentStrictSendNoTrust" + | "pathPaymentStrictSendNotAuthorized" + | "pathPaymentStrictSendLineFull" + | "pathPaymentStrictSendNoIssuer" + | "pathPaymentStrictSendTooFewOffers" + | "pathPaymentStrictSendOfferCrossSelf" + | "pathPaymentStrictSendUnderDestmin"; readonly value: | 0 @@ -1210,19 +1118,19 @@ export namespace xdr { class ManageSellOfferResultCode { readonly name: - | 'manageSellOfferSuccess' - | 'manageSellOfferMalformed' - | 'manageSellOfferSellNoTrust' - | 'manageSellOfferBuyNoTrust' - | 'manageSellOfferSellNotAuthorized' - | 'manageSellOfferBuyNotAuthorized' - | 'manageSellOfferLineFull' - | 'manageSellOfferUnderfunded' - | 'manageSellOfferCrossSelf' - | 'manageSellOfferSellNoIssuer' - | 'manageSellOfferBuyNoIssuer' - | 'manageSellOfferNotFound' - | 'manageSellOfferLowReserve'; + | "manageSellOfferSuccess" + | "manageSellOfferMalformed" + | "manageSellOfferSellNoTrust" + | "manageSellOfferBuyNoTrust" + | "manageSellOfferSellNotAuthorized" + | "manageSellOfferBuyNotAuthorized" + | "manageSellOfferLineFull" + | "manageSellOfferUnderfunded" + | "manageSellOfferCrossSelf" + | "manageSellOfferSellNoIssuer" + | "manageSellOfferBuyNoIssuer" + | "manageSellOfferNotFound" + | "manageSellOfferLowReserve"; readonly value: | 0 @@ -1268,9 +1176,9 @@ export namespace xdr { class ManageOfferEffect { readonly name: - | 'manageOfferCreated' - | 'manageOfferUpdated' - | 'manageOfferDeleted'; + | "manageOfferCreated" + | "manageOfferUpdated" + | "manageOfferDeleted"; readonly value: 0 | 1 | 2; @@ -1283,19 +1191,19 @@ export namespace xdr { class ManageBuyOfferResultCode { readonly name: - | 'manageBuyOfferSuccess' - | 'manageBuyOfferMalformed' - | 'manageBuyOfferSellNoTrust' - | 'manageBuyOfferBuyNoTrust' - | 'manageBuyOfferSellNotAuthorized' - | 'manageBuyOfferBuyNotAuthorized' - | 'manageBuyOfferLineFull' - | 'manageBuyOfferUnderfunded' - | 'manageBuyOfferCrossSelf' - | 'manageBuyOfferSellNoIssuer' - | 'manageBuyOfferBuyNoIssuer' - | 'manageBuyOfferNotFound' - | 'manageBuyOfferLowReserve'; + | "manageBuyOfferSuccess" + | "manageBuyOfferMalformed" + | "manageBuyOfferSellNoTrust" + | "manageBuyOfferBuyNoTrust" + | "manageBuyOfferSellNotAuthorized" + | "manageBuyOfferBuyNotAuthorized" + | "manageBuyOfferLineFull" + | "manageBuyOfferUnderfunded" + | "manageBuyOfferCrossSelf" + | "manageBuyOfferSellNoIssuer" + | "manageBuyOfferBuyNoIssuer" + | "manageBuyOfferNotFound" + | "manageBuyOfferLowReserve"; readonly value: | 0 @@ -1341,17 +1249,17 @@ export namespace xdr { class SetOptionsResultCode { readonly name: - | 'setOptionsSuccess' - | 'setOptionsLowReserve' - | 'setOptionsTooManySigners' - | 'setOptionsBadFlags' - | 'setOptionsInvalidInflation' - | 'setOptionsCantChange' - | 'setOptionsUnknownFlag' - | 'setOptionsThresholdOutOfRange' - | 'setOptionsBadSigner' - | 'setOptionsInvalidHomeDomain' - | 'setOptionsAuthRevocableRequired'; + | "setOptionsSuccess" + | "setOptionsLowReserve" + | "setOptionsTooManySigners" + | "setOptionsBadFlags" + | "setOptionsInvalidInflation" + | "setOptionsCantChange" + | "setOptionsUnknownFlag" + | "setOptionsThresholdOutOfRange" + | "setOptionsBadSigner" + | "setOptionsInvalidHomeDomain" + | "setOptionsAuthRevocableRequired"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -10; @@ -1380,15 +1288,15 @@ export namespace xdr { class ChangeTrustResultCode { readonly name: - | 'changeTrustSuccess' - | 'changeTrustMalformed' - | 'changeTrustNoIssuer' - | 'changeTrustInvalidLimit' - | 'changeTrustLowReserve' - | 'changeTrustSelfNotAllowed' - | 'changeTrustTrustLineMissing' - | 'changeTrustCannotDelete' - | 'changeTrustNotAuthMaintainLiabilities'; + | "changeTrustSuccess" + | "changeTrustMalformed" + | "changeTrustNoIssuer" + | "changeTrustInvalidLimit" + | "changeTrustLowReserve" + | "changeTrustSelfNotAllowed" + | "changeTrustTrustLineMissing" + | "changeTrustCannotDelete" + | "changeTrustNotAuthMaintainLiabilities"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8; @@ -1413,13 +1321,13 @@ export namespace xdr { class AllowTrustResultCode { readonly name: - | 'allowTrustSuccess' - | 'allowTrustMalformed' - | 'allowTrustNoTrustLine' - | 'allowTrustTrustNotRequired' - | 'allowTrustCantRevoke' - | 'allowTrustSelfNotAllowed' - | 'allowTrustLowReserve'; + | "allowTrustSuccess" + | "allowTrustMalformed" + | "allowTrustNoTrustLine" + | "allowTrustTrustNotRequired" + | "allowTrustCantRevoke" + | "allowTrustSelfNotAllowed" + | "allowTrustLowReserve"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1440,14 +1348,14 @@ export namespace xdr { class AccountMergeResultCode { readonly name: - | 'accountMergeSuccess' - | 'accountMergeMalformed' - | 'accountMergeNoAccount' - | 'accountMergeImmutableSet' - | 'accountMergeHasSubEntries' - | 'accountMergeSeqnumTooFar' - | 'accountMergeDestFull' - | 'accountMergeIsSponsor'; + | "accountMergeSuccess" + | "accountMergeMalformed" + | "accountMergeNoAccount" + | "accountMergeImmutableSet" + | "accountMergeHasSubEntries" + | "accountMergeSeqnumTooFar" + | "accountMergeDestFull" + | "accountMergeIsSponsor"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1469,7 +1377,7 @@ export namespace xdr { } class InflationResultCode { - readonly name: 'inflationSuccess' | 'inflationNotTime'; + readonly name: "inflationSuccess" | "inflationNotTime"; readonly value: 0 | -1; @@ -1480,11 +1388,11 @@ export namespace xdr { class ManageDataResultCode { readonly name: - | 'manageDataSuccess' - | 'manageDataNotSupportedYet' - | 'manageDataNameNotFound' - | 'manageDataLowReserve' - | 'manageDataInvalidName'; + | "manageDataSuccess" + | "manageDataNotSupportedYet" + | "manageDataNameNotFound" + | "manageDataLowReserve" + | "manageDataInvalidName"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1500,7 +1408,7 @@ export namespace xdr { } class BumpSequenceResultCode { - readonly name: 'bumpSequenceSuccess' | 'bumpSequenceBadSeq'; + readonly name: "bumpSequenceSuccess" | "bumpSequenceBadSeq"; readonly value: 0 | -1; @@ -1511,12 +1419,12 @@ export namespace xdr { class CreateClaimableBalanceResultCode { readonly name: - | 'createClaimableBalanceSuccess' - | 'createClaimableBalanceMalformed' - | 'createClaimableBalanceLowReserve' - | 'createClaimableBalanceNoTrust' - | 'createClaimableBalanceNotAuthorized' - | 'createClaimableBalanceUnderfunded'; + | "createClaimableBalanceSuccess" + | "createClaimableBalanceMalformed" + | "createClaimableBalanceLowReserve" + | "createClaimableBalanceNoTrust" + | "createClaimableBalanceNotAuthorized" + | "createClaimableBalanceUnderfunded"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1535,12 +1443,12 @@ export namespace xdr { class ClaimClaimableBalanceResultCode { readonly name: - | 'claimClaimableBalanceSuccess' - | 'claimClaimableBalanceDoesNotExist' - | 'claimClaimableBalanceCannotClaim' - | 'claimClaimableBalanceLineFull' - | 'claimClaimableBalanceNoTrust' - | 'claimClaimableBalanceNotAuthorized'; + | "claimClaimableBalanceSuccess" + | "claimClaimableBalanceDoesNotExist" + | "claimClaimableBalanceCannotClaim" + | "claimClaimableBalanceLineFull" + | "claimClaimableBalanceNoTrust" + | "claimClaimableBalanceNotAuthorized"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1559,10 +1467,10 @@ export namespace xdr { class BeginSponsoringFutureReservesResultCode { readonly name: - | 'beginSponsoringFutureReservesSuccess' - | 'beginSponsoringFutureReservesMalformed' - | 'beginSponsoringFutureReservesAlreadySponsored' - | 'beginSponsoringFutureReservesRecursive'; + | "beginSponsoringFutureReservesSuccess" + | "beginSponsoringFutureReservesMalformed" + | "beginSponsoringFutureReservesAlreadySponsored" + | "beginSponsoringFutureReservesRecursive"; readonly value: 0 | -1 | -2 | -3; @@ -1577,8 +1485,8 @@ export namespace xdr { class EndSponsoringFutureReservesResultCode { readonly name: - | 'endSponsoringFutureReservesSuccess' - | 'endSponsoringFutureReservesNotSponsored'; + | "endSponsoringFutureReservesSuccess" + | "endSponsoringFutureReservesNotSponsored"; readonly value: 0 | -1; @@ -1589,12 +1497,12 @@ export namespace xdr { class RevokeSponsorshipResultCode { readonly name: - | 'revokeSponsorshipSuccess' - | 'revokeSponsorshipDoesNotExist' - | 'revokeSponsorshipNotSponsor' - | 'revokeSponsorshipLowReserve' - | 'revokeSponsorshipOnlyTransferable' - | 'revokeSponsorshipMalformed'; + | "revokeSponsorshipSuccess" + | "revokeSponsorshipDoesNotExist" + | "revokeSponsorshipNotSponsor" + | "revokeSponsorshipLowReserve" + | "revokeSponsorshipOnlyTransferable" + | "revokeSponsorshipMalformed"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1613,11 +1521,11 @@ export namespace xdr { class ClawbackResultCode { readonly name: - | 'clawbackSuccess' - | 'clawbackMalformed' - | 'clawbackNotClawbackEnabled' - | 'clawbackNoTrust' - | 'clawbackUnderfunded'; + | "clawbackSuccess" + | "clawbackMalformed" + | "clawbackNotClawbackEnabled" + | "clawbackNoTrust" + | "clawbackUnderfunded"; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1634,10 +1542,10 @@ export namespace xdr { class ClawbackClaimableBalanceResultCode { readonly name: - | 'clawbackClaimableBalanceSuccess' - | 'clawbackClaimableBalanceDoesNotExist' - | 'clawbackClaimableBalanceNotIssuer' - | 'clawbackClaimableBalanceNotClawbackEnabled'; + | "clawbackClaimableBalanceSuccess" + | "clawbackClaimableBalanceDoesNotExist" + | "clawbackClaimableBalanceNotIssuer" + | "clawbackClaimableBalanceNotClawbackEnabled"; readonly value: 0 | -1 | -2 | -3; @@ -1652,12 +1560,12 @@ export namespace xdr { class SetTrustLineFlagsResultCode { readonly name: - | 'setTrustLineFlagsSuccess' - | 'setTrustLineFlagsMalformed' - | 'setTrustLineFlagsNoTrustLine' - | 'setTrustLineFlagsCantRevoke' - | 'setTrustLineFlagsInvalidState' - | 'setTrustLineFlagsLowReserve'; + | "setTrustLineFlagsSuccess" + | "setTrustLineFlagsMalformed" + | "setTrustLineFlagsNoTrustLine" + | "setTrustLineFlagsCantRevoke" + | "setTrustLineFlagsInvalidState" + | "setTrustLineFlagsLowReserve"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1676,14 +1584,14 @@ export namespace xdr { class LiquidityPoolDepositResultCode { readonly name: - | 'liquidityPoolDepositSuccess' - | 'liquidityPoolDepositMalformed' - | 'liquidityPoolDepositNoTrust' - | 'liquidityPoolDepositNotAuthorized' - | 'liquidityPoolDepositUnderfunded' - | 'liquidityPoolDepositLineFull' - | 'liquidityPoolDepositBadPrice' - | 'liquidityPoolDepositPoolFull'; + | "liquidityPoolDepositSuccess" + | "liquidityPoolDepositMalformed" + | "liquidityPoolDepositNoTrust" + | "liquidityPoolDepositNotAuthorized" + | "liquidityPoolDepositUnderfunded" + | "liquidityPoolDepositLineFull" + | "liquidityPoolDepositBadPrice" + | "liquidityPoolDepositPoolFull"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1706,12 +1614,12 @@ export namespace xdr { class LiquidityPoolWithdrawResultCode { readonly name: - | 'liquidityPoolWithdrawSuccess' - | 'liquidityPoolWithdrawMalformed' - | 'liquidityPoolWithdrawNoTrust' - | 'liquidityPoolWithdrawUnderfunded' - | 'liquidityPoolWithdrawLineFull' - | 'liquidityPoolWithdrawUnderMinimum'; + | "liquidityPoolWithdrawSuccess" + | "liquidityPoolWithdrawMalformed" + | "liquidityPoolWithdrawNoTrust" + | "liquidityPoolWithdrawUnderfunded" + | "liquidityPoolWithdrawLineFull" + | "liquidityPoolWithdrawUnderMinimum"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1730,12 +1638,12 @@ export namespace xdr { class InvokeHostFunctionResultCode { readonly name: - | 'invokeHostFunctionSuccess' - | 'invokeHostFunctionMalformed' - | 'invokeHostFunctionTrapped' - | 'invokeHostFunctionResourceLimitExceeded' - | 'invokeHostFunctionEntryArchived' - | 'invokeHostFunctionInsufficientRefundableFee'; + | "invokeHostFunctionSuccess" + | "invokeHostFunctionMalformed" + | "invokeHostFunctionTrapped" + | "invokeHostFunctionResourceLimitExceeded" + | "invokeHostFunctionEntryArchived" + | "invokeHostFunctionInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1754,10 +1662,10 @@ export namespace xdr { class ExtendFootprintTtlResultCode { readonly name: - | 'extendFootprintTtlSuccess' - | 'extendFootprintTtlMalformed' - | 'extendFootprintTtlResourceLimitExceeded' - | 'extendFootprintTtlInsufficientRefundableFee'; + | "extendFootprintTtlSuccess" + | "extendFootprintTtlMalformed" + | "extendFootprintTtlResourceLimitExceeded" + | "extendFootprintTtlInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3; @@ -1772,10 +1680,10 @@ export namespace xdr { class RestoreFootprintResultCode { readonly name: - | 'restoreFootprintSuccess' - | 'restoreFootprintMalformed' - | 'restoreFootprintResourceLimitExceeded' - | 'restoreFootprintInsufficientRefundableFee'; + | "restoreFootprintSuccess" + | "restoreFootprintMalformed" + | "restoreFootprintResourceLimitExceeded" + | "restoreFootprintInsufficientRefundableFee"; readonly value: 0 | -1 | -2 | -3; @@ -1790,13 +1698,13 @@ export namespace xdr { class OperationResultCode { readonly name: - | 'opInner' - | 'opBadAuth' - | 'opNoAccount' - | 'opNotSupported' - | 'opTooManySubentries' - | 'opExceededWorkLimit' - | 'opTooManySponsoring'; + | "opInner" + | "opBadAuth" + | "opNoAccount" + | "opNotSupported" + | "opTooManySubentries" + | "opExceededWorkLimit" + | "opTooManySponsoring"; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1817,25 +1725,25 @@ export namespace xdr { class TransactionResultCode { readonly name: - | 'txFeeBumpInnerSuccess' - | 'txSuccess' - | 'txFailed' - | 'txTooEarly' - | 'txTooLate' - | 'txMissingOperation' - | 'txBadSeq' - | 'txBadAuth' - | 'txInsufficientBalance' - | 'txNoAccount' - | 'txInsufficientFee' - | 'txBadAuthExtra' - | 'txInternalError' - | 'txNotSupported' - | 'txFeeBumpInnerFailed' - | 'txBadSponsorship' - | 'txBadMinSeqAgeOrGap' - | 'txMalformed' - | 'txSorobanInvalid'; + | "txFeeBumpInnerSuccess" + | "txSuccess" + | "txFailed" + | "txTooEarly" + | "txTooLate" + | "txMissingOperation" + | "txBadSeq" + | "txBadAuth" + | "txInsufficientBalance" + | "txNoAccount" + | "txInsufficientFee" + | "txBadAuthExtra" + | "txInternalError" + | "txNotSupported" + | "txFeeBumpInnerFailed" + | "txBadSponsorship" + | "txBadMinSeqAgeOrGap" + | "txMalformed" + | "txSorobanInvalid"; readonly value: | 1 @@ -1899,11 +1807,11 @@ export namespace xdr { class CryptoKeyType { readonly name: - | 'keyTypeEd25519' - | 'keyTypePreAuthTx' - | 'keyTypeHashX' - | 'keyTypeEd25519SignedPayload' - | 'keyTypeMuxedEd25519'; + | "keyTypeEd25519" + | "keyTypePreAuthTx" + | "keyTypeHashX" + | "keyTypeEd25519SignedPayload" + | "keyTypeMuxedEd25519"; readonly value: 0 | 1 | 2 | 3 | 256; @@ -1919,7 +1827,7 @@ export namespace xdr { } class PublicKeyType { - readonly name: 'publicKeyTypeEd25519'; + readonly name: "publicKeyTypeEd25519"; readonly value: 0; @@ -1928,10 +1836,10 @@ export namespace xdr { class SignerKeyType { readonly name: - | 'signerKeyTypeEd25519' - | 'signerKeyTypePreAuthTx' - | 'signerKeyTypeHashX' - | 'signerKeyTypeEd25519SignedPayload'; + | "signerKeyTypeEd25519" + | "signerKeyTypePreAuthTx" + | "signerKeyTypeHashX" + | "signerKeyTypeEd25519SignedPayload"; readonly value: 0 | 1 | 2 | 3; @@ -1946,9 +1854,9 @@ export namespace xdr { class BinaryFuseFilterType { readonly name: - | 'binaryFuseFilter8Bit' - | 'binaryFuseFilter16Bit' - | 'binaryFuseFilter32Bit'; + | "binaryFuseFilter8Bit" + | "binaryFuseFilter16Bit" + | "binaryFuseFilter32Bit"; readonly value: 0 | 1 | 2; @@ -1959,30 +1867,38 @@ export namespace xdr { static binaryFuseFilter32Bit(): BinaryFuseFilterType; } + class ClaimableBalanceIdType { + readonly name: "claimableBalanceIdTypeV0"; + + readonly value: 0; + + static claimableBalanceIdTypeV0(): ClaimableBalanceIdType; + } + class ScValType { readonly name: - | 'scvBool' - | 'scvVoid' - | 'scvError' - | 'scvU32' - | 'scvI32' - | 'scvU64' - | 'scvI64' - | 'scvTimepoint' - | 'scvDuration' - | 'scvU128' - | 'scvI128' - | 'scvU256' - | 'scvI256' - | 'scvBytes' - | 'scvString' - | 'scvSymbol' - | 'scvVec' - | 'scvMap' - | 'scvAddress' - | 'scvContractInstance' - | 'scvLedgerKeyContractInstance' - | 'scvLedgerKeyNonce'; + | "scvBool" + | "scvVoid" + | "scvError" + | "scvU32" + | "scvI32" + | "scvU64" + | "scvI64" + | "scvTimepoint" + | "scvDuration" + | "scvU128" + | "scvI128" + | "scvU256" + | "scvI256" + | "scvBytes" + | "scvString" + | "scvSymbol" + | "scvVec" + | "scvMap" + | "scvAddress" + | "scvContractInstance" + | "scvLedgerKeyContractInstance" + | "scvLedgerKeyNonce"; readonly value: | 0 @@ -2055,16 +1971,16 @@ export namespace xdr { class ScErrorType { readonly name: - | 'sceContract' - | 'sceWasmVm' - | 'sceContext' - | 'sceStorage' - | 'sceObject' - | 'sceCrypto' - | 'sceEvents' - | 'sceBudget' - | 'sceValue' - | 'sceAuth'; + | "sceContract" + | "sceWasmVm" + | "sceContext" + | "sceStorage" + | "sceObject" + | "sceCrypto" + | "sceEvents" + | "sceBudget" + | "sceValue" + | "sceAuth"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2091,16 +2007,16 @@ export namespace xdr { class ScErrorCode { readonly name: - | 'scecArithDomain' - | 'scecIndexBounds' - | 'scecInvalidInput' - | 'scecMissingValue' - | 'scecExistingValue' - | 'scecExceededLimit' - | 'scecInvalidAction' - | 'scecInternalError' - | 'scecUnexpectedType' - | 'scecUnexpectedSize'; + | "scecArithDomain" + | "scecIndexBounds" + | "scecInvalidInput" + | "scecMissingValue" + | "scecExistingValue" + | "scecExceededLimit" + | "scecInvalidAction" + | "scecInternalError" + | "scecUnexpectedType" + | "scecUnexpectedSize"; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2126,7 +2042,7 @@ export namespace xdr { } class ContractExecutableType { - readonly name: 'contractExecutableWasm' | 'contractExecutableStellarAsset'; + readonly name: "contractExecutableWasm" | "contractExecutableStellarAsset"; readonly value: 0 | 1; @@ -2136,17 +2052,28 @@ export namespace xdr { } class ScAddressType { - readonly name: 'scAddressTypeAccount' | 'scAddressTypeContract'; + readonly name: + | "scAddressTypeAccount" + | "scAddressTypeContract" + | "scAddressTypeMuxedAccount" + | "scAddressTypeClaimableBalance" + | "scAddressTypeLiquidityPool"; - readonly value: 0 | 1; + readonly value: 0 | 1 | 2 | 3 | 4; static scAddressTypeAccount(): ScAddressType; static scAddressTypeContract(): ScAddressType; + + static scAddressTypeMuxedAccount(): ScAddressType; + + static scAddressTypeClaimableBalance(): ScAddressType; + + static scAddressTypeLiquidityPool(): ScAddressType; } class ScEnvMetaKind { - readonly name: 'scEnvMetaKindInterfaceVersion'; + readonly name: "scEnvMetaKindInterfaceVersion"; readonly value: 0; @@ -2154,7 +2081,7 @@ export namespace xdr { } class ScMetaKind { - readonly name: 'scMetaV0'; + readonly name: "scMetaV0"; readonly value: 0; @@ -2163,31 +2090,32 @@ export namespace xdr { class ScSpecType { readonly name: - | 'scSpecTypeVal' - | 'scSpecTypeBool' - | 'scSpecTypeVoid' - | 'scSpecTypeError' - | 'scSpecTypeU32' - | 'scSpecTypeI32' - | 'scSpecTypeU64' - | 'scSpecTypeI64' - | 'scSpecTypeTimepoint' - | 'scSpecTypeDuration' - | 'scSpecTypeU128' - | 'scSpecTypeI128' - | 'scSpecTypeU256' - | 'scSpecTypeI256' - | 'scSpecTypeBytes' - | 'scSpecTypeString' - | 'scSpecTypeSymbol' - | 'scSpecTypeAddress' - | 'scSpecTypeOption' - | 'scSpecTypeResult' - | 'scSpecTypeVec' - | 'scSpecTypeMap' - | 'scSpecTypeTuple' - | 'scSpecTypeBytesN' - | 'scSpecTypeUdt'; + | "scSpecTypeVal" + | "scSpecTypeBool" + | "scSpecTypeVoid" + | "scSpecTypeError" + | "scSpecTypeU32" + | "scSpecTypeI32" + | "scSpecTypeU64" + | "scSpecTypeI64" + | "scSpecTypeTimepoint" + | "scSpecTypeDuration" + | "scSpecTypeU128" + | "scSpecTypeI128" + | "scSpecTypeU256" + | "scSpecTypeI256" + | "scSpecTypeBytes" + | "scSpecTypeString" + | "scSpecTypeSymbol" + | "scSpecTypeAddress" + | "scSpecTypeMuxedAddress" + | "scSpecTypeOption" + | "scSpecTypeResult" + | "scSpecTypeVec" + | "scSpecTypeMap" + | "scSpecTypeTuple" + | "scSpecTypeBytesN" + | "scSpecTypeUdt"; readonly value: | 0 @@ -2208,6 +2136,7 @@ export namespace xdr { | 16 | 17 | 19 + | 20 | 1000 | 1001 | 1002 @@ -2252,6 +2181,8 @@ export namespace xdr { static scSpecTypeAddress(): ScSpecType; + static scSpecTypeMuxedAddress(): ScSpecType; + static scSpecTypeOption(): ScSpecType; static scSpecTypeResult(): ScSpecType; @@ -2268,7 +2199,7 @@ export namespace xdr { } class ScSpecUdtUnionCaseV0Kind { - readonly name: 'scSpecUdtUnionCaseVoidV0' | 'scSpecUdtUnionCaseTupleV0'; + readonly name: "scSpecUdtUnionCaseVoidV0" | "scSpecUdtUnionCaseTupleV0"; readonly value: 0 | 1; @@ -2277,15 +2208,43 @@ export namespace xdr { static scSpecUdtUnionCaseTupleV0(): ScSpecUdtUnionCaseV0Kind; } + class ScSpecEventParamLocationV0 { + readonly name: + | "scSpecEventParamLocationData" + | "scSpecEventParamLocationTopicList"; + + readonly value: 0 | 1; + + static scSpecEventParamLocationData(): ScSpecEventParamLocationV0; + + static scSpecEventParamLocationTopicList(): ScSpecEventParamLocationV0; + } + + class ScSpecEventDataFormat { + readonly name: + | "scSpecEventDataFormatSingleValue" + | "scSpecEventDataFormatVec" + | "scSpecEventDataFormatMap"; + + readonly value: 0 | 1 | 2; + + static scSpecEventDataFormatSingleValue(): ScSpecEventDataFormat; + + static scSpecEventDataFormatVec(): ScSpecEventDataFormat; + + static scSpecEventDataFormatMap(): ScSpecEventDataFormat; + } + class ScSpecEntryKind { readonly name: - | 'scSpecEntryFunctionV0' - | 'scSpecEntryUdtStructV0' - | 'scSpecEntryUdtUnionV0' - | 'scSpecEntryUdtEnumV0' - | 'scSpecEntryUdtErrorEnumV0'; + | "scSpecEntryFunctionV0" + | "scSpecEntryUdtStructV0" + | "scSpecEntryUdtUnionV0" + | "scSpecEntryUdtEnumV0" + | "scSpecEntryUdtErrorEnumV0" + | "scSpecEntryEventV0"; - readonly value: 0 | 1 | 2 | 3 | 4; + readonly value: 0 | 1 | 2 | 3 | 4 | 5; static scSpecEntryFunctionV0(): ScSpecEntryKind; @@ -2296,80 +2255,82 @@ export namespace xdr { static scSpecEntryUdtEnumV0(): ScSpecEntryKind; static scSpecEntryUdtErrorEnumV0(): ScSpecEntryKind; + + static scSpecEntryEventV0(): ScSpecEntryKind; } class ContractCostType { readonly name: - | 'wasmInsnExec' - | 'memAlloc' - | 'memCpy' - | 'memCmp' - | 'dispatchHostFunction' - | 'visitObject' - | 'valSer' - | 'valDeser' - | 'computeSha256Hash' - | 'computeEd25519PubKey' - | 'verifyEd25519Sig' - | 'vmInstantiation' - | 'vmCachedInstantiation' - | 'invokeVmFunction' - | 'computeKeccak256Hash' - | 'decodeEcdsaCurve256Sig' - | 'recoverEcdsaSecp256k1Key' - | 'int256AddSub' - | 'int256Mul' - | 'int256Div' - | 'int256Pow' - | 'int256Shift' - | 'chaCha20DrawBytes' - | 'parseWasmInstructions' - | 'parseWasmFunctions' - | 'parseWasmGlobals' - | 'parseWasmTableEntries' - | 'parseWasmTypes' - | 'parseWasmDataSegments' - | 'parseWasmElemSegments' - | 'parseWasmImports' - | 'parseWasmExports' - | 'parseWasmDataSegmentBytes' - | 'instantiateWasmInstructions' - | 'instantiateWasmFunctions' - | 'instantiateWasmGlobals' - | 'instantiateWasmTableEntries' - | 'instantiateWasmTypes' - | 'instantiateWasmDataSegments' - | 'instantiateWasmElemSegments' - | 'instantiateWasmImports' - | 'instantiateWasmExports' - | 'instantiateWasmDataSegmentBytes' - | 'sec1DecodePointUncompressed' - | 'verifyEcdsaSecp256r1Sig' - | 'bls12381EncodeFp' - | 'bls12381DecodeFp' - | 'bls12381G1CheckPointOnCurve' - | 'bls12381G1CheckPointInSubgroup' - | 'bls12381G2CheckPointOnCurve' - | 'bls12381G2CheckPointInSubgroup' - | 'bls12381G1ProjectiveToAffine' - | 'bls12381G2ProjectiveToAffine' - | 'bls12381G1Add' - | 'bls12381G1Mul' - | 'bls12381G1Msm' - | 'bls12381MapFpToG1' - | 'bls12381HashToG1' - | 'bls12381G2Add' - | 'bls12381G2Mul' - | 'bls12381G2Msm' - | 'bls12381MapFp2ToG2' - | 'bls12381HashToG2' - | 'bls12381Pairing' - | 'bls12381FrFromU256' - | 'bls12381FrToU256' - | 'bls12381FrAddSub' - | 'bls12381FrMul' - | 'bls12381FrPow' - | 'bls12381FrInv'; + | "wasmInsnExec" + | "memAlloc" + | "memCpy" + | "memCmp" + | "dispatchHostFunction" + | "visitObject" + | "valSer" + | "valDeser" + | "computeSha256Hash" + | "computeEd25519PubKey" + | "verifyEd25519Sig" + | "vmInstantiation" + | "vmCachedInstantiation" + | "invokeVmFunction" + | "computeKeccak256Hash" + | "decodeEcdsaCurve256Sig" + | "recoverEcdsaSecp256k1Key" + | "int256AddSub" + | "int256Mul" + | "int256Div" + | "int256Pow" + | "int256Shift" + | "chaCha20DrawBytes" + | "parseWasmInstructions" + | "parseWasmFunctions" + | "parseWasmGlobals" + | "parseWasmTableEntries" + | "parseWasmTypes" + | "parseWasmDataSegments" + | "parseWasmElemSegments" + | "parseWasmImports" + | "parseWasmExports" + | "parseWasmDataSegmentBytes" + | "instantiateWasmInstructions" + | "instantiateWasmFunctions" + | "instantiateWasmGlobals" + | "instantiateWasmTableEntries" + | "instantiateWasmTypes" + | "instantiateWasmDataSegments" + | "instantiateWasmElemSegments" + | "instantiateWasmImports" + | "instantiateWasmExports" + | "instantiateWasmDataSegmentBytes" + | "sec1DecodePointUncompressed" + | "verifyEcdsaSecp256r1Sig" + | "bls12381EncodeFp" + | "bls12381DecodeFp" + | "bls12381G1CheckPointOnCurve" + | "bls12381G1CheckPointInSubgroup" + | "bls12381G2CheckPointOnCurve" + | "bls12381G2CheckPointInSubgroup" + | "bls12381G1ProjectiveToAffine" + | "bls12381G2ProjectiveToAffine" + | "bls12381G1Add" + | "bls12381G1Mul" + | "bls12381G1Msm" + | "bls12381MapFpToG1" + | "bls12381HashToG1" + | "bls12381G2Add" + | "bls12381G2Mul" + | "bls12381G2Msm" + | "bls12381MapFp2ToG2" + | "bls12381HashToG2" + | "bls12381Pairing" + | "bls12381FrFromU256" + | "bls12381FrToU256" + | "bls12381FrAddSub" + | "bls12381FrMul" + | "bls12381FrPow" + | "bls12381FrInv"; readonly value: | 0 @@ -2586,21 +2547,23 @@ export namespace xdr { class ConfigSettingId { readonly name: - | 'configSettingContractMaxSizeBytes' - | 'configSettingContractComputeV0' - | 'configSettingContractLedgerCostV0' - | 'configSettingContractHistoricalDataV0' - | 'configSettingContractEventsV0' - | 'configSettingContractBandwidthV0' - | 'configSettingContractCostParamsCpuInstructions' - | 'configSettingContractCostParamsMemoryBytes' - | 'configSettingContractDataKeySizeBytes' - | 'configSettingContractDataEntrySizeBytes' - | 'configSettingStateArchival' - | 'configSettingContractExecutionLanes' - | 'configSettingBucketlistSizeWindow' - | 'configSettingEvictionIterator' - | 'configSettingContractParallelComputeV0'; + | "configSettingContractMaxSizeBytes" + | "configSettingContractComputeV0" + | "configSettingContractLedgerCostV0" + | "configSettingContractHistoricalDataV0" + | "configSettingContractEventsV0" + | "configSettingContractBandwidthV0" + | "configSettingContractCostParamsCpuInstructions" + | "configSettingContractCostParamsMemoryBytes" + | "configSettingContractDataKeySizeBytes" + | "configSettingContractDataEntrySizeBytes" + | "configSettingStateArchival" + | "configSettingContractExecutionLanes" + | "configSettingLiveSorobanStateSizeWindow" + | "configSettingEvictionIterator" + | "configSettingContractParallelComputeV0" + | "configSettingContractLedgerCostExtV0" + | "configSettingScpTiming"; readonly value: | 0 @@ -2617,7 +2580,9 @@ export namespace xdr { | 11 | 12 | 13 - | 14; + | 14 + | 15 + | 16; static configSettingContractMaxSizeBytes(): ConfigSettingId; @@ -2643,11 +2608,15 @@ export namespace xdr { static configSettingContractExecutionLanes(): ConfigSettingId; - static configSettingBucketlistSizeWindow(): ConfigSettingId; + static configSettingLiveSorobanStateSizeWindow(): ConfigSettingId; static configSettingEvictionIterator(): ConfigSettingId; static configSettingContractParallelComputeV0(): ConfigSettingId; + + static configSettingContractLedgerCostExtV0(): ConfigSettingId; + + static configSettingScpTiming(): ConfigSettingId; } const Value: VarOpaque; @@ -2662,8 +2631,6 @@ export namespace xdr { const DataValue: VarOpaque; - type PoolId = Hash; - const AssetCode4: Opaque; const AssetCode12: Opaque; @@ -2672,7 +2639,7 @@ export namespace xdr { const UpgradeType: VarOpaque; - const TxExecutionThread: XDRArray; + const DependentTxCluster: XDRArray; const ParallelTxExecutionStage: XDRArray; @@ -2680,15 +2647,13 @@ export namespace xdr { const EncryptedBody: VarOpaque; - const PeerStatList: XDRArray; - const TimeSlicedPeerDataList: XDRArray; const TxAdvertVector: XDRArray; const TxDemandVector: XDRArray; - const ProofLevel: XDRArray; + const SorobanAuthorizationEntries: XDRArray; const Hash: Opaque; @@ -2714,6 +2679,10 @@ export namespace xdr { type AccountId = PublicKey; + type ContractId = Hash; + + type PoolId = Hash; + const ScVec: XDRArray; const ScMap: XDRArray; @@ -2733,9 +2702,9 @@ export namespace xdr { value(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpBallot; @@ -2745,13 +2714,13 @@ export namespace xdr { static toXDR(value: ScpBallot): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpBallot; + static fromXDR(input: Buffer, format?: "raw"): ScpBallot; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpBallot; + static fromXDR(input: string, format: "hex" | "base64"): ScpBallot; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpNomination { @@ -2767,9 +2736,9 @@ export namespace xdr { accepted(value?: Buffer[]): Buffer[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpNomination; @@ -2779,13 +2748,13 @@ export namespace xdr { static toXDR(value: ScpNomination): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpNomination; + static fromXDR(input: Buffer, format?: "raw"): ScpNomination; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpNomination; + static fromXDR(input: string, format: "hex" | "base64"): ScpNomination; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementPrepare { @@ -2810,9 +2779,9 @@ export namespace xdr { nH(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementPrepare; @@ -2822,16 +2791,16 @@ export namespace xdr { static toXDR(value: ScpStatementPrepare): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPrepare; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementPrepare; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementPrepare; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementConfirm { @@ -2853,9 +2822,9 @@ export namespace xdr { quorumSetHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementConfirm; @@ -2865,16 +2834,16 @@ export namespace xdr { static toXDR(value: ScpStatementConfirm): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementConfirm; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementConfirm; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementConfirm; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementExternalize { @@ -2890,9 +2859,9 @@ export namespace xdr { commitQuorumSetHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementExternalize; @@ -2902,16 +2871,16 @@ export namespace xdr { static toXDR(value: ScpStatementExternalize): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementExternalize; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementExternalize; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementExternalize; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatement { @@ -2927,9 +2896,9 @@ export namespace xdr { pledges(value?: ScpStatementPledges): ScpStatementPledges; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatement; @@ -2939,13 +2908,13 @@ export namespace xdr { static toXDR(value: ScpStatement): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatement; + static fromXDR(input: Buffer, format?: "raw"): ScpStatement; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpStatement; + static fromXDR(input: string, format: "hex" | "base64"): ScpStatement; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpEnvelope { @@ -2955,9 +2924,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpEnvelope; @@ -2967,13 +2936,13 @@ export namespace xdr { static toXDR(value: ScpEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpEnvelope; + static fromXDR(input: Buffer, format?: "raw"): ScpEnvelope; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpEnvelope; + static fromXDR(input: string, format: "hex" | "base64"): ScpEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpQuorumSet { @@ -2989,9 +2958,9 @@ export namespace xdr { innerSets(value?: ScpQuorumSet[]): ScpQuorumSet[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpQuorumSet; @@ -3001,13 +2970,13 @@ export namespace xdr { static toXDR(value: ScpQuorumSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpQuorumSet; + static fromXDR(input: Buffer, format?: "raw"): ScpQuorumSet; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpQuorumSet; + static fromXDR(input: string, format: "hex" | "base64"): ScpQuorumSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AlphaNum4 { @@ -3017,9 +2986,9 @@ export namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AlphaNum4; @@ -3029,13 +2998,13 @@ export namespace xdr { static toXDR(value: AlphaNum4): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AlphaNum4; + static fromXDR(input: Buffer, format?: "raw"): AlphaNum4; - static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum4; + static fromXDR(input: string, format: "hex" | "base64"): AlphaNum4; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AlphaNum12 { @@ -3045,9 +3014,9 @@ export namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AlphaNum12; @@ -3057,13 +3026,13 @@ export namespace xdr { static toXDR(value: AlphaNum12): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AlphaNum12; + static fromXDR(input: Buffer, format?: "raw"): AlphaNum12; - static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum12; + static fromXDR(input: string, format: "hex" | "base64"): AlphaNum12; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Price { @@ -3073,9 +3042,9 @@ export namespace xdr { d(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Price; @@ -3085,13 +3054,13 @@ export namespace xdr { static toXDR(value: Price): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Price; + static fromXDR(input: Buffer, format?: "raw"): Price; - static fromXDR(input: string, format: 'hex' | 'base64'): Price; + static fromXDR(input: string, format: "hex" | "base64"): Price; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Liabilities { @@ -3101,9 +3070,9 @@ export namespace xdr { selling(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Liabilities; @@ -3113,13 +3082,13 @@ export namespace xdr { static toXDR(value: Liabilities): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Liabilities; + static fromXDR(input: Buffer, format?: "raw"): Liabilities; - static fromXDR(input: string, format: 'hex' | 'base64'): Liabilities; + static fromXDR(input: string, format: "hex" | "base64"): Liabilities; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Signer { @@ -3129,9 +3098,9 @@ export namespace xdr { weight(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Signer; @@ -3141,13 +3110,13 @@ export namespace xdr { static toXDR(value: Signer): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Signer; + static fromXDR(input: Buffer, format?: "raw"): Signer; - static fromXDR(input: string, format: 'hex' | 'base64'): Signer; + static fromXDR(input: string, format: "hex" | "base64"): Signer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV3 { @@ -3163,9 +3132,9 @@ export namespace xdr { seqTime(value?: TimePoint): TimePoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV3; @@ -3175,16 +3144,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV3): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV3; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV3; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV3; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV2 { @@ -3205,9 +3174,9 @@ export namespace xdr { ext(value?: AccountEntryExtensionV2Ext): AccountEntryExtensionV2Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV2; @@ -3217,16 +3186,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV1 { @@ -3239,9 +3208,9 @@ export namespace xdr { ext(value?: AccountEntryExtensionV1Ext): AccountEntryExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV1; @@ -3251,16 +3220,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntry { @@ -3297,9 +3266,9 @@ export namespace xdr { ext(value?: AccountEntryExt): AccountEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntry; @@ -3309,13 +3278,13 @@ export namespace xdr { static toXDR(value: AccountEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntry; + static fromXDR(input: Buffer, format?: "raw"): AccountEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntry; + static fromXDR(input: string, format: "hex" | "base64"): AccountEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExtensionV2 { @@ -3328,9 +3297,9 @@ export namespace xdr { ext(value?: TrustLineEntryExtensionV2Ext): TrustLineEntryExtensionV2Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExtensionV2; @@ -3340,16 +3309,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryExtensionV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryV1 { @@ -3362,9 +3331,9 @@ export namespace xdr { ext(value?: TrustLineEntryV1Ext): TrustLineEntryV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryV1; @@ -3374,13 +3343,13 @@ export namespace xdr { static toXDR(value: TrustLineEntryV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryV1; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntry { @@ -3405,9 +3374,9 @@ export namespace xdr { ext(value?: TrustLineEntryExt): TrustLineEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntry; @@ -3417,13 +3386,13 @@ export namespace xdr { static toXDR(value: TrustLineEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntry; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntry; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OfferEntry { @@ -3454,9 +3423,9 @@ export namespace xdr { ext(value?: OfferEntryExt): OfferEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OfferEntry; @@ -3466,13 +3435,13 @@ export namespace xdr { static toXDR(value: OfferEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OfferEntry; + static fromXDR(input: Buffer, format?: "raw"): OfferEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntry; + static fromXDR(input: string, format: "hex" | "base64"): OfferEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DataEntry { @@ -3491,9 +3460,9 @@ export namespace xdr { ext(value?: DataEntryExt): DataEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DataEntry; @@ -3503,13 +3472,13 @@ export namespace xdr { static toXDR(value: DataEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DataEntry; + static fromXDR(input: Buffer, format?: "raw"): DataEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): DataEntry; + static fromXDR(input: string, format: "hex" | "base64"): DataEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimantV0 { @@ -3522,9 +3491,9 @@ export namespace xdr { predicate(value?: ClaimPredicate): ClaimPredicate; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimantV0; @@ -3534,13 +3503,13 @@ export namespace xdr { static toXDR(value: ClaimantV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimantV0; + static fromXDR(input: Buffer, format?: "raw"): ClaimantV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimantV0; + static fromXDR(input: string, format: "hex" | "base64"): ClaimantV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExtensionV1 { @@ -3555,9 +3524,9 @@ export namespace xdr { flags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1; @@ -3569,17 +3538,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClaimableBalanceEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntry { @@ -3601,9 +3570,9 @@ export namespace xdr { ext(value?: ClaimableBalanceEntryExt): ClaimableBalanceEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntry; @@ -3613,16 +3582,16 @@ export namespace xdr { static toXDR(value: ClaimableBalanceEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntry; + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolConstantProductParameters { @@ -3634,9 +3603,9 @@ export namespace xdr { fee(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolConstantProductParameters; @@ -3651,17 +3620,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): LiquidityPoolConstantProductParameters; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolConstantProductParameters; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntryConstantProduct { @@ -3685,9 +3654,9 @@ export namespace xdr { poolSharesTrustLineCount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntryConstantProduct; @@ -3699,17 +3668,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): LiquidityPoolEntryConstantProduct; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolEntryConstantProduct; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntry { @@ -3722,9 +3691,9 @@ export namespace xdr { body(value?: LiquidityPoolEntryBody): LiquidityPoolEntryBody; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntry; @@ -3734,13 +3703,13 @@ export namespace xdr { static toXDR(value: LiquidityPoolEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntry; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): LiquidityPoolEntry; + static fromXDR(input: string, format: "hex" | "base64"): LiquidityPoolEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractDataEntry { @@ -3762,9 +3731,9 @@ export namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractDataEntry; @@ -3774,13 +3743,13 @@ export namespace xdr { static toXDR(value: ContractDataEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractDataEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractDataEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractDataEntry; + static fromXDR(input: string, format: "hex" | "base64"): ContractDataEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeCostInputs { @@ -3820,9 +3789,9 @@ export namespace xdr { nDataSegmentBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeCostInputs; @@ -3832,16 +3801,16 @@ export namespace xdr { static toXDR(value: ContractCodeCostInputs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeCostInputs; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeCostInputs; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeCostInputs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntryV1 { @@ -3854,9 +3823,9 @@ export namespace xdr { costInputs(value?: ContractCodeCostInputs): ContractCodeCostInputs; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntryV1; @@ -3866,16 +3835,16 @@ export namespace xdr { static toXDR(value: ContractCodeEntryV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryV1; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeEntryV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntry { @@ -3891,9 +3860,9 @@ export namespace xdr { code(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntry; @@ -3903,13 +3872,13 @@ export namespace xdr { static toXDR(value: ContractCodeEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractCodeEntry; + static fromXDR(input: string, format: "hex" | "base64"): ContractCodeEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TtlEntry { @@ -3919,9 +3888,9 @@ export namespace xdr { liveUntilLedgerSeq(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TtlEntry; @@ -3931,13 +3900,13 @@ export namespace xdr { static toXDR(value: TtlEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TtlEntry; + static fromXDR(input: Buffer, format?: "raw"): TtlEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): TtlEntry; + static fromXDR(input: string, format: "hex" | "base64"): TtlEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExtensionV1 { @@ -3950,9 +3919,9 @@ export namespace xdr { ext(value?: LedgerEntryExtensionV1Ext): LedgerEntryExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExtensionV1; @@ -3962,16 +3931,16 @@ export namespace xdr { static toXDR(value: LedgerEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerEntryExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntry { @@ -3987,9 +3956,9 @@ export namespace xdr { ext(value?: LedgerEntryExt): LedgerEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntry; @@ -3999,13 +3968,13 @@ export namespace xdr { static toXDR(value: LedgerEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntry; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntry; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyAccount { @@ -4013,9 +3982,9 @@ export namespace xdr { accountId(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyAccount; @@ -4025,13 +3994,13 @@ export namespace xdr { static toXDR(value: LedgerKeyAccount): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyAccount; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyAccount; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyAccount; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyAccount; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyTrustLine { @@ -4041,9 +4010,9 @@ export namespace xdr { asset(value?: TrustLineAsset): TrustLineAsset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyTrustLine; @@ -4053,13 +4022,13 @@ export namespace xdr { static toXDR(value: LedgerKeyTrustLine): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTrustLine; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTrustLine; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTrustLine; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTrustLine; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyOffer { @@ -4069,9 +4038,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyOffer; @@ -4081,13 +4050,13 @@ export namespace xdr { static toXDR(value: LedgerKeyOffer): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyOffer; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyOffer; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyOffer; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyOffer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyData { @@ -4100,9 +4069,9 @@ export namespace xdr { dataName(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyData; @@ -4112,13 +4081,13 @@ export namespace xdr { static toXDR(value: LedgerKeyData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyData; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyData; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyData; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyClaimableBalance { @@ -4126,9 +4095,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyClaimableBalance; @@ -4138,16 +4107,16 @@ export namespace xdr { static toXDR(value: LedgerKeyClaimableBalance): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyClaimableBalance; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyClaimableBalance; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyClaimableBalance; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyLiquidityPool { @@ -4155,9 +4124,9 @@ export namespace xdr { liquidityPoolId(value?: PoolId): PoolId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyLiquidityPool; @@ -4167,16 +4136,16 @@ export namespace xdr { static toXDR(value: LedgerKeyLiquidityPool): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyLiquidityPool; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyLiquidityPool; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyLiquidityPool; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyContractData { @@ -4192,9 +4161,9 @@ export namespace xdr { durability(value?: ContractDataDurability): ContractDataDurability; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyContractData; @@ -4204,16 +4173,16 @@ export namespace xdr { static toXDR(value: LedgerKeyContractData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractData; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractData; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyContractData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyContractCode { @@ -4221,9 +4190,9 @@ export namespace xdr { hash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyContractCode; @@ -4233,16 +4202,16 @@ export namespace xdr { static toXDR(value: LedgerKeyContractCode): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractCode; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractCode; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyContractCode; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyConfigSetting { @@ -4250,9 +4219,9 @@ export namespace xdr { configSettingId(value?: ConfigSettingId): ConfigSettingId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyConfigSetting; @@ -4262,16 +4231,16 @@ export namespace xdr { static toXDR(value: LedgerKeyConfigSetting): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyConfigSetting; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyConfigSetting; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerKeyConfigSetting; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKeyTtl { @@ -4279,9 +4248,9 @@ export namespace xdr { keyHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKeyTtl; @@ -4291,13 +4260,13 @@ export namespace xdr { static toXDR(value: LedgerKeyTtl): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTtl; + static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTtl; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTtl; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTtl; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketMetadata { @@ -4307,9 +4276,9 @@ export namespace xdr { ext(value?: BucketMetadataExt): BucketMetadataExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketMetadata; @@ -4319,139 +4288,13 @@ export namespace xdr { static toXDR(value: BucketMetadata): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketMetadata; - - static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadata; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveArchivedLeaf { - constructor(attributes: { index: number; archivedEntry: LedgerEntry }); - - index(value?: number): number; - - archivedEntry(value?: LedgerEntry): LedgerEntry; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveArchivedLeaf; - - static write(value: ColdArchiveArchivedLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveArchivedLeaf): boolean; + static fromXDR(input: Buffer, format?: "raw"): BucketMetadata; - static toXDR(value: ColdArchiveArchivedLeaf): Buffer; + static fromXDR(input: string, format: "hex" | "base64"): BucketMetadata; - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveArchivedLeaf; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveArchivedLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveDeletedLeaf { - constructor(attributes: { index: number; deletedKey: LedgerKey }); - - index(value?: number): number; - - deletedKey(value?: LedgerKey): LedgerKey; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveDeletedLeaf; - - static write(value: ColdArchiveDeletedLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveDeletedLeaf): boolean; - - static toXDR(value: ColdArchiveDeletedLeaf): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveDeletedLeaf; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveDeletedLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveBoundaryLeaf { - constructor(attributes: { index: number; isLowerBound: boolean }); - - index(value?: number): number; - - isLowerBound(value?: boolean): boolean; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveBoundaryLeaf; - - static write(value: ColdArchiveBoundaryLeaf, io: Buffer): void; - - static isValid(value: ColdArchiveBoundaryLeaf): boolean; - - static toXDR(value: ColdArchiveBoundaryLeaf): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveBoundaryLeaf; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveBoundaryLeaf; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveHashEntry { - constructor(attributes: { index: number; level: number; hash: Buffer }); - - index(value?: number): number; - - level(value?: number): number; - - hash(value?: Buffer): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ColdArchiveHashEntry; - - static write(value: ColdArchiveHashEntry, io: Buffer): void; - - static isValid(value: ColdArchiveHashEntry): boolean; - - static toXDR(value: ColdArchiveHashEntry): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveHashEntry; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveHashEntry; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseValueSignature { @@ -4461,9 +4304,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseValueSignature; @@ -4473,16 +4316,16 @@ export namespace xdr { static toXDR(value: LedgerCloseValueSignature): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseValueSignature; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseValueSignature; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerCloseValueSignature; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarValue { @@ -4501,9 +4344,9 @@ export namespace xdr { ext(value?: StellarValueExt): StellarValueExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarValue; @@ -4513,13 +4356,13 @@ export namespace xdr { static toXDR(value: StellarValue): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarValue; + static fromXDR(input: Buffer, format?: "raw"): StellarValue; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarValue; + static fromXDR(input: string, format: "hex" | "base64"): StellarValue; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExtensionV1 { @@ -4529,9 +4372,9 @@ export namespace xdr { ext(value?: LedgerHeaderExtensionV1Ext): LedgerHeaderExtensionV1Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExtensionV1; @@ -4541,16 +4384,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderExtensionV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeader { @@ -4602,9 +4445,9 @@ export namespace xdr { ext(value?: LedgerHeaderExt): LedgerHeaderExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeader; @@ -4614,25 +4457,25 @@ export namespace xdr { static toXDR(value: LedgerHeader): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeader; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeader; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeader; + static fromXDR(input: string, format: "hex" | "base64"): LedgerHeader; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigUpgradeSetKey { - constructor(attributes: { contractId: Buffer; contentHash: Buffer }); + constructor(attributes: { contractId: ContractId; contentHash: Buffer }); - contractId(value?: Buffer): Buffer; + contractId(value?: ContractId): ContractId; contentHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigUpgradeSetKey; @@ -4642,16 +4485,16 @@ export namespace xdr { static toXDR(value: ConfigUpgradeSetKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSetKey; + static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSetKey; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigUpgradeSetKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigUpgradeSet { @@ -4659,9 +4502,9 @@ export namespace xdr { updatedEntry(value?: ConfigSettingEntry[]): ConfigSettingEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigUpgradeSet; @@ -4671,13 +4514,13 @@ export namespace xdr { static toXDR(value: ConfigUpgradeSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSet; + static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSet; - static fromXDR(input: string, format: 'hex' | 'base64'): ConfigUpgradeSet; + static fromXDR(input: string, format: "hex" | "base64"): ConfigUpgradeSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ParallelTxsComponent { @@ -4692,9 +4535,9 @@ export namespace xdr { value?: TransactionEnvelope[][][], ): TransactionEnvelope[][][]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ParallelTxsComponent; @@ -4704,16 +4547,16 @@ export namespace xdr { static toXDR(value: ParallelTxsComponent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ParallelTxsComponent; + static fromXDR(input: Buffer, format?: "raw"): ParallelTxsComponent; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ParallelTxsComponent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TxSetComponentTxsMaybeDiscountedFee { @@ -4726,9 +4569,9 @@ export namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TxSetComponentTxsMaybeDiscountedFee; @@ -4740,17 +4583,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TxSetComponentTxsMaybeDiscountedFee; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TxSetComponentTxsMaybeDiscountedFee; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSet { @@ -4763,9 +4606,9 @@ export namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSet; @@ -4775,13 +4618,13 @@ export namespace xdr { static toXDR(value: TransactionSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSet; + static fromXDR(input: Buffer, format?: "raw"): TransactionSet; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSet; + static fromXDR(input: string, format: "hex" | "base64"): TransactionSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSetV1 { @@ -4794,9 +4637,9 @@ export namespace xdr { phases(value?: TransactionPhase[]): TransactionPhase[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSetV1; @@ -4806,13 +4649,13 @@ export namespace xdr { static toXDR(value: TransactionSetV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSetV1; + static fromXDR(input: Buffer, format?: "raw"): TransactionSetV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSetV1; + static fromXDR(input: string, format: "hex" | "base64"): TransactionSetV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultPair { @@ -4825,9 +4668,9 @@ export namespace xdr { result(value?: TransactionResult): TransactionResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultPair; @@ -4837,16 +4680,16 @@ export namespace xdr { static toXDR(value: TransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultPair; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultPair; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultPair; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultSet { @@ -4854,9 +4697,9 @@ export namespace xdr { results(value?: TransactionResultPair[]): TransactionResultPair[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultSet; @@ -4866,16 +4709,16 @@ export namespace xdr { static toXDR(value: TransactionResultSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultSet; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultSet; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryEntry { @@ -4891,9 +4734,9 @@ export namespace xdr { ext(value?: TransactionHistoryEntryExt): TransactionHistoryEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryEntry; @@ -4903,16 +4746,16 @@ export namespace xdr { static toXDR(value: TransactionHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryResultEntry { @@ -4930,9 +4773,9 @@ export namespace xdr { value?: TransactionHistoryResultEntryExt, ): TransactionHistoryResultEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryResultEntry; @@ -4944,17 +4787,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionHistoryResultEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryResultEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderHistoryEntry { @@ -4970,9 +4813,9 @@ export namespace xdr { ext(value?: LedgerHeaderHistoryEntryExt): LedgerHeaderHistoryEntryExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderHistoryEntry; @@ -4982,16 +4825,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerScpMessages { @@ -5001,9 +4844,9 @@ export namespace xdr { messages(value?: ScpEnvelope[]): ScpEnvelope[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerScpMessages; @@ -5013,13 +4856,13 @@ export namespace xdr { static toXDR(value: LedgerScpMessages): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerScpMessages; + static fromXDR(input: Buffer, format?: "raw"): LedgerScpMessages; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerScpMessages; + static fromXDR(input: string, format: "hex" | "base64"): LedgerScpMessages; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpHistoryEntryV0 { @@ -5032,9 +4875,9 @@ export namespace xdr { ledgerMessages(value?: LedgerScpMessages): LedgerScpMessages; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpHistoryEntryV0; @@ -5044,13 +4887,13 @@ export namespace xdr { static toXDR(value: ScpHistoryEntryV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntryV0; + static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntryV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntryV0; + static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntryV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationMeta { @@ -5058,9 +4901,9 @@ export namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationMeta; @@ -5070,13 +4913,13 @@ export namespace xdr { static toXDR(value: OperationMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationMeta; + static fromXDR(input: Buffer, format?: "raw"): OperationMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationMeta; + static fromXDR(input: string, format: "hex" | "base64"): OperationMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV1 { @@ -5089,9 +4932,9 @@ export namespace xdr { operations(value?: OperationMeta[]): OperationMeta[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV1; @@ -5101,13 +4944,13 @@ export namespace xdr { static toXDR(value: TransactionMetaV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV1; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV1; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV1; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV2 { @@ -5123,9 +4966,9 @@ export namespace xdr { txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV2; @@ -5135,13 +4978,13 @@ export namespace xdr { static toXDR(value: TransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV2; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV2; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV2; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEventV0 { @@ -5151,9 +4994,9 @@ export namespace xdr { data(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEventV0; @@ -5163,34 +5006,34 @@ export namespace xdr { static toXDR(value: ContractEventV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEventV0; + static fromXDR(input: Buffer, format?: "raw"): ContractEventV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventV0; + static fromXDR(input: string, format: "hex" | "base64"): ContractEventV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEvent { constructor(attributes: { ext: ExtensionPoint; - contractId: null | Buffer; + contractId: null | ContractId; type: ContractEventType; body: ContractEventBody; }); ext(value?: ExtensionPoint): ExtensionPoint; - contractId(value?: null | Buffer): null | Buffer; + contractId(value?: null | ContractId): null | ContractId; type(value?: ContractEventType): ContractEventType; body(value?: ContractEventBody): ContractEventBody; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEvent; @@ -5200,13 +5043,13 @@ export namespace xdr { static toXDR(value: ContractEvent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEvent; + static fromXDR(input: Buffer, format?: "raw"): ContractEvent; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEvent; + static fromXDR(input: string, format: "hex" | "base64"): ContractEvent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DiagnosticEvent { @@ -5219,9 +5062,9 @@ export namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DiagnosticEvent; @@ -5231,13 +5074,13 @@ export namespace xdr { static toXDR(value: DiagnosticEvent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DiagnosticEvent; + static fromXDR(input: Buffer, format?: "raw"): DiagnosticEvent; - static fromXDR(input: string, format: 'hex' | 'base64'): DiagnosticEvent; + static fromXDR(input: string, format: "hex" | "base64"): DiagnosticEvent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMetaExtV1 { @@ -5256,9 +5099,9 @@ export namespace xdr { rentFeeCharged(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMetaExtV1; @@ -5268,16 +5111,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExtV1; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExtV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMetaExtV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMeta { @@ -5296,9 +5139,9 @@ export namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMeta; @@ -5308,16 +5151,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMeta; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMeta; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMetaV3 { @@ -5341,9 +5184,9 @@ export namespace xdr { value?: null | SorobanTransactionMeta, ): null | SorobanTransactionMeta; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMetaV3; @@ -5353,167 +5196,357 @@ export namespace xdr { static toXDR(value: TransactionMetaV3): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV3; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV3; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV3; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV3; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class InvokeHostFunctionSuccessPreImage { - constructor(attributes: { returnValue: ScVal; events: ContractEvent[] }); + class OperationMetaV2 { + constructor(attributes: { + ext: ExtensionPoint; + changes: LedgerEntryChange[]; + events: ContractEvent[]; + }); - returnValue(value?: ScVal): ScVal; + ext(value?: ExtensionPoint): ExtensionPoint; + + changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): InvokeHostFunctionSuccessPreImage; + static read(io: Buffer): OperationMetaV2; - static write(value: InvokeHostFunctionSuccessPreImage, io: Buffer): void; + static write(value: OperationMetaV2, io: Buffer): void; - static isValid(value: InvokeHostFunctionSuccessPreImage): boolean; + static isValid(value: OperationMetaV2): boolean; - static toXDR(value: InvokeHostFunctionSuccessPreImage): Buffer; + static toXDR(value: OperationMetaV2): Buffer; - static fromXDR( - input: Buffer, - format?: 'raw', - ): InvokeHostFunctionSuccessPreImage; + static fromXDR(input: Buffer, format?: "raw"): OperationMetaV2; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): InvokeHostFunctionSuccessPreImage; + static fromXDR(input: string, format: "hex" | "base64"): OperationMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class TransactionResultMeta { + class SorobanTransactionMetaV2 { constructor(attributes: { - result: TransactionResultPair; - feeProcessing: LedgerEntryChange[]; - txApplyProcessing: TransactionMeta; + ext: SorobanTransactionMetaExt; + returnValue: null | ScVal; }); - result(value?: TransactionResultPair): TransactionResultPair; - - feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + ext(value?: SorobanTransactionMetaExt): SorobanTransactionMetaExt; - txApplyProcessing(value?: TransactionMeta): TransactionMeta; + returnValue(value?: null | ScVal): null | ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): TransactionResultMeta; + static read(io: Buffer): SorobanTransactionMetaV2; - static write(value: TransactionResultMeta, io: Buffer): void; + static write(value: SorobanTransactionMetaV2, io: Buffer): void; - static isValid(value: TransactionResultMeta): boolean; + static isValid(value: SorobanTransactionMetaV2): boolean; - static toXDR(value: TransactionResultMeta): Buffer; + static toXDR(value: SorobanTransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMeta; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaV2; static fromXDR( input: string, - format: 'hex' | 'base64', - ): TransactionResultMeta; + format: "hex" | "base64", + ): SorobanTransactionMetaV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class UpgradeEntryMeta { + class TransactionEvent { constructor(attributes: { - upgrade: LedgerUpgrade; - changes: LedgerEntryChange[]; + stage: TransactionEventStage; + event: ContractEvent; }); - upgrade(value?: LedgerUpgrade): LedgerUpgrade; + stage(value?: TransactionEventStage): TransactionEventStage; - changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; + event(value?: ContractEvent): ContractEvent; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): UpgradeEntryMeta; + static read(io: Buffer): TransactionEvent; - static write(value: UpgradeEntryMeta, io: Buffer): void; + static write(value: TransactionEvent, io: Buffer): void; - static isValid(value: UpgradeEntryMeta): boolean; + static isValid(value: TransactionEvent): boolean; - static toXDR(value: UpgradeEntryMeta): Buffer; + static toXDR(value: TransactionEvent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UpgradeEntryMeta; + static fromXDR(input: Buffer, format?: "raw"): TransactionEvent; - static fromXDR(input: string, format: 'hex' | 'base64'): UpgradeEntryMeta; + static fromXDR(input: string, format: "hex" | "base64"): TransactionEvent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class LedgerCloseMetaV0 { + class TransactionMetaV4 { constructor(attributes: { - ledgerHeader: LedgerHeaderHistoryEntry; - txSet: TransactionSet; - txProcessing: TransactionResultMeta[]; - upgradesProcessing: UpgradeEntryMeta[]; - scpInfo: ScpHistoryEntry[]; + ext: ExtensionPoint; + txChangesBefore: LedgerEntryChange[]; + operations: OperationMetaV2[]; + txChangesAfter: LedgerEntryChange[]; + sorobanMeta: null | SorobanTransactionMetaV2; + events: TransactionEvent[]; + diagnosticEvents: DiagnosticEvent[]; }); - ledgerHeader(value?: LedgerHeaderHistoryEntry): LedgerHeaderHistoryEntry; + ext(value?: ExtensionPoint): ExtensionPoint; - txSet(value?: TransactionSet): TransactionSet; + txChangesBefore(value?: LedgerEntryChange[]): LedgerEntryChange[]; - txProcessing(value?: TransactionResultMeta[]): TransactionResultMeta[]; + operations(value?: OperationMetaV2[]): OperationMetaV2[]; - upgradesProcessing(value?: UpgradeEntryMeta[]): UpgradeEntryMeta[]; + txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; - scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; + sorobanMeta( + value?: null | SorobanTransactionMetaV2, + ): null | SorobanTransactionMetaV2; - toXDR(format?: 'raw'): Buffer; + events(value?: TransactionEvent[]): TransactionEvent[]; - toXDR(format: 'hex' | 'base64'): string; + diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - static read(io: Buffer): LedgerCloseMetaV0; + toXDR(format?: "raw"): Buffer; - static write(value: LedgerCloseMetaV0, io: Buffer): void; + toXDR(format: "hex" | "base64"): string; - static isValid(value: LedgerCloseMetaV0): boolean; + static read(io: Buffer): TransactionMetaV4; - static toXDR(value: LedgerCloseMetaV0): Buffer; + static write(value: TransactionMetaV4, io: Buffer): void; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV0; + static isValid(value: TransactionMetaV4): boolean; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV0; + static toXDR(value: TransactionMetaV4): Buffer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV4; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } + static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV4; - class LedgerCloseMetaExtV1 { - constructor(attributes: { ext: ExtensionPoint; sorobanFeeWrite1Kb: Int64 }); + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class InvokeHostFunctionSuccessPreImage { + constructor(attributes: { returnValue: ScVal; events: ContractEvent[] }); + + returnValue(value?: ScVal): ScVal; + + events(value?: ContractEvent[]): ContractEvent[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): InvokeHostFunctionSuccessPreImage; + + static write(value: InvokeHostFunctionSuccessPreImage, io: Buffer): void; + + static isValid(value: InvokeHostFunctionSuccessPreImage): boolean; + + static toXDR(value: InvokeHostFunctionSuccessPreImage): Buffer; + + static fromXDR( + input: Buffer, + format?: "raw", + ): InvokeHostFunctionSuccessPreImage; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): InvokeHostFunctionSuccessPreImage; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionResultMeta { + constructor(attributes: { + result: TransactionResultPair; + feeProcessing: LedgerEntryChange[]; + txApplyProcessing: TransactionMeta; + }); + + result(value?: TransactionResultPair): TransactionResultPair; + + feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + txApplyProcessing(value?: TransactionMeta): TransactionMeta; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): TransactionResultMeta; + + static write(value: TransactionResultMeta, io: Buffer): void; + + static isValid(value: TransactionResultMeta): boolean; + + static toXDR(value: TransactionResultMeta): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): TransactionResultMeta; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): TransactionResultMeta; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class TransactionResultMetaV1 { + constructor(attributes: { + ext: ExtensionPoint; + result: TransactionResultPair; + feeProcessing: LedgerEntryChange[]; + txApplyProcessing: TransactionMeta; + postTxApplyFeeProcessing: LedgerEntryChange[]; + }); + + ext(value?: ExtensionPoint): ExtensionPoint; + + result(value?: TransactionResultPair): TransactionResultPair; + + feeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + txApplyProcessing(value?: TransactionMeta): TransactionMeta; + + postTxApplyFeeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): TransactionResultMetaV1; + + static write(value: TransactionResultMetaV1, io: Buffer): void; + + static isValid(value: TransactionResultMetaV1): boolean; + + static toXDR(value: TransactionResultMetaV1): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): TransactionResultMetaV1; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): TransactionResultMetaV1; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class UpgradeEntryMeta { + constructor(attributes: { + upgrade: LedgerUpgrade; + changes: LedgerEntryChange[]; + }); + + upgrade(value?: LedgerUpgrade): LedgerUpgrade; + + changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): UpgradeEntryMeta; + + static write(value: UpgradeEntryMeta, io: Buffer): void; + + static isValid(value: UpgradeEntryMeta): boolean; + + static toXDR(value: UpgradeEntryMeta): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): UpgradeEntryMeta; + + static fromXDR(input: string, format: "hex" | "base64"): UpgradeEntryMeta; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaV0 { + constructor(attributes: { + ledgerHeader: LedgerHeaderHistoryEntry; + txSet: TransactionSet; + txProcessing: TransactionResultMeta[]; + upgradesProcessing: UpgradeEntryMeta[]; + scpInfo: ScpHistoryEntry[]; + }); + + ledgerHeader(value?: LedgerHeaderHistoryEntry): LedgerHeaderHistoryEntry; + + txSet(value?: TransactionSet): TransactionSet; + + txProcessing(value?: TransactionResultMeta[]): TransactionResultMeta[]; + + upgradesProcessing(value?: UpgradeEntryMeta[]): UpgradeEntryMeta[]; + + scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): LedgerCloseMetaV0; + + static write(value: LedgerCloseMetaV0, io: Buffer): void; + + static isValid(value: LedgerCloseMetaV0): boolean; + + static toXDR(value: LedgerCloseMetaV0): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV0; + + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaExtV1 { + constructor(attributes: { ext: ExtensionPoint; sorobanFeeWrite1Kb: Int64 }); ext(value?: ExtensionPoint): ExtensionPoint; sorobanFeeWrite1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaExtV1; @@ -5523,16 +5556,16 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExtV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExtV1; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerCloseMetaExtV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaV1 { @@ -5543,9 +5576,9 @@ export namespace xdr { txProcessing: TransactionResultMeta[]; upgradesProcessing: UpgradeEntryMeta[]; scpInfo: ScpHistoryEntry[]; - totalByteSizeOfBucketList: Uint64; - evictedTemporaryLedgerKeys: LedgerKey[]; - evictedPersistentLedgerEntries: LedgerEntry[]; + totalByteSizeOfLiveSorobanState: Uint64; + evictedKeys: LedgerKey[]; + unused: LedgerEntry[]; }); ext(value?: LedgerCloseMetaExt): LedgerCloseMetaExt; @@ -5560,15 +5593,15 @@ export namespace xdr { scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; - totalByteSizeOfBucketList(value?: Uint64): Uint64; + totalByteSizeOfLiveSorobanState(value?: Uint64): Uint64; - evictedTemporaryLedgerKeys(value?: LedgerKey[]): LedgerKey[]; + evictedKeys(value?: LedgerKey[]): LedgerKey[]; - evictedPersistentLedgerEntries(value?: LedgerEntry[]): LedgerEntry[]; + unused(value?: LedgerEntry[]): LedgerEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaV1; @@ -5578,13 +5611,62 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaV1): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV1; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV1; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV1; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV1; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaV2 { + constructor(attributes: { + ext: LedgerCloseMetaExt; + ledgerHeader: LedgerHeaderHistoryEntry; + txSet: GeneralizedTransactionSet; + txProcessing: TransactionResultMetaV1[]; + upgradesProcessing: UpgradeEntryMeta[]; + scpInfo: ScpHistoryEntry[]; + totalByteSizeOfLiveSorobanState: Uint64; + evictedKeys: LedgerKey[]; + }); + + ext(value?: LedgerCloseMetaExt): LedgerCloseMetaExt; + + ledgerHeader(value?: LedgerHeaderHistoryEntry): LedgerHeaderHistoryEntry; + + txSet(value?: GeneralizedTransactionSet): GeneralizedTransactionSet; + + txProcessing(value?: TransactionResultMetaV1[]): TransactionResultMetaV1[]; + + upgradesProcessing(value?: UpgradeEntryMeta[]): UpgradeEntryMeta[]; + + scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; + + totalByteSizeOfLiveSorobanState(value?: Uint64): Uint64; + + evictedKeys(value?: LedgerKey[]): LedgerKey[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): LedgerCloseMetaV2; + + static write(value: LedgerCloseMetaV2, io: Buffer): void; + + static isValid(value: LedgerCloseMetaV2): boolean; + + static toXDR(value: LedgerCloseMetaV2): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV2; + + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV2; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Error { @@ -5594,9 +5676,9 @@ export namespace xdr { msg(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Error; @@ -5606,13 +5688,13 @@ export namespace xdr { static toXDR(value: Error): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Error; + static fromXDR(input: Buffer, format?: "raw"): Error; - static fromXDR(input: string, format: 'hex' | 'base64'): Error; + static fromXDR(input: string, format: "hex" | "base64"): Error; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SendMore { @@ -5620,9 +5702,9 @@ export namespace xdr { numMessages(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SendMore; @@ -5632,13 +5714,13 @@ export namespace xdr { static toXDR(value: SendMore): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SendMore; + static fromXDR(input: Buffer, format?: "raw"): SendMore; - static fromXDR(input: string, format: 'hex' | 'base64'): SendMore; + static fromXDR(input: string, format: "hex" | "base64"): SendMore; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SendMoreExtended { @@ -5648,9 +5730,9 @@ export namespace xdr { numBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SendMoreExtended; @@ -5660,13 +5742,13 @@ export namespace xdr { static toXDR(value: SendMoreExtended): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SendMoreExtended; + static fromXDR(input: Buffer, format?: "raw"): SendMoreExtended; - static fromXDR(input: string, format: 'hex' | 'base64'): SendMoreExtended; + static fromXDR(input: string, format: "hex" | "base64"): SendMoreExtended; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthCert { @@ -5682,9 +5764,9 @@ export namespace xdr { sig(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthCert; @@ -5694,13 +5776,13 @@ export namespace xdr { static toXDR(value: AuthCert): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthCert; + static fromXDR(input: Buffer, format?: "raw"): AuthCert; - static fromXDR(input: string, format: 'hex' | 'base64'): AuthCert; + static fromXDR(input: string, format: "hex" | "base64"): AuthCert; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Hello { @@ -5734,9 +5816,9 @@ export namespace xdr { nonce(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Hello; @@ -5746,13 +5828,13 @@ export namespace xdr { static toXDR(value: Hello): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Hello; + static fromXDR(input: Buffer, format?: "raw"): Hello; - static fromXDR(input: string, format: 'hex' | 'base64'): Hello; + static fromXDR(input: string, format: "hex" | "base64"): Hello; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Auth { @@ -5760,9 +5842,9 @@ export namespace xdr { flags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Auth; @@ -5772,13 +5854,13 @@ export namespace xdr { static toXDR(value: Auth): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Auth; + static fromXDR(input: Buffer, format?: "raw"): Auth; - static fromXDR(input: string, format: 'hex' | 'base64'): Auth; + static fromXDR(input: string, format: "hex" | "base64"): Auth; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerAddress { @@ -5794,9 +5876,9 @@ export namespace xdr { numFailures(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerAddress; @@ -5806,13 +5888,13 @@ export namespace xdr { static toXDR(value: PeerAddress): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerAddress; + static fromXDR(input: Buffer, format?: "raw"): PeerAddress; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddress; + static fromXDR(input: string, format: "hex" | "base64"): PeerAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DontHave { @@ -5822,9 +5904,9 @@ export namespace xdr { reqHash(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DontHave; @@ -5834,13 +5916,13 @@ export namespace xdr { static toXDR(value: DontHave): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DontHave; + static fromXDR(input: Buffer, format?: "raw"): DontHave; - static fromXDR(input: string, format: 'hex' | 'base64'): DontHave; + static fromXDR(input: string, format: "hex" | "base64"): DontHave; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyStartCollectingMessage { @@ -5856,9 +5938,9 @@ export namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyStartCollectingMessage; @@ -5873,17 +5955,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyStartCollectingMessage { @@ -5898,9 +5980,9 @@ export namespace xdr { value?: TimeSlicedSurveyStartCollectingMessage, ): TimeSlicedSurveyStartCollectingMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyStartCollectingMessage; @@ -5917,17 +5999,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyStopCollectingMessage { @@ -5943,9 +6025,9 @@ export namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyStopCollectingMessage; @@ -5960,17 +6042,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyStopCollectingMessage { @@ -5985,9 +6067,9 @@ export namespace xdr { value?: TimeSlicedSurveyStopCollectingMessage, ): TimeSlicedSurveyStopCollectingMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyStopCollectingMessage; @@ -6002,17 +6084,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyRequestMessage { @@ -6034,9 +6116,9 @@ export namespace xdr { commandType(value?: SurveyMessageCommandType): SurveyMessageCommandType; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyRequestMessage; @@ -6046,16 +6128,16 @@ export namespace xdr { static toXDR(value: SurveyRequestMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyRequestMessage; + static fromXDR(input: Buffer, format?: "raw"): SurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyRequestMessage { @@ -6074,9 +6156,9 @@ export namespace xdr { outboundPeersIndex(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyRequestMessage; @@ -6088,51 +6170,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class SignedSurveyRequestMessage { - constructor(attributes: { - requestSignature: Buffer; - request: SurveyRequestMessage; - }); - - requestSignature(value?: Buffer): Buffer; - - request(value?: SurveyRequestMessage): SurveyRequestMessage; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): SignedSurveyRequestMessage; - - static write(value: SignedSurveyRequestMessage, io: Buffer): void; - - static isValid(value: SignedSurveyRequestMessage): boolean; - - static toXDR(value: SignedSurveyRequestMessage): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): SignedSurveyRequestMessage; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): SignedSurveyRequestMessage; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyRequestMessage { @@ -6147,9 +6195,9 @@ export namespace xdr { value?: TimeSlicedSurveyRequestMessage, ): TimeSlicedSurveyRequestMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyRequestMessage; @@ -6161,17 +6209,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyResponseMessage { @@ -6193,9 +6241,9 @@ export namespace xdr { encryptedBody(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyResponseMessage; @@ -6205,16 +6253,16 @@ export namespace xdr { static toXDR(value: SurveyResponseMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseMessage; + static fromXDR(input: Buffer, format?: "raw"): SurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedSurveyResponseMessage { @@ -6224,9 +6272,9 @@ export namespace xdr { nonce(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedSurveyResponseMessage; @@ -6238,51 +6286,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class SignedSurveyResponseMessage { - constructor(attributes: { - responseSignature: Buffer; - response: SurveyResponseMessage; - }); - - responseSignature(value?: Buffer): Buffer; - - response(value?: SurveyResponseMessage): SurveyResponseMessage; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): SignedSurveyResponseMessage; - - static write(value: SignedSurveyResponseMessage, io: Buffer): void; - - static isValid(value: SignedSurveyResponseMessage): boolean; - - static toXDR(value: SignedSurveyResponseMessage): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): SignedSurveyResponseMessage; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): SignedSurveyResponseMessage; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignedTimeSlicedSurveyResponseMessage { @@ -6297,9 +6311,9 @@ export namespace xdr { value?: TimeSlicedSurveyResponseMessage, ): TimeSlicedSurveyResponseMessage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignedTimeSlicedSurveyResponseMessage; @@ -6314,17 +6328,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignedTimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignedTimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerStats { @@ -6376,9 +6390,9 @@ export namespace xdr { duplicateFetchMessageRecv(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerStats; @@ -6388,13 +6402,13 @@ export namespace xdr { static toXDR(value: PeerStats): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerStats; + static fromXDR(input: Buffer, format?: "raw"): PeerStats; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerStats; + static fromXDR(input: string, format: "hex" | "base64"): PeerStats; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedNodeData { @@ -6431,9 +6445,9 @@ export namespace xdr { maxOutboundPeerCount(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedNodeData; @@ -6443,13 +6457,13 @@ export namespace xdr { static toXDR(value: TimeSlicedNodeData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedNodeData; + static fromXDR(input: Buffer, format?: "raw"): TimeSlicedNodeData; - static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedNodeData; + static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedNodeData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeSlicedPeerData { @@ -6459,9 +6473,9 @@ export namespace xdr { averageLatencyMs(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeSlicedPeerData; @@ -6471,99 +6485,13 @@ export namespace xdr { static toXDR(value: TimeSlicedPeerData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedPeerData; - - static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedPeerData; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class TopologyResponseBodyV0 { - constructor(attributes: { - inboundPeers: PeerStats[]; - outboundPeers: PeerStats[]; - totalInboundPeerCount: number; - totalOutboundPeerCount: number; - }); - - inboundPeers(value?: PeerStats[]): PeerStats[]; - - outboundPeers(value?: PeerStats[]): PeerStats[]; - - totalInboundPeerCount(value?: number): number; - - totalOutboundPeerCount(value?: number): number; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): TopologyResponseBodyV0; - - static write(value: TopologyResponseBodyV0, io: Buffer): void; - - static isValid(value: TopologyResponseBodyV0): boolean; - - static toXDR(value: TopologyResponseBodyV0): Buffer; + static fromXDR(input: Buffer, format?: "raw"): TimeSlicedPeerData; - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV0; + static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedPeerData; - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): TopologyResponseBodyV0; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class TopologyResponseBodyV1 { - constructor(attributes: { - inboundPeers: PeerStats[]; - outboundPeers: PeerStats[]; - totalInboundPeerCount: number; - totalOutboundPeerCount: number; - maxInboundPeerCount: number; - maxOutboundPeerCount: number; - }); - - inboundPeers(value?: PeerStats[]): PeerStats[]; - - outboundPeers(value?: PeerStats[]): PeerStats[]; - - totalInboundPeerCount(value?: number): number; - - totalOutboundPeerCount(value?: number): number; - - maxInboundPeerCount(value?: number): number; - - maxOutboundPeerCount(value?: number): number; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): TopologyResponseBodyV1; - - static write(value: TopologyResponseBodyV1, io: Buffer): void; - - static isValid(value: TopologyResponseBodyV1): boolean; - - static toXDR(value: TopologyResponseBodyV1): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV1; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): TopologyResponseBodyV1; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TopologyResponseBodyV2 { @@ -6579,9 +6507,9 @@ export namespace xdr { nodeData(value?: TimeSlicedNodeData): TimeSlicedNodeData; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TopologyResponseBodyV2; @@ -6591,16 +6519,16 @@ export namespace xdr { static toXDR(value: TopologyResponseBodyV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV2; + static fromXDR(input: Buffer, format?: "raw"): TopologyResponseBodyV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TopologyResponseBodyV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FloodAdvert { @@ -6608,9 +6536,9 @@ export namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FloodAdvert; @@ -6620,13 +6548,13 @@ export namespace xdr { static toXDR(value: FloodAdvert): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FloodAdvert; + static fromXDR(input: Buffer, format?: "raw"): FloodAdvert; - static fromXDR(input: string, format: 'hex' | 'base64'): FloodAdvert; + static fromXDR(input: string, format: "hex" | "base64"): FloodAdvert; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FloodDemand { @@ -6634,9 +6562,9 @@ export namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FloodDemand; @@ -6646,13 +6574,13 @@ export namespace xdr { static toXDR(value: FloodDemand): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FloodDemand; + static fromXDR(input: Buffer, format?: "raw"): FloodDemand; - static fromXDR(input: string, format: 'hex' | 'base64'): FloodDemand; + static fromXDR(input: string, format: "hex" | "base64"): FloodDemand; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthenticatedMessageV0 { @@ -6668,9 +6596,9 @@ export namespace xdr { mac(value?: HmacSha256Mac): HmacSha256Mac; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthenticatedMessageV0; @@ -6680,16 +6608,16 @@ export namespace xdr { static toXDR(value: AuthenticatedMessageV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessageV0; + static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessageV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AuthenticatedMessageV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class MuxedAccountMed25519 { @@ -6699,9 +6627,9 @@ export namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): MuxedAccountMed25519; @@ -6711,16 +6639,16 @@ export namespace xdr { static toXDR(value: MuxedAccountMed25519): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): MuxedAccountMed25519; + static fromXDR(input: Buffer, format?: "raw"): MuxedAccountMed25519; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): MuxedAccountMed25519; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DecoratedSignature { @@ -6730,9 +6658,9 @@ export namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DecoratedSignature; @@ -6742,13 +6670,13 @@ export namespace xdr { static toXDR(value: DecoratedSignature): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DecoratedSignature; + static fromXDR(input: Buffer, format?: "raw"): DecoratedSignature; - static fromXDR(input: string, format: 'hex' | 'base64'): DecoratedSignature; + static fromXDR(input: string, format: "hex" | "base64"): DecoratedSignature; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateAccountOp { @@ -6758,9 +6686,9 @@ export namespace xdr { startingBalance(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateAccountOp; @@ -6770,13 +6698,13 @@ export namespace xdr { static toXDR(value: CreateAccountOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateAccountOp; + static fromXDR(input: Buffer, format?: "raw"): CreateAccountOp; - static fromXDR(input: string, format: 'hex' | 'base64'): CreateAccountOp; + static fromXDR(input: string, format: "hex" | "base64"): CreateAccountOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PaymentOp { @@ -6792,9 +6720,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PaymentOp; @@ -6804,13 +6732,13 @@ export namespace xdr { static toXDR(value: PaymentOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PaymentOp; + static fromXDR(input: Buffer, format?: "raw"): PaymentOp; - static fromXDR(input: string, format: 'hex' | 'base64'): PaymentOp; + static fromXDR(input: string, format: "hex" | "base64"): PaymentOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveOp { @@ -6835,9 +6763,9 @@ export namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveOp; @@ -6847,16 +6775,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictReceiveOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictReceiveOp; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictReceiveOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendOp { @@ -6881,9 +6809,9 @@ export namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendOp; @@ -6893,16 +6821,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictSendOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendOp; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageSellOfferOp { @@ -6924,9 +6852,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageSellOfferOp; @@ -6936,13 +6864,13 @@ export namespace xdr { static toXDR(value: ManageSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferOp; + static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageSellOfferOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageSellOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageBuyOfferOp { @@ -6964,9 +6892,9 @@ export namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageBuyOfferOp; @@ -6976,13 +6904,13 @@ export namespace xdr { static toXDR(value: ManageBuyOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferOp; + static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageBuyOfferOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageBuyOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreatePassiveSellOfferOp { @@ -7001,9 +6929,9 @@ export namespace xdr { price(value?: Price): Price; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreatePassiveSellOfferOp; @@ -7013,16 +6941,16 @@ export namespace xdr { static toXDR(value: CreatePassiveSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreatePassiveSellOfferOp; + static fromXDR(input: Buffer, format?: "raw"): CreatePassiveSellOfferOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreatePassiveSellOfferOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetOptionsOp { @@ -7056,9 +6984,9 @@ export namespace xdr { signer(value?: null | Signer): null | Signer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetOptionsOp; @@ -7068,13 +6996,13 @@ export namespace xdr { static toXDR(value: SetOptionsOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetOptionsOp; + static fromXDR(input: Buffer, format?: "raw"): SetOptionsOp; - static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsOp; + static fromXDR(input: string, format: "hex" | "base64"): SetOptionsOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustOp { @@ -7084,9 +7012,9 @@ export namespace xdr { limit(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustOp; @@ -7096,13 +7024,13 @@ export namespace xdr { static toXDR(value: ChangeTrustOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustOp; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustOp; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AllowTrustOp { @@ -7118,9 +7046,9 @@ export namespace xdr { authorize(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AllowTrustOp; @@ -7130,13 +7058,13 @@ export namespace xdr { static toXDR(value: AllowTrustOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AllowTrustOp; + static fromXDR(input: Buffer, format?: "raw"): AllowTrustOp; - static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustOp; + static fromXDR(input: string, format: "hex" | "base64"): AllowTrustOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageDataOp { @@ -7149,9 +7077,9 @@ export namespace xdr { dataValue(value?: null | Buffer): null | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageDataOp; @@ -7161,13 +7089,13 @@ export namespace xdr { static toXDR(value: ManageDataOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageDataOp; + static fromXDR(input: Buffer, format?: "raw"): ManageDataOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataOp; + static fromXDR(input: string, format: "hex" | "base64"): ManageDataOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BumpSequenceOp { @@ -7175,9 +7103,9 @@ export namespace xdr { bumpTo(value?: SequenceNumber): SequenceNumber; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BumpSequenceOp; @@ -7187,13 +7115,13 @@ export namespace xdr { static toXDR(value: BumpSequenceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceOp; + static fromXDR(input: Buffer, format?: "raw"): BumpSequenceOp; - static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceOp; + static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateClaimableBalanceOp { @@ -7209,9 +7137,9 @@ export namespace xdr { claimants(value?: Claimant[]): Claimant[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateClaimableBalanceOp; @@ -7221,16 +7149,16 @@ export namespace xdr { static toXDR(value: CreateClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimClaimableBalanceOp { @@ -7238,9 +7166,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimClaimableBalanceOp; @@ -7250,16 +7178,16 @@ export namespace xdr { static toXDR(value: ClaimClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BeginSponsoringFutureReservesOp { @@ -7267,9 +7195,9 @@ export namespace xdr { sponsoredId(value?: AccountId): AccountId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BeginSponsoringFutureReservesOp; @@ -7281,17 +7209,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): BeginSponsoringFutureReservesOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): BeginSponsoringFutureReservesOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipOpSigner { @@ -7301,9 +7229,9 @@ export namespace xdr { signerKey(value?: SignerKey): SignerKey; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipOpSigner; @@ -7313,16 +7241,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipOpSigner): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOpSigner; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOpSigner; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipOpSigner; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackOp { @@ -7338,9 +7266,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackOp; @@ -7350,13 +7278,13 @@ export namespace xdr { static toXDR(value: ClawbackOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackOp; + static fromXDR(input: Buffer, format?: "raw"): ClawbackOp; - static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackOp; + static fromXDR(input: string, format: "hex" | "base64"): ClawbackOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackClaimableBalanceOp { @@ -7364,9 +7292,9 @@ export namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackClaimableBalanceOp; @@ -7376,16 +7304,16 @@ export namespace xdr { static toXDR(value: ClawbackClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackClaimableBalanceOp; + static fromXDR(input: Buffer, format?: "raw"): ClawbackClaimableBalanceOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClawbackClaimableBalanceOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetTrustLineFlagsOp { @@ -7404,9 +7332,9 @@ export namespace xdr { setFlags(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetTrustLineFlagsOp; @@ -7416,16 +7344,16 @@ export namespace xdr { static toXDR(value: SetTrustLineFlagsOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsOp; + static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SetTrustLineFlagsOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolDepositOp { @@ -7447,9 +7375,9 @@ export namespace xdr { maxPrice(value?: Price): Price; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolDepositOp; @@ -7459,16 +7387,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolDepositOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositOp; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolDepositOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolWithdrawOp { @@ -7487,9 +7415,9 @@ export namespace xdr { minAmountB(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolWithdrawOp; @@ -7499,16 +7427,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolWithdrawOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawOp; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolWithdrawOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractIdPreimageFromAddress { @@ -7518,9 +7446,9 @@ export namespace xdr { salt(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractIdPreimageFromAddress; @@ -7532,17 +7460,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ContractIdPreimageFromAddress; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractIdPreimageFromAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateContractArgs { @@ -7555,9 +7483,9 @@ export namespace xdr { executable(value?: ContractExecutable): ContractExecutable; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateContractArgs; @@ -7567,13 +7495,13 @@ export namespace xdr { static toXDR(value: CreateContractArgs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgs; + static fromXDR(input: Buffer, format?: "raw"): CreateContractArgs; - static fromXDR(input: string, format: 'hex' | 'base64'): CreateContractArgs; + static fromXDR(input: string, format: "hex" | "base64"): CreateContractArgs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateContractArgsV2 { @@ -7589,9 +7517,9 @@ export namespace xdr { constructorArgs(value?: ScVal[]): ScVal[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateContractArgsV2; @@ -7601,16 +7529,16 @@ export namespace xdr { static toXDR(value: CreateContractArgsV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgsV2; + static fromXDR(input: Buffer, format?: "raw"): CreateContractArgsV2; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateContractArgsV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeContractArgs { @@ -7626,9 +7554,9 @@ export namespace xdr { args(value?: ScVal[]): ScVal[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeContractArgs; @@ -7638,13 +7566,13 @@ export namespace xdr { static toXDR(value: InvokeContractArgs): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeContractArgs; + static fromXDR(input: Buffer, format?: "raw"): InvokeContractArgs; - static fromXDR(input: string, format: 'hex' | 'base64'): InvokeContractArgs; + static fromXDR(input: string, format: "hex" | "base64"): InvokeContractArgs; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizedInvocation { @@ -7659,9 +7587,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation[], ): SorobanAuthorizedInvocation[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizedInvocation; @@ -7671,16 +7599,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizedInvocation): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedInvocation; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedInvocation; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizedInvocation; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAddressCredentials { @@ -7699,9 +7627,9 @@ export namespace xdr { signature(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAddressCredentials; @@ -7711,16 +7639,16 @@ export namespace xdr { static toXDR(value: SorobanAddressCredentials): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAddressCredentials; + static fromXDR(input: Buffer, format?: "raw"): SorobanAddressCredentials; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAddressCredentials; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizationEntry { @@ -7735,9 +7663,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizationEntry; @@ -7747,16 +7675,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizationEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizationEntry; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizationEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizationEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeHostFunctionOp { @@ -7769,9 +7697,9 @@ export namespace xdr { auth(value?: SorobanAuthorizationEntry[]): SorobanAuthorizationEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeHostFunctionOp; @@ -7781,16 +7709,16 @@ export namespace xdr { static toXDR(value: InvokeHostFunctionOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionOp; + static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InvokeHostFunctionOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtendFootprintTtlOp { @@ -7800,9 +7728,9 @@ export namespace xdr { extendTo(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtendFootprintTtlOp; @@ -7812,16 +7740,16 @@ export namespace xdr { static toXDR(value: ExtendFootprintTtlOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlOp; + static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ExtendFootprintTtlOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RestoreFootprintOp { @@ -7829,9 +7757,9 @@ export namespace xdr { ext(value?: ExtensionPoint): ExtensionPoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RestoreFootprintOp; @@ -7841,13 +7769,13 @@ export namespace xdr { static toXDR(value: RestoreFootprintOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintOp; + static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintOp; - static fromXDR(input: string, format: 'hex' | 'base64'): RestoreFootprintOp; + static fromXDR(input: string, format: "hex" | "base64"): RestoreFootprintOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Operation { @@ -7860,9 +7788,9 @@ export namespace xdr { body(value?: OperationBody): OperationBody; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Operation; @@ -7872,13 +7800,13 @@ export namespace xdr { static toXDR(value: Operation): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Operation; + static fromXDR(input: Buffer, format?: "raw"): Operation; - static fromXDR(input: string, format: 'hex' | 'base64'): Operation; + static fromXDR(input: string, format: "hex" | "base64"): Operation; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageOperationId { @@ -7894,9 +7822,9 @@ export namespace xdr { opNum(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageOperationId; @@ -7906,16 +7834,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageOperationId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageOperationId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageOperationId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageOperationId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageRevokeId { @@ -7937,9 +7865,9 @@ export namespace xdr { asset(value?: Asset): Asset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageRevokeId; @@ -7949,16 +7877,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageRevokeId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageRevokeId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageRevokeId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageRevokeId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageContractId { @@ -7971,9 +7899,9 @@ export namespace xdr { contractIdPreimage(value?: ContractIdPreimage): ContractIdPreimage; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageContractId; @@ -7983,16 +7911,16 @@ export namespace xdr { static toXDR(value: HashIdPreimageContractId): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageContractId; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageContractId; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageContractId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimageSorobanAuthorization { @@ -8013,9 +7941,9 @@ export namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimageSorobanAuthorization; @@ -8027,17 +7955,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): HashIdPreimageSorobanAuthorization; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HashIdPreimageSorobanAuthorization; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TimeBounds { @@ -8047,9 +7975,9 @@ export namespace xdr { maxTime(value?: TimePoint): TimePoint; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TimeBounds; @@ -8059,13 +7987,13 @@ export namespace xdr { static toXDR(value: TimeBounds): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TimeBounds; + static fromXDR(input: Buffer, format?: "raw"): TimeBounds; - static fromXDR(input: string, format: 'hex' | 'base64'): TimeBounds; + static fromXDR(input: string, format: "hex" | "base64"): TimeBounds; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerBounds { @@ -8075,9 +8003,9 @@ export namespace xdr { maxLedger(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerBounds; @@ -8087,13 +8015,13 @@ export namespace xdr { static toXDR(value: LedgerBounds): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerBounds; + static fromXDR(input: Buffer, format?: "raw"): LedgerBounds; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerBounds; + static fromXDR(input: string, format: "hex" | "base64"): LedgerBounds; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PreconditionsV2 { @@ -8118,9 +8046,9 @@ export namespace xdr { extraSigners(value?: SignerKey[]): SignerKey[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PreconditionsV2; @@ -8130,13 +8058,13 @@ export namespace xdr { static toXDR(value: PreconditionsV2): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PreconditionsV2; + static fromXDR(input: Buffer, format?: "raw"): PreconditionsV2; - static fromXDR(input: string, format: 'hex' | 'base64'): PreconditionsV2; + static fromXDR(input: string, format: "hex" | "base64"): PreconditionsV2; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerFootprint { @@ -8146,9 +8074,9 @@ export namespace xdr { readWrite(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerFootprint; @@ -8158,179 +8086,79 @@ export namespace xdr { static toXDR(value: LedgerFootprint): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerFootprint; - - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerFootprint; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static fromXDR(input: Buffer, format?: "raw"): LedgerFootprint; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ArchivalProofNode { - constructor(attributes: { index: number; hash: Buffer }); - - index(value?: number): number; - - hash(value?: Buffer): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ArchivalProofNode; - - static write(value: ArchivalProofNode, io: Buffer): void; - - static isValid(value: ArchivalProofNode): boolean; - - static toXDR(value: ArchivalProofNode): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProofNode; + static fromXDR(input: string, format: "hex" | "base64"): LedgerFootprint; - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProofNode; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class NonexistenceProofBody { - constructor(attributes: { - entriesToProve: ColdArchiveBucketEntry[]; - proofLevels: ArchivalProofNode[][]; - }); - - entriesToProve(value?: ColdArchiveBucketEntry[]): ColdArchiveBucketEntry[]; - - proofLevels(value?: ArchivalProofNode[][]): ArchivalProofNode[][]; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): NonexistenceProofBody; - - static write(value: NonexistenceProofBody, io: Buffer): void; - - static isValid(value: NonexistenceProofBody): boolean; - - static toXDR(value: NonexistenceProofBody): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): NonexistenceProofBody; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): NonexistenceProofBody; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ExistenceProofBody { + class SorobanResources { constructor(attributes: { - keysToProve: LedgerKey[]; - lowBoundEntries: ColdArchiveBucketEntry[]; - highBoundEntries: ColdArchiveBucketEntry[]; - proofLevels: ArchivalProofNode[][]; + footprint: LedgerFootprint; + instructions: number; + diskReadBytes: number; + writeBytes: number; }); - keysToProve(value?: LedgerKey[]): LedgerKey[]; - - lowBoundEntries(value?: ColdArchiveBucketEntry[]): ColdArchiveBucketEntry[]; - - highBoundEntries( - value?: ColdArchiveBucketEntry[], - ): ColdArchiveBucketEntry[]; - - proofLevels(value?: ArchivalProofNode[][]): ArchivalProofNode[][]; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ExistenceProofBody; - - static write(value: ExistenceProofBody, io: Buffer): void; - - static isValid(value: ExistenceProofBody): boolean; - - static toXDR(value: ExistenceProofBody): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ExistenceProofBody; - - static fromXDR(input: string, format: 'hex' | 'base64'): ExistenceProofBody; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } + footprint(value?: LedgerFootprint): LedgerFootprint; - class ArchivalProof { - constructor(attributes: { epoch: number; body: ArchivalProofBody }); + instructions(value?: number): number; - epoch(value?: number): number; + diskReadBytes(value?: number): number; - body(value?: ArchivalProofBody): ArchivalProofBody; + writeBytes(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): ArchivalProof; + static read(io: Buffer): SorobanResources; - static write(value: ArchivalProof, io: Buffer): void; + static write(value: SorobanResources, io: Buffer): void; - static isValid(value: ArchivalProof): boolean; + static isValid(value: SorobanResources): boolean; - static toXDR(value: ArchivalProof): Buffer; + static toXDR(value: SorobanResources): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProof; + static fromXDR(input: Buffer, format?: "raw"): SorobanResources; - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProof; + static fromXDR(input: string, format: "hex" | "base64"): SorobanResources; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } - class SorobanResources { - constructor(attributes: { - footprint: LedgerFootprint; - instructions: number; - readBytes: number; - writeBytes: number; - }); - - footprint(value?: LedgerFootprint): LedgerFootprint; - - instructions(value?: number): number; + class SorobanResourcesExtV0 { + constructor(attributes: { archivedSorobanEntries: number[] }); - readBytes(value?: number): number; + archivedSorobanEntries(value?: number[]): number[]; - writeBytes(value?: number): number; + toXDR(format?: "raw"): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format: "hex" | "base64"): string; - toXDR(format: 'hex' | 'base64'): string; + static read(io: Buffer): SorobanResourcesExtV0; - static read(io: Buffer): SorobanResources; + static write(value: SorobanResourcesExtV0, io: Buffer): void; - static write(value: SorobanResources, io: Buffer): void; + static isValid(value: SorobanResourcesExtV0): boolean; - static isValid(value: SorobanResources): boolean; + static toXDR(value: SorobanResourcesExtV0): Buffer; - static toXDR(value: SorobanResources): Buffer; + static fromXDR(input: Buffer, format?: "raw"): SorobanResourcesExtV0; - static fromXDR(input: Buffer, format?: 'raw'): SorobanResources; - - static fromXDR(input: string, format: 'hex' | 'base64'): SorobanResources; + static fromXDR( + input: string, + format: "hex" | "base64", + ): SorobanResourcesExtV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionData { @@ -8346,9 +8174,9 @@ export namespace xdr { resourceFee(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionData; @@ -8358,16 +8186,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionData; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionData; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0 { @@ -8395,9 +8223,9 @@ export namespace xdr { ext(value?: TransactionV0Ext): TransactionV0Ext; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0; @@ -8407,13 +8235,13 @@ export namespace xdr { static toXDR(value: TransactionV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0; + static fromXDR(input: string, format: "hex" | "base64"): TransactionV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0Envelope { @@ -8426,9 +8254,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0Envelope; @@ -8438,16 +8266,16 @@ export namespace xdr { static toXDR(value: TransactionV0Envelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Envelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0Envelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionV0Envelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Transaction { @@ -8475,9 +8303,9 @@ export namespace xdr { ext(value?: TransactionExt): TransactionExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Transaction; @@ -8487,13 +8315,13 @@ export namespace xdr { static toXDR(value: Transaction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Transaction; + static fromXDR(input: Buffer, format?: "raw"): Transaction; - static fromXDR(input: string, format: 'hex' | 'base64'): Transaction; + static fromXDR(input: string, format: "hex" | "base64"): Transaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV1Envelope { @@ -8506,9 +8334,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV1Envelope; @@ -8518,16 +8346,16 @@ export namespace xdr { static toXDR(value: TransactionV1Envelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV1Envelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionV1Envelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionV1Envelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransaction { @@ -8546,9 +8374,9 @@ export namespace xdr { ext(value?: FeeBumpTransactionExt): FeeBumpTransactionExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransaction; @@ -8558,13 +8386,13 @@ export namespace xdr { static toXDR(value: FeeBumpTransaction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransaction; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransaction; - static fromXDR(input: string, format: 'hex' | 'base64'): FeeBumpTransaction; + static fromXDR(input: string, format: "hex" | "base64"): FeeBumpTransaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionEnvelope { @@ -8577,9 +8405,9 @@ export namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionEnvelope; @@ -8589,16 +8417,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionEnvelope; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionEnvelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSignaturePayload { @@ -8613,9 +8441,9 @@ export namespace xdr { value?: TransactionSignaturePayloadTaggedTransaction, ): TransactionSignaturePayloadTaggedTransaction; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSignaturePayload; @@ -8625,16 +8453,16 @@ export namespace xdr { static toXDR(value: TransactionSignaturePayload): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionSignaturePayload; + static fromXDR(input: Buffer, format?: "raw"): TransactionSignaturePayload; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionSignaturePayload; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimOfferAtomV0 { @@ -8659,9 +8487,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimOfferAtomV0; @@ -8671,13 +8499,13 @@ export namespace xdr { static toXDR(value: ClaimOfferAtomV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtomV0; + static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtomV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtomV0; + static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtomV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimOfferAtom { @@ -8702,9 +8530,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimOfferAtom; @@ -8714,13 +8542,13 @@ export namespace xdr { static toXDR(value: ClaimOfferAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimLiquidityAtom { @@ -8742,9 +8570,9 @@ export namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimLiquidityAtom; @@ -8754,13 +8582,13 @@ export namespace xdr { static toXDR(value: ClaimLiquidityAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimLiquidityAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimLiquidityAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimLiquidityAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimLiquidityAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SimplePaymentResult { @@ -8776,9 +8604,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SimplePaymentResult; @@ -8788,16 +8616,16 @@ export namespace xdr { static toXDR(value: SimplePaymentResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SimplePaymentResult; + static fromXDR(input: Buffer, format?: "raw"): SimplePaymentResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SimplePaymentResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveResultSuccess { @@ -8807,9 +8635,9 @@ export namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveResultSuccess; @@ -8824,17 +8652,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictReceiveResultSuccess; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveResultSuccess; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendResultSuccess { @@ -8844,9 +8672,9 @@ export namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendResultSuccess; @@ -8858,17 +8686,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictSendResultSuccess; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendResultSuccess; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageOfferSuccessResult { @@ -8881,9 +8709,9 @@ export namespace xdr { offer(value?: ManageOfferSuccessResultOffer): ManageOfferSuccessResultOffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageOfferSuccessResult; @@ -8893,16 +8721,16 @@ export namespace xdr { static toXDR(value: ManageOfferSuccessResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageOfferSuccessResult; + static fromXDR(input: Buffer, format?: "raw"): ManageOfferSuccessResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageOfferSuccessResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InflationPayout { @@ -8912,9 +8740,9 @@ export namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InflationPayout; @@ -8924,13 +8752,13 @@ export namespace xdr { static toXDR(value: InflationPayout): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InflationPayout; + static fromXDR(input: Buffer, format?: "raw"): InflationPayout; - static fromXDR(input: string, format: 'hex' | 'base64'): InflationPayout; + static fromXDR(input: string, format: "hex" | "base64"): InflationPayout; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResult { @@ -8946,9 +8774,9 @@ export namespace xdr { ext(value?: InnerTransactionResultExt): InnerTransactionResultExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResult; @@ -8958,16 +8786,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResult; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultPair { @@ -8980,9 +8808,9 @@ export namespace xdr { result(value?: InnerTransactionResult): InnerTransactionResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultPair; @@ -8992,16 +8820,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultPair; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultPair; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultPair; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResult { @@ -9017,9 +8845,9 @@ export namespace xdr { ext(value?: TransactionResultExt): TransactionResultExt; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResult; @@ -9029,13 +8857,13 @@ export namespace xdr { static toXDR(value: TransactionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResult; + static fromXDR(input: Buffer, format?: "raw"): TransactionResult; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionResult; + static fromXDR(input: string, format: "hex" | "base64"): TransactionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignerKeyEd25519SignedPayload { @@ -9045,9 +8873,9 @@ export namespace xdr { payload(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignerKeyEd25519SignedPayload; @@ -9059,17 +8887,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): SignerKeyEd25519SignedPayload; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SignerKeyEd25519SignedPayload; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Curve25519Secret { @@ -9077,9 +8905,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Curve25519Secret; @@ -9089,13 +8917,13 @@ export namespace xdr { static toXDR(value: Curve25519Secret): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Curve25519Secret; + static fromXDR(input: Buffer, format?: "raw"): Curve25519Secret; - static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Secret; + static fromXDR(input: string, format: "hex" | "base64"): Curve25519Secret; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Curve25519Public { @@ -9103,9 +8931,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Curve25519Public; @@ -9115,13 +8943,13 @@ export namespace xdr { static toXDR(value: Curve25519Public): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Curve25519Public; + static fromXDR(input: Buffer, format?: "raw"): Curve25519Public; - static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Public; + static fromXDR(input: string, format: "hex" | "base64"): Curve25519Public; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HmacSha256Key { @@ -9129,9 +8957,9 @@ export namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HmacSha256Key; @@ -9141,13 +8969,13 @@ export namespace xdr { static toXDR(value: HmacSha256Key): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Key; + static fromXDR(input: Buffer, format?: "raw"): HmacSha256Key; - static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Key; + static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Key; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HmacSha256Mac { @@ -9155,9 +8983,9 @@ export namespace xdr { mac(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HmacSha256Mac; @@ -9167,13 +8995,13 @@ export namespace xdr { static toXDR(value: HmacSha256Mac): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Mac; + static fromXDR(input: Buffer, format?: "raw"): HmacSha256Mac; - static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Mac; + static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Mac; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ShortHashSeed { @@ -9181,9 +9009,9 @@ export namespace xdr { seed(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ShortHashSeed; @@ -9193,13 +9021,13 @@ export namespace xdr { static toXDR(value: ShortHashSeed): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ShortHashSeed; + static fromXDR(input: Buffer, format?: "raw"): ShortHashSeed; - static fromXDR(input: string, format: 'hex' | 'base64'): ShortHashSeed; + static fromXDR(input: string, format: "hex" | "base64"): ShortHashSeed; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SerializedBinaryFuseFilter { @@ -9233,9 +9061,9 @@ export namespace xdr { fingerprints(value?: Buffer): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SerializedBinaryFuseFilter; @@ -9245,16 +9073,16 @@ export namespace xdr { static toXDR(value: SerializedBinaryFuseFilter): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SerializedBinaryFuseFilter; + static fromXDR(input: Buffer, format?: "raw"): SerializedBinaryFuseFilter; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SerializedBinaryFuseFilter; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class UInt128Parts { @@ -9264,9 +9092,9 @@ export namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): UInt128Parts; @@ -9276,13 +9104,13 @@ export namespace xdr { static toXDR(value: UInt128Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UInt128Parts; + static fromXDR(input: Buffer, format?: "raw"): UInt128Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): UInt128Parts; + static fromXDR(input: string, format: "hex" | "base64"): UInt128Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Int128Parts { @@ -9292,9 +9120,9 @@ export namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Int128Parts; @@ -9304,13 +9132,13 @@ export namespace xdr { static toXDR(value: Int128Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Int128Parts; + static fromXDR(input: Buffer, format?: "raw"): Int128Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): Int128Parts; + static fromXDR(input: string, format: "hex" | "base64"): Int128Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class UInt256Parts { @@ -9329,9 +9157,9 @@ export namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): UInt256Parts; @@ -9341,13 +9169,13 @@ export namespace xdr { static toXDR(value: UInt256Parts): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): UInt256Parts; + static fromXDR(input: Buffer, format?: "raw"): UInt256Parts; - static fromXDR(input: string, format: 'hex' | 'base64'): UInt256Parts; + static fromXDR(input: string, format: "hex" | "base64"): UInt256Parts; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Int256Parts { @@ -9366,25 +9194,56 @@ export namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): Int256Parts; + + static write(value: Int256Parts, io: Buffer): void; + + static isValid(value: Int256Parts): boolean; + + static toXDR(value: Int256Parts): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): Int256Parts; + + static fromXDR(input: string, format: "hex" | "base64"): Int256Parts; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class MuxedEd25519Account { + constructor(attributes: { id: Uint64; ed25519: Buffer }); + + id(value?: Uint64): Uint64; + + ed25519(value?: Buffer): Buffer; + + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; - static read(io: Buffer): Int256Parts; + static read(io: Buffer): MuxedEd25519Account; - static write(value: Int256Parts, io: Buffer): void; + static write(value: MuxedEd25519Account, io: Buffer): void; - static isValid(value: Int256Parts): boolean; + static isValid(value: MuxedEd25519Account): boolean; - static toXDR(value: Int256Parts): Buffer; + static toXDR(value: MuxedEd25519Account): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Int256Parts; + static fromXDR(input: Buffer, format?: "raw"): MuxedEd25519Account; - static fromXDR(input: string, format: 'hex' | 'base64'): Int256Parts; + static fromXDR( + input: string, + format: "hex" | "base64", + ): MuxedEd25519Account; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScNonceKey { @@ -9392,9 +9251,9 @@ export namespace xdr { nonce(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScNonceKey; @@ -9404,13 +9263,13 @@ export namespace xdr { static toXDR(value: ScNonceKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScNonceKey; + static fromXDR(input: Buffer, format?: "raw"): ScNonceKey; - static fromXDR(input: string, format: 'hex' | 'base64'): ScNonceKey; + static fromXDR(input: string, format: "hex" | "base64"): ScNonceKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScContractInstance { @@ -9423,9 +9282,9 @@ export namespace xdr { storage(value?: null | ScMapEntry[]): null | ScMapEntry[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScContractInstance; @@ -9435,13 +9294,13 @@ export namespace xdr { static toXDR(value: ScContractInstance): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScContractInstance; + static fromXDR(input: Buffer, format?: "raw"): ScContractInstance; - static fromXDR(input: string, format: 'hex' | 'base64'): ScContractInstance; + static fromXDR(input: string, format: "hex" | "base64"): ScContractInstance; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMapEntry { @@ -9451,9 +9310,9 @@ export namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMapEntry; @@ -9463,13 +9322,13 @@ export namespace xdr { static toXDR(value: ScMapEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMapEntry; + static fromXDR(input: Buffer, format?: "raw"): ScMapEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMapEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScMapEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScEnvMetaEntryInterfaceVersion { @@ -9479,9 +9338,9 @@ export namespace xdr { preRelease(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScEnvMetaEntryInterfaceVersion; @@ -9493,17 +9352,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ScEnvMetaEntryInterfaceVersion; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScEnvMetaEntryInterfaceVersion; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMetaV0 { @@ -9513,9 +9372,9 @@ export namespace xdr { val(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMetaV0; @@ -9525,13 +9384,13 @@ export namespace xdr { static toXDR(value: ScMetaV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMetaV0; + static fromXDR(input: Buffer, format?: "raw"): ScMetaV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaV0; + static fromXDR(input: string, format: "hex" | "base64"): ScMetaV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeOption { @@ -9539,9 +9398,9 @@ export namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeOption; @@ -9551,13 +9410,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeOption): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeOption; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeOption; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeOption; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeOption; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeResult { @@ -9570,9 +9429,9 @@ export namespace xdr { errorType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeResult; @@ -9582,13 +9441,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeResult; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeResult; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeVec { @@ -9596,9 +9455,9 @@ export namespace xdr { elementType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeVec; @@ -9608,13 +9467,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeVec): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeVec; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeVec; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeVec; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeVec; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeMap { @@ -9627,9 +9486,9 @@ export namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeMap; @@ -9639,13 +9498,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeMap): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeMap; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeMap; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeMap; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeMap; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeTuple { @@ -9653,9 +9512,9 @@ export namespace xdr { valueTypes(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeTuple; @@ -9665,13 +9524,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeTuple): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeTuple; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeTuple; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeTuple; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeTuple; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeBytesN { @@ -9679,9 +9538,9 @@ export namespace xdr { n(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeBytesN; @@ -9691,13 +9550,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeBytesN): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeBytesN; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeBytesN; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeBytesN; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeBytesN; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeUdt { @@ -9705,9 +9564,9 @@ export namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeUdt; @@ -9717,13 +9576,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeUdt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeUdt; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeUdt; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeUdt; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeUdt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtStructFieldV0 { @@ -9739,9 +9598,9 @@ export namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtStructFieldV0; @@ -9751,16 +9610,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtStructFieldV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructFieldV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructFieldV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtStructFieldV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtStructV0 { @@ -9779,9 +9638,9 @@ export namespace xdr { fields(value?: ScSpecUdtStructFieldV0[]): ScSpecUdtStructFieldV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtStructV0; @@ -9791,13 +9650,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtStructV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtStructV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtStructV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseVoidV0 { @@ -9807,9 +9666,9 @@ export namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseVoidV0; @@ -9819,16 +9678,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseVoidV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseVoidV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseVoidV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseVoidV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseTupleV0 { @@ -9844,9 +9703,9 @@ export namespace xdr { type(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseTupleV0; @@ -9856,16 +9715,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseTupleV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseTupleV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseTupleV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseTupleV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionV0 { @@ -9884,9 +9743,9 @@ export namespace xdr { cases(value?: ScSpecUdtUnionCaseV0[]): ScSpecUdtUnionCaseV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionV0; @@ -9896,13 +9755,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtUnionV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtUnionV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtEnumCaseV0 { @@ -9918,9 +9777,9 @@ export namespace xdr { value(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtEnumCaseV0; @@ -9930,16 +9789,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtEnumCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtEnumV0 { @@ -9958,9 +9817,9 @@ export namespace xdr { cases(value?: ScSpecUdtEnumCaseV0[]): ScSpecUdtEnumCaseV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtEnumV0; @@ -9970,13 +9829,13 @@ export namespace xdr { static toXDR(value: ScSpecUdtEnumV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtEnumV0; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtEnumV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtErrorEnumCaseV0 { @@ -9992,9 +9851,9 @@ export namespace xdr { value(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtErrorEnumCaseV0; @@ -10004,16 +9863,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtErrorEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtErrorEnumCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtErrorEnumV0 { @@ -10032,9 +9891,9 @@ export namespace xdr { cases(value?: ScSpecUdtErrorEnumCaseV0[]): ScSpecUdtErrorEnumCaseV0[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtErrorEnumV0; @@ -10044,16 +9903,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtErrorEnumV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtErrorEnumV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecFunctionInputV0 { @@ -10069,9 +9928,9 @@ export namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecFunctionInputV0; @@ -10081,16 +9940,16 @@ export namespace xdr { static toXDR(value: ScSpecFunctionInputV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionInputV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionInputV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecFunctionInputV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecFunctionV0 { @@ -10109,9 +9968,9 @@ export namespace xdr { outputs(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecFunctionV0; @@ -10121,13 +9980,93 @@ export namespace xdr { static toXDR(value: ScSpecFunctionV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionV0; + + static fromXDR(input: string, format: "hex" | "base64"): ScSpecFunctionV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ScSpecEventParamV0 { + constructor(attributes: { + doc: string | Buffer; + name: string | Buffer; + type: ScSpecTypeDef; + location: ScSpecEventParamLocationV0; + }); + + doc(value?: string | Buffer): string | Buffer; + + name(value?: string | Buffer): string | Buffer; + + type(value?: ScSpecTypeDef): ScSpecTypeDef; + + location(value?: ScSpecEventParamLocationV0): ScSpecEventParamLocationV0; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ScSpecEventParamV0; + + static write(value: ScSpecEventParamV0, io: Buffer): void; + + static isValid(value: ScSpecEventParamV0): boolean; + + static toXDR(value: ScSpecEventParamV0): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ScSpecEventParamV0; + + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventParamV0; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecFunctionV0; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ScSpecEventV0 { + constructor(attributes: { + doc: string | Buffer; + lib: string | Buffer; + name: string | Buffer; + prefixTopics: (string | Buffer)[]; + params: ScSpecEventParamV0[]; + dataFormat: ScSpecEventDataFormat; + }); + + doc(value?: string | Buffer): string | Buffer; + + lib(value?: string | Buffer): string | Buffer; + + name(value?: string | Buffer): string | Buffer; + + prefixTopics(value?: (string | Buffer)[]): (string | Buffer)[]; + + params(value?: ScSpecEventParamV0[]): ScSpecEventParamV0[]; + + dataFormat(value?: ScSpecEventDataFormat): ScSpecEventDataFormat; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ScSpecEventV0; + + static write(value: ScSpecEventV0, io: Buffer): void; + + static isValid(value: ScSpecEventV0): boolean; + + static toXDR(value: ScSpecEventV0): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ScSpecEventV0; + + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractExecutionLanesV0 { @@ -10135,9 +10074,9 @@ export namespace xdr { ledgerMaxTxCount(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractExecutionLanesV0; @@ -10152,17 +10091,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractExecutionLanesV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractExecutionLanesV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractComputeV0 { @@ -10181,9 +10120,9 @@ export namespace xdr { txMemoryLimit(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractComputeV0; @@ -10195,27 +10134,27 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractComputeV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractComputeV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractParallelComputeV0 { - constructor(attributes: { ledgerMaxParallelThreads: number }); + constructor(attributes: { ledgerMaxDependentTxClusters: number }); - ledgerMaxParallelThreads(value?: number): number; + ledgerMaxDependentTxClusters(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractParallelComputeV0; @@ -10230,71 +10169,71 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractParallelComputeV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractParallelComputeV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractLedgerCostV0 { constructor(attributes: { - ledgerMaxReadLedgerEntries: number; - ledgerMaxReadBytes: number; + ledgerMaxDiskReadEntries: number; + ledgerMaxDiskReadBytes: number; ledgerMaxWriteLedgerEntries: number; ledgerMaxWriteBytes: number; - txMaxReadLedgerEntries: number; - txMaxReadBytes: number; + txMaxDiskReadEntries: number; + txMaxDiskReadBytes: number; txMaxWriteLedgerEntries: number; txMaxWriteBytes: number; - feeReadLedgerEntry: Int64; + feeDiskReadLedgerEntry: Int64; feeWriteLedgerEntry: Int64; - feeRead1Kb: Int64; - bucketListTargetSizeBytes: Int64; - writeFee1KbBucketListLow: Int64; - writeFee1KbBucketListHigh: Int64; - bucketListWriteFeeGrowthFactor: number; + feeDiskRead1Kb: Int64; + sorobanStateTargetSizeBytes: Int64; + rentFee1KbSorobanStateSizeLow: Int64; + rentFee1KbSorobanStateSizeHigh: Int64; + sorobanStateRentFeeGrowthFactor: number; }); - ledgerMaxReadLedgerEntries(value?: number): number; + ledgerMaxDiskReadEntries(value?: number): number; - ledgerMaxReadBytes(value?: number): number; + ledgerMaxDiskReadBytes(value?: number): number; ledgerMaxWriteLedgerEntries(value?: number): number; ledgerMaxWriteBytes(value?: number): number; - txMaxReadLedgerEntries(value?: number): number; + txMaxDiskReadEntries(value?: number): number; - txMaxReadBytes(value?: number): number; + txMaxDiskReadBytes(value?: number): number; txMaxWriteLedgerEntries(value?: number): number; txMaxWriteBytes(value?: number): number; - feeReadLedgerEntry(value?: Int64): Int64; + feeDiskReadLedgerEntry(value?: Int64): Int64; feeWriteLedgerEntry(value?: Int64): Int64; - feeRead1Kb(value?: Int64): Int64; + feeDiskRead1Kb(value?: Int64): Int64; - bucketListTargetSizeBytes(value?: Int64): Int64; + sorobanStateTargetSizeBytes(value?: Int64): Int64; - writeFee1KbBucketListLow(value?: Int64): Int64; + rentFee1KbSorobanStateSizeLow(value?: Int64): Int64; - writeFee1KbBucketListHigh(value?: Int64): Int64; + rentFee1KbSorobanStateSizeHigh(value?: Int64): Int64; - bucketListWriteFeeGrowthFactor(value?: number): number; + sorobanStateRentFeeGrowthFactor(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractLedgerCostV0; @@ -10306,17 +10245,54 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractLedgerCostV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractLedgerCostV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ConfigSettingContractLedgerCostExtV0 { + constructor(attributes: { + txMaxFootprintEntries: number; + feeWrite1Kb: Int64; + }); + + txMaxFootprintEntries(value?: number): number; + + feeWrite1Kb(value?: Int64): Int64; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ConfigSettingContractLedgerCostExtV0; + + static write(value: ConfigSettingContractLedgerCostExtV0, io: Buffer): void; + + static isValid(value: ConfigSettingContractLedgerCostExtV0): boolean; + + static toXDR(value: ConfigSettingContractLedgerCostExtV0): Buffer; + + static fromXDR( + input: Buffer, + format?: "raw", + ): ConfigSettingContractLedgerCostExtV0; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): ConfigSettingContractLedgerCostExtV0; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractHistoricalDataV0 { @@ -10324,9 +10300,9 @@ export namespace xdr { feeHistorical1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractHistoricalDataV0; @@ -10341,17 +10317,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractHistoricalDataV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractHistoricalDataV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractEventsV0 { @@ -10364,9 +10340,9 @@ export namespace xdr { feeContractEvents1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractEventsV0; @@ -10378,17 +10354,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractEventsV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractEventsV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingContractBandwidthV0 { @@ -10404,9 +10380,9 @@ export namespace xdr { feeTxSize1Kb(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingContractBandwidthV0; @@ -10418,17 +10394,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ConfigSettingContractBandwidthV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ConfigSettingContractBandwidthV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCostParamEntry { @@ -10444,9 +10420,9 @@ export namespace xdr { linearTerm(value?: Int64): Int64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCostParamEntry; @@ -10456,16 +10432,16 @@ export namespace xdr { static toXDR(value: ContractCostParamEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCostParamEntry; + static fromXDR(input: Buffer, format?: "raw"): ContractCostParamEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCostParamEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StateArchivalSettings { @@ -10476,8 +10452,8 @@ export namespace xdr { persistentRentRateDenominator: Int64; tempRentRateDenominator: Int64; maxEntriesToArchive: number; - bucketListSizeWindowSampleSize: number; - bucketListWindowSamplePeriod: number; + liveSorobanStateSizeWindowSampleSize: number; + liveSorobanStateSizeWindowSamplePeriod: number; evictionScanSize: number; startingEvictionScanLevel: number; }); @@ -10494,17 +10470,17 @@ export namespace xdr { maxEntriesToArchive(value?: number): number; - bucketListSizeWindowSampleSize(value?: number): number; + liveSorobanStateSizeWindowSampleSize(value?: number): number; - bucketListWindowSamplePeriod(value?: number): number; + liveSorobanStateSizeWindowSamplePeriod(value?: number): number; evictionScanSize(value?: number): number; startingEvictionScanLevel(value?: number): number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StateArchivalSettings; @@ -10514,16 +10490,16 @@ export namespace xdr { static toXDR(value: StateArchivalSettings): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StateArchivalSettings; + static fromXDR(input: Buffer, format?: "raw"): StateArchivalSettings; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): StateArchivalSettings; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class EvictionIterator { @@ -10539,9 +10515,9 @@ export namespace xdr { bucketFileOffset(value?: Uint64): Uint64; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): EvictionIterator; @@ -10551,13 +10527,93 @@ export namespace xdr { static toXDR(value: EvictionIterator): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): EvictionIterator; + static fromXDR(input: Buffer, format?: "raw"): EvictionIterator; + + static fromXDR(input: string, format: "hex" | "base64"): EvictionIterator; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ConfigSettingScpTiming { + constructor(attributes: { + ledgerTargetCloseTimeMilliseconds: number; + nominationTimeoutInitialMilliseconds: number; + nominationTimeoutIncrementMilliseconds: number; + ballotTimeoutInitialMilliseconds: number; + ballotTimeoutIncrementMilliseconds: number; + }); + + ledgerTargetCloseTimeMilliseconds(value?: number): number; + + nominationTimeoutInitialMilliseconds(value?: number): number; + + nominationTimeoutIncrementMilliseconds(value?: number): number; + + ballotTimeoutInitialMilliseconds(value?: number): number; + + ballotTimeoutIncrementMilliseconds(value?: number): number; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ConfigSettingScpTiming; + + static write(value: ConfigSettingScpTiming, io: Buffer): void; + + static isValid(value: ConfigSettingScpTiming): boolean; + + static toXDR(value: ConfigSettingScpTiming): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ConfigSettingScpTiming; - static fromXDR(input: string, format: 'hex' | 'base64'): EvictionIterator; + static fromXDR( + input: string, + format: "hex" | "base64", + ): ConfigSettingScpTiming; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class LedgerCloseMetaBatch { + constructor(attributes: { + startSequence: number; + endSequence: number; + ledgerCloseMeta: LedgerCloseMeta[]; + }); + + startSequence(value?: number): number; + + endSequence(value?: number): number; + + ledgerCloseMeta(value?: LedgerCloseMeta[]): LedgerCloseMeta[]; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): LedgerCloseMetaBatch; + + static write(value: LedgerCloseMetaBatch, io: Buffer): void; + + static isValid(value: LedgerCloseMetaBatch): boolean; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static toXDR(value: LedgerCloseMetaBatch): Buffer; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaBatch; + + static fromXDR( + input: string, + format: "hex" | "base64", + ): LedgerCloseMetaBatch; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpStatementPledges { @@ -10587,9 +10643,9 @@ export namespace xdr { | ScpStatementExternalize | ScpNomination; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpStatementPledges; @@ -10599,16 +10655,16 @@ export namespace xdr { static toXDR(value: ScpStatementPledges): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPledges; + static fromXDR(input: Buffer, format?: "raw"): ScpStatementPledges; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScpStatementPledges; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AssetCode { @@ -10624,9 +10680,9 @@ export namespace xdr { value(): Buffer | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AssetCode; @@ -10636,13 +10692,13 @@ export namespace xdr { static toXDR(value: AssetCode): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AssetCode; + static fromXDR(input: Buffer, format?: "raw"): AssetCode; - static fromXDR(input: string, format: 'hex' | 'base64'): AssetCode; + static fromXDR(input: string, format: "hex" | "base64"): AssetCode; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Asset { @@ -10660,9 +10716,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Asset; @@ -10672,13 +10728,13 @@ export namespace xdr { static toXDR(value: Asset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Asset; + static fromXDR(input: Buffer, format?: "raw"): Asset; - static fromXDR(input: string, format: 'hex' | 'base64'): Asset; + static fromXDR(input: string, format: "hex" | "base64"): Asset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV2Ext { @@ -10692,9 +10748,9 @@ export namespace xdr { value(): AccountEntryExtensionV3 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV2Ext; @@ -10704,16 +10760,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExtensionV1Ext { @@ -10727,9 +10783,9 @@ export namespace xdr { value(): AccountEntryExtensionV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExtensionV1Ext; @@ -10739,16 +10795,16 @@ export namespace xdr { static toXDR(value: AccountEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AccountEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountEntryExt { @@ -10762,9 +10818,9 @@ export namespace xdr { value(): AccountEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountEntryExt; @@ -10774,13 +10830,13 @@ export namespace xdr { static toXDR(value: AccountEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExt; + static fromXDR(input: Buffer, format?: "raw"): AccountEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): AccountEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineAsset { @@ -10802,9 +10858,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | PoolId | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineAsset; @@ -10814,13 +10870,13 @@ export namespace xdr { static toXDR(value: TrustLineAsset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineAsset; + static fromXDR(input: Buffer, format?: "raw"): TrustLineAsset; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineAsset; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineAsset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExtensionV2Ext { @@ -10830,9 +10886,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExtensionV2Ext; @@ -10842,16 +10898,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryV1Ext { @@ -10865,9 +10921,9 @@ export namespace xdr { value(): TrustLineEntryExtensionV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryV1Ext; @@ -10877,16 +10933,16 @@ export namespace xdr { static toXDR(value: TrustLineEntryV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1Ext; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TrustLineEntryV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TrustLineEntryExt { @@ -10900,9 +10956,9 @@ export namespace xdr { value(): TrustLineEntryV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TrustLineEntryExt; @@ -10912,13 +10968,13 @@ export namespace xdr { static toXDR(value: TrustLineEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExt; + static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OfferEntryExt { @@ -10928,9 +10984,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OfferEntryExt; @@ -10940,13 +10996,13 @@ export namespace xdr { static toXDR(value: OfferEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OfferEntryExt; + static fromXDR(input: Buffer, format?: "raw"): OfferEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): OfferEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class DataEntryExt { @@ -10956,9 +11012,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): DataEntryExt; @@ -10968,13 +11024,13 @@ export namespace xdr { static toXDR(value: DataEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): DataEntryExt; + static fromXDR(input: Buffer, format?: "raw"): DataEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): DataEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): DataEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimPredicate { @@ -11011,9 +11067,9 @@ export namespace xdr { | Int64 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimPredicate; @@ -11023,13 +11079,13 @@ export namespace xdr { static toXDR(value: ClaimPredicate): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimPredicate; + static fromXDR(input: Buffer, format?: "raw"): ClaimPredicate; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimPredicate; + static fromXDR(input: string, format: "hex" | "base64"): ClaimPredicate; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Claimant { @@ -11041,9 +11097,9 @@ export namespace xdr { value(): ClaimantV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Claimant; @@ -11053,43 +11109,13 @@ export namespace xdr { static toXDR(value: Claimant): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Claimant; - - static fromXDR(input: string, format: 'hex' | 'base64'): Claimant; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ClaimableBalanceId { - switch(): ClaimableBalanceIdType; - - v0(value?: Buffer): Buffer; - - static claimableBalanceIdTypeV0(value: Buffer): ClaimableBalanceId; - - value(): Buffer; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; - - static read(io: Buffer): ClaimableBalanceId; - - static write(value: ClaimableBalanceId, io: Buffer): void; - - static isValid(value: ClaimableBalanceId): boolean; - - static toXDR(value: ClaimableBalanceId): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceId; + static fromXDR(input: Buffer, format?: "raw"): Claimant; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimableBalanceId; + static fromXDR(input: string, format: "hex" | "base64"): Claimant; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExtensionV1Ext { @@ -11099,9 +11125,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1Ext; @@ -11113,17 +11139,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClaimableBalanceEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimableBalanceEntryExt { @@ -11139,9 +11165,9 @@ export namespace xdr { value(): ClaimableBalanceEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimableBalanceEntryExt; @@ -11151,16 +11177,16 @@ export namespace xdr { static toXDR(value: ClaimableBalanceEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntryExt; + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimableBalanceEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolEntryBody { @@ -11176,9 +11202,9 @@ export namespace xdr { value(): LiquidityPoolEntryConstantProduct; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolEntryBody; @@ -11188,16 +11214,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolEntryBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntryBody; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntryBody; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolEntryBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractCodeEntryExt { @@ -11211,9 +11237,9 @@ export namespace xdr { value(): ContractCodeEntryV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractCodeEntryExt; @@ -11223,16 +11249,16 @@ export namespace xdr { static toXDR(value: ContractCodeEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryExt; + static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ContractCodeEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExtensionV1Ext { @@ -11242,9 +11268,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExtensionV1Ext; @@ -11254,16 +11280,16 @@ export namespace xdr { static toXDR(value: LedgerEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryData { @@ -11321,9 +11347,9 @@ export namespace xdr { | ConfigSettingEntry | TtlEntry; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryData; @@ -11333,13 +11359,13 @@ export namespace xdr { static toXDR(value: LedgerEntryData): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryData; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryData; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryData; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryData; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryExt { @@ -11353,9 +11379,9 @@ export namespace xdr { value(): LedgerEntryExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryExt; @@ -11365,13 +11391,13 @@ export namespace xdr { static toXDR(value: LedgerEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerKey { @@ -11431,9 +11457,9 @@ export namespace xdr { | LedgerKeyConfigSetting | LedgerKeyTtl; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerKey; @@ -11443,13 +11469,13 @@ export namespace xdr { static toXDR(value: LedgerKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerKey; + static fromXDR(input: Buffer, format?: "raw"): LedgerKey; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKey; + static fromXDR(input: string, format: "hex" | "base64"): LedgerKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketMetadataExt { @@ -11463,9 +11489,9 @@ export namespace xdr { value(): BucketListType | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketMetadataExt; @@ -11475,13 +11501,13 @@ export namespace xdr { static toXDR(value: BucketMetadataExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketMetadataExt; + static fromXDR(input: Buffer, format?: "raw"): BucketMetadataExt; - static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadataExt; + static fromXDR(input: string, format: "hex" | "base64"): BucketMetadataExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BucketEntry { @@ -11503,9 +11529,9 @@ export namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BucketEntry; @@ -11515,13 +11541,13 @@ export namespace xdr { static toXDR(value: BucketEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BucketEntry; + static fromXDR(input: Buffer, format?: "raw"): BucketEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): BucketEntry; + static fromXDR(input: string, format: "hex" | "base64"): BucketEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HotArchiveBucketEntry { @@ -11537,15 +11563,13 @@ export namespace xdr { static hotArchiveLive(value: LedgerKey): HotArchiveBucketEntry; - static hotArchiveDeleted(value: LedgerKey): HotArchiveBucketEntry; - static hotArchiveMetaentry(value: BucketMetadata): HotArchiveBucketEntry; value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HotArchiveBucketEntry; @@ -11555,76 +11579,16 @@ export namespace xdr { static toXDR(value: HotArchiveBucketEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HotArchiveBucketEntry; + static fromXDR(input: Buffer, format?: "raw"): HotArchiveBucketEntry; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): HotArchiveBucketEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ColdArchiveBucketEntry { - switch(): ColdArchiveBucketEntryType; - - metaEntry(value?: BucketMetadata): BucketMetadata; - - archivedLeaf(value?: ColdArchiveArchivedLeaf): ColdArchiveArchivedLeaf; - - deletedLeaf(value?: ColdArchiveDeletedLeaf): ColdArchiveDeletedLeaf; - - boundaryLeaf(value?: ColdArchiveBoundaryLeaf): ColdArchiveBoundaryLeaf; - - hashEntry(value?: ColdArchiveHashEntry): ColdArchiveHashEntry; - - static coldArchiveMetaentry(value: BucketMetadata): ColdArchiveBucketEntry; - - static coldArchiveArchivedLeaf( - value: ColdArchiveArchivedLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveDeletedLeaf( - value: ColdArchiveDeletedLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveBoundaryLeaf( - value: ColdArchiveBoundaryLeaf, - ): ColdArchiveBucketEntry; - - static coldArchiveHash(value: ColdArchiveHashEntry): ColdArchiveBucketEntry; - - value(): - | BucketMetadata - | ColdArchiveArchivedLeaf - | ColdArchiveDeletedLeaf - | ColdArchiveBoundaryLeaf - | ColdArchiveHashEntry; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static read(io: Buffer): ColdArchiveBucketEntry; - - static write(value: ColdArchiveBucketEntry, io: Buffer): void; - - static isValid(value: ColdArchiveBucketEntry): boolean; - - static toXDR(value: ColdArchiveBucketEntry): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ColdArchiveBucketEntry; - - static fromXDR( - input: string, - format: 'hex' | 'base64', - ): ColdArchiveBucketEntry; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarValueExt { @@ -11642,9 +11606,9 @@ export namespace xdr { value(): LedgerCloseValueSignature | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarValueExt; @@ -11654,13 +11618,13 @@ export namespace xdr { static toXDR(value: StellarValueExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarValueExt; + static fromXDR(input: Buffer, format?: "raw"): StellarValueExt; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarValueExt; + static fromXDR(input: string, format: "hex" | "base64"): StellarValueExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExtensionV1Ext { @@ -11670,9 +11634,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExtensionV1Ext; @@ -11682,16 +11646,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1Ext; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1Ext; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderExtensionV1Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderExt { @@ -11705,9 +11669,9 @@ export namespace xdr { value(): LedgerHeaderExtensionV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderExt; @@ -11717,13 +11681,13 @@ export namespace xdr { static toXDR(value: LedgerHeaderExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeaderExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerHeaderExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerUpgrade { @@ -11766,9 +11730,9 @@ export namespace xdr { | ConfigUpgradeSetKey | number; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerUpgrade; @@ -11778,13 +11742,13 @@ export namespace xdr { static toXDR(value: LedgerUpgrade): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerUpgrade; + static fromXDR(input: Buffer, format?: "raw"): LedgerUpgrade; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerUpgrade; + static fromXDR(input: string, format: "hex" | "base64"): LedgerUpgrade; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TxSetComponent { @@ -11800,9 +11764,9 @@ export namespace xdr { value(): TxSetComponentTxsMaybeDiscountedFee; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TxSetComponent; @@ -11812,13 +11776,13 @@ export namespace xdr { static toXDR(value: TxSetComponent): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TxSetComponent; + static fromXDR(input: Buffer, format?: "raw"): TxSetComponent; - static fromXDR(input: string, format: 'hex' | 'base64'): TxSetComponent; + static fromXDR(input: string, format: "hex" | "base64"): TxSetComponent; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionPhase { @@ -11834,9 +11798,9 @@ export namespace xdr { value(): TxSetComponent[] | ParallelTxsComponent; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionPhase; @@ -11846,13 +11810,13 @@ export namespace xdr { static toXDR(value: TransactionPhase): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionPhase; + static fromXDR(input: Buffer, format?: "raw"): TransactionPhase; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionPhase; + static fromXDR(input: string, format: "hex" | "base64"): TransactionPhase; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class GeneralizedTransactionSet { @@ -11864,9 +11828,9 @@ export namespace xdr { value(): TransactionSetV1; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): GeneralizedTransactionSet; @@ -11876,16 +11840,16 @@ export namespace xdr { static toXDR(value: GeneralizedTransactionSet): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): GeneralizedTransactionSet; + static fromXDR(input: Buffer, format?: "raw"): GeneralizedTransactionSet; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): GeneralizedTransactionSet; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryEntryExt { @@ -11901,9 +11865,9 @@ export namespace xdr { value(): GeneralizedTransactionSet | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryEntryExt; @@ -11913,16 +11877,16 @@ export namespace xdr { static toXDR(value: TransactionHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntryExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionHistoryResultEntryExt { @@ -11932,9 +11896,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionHistoryResultEntryExt; @@ -11946,17 +11910,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionHistoryResultEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionHistoryResultEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerHeaderHistoryEntryExt { @@ -11966,9 +11930,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerHeaderHistoryEntryExt; @@ -11978,16 +11942,16 @@ export namespace xdr { static toXDR(value: LedgerHeaderHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntryExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntryExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LedgerHeaderHistoryEntryExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScpHistoryEntry { @@ -11999,9 +11963,9 @@ export namespace xdr { value(): ScpHistoryEntryV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScpHistoryEntry; @@ -12011,13 +11975,13 @@ export namespace xdr { static toXDR(value: ScpHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntry; + static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerEntryChange { @@ -12031,6 +11995,8 @@ export namespace xdr { state(value?: LedgerEntry): LedgerEntry; + restored(value?: LedgerEntry): LedgerEntry; + static ledgerEntryCreated(value: LedgerEntry): LedgerEntryChange; static ledgerEntryUpdated(value: LedgerEntry): LedgerEntryChange; @@ -12039,11 +12005,13 @@ export namespace xdr { static ledgerEntryState(value: LedgerEntry): LedgerEntryChange; - value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry; + static ledgerEntryRestored(value: LedgerEntry): LedgerEntryChange; - toXDR(format?: 'raw'): Buffer; + value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry | LedgerEntry; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerEntryChange; @@ -12053,13 +12021,13 @@ export namespace xdr { static toXDR(value: LedgerEntryChange): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryChange; + static fromXDR(input: Buffer, format?: "raw"): LedgerEntryChange; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryChange; + static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryChange; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractEventBody { @@ -12071,9 +12039,9 @@ export namespace xdr { value(): ContractEventV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractEventBody; @@ -12083,13 +12051,13 @@ export namespace xdr { static toXDR(value: ContractEventBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractEventBody; + static fromXDR(input: Buffer, format?: "raw"): ContractEventBody; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventBody; + static fromXDR(input: string, format: "hex" | "base64"): ContractEventBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionMetaExt { @@ -12103,9 +12071,9 @@ export namespace xdr { value(): SorobanTransactionMetaExtV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionMetaExt; @@ -12115,16 +12083,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionMetaExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExt; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionMetaExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionMeta { @@ -12138,6 +12106,8 @@ export namespace xdr { v3(value?: TransactionMetaV3): TransactionMetaV3; + v4(value?: TransactionMetaV4): TransactionMetaV4; + static 0(value: OperationMeta[]): TransactionMeta; static 1(value: TransactionMetaV1): TransactionMeta; @@ -12146,15 +12116,18 @@ export namespace xdr { static 3(value: TransactionMetaV3): TransactionMeta; + static 4(value: TransactionMetaV4): TransactionMeta; + value(): | OperationMeta[] | TransactionMetaV1 | TransactionMetaV2 - | TransactionMetaV3; + | TransactionMetaV3 + | TransactionMetaV4; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionMeta; @@ -12164,13 +12137,13 @@ export namespace xdr { static toXDR(value: TransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionMeta; + static fromXDR(input: Buffer, format?: "raw"): TransactionMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMeta; + static fromXDR(input: string, format: "hex" | "base64"): TransactionMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMetaExt { @@ -12184,9 +12157,9 @@ export namespace xdr { value(): LedgerCloseMetaExtV1 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMetaExt; @@ -12196,13 +12169,13 @@ export namespace xdr { static toXDR(value: LedgerCloseMetaExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExt; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExt; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaExt; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LedgerCloseMeta { @@ -12212,15 +12185,19 @@ export namespace xdr { v1(value?: LedgerCloseMetaV1): LedgerCloseMetaV1; + v2(value?: LedgerCloseMetaV2): LedgerCloseMetaV2; + static 0(value: LedgerCloseMetaV0): LedgerCloseMeta; static 1(value: LedgerCloseMetaV1): LedgerCloseMeta; - value(): LedgerCloseMetaV0 | LedgerCloseMetaV1; + static 2(value: LedgerCloseMetaV2): LedgerCloseMeta; - toXDR(format?: 'raw'): Buffer; + value(): LedgerCloseMetaV0 | LedgerCloseMetaV1 | LedgerCloseMetaV2; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LedgerCloseMeta; @@ -12230,13 +12207,13 @@ export namespace xdr { static toXDR(value: LedgerCloseMeta): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMeta; + static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMeta; - static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMeta; + static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMeta; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PeerAddressIp { @@ -12252,9 +12229,9 @@ export namespace xdr { value(): Buffer | Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PeerAddressIp; @@ -12264,50 +12241,31 @@ export namespace xdr { static toXDR(value: PeerAddressIp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PeerAddressIp; + static fromXDR(input: Buffer, format?: "raw"): PeerAddressIp; - static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddressIp; + static fromXDR(input: string, format: "hex" | "base64"): PeerAddressIp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SurveyResponseBody { switch(): SurveyMessageResponseType; - topologyResponseBodyV0( - value?: TopologyResponseBodyV0, - ): TopologyResponseBodyV0; - - topologyResponseBodyV1( - value?: TopologyResponseBodyV1, - ): TopologyResponseBodyV1; - topologyResponseBodyV2( value?: TopologyResponseBodyV2, ): TopologyResponseBodyV2; - static surveyTopologyResponseV0( - value: TopologyResponseBodyV0, - ): SurveyResponseBody; - - static surveyTopologyResponseV1( - value: TopologyResponseBodyV1, - ): SurveyResponseBody; - static surveyTopologyResponseV2( value: TopologyResponseBodyV2, ): SurveyResponseBody; - value(): - | TopologyResponseBodyV0 - | TopologyResponseBodyV1 - | TopologyResponseBodyV2; + value(): TopologyResponseBodyV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SurveyResponseBody; @@ -12317,13 +12275,13 @@ export namespace xdr { static toXDR(value: SurveyResponseBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseBody; + static fromXDR(input: Buffer, format?: "raw"): SurveyResponseBody; - static fromXDR(input: string, format: 'hex' | 'base64'): SurveyResponseBody; + static fromXDR(input: string, format: "hex" | "base64"): SurveyResponseBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class StellarMessage { @@ -12349,14 +12307,6 @@ export namespace xdr { transaction(value?: TransactionEnvelope): TransactionEnvelope; - signedSurveyRequestMessage( - value?: SignedSurveyRequestMessage, - ): SignedSurveyRequestMessage; - - signedSurveyResponseMessage( - value?: SignedSurveyResponseMessage, - ): SignedSurveyResponseMessage; - signedTimeSlicedSurveyRequestMessage( value?: SignedTimeSlicedSurveyRequestMessage, ): SignedTimeSlicedSurveyRequestMessage; @@ -12397,8 +12347,6 @@ export namespace xdr { static dontHave(value: DontHave): StellarMessage; - static getPeers(): StellarMessage; - static peers(value: PeerAddress[]): StellarMessage; static getTxSet(value: Buffer): StellarMessage; @@ -12409,10 +12357,6 @@ export namespace xdr { static transaction(value: TransactionEnvelope): StellarMessage; - static surveyRequest(value: SignedSurveyRequestMessage): StellarMessage; - - static surveyResponse(value: SignedSurveyResponseMessage): StellarMessage; - static timeSlicedSurveyRequest( value: SignedTimeSlicedSurveyRequestMessage, ): StellarMessage; @@ -12455,8 +12399,6 @@ export namespace xdr { | TransactionSet | GeneralizedTransactionSet | TransactionEnvelope - | SignedSurveyRequestMessage - | SignedSurveyResponseMessage | SignedTimeSlicedSurveyRequestMessage | SignedTimeSlicedSurveyResponseMessage | SignedTimeSlicedSurveyStartCollectingMessage @@ -12468,12 +12410,11 @@ export namespace xdr { | SendMore | SendMoreExtended | FloodAdvert - | FloodDemand - | void; + | FloodDemand; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): StellarMessage; @@ -12483,13 +12424,13 @@ export namespace xdr { static toXDR(value: StellarMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): StellarMessage; + static fromXDR(input: Buffer, format?: "raw"): StellarMessage; - static fromXDR(input: string, format: 'hex' | 'base64'): StellarMessage; + static fromXDR(input: string, format: "hex" | "base64"): StellarMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AuthenticatedMessage { @@ -12501,9 +12442,9 @@ export namespace xdr { value(): AuthenticatedMessageV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AuthenticatedMessage; @@ -12513,16 +12454,16 @@ export namespace xdr { static toXDR(value: AuthenticatedMessage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessage; + static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessage; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): AuthenticatedMessage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolParameters { @@ -12538,9 +12479,9 @@ export namespace xdr { value(): LiquidityPoolConstantProductParameters; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolParameters; @@ -12550,16 +12491,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolParameters): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolParameters; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolParameters; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolParameters; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class MuxedAccount { @@ -12575,9 +12516,9 @@ export namespace xdr { value(): Buffer | MuxedAccountMed25519; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): MuxedAccount; @@ -12587,13 +12528,13 @@ export namespace xdr { static toXDR(value: MuxedAccount): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): MuxedAccount; + static fromXDR(input: Buffer, format?: "raw"): MuxedAccount; - static fromXDR(input: string, format: 'hex' | 'base64'): MuxedAccount; + static fromXDR(input: string, format: "hex" | "base64"): MuxedAccount; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustAsset { @@ -12615,9 +12556,9 @@ export namespace xdr { value(): AlphaNum4 | AlphaNum12 | LiquidityPoolParameters | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustAsset; @@ -12627,13 +12568,13 @@ export namespace xdr { static toXDR(value: ChangeTrustAsset): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustAsset; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustAsset; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustAsset; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustAsset; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipOp { @@ -12651,9 +12592,9 @@ export namespace xdr { value(): LedgerKey | RevokeSponsorshipOpSigner; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipOp; @@ -12663,16 +12604,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipOp): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOp; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOp; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipOp; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractIdPreimage { @@ -12692,9 +12633,9 @@ export namespace xdr { value(): ContractIdPreimageFromAddress | Asset; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractIdPreimage; @@ -12704,13 +12645,13 @@ export namespace xdr { static toXDR(value: ContractIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractIdPreimage; + static fromXDR(input: Buffer, format?: "raw"): ContractIdPreimage; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractIdPreimage; + static fromXDR(input: string, format: "hex" | "base64"): ContractIdPreimage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HostFunction { @@ -12744,9 +12685,9 @@ export namespace xdr { | Buffer | CreateContractArgsV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HostFunction; @@ -12756,13 +12697,13 @@ export namespace xdr { static toXDR(value: HostFunction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HostFunction; + static fromXDR(input: Buffer, format?: "raw"): HostFunction; - static fromXDR(input: string, format: 'hex' | 'base64'): HostFunction; + static fromXDR(input: string, format: "hex" | "base64"): HostFunction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanAuthorizedFunction { @@ -12788,9 +12729,9 @@ export namespace xdr { value(): InvokeContractArgs | CreateContractArgs | CreateContractArgsV2; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanAuthorizedFunction; @@ -12800,16 +12741,16 @@ export namespace xdr { static toXDR(value: SorobanAuthorizedFunction): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedFunction; + static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedFunction; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanAuthorizedFunction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanCredentials { @@ -12825,9 +12766,9 @@ export namespace xdr { value(): SorobanAddressCredentials | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanCredentials; @@ -12837,13 +12778,13 @@ export namespace xdr { static toXDR(value: SorobanCredentials): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanCredentials; + static fromXDR(input: Buffer, format?: "raw"): SorobanCredentials; - static fromXDR(input: string, format: 'hex' | 'base64'): SorobanCredentials; + static fromXDR(input: string, format: "hex" | "base64"): SorobanCredentials; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationBody { @@ -13009,9 +12950,9 @@ export namespace xdr { | RestoreFootprintOp | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationBody; @@ -13021,13 +12962,13 @@ export namespace xdr { static toXDR(value: OperationBody): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationBody; + static fromXDR(input: Buffer, format?: "raw"): OperationBody; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationBody; + static fromXDR(input: string, format: "hex" | "base64"): OperationBody; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class HashIdPreimage { @@ -13063,9 +13004,9 @@ export namespace xdr { | HashIdPreimageContractId | HashIdPreimageSorobanAuthorization; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): HashIdPreimage; @@ -13075,13 +13016,13 @@ export namespace xdr { static toXDR(value: HashIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimage; + static fromXDR(input: Buffer, format?: "raw"): HashIdPreimage; - static fromXDR(input: string, format: 'hex' | 'base64'): HashIdPreimage; + static fromXDR(input: string, format: "hex" | "base64"): HashIdPreimage; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Memo { @@ -13107,9 +13048,9 @@ export namespace xdr { value(): string | Buffer | Uint64 | Buffer | Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Memo; @@ -13119,13 +13060,13 @@ export namespace xdr { static toXDR(value: Memo): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Memo; + static fromXDR(input: Buffer, format?: "raw"): Memo; - static fromXDR(input: string, format: 'hex' | 'base64'): Memo; + static fromXDR(input: string, format: "hex" | "base64"): Memo; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class Preconditions { @@ -13143,9 +13084,9 @@ export namespace xdr { value(): TimeBounds | PreconditionsV2 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): Preconditions; @@ -13155,63 +13096,29 @@ export namespace xdr { static toXDR(value: Preconditions): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): Preconditions; - - static fromXDR(input: string, format: 'hex' | 'base64'): Preconditions; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; - } - - class ArchivalProofBody { - switch(): ArchivalProofType; - - nonexistenceProof(value?: NonexistenceProofBody): NonexistenceProofBody; - - existenceProof(value?: ExistenceProofBody): ExistenceProofBody; - - static existence(value: NonexistenceProofBody): ArchivalProofBody; - - static nonexistence(value: ExistenceProofBody): ArchivalProofBody; - - value(): NonexistenceProofBody | ExistenceProofBody; - - toXDR(format?: 'raw'): Buffer; - - toXDR(format: 'hex' | 'base64'): string; + static fromXDR(input: Buffer, format?: "raw"): Preconditions; - static read(io: Buffer): ArchivalProofBody; + static fromXDR(input: string, format: "hex" | "base64"): Preconditions; - static write(value: ArchivalProofBody, io: Buffer): void; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static isValid(value: ArchivalProofBody): boolean; - - static toXDR(value: ArchivalProofBody): Buffer; - - static fromXDR(input: Buffer, format?: 'raw'): ArchivalProofBody; - - static fromXDR(input: string, format: 'hex' | 'base64'): ArchivalProofBody; - - static validateXDR(input: Buffer, format?: 'raw'): boolean; - - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SorobanTransactionDataExt { switch(): number; - proofs(value?: ArchivalProof[]): ArchivalProof[]; + resourceExt(value?: SorobanResourcesExtV0): SorobanResourcesExtV0; static 0(): SorobanTransactionDataExt; - static 1(value: ArchivalProof[]): SorobanTransactionDataExt; + static 1(value: SorobanResourcesExtV0): SorobanTransactionDataExt; - value(): ArchivalProof[] | void; + value(): SorobanResourcesExtV0 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SorobanTransactionDataExt; @@ -13221,16 +13128,16 @@ export namespace xdr { static toXDR(value: SorobanTransactionDataExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionDataExt; + static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionDataExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SorobanTransactionDataExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionV0Ext { @@ -13240,9 +13147,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionV0Ext; @@ -13252,13 +13159,13 @@ export namespace xdr { static toXDR(value: TransactionV0Ext): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Ext; + static fromXDR(input: Buffer, format?: "raw"): TransactionV0Ext; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0Ext; + static fromXDR(input: string, format: "hex" | "base64"): TransactionV0Ext; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionExt { @@ -13272,9 +13179,9 @@ export namespace xdr { value(): SorobanTransactionData | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionExt; @@ -13284,13 +13191,13 @@ export namespace xdr { static toXDR(value: TransactionExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionExt; - static fromXDR(input: string, format: 'hex' | 'base64'): TransactionExt; + static fromXDR(input: string, format: "hex" | "base64"): TransactionExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionInnerTx { @@ -13304,9 +13211,9 @@ export namespace xdr { value(): TransactionV1Envelope; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionInnerTx; @@ -13316,16 +13223,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionInnerTx): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionInnerTx; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionInnerTx; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionInnerTx; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class FeeBumpTransactionExt { @@ -13335,9 +13242,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): FeeBumpTransactionExt; @@ -13347,16 +13254,16 @@ export namespace xdr { static toXDR(value: FeeBumpTransactionExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionExt; + static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): FeeBumpTransactionExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionEnvelope { @@ -13381,9 +13288,9 @@ export namespace xdr { | TransactionV1Envelope | FeeBumpTransactionEnvelope; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionEnvelope; @@ -13393,16 +13300,16 @@ export namespace xdr { static toXDR(value: TransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionEnvelope; + static fromXDR(input: Buffer, format?: "raw"): TransactionEnvelope; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionEnvelope; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionSignaturePayloadTaggedTransaction { @@ -13422,9 +13329,9 @@ export namespace xdr { value(): Transaction | FeeBumpTransaction; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionSignaturePayloadTaggedTransaction; @@ -13441,17 +13348,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): TransactionSignaturePayloadTaggedTransaction; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionSignaturePayloadTaggedTransaction; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimAtom { @@ -13471,9 +13378,9 @@ export namespace xdr { value(): ClaimOfferAtomV0 | ClaimOfferAtom | ClaimLiquidityAtom; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimAtom; @@ -13483,13 +13390,13 @@ export namespace xdr { static toXDR(value: ClaimAtom): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimAtom; + static fromXDR(input: Buffer, format?: "raw"): ClaimAtom; - static fromXDR(input: string, format: 'hex' | 'base64'): ClaimAtom; + static fromXDR(input: string, format: "hex" | "base64"): ClaimAtom; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateAccountResult { @@ -13507,9 +13414,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateAccountResult; @@ -13519,16 +13426,16 @@ export namespace xdr { static toXDR(value: CreateAccountResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateAccountResult; + static fromXDR(input: Buffer, format?: "raw"): CreateAccountResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateAccountResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PaymentResult { @@ -13556,9 +13463,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PaymentResult; @@ -13568,13 +13475,13 @@ export namespace xdr { static toXDR(value: PaymentResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PaymentResult; + static fromXDR(input: Buffer, format?: "raw"): PaymentResult; - static fromXDR(input: string, format: 'hex' | 'base64'): PaymentResult; + static fromXDR(input: string, format: "hex" | "base64"): PaymentResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictReceiveResult { @@ -13618,9 +13525,9 @@ export namespace xdr { value(): PathPaymentStrictReceiveResultSuccess | Asset | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictReceiveResult; @@ -13632,17 +13539,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): PathPaymentStrictReceiveResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictReceiveResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PathPaymentStrictSendResult { @@ -13686,9 +13593,9 @@ export namespace xdr { value(): PathPaymentStrictSendResultSuccess | Asset | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PathPaymentStrictSendResult; @@ -13698,16 +13605,16 @@ export namespace xdr { static toXDR(value: PathPaymentStrictSendResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendResult; + static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): PathPaymentStrictSendResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageOfferSuccessResultOffer { @@ -13723,9 +13630,9 @@ export namespace xdr { value(): OfferEntry | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageOfferSuccessResultOffer; @@ -13737,17 +13644,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ManageOfferSuccessResultOffer; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageOfferSuccessResultOffer; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageSellOfferResult { @@ -13785,9 +13692,9 @@ export namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageSellOfferResult; @@ -13797,16 +13704,16 @@ export namespace xdr { static toXDR(value: ManageSellOfferResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferResult; + static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageSellOfferResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageBuyOfferResult { @@ -13844,9 +13751,9 @@ export namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageBuyOfferResult; @@ -13856,16 +13763,16 @@ export namespace xdr { static toXDR(value: ManageBuyOfferResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferResult; + static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ManageBuyOfferResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetOptionsResult { @@ -13895,9 +13802,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetOptionsResult; @@ -13907,13 +13814,13 @@ export namespace xdr { static toXDR(value: SetOptionsResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetOptionsResult; + static fromXDR(input: Buffer, format?: "raw"): SetOptionsResult; - static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsResult; + static fromXDR(input: string, format: "hex" | "base64"): SetOptionsResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ChangeTrustResult { @@ -13939,9 +13846,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ChangeTrustResult; @@ -13951,13 +13858,13 @@ export namespace xdr { static toXDR(value: ChangeTrustResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustResult; + static fromXDR(input: Buffer, format?: "raw"): ChangeTrustResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustResult; + static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AllowTrustResult { @@ -13979,9 +13886,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AllowTrustResult; @@ -13991,13 +13898,13 @@ export namespace xdr { static toXDR(value: AllowTrustResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AllowTrustResult; + static fromXDR(input: Buffer, format?: "raw"): AllowTrustResult; - static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustResult; + static fromXDR(input: string, format: "hex" | "base64"): AllowTrustResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class AccountMergeResult { @@ -14023,9 +13930,9 @@ export namespace xdr { value(): Int64 | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): AccountMergeResult; @@ -14035,13 +13942,13 @@ export namespace xdr { static toXDR(value: AccountMergeResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): AccountMergeResult; + static fromXDR(input: Buffer, format?: "raw"): AccountMergeResult; - static fromXDR(input: string, format: 'hex' | 'base64'): AccountMergeResult; + static fromXDR(input: string, format: "hex" | "base64"): AccountMergeResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InflationResult { @@ -14055,9 +13962,9 @@ export namespace xdr { value(): InflationPayout[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InflationResult; @@ -14067,13 +13974,13 @@ export namespace xdr { static toXDR(value: InflationResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InflationResult; + static fromXDR(input: Buffer, format?: "raw"): InflationResult; - static fromXDR(input: string, format: 'hex' | 'base64'): InflationResult; + static fromXDR(input: string, format: "hex" | "base64"): InflationResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ManageDataResult { @@ -14091,9 +13998,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ManageDataResult; @@ -14103,13 +14010,13 @@ export namespace xdr { static toXDR(value: ManageDataResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ManageDataResult; + static fromXDR(input: Buffer, format?: "raw"): ManageDataResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataResult; + static fromXDR(input: string, format: "hex" | "base64"): ManageDataResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BumpSequenceResult { @@ -14121,9 +14028,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BumpSequenceResult; @@ -14133,13 +14040,13 @@ export namespace xdr { static toXDR(value: BumpSequenceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceResult; + static fromXDR(input: Buffer, format?: "raw"): BumpSequenceResult; - static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceResult; + static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class CreateClaimableBalanceResult { @@ -14163,9 +14070,9 @@ export namespace xdr { value(): ClaimableBalanceId | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): CreateClaimableBalanceResult; @@ -14175,16 +14082,16 @@ export namespace xdr { static toXDR(value: CreateClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceResult; + static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): CreateClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClaimClaimableBalanceResult { @@ -14204,9 +14111,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClaimClaimableBalanceResult; @@ -14216,16 +14123,16 @@ export namespace xdr { static toXDR(value: ClaimClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceResult; + static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClaimClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class BeginSponsoringFutureReservesResult { @@ -14241,9 +14148,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): BeginSponsoringFutureReservesResult; @@ -14255,17 +14162,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): BeginSponsoringFutureReservesResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): BeginSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class EndSponsoringFutureReservesResult { @@ -14277,9 +14184,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): EndSponsoringFutureReservesResult; @@ -14291,17 +14198,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): EndSponsoringFutureReservesResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): EndSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RevokeSponsorshipResult { @@ -14321,9 +14228,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RevokeSponsorshipResult; @@ -14333,16 +14240,16 @@ export namespace xdr { static toXDR(value: RevokeSponsorshipResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipResult; + static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RevokeSponsorshipResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackResult { @@ -14360,9 +14267,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackResult; @@ -14372,13 +14279,13 @@ export namespace xdr { static toXDR(value: ClawbackResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ClawbackResult; + static fromXDR(input: Buffer, format?: "raw"): ClawbackResult; - static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackResult; + static fromXDR(input: string, format: "hex" | "base64"): ClawbackResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ClawbackClaimableBalanceResult { @@ -14394,9 +14301,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ClawbackClaimableBalanceResult; @@ -14408,17 +14315,17 @@ export namespace xdr { static fromXDR( input: Buffer, - format?: 'raw', + format?: "raw", ): ClawbackClaimableBalanceResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ClawbackClaimableBalanceResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SetTrustLineFlagsResult { @@ -14438,9 +14345,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SetTrustLineFlagsResult; @@ -14450,16 +14357,16 @@ export namespace xdr { static toXDR(value: SetTrustLineFlagsResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsResult; + static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): SetTrustLineFlagsResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolDepositResult { @@ -14483,9 +14390,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolDepositResult; @@ -14495,16 +14402,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolDepositResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositResult; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolDepositResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class LiquidityPoolWithdrawResult { @@ -14524,9 +14431,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): LiquidityPoolWithdrawResult; @@ -14536,16 +14443,16 @@ export namespace xdr { static toXDR(value: LiquidityPoolWithdrawResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawResult; + static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): LiquidityPoolWithdrawResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InvokeHostFunctionResult { @@ -14567,9 +14474,9 @@ export namespace xdr { value(): Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InvokeHostFunctionResult; @@ -14579,16 +14486,16 @@ export namespace xdr { static toXDR(value: InvokeHostFunctionResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionResult; + static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InvokeHostFunctionResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtendFootprintTtlResult { @@ -14604,9 +14511,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtendFootprintTtlResult; @@ -14616,16 +14523,16 @@ export namespace xdr { static toXDR(value: ExtendFootprintTtlResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlResult; + static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ExtendFootprintTtlResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class RestoreFootprintResult { @@ -14641,9 +14548,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): RestoreFootprintResult; @@ -14653,16 +14560,16 @@ export namespace xdr { static toXDR(value: RestoreFootprintResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintResult; + static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): RestoreFootprintResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationResultTr { @@ -14859,9 +14766,9 @@ export namespace xdr { | ExtendFootprintTtlResult | RestoreFootprintResult; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationResultTr; @@ -14871,13 +14778,13 @@ export namespace xdr { static toXDR(value: OperationResultTr): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationResultTr; + static fromXDR(input: Buffer, format?: "raw"): OperationResultTr; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationResultTr; + static fromXDR(input: string, format: "hex" | "base64"): OperationResultTr; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class OperationResult { @@ -14901,9 +14808,9 @@ export namespace xdr { value(): OperationResultTr | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): OperationResult; @@ -14913,13 +14820,13 @@ export namespace xdr { static toXDR(value: OperationResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): OperationResult; + static fromXDR(input: Buffer, format?: "raw"): OperationResult; - static fromXDR(input: string, format: 'hex' | 'base64'): OperationResult; + static fromXDR(input: string, format: "hex" | "base64"): OperationResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultResult { @@ -14963,9 +14870,9 @@ export namespace xdr { value(): OperationResult[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultResult; @@ -14975,16 +14882,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultResult; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class InnerTransactionResultExt { @@ -14994,9 +14901,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): InnerTransactionResultExt; @@ -15006,16 +14913,16 @@ export namespace xdr { static toXDR(value: InnerTransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultExt; + static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): InnerTransactionResultExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultResult { @@ -15071,9 +14978,9 @@ export namespace xdr { value(): InnerTransactionResultPair | OperationResult[] | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultResult; @@ -15083,16 +14990,16 @@ export namespace xdr { static toXDR(value: TransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultResult; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultResult; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultResult; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class TransactionResultExt { @@ -15102,9 +15009,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): TransactionResultExt; @@ -15114,16 +15021,16 @@ export namespace xdr { static toXDR(value: TransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): TransactionResultExt; + static fromXDR(input: Buffer, format?: "raw"): TransactionResultExt; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): TransactionResultExt; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ExtensionPoint { @@ -15133,9 +15040,9 @@ export namespace xdr { value(): void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ExtensionPoint; @@ -15145,13 +15052,13 @@ export namespace xdr { static toXDR(value: ExtensionPoint): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ExtensionPoint; + static fromXDR(input: Buffer, format?: "raw"): ExtensionPoint; - static fromXDR(input: string, format: 'hex' | 'base64'): ExtensionPoint; + static fromXDR(input: string, format: "hex" | "base64"): ExtensionPoint; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class PublicKey { @@ -15163,9 +15070,9 @@ export namespace xdr { value(): Buffer; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): PublicKey; @@ -15175,13 +15082,13 @@ export namespace xdr { static toXDR(value: PublicKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): PublicKey; + static fromXDR(input: Buffer, format?: "raw"): PublicKey; - static fromXDR(input: string, format: 'hex' | 'base64'): PublicKey; + static fromXDR(input: string, format: "hex" | "base64"): PublicKey; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class SignerKey { @@ -15209,9 +15116,9 @@ export namespace xdr { value(): Buffer | Buffer | Buffer | SignerKeyEd25519SignedPayload; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): SignerKey; @@ -15221,13 +15128,43 @@ export namespace xdr { static toXDR(value: SignerKey): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): SignerKey; + static fromXDR(input: Buffer, format?: "raw"): SignerKey; + + static fromXDR(input: string, format: "hex" | "base64"): SignerKey; + + static validateXDR(input: Buffer, format?: "raw"): boolean; + + static validateXDR(input: string, format: "hex" | "base64"): boolean; + } + + class ClaimableBalanceId { + switch(): ClaimableBalanceIdType; + + v0(value?: Buffer): Buffer; + + static claimableBalanceIdTypeV0(value: Buffer): ClaimableBalanceId; + + value(): Buffer; + + toXDR(format?: "raw"): Buffer; + + toXDR(format: "hex" | "base64"): string; + + static read(io: Buffer): ClaimableBalanceId; + + static write(value: ClaimableBalanceId, io: Buffer): void; + + static isValid(value: ClaimableBalanceId): boolean; + + static toXDR(value: ClaimableBalanceId): Buffer; + + static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceId; - static fromXDR(input: string, format: 'hex' | 'base64'): SignerKey; + static fromXDR(input: string, format: "hex" | "base64"): ClaimableBalanceId; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScError { @@ -15259,9 +15196,9 @@ export namespace xdr { value(): number | ScErrorCode; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScError; @@ -15271,13 +15208,13 @@ export namespace xdr { static toXDR(value: ScError): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScError; + static fromXDR(input: Buffer, format?: "raw"): ScError; - static fromXDR(input: string, format: 'hex' | 'base64'): ScError; + static fromXDR(input: string, format: "hex" | "base64"): ScError; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ContractExecutable { @@ -15291,9 +15228,9 @@ export namespace xdr { value(): Buffer | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ContractExecutable; @@ -15303,13 +15240,13 @@ export namespace xdr { static toXDR(value: ContractExecutable): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ContractExecutable; + static fromXDR(input: Buffer, format?: "raw"): ContractExecutable; - static fromXDR(input: string, format: 'hex' | 'base64'): ContractExecutable; + static fromXDR(input: string, format: "hex" | "base64"): ContractExecutable; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScAddress { @@ -15317,17 +15254,34 @@ export namespace xdr { accountId(value?: AccountId): AccountId; - contractId(value?: Buffer): Buffer; + contractId(value?: ContractId): ContractId; + + muxedAccount(value?: MuxedEd25519Account): MuxedEd25519Account; + + claimableBalanceId(value?: ClaimableBalanceId): ClaimableBalanceId; + + liquidityPoolId(value?: PoolId): PoolId; static scAddressTypeAccount(value: AccountId): ScAddress; - static scAddressTypeContract(value: Buffer): ScAddress; + static scAddressTypeContract(value: ContractId): ScAddress; + + static scAddressTypeMuxedAccount(value: MuxedEd25519Account): ScAddress; + + static scAddressTypeClaimableBalance(value: ClaimableBalanceId): ScAddress; + + static scAddressTypeLiquidityPool(value: PoolId): ScAddress; - value(): AccountId | Buffer; + value(): + | AccountId + | ContractId + | MuxedEd25519Account + | ClaimableBalanceId + | PoolId; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScAddress; @@ -15337,13 +15291,13 @@ export namespace xdr { static toXDR(value: ScAddress): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScAddress; + static fromXDR(input: Buffer, format?: "raw"): ScAddress; - static fromXDR(input: string, format: 'hex' | 'base64'): ScAddress; + static fromXDR(input: string, format: "hex" | "base64"): ScAddress; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScVal { @@ -15385,10 +15339,10 @@ export namespace xdr { address(value?: ScAddress): ScAddress; - nonceKey(value?: ScNonceKey): ScNonceKey; - instance(value?: ScContractInstance): ScContractInstance; + nonceKey(value?: ScNonceKey): ScNonceKey; + static scvBool(value: boolean): ScVal; static scvVoid(): ScVal; @@ -15427,12 +15381,12 @@ export namespace xdr { static scvAddress(value: ScAddress): ScVal; + static scvContractInstance(value: ScContractInstance): ScVal; + static scvLedgerKeyContractInstance(): ScVal; static scvLedgerKeyNonce(value: ScNonceKey): ScVal; - static scvContractInstance(value: ScContractInstance): ScVal; - value(): | boolean | ScError @@ -15456,13 +15410,13 @@ export namespace xdr { | null | ScMapEntry[] | ScAddress - | ScNonceKey | ScContractInstance + | ScNonceKey | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScVal; @@ -15472,13 +15426,13 @@ export namespace xdr { static toXDR(value: ScVal): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScVal; + static fromXDR(input: Buffer, format?: "raw"): ScVal; - static fromXDR(input: string, format: 'hex' | 'base64'): ScVal; + static fromXDR(input: string, format: "hex" | "base64"): ScVal; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScEnvMetaEntry { @@ -15494,9 +15448,9 @@ export namespace xdr { value(): ScEnvMetaEntryInterfaceVersion; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScEnvMetaEntry; @@ -15506,13 +15460,13 @@ export namespace xdr { static toXDR(value: ScEnvMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScEnvMetaEntry; + static fromXDR(input: Buffer, format?: "raw"): ScEnvMetaEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScEnvMetaEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScEnvMetaEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScMetaEntry { @@ -15524,9 +15478,9 @@ export namespace xdr { value(): ScMetaV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScMetaEntry; @@ -15536,13 +15490,13 @@ export namespace xdr { static toXDR(value: ScMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScMetaEntry; + static fromXDR(input: Buffer, format?: "raw"): ScMetaEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScMetaEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecTypeDef { @@ -15598,6 +15552,8 @@ export namespace xdr { static scSpecTypeAddress(): ScSpecTypeDef; + static scSpecTypeMuxedAddress(): ScSpecTypeDef; + static scSpecTypeOption(value: ScSpecTypeOption): ScSpecTypeDef; static scSpecTypeResult(value: ScSpecTypeResult): ScSpecTypeDef; @@ -15622,9 +15578,9 @@ export namespace xdr { | ScSpecTypeUdt | void; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecTypeDef; @@ -15634,13 +15590,13 @@ export namespace xdr { static toXDR(value: ScSpecTypeDef): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeDef; + static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeDef; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeDef; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeDef; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecUdtUnionCaseV0 { @@ -15660,9 +15616,9 @@ export namespace xdr { value(): ScSpecUdtUnionCaseVoidV0 | ScSpecUdtUnionCaseTupleV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecUdtUnionCaseV0; @@ -15672,16 +15628,16 @@ export namespace xdr { static toXDR(value: ScSpecUdtUnionCaseV0): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseV0; + static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseV0; static fromXDR( input: string, - format: 'hex' | 'base64', + format: "hex" | "base64", ): ScSpecUdtUnionCaseV0; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ScSpecEntry { @@ -15697,6 +15653,8 @@ export namespace xdr { udtErrorEnumV0(value?: ScSpecUdtErrorEnumV0): ScSpecUdtErrorEnumV0; + eventV0(value?: ScSpecEventV0): ScSpecEventV0; + static scSpecEntryFunctionV0(value: ScSpecFunctionV0): ScSpecEntry; static scSpecEntryUdtStructV0(value: ScSpecUdtStructV0): ScSpecEntry; @@ -15707,16 +15665,19 @@ export namespace xdr { static scSpecEntryUdtErrorEnumV0(value: ScSpecUdtErrorEnumV0): ScSpecEntry; + static scSpecEntryEventV0(value: ScSpecEventV0): ScSpecEntry; + value(): | ScSpecFunctionV0 | ScSpecUdtStructV0 | ScSpecUdtUnionV0 | ScSpecUdtEnumV0 - | ScSpecUdtErrorEnumV0; + | ScSpecUdtErrorEnumV0 + | ScSpecEventV0; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ScSpecEntry; @@ -15726,13 +15687,13 @@ export namespace xdr { static toXDR(value: ScSpecEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ScSpecEntry; + static fromXDR(input: Buffer, format?: "raw"): ScSpecEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEntry; + static fromXDR(input: string, format: "hex" | "base64"): ScSpecEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } class ConfigSettingEntry { @@ -15778,7 +15739,7 @@ export namespace xdr { value?: ConfigSettingContractExecutionLanesV0, ): ConfigSettingContractExecutionLanesV0; - bucketListSizeWindow(value?: Uint64[]): Uint64[]; + liveSorobanStateSizeWindow(value?: Uint64[]): Uint64[]; evictionIterator(value?: EvictionIterator): EvictionIterator; @@ -15786,6 +15747,12 @@ export namespace xdr { value?: ConfigSettingContractParallelComputeV0, ): ConfigSettingContractParallelComputeV0; + contractLedgerCostExt( + value?: ConfigSettingContractLedgerCostExtV0, + ): ConfigSettingContractLedgerCostExtV0; + + contractScpTiming(value?: ConfigSettingScpTiming): ConfigSettingScpTiming; + static configSettingContractMaxSizeBytes(value: number): ConfigSettingEntry; static configSettingContractComputeV0( @@ -15832,7 +15799,7 @@ export namespace xdr { value: ConfigSettingContractExecutionLanesV0, ): ConfigSettingEntry; - static configSettingBucketlistSizeWindow( + static configSettingLiveSorobanStateSizeWindow( value: Uint64[], ): ConfigSettingEntry; @@ -15844,6 +15811,14 @@ export namespace xdr { value: ConfigSettingContractParallelComputeV0, ): ConfigSettingEntry; + static configSettingContractLedgerCostExtV0( + value: ConfigSettingContractLedgerCostExtV0, + ): ConfigSettingEntry; + + static configSettingScpTiming( + value: ConfigSettingScpTiming, + ): ConfigSettingEntry; + value(): | number | ConfigSettingContractComputeV0 @@ -15859,11 +15834,13 @@ export namespace xdr { | ConfigSettingContractExecutionLanesV0 | Uint64[] | EvictionIterator - | ConfigSettingContractParallelComputeV0; + | ConfigSettingContractParallelComputeV0 + | ConfigSettingContractLedgerCostExtV0 + | ConfigSettingScpTiming; - toXDR(format?: 'raw'): Buffer; + toXDR(format?: "raw"): Buffer; - toXDR(format: 'hex' | 'base64'): string; + toXDR(format: "hex" | "base64"): string; static read(io: Buffer): ConfigSettingEntry; @@ -15873,12 +15850,12 @@ export namespace xdr { static toXDR(value: ConfigSettingEntry): Buffer; - static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingEntry; + static fromXDR(input: Buffer, format?: "raw"): ConfigSettingEntry; - static fromXDR(input: string, format: 'hex' | 'base64'): ConfigSettingEntry; + static fromXDR(input: string, format: "hex" | "base64"): ConfigSettingEntry; - static validateXDR(input: Buffer, format?: 'raw'): boolean; + static validateXDR(input: Buffer, format?: "raw"): boolean; - static validateXDR(input: string, format: 'hex' | 'base64'): boolean; + static validateXDR(input: string, format: "hex" | "base64"): boolean; } } diff --git a/xdr/curr/Stellar-contract-config-setting.x b/xdr/curr/Stellar-contract-config-setting.x index 9f09c7b0..b075c6b4 100644 --- a/xdr/curr/Stellar-contract-config-setting.x +++ b/xdr/curr/Stellar-contract-config-setting.x @@ -23,41 +23,62 @@ struct ConfigSettingContractComputeV0 uint32 txMemoryLimit; }; +// Settings for running the contract transactions in parallel. +struct ConfigSettingContractParallelComputeV0 +{ + // Maximum number of clusters with dependent transactions allowed in a + // stage of parallel tx set component. + // This effectively sets the lower bound on the number of physical threads + // necessary to effectively apply transaction sets in parallel. + uint32 ledgerMaxDependentTxClusters; +}; + // Ledger access settings for contracts. struct ConfigSettingContractLedgerCostV0 { - // Maximum number of ledger entry read operations per ledger - uint32 ledgerMaxReadLedgerEntries; - // Maximum number of bytes that can be read per ledger - uint32 ledgerMaxReadBytes; + // Maximum number of disk entry read operations per ledger + uint32 ledgerMaxDiskReadEntries; + // Maximum number of bytes of disk reads that can be performed per ledger + uint32 ledgerMaxDiskReadBytes; // Maximum number of ledger entry write operations per ledger uint32 ledgerMaxWriteLedgerEntries; // Maximum number of bytes that can be written per ledger uint32 ledgerMaxWriteBytes; - // Maximum number of ledger entry read operations per transaction - uint32 txMaxReadLedgerEntries; - // Maximum number of bytes that can be read per transaction - uint32 txMaxReadBytes; + // Maximum number of disk entry read operations per transaction + uint32 txMaxDiskReadEntries; + // Maximum number of bytes of disk reads that can be performed per transaction + uint32 txMaxDiskReadBytes; // Maximum number of ledger entry write operations per transaction uint32 txMaxWriteLedgerEntries; // Maximum number of bytes that can be written per transaction uint32 txMaxWriteBytes; - int64 feeReadLedgerEntry; // Fee per ledger entry read - int64 feeWriteLedgerEntry; // Fee per ledger entry write + int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read + int64 feeWriteLedgerEntry; // Fee per ledger entry write - int64 feeRead1KB; // Fee for reading 1KB + int64 feeDiskRead1KB; // Fee for reading 1KB disk // The following parameters determine the write fee per 1KB. - // Write fee grows linearly until bucket list reaches this size - int64 bucketListTargetSizeBytes; - // Fee per 1KB write when the bucket list is empty - int64 writeFee1KBBucketListLow; - // Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes` - int64 writeFee1KBBucketListHigh; - // Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes` - uint32 bucketListWriteFeeGrowthFactor; + // Rent fee grows linearly until soroban state reaches this size + int64 sorobanStateTargetSizeBytes; + // Fee per 1KB rent when the soroban state is empty + int64 rentFee1KBSorobanStateSizeLow; + // Fee per 1KB rent when the soroban state has reached `sorobanStateTargetSizeBytes` + int64 rentFee1KBSorobanStateSizeHigh; + // Rent fee multiplier for any additional data past the first `sorobanStateTargetSizeBytes` + uint32 sorobanStateRentFeeGrowthFactor; +}; + +// Ledger access settings for contracts. +struct ConfigSettingContractLedgerCostExtV0 +{ + // Maximum number of RO+RW entries in the transaction footprint. + uint32 txMaxFootprintEntries; + // Fee per 1 KB of data written to the ledger. + // Unlike the rent fee, this is a flat fee that is charged for any ledger + // write, independent of the type of the entry being written. + int64 feeWrite1KB; }; // Historical data (pushed to core archives) settings for contracts. @@ -262,11 +283,11 @@ struct StateArchivalSettings { // max number of entries that emit archival meta in a single ledger uint32 maxEntriesToArchive; - // Number of snapshots to use when calculating average BucketList size - uint32 bucketListSizeWindowSampleSize; + // Number of snapshots to use when calculating average live Soroban State size + uint32 liveSorobanStateSizeWindowSampleSize; - // How often to sample the BucketList size for the average, in ledgers - uint32 bucketListWindowSamplePeriod; + // How often to sample the live Soroban State size for the average, in ledgers + uint32 liveSorobanStateSizeWindowSamplePeriod; // Maximum number of bytes that we scan for eviction per ledger uint32 evictionScanSize; @@ -281,6 +302,14 @@ struct EvictionIterator { uint64 bucketFileOffset; }; +struct ConfigSettingSCPTiming { + uint32 ledgerTargetCloseTimeMilliseconds; + uint32 nominationTimeoutInitialMilliseconds; + uint32 nominationTimeoutIncrementMilliseconds; + uint32 ballotTimeoutInitialMilliseconds; + uint32 ballotTimeoutIncrementMilliseconds; +}; + // limits the ContractCostParams size to 20kB const CONTRACT_COST_COUNT_LIMIT = 1024; @@ -301,8 +330,11 @@ enum ConfigSettingID CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, CONFIG_SETTING_STATE_ARCHIVAL = 10, CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, - CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, - CONFIG_SETTING_EVICTION_ITERATOR = 13 + CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW = 12, + CONFIG_SETTING_EVICTION_ITERATOR = 13, + CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14, + CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0 = 15, + CONFIG_SETTING_SCP_TIMING = 16 }; union ConfigSettingEntry switch (ConfigSettingID configSettingID) @@ -331,9 +363,15 @@ case CONFIG_SETTING_STATE_ARCHIVAL: StateArchivalSettings stateArchivalSettings; case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: ConfigSettingContractExecutionLanesV0 contractExecutionLanes; -case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW: - uint64 bucketListSizeWindow<>; +case CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW: + uint64 liveSorobanStateSizeWindow<>; case CONFIG_SETTING_EVICTION_ITERATOR: EvictionIterator evictionIterator; +case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0: + ConfigSettingContractParallelComputeV0 contractParallelCompute; +case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0: + ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt; +case CONFIG_SETTING_SCP_TIMING: + ConfigSettingSCPTiming contractSCPTiming; }; } diff --git a/xdr/curr/Stellar-contract-spec.x b/xdr/curr/Stellar-contract-spec.x index 6988a633..ce6e0307 100644 --- a/xdr/curr/Stellar-contract-spec.x +++ b/xdr/curr/Stellar-contract-spec.x @@ -34,6 +34,7 @@ enum SCSpecType SC_SPEC_TYPE_STRING = 16, SC_SPEC_TYPE_SYMBOL = 17, SC_SPEC_TYPE_ADDRESS = 19, + SC_SPEC_TYPE_MUXED_ADDRESS = 20, // Types with parameters. SC_SPEC_TYPE_OPTION = 1000, @@ -104,6 +105,7 @@ case SC_SPEC_TYPE_BYTES: case SC_SPEC_TYPE_STRING: case SC_SPEC_TYPE_SYMBOL: case SC_SPEC_TYPE_ADDRESS: +case SC_SPEC_TYPE_MUXED_ADDRESS: void; case SC_SPEC_TYPE_OPTION: SCSpecTypeOption option; @@ -216,13 +218,45 @@ struct SCSpecFunctionV0 SCSpecTypeDef outputs<1>; }; +enum SCSpecEventParamLocationV0 +{ + SC_SPEC_EVENT_PARAM_LOCATION_DATA = 0, + SC_SPEC_EVENT_PARAM_LOCATION_TOPIC_LIST = 1 +}; + +struct SCSpecEventParamV0 +{ + string doc; + string name<30>; + SCSpecTypeDef type; + SCSpecEventParamLocationV0 location; +}; + +enum SCSpecEventDataFormat +{ + SC_SPEC_EVENT_DATA_FORMAT_SINGLE_VALUE = 0, + SC_SPEC_EVENT_DATA_FORMAT_VEC = 1, + SC_SPEC_EVENT_DATA_FORMAT_MAP = 2 +}; + +struct SCSpecEventV0 +{ + string doc; + string lib<80>; + SCSymbol name; + SCSymbol prefixTopics<2>; + SCSpecEventParamV0 params<50>; + SCSpecEventDataFormat dataFormat; +}; + enum SCSpecEntryKind { SC_SPEC_ENTRY_FUNCTION_V0 = 0, SC_SPEC_ENTRY_UDT_STRUCT_V0 = 1, SC_SPEC_ENTRY_UDT_UNION_V0 = 2, SC_SPEC_ENTRY_UDT_ENUM_V0 = 3, - SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4 + SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4, + SC_SPEC_ENTRY_EVENT_V0 = 5 }; union SCSpecEntry switch (SCSpecEntryKind kind) @@ -237,6 +271,8 @@ case SC_SPEC_ENTRY_UDT_ENUM_V0: SCSpecUDTEnumV0 udtEnumV0; case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0: SCSpecUDTErrorEnumV0 udtErrorEnumV0; +case SC_SPEC_ENTRY_EVENT_V0: + SCSpecEventV0 eventV0; }; } diff --git a/xdr/curr/Stellar-contract.x b/xdr/curr/Stellar-contract.x index 51130056..0e67dc3f 100644 --- a/xdr/curr/Stellar-contract.x +++ b/xdr/curr/Stellar-contract.x @@ -179,7 +179,16 @@ case CONTRACT_EXECUTABLE_STELLAR_ASSET: enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, - SC_ADDRESS_TYPE_CONTRACT = 1 + SC_ADDRESS_TYPE_CONTRACT = 1, + SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, + SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, + SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 +}; + +struct MuxedEd25519Account +{ + uint64 id; + uint256 ed25519; }; union SCAddress switch (SCAddressType type) @@ -187,7 +196,13 @@ union SCAddress switch (SCAddressType type) case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: - Hash contractId; + ContractID contractId; +case SC_ADDRESS_TYPE_MUXED_ACCOUNT: + MuxedEd25519Account muxedAccount; +case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: + ClaimableBalanceID claimableBalanceId; +case SC_ADDRESS_TYPE_LIQUIDITY_POOL: + PoolID liquidityPoolId; }; %struct SCVal; @@ -264,13 +279,12 @@ case SCV_ADDRESS: // Special SCVals reserved for system-constructed contract-data // ledger keys, not generally usable elsewhere. +case SCV_CONTRACT_INSTANCE: + SCContractInstance instance; case SCV_LEDGER_KEY_CONTRACT_INSTANCE: void; case SCV_LEDGER_KEY_NONCE: SCNonceKey nonce_key; - -case SCV_CONTRACT_INSTANCE: - SCContractInstance instance; }; struct SCMapEntry diff --git a/xdr/curr/Stellar-exporter.x b/xdr/curr/Stellar-exporter.x new file mode 100644 index 00000000..4ac92654 --- /dev/null +++ b/xdr/curr/Stellar-exporter.x @@ -0,0 +1,23 @@ +// Copyright 2024 Stellar Development Foundation and contributors. Licensed +// under the Apache License, Version 2.0. See the COPYING file at the root +// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 + +%#include "xdr/Stellar-ledger.h" + +namespace stellar +{ + +// Batch of ledgers along with their transaction metadata +struct LedgerCloseMetaBatch +{ + // starting ledger sequence number in the batch + uint32 startSequence; + + // ending ledger sequence number in the batch + uint32 endSequence; + + // Ledger close meta for each ledger within the batch + LedgerCloseMeta ledgerCloseMetas<>; +}; + +} diff --git a/xdr/curr/Stellar-ledger-entries.x b/xdr/curr/Stellar-ledger-entries.x index 5bf4f9d3..b9a9a168 100644 --- a/xdr/curr/Stellar-ledger-entries.x +++ b/xdr/curr/Stellar-ledger-entries.x @@ -14,7 +14,6 @@ typedef string string32<32>; typedef string string64<64>; typedef int64 SequenceNumber; typedef opaque DataValue<64>; -typedef Hash PoolID; // SHA256(LiquidityPoolParameters) // 1-4 alphanumeric characters right-padded with 0 bytes typedef opaque AssetCode4[4]; @@ -409,17 +408,6 @@ case CLAIMANT_TYPE_V0: } v0; }; -enum ClaimableBalanceIDType -{ - CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -}; - -union ClaimableBalanceID switch (ClaimableBalanceIDType type) -{ -case CLAIMABLE_BALANCE_ID_TYPE_V0: - Hash v0; -}; - enum ClaimableBalanceFlags { // If set, the issuer account of the asset held by the claimable balance may @@ -682,8 +670,7 @@ enum EnvelopeType enum BucketListType { LIVE = 0, - HOT_ARCHIVE = 1, - COLD_ARCHIVE = 2 + HOT_ARCHIVE = 1 }; /* Entries used to define the bucket list */ @@ -701,19 +688,9 @@ enum HotArchiveBucketEntryType { HOT_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. HOT_ARCHIVE_ARCHIVED = 0, // Entry is Archived - HOT_ARCHIVE_LIVE = 1, // Entry was previously HOT_ARCHIVE_ARCHIVED, or HOT_ARCHIVE_DELETED, but + HOT_ARCHIVE_LIVE = 1 // Entry was previously HOT_ARCHIVE_ARCHIVED, but // has been added back to the live BucketList. // Does not need to be persisted. - HOT_ARCHIVE_DELETED = 2 // Entry deleted (Note: must be persisted in archive) -}; - -enum ColdArchiveBucketEntryType -{ - COLD_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. - COLD_ARCHIVE_ARCHIVED_LEAF = 0, // Full LedgerEntry that was archived during the epoch - COLD_ARCHIVE_DELETED_LEAF = 1, // LedgerKey that was deleted during the epoch - COLD_ARCHIVE_BOUNDARY_LEAF = 2, // Dummy leaf representing low/high bound - COLD_ARCHIVE_HASH = 3 // Intermediary Merkle hash entry }; struct BucketMetadata @@ -750,48 +727,8 @@ case HOT_ARCHIVE_ARCHIVED: LedgerEntry archivedEntry; case HOT_ARCHIVE_LIVE: -case HOT_ARCHIVE_DELETED: LedgerKey key; case HOT_ARCHIVE_METAENTRY: BucketMetadata metaEntry; }; - -struct ColdArchiveArchivedLeaf -{ - uint32 index; - LedgerEntry archivedEntry; -}; - -struct ColdArchiveDeletedLeaf -{ - uint32 index; - LedgerKey deletedKey; -}; - -struct ColdArchiveBoundaryLeaf -{ - uint32 index; - bool isLowerBound; -}; - -struct ColdArchiveHashEntry -{ - uint32 index; - uint32 level; - Hash hash; -}; - -union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) -{ -case COLD_ARCHIVE_METAENTRY: - BucketMetadata metaEntry; -case COLD_ARCHIVE_ARCHIVED_LEAF: - ColdArchiveArchivedLeaf archivedLeaf; -case COLD_ARCHIVE_DELETED_LEAF: - ColdArchiveDeletedLeaf deletedLeaf; -case COLD_ARCHIVE_BOUNDARY_LEAF: - ColdArchiveBoundaryLeaf boundaryLeaf; -case COLD_ARCHIVE_HASH: - ColdArchiveHashEntry hashEntry; -}; -} \ No newline at end of file +} diff --git a/xdr/curr/Stellar-ledger.x b/xdr/curr/Stellar-ledger.x index 0fc03e2a..a17036b8 100644 --- a/xdr/curr/Stellar-ledger.x +++ b/xdr/curr/Stellar-ledger.x @@ -128,7 +128,7 @@ enum LedgerUpgradeType }; struct ConfigUpgradeSetKey { - Hash contractID; + ContractID contractID; Hash contentHash; }; @@ -164,6 +164,33 @@ enum TxSetComponentType TXSET_COMP_TXS_MAYBE_DISCOUNTED_FEE = 0 }; +// A collection of transactions that *may* have arbitrary read-write data +// dependencies between each other, i.e. in a general case the transaction +// execution order within a cluster may not be arbitrarily shuffled without +// affecting the end result. +typedef TransactionEnvelope DependentTxCluster<>; +// A collection of clusters such that are *guaranteed* to not have read-write +// data dependencies in-between clusters, i.e. such that the cluster execution +// order can be arbitrarily shuffled without affecting the end result. Thus +// clusters can be executed in parallel with respect to each other. +typedef DependentTxCluster ParallelTxExecutionStage<>; + +// Transaction set component that contains transactions organized in a +// parallelism-friendly fashion. +// +// The component consists of several stages that have to be executed in +// sequential order, each stage consists of several clusters that can be +// executed in parallel, and the cluster itself consists of several +// transactions that have to be executed in sequential order in a general case. +struct ParallelTxsComponent +{ + int64* baseFee; + // A sequence of stages that *may* have arbitrary data dependencies between + // each other, i.e. in a general case the stage execution order may not be + // arbitrarily shuffled without affecting the end result. + ParallelTxExecutionStage executionStages<>; +}; + union TxSetComponent switch (TxSetComponentType type) { case TXSET_COMP_TXS_MAYBE_DISCOUNTED_FEE: @@ -178,6 +205,8 @@ union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; +case 1: + ParallelTxsComponent parallelTxsComponent; }; // Transaction sets are the unit used by SCP to decide on transitions @@ -292,7 +321,8 @@ enum LedgerEntryChangeType LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger - LEDGER_ENTRY_STATE = 3 // value of the entry + LEDGER_ENTRY_STATE = 3, // value of the entry + LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger }; union LedgerEntryChange switch (LedgerEntryChangeType type) @@ -305,6 +335,8 @@ case LEDGER_ENTRY_REMOVED: LedgerKey removed; case LEDGER_ENTRY_STATE: LedgerEntry state; +case LEDGER_ENTRY_RESTORED: + LedgerEntry restored; }; typedef LedgerEntryChange LedgerEntryChanges<>; @@ -342,7 +374,7 @@ struct ContractEvent // is first, to change ContractEvent into a union. ExtensionPoint ext; - Hash* contractID; + ContractID* contractID; ContractEventType type; union switch (int v) @@ -363,8 +395,6 @@ struct DiagnosticEvent ContractEvent event; }; -typedef DiagnosticEvent DiagnosticEvents<>; - struct SorobanTransactionMetaExtV1 { ExtensionPoint ext; @@ -434,6 +464,64 @@ struct TransactionMetaV3 // Soroban transactions). }; +struct OperationMetaV2 +{ + ExtensionPoint ext; + + LedgerEntryChanges changes; + + ContractEvent events<>; +}; + +struct SorobanTransactionMetaV2 +{ + SorobanTransactionMetaExt ext; + + SCVal* returnValue; +}; + +// Transaction-level events happen at different stages of the ledger apply flow +// (as opposed to the operation events that all happen atomically after +// a transaction is applied). +// This enum represents the possible stages during which an event has been +// emitted. +enum TransactionEventStage { + // The event has happened before any one of the transactions has its + // operations applied. + TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, + // The event has happened immediately after operations of the transaction + // have been applied. + TRANSACTION_EVENT_STAGE_AFTER_TX = 1, + // The event has happened after every transaction had its operations + // applied. + TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 +}; + +// Represents a transaction-level event in metadata. +// Currently this is limited to the fee events (when fee is charged or +// refunded). +struct TransactionEvent { + TransactionEventStage stage; // Stage at which an event has occurred. + ContractEvent event; // The contract event that has occurred. +}; + +struct TransactionMetaV4 +{ + ExtensionPoint ext; + + LedgerEntryChanges txChangesBefore; // tx level changes before operations + // are applied if any + OperationMetaV2 operations<>; // meta for each operation + LedgerEntryChanges txChangesAfter; // tx level changes after operations are + // applied if any + SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for + // Soroban transactions). + + TransactionEvent events<>; // Used for transaction-level events (like fee payment) + DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information +}; + + // This is in Stellar-ledger.x to due to a circular dependency struct InvokeHostFunctionSuccessPreImage { @@ -453,6 +541,8 @@ case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; +case 4: + TransactionMetaV4 v4; }; // This struct groups together changes on a per transaction basis @@ -465,6 +555,20 @@ struct TransactionResultMeta TransactionMeta txApplyProcessing; }; +// This struct groups together changes on a per transaction basis +// note however that fees and transaction application are done in separate +// phases +struct TransactionResultMetaV1 +{ + ExtensionPoint ext; + + TransactionResultPair result; + LedgerEntryChanges feeProcessing; + TransactionMeta txApplyProcessing; + + LedgerEntryChanges postTxApplyFeeProcessing; +}; + // this represents a single upgrade that was performed as part of a ledger // upgrade struct UpgradeEntryMeta @@ -524,16 +628,42 @@ struct LedgerCloseMetaV1 // other misc information attached to the ledger close SCPHistoryEntry scpInfo<>; - // Size in bytes of BucketList, to support downstream + // Size in bytes of live Soroban state, to support downstream // systems calculating storage fees correctly. - uint64 totalByteSizeOfBucketList; + uint64 totalByteSizeOfLiveSorobanState; - // Temp keys that are being evicted at this ledger. - LedgerKey evictedTemporaryLedgerKeys<>; + // TTL and data/code keys that have been evicted at this ledger. + LedgerKey evictedKeys<>; - // Archived restorable ledger entries that are being - // evicted at this ledger. - LedgerEntry evictedPersistentLedgerEntries<>; + // Maintained for backwards compatibility, should never be populated. + LedgerEntry unused<>; +}; + +struct LedgerCloseMetaV2 +{ + LedgerCloseMetaExt ext; + + LedgerHeaderHistoryEntry ledgerHeader; + + GeneralizedTransactionSet txSet; + + // NB: transactions are sorted in apply order here + // fees for all transactions are processed first + // followed by applying transactions + TransactionResultMetaV1 txProcessing<>; + + // upgrades are applied last + UpgradeEntryMeta upgradesProcessing<>; + + // other misc information attached to the ledger close + SCPHistoryEntry scpInfo<>; + + // Size in bytes of live Soroban state, to support downstream + // systems calculating storage fees correctly. + uint64 totalByteSizeOfLiveSorobanState; + + // TTL and data/code keys that have been evicted at this ledger. + LedgerKey evictedKeys<>; }; union LedgerCloseMeta switch (int v) @@ -542,5 +672,7 @@ case 0: LedgerCloseMetaV0 v0; case 1: LedgerCloseMetaV1 v1; +case 2: + LedgerCloseMetaV2 v2; }; } diff --git a/xdr/curr/Stellar-overlay.x b/xdr/curr/Stellar-overlay.x index b398f883..1eda1fc1 100644 --- a/xdr/curr/Stellar-overlay.x +++ b/xdr/curr/Stellar-overlay.x @@ -87,14 +87,14 @@ struct PeerAddress uint32 numFailures; }; -// Next ID: 21 +// Next ID: 25 enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, + // GET_PEERS (4) is deprecated - GET_PEERS = 4, // gets a list of peers this guy knows about PEERS = 5, GET_TX_SET = 6, // gets a particular txset by hash @@ -112,8 +112,8 @@ enum MessageType // new messages HELLO = 13, - SURVEY_REQUEST = 14, - SURVEY_RESPONSE = 15, + // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST + // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE SEND_MORE = 16, SEND_MORE_EXTENDED = 20, @@ -135,14 +135,11 @@ struct DontHave enum SurveyMessageCommandType { - SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; enum SurveyMessageResponseType { - SURVEY_TOPOLOGY_RESPONSE_V0 = 0, - SURVEY_TOPOLOGY_RESPONSE_V1 = 1, SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; @@ -189,12 +186,6 @@ struct TimeSlicedSurveyRequestMessage uint32 outboundPeersIndex; }; -struct SignedSurveyRequestMessage -{ - Signature requestSignature; - SurveyRequestMessage request; -}; - struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; @@ -217,12 +208,6 @@ struct TimeSlicedSurveyResponseMessage uint32 nonce; }; -struct SignedSurveyResponseMessage -{ - Signature responseSignature; - SurveyResponseMessage response; -}; - struct SignedTimeSlicedSurveyResponseMessage { Signature responseSignature; @@ -250,8 +235,6 @@ struct PeerStats uint64 duplicateFetchMessageRecv; }; -typedef PeerStats PeerStatList<25>; - struct TimeSlicedNodeData { uint32 addedAuthenticatedPeers; @@ -280,27 +263,6 @@ struct TimeSlicedPeerData typedef TimeSlicedPeerData TimeSlicedPeerDataList<25>; -struct TopologyResponseBodyV0 -{ - PeerStatList inboundPeers; - PeerStatList outboundPeers; - - uint32 totalInboundPeerCount; - uint32 totalOutboundPeerCount; -}; - -struct TopologyResponseBodyV1 -{ - PeerStatList inboundPeers; - PeerStatList outboundPeers; - - uint32 totalInboundPeerCount; - uint32 totalOutboundPeerCount; - - uint32 maxInboundPeerCount; - uint32 maxOutboundPeerCount; -}; - struct TopologyResponseBodyV2 { TimeSlicedPeerDataList inboundPeers; @@ -310,10 +272,6 @@ struct TopologyResponseBodyV2 union SurveyResponseBody switch (SurveyMessageResponseType type) { -case SURVEY_TOPOLOGY_RESPONSE_V0: - TopologyResponseBodyV0 topologyResponseBodyV0; -case SURVEY_TOPOLOGY_RESPONSE_V1: - TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; @@ -344,8 +302,6 @@ case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; -case GET_PEERS: - void; case PEERS: PeerAddress peers<100>; @@ -359,12 +315,6 @@ case GENERALIZED_TX_SET: case TRANSACTION: TransactionEnvelope transaction; -case SURVEY_REQUEST: - SignedSurveyRequestMessage signedSurveyRequestMessage; - -case SURVEY_RESPONSE: - SignedSurveyResponseMessage signedSurveyResponseMessage; - case TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; diff --git a/xdr/curr/Stellar-transaction.x b/xdr/curr/Stellar-transaction.x index 7d324810..9a14d6e4 100644 --- a/xdr/curr/Stellar-transaction.x +++ b/xdr/curr/Stellar-transaction.x @@ -594,6 +594,8 @@ struct SorobanAuthorizationEntry SorobanAuthorizedInvocation rootInvocation; }; +typedef SorobanAuthorizationEntry SorobanAuthorizationEntries<>; + /* Upload Wasm, create, and invoke contracts in Soroban. Threshold: med @@ -823,56 +825,6 @@ struct LedgerFootprint LedgerKey readWrite<>; }; -enum ArchivalProofType -{ - EXISTENCE = 0, - NONEXISTENCE = 1 -}; - -struct ArchivalProofNode -{ - uint32 index; - Hash hash; -}; - -typedef ArchivalProofNode ProofLevel<>; - -struct NonexistenceProofBody -{ - ColdArchiveBucketEntry entriesToProve<>; - - // Vector of vectors, where proofLevels[level] - // contains all HashNodes that correspond with that level - ProofLevel proofLevels<>; -}; - -struct ExistenceProofBody -{ - LedgerKey keysToProve<>; - - // Bounds for each key being proved, where bound[n] - // corresponds to keysToProve[n] - ColdArchiveBucketEntry lowBoundEntries<>; - ColdArchiveBucketEntry highBoundEntries<>; - - // Vector of vectors, where proofLevels[level] - // contains all HashNodes that correspond with that level - ProofLevel proofLevels<>; -}; - -struct ArchivalProof -{ - uint32 epoch; // AST Subtree for this proof - - union switch (ArchivalProofType t) - { - case EXISTENCE: - NonexistenceProofBody nonexistenceProof; - case NONEXISTENCE: - ExistenceProofBody existenceProof; - } body; -}; - // Resource limits for a Soroban transaction. // The transaction will fail if it exceeds any of these limits. struct SorobanResources @@ -882,16 +834,30 @@ struct SorobanResources // The maximum number of instructions this transaction can use uint32 instructions; - // The maximum number of bytes this transaction can read from ledger - uint32 readBytes; + // The maximum number of bytes this transaction can read from disk backed entries + uint32 diskReadBytes; // The maximum number of bytes this transaction can write to ledger uint32 writeBytes; }; +struct SorobanResourcesExtV0 +{ + // Vector of indices representing what Soroban + // entries in the footprint are archived, based on the + // order of keys provided in the readWrite footprint. + uint32 archivedSorobanEntries<>; +}; + // The transaction extension for Soroban. struct SorobanTransactionData { - ExtensionPoint ext; + union switch (int v) + { + case 0: + void; + case 1: + SorobanResourcesExtV0 resourceExt; + } ext; SorobanResources resources; // Amount of the transaction `fee` allocated to the Soroban resource fees. // The fraction of `resourceFee` corresponding to `resources` specified @@ -960,7 +926,6 @@ struct Transaction Operation operations; - // reserved for future use union switch (int v) { case 0: diff --git a/xdr/curr/Stellar-types.x b/xdr/curr/Stellar-types.x index 73c4e795..f383d2e4 100644 --- a/xdr/curr/Stellar-types.x +++ b/xdr/curr/Stellar-types.x @@ -84,6 +84,8 @@ typedef opaque SignatureHint[4]; typedef PublicKey NodeID; typedef PublicKey AccountID; +typedef Hash ContractID; + struct Curve25519Secret { opaque key[32]; @@ -134,4 +136,17 @@ struct SerializedBinaryFuseFilter // Array of uint8_t, uint16_t, or uint32_t depending on filter type opaque fingerprints<>; }; + +typedef Hash PoolID; // SHA256(LiquidityPoolParameters) + +enum ClaimableBalanceIDType +{ + CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +}; + +union ClaimableBalanceID switch (ClaimableBalanceIDType type) +{ +case CLAIMABLE_BALANCE_ID_TYPE_V0: + Hash v0; +}; } \ No newline at end of file diff --git a/xdr/next/Stellar-contract-config-setting.x b/xdr/next/Stellar-contract-config-setting.x index bd96f9f4..b075c6b4 100644 --- a/xdr/next/Stellar-contract-config-setting.x +++ b/xdr/next/Stellar-contract-config-setting.x @@ -26,50 +26,59 @@ struct ConfigSettingContractComputeV0 // Settings for running the contract transactions in parallel. struct ConfigSettingContractParallelComputeV0 { - // Maximum number of threads that can be used to apply a - // transaction set to close the ledger. - // This doesn't limit or defined the actual number of - // threads used and instead only defines the minimum number - // of physical threads that a tier-1 validator has to support - // in order to not fall out of sync with the network. - uint32 ledgerMaxParallelThreads; + // Maximum number of clusters with dependent transactions allowed in a + // stage of parallel tx set component. + // This effectively sets the lower bound on the number of physical threads + // necessary to effectively apply transaction sets in parallel. + uint32 ledgerMaxDependentTxClusters; }; // Ledger access settings for contracts. struct ConfigSettingContractLedgerCostV0 { - // Maximum number of ledger entry read operations per ledger - uint32 ledgerMaxReadLedgerEntries; - // Maximum number of bytes that can be read per ledger - uint32 ledgerMaxReadBytes; + // Maximum number of disk entry read operations per ledger + uint32 ledgerMaxDiskReadEntries; + // Maximum number of bytes of disk reads that can be performed per ledger + uint32 ledgerMaxDiskReadBytes; // Maximum number of ledger entry write operations per ledger uint32 ledgerMaxWriteLedgerEntries; // Maximum number of bytes that can be written per ledger uint32 ledgerMaxWriteBytes; - // Maximum number of ledger entry read operations per transaction - uint32 txMaxReadLedgerEntries; - // Maximum number of bytes that can be read per transaction - uint32 txMaxReadBytes; + // Maximum number of disk entry read operations per transaction + uint32 txMaxDiskReadEntries; + // Maximum number of bytes of disk reads that can be performed per transaction + uint32 txMaxDiskReadBytes; // Maximum number of ledger entry write operations per transaction uint32 txMaxWriteLedgerEntries; // Maximum number of bytes that can be written per transaction uint32 txMaxWriteBytes; - int64 feeReadLedgerEntry; // Fee per ledger entry read - int64 feeWriteLedgerEntry; // Fee per ledger entry write + int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read + int64 feeWriteLedgerEntry; // Fee per ledger entry write - int64 feeRead1KB; // Fee for reading 1KB + int64 feeDiskRead1KB; // Fee for reading 1KB disk // The following parameters determine the write fee per 1KB. - // Write fee grows linearly until bucket list reaches this size - int64 bucketListTargetSizeBytes; - // Fee per 1KB write when the bucket list is empty - int64 writeFee1KBBucketListLow; - // Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes` - int64 writeFee1KBBucketListHigh; - // Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes` - uint32 bucketListWriteFeeGrowthFactor; + // Rent fee grows linearly until soroban state reaches this size + int64 sorobanStateTargetSizeBytes; + // Fee per 1KB rent when the soroban state is empty + int64 rentFee1KBSorobanStateSizeLow; + // Fee per 1KB rent when the soroban state has reached `sorobanStateTargetSizeBytes` + int64 rentFee1KBSorobanStateSizeHigh; + // Rent fee multiplier for any additional data past the first `sorobanStateTargetSizeBytes` + uint32 sorobanStateRentFeeGrowthFactor; +}; + +// Ledger access settings for contracts. +struct ConfigSettingContractLedgerCostExtV0 +{ + // Maximum number of RO+RW entries in the transaction footprint. + uint32 txMaxFootprintEntries; + // Fee per 1 KB of data written to the ledger. + // Unlike the rent fee, this is a flat fee that is charged for any ledger + // write, independent of the type of the entry being written. + int64 feeWrite1KB; }; // Historical data (pushed to core archives) settings for contracts. @@ -274,11 +283,11 @@ struct StateArchivalSettings { // max number of entries that emit archival meta in a single ledger uint32 maxEntriesToArchive; - // Number of snapshots to use when calculating average BucketList size - uint32 bucketListSizeWindowSampleSize; + // Number of snapshots to use when calculating average live Soroban State size + uint32 liveSorobanStateSizeWindowSampleSize; - // How often to sample the BucketList size for the average, in ledgers - uint32 bucketListWindowSamplePeriod; + // How often to sample the live Soroban State size for the average, in ledgers + uint32 liveSorobanStateSizeWindowSamplePeriod; // Maximum number of bytes that we scan for eviction per ledger uint32 evictionScanSize; @@ -293,6 +302,14 @@ struct EvictionIterator { uint64 bucketFileOffset; }; +struct ConfigSettingSCPTiming { + uint32 ledgerTargetCloseTimeMilliseconds; + uint32 nominationTimeoutInitialMilliseconds; + uint32 nominationTimeoutIncrementMilliseconds; + uint32 ballotTimeoutInitialMilliseconds; + uint32 ballotTimeoutIncrementMilliseconds; +}; + // limits the ContractCostParams size to 20kB const CONTRACT_COST_COUNT_LIMIT = 1024; @@ -313,9 +330,11 @@ enum ConfigSettingID CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, CONFIG_SETTING_STATE_ARCHIVAL = 10, CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, - CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, + CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW = 12, CONFIG_SETTING_EVICTION_ITERATOR = 13, - CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14 + CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14, + CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0 = 15, + CONFIG_SETTING_SCP_TIMING = 16 }; union ConfigSettingEntry switch (ConfigSettingID configSettingID) @@ -344,11 +363,15 @@ case CONFIG_SETTING_STATE_ARCHIVAL: StateArchivalSettings stateArchivalSettings; case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: ConfigSettingContractExecutionLanesV0 contractExecutionLanes; -case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW: - uint64 bucketListSizeWindow<>; +case CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW: + uint64 liveSorobanStateSizeWindow<>; case CONFIG_SETTING_EVICTION_ITERATOR: EvictionIterator evictionIterator; case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0: ConfigSettingContractParallelComputeV0 contractParallelCompute; +case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0: + ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt; +case CONFIG_SETTING_SCP_TIMING: + ConfigSettingSCPTiming contractSCPTiming; }; } diff --git a/xdr/next/Stellar-contract-spec.x b/xdr/next/Stellar-contract-spec.x index 6988a633..ce6e0307 100644 --- a/xdr/next/Stellar-contract-spec.x +++ b/xdr/next/Stellar-contract-spec.x @@ -34,6 +34,7 @@ enum SCSpecType SC_SPEC_TYPE_STRING = 16, SC_SPEC_TYPE_SYMBOL = 17, SC_SPEC_TYPE_ADDRESS = 19, + SC_SPEC_TYPE_MUXED_ADDRESS = 20, // Types with parameters. SC_SPEC_TYPE_OPTION = 1000, @@ -104,6 +105,7 @@ case SC_SPEC_TYPE_BYTES: case SC_SPEC_TYPE_STRING: case SC_SPEC_TYPE_SYMBOL: case SC_SPEC_TYPE_ADDRESS: +case SC_SPEC_TYPE_MUXED_ADDRESS: void; case SC_SPEC_TYPE_OPTION: SCSpecTypeOption option; @@ -216,13 +218,45 @@ struct SCSpecFunctionV0 SCSpecTypeDef outputs<1>; }; +enum SCSpecEventParamLocationV0 +{ + SC_SPEC_EVENT_PARAM_LOCATION_DATA = 0, + SC_SPEC_EVENT_PARAM_LOCATION_TOPIC_LIST = 1 +}; + +struct SCSpecEventParamV0 +{ + string doc; + string name<30>; + SCSpecTypeDef type; + SCSpecEventParamLocationV0 location; +}; + +enum SCSpecEventDataFormat +{ + SC_SPEC_EVENT_DATA_FORMAT_SINGLE_VALUE = 0, + SC_SPEC_EVENT_DATA_FORMAT_VEC = 1, + SC_SPEC_EVENT_DATA_FORMAT_MAP = 2 +}; + +struct SCSpecEventV0 +{ + string doc; + string lib<80>; + SCSymbol name; + SCSymbol prefixTopics<2>; + SCSpecEventParamV0 params<50>; + SCSpecEventDataFormat dataFormat; +}; + enum SCSpecEntryKind { SC_SPEC_ENTRY_FUNCTION_V0 = 0, SC_SPEC_ENTRY_UDT_STRUCT_V0 = 1, SC_SPEC_ENTRY_UDT_UNION_V0 = 2, SC_SPEC_ENTRY_UDT_ENUM_V0 = 3, - SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4 + SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4, + SC_SPEC_ENTRY_EVENT_V0 = 5 }; union SCSpecEntry switch (SCSpecEntryKind kind) @@ -237,6 +271,8 @@ case SC_SPEC_ENTRY_UDT_ENUM_V0: SCSpecUDTEnumV0 udtEnumV0; case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0: SCSpecUDTErrorEnumV0 udtErrorEnumV0; +case SC_SPEC_ENTRY_EVENT_V0: + SCSpecEventV0 eventV0; }; } diff --git a/xdr/next/Stellar-contract.x b/xdr/next/Stellar-contract.x index 51130056..0e67dc3f 100644 --- a/xdr/next/Stellar-contract.x +++ b/xdr/next/Stellar-contract.x @@ -179,7 +179,16 @@ case CONTRACT_EXECUTABLE_STELLAR_ASSET: enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, - SC_ADDRESS_TYPE_CONTRACT = 1 + SC_ADDRESS_TYPE_CONTRACT = 1, + SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2, + SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3, + SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4 +}; + +struct MuxedEd25519Account +{ + uint64 id; + uint256 ed25519; }; union SCAddress switch (SCAddressType type) @@ -187,7 +196,13 @@ union SCAddress switch (SCAddressType type) case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: - Hash contractId; + ContractID contractId; +case SC_ADDRESS_TYPE_MUXED_ACCOUNT: + MuxedEd25519Account muxedAccount; +case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE: + ClaimableBalanceID claimableBalanceId; +case SC_ADDRESS_TYPE_LIQUIDITY_POOL: + PoolID liquidityPoolId; }; %struct SCVal; @@ -264,13 +279,12 @@ case SCV_ADDRESS: // Special SCVals reserved for system-constructed contract-data // ledger keys, not generally usable elsewhere. +case SCV_CONTRACT_INSTANCE: + SCContractInstance instance; case SCV_LEDGER_KEY_CONTRACT_INSTANCE: void; case SCV_LEDGER_KEY_NONCE: SCNonceKey nonce_key; - -case SCV_CONTRACT_INSTANCE: - SCContractInstance instance; }; struct SCMapEntry diff --git a/xdr/next/Stellar-exporter.x b/xdr/next/Stellar-exporter.x new file mode 100644 index 00000000..4ac92654 --- /dev/null +++ b/xdr/next/Stellar-exporter.x @@ -0,0 +1,23 @@ +// Copyright 2024 Stellar Development Foundation and contributors. Licensed +// under the Apache License, Version 2.0. See the COPYING file at the root +// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 + +%#include "xdr/Stellar-ledger.h" + +namespace stellar +{ + +// Batch of ledgers along with their transaction metadata +struct LedgerCloseMetaBatch +{ + // starting ledger sequence number in the batch + uint32 startSequence; + + // ending ledger sequence number in the batch + uint32 endSequence; + + // Ledger close meta for each ledger within the batch + LedgerCloseMeta ledgerCloseMetas<>; +}; + +} diff --git a/xdr/next/Stellar-ledger-entries.x b/xdr/next/Stellar-ledger-entries.x index 9238fcda..b9a9a168 100644 --- a/xdr/next/Stellar-ledger-entries.x +++ b/xdr/next/Stellar-ledger-entries.x @@ -14,7 +14,6 @@ typedef string string32<32>; typedef string string64<64>; typedef int64 SequenceNumber; typedef opaque DataValue<64>; -typedef Hash PoolID; // SHA256(LiquidityPoolParameters) // 1-4 alphanumeric characters right-padded with 0 bytes typedef opaque AssetCode4[4]; @@ -409,17 +408,6 @@ case CLAIMANT_TYPE_V0: } v0; }; -enum ClaimableBalanceIDType -{ - CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 -}; - -union ClaimableBalanceID switch (ClaimableBalanceIDType type) -{ -case CLAIMABLE_BALANCE_ID_TYPE_V0: - Hash v0; -}; - enum ClaimableBalanceFlags { // If set, the issuer account of the asset held by the claimable balance may @@ -682,8 +670,7 @@ enum EnvelopeType enum BucketListType { LIVE = 0, - HOT_ARCHIVE = 1, - COLD_ARCHIVE = 2 + HOT_ARCHIVE = 1 }; /* Entries used to define the bucket list */ @@ -701,19 +688,9 @@ enum HotArchiveBucketEntryType { HOT_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. HOT_ARCHIVE_ARCHIVED = 0, // Entry is Archived - HOT_ARCHIVE_LIVE = 1, // Entry was previously HOT_ARCHIVE_ARCHIVED, or HOT_ARCHIVE_DELETED, but + HOT_ARCHIVE_LIVE = 1 // Entry was previously HOT_ARCHIVE_ARCHIVED, but // has been added back to the live BucketList. // Does not need to be persisted. - HOT_ARCHIVE_DELETED = 2 // Entry deleted (Note: must be persisted in archive) -}; - -enum ColdArchiveBucketEntryType -{ - COLD_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first. - COLD_ARCHIVE_ARCHIVED_LEAF = 0, // Full LedgerEntry that was archived during the epoch - COLD_ARCHIVE_DELETED_LEAF = 1, // LedgerKey that was deleted during the epoch - COLD_ARCHIVE_BOUNDARY_LEAF = 2, // Dummy leaf representing low/high bound - COLD_ARCHIVE_HASH = 3 // Intermediary Merkle hash entry }; struct BucketMetadata @@ -750,48 +727,8 @@ case HOT_ARCHIVE_ARCHIVED: LedgerEntry archivedEntry; case HOT_ARCHIVE_LIVE: -case HOT_ARCHIVE_DELETED: LedgerKey key; case HOT_ARCHIVE_METAENTRY: BucketMetadata metaEntry; }; - -struct ColdArchiveArchivedLeaf -{ - uint32 index; - LedgerEntry archivedEntry; -}; - -struct ColdArchiveDeletedLeaf -{ - uint32 index; - LedgerKey deletedKey; -}; - -struct ColdArchiveBoundaryLeaf -{ - uint32 index; - bool isLowerBound; -}; - -struct ColdArchiveHashEntry -{ - uint32 index; - uint32 level; - Hash hash; -}; - -union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) -{ -case COLD_ARCHIVE_METAENTRY: - BucketMetadata metaEntry; -case COLD_ARCHIVE_ARCHIVED_LEAF: - ColdArchiveArchivedLeaf archivedLeaf; -case COLD_ARCHIVE_DELETED_LEAF: - ColdArchiveDeletedLeaf deletedLeaf; -case COLD_ARCHIVE_BOUNDARY_LEAF: - ColdArchiveBoundaryLeaf boundaryLeaf; -case COLD_ARCHIVE_HASH: - ColdArchiveHashEntry hashEntry; -}; } diff --git a/xdr/next/Stellar-ledger.x b/xdr/next/Stellar-ledger.x index 9c0d0360..a17036b8 100644 --- a/xdr/next/Stellar-ledger.x +++ b/xdr/next/Stellar-ledger.x @@ -128,7 +128,7 @@ enum LedgerUpgradeType }; struct ConfigUpgradeSetKey { - Hash contractID; + ContractID contractID; Hash contentHash; }; @@ -164,12 +164,30 @@ enum TxSetComponentType TXSET_COMP_TXS_MAYBE_DISCOUNTED_FEE = 0 }; -typedef TransactionEnvelope TxExecutionThread<>; -typedef TxExecutionThread ParallelTxExecutionStage<>; - +// A collection of transactions that *may* have arbitrary read-write data +// dependencies between each other, i.e. in a general case the transaction +// execution order within a cluster may not be arbitrarily shuffled without +// affecting the end result. +typedef TransactionEnvelope DependentTxCluster<>; +// A collection of clusters such that are *guaranteed* to not have read-write +// data dependencies in-between clusters, i.e. such that the cluster execution +// order can be arbitrarily shuffled without affecting the end result. Thus +// clusters can be executed in parallel with respect to each other. +typedef DependentTxCluster ParallelTxExecutionStage<>; + +// Transaction set component that contains transactions organized in a +// parallelism-friendly fashion. +// +// The component consists of several stages that have to be executed in +// sequential order, each stage consists of several clusters that can be +// executed in parallel, and the cluster itself consists of several +// transactions that have to be executed in sequential order in a general case. struct ParallelTxsComponent { int64* baseFee; + // A sequence of stages that *may* have arbitrary data dependencies between + // each other, i.e. in a general case the stage execution order may not be + // arbitrarily shuffled without affecting the end result. ParallelTxExecutionStage executionStages<>; }; @@ -303,7 +321,8 @@ enum LedgerEntryChangeType LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger - LEDGER_ENTRY_STATE = 3 // value of the entry + LEDGER_ENTRY_STATE = 3, // value of the entry + LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger }; union LedgerEntryChange switch (LedgerEntryChangeType type) @@ -316,6 +335,8 @@ case LEDGER_ENTRY_REMOVED: LedgerKey removed; case LEDGER_ENTRY_STATE: LedgerEntry state; +case LEDGER_ENTRY_RESTORED: + LedgerEntry restored; }; typedef LedgerEntryChange LedgerEntryChanges<>; @@ -353,7 +374,7 @@ struct ContractEvent // is first, to change ContractEvent into a union. ExtensionPoint ext; - Hash* contractID; + ContractID* contractID; ContractEventType type; union switch (int v) @@ -443,6 +464,64 @@ struct TransactionMetaV3 // Soroban transactions). }; +struct OperationMetaV2 +{ + ExtensionPoint ext; + + LedgerEntryChanges changes; + + ContractEvent events<>; +}; + +struct SorobanTransactionMetaV2 +{ + SorobanTransactionMetaExt ext; + + SCVal* returnValue; +}; + +// Transaction-level events happen at different stages of the ledger apply flow +// (as opposed to the operation events that all happen atomically after +// a transaction is applied). +// This enum represents the possible stages during which an event has been +// emitted. +enum TransactionEventStage { + // The event has happened before any one of the transactions has its + // operations applied. + TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, + // The event has happened immediately after operations of the transaction + // have been applied. + TRANSACTION_EVENT_STAGE_AFTER_TX = 1, + // The event has happened after every transaction had its operations + // applied. + TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 +}; + +// Represents a transaction-level event in metadata. +// Currently this is limited to the fee events (when fee is charged or +// refunded). +struct TransactionEvent { + TransactionEventStage stage; // Stage at which an event has occurred. + ContractEvent event; // The contract event that has occurred. +}; + +struct TransactionMetaV4 +{ + ExtensionPoint ext; + + LedgerEntryChanges txChangesBefore; // tx level changes before operations + // are applied if any + OperationMetaV2 operations<>; // meta for each operation + LedgerEntryChanges txChangesAfter; // tx level changes after operations are + // applied if any + SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for + // Soroban transactions). + + TransactionEvent events<>; // Used for transaction-level events (like fee payment) + DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information +}; + + // This is in Stellar-ledger.x to due to a circular dependency struct InvokeHostFunctionSuccessPreImage { @@ -462,6 +541,8 @@ case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; +case 4: + TransactionMetaV4 v4; }; // This struct groups together changes on a per transaction basis @@ -474,6 +555,20 @@ struct TransactionResultMeta TransactionMeta txApplyProcessing; }; +// This struct groups together changes on a per transaction basis +// note however that fees and transaction application are done in separate +// phases +struct TransactionResultMetaV1 +{ + ExtensionPoint ext; + + TransactionResultPair result; + LedgerEntryChanges feeProcessing; + TransactionMeta txApplyProcessing; + + LedgerEntryChanges postTxApplyFeeProcessing; +}; + // this represents a single upgrade that was performed as part of a ledger // upgrade struct UpgradeEntryMeta @@ -533,16 +628,42 @@ struct LedgerCloseMetaV1 // other misc information attached to the ledger close SCPHistoryEntry scpInfo<>; - // Size in bytes of BucketList, to support downstream + // Size in bytes of live Soroban state, to support downstream // systems calculating storage fees correctly. - uint64 totalByteSizeOfBucketList; + uint64 totalByteSizeOfLiveSorobanState; - // Temp keys that are being evicted at this ledger. - LedgerKey evictedTemporaryLedgerKeys<>; + // TTL and data/code keys that have been evicted at this ledger. + LedgerKey evictedKeys<>; - // Archived restorable ledger entries that are being - // evicted at this ledger. - LedgerEntry evictedPersistentLedgerEntries<>; + // Maintained for backwards compatibility, should never be populated. + LedgerEntry unused<>; +}; + +struct LedgerCloseMetaV2 +{ + LedgerCloseMetaExt ext; + + LedgerHeaderHistoryEntry ledgerHeader; + + GeneralizedTransactionSet txSet; + + // NB: transactions are sorted in apply order here + // fees for all transactions are processed first + // followed by applying transactions + TransactionResultMetaV1 txProcessing<>; + + // upgrades are applied last + UpgradeEntryMeta upgradesProcessing<>; + + // other misc information attached to the ledger close + SCPHistoryEntry scpInfo<>; + + // Size in bytes of live Soroban state, to support downstream + // systems calculating storage fees correctly. + uint64 totalByteSizeOfLiveSorobanState; + + // TTL and data/code keys that have been evicted at this ledger. + LedgerKey evictedKeys<>; }; union LedgerCloseMeta switch (int v) @@ -551,5 +672,7 @@ case 0: LedgerCloseMetaV0 v0; case 1: LedgerCloseMetaV1 v1; +case 2: + LedgerCloseMetaV2 v2; }; } diff --git a/xdr/next/Stellar-overlay.x b/xdr/next/Stellar-overlay.x index b398f883..1eda1fc1 100644 --- a/xdr/next/Stellar-overlay.x +++ b/xdr/next/Stellar-overlay.x @@ -87,14 +87,14 @@ struct PeerAddress uint32 numFailures; }; -// Next ID: 21 +// Next ID: 25 enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, + // GET_PEERS (4) is deprecated - GET_PEERS = 4, // gets a list of peers this guy knows about PEERS = 5, GET_TX_SET = 6, // gets a particular txset by hash @@ -112,8 +112,8 @@ enum MessageType // new messages HELLO = 13, - SURVEY_REQUEST = 14, - SURVEY_RESPONSE = 15, + // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST + // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE SEND_MORE = 16, SEND_MORE_EXTENDED = 20, @@ -135,14 +135,11 @@ struct DontHave enum SurveyMessageCommandType { - SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 }; enum SurveyMessageResponseType { - SURVEY_TOPOLOGY_RESPONSE_V0 = 0, - SURVEY_TOPOLOGY_RESPONSE_V1 = 1, SURVEY_TOPOLOGY_RESPONSE_V2 = 2 }; @@ -189,12 +186,6 @@ struct TimeSlicedSurveyRequestMessage uint32 outboundPeersIndex; }; -struct SignedSurveyRequestMessage -{ - Signature requestSignature; - SurveyRequestMessage request; -}; - struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; @@ -217,12 +208,6 @@ struct TimeSlicedSurveyResponseMessage uint32 nonce; }; -struct SignedSurveyResponseMessage -{ - Signature responseSignature; - SurveyResponseMessage response; -}; - struct SignedTimeSlicedSurveyResponseMessage { Signature responseSignature; @@ -250,8 +235,6 @@ struct PeerStats uint64 duplicateFetchMessageRecv; }; -typedef PeerStats PeerStatList<25>; - struct TimeSlicedNodeData { uint32 addedAuthenticatedPeers; @@ -280,27 +263,6 @@ struct TimeSlicedPeerData typedef TimeSlicedPeerData TimeSlicedPeerDataList<25>; -struct TopologyResponseBodyV0 -{ - PeerStatList inboundPeers; - PeerStatList outboundPeers; - - uint32 totalInboundPeerCount; - uint32 totalOutboundPeerCount; -}; - -struct TopologyResponseBodyV1 -{ - PeerStatList inboundPeers; - PeerStatList outboundPeers; - - uint32 totalInboundPeerCount; - uint32 totalOutboundPeerCount; - - uint32 maxInboundPeerCount; - uint32 maxOutboundPeerCount; -}; - struct TopologyResponseBodyV2 { TimeSlicedPeerDataList inboundPeers; @@ -310,10 +272,6 @@ struct TopologyResponseBodyV2 union SurveyResponseBody switch (SurveyMessageResponseType type) { -case SURVEY_TOPOLOGY_RESPONSE_V0: - TopologyResponseBodyV0 topologyResponseBodyV0; -case SURVEY_TOPOLOGY_RESPONSE_V1: - TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; }; @@ -344,8 +302,6 @@ case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; -case GET_PEERS: - void; case PEERS: PeerAddress peers<100>; @@ -359,12 +315,6 @@ case GENERALIZED_TX_SET: case TRANSACTION: TransactionEnvelope transaction; -case SURVEY_REQUEST: - SignedSurveyRequestMessage signedSurveyRequestMessage; - -case SURVEY_RESPONSE: - SignedSurveyResponseMessage signedSurveyResponseMessage; - case TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; diff --git a/xdr/next/Stellar-transaction.x b/xdr/next/Stellar-transaction.x index f285506f..9a14d6e4 100644 --- a/xdr/next/Stellar-transaction.x +++ b/xdr/next/Stellar-transaction.x @@ -594,6 +594,8 @@ struct SorobanAuthorizationEntry SorobanAuthorizedInvocation rootInvocation; }; +typedef SorobanAuthorizationEntry SorobanAuthorizationEntries<>; + /* Upload Wasm, create, and invoke contracts in Soroban. Threshold: med @@ -823,56 +825,6 @@ struct LedgerFootprint LedgerKey readWrite<>; }; -enum ArchivalProofType -{ - EXISTENCE = 0, - NONEXISTENCE = 1 -}; - -struct ArchivalProofNode -{ - uint32 index; - Hash hash; -}; - -typedef ArchivalProofNode ProofLevel<>; - -struct NonexistenceProofBody -{ - ColdArchiveBucketEntry entriesToProve<>; - - // Vector of vectors, where proofLevels[level] - // contains all HashNodes that correspond with that level - ProofLevel proofLevels<>; -}; - -struct ExistenceProofBody -{ - LedgerKey keysToProve<>; - - // Bounds for each key being proved, where bound[n] - // corresponds to keysToProve[n] - ColdArchiveBucketEntry lowBoundEntries<>; - ColdArchiveBucketEntry highBoundEntries<>; - - // Vector of vectors, where proofLevels[level] - // contains all HashNodes that correspond with that level - ProofLevel proofLevels<>; -}; - -struct ArchivalProof -{ - uint32 epoch; // AST Subtree for this proof - - union switch (ArchivalProofType t) - { - case EXISTENCE: - NonexistenceProofBody nonexistenceProof; - case NONEXISTENCE: - ExistenceProofBody existenceProof; - } body; -}; - // Resource limits for a Soroban transaction. // The transaction will fail if it exceeds any of these limits. struct SorobanResources @@ -882,12 +834,20 @@ struct SorobanResources // The maximum number of instructions this transaction can use uint32 instructions; - // The maximum number of bytes this transaction can read from ledger - uint32 readBytes; + // The maximum number of bytes this transaction can read from disk backed entries + uint32 diskReadBytes; // The maximum number of bytes this transaction can write to ledger uint32 writeBytes; }; +struct SorobanResourcesExtV0 +{ + // Vector of indices representing what Soroban + // entries in the footprint are archived, based on the + // order of keys provided in the readWrite footprint. + uint32 archivedSorobanEntries<>; +}; + // The transaction extension for Soroban. struct SorobanTransactionData { @@ -896,7 +856,7 @@ struct SorobanTransactionData case 0: void; case 1: - ArchivalProof proofs<>; + SorobanResourcesExtV0 resourceExt; } ext; SorobanResources resources; // Amount of the transaction `fee` allocated to the Soroban resource fees. @@ -966,7 +926,6 @@ struct Transaction Operation operations; - // reserved for future use union switch (int v) { case 0: diff --git a/xdr/next/Stellar-types.x b/xdr/next/Stellar-types.x index 758c2954..f383d2e4 100644 --- a/xdr/next/Stellar-types.x +++ b/xdr/next/Stellar-types.x @@ -84,6 +84,8 @@ typedef opaque SignatureHint[4]; typedef PublicKey NodeID; typedef PublicKey AccountID; +typedef Hash ContractID; + struct Curve25519Secret { opaque key[32]; @@ -134,4 +136,17 @@ struct SerializedBinaryFuseFilter // Array of uint8_t, uint16_t, or uint32_t depending on filter type opaque fingerprints<>; }; -} + +typedef Hash PoolID; // SHA256(LiquidityPoolParameters) + +enum ClaimableBalanceIDType +{ + CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 +}; + +union ClaimableBalanceID switch (ClaimableBalanceIDType type) +{ +case CLAIMABLE_BALANCE_ID_TYPE_V0: + Hash v0; +}; +} \ No newline at end of file From f2bb21d1b7088d860454922725f8cb180d07c999 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 May 2025 12:54:43 -0700 Subject: [PATCH 2/4] 2. Post-generation fixups to work around bugs or project-specific stuff: * Move `xdr.Operation` into a hidden namespace to avoid conflicts with the SDK's `Operation`. * Minimize the diff by running `sed -ie s/\"/\'/g types/{curr,next}.d.ts` (because the generator uses a different prettier config--this could probably be fixed in the generator itself, but this is easy enough for now). * Add workarounds: - `type Hash = Opaque[];` is a necessary alias that doesn't get gen'd - `Hyper`, `UnsignedHyper`, and `ScSpecEventV0` need their signatures fixed because it should take a proper `Array` instead of a naked `[]` (enforced by `yarn lint`). - Some constants aren't generated correctly, ref. the linked issue Account for generator bugs: constants that aren't present --- src/generated/curr_generated.js | 498 +-- src/generated/next_generated.js | 498 +-- types/curr.d.ts | 5270 ++++++++++++++++--------------- types/next.d.ts | 5266 +++++++++++++++--------------- 4 files changed, 5796 insertions(+), 5736 deletions(-) diff --git a/src/generated/curr_generated.js b/src/generated/curr_generated.js index 803a0094..977a3c5d 100644 --- a/src/generated/curr_generated.js +++ b/src/generated/curr_generated.js @@ -8,6 +8,12 @@ import * as XDR from '@stellar/js-xdr'; var types = XDR.config(xdr => { +// Workaround for https://github.com/stellar/xdrgen/issues/152 +// +// The "correct" way would be to replace bare instances of each constant with +// xdr.lookup("..."), but that's more error-prone. +const SCSYMBOL_LIMIT = 32; +const SC_SPEC_DOC_LIMIT = 1024; // === xdr source ============================================================ // @@ -180,7 +186,7 @@ xdr.union("ScpStatementPledges", { // { // NodeID nodeID; // v // uint64 slotIndex; // i -// +// // union switch (SCPStatementType type) // { // case SCP_ST_PREPARE: @@ -325,10 +331,10 @@ xdr.enum("AssetType", { // { // case ASSET_TYPE_CREDIT_ALPHANUM4: // AssetCode4 assetCode4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AssetCode12 assetCode12; -// +// // // add other asset types here in the future // }; // @@ -380,13 +386,13 @@ xdr.struct("AlphaNum12", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // // add other asset types here in the future // }; // @@ -499,7 +505,7 @@ xdr.struct("Signer", [ // // enum AccountFlags // { // masks for each flag -// +// // // Flags set on issuer accounts // // TrustLines are created with authorized set to "false" requiring // // the issuer to set it for each TrustLine @@ -558,10 +564,10 @@ xdr.typedef("SponsorshipDescriptor", xdr.option(xdr.lookup("AccountId"))); // // We can use this to add more fields, or because it is first, to // // change AccountEntryExtensionV3 into a union. // ExtensionPoint ext; -// +// // // Ledger number at which `seqNum` took on its present value. // uint32 seqLedger; -// +// // // Time at which `seqNum` took on its present value. // TimePoint seqTime; // }; @@ -603,7 +609,7 @@ xdr.union("AccountEntryExtensionV2Ext", { // uint32 numSponsored; // uint32 numSponsoring; // SponsorshipDescriptor signerSponsoringIDs; -// +// // union switch (int v) // { // case 0: @@ -650,7 +656,7 @@ xdr.union("AccountEntryExtensionV1Ext", { // struct AccountEntryExtensionV1 // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -701,15 +707,15 @@ xdr.union("AccountEntryExt", { // // drives the reserve // AccountID* inflationDest; // Account to vote for during inflation // uint32 flags; // see AccountFlags -// +// // string32 homeDomain; // can be used for reverse federation and memo lookup -// +// // // fields used for signatures // // thresholds stores unsigned bytes: [weight of master|low|medium|high] // Thresholds thresholds; -// +// // Signer signers; // possible signers for this account -// +// // // reserved for future use // union switch (int v) // { @@ -795,16 +801,16 @@ xdr.enum("LiquidityPoolType", { // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // PoolID liquidityPoolID; -// +// // // add other asset types here in the future // }; // @@ -849,7 +855,7 @@ xdr.union("TrustLineEntryExtensionV2Ext", { // struct TrustLineEntryExtensionV2 // { // int32 liquidityPoolUseCount; -// +// // union switch (int v) // { // case 0: @@ -892,7 +898,7 @@ xdr.union("TrustLineEntryV1Ext", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -919,7 +925,7 @@ xdr.struct("TrustLineEntryV1", [ // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -952,10 +958,10 @@ xdr.union("TrustLineEntryExt", { // TrustLineAsset asset; // type of asset (with issuer) // int64 balance; // how much of this asset the user has. // // Asset defines the unit for this; -// +// // int64 limit; // balance cannot be above this // uint32 flags; // see TrustLineFlags -// +// // // reserved for future use // union switch (int v) // { @@ -965,7 +971,7 @@ xdr.union("TrustLineEntryExt", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -1038,7 +1044,7 @@ xdr.union("OfferEntryExt", { // Asset selling; // A // Asset buying; // B // int64 amount; // amount of A -// +// // /* price for this offer: // price of A in terms of B // price=AmountB/AmountA=priceNumerator/priceDenominator @@ -1046,7 +1052,7 @@ xdr.union("OfferEntryExt", { // */ // Price price; // uint32 flags; // see OfferEntryFlags -// +// // // reserved for future use // union switch (int v) // { @@ -1094,7 +1100,7 @@ xdr.union("DataEntryExt", { // AccountID accountID; // account this data belongs to // string64 dataName; // DataValue dataValue; -// +// // // reserved for future use // union switch (int v) // { @@ -1274,7 +1280,7 @@ xdr.union("ClaimableBalanceEntryExtensionV1Ext", { // void; // } // ext; -// +// // uint32 flags; // see ClaimableBalanceFlags // }; // @@ -1313,16 +1319,16 @@ xdr.union("ClaimableBalanceEntryExt", { // { // // Unique identifier for this ClaimableBalanceEntry // ClaimableBalanceID balanceID; -// +// // // List of claimants with associated predicate // Claimant claimants<10>; -// +// // // Any asset including native // Asset asset; -// +// // // Amount of asset // int64 amount; -// +// // // reserved for future use // union switch (int v) // { @@ -1364,7 +1370,7 @@ xdr.struct("LiquidityPoolConstantProductParameters", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1389,7 +1395,7 @@ xdr.struct("LiquidityPoolEntryConstantProduct", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1415,14 +1421,14 @@ xdr.union("LiquidityPoolEntryBody", { // struct LiquidityPoolEntry // { // PoolID liquidityPoolID; -// +// // union switch (LiquidityPoolType type) // { // case LIQUIDITY_POOL_CONSTANT_PRODUCT: // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1456,7 +1462,7 @@ xdr.enum("ContractDataDurability", { // // struct ContractDataEntry { // ExtensionPoint ext; -// +// // SCAddress contract; // SCVal key; // ContractDataDurability durability; @@ -1558,7 +1564,7 @@ xdr.union("ContractCodeEntryExt", { // ContractCodeCostInputs costInputs; // } v1; // } ext; -// +// // Hash hash; // opaque code<>; // }; @@ -1608,7 +1614,7 @@ xdr.union("LedgerEntryExtensionV1Ext", { // struct LedgerEntryExtensionV1 // { // SponsorshipDescriptor sponsoringID; -// +// // union switch (int v) // { // case 0: @@ -1707,7 +1713,7 @@ xdr.union("LedgerEntryExt", { // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed -// +// // union switch (LedgerEntryType type) // { // case ACCOUNT: @@ -1732,7 +1738,7 @@ xdr.union("LedgerEntryExt", { // TTLEntry ttl; // } // data; -// +// // // reserved for future use // union switch (int v) // { @@ -1891,34 +1897,34 @@ xdr.struct("LedgerKeyTtl", [ // { // AccountID accountID; // } account; -// +// // case TRUSTLINE: // struct // { // AccountID accountID; // TrustLineAsset asset; // } trustLine; -// +// // case OFFER: // struct // { // AccountID sellerID; // int64 offerID; // } offer; -// +// // case DATA: // struct // { // AccountID accountID; // string64 dataName; // } data; -// +// // case CLAIMABLE_BALANCE: // struct // { // ClaimableBalanceID balanceID; // } claimableBalance; -// +// // case LIQUIDITY_POOL: // struct // { @@ -2090,7 +2096,7 @@ xdr.union("BucketMetadataExt", { // { // // Indicates the protocol version used to create / merge this bucket. // uint32 ledgerVersion; -// +// // // reserved for future use // union switch (int v) // { @@ -2115,7 +2121,7 @@ xdr.struct("BucketMetadata", [ // case LIVEENTRY: // case INITENTRY: // LedgerEntry liveEntry; -// +// // case DEADENTRY: // LedgerKey deadEntry; // case METAENTRY: @@ -2145,7 +2151,7 @@ xdr.union("BucketEntry", { // { // case HOT_ARCHIVE_ARCHIVED: // LedgerEntry archivedEntry; -// +// // case HOT_ARCHIVE_LIVE: // LedgerKey key; // case HOT_ARCHIVE_METAENTRY: @@ -2232,14 +2238,14 @@ xdr.union("StellarValueExt", { // { // Hash txSetHash; // transaction set to apply to previous ledger // TimePoint closeTime; // network close time -// +// // // upgrades to apply to the previous ledger (usually empty) // // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop // // unknown steps during consensus if needed. // // see notes below on 'LedgerUpgrade' for more detail // // max size is dictated by number of upgrade types (+ room for future) // UpgradeType upgrades<6>; -// +// // // reserved for future use // union switch (StellarValueType v) // { @@ -2306,7 +2312,7 @@ xdr.union("LedgerHeaderExtensionV1Ext", { // struct LedgerHeaderExtensionV1 // { // uint32 flags; // LedgerHeaderFlags -// +// // union switch (int v) // { // case 0: @@ -2353,28 +2359,28 @@ xdr.union("LedgerHeaderExt", { // StellarValue scpValue; // what consensus agreed to // Hash txSetResultHash; // the TransactionResultSet that led to this ledger // Hash bucketListHash; // hash of the ledger state -// +// // uint32 ledgerSeq; // sequence number of this ledger -// +// // int64 totalCoins; // total number of stroops in existence. // // 10,000,000 stroops in 1 XLM -// +// // int64 feePool; // fees burned since last inflation run // uint32 inflationSeq; // inflation sequence number -// +// // uint64 idPool; // last used global ID, used for generating objects -// +// // uint32 baseFee; // base fee per operation in stroops // uint32 baseReserve; // account base reserve in stroops -// +// // uint32 maxTxSetSize; // maximum size a transaction set can be -// +// // Hash skipList[4]; // hashes of ledgers in the past. allows you to jump back // // in time without walking the chain back ledger by ledger // // each slot contains the oldest ledger that is mod of // // either 50 5000 50000 or 500000 depending on index // // skipList[0] mod(50), skipList[1] mod(5000), etc -// +// // // reserved for future use // union switch (int v) // { @@ -2711,7 +2717,7 @@ xdr.union("TransactionHistoryEntryExt", { // { // uint32 ledgerSeq; // TransactionSet txSet; -// +// // // when v != 0, txSet must be empty // union switch (int v) // { @@ -2755,7 +2761,7 @@ xdr.union("TransactionHistoryResultEntryExt", { // { // uint32 ledgerSeq; // TransactionResultSet txResultSet; -// +// // // reserved for future use // union switch (int v) // { @@ -2797,7 +2803,7 @@ xdr.union("LedgerHeaderHistoryEntryExt", { // { // Hash hash; // LedgerHeader header; -// +// // // reserved for future use // union switch (int v) // { @@ -3030,10 +3036,10 @@ xdr.union("ContractEventBody", { // // We can use this to add more fields, or because it // // is first, to change ContractEvent into a union. // ExtensionPoint ext; -// +// // ContractID* contractID; // ContractEventType type; -// +// // union switch (int v) // { // case 0: @@ -3073,22 +3079,22 @@ xdr.struct("DiagnosticEvent", [ // struct SorobanTransactionMetaExtV1 // { // ExtensionPoint ext; -// +// // // The following are the components of the overall Soroban resource fee // // charged for the transaction. // // The following relation holds: // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged` -// // where `resourceFeeCharged` is the overall fee charged for the -// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` +// // where `resourceFeeCharged` is the overall fee charged for the +// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` // // i.e.we never charge more than the declared resource fee. -// // The inclusion fee for charged the Soroban transaction can be found using +// // The inclusion fee for charged the Soroban transaction can be found using // // the following equation: // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`. -// +// // // Total amount (in stroops) that has been charged for non-refundable // // Soroban resources. // // Non-refundable resources are charged based on the usage declared in -// // the transaction envelope (such as `instructions`, `readBytes` etc.) and +// // the transaction envelope (such as `instructions`, `readBytes` etc.) and // // is charged regardless of the success of the transaction. // int64 totalNonRefundableResourceFeeCharged; // // Total amount (in stroops) that has been charged for refundable @@ -3137,14 +3143,14 @@ xdr.union("SorobanTransactionMetaExt", { // === xdr source ============================================================ // -// struct SorobanTransactionMeta +// struct SorobanTransactionMeta // { // SorobanTransactionMetaExt ext; -// +// // ContractEvent events<>; // custom events populated by the // // contracts themselves. // SCVal returnValue; // return value of the host fn invocation -// +// // // Diagnostics events that are not hashed. // // This will contain all contract and diagnostic events. Even ones // // that were emitted in a failed contract call. @@ -3164,13 +3170,13 @@ xdr.struct("SorobanTransactionMeta", [ // struct TransactionMetaV3 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMeta operations<>; // meta for each operation // LedgerEntryChanges txChangesAfter; // tx level changes after operations are // // applied if any -// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for +// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). // }; // @@ -3188,9 +3194,9 @@ xdr.struct("TransactionMetaV3", [ // struct OperationMetaV2 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges changes; -// +// // ContractEvent events<>; // }; // @@ -3206,7 +3212,7 @@ xdr.struct("OperationMetaV2", [ // struct SorobanTransactionMetaV2 // { // SorobanTransactionMetaExt ext; -// +// // SCVal* returnValue; // }; // @@ -3219,13 +3225,13 @@ xdr.struct("SorobanTransactionMetaV2", [ // === xdr source ============================================================ // // enum TransactionEventStage { -// // The event has happened before any one of the transactions has its +// // The event has happened before any one of the transactions has its // // operations applied. // TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, // // The event has happened immediately after operations of the transaction // // have been applied. // TRANSACTION_EVENT_STAGE_AFTER_TX = 1, -// // The event has happened after every transaction had its operations +// // The event has happened after every transaction had its operations // // applied. // TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 // }; @@ -3239,7 +3245,7 @@ xdr.enum("TransactionEventStage", { // === xdr source ============================================================ // -// struct TransactionEvent { +// struct TransactionEvent { // TransactionEventStage stage; // Stage at which an event has occurred. // ContractEvent event; // The contract event that has occurred. // }; @@ -3255,7 +3261,7 @@ xdr.struct("TransactionEvent", [ // struct TransactionMetaV4 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMetaV2 operations<>; // meta for each operation @@ -3263,7 +3269,7 @@ xdr.struct("TransactionEvent", [ // // applied if any // SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). -// +// // TransactionEvent events<>; // Used for transaction-level events (like fee payment) // DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information // }; @@ -3350,11 +3356,11 @@ xdr.struct("TransactionResultMeta", [ // struct TransactionResultMetaV1 // { // ExtensionPoint ext; -// +// // TransactionResultPair result; // LedgerEntryChanges feeProcessing; // TransactionMeta txApplyProcessing; -// +// // LedgerEntryChanges postTxApplyFeeProcessing; // }; // @@ -3388,15 +3394,15 @@ xdr.struct("UpgradeEntryMeta", [ // LedgerHeaderHistoryEntry ledgerHeader; // // NB: txSet is sorted in "Hash order" // TransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; // }; @@ -3452,29 +3458,29 @@ xdr.union("LedgerCloseMetaExt", { // struct LedgerCloseMetaV1 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// +// // // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. // uint64 totalByteSizeOfLiveSorobanState; -// +// // // TTL and data/code keys that have been evicted at this ledger. // LedgerKey evictedKeys<>; -// +// // // Maintained for backwards compatibility, should never be populated. // LedgerEntry unused<>; // }; @@ -3497,26 +3503,26 @@ xdr.struct("LedgerCloseMetaV1", [ // struct LedgerCloseMetaV2 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMetaV1 txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// +// // // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. // uint64 totalByteSizeOfLiveSorobanState; -// +// // // TTL and data/code keys that have been evicted at this ledger. // LedgerKey evictedKeys<>; // }; @@ -3753,33 +3759,33 @@ xdr.struct("PeerAddress", [ // AUTH = 2, // DONT_HAVE = 3, // // GET_PEERS (4) is deprecated -// +// // PEERS = 5, -// +// // GET_TX_SET = 6, // gets a particular txset by hash // TX_SET = 7, // GENERALIZED_TX_SET = 17, -// +// // TRANSACTION = 8, // pass on a tx you have heard about -// +// // // SCP // GET_SCP_QUORUMSET = 9, // SCP_QUORUMSET = 10, // SCP_MESSAGE = 11, // GET_SCP_STATE = 12, -// +// // // new messages // HELLO = 13, -// +// // // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE -// +// // SEND_MORE = 16, // SEND_MORE_EXTENDED = 20, -// +// // FLOOD_ADVERT = 18, // FLOOD_DEMAND = 19, -// +// // TIME_SLICED_SURVEY_REQUEST = 21, // TIME_SLICED_SURVEY_RESPONSE = 22, // TIME_SLICED_SURVEY_START_COLLECTING = 23, @@ -4027,12 +4033,12 @@ xdr.struct("SignedTimeSlicedSurveyResponseMessage", [ // uint64 bytesRead; // uint64 bytesWritten; // uint64 secondsConnected; -// +// // uint64 uniqueFloodBytesRecv; // uint64 duplicateFloodBytesRecv; // uint64 uniqueFetchBytesRecv; // uint64 duplicateFetchBytesRecv; -// +// // uint64 uniqueFloodMessageRecv; // uint64 duplicateFloodMessageRecv; // uint64 uniqueFetchMessageRecv; @@ -4066,14 +4072,14 @@ xdr.struct("PeerStats", [ // uint32 droppedAuthenticatedPeers; // uint32 totalInboundPeerCount; // uint32 totalOutboundPeerCount; -// +// // // SCP stats // uint32 p75SCPFirstToSelfLatencyMs; // uint32 p75SCPSelfToOtherLatencyMs; -// +// // // How many times the node lost sync in the time slice // uint32 lostSyncCount; -// +// // // Config data // bool isValidator; // uint32 maxInboundPeerCount; @@ -4217,31 +4223,31 @@ xdr.struct("FloodDemand", [ // DontHave dontHave; // case PEERS: // PeerAddress peers<100>; -// +// // case GET_TX_SET: // uint256 txSetHash; // case TX_SET: // TransactionSet txSet; // case GENERALIZED_TX_SET: // GeneralizedTransactionSet generalizedTxSet; -// +// // case TRANSACTION: // TransactionEnvelope transaction; -// +// // case TIME_SLICED_SURVEY_REQUEST: // SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; -// +// // case TIME_SLICED_SURVEY_RESPONSE: // SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_START_COLLECTING: // SignedTimeSlicedSurveyStartCollectingMessage // signedTimeSlicedSurveyStartCollectingMessage; -// +// // case TIME_SLICED_SURVEY_STOP_COLLECTING: // SignedTimeSlicedSurveyStopCollectingMessage // signedTimeSlicedSurveyStopCollectingMessage; -// +// // // SCP // case GET_SCP_QUORUMSET: // uint256 qSetHash; @@ -4540,11 +4546,11 @@ xdr.struct("PaymentOp", [ // int64 sendMax; // the maximum amount of sendAsset to // // send (excluding fees). // // The operation will fail if can't be met -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destAmount; // amount they end up with -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4564,13 +4570,13 @@ xdr.struct("PathPaymentStrictReceiveOp", [ // { // Asset sendAsset; // asset we pay with // int64 sendAmount; // amount of sendAsset to send (excluding fees) -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destMin; // the minimum amount of dest asset to // // be received // // The operation will fail if it can't be met -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4592,7 +4598,7 @@ xdr.struct("PathPaymentStrictSendOp", [ // Asset buying; // int64 amount; // amount being sold. if set to 0, delete the offer // Price price; // price of thing being sold in terms of what you are buying -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4615,7 +4621,7 @@ xdr.struct("ManageSellOfferOp", [ // int64 buyAmount; // amount being bought. if set to 0, delete the offer // Price price; // price of thing being bought in terms of what you are // // selling -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4652,18 +4658,18 @@ xdr.struct("CreatePassiveSellOfferOp", [ // struct SetOptionsOp // { // AccountID* inflationDest; // sets the inflation destination -// +// // uint32* clearFlags; // which flags to clear // uint32* setFlags; // which flags to set -// +// // // account threshold manipulation // uint32* masterWeight; // weight of the master account // uint32* lowThreshold; // uint32* medThreshold; // uint32* highThreshold; -// +// // string32* homeDomain; // sets the home domain -// +// // // Add, update or remove a signer for the account // // signer is deleted if the weight is 0 // Signer* signer; @@ -4688,16 +4694,16 @@ xdr.struct("SetOptionsOp", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // LiquidityPoolParameters liquidityPool; -// +// // // add other asset types here in the future // }; // @@ -4723,7 +4729,7 @@ xdr.union("ChangeTrustAsset", { // struct ChangeTrustOp // { // ChangeTrustAsset line; -// +// // // if limit is set to 0, deletes the trust line // int64 limit; // }; @@ -4740,7 +4746,7 @@ xdr.struct("ChangeTrustOp", [ // { // AccountID trustor; // AssetCode asset; -// +// // // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG // uint32 authorize; // }; @@ -4908,7 +4914,7 @@ xdr.struct("ClawbackClaimableBalanceOp", [ // { // AccountID trustor; // Asset asset; -// +// // uint32 clearFlags; // which flags to clear // uint32 setFlags; // which flags to set // }; @@ -5143,7 +5149,7 @@ xdr.enum("SorobanAuthorizedFunctionType", { // // This variant of auth payload for creating new contract instances // // doesn't allow specifying the constructor arguments, creating contracts // // with constructors that take arguments is only possible by authorizing -// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` +// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` // // (protocol 22+). // case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: // CreateContractArgs createContractHostFn; @@ -5190,7 +5196,7 @@ xdr.struct("SorobanAuthorizedInvocation", [ // { // SCAddress address; // int64 nonce; -// uint32 signatureExpirationLedger; +// uint32 signatureExpirationLedger; // SCVal signature; // }; // @@ -5432,7 +5438,7 @@ xdr.union("OperationBody", { // // if not set, the runtime defaults to "sourceAccount" specified at // // the transaction level // MuxedAccount* sourceAccount; -// +// // union switch (OperationType type) // { // case CREATE_ACCOUNT: @@ -5520,7 +5526,7 @@ xdr.struct("HashIdPreimageOperationId", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5582,7 +5588,7 @@ xdr.struct("HashIdPreimageSorobanAuthorization", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5709,12 +5715,12 @@ xdr.struct("LedgerBounds", [ // struct PreconditionsV2 // { // TimeBounds* timeBounds; -// +// // // Transaction only valid for ledger numbers n such that // // minLedger <= n < maxLedger (if maxLedger == 0, then // // only minLedger is checked) // LedgerBounds* ledgerBounds; -// +// // // If NULL, only valid when sourceAccount's sequence number // // is seqNum - 1. Otherwise, valid when sourceAccount's // // sequence number n satisfies minSeqNum <= n < tx.seqNum. @@ -5722,16 +5728,16 @@ xdr.struct("LedgerBounds", [ // // is always raised to tx.seqNum, and a transaction is not // // valid if tx.seqNum is too high to ensure replay protection. // SequenceNumber* minSeqNum; -// +// // // For the transaction to be valid, the current ledger time must // // be at least minSeqAge greater than sourceAccount's seqTime. // Duration minSeqAge; -// +// // // For the transaction to be valid, the current ledger number // // must be at least minSeqLedgerGap greater than sourceAccount's // // seqLedger. // uint32 minSeqLedgerGap; -// +// // // For the transaction to be valid, there must be a signature // // corresponding to every Signer in this array, even if the // // signature is not otherwise required by the sourceAccount or @@ -5809,12 +5815,12 @@ xdr.struct("LedgerFootprint", [ // === xdr source ============================================================ // // struct SorobanResources -// { +// { // // The ledger footprint of the transaction. // LedgerFootprint footprint; // // The maximum number of instructions this transaction can use -// uint32 instructions; -// +// uint32 instructions; +// // // The maximum number of bytes this transaction can read from disk backed entries // uint32 diskReadBytes; // // The maximum number of bytes this transaction can write to ledger @@ -5880,7 +5886,7 @@ xdr.union("SorobanTransactionDataExt", { // } ext; // SorobanResources resources; // // Amount of the transaction `fee` allocated to the Soroban resource fees. -// // The fraction of `resourceFee` corresponding to `resources` specified +// // The fraction of `resourceFee` corresponding to `resources` specified // // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // // well as fees for the transaction size. // // The remaining part of the fee is refundable and the charged value is @@ -5991,20 +5997,20 @@ xdr.union("TransactionExt", { // { // // account used to run the transaction // MuxedAccount sourceAccount; -// +// // // the fee the sourceAccount will pay // uint32 fee; -// +// // // sequence number to consume in the account // SequenceNumber seqNum; -// +// // // validity conditions // Preconditions cond; -// +// // Memo memo; -// +// // Operation operations; -// +// // union switch (int v) // { // case 0: @@ -6223,11 +6229,11 @@ xdr.enum("ClaimAtomType", { // // emitted to identify the offer // uint256 sellerEd25519; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6250,11 +6256,11 @@ xdr.struct("ClaimOfferAtomV0", [ // // emitted to identify the offer // AccountID sellerID; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6275,11 +6281,11 @@ xdr.struct("ClaimOfferAtom", [ // struct ClaimLiquidityAtom // { // PoolID liquidityPoolID; -// +// // // amount and asset taken from the pool // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the pool // Asset assetBought; // int64 amountBought; @@ -6328,7 +6334,7 @@ xdr.union("ClaimAtom", { // { // // codes considered as "success" for the operation // CREATE_ACCOUNT_SUCCESS = 0, // account was created -// +// // // codes considered as "failure" for the operation // CREATE_ACCOUNT_MALFORMED = -1, // invalid destination // CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account @@ -6380,7 +6386,7 @@ xdr.union("CreateAccountResult", { // { // // codes considered as "success" for the operation // PAYMENT_SUCCESS = 0, // payment successfully completed -// +// // // codes considered as "failure" for the operation // PAYMENT_MALFORMED = -1, // bad input // PAYMENT_UNDERFUNDED = -2, // not enough funds in source account @@ -6451,7 +6457,7 @@ xdr.union("PaymentResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = @@ -6582,7 +6588,7 @@ xdr.union("PathPaymentStrictReceiveResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_SEND_UNDERFUNDED = @@ -6695,7 +6701,7 @@ xdr.union("PathPaymentStrictSendResult", { // { // // codes considered as "success" for the operation // MANAGE_SELL_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_SELL_OFFER_SELL_NO_TRUST = @@ -6709,11 +6715,11 @@ xdr.union("PathPaymentStrictSendResult", { // -8, // would cross an offer from the same user // MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_SELL_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_SELL_OFFER_LOW_RESERVE = // -12 // not enough funds to create a new Offer // }; @@ -6782,7 +6788,7 @@ xdr.union("ManageOfferSuccessResultOffer", { // { // // offers that got claimed while creating this offer // ClaimAtom offersClaimed<>; -// +// // union switch (ManageOfferEffect effect) // { // case MANAGE_OFFER_CREATED: @@ -6851,7 +6857,7 @@ xdr.union("ManageSellOfferResult", { // { // // codes considered as "success" for the operation // MANAGE_BUY_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling @@ -6863,11 +6869,11 @@ xdr.union("ManageSellOfferResult", { // MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user // MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_BUY_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer // }; // @@ -7457,7 +7463,7 @@ xdr.union("ClaimClaimableBalanceResult", { // { // // codes considered as "success" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1, // BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2, @@ -7505,7 +7511,7 @@ xdr.union("BeginSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // END_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1 // }; @@ -7545,7 +7551,7 @@ xdr.union("EndSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // REVOKE_SPONSORSHIP_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, // REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, @@ -7600,7 +7606,7 @@ xdr.union("RevokeSponsorshipResult", { // { // // codes considered as "success" for the operation // CLAWBACK_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_MALFORMED = -1, // CLAWBACK_NOT_CLAWBACK_ENABLED = -2, @@ -7651,7 +7657,7 @@ xdr.union("ClawbackResult", { // { // // codes considered as "success" for the operation // CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, // CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2, @@ -7699,7 +7705,7 @@ xdr.union("ClawbackClaimableBalanceResult", { // { // // codes considered as "success" for the operation // SET_TRUST_LINE_FLAGS_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // SET_TRUST_LINE_FLAGS_MALFORMED = -1, // SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, @@ -7755,7 +7761,7 @@ xdr.union("SetTrustLineFlagsResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input // LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the @@ -7822,7 +7828,7 @@ xdr.union("LiquidityPoolDepositResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input // LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the @@ -7880,7 +7886,7 @@ xdr.union("LiquidityPoolWithdrawResult", { // { // // codes considered as "success" for the operation // INVOKE_HOST_FUNCTION_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // INVOKE_HOST_FUNCTION_MALFORMED = -1, // INVOKE_HOST_FUNCTION_TRAPPED = -2, @@ -7936,7 +7942,7 @@ xdr.union("InvokeHostFunctionResult", { // { // // codes considered as "success" for the operation // EXTEND_FOOTPRINT_TTL_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // EXTEND_FOOTPRINT_TTL_MALFORMED = -1, // EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED = -2, @@ -7983,7 +7989,7 @@ xdr.union("ExtendFootprintTtlResult", { // { // // codes considered as "success" for the operation // RESTORE_FOOTPRINT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // RESTORE_FOOTPRINT_MALFORMED = -1, // RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8029,7 +8035,7 @@ xdr.union("RestoreFootprintResult", { // enum OperationResultCode // { // opINNER = 0, // inner object result is valid -// +// // opBAD_AUTH = -1, // too few valid signatures / wrong network // opNO_ACCOUNT = -2, // source account was not found // opNOT_SUPPORTED = -3, // operation not supported at this time @@ -8269,21 +8275,21 @@ xdr.union("OperationResult", { // { // txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded // txSUCCESS = 0, // all operations succeeded -// +// // txFAILED = -1, // one of the operations failed (none were applied) -// +// // txTOO_EARLY = -2, // ledger closeTime before minTime // txTOO_LATE = -3, // ledger closeTime after maxTime // txMISSING_OPERATION = -4, // no operation was specified // txBAD_SEQ = -5, // sequence number does not match source account -// +// // txBAD_AUTH = -6, // too few valid signatures / wrong network // txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve // txNO_ACCOUNT = -8, // source account not found // txINSUFFICIENT_FEE = -9, // fee is too small // txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction // txINTERNAL_ERROR = -11, // an unknown error occurred -// +// // txNOT_SUPPORTED = -12, // transaction type not supported // txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed // txBAD_SPONSORSHIP = -14, // sponsorship not confirmed @@ -8395,7 +8401,7 @@ xdr.union("InnerTransactionResultExt", { // { // // Always 0. Here for binary compatibility. // int64 feeCharged; -// +// // union switch (TransactionResultCode code) // { // // txFEE_BUMP_INNER_SUCCESS is not included @@ -8421,7 +8427,7 @@ xdr.union("InnerTransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8536,7 +8542,7 @@ xdr.union("TransactionResultExt", { // struct TransactionResult // { // int64 feeCharged; // actual fee charged for the transaction -// +// // union switch (TransactionResultCode code) // { // case txFEE_BUMP_INNER_SUCCESS: @@ -8564,7 +8570,7 @@ xdr.union("TransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8900,10 +8906,10 @@ xdr.enum("BinaryFuseFilterType", { // struct SerializedBinaryFuseFilter // { // BinaryFuseFilterType type; -// +// // // Seed used to hash input to filter // ShortHashSeed inputHashSeed; -// +// // // Seed used for internal filter hash operations // ShortHashSeed filterSeed; // uint32 segmentLength; @@ -8911,7 +8917,7 @@ xdr.enum("BinaryFuseFilterType", { // uint32 segmentCount; // uint32 segmentCountLength; // uint32 fingerprintLength; // Length in terms of element count, not bytes -// +// // // Array of uint8_t, uint16_t, or uint32_t depending on filter type // opaque fingerprints<>; // }; @@ -8975,49 +8981,49 @@ xdr.union("ClaimableBalanceId", { // SCV_BOOL = 0, // SCV_VOID = 1, // SCV_ERROR = 2, -// +// // // 32 bits is the smallest type in WASM or XDR; no need for u8/u16. // SCV_U32 = 3, // SCV_I32 = 4, -// +// // // 64 bits is naturally supported by both WASM and XDR also. // SCV_U64 = 5, // SCV_I64 = 6, -// +// // // Time-related u64 subtypes with their own functions and formatting. // SCV_TIMEPOINT = 7, // SCV_DURATION = 8, -// +// // // 128 bits is naturally supported by Rust and we use it for Soroban // // fixed-point arithmetic prices / balances / similar "quantities". These // // are represented in XDR as a pair of 2 u64s. // SCV_U128 = 9, // SCV_I128 = 10, -// +// // // 256 bits is the size of sha256 output, ed25519 keys, and the EVM machine // // word, so for interop use we include this even though it requires a small // // amount of Rust guest and/or host library code. // SCV_U256 = 11, // SCV_I256 = 12, -// +// // // Bytes come in 3 flavors, 2 of which have meaningfully different // // formatting and validity-checking / domain-restriction. // SCV_BYTES = 13, // SCV_STRING = 14, // SCV_SYMBOL = 15, -// +// // // Vecs and maps are just polymorphic containers of other ScVals. // SCV_VEC = 16, // SCV_MAP = 17, -// +// // // Address is the universal identifier for contracts and classic // // accounts. // SCV_ADDRESS = 18, -// +// // // The following are the internal SCVal variants that are not -// // exposed to the contracts. +// // exposed to the contracts. // SCV_CONTRACT_INSTANCE = 19, -// +// // // SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique // // symbolic SCVals used as the key for ledger entries for a contract's // // instance and an address' nonce, respectively. @@ -9388,19 +9394,19 @@ xdr.struct("ScContractInstance", [ // // union SCVal switch (SCValType type) // { -// +// // case SCV_BOOL: // bool b; // case SCV_VOID: // void; // case SCV_ERROR: // SCError error; -// +// // case SCV_U32: // uint32 u32; // case SCV_I32: // int32 i32; -// +// // case SCV_U64: // uint64 u64; // case SCV_I64: @@ -9409,34 +9415,34 @@ xdr.struct("ScContractInstance", [ // TimePoint timepoint; // case SCV_DURATION: // Duration duration; -// +// // case SCV_U128: // UInt128Parts u128; // case SCV_I128: // Int128Parts i128; -// +// // case SCV_U256: // UInt256Parts u256; // case SCV_I256: // Int256Parts i256; -// +// // case SCV_BYTES: // SCBytes bytes; // case SCV_STRING: // SCString str; // case SCV_SYMBOL: // SCSymbol sym; -// +// // // Vec and Map are recursive so need to live // // behind an option, due to xdrpp limitations. // case SCV_VEC: // SCVec *vec; // case SCV_MAP: // SCMap *map; -// +// // case SCV_ADDRESS: // SCAddress address; -// +// // // Special SCVals reserved for system-constructed contract-data // // ledger keys, not generally usable elsewhere. // case SCV_CONTRACT_INSTANCE: @@ -9619,7 +9625,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // enum SCSpecType // { // SC_SPEC_TYPE_VAL = 0, -// +// // // Types with no parameters. // SC_SPEC_TYPE_BOOL = 1, // SC_SPEC_TYPE_VOID = 2, @@ -9639,7 +9645,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_SYMBOL = 17, // SC_SPEC_TYPE_ADDRESS = 19, // SC_SPEC_TYPE_MUXED_ADDRESS = 20, -// +// // // Types with parameters. // SC_SPEC_TYPE_OPTION = 1000, // SC_SPEC_TYPE_RESULT = 1001, @@ -9647,7 +9653,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_MAP = 1004, // SC_SPEC_TYPE_TUPLE = 1005, // SC_SPEC_TYPE_BYTES_N = 1006, -// +// // // User defined types. // SC_SPEC_TYPE_UDT = 2000 // }; @@ -10230,7 +10236,7 @@ xdr.struct("ConfigSettingContractExecutionLanesV0", [ // int64 txMaxInstructions; // // Cost of 10000 instructions // int64 feeRatePerInstructionsIncrement; -// +// // // Memory limit per transaction. Unlike instructions, there is no fee // // for memory, just the limit. // uint32 txMemoryLimit; @@ -10272,7 +10278,7 @@ xdr.struct("ConfigSettingContractParallelComputeV0", [ // uint32 ledgerMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per ledger // uint32 ledgerMaxWriteBytes; -// +// // // Maximum number of disk entry read operations per transaction // uint32 txMaxDiskReadEntries; // // Maximum number of bytes of disk reads that can be performed per transaction @@ -10281,12 +10287,12 @@ xdr.struct("ConfigSettingContractParallelComputeV0", [ // uint32 txMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per transaction // uint32 txMaxWriteBytes; -// +// // int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read // int64 feeWriteLedgerEntry; // Fee per ledger entry write -// +// // int64 feeDiskRead1KB; // Fee for reading 1KB disk -// +// // // The following parameters determine the write fee per 1KB. // // Rent fee grows linearly until soroban state reaches this size // int64 sorobanStateTargetSizeBytes; @@ -10371,7 +10377,7 @@ xdr.struct("ConfigSettingContractEventsV0", [ // uint32 ledgerMaxTxsSizeBytes; // // Maximum size in bytes for a transaction // uint32 txMaxSizeBytes; -// +// // // Fee for 1 KB of transaction size // int64 feeTxSize1KB; // }; @@ -10397,7 +10403,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // // Cost of a host function dispatch, not including the actual work done by // // the function nor the cost of VM invocation machinary // DispatchHostFunction = 4, -// // Cost of visiting a host object from the host object storage. Exists to +// // Cost of visiting a host object from the host object storage. Exists to // // make sure some baseline cost coverage, i.e. repeatly visiting objects // // by the guest will always incur some charges. // VisitObject = 5, @@ -10437,7 +10443,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // Int256Shift = 21, // // Cost of drawing random bytes using a ChaCha20 PRNG // ChaCha20DrawBytes = 22, -// +// // // Cost of parsing wasm bytes that only encode instructions. // ParseWasmInstructions = 23, // // Cost of parsing a known number of wasm functions. @@ -10458,7 +10464,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // ParseWasmExports = 31, // // Cost of parsing a known number of data segment bytes. // ParseWasmDataSegmentBytes = 32, -// +// // // Cost of instantiating wasm bytes that only encode instructions. // InstantiateWasmInstructions = 33, // // Cost of instantiating a known number of wasm functions. @@ -10479,13 +10485,13 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // InstantiateWasmExports = 41, // // Cost of instantiating a known number of data segment bytes. // InstantiateWasmDataSegmentBytes = 42, -// +// // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded // // point on a 256-bit elliptic curve // Sec1DecodePointUncompressed = 43, // // Cost of verifying an ECDSA Secp256r1 signature // VerifyEcdsaSecp256r1Sig = 44, -// +// // // Cost of encoding a BLS12-381 Fp (base field element) // Bls12381EncodeFp = 45, // // Cost of decoding a BLS12-381 Fp (base field element) @@ -10617,7 +10623,7 @@ xdr.enum("ContractCostType", { // struct ContractCostParamEntry { // // use `ext` to add more terms (e.g. higher order polynomials) in the future // ExtensionPoint ext; -// +// // int64 constTerm; // int64 linearTerm; // }; @@ -10635,23 +10641,23 @@ xdr.struct("ContractCostParamEntry", [ // uint32 maxEntryTTL; // uint32 minTemporaryTTL; // uint32 minPersistentTTL; -// +// // // rent_fee = wfee_rate_average / rent_rate_denominator_for_type // int64 persistentRentRateDenominator; // int64 tempRentRateDenominator; -// +// // // max number of entries that emit archival meta in a single ledger // uint32 maxEntriesToArchive; -// +// // // Number of snapshots to use when calculating average live Soroban State size // uint32 liveSorobanStateSizeWindowSampleSize; -// +// // // How often to sample the live Soroban State size for the average, in ledgers // uint32 liveSorobanStateSizeWindowSamplePeriod; -// +// // // Maximum number of bytes that we scan for eviction per ledger // uint32 evictionScanSize; -// +// // // Lowest BucketList level to be scanned to evict entries // uint32 startingEvictionScanLevel; // }; @@ -10852,10 +10858,10 @@ xdr.union("ConfigSettingEntry", { // { // // starting ledger sequence number in the batch // uint32 startSequence; -// +// // // ending ledger sequence number in the batch // uint32 endSequence; -// +// // // Ledger close meta for each ledger within the batch // LedgerCloseMeta ledgerCloseMetas<>; // }; diff --git a/src/generated/next_generated.js b/src/generated/next_generated.js index 803a0094..977a3c5d 100644 --- a/src/generated/next_generated.js +++ b/src/generated/next_generated.js @@ -8,6 +8,12 @@ import * as XDR from '@stellar/js-xdr'; var types = XDR.config(xdr => { +// Workaround for https://github.com/stellar/xdrgen/issues/152 +// +// The "correct" way would be to replace bare instances of each constant with +// xdr.lookup("..."), but that's more error-prone. +const SCSYMBOL_LIMIT = 32; +const SC_SPEC_DOC_LIMIT = 1024; // === xdr source ============================================================ // @@ -180,7 +186,7 @@ xdr.union("ScpStatementPledges", { // { // NodeID nodeID; // v // uint64 slotIndex; // i -// +// // union switch (SCPStatementType type) // { // case SCP_ST_PREPARE: @@ -325,10 +331,10 @@ xdr.enum("AssetType", { // { // case ASSET_TYPE_CREDIT_ALPHANUM4: // AssetCode4 assetCode4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AssetCode12 assetCode12; -// +// // // add other asset types here in the future // }; // @@ -380,13 +386,13 @@ xdr.struct("AlphaNum12", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // // add other asset types here in the future // }; // @@ -499,7 +505,7 @@ xdr.struct("Signer", [ // // enum AccountFlags // { // masks for each flag -// +// // // Flags set on issuer accounts // // TrustLines are created with authorized set to "false" requiring // // the issuer to set it for each TrustLine @@ -558,10 +564,10 @@ xdr.typedef("SponsorshipDescriptor", xdr.option(xdr.lookup("AccountId"))); // // We can use this to add more fields, or because it is first, to // // change AccountEntryExtensionV3 into a union. // ExtensionPoint ext; -// +// // // Ledger number at which `seqNum` took on its present value. // uint32 seqLedger; -// +// // // Time at which `seqNum` took on its present value. // TimePoint seqTime; // }; @@ -603,7 +609,7 @@ xdr.union("AccountEntryExtensionV2Ext", { // uint32 numSponsored; // uint32 numSponsoring; // SponsorshipDescriptor signerSponsoringIDs; -// +// // union switch (int v) // { // case 0: @@ -650,7 +656,7 @@ xdr.union("AccountEntryExtensionV1Ext", { // struct AccountEntryExtensionV1 // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -701,15 +707,15 @@ xdr.union("AccountEntryExt", { // // drives the reserve // AccountID* inflationDest; // Account to vote for during inflation // uint32 flags; // see AccountFlags -// +// // string32 homeDomain; // can be used for reverse federation and memo lookup -// +// // // fields used for signatures // // thresholds stores unsigned bytes: [weight of master|low|medium|high] // Thresholds thresholds; -// +// // Signer signers; // possible signers for this account -// +// // // reserved for future use // union switch (int v) // { @@ -795,16 +801,16 @@ xdr.enum("LiquidityPoolType", { // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // PoolID liquidityPoolID; -// +// // // add other asset types here in the future // }; // @@ -849,7 +855,7 @@ xdr.union("TrustLineEntryExtensionV2Ext", { // struct TrustLineEntryExtensionV2 // { // int32 liquidityPoolUseCount; -// +// // union switch (int v) // { // case 0: @@ -892,7 +898,7 @@ xdr.union("TrustLineEntryV1Ext", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -919,7 +925,7 @@ xdr.struct("TrustLineEntryV1", [ // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -952,10 +958,10 @@ xdr.union("TrustLineEntryExt", { // TrustLineAsset asset; // type of asset (with issuer) // int64 balance; // how much of this asset the user has. // // Asset defines the unit for this; -// +// // int64 limit; // balance cannot be above this // uint32 flags; // see TrustLineFlags -// +// // // reserved for future use // union switch (int v) // { @@ -965,7 +971,7 @@ xdr.union("TrustLineEntryExt", { // struct // { // Liabilities liabilities; -// +// // union switch (int v) // { // case 0: @@ -1038,7 +1044,7 @@ xdr.union("OfferEntryExt", { // Asset selling; // A // Asset buying; // B // int64 amount; // amount of A -// +// // /* price for this offer: // price of A in terms of B // price=AmountB/AmountA=priceNumerator/priceDenominator @@ -1046,7 +1052,7 @@ xdr.union("OfferEntryExt", { // */ // Price price; // uint32 flags; // see OfferEntryFlags -// +// // // reserved for future use // union switch (int v) // { @@ -1094,7 +1100,7 @@ xdr.union("DataEntryExt", { // AccountID accountID; // account this data belongs to // string64 dataName; // DataValue dataValue; -// +// // // reserved for future use // union switch (int v) // { @@ -1274,7 +1280,7 @@ xdr.union("ClaimableBalanceEntryExtensionV1Ext", { // void; // } // ext; -// +// // uint32 flags; // see ClaimableBalanceFlags // }; // @@ -1313,16 +1319,16 @@ xdr.union("ClaimableBalanceEntryExt", { // { // // Unique identifier for this ClaimableBalanceEntry // ClaimableBalanceID balanceID; -// +// // // List of claimants with associated predicate // Claimant claimants<10>; -// +// // // Any asset including native // Asset asset; -// +// // // Amount of asset // int64 amount; -// +// // // reserved for future use // union switch (int v) // { @@ -1364,7 +1370,7 @@ xdr.struct("LiquidityPoolConstantProductParameters", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1389,7 +1395,7 @@ xdr.struct("LiquidityPoolEntryConstantProduct", [ // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1415,14 +1421,14 @@ xdr.union("LiquidityPoolEntryBody", { // struct LiquidityPoolEntry // { // PoolID liquidityPoolID; -// +// // union switch (LiquidityPoolType type) // { // case LIQUIDITY_POOL_CONSTANT_PRODUCT: // struct // { // LiquidityPoolConstantProductParameters params; -// +// // int64 reserveA; // amount of A in the pool // int64 reserveB; // amount of B in the pool // int64 totalPoolShares; // total number of pool shares issued @@ -1456,7 +1462,7 @@ xdr.enum("ContractDataDurability", { // // struct ContractDataEntry { // ExtensionPoint ext; -// +// // SCAddress contract; // SCVal key; // ContractDataDurability durability; @@ -1558,7 +1564,7 @@ xdr.union("ContractCodeEntryExt", { // ContractCodeCostInputs costInputs; // } v1; // } ext; -// +// // Hash hash; // opaque code<>; // }; @@ -1608,7 +1614,7 @@ xdr.union("LedgerEntryExtensionV1Ext", { // struct LedgerEntryExtensionV1 // { // SponsorshipDescriptor sponsoringID; -// +// // union switch (int v) // { // case 0: @@ -1707,7 +1713,7 @@ xdr.union("LedgerEntryExt", { // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed -// +// // union switch (LedgerEntryType type) // { // case ACCOUNT: @@ -1732,7 +1738,7 @@ xdr.union("LedgerEntryExt", { // TTLEntry ttl; // } // data; -// +// // // reserved for future use // union switch (int v) // { @@ -1891,34 +1897,34 @@ xdr.struct("LedgerKeyTtl", [ // { // AccountID accountID; // } account; -// +// // case TRUSTLINE: // struct // { // AccountID accountID; // TrustLineAsset asset; // } trustLine; -// +// // case OFFER: // struct // { // AccountID sellerID; // int64 offerID; // } offer; -// +// // case DATA: // struct // { // AccountID accountID; // string64 dataName; // } data; -// +// // case CLAIMABLE_BALANCE: // struct // { // ClaimableBalanceID balanceID; // } claimableBalance; -// +// // case LIQUIDITY_POOL: // struct // { @@ -2090,7 +2096,7 @@ xdr.union("BucketMetadataExt", { // { // // Indicates the protocol version used to create / merge this bucket. // uint32 ledgerVersion; -// +// // // reserved for future use // union switch (int v) // { @@ -2115,7 +2121,7 @@ xdr.struct("BucketMetadata", [ // case LIVEENTRY: // case INITENTRY: // LedgerEntry liveEntry; -// +// // case DEADENTRY: // LedgerKey deadEntry; // case METAENTRY: @@ -2145,7 +2151,7 @@ xdr.union("BucketEntry", { // { // case HOT_ARCHIVE_ARCHIVED: // LedgerEntry archivedEntry; -// +// // case HOT_ARCHIVE_LIVE: // LedgerKey key; // case HOT_ARCHIVE_METAENTRY: @@ -2232,14 +2238,14 @@ xdr.union("StellarValueExt", { // { // Hash txSetHash; // transaction set to apply to previous ledger // TimePoint closeTime; // network close time -// +// // // upgrades to apply to the previous ledger (usually empty) // // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop // // unknown steps during consensus if needed. // // see notes below on 'LedgerUpgrade' for more detail // // max size is dictated by number of upgrade types (+ room for future) // UpgradeType upgrades<6>; -// +// // // reserved for future use // union switch (StellarValueType v) // { @@ -2306,7 +2312,7 @@ xdr.union("LedgerHeaderExtensionV1Ext", { // struct LedgerHeaderExtensionV1 // { // uint32 flags; // LedgerHeaderFlags -// +// // union switch (int v) // { // case 0: @@ -2353,28 +2359,28 @@ xdr.union("LedgerHeaderExt", { // StellarValue scpValue; // what consensus agreed to // Hash txSetResultHash; // the TransactionResultSet that led to this ledger // Hash bucketListHash; // hash of the ledger state -// +// // uint32 ledgerSeq; // sequence number of this ledger -// +// // int64 totalCoins; // total number of stroops in existence. // // 10,000,000 stroops in 1 XLM -// +// // int64 feePool; // fees burned since last inflation run // uint32 inflationSeq; // inflation sequence number -// +// // uint64 idPool; // last used global ID, used for generating objects -// +// // uint32 baseFee; // base fee per operation in stroops // uint32 baseReserve; // account base reserve in stroops -// +// // uint32 maxTxSetSize; // maximum size a transaction set can be -// +// // Hash skipList[4]; // hashes of ledgers in the past. allows you to jump back // // in time without walking the chain back ledger by ledger // // each slot contains the oldest ledger that is mod of // // either 50 5000 50000 or 500000 depending on index // // skipList[0] mod(50), skipList[1] mod(5000), etc -// +// // // reserved for future use // union switch (int v) // { @@ -2711,7 +2717,7 @@ xdr.union("TransactionHistoryEntryExt", { // { // uint32 ledgerSeq; // TransactionSet txSet; -// +// // // when v != 0, txSet must be empty // union switch (int v) // { @@ -2755,7 +2761,7 @@ xdr.union("TransactionHistoryResultEntryExt", { // { // uint32 ledgerSeq; // TransactionResultSet txResultSet; -// +// // // reserved for future use // union switch (int v) // { @@ -2797,7 +2803,7 @@ xdr.union("LedgerHeaderHistoryEntryExt", { // { // Hash hash; // LedgerHeader header; -// +// // // reserved for future use // union switch (int v) // { @@ -3030,10 +3036,10 @@ xdr.union("ContractEventBody", { // // We can use this to add more fields, or because it // // is first, to change ContractEvent into a union. // ExtensionPoint ext; -// +// // ContractID* contractID; // ContractEventType type; -// +// // union switch (int v) // { // case 0: @@ -3073,22 +3079,22 @@ xdr.struct("DiagnosticEvent", [ // struct SorobanTransactionMetaExtV1 // { // ExtensionPoint ext; -// +// // // The following are the components of the overall Soroban resource fee // // charged for the transaction. // // The following relation holds: // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged` -// // where `resourceFeeCharged` is the overall fee charged for the -// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` +// // where `resourceFeeCharged` is the overall fee charged for the +// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee` // // i.e.we never charge more than the declared resource fee. -// // The inclusion fee for charged the Soroban transaction can be found using +// // The inclusion fee for charged the Soroban transaction can be found using // // the following equation: // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`. -// +// // // Total amount (in stroops) that has been charged for non-refundable // // Soroban resources. // // Non-refundable resources are charged based on the usage declared in -// // the transaction envelope (such as `instructions`, `readBytes` etc.) and +// // the transaction envelope (such as `instructions`, `readBytes` etc.) and // // is charged regardless of the success of the transaction. // int64 totalNonRefundableResourceFeeCharged; // // Total amount (in stroops) that has been charged for refundable @@ -3137,14 +3143,14 @@ xdr.union("SorobanTransactionMetaExt", { // === xdr source ============================================================ // -// struct SorobanTransactionMeta +// struct SorobanTransactionMeta // { // SorobanTransactionMetaExt ext; -// +// // ContractEvent events<>; // custom events populated by the // // contracts themselves. // SCVal returnValue; // return value of the host fn invocation -// +// // // Diagnostics events that are not hashed. // // This will contain all contract and diagnostic events. Even ones // // that were emitted in a failed contract call. @@ -3164,13 +3170,13 @@ xdr.struct("SorobanTransactionMeta", [ // struct TransactionMetaV3 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMeta operations<>; // meta for each operation // LedgerEntryChanges txChangesAfter; // tx level changes after operations are // // applied if any -// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for +// SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). // }; // @@ -3188,9 +3194,9 @@ xdr.struct("TransactionMetaV3", [ // struct OperationMetaV2 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges changes; -// +// // ContractEvent events<>; // }; // @@ -3206,7 +3212,7 @@ xdr.struct("OperationMetaV2", [ // struct SorobanTransactionMetaV2 // { // SorobanTransactionMetaExt ext; -// +// // SCVal* returnValue; // }; // @@ -3219,13 +3225,13 @@ xdr.struct("SorobanTransactionMetaV2", [ // === xdr source ============================================================ // // enum TransactionEventStage { -// // The event has happened before any one of the transactions has its +// // The event has happened before any one of the transactions has its // // operations applied. // TRANSACTION_EVENT_STAGE_BEFORE_ALL_TXS = 0, // // The event has happened immediately after operations of the transaction // // have been applied. // TRANSACTION_EVENT_STAGE_AFTER_TX = 1, -// // The event has happened after every transaction had its operations +// // The event has happened after every transaction had its operations // // applied. // TRANSACTION_EVENT_STAGE_AFTER_ALL_TXS = 2 // }; @@ -3239,7 +3245,7 @@ xdr.enum("TransactionEventStage", { // === xdr source ============================================================ // -// struct TransactionEvent { +// struct TransactionEvent { // TransactionEventStage stage; // Stage at which an event has occurred. // ContractEvent event; // The contract event that has occurred. // }; @@ -3255,7 +3261,7 @@ xdr.struct("TransactionEvent", [ // struct TransactionMetaV4 // { // ExtensionPoint ext; -// +// // LedgerEntryChanges txChangesBefore; // tx level changes before operations // // are applied if any // OperationMetaV2 operations<>; // meta for each operation @@ -3263,7 +3269,7 @@ xdr.struct("TransactionEvent", [ // // applied if any // SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for // // Soroban transactions). -// +// // TransactionEvent events<>; // Used for transaction-level events (like fee payment) // DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information // }; @@ -3350,11 +3356,11 @@ xdr.struct("TransactionResultMeta", [ // struct TransactionResultMetaV1 // { // ExtensionPoint ext; -// +// // TransactionResultPair result; // LedgerEntryChanges feeProcessing; // TransactionMeta txApplyProcessing; -// +// // LedgerEntryChanges postTxApplyFeeProcessing; // }; // @@ -3388,15 +3394,15 @@ xdr.struct("UpgradeEntryMeta", [ // LedgerHeaderHistoryEntry ledgerHeader; // // NB: txSet is sorted in "Hash order" // TransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; // }; @@ -3452,29 +3458,29 @@ xdr.union("LedgerCloseMetaExt", { // struct LedgerCloseMetaV1 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMeta txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// +// // // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. // uint64 totalByteSizeOfLiveSorobanState; -// +// // // TTL and data/code keys that have been evicted at this ledger. // LedgerKey evictedKeys<>; -// +// // // Maintained for backwards compatibility, should never be populated. // LedgerEntry unused<>; // }; @@ -3497,26 +3503,26 @@ xdr.struct("LedgerCloseMetaV1", [ // struct LedgerCloseMetaV2 // { // LedgerCloseMetaExt ext; -// +// // LedgerHeaderHistoryEntry ledgerHeader; -// +// // GeneralizedTransactionSet txSet; -// +// // // NB: transactions are sorted in apply order here // // fees for all transactions are processed first // // followed by applying transactions // TransactionResultMetaV1 txProcessing<>; -// +// // // upgrades are applied last // UpgradeEntryMeta upgradesProcessing<>; -// +// // // other misc information attached to the ledger close // SCPHistoryEntry scpInfo<>; -// +// // // Size in bytes of live Soroban state, to support downstream // // systems calculating storage fees correctly. // uint64 totalByteSizeOfLiveSorobanState; -// +// // // TTL and data/code keys that have been evicted at this ledger. // LedgerKey evictedKeys<>; // }; @@ -3753,33 +3759,33 @@ xdr.struct("PeerAddress", [ // AUTH = 2, // DONT_HAVE = 3, // // GET_PEERS (4) is deprecated -// +// // PEERS = 5, -// +// // GET_TX_SET = 6, // gets a particular txset by hash // TX_SET = 7, // GENERALIZED_TX_SET = 17, -// +// // TRANSACTION = 8, // pass on a tx you have heard about -// +// // // SCP // GET_SCP_QUORUMSET = 9, // SCP_QUORUMSET = 10, // SCP_MESSAGE = 11, // GET_SCP_STATE = 12, -// +// // // new messages // HELLO = 13, -// +// // // SURVEY_REQUEST (14) removed and replaced by TIME_SLICED_SURVEY_REQUEST // // SURVEY_RESPONSE (15) removed and replaced by TIME_SLICED_SURVEY_RESPONSE -// +// // SEND_MORE = 16, // SEND_MORE_EXTENDED = 20, -// +// // FLOOD_ADVERT = 18, // FLOOD_DEMAND = 19, -// +// // TIME_SLICED_SURVEY_REQUEST = 21, // TIME_SLICED_SURVEY_RESPONSE = 22, // TIME_SLICED_SURVEY_START_COLLECTING = 23, @@ -4027,12 +4033,12 @@ xdr.struct("SignedTimeSlicedSurveyResponseMessage", [ // uint64 bytesRead; // uint64 bytesWritten; // uint64 secondsConnected; -// +// // uint64 uniqueFloodBytesRecv; // uint64 duplicateFloodBytesRecv; // uint64 uniqueFetchBytesRecv; // uint64 duplicateFetchBytesRecv; -// +// // uint64 uniqueFloodMessageRecv; // uint64 duplicateFloodMessageRecv; // uint64 uniqueFetchMessageRecv; @@ -4066,14 +4072,14 @@ xdr.struct("PeerStats", [ // uint32 droppedAuthenticatedPeers; // uint32 totalInboundPeerCount; // uint32 totalOutboundPeerCount; -// +// // // SCP stats // uint32 p75SCPFirstToSelfLatencyMs; // uint32 p75SCPSelfToOtherLatencyMs; -// +// // // How many times the node lost sync in the time slice // uint32 lostSyncCount; -// +// // // Config data // bool isValidator; // uint32 maxInboundPeerCount; @@ -4217,31 +4223,31 @@ xdr.struct("FloodDemand", [ // DontHave dontHave; // case PEERS: // PeerAddress peers<100>; -// +// // case GET_TX_SET: // uint256 txSetHash; // case TX_SET: // TransactionSet txSet; // case GENERALIZED_TX_SET: // GeneralizedTransactionSet generalizedTxSet; -// +// // case TRANSACTION: // TransactionEnvelope transaction; -// +// // case TIME_SLICED_SURVEY_REQUEST: // SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; -// +// // case TIME_SLICED_SURVEY_RESPONSE: // SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; -// +// // case TIME_SLICED_SURVEY_START_COLLECTING: // SignedTimeSlicedSurveyStartCollectingMessage // signedTimeSlicedSurveyStartCollectingMessage; -// +// // case TIME_SLICED_SURVEY_STOP_COLLECTING: // SignedTimeSlicedSurveyStopCollectingMessage // signedTimeSlicedSurveyStopCollectingMessage; -// +// // // SCP // case GET_SCP_QUORUMSET: // uint256 qSetHash; @@ -4540,11 +4546,11 @@ xdr.struct("PaymentOp", [ // int64 sendMax; // the maximum amount of sendAsset to // // send (excluding fees). // // The operation will fail if can't be met -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destAmount; // amount they end up with -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4564,13 +4570,13 @@ xdr.struct("PathPaymentStrictReceiveOp", [ // { // Asset sendAsset; // asset we pay with // int64 sendAmount; // amount of sendAsset to send (excluding fees) -// +// // MuxedAccount destination; // recipient of the payment // Asset destAsset; // what they end up with // int64 destMin; // the minimum amount of dest asset to // // be received // // The operation will fail if it can't be met -// +// // Asset path<5>; // additional hops it must go through to get there // }; // @@ -4592,7 +4598,7 @@ xdr.struct("PathPaymentStrictSendOp", [ // Asset buying; // int64 amount; // amount being sold. if set to 0, delete the offer // Price price; // price of thing being sold in terms of what you are buying -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4615,7 +4621,7 @@ xdr.struct("ManageSellOfferOp", [ // int64 buyAmount; // amount being bought. if set to 0, delete the offer // Price price; // price of thing being bought in terms of what you are // // selling -// +// // // 0=create a new offer, otherwise edit an existing offer // int64 offerID; // }; @@ -4652,18 +4658,18 @@ xdr.struct("CreatePassiveSellOfferOp", [ // struct SetOptionsOp // { // AccountID* inflationDest; // sets the inflation destination -// +// // uint32* clearFlags; // which flags to clear // uint32* setFlags; // which flags to set -// +// // // account threshold manipulation // uint32* masterWeight; // weight of the master account // uint32* lowThreshold; // uint32* medThreshold; // uint32* highThreshold; -// +// // string32* homeDomain; // sets the home domain -// +// // // Add, update or remove a signer for the account // // signer is deleted if the weight is 0 // Signer* signer; @@ -4688,16 +4694,16 @@ xdr.struct("SetOptionsOp", [ // { // case ASSET_TYPE_NATIVE: // Not credit // void; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM4: // AlphaNum4 alphaNum4; -// +// // case ASSET_TYPE_CREDIT_ALPHANUM12: // AlphaNum12 alphaNum12; -// +// // case ASSET_TYPE_POOL_SHARE: // LiquidityPoolParameters liquidityPool; -// +// // // add other asset types here in the future // }; // @@ -4723,7 +4729,7 @@ xdr.union("ChangeTrustAsset", { // struct ChangeTrustOp // { // ChangeTrustAsset line; -// +// // // if limit is set to 0, deletes the trust line // int64 limit; // }; @@ -4740,7 +4746,7 @@ xdr.struct("ChangeTrustOp", [ // { // AccountID trustor; // AssetCode asset; -// +// // // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG // uint32 authorize; // }; @@ -4908,7 +4914,7 @@ xdr.struct("ClawbackClaimableBalanceOp", [ // { // AccountID trustor; // Asset asset; -// +// // uint32 clearFlags; // which flags to clear // uint32 setFlags; // which flags to set // }; @@ -5143,7 +5149,7 @@ xdr.enum("SorobanAuthorizedFunctionType", { // // This variant of auth payload for creating new contract instances // // doesn't allow specifying the constructor arguments, creating contracts // // with constructors that take arguments is only possible by authorizing -// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` +// // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` // // (protocol 22+). // case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN: // CreateContractArgs createContractHostFn; @@ -5190,7 +5196,7 @@ xdr.struct("SorobanAuthorizedInvocation", [ // { // SCAddress address; // int64 nonce; -// uint32 signatureExpirationLedger; +// uint32 signatureExpirationLedger; // SCVal signature; // }; // @@ -5432,7 +5438,7 @@ xdr.union("OperationBody", { // // if not set, the runtime defaults to "sourceAccount" specified at // // the transaction level // MuxedAccount* sourceAccount; -// +// // union switch (OperationType type) // { // case CREATE_ACCOUNT: @@ -5520,7 +5526,7 @@ xdr.struct("HashIdPreimageOperationId", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5582,7 +5588,7 @@ xdr.struct("HashIdPreimageSorobanAuthorization", [ // struct // { // AccountID sourceAccount; -// SequenceNumber seqNum; +// SequenceNumber seqNum; // uint32 opNum; // PoolID liquidityPoolID; // Asset asset; @@ -5709,12 +5715,12 @@ xdr.struct("LedgerBounds", [ // struct PreconditionsV2 // { // TimeBounds* timeBounds; -// +// // // Transaction only valid for ledger numbers n such that // // minLedger <= n < maxLedger (if maxLedger == 0, then // // only minLedger is checked) // LedgerBounds* ledgerBounds; -// +// // // If NULL, only valid when sourceAccount's sequence number // // is seqNum - 1. Otherwise, valid when sourceAccount's // // sequence number n satisfies minSeqNum <= n < tx.seqNum. @@ -5722,16 +5728,16 @@ xdr.struct("LedgerBounds", [ // // is always raised to tx.seqNum, and a transaction is not // // valid if tx.seqNum is too high to ensure replay protection. // SequenceNumber* minSeqNum; -// +// // // For the transaction to be valid, the current ledger time must // // be at least minSeqAge greater than sourceAccount's seqTime. // Duration minSeqAge; -// +// // // For the transaction to be valid, the current ledger number // // must be at least minSeqLedgerGap greater than sourceAccount's // // seqLedger. // uint32 minSeqLedgerGap; -// +// // // For the transaction to be valid, there must be a signature // // corresponding to every Signer in this array, even if the // // signature is not otherwise required by the sourceAccount or @@ -5809,12 +5815,12 @@ xdr.struct("LedgerFootprint", [ // === xdr source ============================================================ // // struct SorobanResources -// { +// { // // The ledger footprint of the transaction. // LedgerFootprint footprint; // // The maximum number of instructions this transaction can use -// uint32 instructions; -// +// uint32 instructions; +// // // The maximum number of bytes this transaction can read from disk backed entries // uint32 diskReadBytes; // // The maximum number of bytes this transaction can write to ledger @@ -5880,7 +5886,7 @@ xdr.union("SorobanTransactionDataExt", { // } ext; // SorobanResources resources; // // Amount of the transaction `fee` allocated to the Soroban resource fees. -// // The fraction of `resourceFee` corresponding to `resources` specified +// // The fraction of `resourceFee` corresponding to `resources` specified // // above is *not* refundable (i.e. fees for instructions, ledger I/O), as // // well as fees for the transaction size. // // The remaining part of the fee is refundable and the charged value is @@ -5991,20 +5997,20 @@ xdr.union("TransactionExt", { // { // // account used to run the transaction // MuxedAccount sourceAccount; -// +// // // the fee the sourceAccount will pay // uint32 fee; -// +// // // sequence number to consume in the account // SequenceNumber seqNum; -// +// // // validity conditions // Preconditions cond; -// +// // Memo memo; -// +// // Operation operations; -// +// // union switch (int v) // { // case 0: @@ -6223,11 +6229,11 @@ xdr.enum("ClaimAtomType", { // // emitted to identify the offer // uint256 sellerEd25519; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6250,11 +6256,11 @@ xdr.struct("ClaimOfferAtomV0", [ // // emitted to identify the offer // AccountID sellerID; // Account that owns the offer // int64 offerID; -// +// // // amount and asset taken from the owner // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the owner // Asset assetBought; // int64 amountBought; @@ -6275,11 +6281,11 @@ xdr.struct("ClaimOfferAtom", [ // struct ClaimLiquidityAtom // { // PoolID liquidityPoolID; -// +// // // amount and asset taken from the pool // Asset assetSold; // int64 amountSold; -// +// // // amount and asset sent to the pool // Asset assetBought; // int64 amountBought; @@ -6328,7 +6334,7 @@ xdr.union("ClaimAtom", { // { // // codes considered as "success" for the operation // CREATE_ACCOUNT_SUCCESS = 0, // account was created -// +// // // codes considered as "failure" for the operation // CREATE_ACCOUNT_MALFORMED = -1, // invalid destination // CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account @@ -6380,7 +6386,7 @@ xdr.union("CreateAccountResult", { // { // // codes considered as "success" for the operation // PAYMENT_SUCCESS = 0, // payment successfully completed -// +// // // codes considered as "failure" for the operation // PAYMENT_MALFORMED = -1, // bad input // PAYMENT_UNDERFUNDED = -2, // not enough funds in source account @@ -6451,7 +6457,7 @@ xdr.union("PaymentResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = @@ -6582,7 +6588,7 @@ xdr.union("PathPaymentStrictReceiveResult", { // { // // codes considered as "success" for the operation // PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success -// +// // // codes considered as "failure" for the operation // PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input // PATH_PAYMENT_STRICT_SEND_UNDERFUNDED = @@ -6695,7 +6701,7 @@ xdr.union("PathPaymentStrictSendResult", { // { // // codes considered as "success" for the operation // MANAGE_SELL_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_SELL_OFFER_SELL_NO_TRUST = @@ -6709,11 +6715,11 @@ xdr.union("PathPaymentStrictSendResult", { // -8, // would cross an offer from the same user // MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_SELL_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_SELL_OFFER_LOW_RESERVE = // -12 // not enough funds to create a new Offer // }; @@ -6782,7 +6788,7 @@ xdr.union("ManageOfferSuccessResultOffer", { // { // // offers that got claimed while creating this offer // ClaimAtom offersClaimed<>; -// +// // union switch (ManageOfferEffect effect) // { // case MANAGE_OFFER_CREATED: @@ -6851,7 +6857,7 @@ xdr.union("ManageSellOfferResult", { // { // // codes considered as "success" for the operation // MANAGE_BUY_OFFER_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid // MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling @@ -6863,11 +6869,11 @@ xdr.union("ManageSellOfferResult", { // MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user // MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling // MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying -// +// // // update errors // MANAGE_BUY_OFFER_NOT_FOUND = // -11, // offerID does not match an existing offer -// +// // MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer // }; // @@ -7457,7 +7463,7 @@ xdr.union("ClaimClaimableBalanceResult", { // { // // codes considered as "success" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1, // BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2, @@ -7505,7 +7511,7 @@ xdr.union("BeginSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // END_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1 // }; @@ -7545,7 +7551,7 @@ xdr.union("EndSponsoringFutureReservesResult", { // { // // codes considered as "success" for the operation // REVOKE_SPONSORSHIP_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, // REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, @@ -7600,7 +7606,7 @@ xdr.union("RevokeSponsorshipResult", { // { // // codes considered as "success" for the operation // CLAWBACK_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_MALFORMED = -1, // CLAWBACK_NOT_CLAWBACK_ENABLED = -2, @@ -7651,7 +7657,7 @@ xdr.union("ClawbackResult", { // { // // codes considered as "success" for the operation // CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, // CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2, @@ -7699,7 +7705,7 @@ xdr.union("ClawbackClaimableBalanceResult", { // { // // codes considered as "success" for the operation // SET_TRUST_LINE_FLAGS_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // SET_TRUST_LINE_FLAGS_MALFORMED = -1, // SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, @@ -7755,7 +7761,7 @@ xdr.union("SetTrustLineFlagsResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input // LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the @@ -7822,7 +7828,7 @@ xdr.union("LiquidityPoolDepositResult", { // { // // codes considered as "success" for the operation // LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input // LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the @@ -7880,7 +7886,7 @@ xdr.union("LiquidityPoolWithdrawResult", { // { // // codes considered as "success" for the operation // INVOKE_HOST_FUNCTION_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // INVOKE_HOST_FUNCTION_MALFORMED = -1, // INVOKE_HOST_FUNCTION_TRAPPED = -2, @@ -7936,7 +7942,7 @@ xdr.union("InvokeHostFunctionResult", { // { // // codes considered as "success" for the operation // EXTEND_FOOTPRINT_TTL_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // EXTEND_FOOTPRINT_TTL_MALFORMED = -1, // EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED = -2, @@ -7983,7 +7989,7 @@ xdr.union("ExtendFootprintTtlResult", { // { // // codes considered as "success" for the operation // RESTORE_FOOTPRINT_SUCCESS = 0, -// +// // // codes considered as "failure" for the operation // RESTORE_FOOTPRINT_MALFORMED = -1, // RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED = -2, @@ -8029,7 +8035,7 @@ xdr.union("RestoreFootprintResult", { // enum OperationResultCode // { // opINNER = 0, // inner object result is valid -// +// // opBAD_AUTH = -1, // too few valid signatures / wrong network // opNO_ACCOUNT = -2, // source account was not found // opNOT_SUPPORTED = -3, // operation not supported at this time @@ -8269,21 +8275,21 @@ xdr.union("OperationResult", { // { // txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded // txSUCCESS = 0, // all operations succeeded -// +// // txFAILED = -1, // one of the operations failed (none were applied) -// +// // txTOO_EARLY = -2, // ledger closeTime before minTime // txTOO_LATE = -3, // ledger closeTime after maxTime // txMISSING_OPERATION = -4, // no operation was specified // txBAD_SEQ = -5, // sequence number does not match source account -// +// // txBAD_AUTH = -6, // too few valid signatures / wrong network // txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve // txNO_ACCOUNT = -8, // source account not found // txINSUFFICIENT_FEE = -9, // fee is too small // txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction // txINTERNAL_ERROR = -11, // an unknown error occurred -// +// // txNOT_SUPPORTED = -12, // transaction type not supported // txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed // txBAD_SPONSORSHIP = -14, // sponsorship not confirmed @@ -8395,7 +8401,7 @@ xdr.union("InnerTransactionResultExt", { // { // // Always 0. Here for binary compatibility. // int64 feeCharged; -// +// // union switch (TransactionResultCode code) // { // // txFEE_BUMP_INNER_SUCCESS is not included @@ -8421,7 +8427,7 @@ xdr.union("InnerTransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8536,7 +8542,7 @@ xdr.union("TransactionResultExt", { // struct TransactionResult // { // int64 feeCharged; // actual fee charged for the transaction -// +// // union switch (TransactionResultCode code) // { // case txFEE_BUMP_INNER_SUCCESS: @@ -8564,7 +8570,7 @@ xdr.union("TransactionResultExt", { // void; // } // result; -// +// // // reserved for future use // union switch (int v) // { @@ -8900,10 +8906,10 @@ xdr.enum("BinaryFuseFilterType", { // struct SerializedBinaryFuseFilter // { // BinaryFuseFilterType type; -// +// // // Seed used to hash input to filter // ShortHashSeed inputHashSeed; -// +// // // Seed used for internal filter hash operations // ShortHashSeed filterSeed; // uint32 segmentLength; @@ -8911,7 +8917,7 @@ xdr.enum("BinaryFuseFilterType", { // uint32 segmentCount; // uint32 segmentCountLength; // uint32 fingerprintLength; // Length in terms of element count, not bytes -// +// // // Array of uint8_t, uint16_t, or uint32_t depending on filter type // opaque fingerprints<>; // }; @@ -8975,49 +8981,49 @@ xdr.union("ClaimableBalanceId", { // SCV_BOOL = 0, // SCV_VOID = 1, // SCV_ERROR = 2, -// +// // // 32 bits is the smallest type in WASM or XDR; no need for u8/u16. // SCV_U32 = 3, // SCV_I32 = 4, -// +// // // 64 bits is naturally supported by both WASM and XDR also. // SCV_U64 = 5, // SCV_I64 = 6, -// +// // // Time-related u64 subtypes with their own functions and formatting. // SCV_TIMEPOINT = 7, // SCV_DURATION = 8, -// +// // // 128 bits is naturally supported by Rust and we use it for Soroban // // fixed-point arithmetic prices / balances / similar "quantities". These // // are represented in XDR as a pair of 2 u64s. // SCV_U128 = 9, // SCV_I128 = 10, -// +// // // 256 bits is the size of sha256 output, ed25519 keys, and the EVM machine // // word, so for interop use we include this even though it requires a small // // amount of Rust guest and/or host library code. // SCV_U256 = 11, // SCV_I256 = 12, -// +// // // Bytes come in 3 flavors, 2 of which have meaningfully different // // formatting and validity-checking / domain-restriction. // SCV_BYTES = 13, // SCV_STRING = 14, // SCV_SYMBOL = 15, -// +// // // Vecs and maps are just polymorphic containers of other ScVals. // SCV_VEC = 16, // SCV_MAP = 17, -// +// // // Address is the universal identifier for contracts and classic // // accounts. // SCV_ADDRESS = 18, -// +// // // The following are the internal SCVal variants that are not -// // exposed to the contracts. +// // exposed to the contracts. // SCV_CONTRACT_INSTANCE = 19, -// +// // // SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique // // symbolic SCVals used as the key for ledger entries for a contract's // // instance and an address' nonce, respectively. @@ -9388,19 +9394,19 @@ xdr.struct("ScContractInstance", [ // // union SCVal switch (SCValType type) // { -// +// // case SCV_BOOL: // bool b; // case SCV_VOID: // void; // case SCV_ERROR: // SCError error; -// +// // case SCV_U32: // uint32 u32; // case SCV_I32: // int32 i32; -// +// // case SCV_U64: // uint64 u64; // case SCV_I64: @@ -9409,34 +9415,34 @@ xdr.struct("ScContractInstance", [ // TimePoint timepoint; // case SCV_DURATION: // Duration duration; -// +// // case SCV_U128: // UInt128Parts u128; // case SCV_I128: // Int128Parts i128; -// +// // case SCV_U256: // UInt256Parts u256; // case SCV_I256: // Int256Parts i256; -// +// // case SCV_BYTES: // SCBytes bytes; // case SCV_STRING: // SCString str; // case SCV_SYMBOL: // SCSymbol sym; -// +// // // Vec and Map are recursive so need to live // // behind an option, due to xdrpp limitations. // case SCV_VEC: // SCVec *vec; // case SCV_MAP: // SCMap *map; -// +// // case SCV_ADDRESS: // SCAddress address; -// +// // // Special SCVals reserved for system-constructed contract-data // // ledger keys, not generally usable elsewhere. // case SCV_CONTRACT_INSTANCE: @@ -9619,7 +9625,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // enum SCSpecType // { // SC_SPEC_TYPE_VAL = 0, -// +// // // Types with no parameters. // SC_SPEC_TYPE_BOOL = 1, // SC_SPEC_TYPE_VOID = 2, @@ -9639,7 +9645,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_SYMBOL = 17, // SC_SPEC_TYPE_ADDRESS = 19, // SC_SPEC_TYPE_MUXED_ADDRESS = 20, -// +// // // Types with parameters. // SC_SPEC_TYPE_OPTION = 1000, // SC_SPEC_TYPE_RESULT = 1001, @@ -9647,7 +9653,7 @@ xdr.const("SC_SPEC_DOC_LIMIT", 1024); // SC_SPEC_TYPE_MAP = 1004, // SC_SPEC_TYPE_TUPLE = 1005, // SC_SPEC_TYPE_BYTES_N = 1006, -// +// // // User defined types. // SC_SPEC_TYPE_UDT = 2000 // }; @@ -10230,7 +10236,7 @@ xdr.struct("ConfigSettingContractExecutionLanesV0", [ // int64 txMaxInstructions; // // Cost of 10000 instructions // int64 feeRatePerInstructionsIncrement; -// +// // // Memory limit per transaction. Unlike instructions, there is no fee // // for memory, just the limit. // uint32 txMemoryLimit; @@ -10272,7 +10278,7 @@ xdr.struct("ConfigSettingContractParallelComputeV0", [ // uint32 ledgerMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per ledger // uint32 ledgerMaxWriteBytes; -// +// // // Maximum number of disk entry read operations per transaction // uint32 txMaxDiskReadEntries; // // Maximum number of bytes of disk reads that can be performed per transaction @@ -10281,12 +10287,12 @@ xdr.struct("ConfigSettingContractParallelComputeV0", [ // uint32 txMaxWriteLedgerEntries; // // Maximum number of bytes that can be written per transaction // uint32 txMaxWriteBytes; -// +// // int64 feeDiskReadLedgerEntry; // Fee per disk ledger entry read // int64 feeWriteLedgerEntry; // Fee per ledger entry write -// +// // int64 feeDiskRead1KB; // Fee for reading 1KB disk -// +// // // The following parameters determine the write fee per 1KB. // // Rent fee grows linearly until soroban state reaches this size // int64 sorobanStateTargetSizeBytes; @@ -10371,7 +10377,7 @@ xdr.struct("ConfigSettingContractEventsV0", [ // uint32 ledgerMaxTxsSizeBytes; // // Maximum size in bytes for a transaction // uint32 txMaxSizeBytes; -// +// // // Fee for 1 KB of transaction size // int64 feeTxSize1KB; // }; @@ -10397,7 +10403,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // // Cost of a host function dispatch, not including the actual work done by // // the function nor the cost of VM invocation machinary // DispatchHostFunction = 4, -// // Cost of visiting a host object from the host object storage. Exists to +// // Cost of visiting a host object from the host object storage. Exists to // // make sure some baseline cost coverage, i.e. repeatly visiting objects // // by the guest will always incur some charges. // VisitObject = 5, @@ -10437,7 +10443,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // Int256Shift = 21, // // Cost of drawing random bytes using a ChaCha20 PRNG // ChaCha20DrawBytes = 22, -// +// // // Cost of parsing wasm bytes that only encode instructions. // ParseWasmInstructions = 23, // // Cost of parsing a known number of wasm functions. @@ -10458,7 +10464,7 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // ParseWasmExports = 31, // // Cost of parsing a known number of data segment bytes. // ParseWasmDataSegmentBytes = 32, -// +// // // Cost of instantiating wasm bytes that only encode instructions. // InstantiateWasmInstructions = 33, // // Cost of instantiating a known number of wasm functions. @@ -10479,13 +10485,13 @@ xdr.struct("ConfigSettingContractBandwidthV0", [ // InstantiateWasmExports = 41, // // Cost of instantiating a known number of data segment bytes. // InstantiateWasmDataSegmentBytes = 42, -// +// // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded // // point on a 256-bit elliptic curve // Sec1DecodePointUncompressed = 43, // // Cost of verifying an ECDSA Secp256r1 signature // VerifyEcdsaSecp256r1Sig = 44, -// +// // // Cost of encoding a BLS12-381 Fp (base field element) // Bls12381EncodeFp = 45, // // Cost of decoding a BLS12-381 Fp (base field element) @@ -10617,7 +10623,7 @@ xdr.enum("ContractCostType", { // struct ContractCostParamEntry { // // use `ext` to add more terms (e.g. higher order polynomials) in the future // ExtensionPoint ext; -// +// // int64 constTerm; // int64 linearTerm; // }; @@ -10635,23 +10641,23 @@ xdr.struct("ContractCostParamEntry", [ // uint32 maxEntryTTL; // uint32 minTemporaryTTL; // uint32 minPersistentTTL; -// +// // // rent_fee = wfee_rate_average / rent_rate_denominator_for_type // int64 persistentRentRateDenominator; // int64 tempRentRateDenominator; -// +// // // max number of entries that emit archival meta in a single ledger // uint32 maxEntriesToArchive; -// +// // // Number of snapshots to use when calculating average live Soroban State size // uint32 liveSorobanStateSizeWindowSampleSize; -// +// // // How often to sample the live Soroban State size for the average, in ledgers // uint32 liveSorobanStateSizeWindowSamplePeriod; -// +// // // Maximum number of bytes that we scan for eviction per ledger // uint32 evictionScanSize; -// +// // // Lowest BucketList level to be scanned to evict entries // uint32 startingEvictionScanLevel; // }; @@ -10852,10 +10858,10 @@ xdr.union("ConfigSettingEntry", { // { // // starting ledger sequence number in the batch // uint32 startSequence; -// +// // // ending ledger sequence number in the batch // uint32 endSequence; -// +// // // Ledger close meta for each ledger within the batch // LedgerCloseMeta ledgerCloseMetas<>; // }; diff --git a/types/curr.d.ts b/types/curr.d.ts index a5ec3be0..897b1f20 100644 --- a/types/curr.d.ts +++ b/types/curr.d.ts @@ -1,4 +1,59 @@ -declare namespace xdr { +// 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 { + 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; @@ -6,10 +61,10 @@ declare namespace xdr { 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; + 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 { @@ -19,10 +74,10 @@ declare namespace xdr { 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; + 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 { @@ -30,10 +85,10 @@ declare namespace xdr { 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; + 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 { @@ -44,22 +99,22 @@ declare namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | (string | bigint | number)[], + values: string | bigint | number | Array, ); - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static toXDR(value: Hyper): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Hyper; + static fromXDR(input: Buffer, format?: 'raw'): Hyper; - static fromXDR(input: string, format: "hex" | "base64"): Hyper; + static fromXDR(input: string, format: 'hex' | 'base64'): Hyper; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; static readonly MAX_VALUE: Hyper; @@ -88,22 +143,22 @@ declare namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | (string | bigint | number)[], + values: string | bigint | number | Array, ); - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static toXDR(value: UnsignedHyper): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UnsignedHyper; + static fromXDR(input: Buffer, format?: 'raw'): UnsignedHyper; - static fromXDR(input: string, format: "hex" | "base64"): UnsignedHyper; + static fromXDR(input: string, format: 'hex' | 'base64'): UnsignedHyper; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; static readonly MAX_VALUE: UnsignedHyper; @@ -137,13 +192,13 @@ declare namespace xdr { toXDR(value: string | Buffer): Buffer; - fromXDR(input: Buffer, format?: "raw"): Buffer; + fromXDR(input: Buffer, format?: 'raw'): Buffer; - fromXDR(input: string, format: "hex" | "base64"): Buffer; + fromXDR(input: string, format: 'hex' | 'base64'): Buffer; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class XDRArray { @@ -155,13 +210,13 @@ declare namespace xdr { toXDR(value: T[]): Buffer; - fromXDR(input: Buffer, format?: "raw"): T[]; + fromXDR(input: Buffer, format?: 'raw'): T[]; - fromXDR(input: string, format: "hex" | "base64"): T[]; + fromXDR(input: string, format: 'hex' | 'base64'): T[]; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Opaque { @@ -175,13 +230,13 @@ declare namespace xdr { toXDR(value: Buffer): Buffer; - fromXDR(input: Buffer, format?: "raw"): Buffer; + fromXDR(input: Buffer, format?: 'raw'): Buffer; - fromXDR(input: string, format: "hex" | "base64"): Buffer; + fromXDR(input: string, format: 'hex' | 'base64'): Buffer; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class VarOpaque extends Opaque {} @@ -201,21 +256,21 @@ declare namespace xdr { toXDR(value: any): Buffer; - fromXDR(input: Buffer, format?: "raw"): any; + fromXDR(input: Buffer, format?: 'raw'): any; - fromXDR(input: string, format: "hex" | "base64"): any; + fromXDR(input: string, format: 'hex' | 'base64'): any; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementType { readonly name: - | "scpStPrepare" - | "scpStConfirm" - | "scpStExternalize" - | "scpStNominate"; + | 'scpStPrepare' + | 'scpStConfirm' + | 'scpStExternalize' + | 'scpStNominate'; readonly value: 0 | 1 | 2 | 3; @@ -230,10 +285,10 @@ declare namespace xdr { class AssetType { readonly name: - | "assetTypeNative" - | "assetTypeCreditAlphanum4" - | "assetTypeCreditAlphanum12" - | "assetTypePoolShare"; + | 'assetTypeNative' + | 'assetTypeCreditAlphanum4' + | 'assetTypeCreditAlphanum12' + | 'assetTypePoolShare'; readonly value: 0 | 1 | 2 | 3; @@ -248,10 +303,10 @@ declare namespace xdr { class ThresholdIndices { readonly name: - | "thresholdMasterWeight" - | "thresholdLow" - | "thresholdMed" - | "thresholdHigh"; + | 'thresholdMasterWeight' + | 'thresholdLow' + | 'thresholdMed' + | 'thresholdHigh'; readonly value: 0 | 1 | 2 | 3; @@ -266,16 +321,16 @@ declare namespace xdr { class LedgerEntryType { readonly name: - | "account" - | "trustline" - | "offer" - | "data" - | "claimableBalance" - | "liquidityPool" - | "contractData" - | "contractCode" - | "configSetting" - | "ttl"; + | 'account' + | 'trustline' + | 'offer' + | 'data' + | 'claimableBalance' + | 'liquidityPool' + | 'contractData' + | 'contractCode' + | 'configSetting' + | 'ttl'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -302,10 +357,10 @@ declare namespace xdr { class AccountFlags { readonly name: - | "authRequiredFlag" - | "authRevocableFlag" - | "authImmutableFlag" - | "authClawbackEnabledFlag"; + | 'authRequiredFlag' + | 'authRevocableFlag' + | 'authImmutableFlag' + | 'authClawbackEnabledFlag'; readonly value: 1 | 2 | 4 | 8; @@ -320,9 +375,9 @@ declare namespace xdr { class TrustLineFlags { readonly name: - | "authorizedFlag" - | "authorizedToMaintainLiabilitiesFlag" - | "trustlineClawbackEnabledFlag"; + | 'authorizedFlag' + | 'authorizedToMaintainLiabilitiesFlag' + | 'trustlineClawbackEnabledFlag'; readonly value: 1 | 2 | 4; @@ -334,7 +389,7 @@ declare namespace xdr { } class LiquidityPoolType { - readonly name: "liquidityPoolConstantProduct"; + readonly name: 'liquidityPoolConstantProduct'; readonly value: 0; @@ -342,7 +397,7 @@ declare namespace xdr { } class OfferEntryFlags { - readonly name: "passiveFlag"; + readonly name: 'passiveFlag'; readonly value: 1; @@ -351,12 +406,12 @@ declare namespace xdr { class ClaimPredicateType { readonly name: - | "claimPredicateUnconditional" - | "claimPredicateAnd" - | "claimPredicateOr" - | "claimPredicateNot" - | "claimPredicateBeforeAbsoluteTime" - | "claimPredicateBeforeRelativeTime"; + | 'claimPredicateUnconditional' + | 'claimPredicateAnd' + | 'claimPredicateOr' + | 'claimPredicateNot' + | 'claimPredicateBeforeAbsoluteTime' + | 'claimPredicateBeforeRelativeTime'; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -374,7 +429,7 @@ declare namespace xdr { } class ClaimantType { - readonly name: "claimantTypeV0"; + readonly name: 'claimantTypeV0'; readonly value: 0; @@ -382,7 +437,7 @@ declare namespace xdr { } class ClaimableBalanceFlags { - readonly name: "claimableBalanceClawbackEnabledFlag"; + readonly name: 'claimableBalanceClawbackEnabledFlag'; readonly value: 1; @@ -390,7 +445,7 @@ declare namespace xdr { } class ContractDataDurability { - readonly name: "temporary" | "persistent"; + readonly name: 'temporary' | 'persistent'; readonly value: 0 | 1; @@ -401,16 +456,16 @@ declare namespace xdr { class EnvelopeType { readonly name: - | "envelopeTypeTxV0" - | "envelopeTypeScp" - | "envelopeTypeTx" - | "envelopeTypeAuth" - | "envelopeTypeScpvalue" - | "envelopeTypeTxFeeBump" - | "envelopeTypeOpId" - | "envelopeTypePoolRevokeOpId" - | "envelopeTypeContractId" - | "envelopeTypeSorobanAuthorization"; + | 'envelopeTypeTxV0' + | 'envelopeTypeScp' + | 'envelopeTypeTx' + | 'envelopeTypeAuth' + | 'envelopeTypeScpvalue' + | 'envelopeTypeTxFeeBump' + | 'envelopeTypeOpId' + | 'envelopeTypePoolRevokeOpId' + | 'envelopeTypeContractId' + | 'envelopeTypeSorobanAuthorization'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -436,7 +491,7 @@ declare namespace xdr { } class BucketListType { - readonly name: "live" | "hotArchive"; + readonly name: 'live' | 'hotArchive'; readonly value: 0 | 1; @@ -446,7 +501,7 @@ declare namespace xdr { } class BucketEntryType { - readonly name: "metaentry" | "liveentry" | "deadentry" | "initentry"; + readonly name: 'metaentry' | 'liveentry' | 'deadentry' | 'initentry'; readonly value: -1 | 0 | 1 | 2; @@ -461,9 +516,9 @@ declare namespace xdr { class HotArchiveBucketEntryType { readonly name: - | "hotArchiveMetaentry" - | "hotArchiveArchived" - | "hotArchiveLive"; + | 'hotArchiveMetaentry' + | 'hotArchiveArchived' + | 'hotArchiveLive'; readonly value: -1 | 0 | 1; @@ -475,7 +530,7 @@ declare namespace xdr { } class StellarValueType { - readonly name: "stellarValueBasic" | "stellarValueSigned"; + readonly name: 'stellarValueBasic' | 'stellarValueSigned'; readonly value: 0 | 1; @@ -486,9 +541,9 @@ declare namespace xdr { class LedgerHeaderFlags { readonly name: - | "disableLiquidityPoolTradingFlag" - | "disableLiquidityPoolDepositFlag" - | "disableLiquidityPoolWithdrawalFlag"; + | 'disableLiquidityPoolTradingFlag' + | 'disableLiquidityPoolDepositFlag' + | 'disableLiquidityPoolWithdrawalFlag'; readonly value: 1 | 2 | 4; @@ -501,13 +556,13 @@ declare namespace xdr { class LedgerUpgradeType { readonly name: - | "ledgerUpgradeVersion" - | "ledgerUpgradeBaseFee" - | "ledgerUpgradeMaxTxSetSize" - | "ledgerUpgradeBaseReserve" - | "ledgerUpgradeFlags" - | "ledgerUpgradeConfig" - | "ledgerUpgradeMaxSorobanTxSetSize"; + | 'ledgerUpgradeVersion' + | 'ledgerUpgradeBaseFee' + | 'ledgerUpgradeMaxTxSetSize' + | 'ledgerUpgradeBaseReserve' + | 'ledgerUpgradeFlags' + | 'ledgerUpgradeConfig' + | 'ledgerUpgradeMaxSorobanTxSetSize'; readonly value: 1 | 2 | 3 | 4 | 5 | 6 | 7; @@ -527,7 +582,7 @@ declare namespace xdr { } class TxSetComponentType { - readonly name: "txsetCompTxsMaybeDiscountedFee"; + readonly name: 'txsetCompTxsMaybeDiscountedFee'; readonly value: 0; @@ -536,11 +591,11 @@ declare namespace xdr { class LedgerEntryChangeType { readonly name: - | "ledgerEntryCreated" - | "ledgerEntryUpdated" - | "ledgerEntryRemoved" - | "ledgerEntryState" - | "ledgerEntryRestored"; + | 'ledgerEntryCreated' + | 'ledgerEntryUpdated' + | 'ledgerEntryRemoved' + | 'ledgerEntryState' + | 'ledgerEntryRestored'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -556,7 +611,7 @@ declare namespace xdr { } class ContractEventType { - readonly name: "system" | "contract" | "diagnostic"; + readonly name: 'system' | 'contract' | 'diagnostic'; readonly value: 0 | 1 | 2; @@ -569,9 +624,9 @@ declare namespace xdr { class TransactionEventStage { readonly name: - | "transactionEventStageBeforeAllTxes" - | "transactionEventStageAfterTx" - | "transactionEventStageAfterAllTxes"; + | 'transactionEventStageBeforeAllTxes' + | 'transactionEventStageAfterTx' + | 'transactionEventStageAfterAllTxes'; readonly value: 0 | 1 | 2; @@ -583,7 +638,7 @@ declare namespace xdr { } class ErrorCode { - readonly name: "errMisc" | "errData" | "errConf" | "errAuth" | "errLoad"; + readonly name: 'errMisc' | 'errData' | 'errConf' | 'errAuth' | 'errLoad'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -599,7 +654,7 @@ declare namespace xdr { } class IpAddrType { - readonly name: "iPv4" | "iPv6"; + readonly name: 'iPv4' | 'iPv6'; readonly value: 0 | 1; @@ -610,27 +665,27 @@ declare namespace xdr { class MessageType { readonly name: - | "errorMsg" - | "auth" - | "dontHave" - | "peers" - | "getTxSet" - | "txSet" - | "generalizedTxSet" - | "transaction" - | "getScpQuorumset" - | "scpQuorumset" - | "scpMessage" - | "getScpState" - | "hello" - | "sendMore" - | "sendMoreExtended" - | "floodAdvert" - | "floodDemand" - | "timeSlicedSurveyRequest" - | "timeSlicedSurveyResponse" - | "timeSlicedSurveyStartCollecting" - | "timeSlicedSurveyStopCollecting"; + | 'errorMsg' + | 'auth' + | 'dontHave' + | 'peers' + | 'getTxSet' + | 'txSet' + | 'generalizedTxSet' + | 'transaction' + | 'getScpQuorumset' + | 'scpQuorumset' + | 'scpMessage' + | 'getScpState' + | 'hello' + | 'sendMore' + | 'sendMoreExtended' + | 'floodAdvert' + | 'floodDemand' + | 'timeSlicedSurveyRequest' + | 'timeSlicedSurveyResponse' + | 'timeSlicedSurveyStartCollecting' + | 'timeSlicedSurveyStopCollecting'; readonly value: | 0 @@ -699,7 +754,7 @@ declare namespace xdr { } class SurveyMessageCommandType { - readonly name: "timeSlicedSurveyTopology"; + readonly name: 'timeSlicedSurveyTopology'; readonly value: 1; @@ -707,7 +762,7 @@ declare namespace xdr { } class SurveyMessageResponseType { - readonly name: "surveyTopologyResponseV2"; + readonly name: 'surveyTopologyResponseV2'; readonly value: 2; @@ -716,33 +771,33 @@ declare namespace xdr { 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"; + | '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 @@ -829,7 +884,7 @@ declare namespace xdr { } class RevokeSponsorshipType { - readonly name: "revokeSponsorshipLedgerEntry" | "revokeSponsorshipSigner"; + readonly name: 'revokeSponsorshipLedgerEntry' | 'revokeSponsorshipSigner'; readonly value: 0 | 1; @@ -840,10 +895,10 @@ declare namespace xdr { class HostFunctionType { readonly name: - | "hostFunctionTypeInvokeContract" - | "hostFunctionTypeCreateContract" - | "hostFunctionTypeUploadContractWasm" - | "hostFunctionTypeCreateContractV2"; + | 'hostFunctionTypeInvokeContract' + | 'hostFunctionTypeCreateContract' + | 'hostFunctionTypeUploadContractWasm' + | 'hostFunctionTypeCreateContractV2'; readonly value: 0 | 1 | 2 | 3; @@ -858,8 +913,8 @@ declare namespace xdr { class ContractIdPreimageType { readonly name: - | "contractIdPreimageFromAddress" - | "contractIdPreimageFromAsset"; + | 'contractIdPreimageFromAddress' + | 'contractIdPreimageFromAsset'; readonly value: 0 | 1; @@ -870,9 +925,9 @@ declare namespace xdr { class SorobanAuthorizedFunctionType { readonly name: - | "sorobanAuthorizedFunctionTypeContractFn" - | "sorobanAuthorizedFunctionTypeCreateContractHostFn" - | "sorobanAuthorizedFunctionTypeCreateContractV2HostFn"; + | 'sorobanAuthorizedFunctionTypeContractFn' + | 'sorobanAuthorizedFunctionTypeCreateContractHostFn' + | 'sorobanAuthorizedFunctionTypeCreateContractV2HostFn'; readonly value: 0 | 1 | 2; @@ -885,8 +940,8 @@ declare namespace xdr { class SorobanCredentialsType { readonly name: - | "sorobanCredentialsSourceAccount" - | "sorobanCredentialsAddress"; + | 'sorobanCredentialsSourceAccount' + | 'sorobanCredentialsAddress'; readonly value: 0 | 1; @@ -897,11 +952,11 @@ declare namespace xdr { class MemoType { readonly name: - | "memoNone" - | "memoText" - | "memoId" - | "memoHash" - | "memoReturn"; + | 'memoNone' + | 'memoText' + | 'memoId' + | 'memoHash' + | 'memoReturn'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -917,7 +972,7 @@ declare namespace xdr { } class PreconditionType { - readonly name: "precondNone" | "precondTime" | "precondV2"; + readonly name: 'precondNone' | 'precondTime' | 'precondV2'; readonly value: 0 | 1 | 2; @@ -930,9 +985,9 @@ declare namespace xdr { class ClaimAtomType { readonly name: - | "claimAtomTypeV0" - | "claimAtomTypeOrderBook" - | "claimAtomTypeLiquidityPool"; + | 'claimAtomTypeV0' + | 'claimAtomTypeOrderBook' + | 'claimAtomTypeLiquidityPool'; readonly value: 0 | 1 | 2; @@ -945,11 +1000,11 @@ declare namespace xdr { class CreateAccountResultCode { readonly name: - | "createAccountSuccess" - | "createAccountMalformed" - | "createAccountUnderfunded" - | "createAccountLowReserve" - | "createAccountAlreadyExist"; + | 'createAccountSuccess' + | 'createAccountMalformed' + | 'createAccountUnderfunded' + | 'createAccountLowReserve' + | 'createAccountAlreadyExist'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -966,16 +1021,16 @@ declare namespace xdr { class PaymentResultCode { readonly name: - | "paymentSuccess" - | "paymentMalformed" - | "paymentUnderfunded" - | "paymentSrcNoTrust" - | "paymentSrcNotAuthorized" - | "paymentNoDestination" - | "paymentNoTrust" - | "paymentNotAuthorized" - | "paymentLineFull" - | "paymentNoIssuer"; + | 'paymentSuccess' + | 'paymentMalformed' + | 'paymentUnderfunded' + | 'paymentSrcNoTrust' + | 'paymentSrcNotAuthorized' + | 'paymentNoDestination' + | 'paymentNoTrust' + | 'paymentNotAuthorized' + | 'paymentLineFull' + | 'paymentNoIssuer'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9; @@ -1002,19 +1057,19 @@ declare namespace xdr { class PathPaymentStrictReceiveResultCode { readonly name: - | "pathPaymentStrictReceiveSuccess" - | "pathPaymentStrictReceiveMalformed" - | "pathPaymentStrictReceiveUnderfunded" - | "pathPaymentStrictReceiveSrcNoTrust" - | "pathPaymentStrictReceiveSrcNotAuthorized" - | "pathPaymentStrictReceiveNoDestination" - | "pathPaymentStrictReceiveNoTrust" - | "pathPaymentStrictReceiveNotAuthorized" - | "pathPaymentStrictReceiveLineFull" - | "pathPaymentStrictReceiveNoIssuer" - | "pathPaymentStrictReceiveTooFewOffers" - | "pathPaymentStrictReceiveOfferCrossSelf" - | "pathPaymentStrictReceiveOverSendmax"; + | 'pathPaymentStrictReceiveSuccess' + | 'pathPaymentStrictReceiveMalformed' + | 'pathPaymentStrictReceiveUnderfunded' + | 'pathPaymentStrictReceiveSrcNoTrust' + | 'pathPaymentStrictReceiveSrcNotAuthorized' + | 'pathPaymentStrictReceiveNoDestination' + | 'pathPaymentStrictReceiveNoTrust' + | 'pathPaymentStrictReceiveNotAuthorized' + | 'pathPaymentStrictReceiveLineFull' + | 'pathPaymentStrictReceiveNoIssuer' + | 'pathPaymentStrictReceiveTooFewOffers' + | 'pathPaymentStrictReceiveOfferCrossSelf' + | 'pathPaymentStrictReceiveOverSendmax'; readonly value: | 0 @@ -1060,19 +1115,19 @@ declare namespace xdr { class PathPaymentStrictSendResultCode { readonly name: - | "pathPaymentStrictSendSuccess" - | "pathPaymentStrictSendMalformed" - | "pathPaymentStrictSendUnderfunded" - | "pathPaymentStrictSendSrcNoTrust" - | "pathPaymentStrictSendSrcNotAuthorized" - | "pathPaymentStrictSendNoDestination" - | "pathPaymentStrictSendNoTrust" - | "pathPaymentStrictSendNotAuthorized" - | "pathPaymentStrictSendLineFull" - | "pathPaymentStrictSendNoIssuer" - | "pathPaymentStrictSendTooFewOffers" - | "pathPaymentStrictSendOfferCrossSelf" - | "pathPaymentStrictSendUnderDestmin"; + | 'pathPaymentStrictSendSuccess' + | 'pathPaymentStrictSendMalformed' + | 'pathPaymentStrictSendUnderfunded' + | 'pathPaymentStrictSendSrcNoTrust' + | 'pathPaymentStrictSendSrcNotAuthorized' + | 'pathPaymentStrictSendNoDestination' + | 'pathPaymentStrictSendNoTrust' + | 'pathPaymentStrictSendNotAuthorized' + | 'pathPaymentStrictSendLineFull' + | 'pathPaymentStrictSendNoIssuer' + | 'pathPaymentStrictSendTooFewOffers' + | 'pathPaymentStrictSendOfferCrossSelf' + | 'pathPaymentStrictSendUnderDestmin'; readonly value: | 0 @@ -1118,19 +1173,19 @@ declare namespace xdr { class ManageSellOfferResultCode { readonly name: - | "manageSellOfferSuccess" - | "manageSellOfferMalformed" - | "manageSellOfferSellNoTrust" - | "manageSellOfferBuyNoTrust" - | "manageSellOfferSellNotAuthorized" - | "manageSellOfferBuyNotAuthorized" - | "manageSellOfferLineFull" - | "manageSellOfferUnderfunded" - | "manageSellOfferCrossSelf" - | "manageSellOfferSellNoIssuer" - | "manageSellOfferBuyNoIssuer" - | "manageSellOfferNotFound" - | "manageSellOfferLowReserve"; + | 'manageSellOfferSuccess' + | 'manageSellOfferMalformed' + | 'manageSellOfferSellNoTrust' + | 'manageSellOfferBuyNoTrust' + | 'manageSellOfferSellNotAuthorized' + | 'manageSellOfferBuyNotAuthorized' + | 'manageSellOfferLineFull' + | 'manageSellOfferUnderfunded' + | 'manageSellOfferCrossSelf' + | 'manageSellOfferSellNoIssuer' + | 'manageSellOfferBuyNoIssuer' + | 'manageSellOfferNotFound' + | 'manageSellOfferLowReserve'; readonly value: | 0 @@ -1176,9 +1231,9 @@ declare namespace xdr { class ManageOfferEffect { readonly name: - | "manageOfferCreated" - | "manageOfferUpdated" - | "manageOfferDeleted"; + | 'manageOfferCreated' + | 'manageOfferUpdated' + | 'manageOfferDeleted'; readonly value: 0 | 1 | 2; @@ -1191,19 +1246,19 @@ declare namespace xdr { class ManageBuyOfferResultCode { readonly name: - | "manageBuyOfferSuccess" - | "manageBuyOfferMalformed" - | "manageBuyOfferSellNoTrust" - | "manageBuyOfferBuyNoTrust" - | "manageBuyOfferSellNotAuthorized" - | "manageBuyOfferBuyNotAuthorized" - | "manageBuyOfferLineFull" - | "manageBuyOfferUnderfunded" - | "manageBuyOfferCrossSelf" - | "manageBuyOfferSellNoIssuer" - | "manageBuyOfferBuyNoIssuer" - | "manageBuyOfferNotFound" - | "manageBuyOfferLowReserve"; + | 'manageBuyOfferSuccess' + | 'manageBuyOfferMalformed' + | 'manageBuyOfferSellNoTrust' + | 'manageBuyOfferBuyNoTrust' + | 'manageBuyOfferSellNotAuthorized' + | 'manageBuyOfferBuyNotAuthorized' + | 'manageBuyOfferLineFull' + | 'manageBuyOfferUnderfunded' + | 'manageBuyOfferCrossSelf' + | 'manageBuyOfferSellNoIssuer' + | 'manageBuyOfferBuyNoIssuer' + | 'manageBuyOfferNotFound' + | 'manageBuyOfferLowReserve'; readonly value: | 0 @@ -1249,17 +1304,17 @@ declare namespace xdr { class SetOptionsResultCode { readonly name: - | "setOptionsSuccess" - | "setOptionsLowReserve" - | "setOptionsTooManySigners" - | "setOptionsBadFlags" - | "setOptionsInvalidInflation" - | "setOptionsCantChange" - | "setOptionsUnknownFlag" - | "setOptionsThresholdOutOfRange" - | "setOptionsBadSigner" - | "setOptionsInvalidHomeDomain" - | "setOptionsAuthRevocableRequired"; + | 'setOptionsSuccess' + | 'setOptionsLowReserve' + | 'setOptionsTooManySigners' + | 'setOptionsBadFlags' + | 'setOptionsInvalidInflation' + | 'setOptionsCantChange' + | 'setOptionsUnknownFlag' + | 'setOptionsThresholdOutOfRange' + | 'setOptionsBadSigner' + | 'setOptionsInvalidHomeDomain' + | 'setOptionsAuthRevocableRequired'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -10; @@ -1288,15 +1343,15 @@ declare namespace xdr { class ChangeTrustResultCode { readonly name: - | "changeTrustSuccess" - | "changeTrustMalformed" - | "changeTrustNoIssuer" - | "changeTrustInvalidLimit" - | "changeTrustLowReserve" - | "changeTrustSelfNotAllowed" - | "changeTrustTrustLineMissing" - | "changeTrustCannotDelete" - | "changeTrustNotAuthMaintainLiabilities"; + | 'changeTrustSuccess' + | 'changeTrustMalformed' + | 'changeTrustNoIssuer' + | 'changeTrustInvalidLimit' + | 'changeTrustLowReserve' + | 'changeTrustSelfNotAllowed' + | 'changeTrustTrustLineMissing' + | 'changeTrustCannotDelete' + | 'changeTrustNotAuthMaintainLiabilities'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8; @@ -1321,13 +1376,13 @@ declare namespace xdr { class AllowTrustResultCode { readonly name: - | "allowTrustSuccess" - | "allowTrustMalformed" - | "allowTrustNoTrustLine" - | "allowTrustTrustNotRequired" - | "allowTrustCantRevoke" - | "allowTrustSelfNotAllowed" - | "allowTrustLowReserve"; + | 'allowTrustSuccess' + | 'allowTrustMalformed' + | 'allowTrustNoTrustLine' + | 'allowTrustTrustNotRequired' + | 'allowTrustCantRevoke' + | 'allowTrustSelfNotAllowed' + | 'allowTrustLowReserve'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1348,14 +1403,14 @@ declare namespace xdr { class AccountMergeResultCode { readonly name: - | "accountMergeSuccess" - | "accountMergeMalformed" - | "accountMergeNoAccount" - | "accountMergeImmutableSet" - | "accountMergeHasSubEntries" - | "accountMergeSeqnumTooFar" - | "accountMergeDestFull" - | "accountMergeIsSponsor"; + | 'accountMergeSuccess' + | 'accountMergeMalformed' + | 'accountMergeNoAccount' + | 'accountMergeImmutableSet' + | 'accountMergeHasSubEntries' + | 'accountMergeSeqnumTooFar' + | 'accountMergeDestFull' + | 'accountMergeIsSponsor'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1377,7 +1432,7 @@ declare namespace xdr { } class InflationResultCode { - readonly name: "inflationSuccess" | "inflationNotTime"; + readonly name: 'inflationSuccess' | 'inflationNotTime'; readonly value: 0 | -1; @@ -1388,11 +1443,11 @@ declare namespace xdr { class ManageDataResultCode { readonly name: - | "manageDataSuccess" - | "manageDataNotSupportedYet" - | "manageDataNameNotFound" - | "manageDataLowReserve" - | "manageDataInvalidName"; + | 'manageDataSuccess' + | 'manageDataNotSupportedYet' + | 'manageDataNameNotFound' + | 'manageDataLowReserve' + | 'manageDataInvalidName'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1408,7 +1463,7 @@ declare namespace xdr { } class BumpSequenceResultCode { - readonly name: "bumpSequenceSuccess" | "bumpSequenceBadSeq"; + readonly name: 'bumpSequenceSuccess' | 'bumpSequenceBadSeq'; readonly value: 0 | -1; @@ -1419,12 +1474,12 @@ declare namespace xdr { class CreateClaimableBalanceResultCode { readonly name: - | "createClaimableBalanceSuccess" - | "createClaimableBalanceMalformed" - | "createClaimableBalanceLowReserve" - | "createClaimableBalanceNoTrust" - | "createClaimableBalanceNotAuthorized" - | "createClaimableBalanceUnderfunded"; + | 'createClaimableBalanceSuccess' + | 'createClaimableBalanceMalformed' + | 'createClaimableBalanceLowReserve' + | 'createClaimableBalanceNoTrust' + | 'createClaimableBalanceNotAuthorized' + | 'createClaimableBalanceUnderfunded'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1443,12 +1498,12 @@ declare namespace xdr { class ClaimClaimableBalanceResultCode { readonly name: - | "claimClaimableBalanceSuccess" - | "claimClaimableBalanceDoesNotExist" - | "claimClaimableBalanceCannotClaim" - | "claimClaimableBalanceLineFull" - | "claimClaimableBalanceNoTrust" - | "claimClaimableBalanceNotAuthorized"; + | 'claimClaimableBalanceSuccess' + | 'claimClaimableBalanceDoesNotExist' + | 'claimClaimableBalanceCannotClaim' + | 'claimClaimableBalanceLineFull' + | 'claimClaimableBalanceNoTrust' + | 'claimClaimableBalanceNotAuthorized'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1467,10 +1522,10 @@ declare namespace xdr { class BeginSponsoringFutureReservesResultCode { readonly name: - | "beginSponsoringFutureReservesSuccess" - | "beginSponsoringFutureReservesMalformed" - | "beginSponsoringFutureReservesAlreadySponsored" - | "beginSponsoringFutureReservesRecursive"; + | 'beginSponsoringFutureReservesSuccess' + | 'beginSponsoringFutureReservesMalformed' + | 'beginSponsoringFutureReservesAlreadySponsored' + | 'beginSponsoringFutureReservesRecursive'; readonly value: 0 | -1 | -2 | -3; @@ -1485,8 +1540,8 @@ declare namespace xdr { class EndSponsoringFutureReservesResultCode { readonly name: - | "endSponsoringFutureReservesSuccess" - | "endSponsoringFutureReservesNotSponsored"; + | 'endSponsoringFutureReservesSuccess' + | 'endSponsoringFutureReservesNotSponsored'; readonly value: 0 | -1; @@ -1497,12 +1552,12 @@ declare namespace xdr { class RevokeSponsorshipResultCode { readonly name: - | "revokeSponsorshipSuccess" - | "revokeSponsorshipDoesNotExist" - | "revokeSponsorshipNotSponsor" - | "revokeSponsorshipLowReserve" - | "revokeSponsorshipOnlyTransferable" - | "revokeSponsorshipMalformed"; + | 'revokeSponsorshipSuccess' + | 'revokeSponsorshipDoesNotExist' + | 'revokeSponsorshipNotSponsor' + | 'revokeSponsorshipLowReserve' + | 'revokeSponsorshipOnlyTransferable' + | 'revokeSponsorshipMalformed'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1521,11 +1576,11 @@ declare namespace xdr { class ClawbackResultCode { readonly name: - | "clawbackSuccess" - | "clawbackMalformed" - | "clawbackNotClawbackEnabled" - | "clawbackNoTrust" - | "clawbackUnderfunded"; + | 'clawbackSuccess' + | 'clawbackMalformed' + | 'clawbackNotClawbackEnabled' + | 'clawbackNoTrust' + | 'clawbackUnderfunded'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1542,10 +1597,10 @@ declare namespace xdr { class ClawbackClaimableBalanceResultCode { readonly name: - | "clawbackClaimableBalanceSuccess" - | "clawbackClaimableBalanceDoesNotExist" - | "clawbackClaimableBalanceNotIssuer" - | "clawbackClaimableBalanceNotClawbackEnabled"; + | 'clawbackClaimableBalanceSuccess' + | 'clawbackClaimableBalanceDoesNotExist' + | 'clawbackClaimableBalanceNotIssuer' + | 'clawbackClaimableBalanceNotClawbackEnabled'; readonly value: 0 | -1 | -2 | -3; @@ -1560,12 +1615,12 @@ declare namespace xdr { class SetTrustLineFlagsResultCode { readonly name: - | "setTrustLineFlagsSuccess" - | "setTrustLineFlagsMalformed" - | "setTrustLineFlagsNoTrustLine" - | "setTrustLineFlagsCantRevoke" - | "setTrustLineFlagsInvalidState" - | "setTrustLineFlagsLowReserve"; + | 'setTrustLineFlagsSuccess' + | 'setTrustLineFlagsMalformed' + | 'setTrustLineFlagsNoTrustLine' + | 'setTrustLineFlagsCantRevoke' + | 'setTrustLineFlagsInvalidState' + | 'setTrustLineFlagsLowReserve'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1584,14 +1639,14 @@ declare namespace xdr { class LiquidityPoolDepositResultCode { readonly name: - | "liquidityPoolDepositSuccess" - | "liquidityPoolDepositMalformed" - | "liquidityPoolDepositNoTrust" - | "liquidityPoolDepositNotAuthorized" - | "liquidityPoolDepositUnderfunded" - | "liquidityPoolDepositLineFull" - | "liquidityPoolDepositBadPrice" - | "liquidityPoolDepositPoolFull"; + | 'liquidityPoolDepositSuccess' + | 'liquidityPoolDepositMalformed' + | 'liquidityPoolDepositNoTrust' + | 'liquidityPoolDepositNotAuthorized' + | 'liquidityPoolDepositUnderfunded' + | 'liquidityPoolDepositLineFull' + | 'liquidityPoolDepositBadPrice' + | 'liquidityPoolDepositPoolFull'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1614,12 +1669,12 @@ declare namespace xdr { class LiquidityPoolWithdrawResultCode { readonly name: - | "liquidityPoolWithdrawSuccess" - | "liquidityPoolWithdrawMalformed" - | "liquidityPoolWithdrawNoTrust" - | "liquidityPoolWithdrawUnderfunded" - | "liquidityPoolWithdrawLineFull" - | "liquidityPoolWithdrawUnderMinimum"; + | 'liquidityPoolWithdrawSuccess' + | 'liquidityPoolWithdrawMalformed' + | 'liquidityPoolWithdrawNoTrust' + | 'liquidityPoolWithdrawUnderfunded' + | 'liquidityPoolWithdrawLineFull' + | 'liquidityPoolWithdrawUnderMinimum'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1638,12 +1693,12 @@ declare namespace xdr { class InvokeHostFunctionResultCode { readonly name: - | "invokeHostFunctionSuccess" - | "invokeHostFunctionMalformed" - | "invokeHostFunctionTrapped" - | "invokeHostFunctionResourceLimitExceeded" - | "invokeHostFunctionEntryArchived" - | "invokeHostFunctionInsufficientRefundableFee"; + | 'invokeHostFunctionSuccess' + | 'invokeHostFunctionMalformed' + | 'invokeHostFunctionTrapped' + | 'invokeHostFunctionResourceLimitExceeded' + | 'invokeHostFunctionEntryArchived' + | 'invokeHostFunctionInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1662,10 +1717,10 @@ declare namespace xdr { class ExtendFootprintTtlResultCode { readonly name: - | "extendFootprintTtlSuccess" - | "extendFootprintTtlMalformed" - | "extendFootprintTtlResourceLimitExceeded" - | "extendFootprintTtlInsufficientRefundableFee"; + | 'extendFootprintTtlSuccess' + | 'extendFootprintTtlMalformed' + | 'extendFootprintTtlResourceLimitExceeded' + | 'extendFootprintTtlInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3; @@ -1680,10 +1735,10 @@ declare namespace xdr { class RestoreFootprintResultCode { readonly name: - | "restoreFootprintSuccess" - | "restoreFootprintMalformed" - | "restoreFootprintResourceLimitExceeded" - | "restoreFootprintInsufficientRefundableFee"; + | 'restoreFootprintSuccess' + | 'restoreFootprintMalformed' + | 'restoreFootprintResourceLimitExceeded' + | 'restoreFootprintInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3; @@ -1698,13 +1753,13 @@ declare namespace xdr { class OperationResultCode { readonly name: - | "opInner" - | "opBadAuth" - | "opNoAccount" - | "opNotSupported" - | "opTooManySubentries" - | "opExceededWorkLimit" - | "opTooManySponsoring"; + | 'opInner' + | 'opBadAuth' + | 'opNoAccount' + | 'opNotSupported' + | 'opTooManySubentries' + | 'opExceededWorkLimit' + | 'opTooManySponsoring'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1725,25 +1780,25 @@ declare namespace xdr { class TransactionResultCode { readonly name: - | "txFeeBumpInnerSuccess" - | "txSuccess" - | "txFailed" - | "txTooEarly" - | "txTooLate" - | "txMissingOperation" - | "txBadSeq" - | "txBadAuth" - | "txInsufficientBalance" - | "txNoAccount" - | "txInsufficientFee" - | "txBadAuthExtra" - | "txInternalError" - | "txNotSupported" - | "txFeeBumpInnerFailed" - | "txBadSponsorship" - | "txBadMinSeqAgeOrGap" - | "txMalformed" - | "txSorobanInvalid"; + | 'txFeeBumpInnerSuccess' + | 'txSuccess' + | 'txFailed' + | 'txTooEarly' + | 'txTooLate' + | 'txMissingOperation' + | 'txBadSeq' + | 'txBadAuth' + | 'txInsufficientBalance' + | 'txNoAccount' + | 'txInsufficientFee' + | 'txBadAuthExtra' + | 'txInternalError' + | 'txNotSupported' + | 'txFeeBumpInnerFailed' + | 'txBadSponsorship' + | 'txBadMinSeqAgeOrGap' + | 'txMalformed' + | 'txSorobanInvalid'; readonly value: | 1 @@ -1807,11 +1862,11 @@ declare namespace xdr { class CryptoKeyType { readonly name: - | "keyTypeEd25519" - | "keyTypePreAuthTx" - | "keyTypeHashX" - | "keyTypeEd25519SignedPayload" - | "keyTypeMuxedEd25519"; + | 'keyTypeEd25519' + | 'keyTypePreAuthTx' + | 'keyTypeHashX' + | 'keyTypeEd25519SignedPayload' + | 'keyTypeMuxedEd25519'; readonly value: 0 | 1 | 2 | 3 | 256; @@ -1827,7 +1882,7 @@ declare namespace xdr { } class PublicKeyType { - readonly name: "publicKeyTypeEd25519"; + readonly name: 'publicKeyTypeEd25519'; readonly value: 0; @@ -1836,10 +1891,10 @@ declare namespace xdr { class SignerKeyType { readonly name: - | "signerKeyTypeEd25519" - | "signerKeyTypePreAuthTx" - | "signerKeyTypeHashX" - | "signerKeyTypeEd25519SignedPayload"; + | 'signerKeyTypeEd25519' + | 'signerKeyTypePreAuthTx' + | 'signerKeyTypeHashX' + | 'signerKeyTypeEd25519SignedPayload'; readonly value: 0 | 1 | 2 | 3; @@ -1854,9 +1909,9 @@ declare namespace xdr { class BinaryFuseFilterType { readonly name: - | "binaryFuseFilter8Bit" - | "binaryFuseFilter16Bit" - | "binaryFuseFilter32Bit"; + | 'binaryFuseFilter8Bit' + | 'binaryFuseFilter16Bit' + | 'binaryFuseFilter32Bit'; readonly value: 0 | 1 | 2; @@ -1868,7 +1923,7 @@ declare namespace xdr { } class ClaimableBalanceIdType { - readonly name: "claimableBalanceIdTypeV0"; + readonly name: 'claimableBalanceIdTypeV0'; readonly value: 0; @@ -1877,28 +1932,28 @@ declare namespace xdr { class ScValType { readonly name: - | "scvBool" - | "scvVoid" - | "scvError" - | "scvU32" - | "scvI32" - | "scvU64" - | "scvI64" - | "scvTimepoint" - | "scvDuration" - | "scvU128" - | "scvI128" - | "scvU256" - | "scvI256" - | "scvBytes" - | "scvString" - | "scvSymbol" - | "scvVec" - | "scvMap" - | "scvAddress" - | "scvContractInstance" - | "scvLedgerKeyContractInstance" - | "scvLedgerKeyNonce"; + | 'scvBool' + | 'scvVoid' + | 'scvError' + | 'scvU32' + | 'scvI32' + | 'scvU64' + | 'scvI64' + | 'scvTimepoint' + | 'scvDuration' + | 'scvU128' + | 'scvI128' + | 'scvU256' + | 'scvI256' + | 'scvBytes' + | 'scvString' + | 'scvSymbol' + | 'scvVec' + | 'scvMap' + | 'scvAddress' + | 'scvContractInstance' + | 'scvLedgerKeyContractInstance' + | 'scvLedgerKeyNonce'; readonly value: | 0 @@ -1971,16 +2026,16 @@ declare namespace xdr { class ScErrorType { readonly name: - | "sceContract" - | "sceWasmVm" - | "sceContext" - | "sceStorage" - | "sceObject" - | "sceCrypto" - | "sceEvents" - | "sceBudget" - | "sceValue" - | "sceAuth"; + | 'sceContract' + | 'sceWasmVm' + | 'sceContext' + | 'sceStorage' + | 'sceObject' + | 'sceCrypto' + | 'sceEvents' + | 'sceBudget' + | 'sceValue' + | 'sceAuth'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2007,16 +2062,16 @@ declare namespace xdr { class ScErrorCode { readonly name: - | "scecArithDomain" - | "scecIndexBounds" - | "scecInvalidInput" - | "scecMissingValue" - | "scecExistingValue" - | "scecExceededLimit" - | "scecInvalidAction" - | "scecInternalError" - | "scecUnexpectedType" - | "scecUnexpectedSize"; + | 'scecArithDomain' + | 'scecIndexBounds' + | 'scecInvalidInput' + | 'scecMissingValue' + | 'scecExistingValue' + | 'scecExceededLimit' + | 'scecInvalidAction' + | 'scecInternalError' + | 'scecUnexpectedType' + | 'scecUnexpectedSize'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2042,7 +2097,7 @@ declare namespace xdr { } class ContractExecutableType { - readonly name: "contractExecutableWasm" | "contractExecutableStellarAsset"; + readonly name: 'contractExecutableWasm' | 'contractExecutableStellarAsset'; readonly value: 0 | 1; @@ -2053,11 +2108,11 @@ declare namespace xdr { class ScAddressType { readonly name: - | "scAddressTypeAccount" - | "scAddressTypeContract" - | "scAddressTypeMuxedAccount" - | "scAddressTypeClaimableBalance" - | "scAddressTypeLiquidityPool"; + | 'scAddressTypeAccount' + | 'scAddressTypeContract' + | 'scAddressTypeMuxedAccount' + | 'scAddressTypeClaimableBalance' + | 'scAddressTypeLiquidityPool'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -2073,7 +2128,7 @@ declare namespace xdr { } class ScEnvMetaKind { - readonly name: "scEnvMetaKindInterfaceVersion"; + readonly name: 'scEnvMetaKindInterfaceVersion'; readonly value: 0; @@ -2081,7 +2136,7 @@ declare namespace xdr { } class ScMetaKind { - readonly name: "scMetaV0"; + readonly name: 'scMetaV0'; readonly value: 0; @@ -2090,32 +2145,32 @@ declare namespace xdr { class ScSpecType { readonly name: - | "scSpecTypeVal" - | "scSpecTypeBool" - | "scSpecTypeVoid" - | "scSpecTypeError" - | "scSpecTypeU32" - | "scSpecTypeI32" - | "scSpecTypeU64" - | "scSpecTypeI64" - | "scSpecTypeTimepoint" - | "scSpecTypeDuration" - | "scSpecTypeU128" - | "scSpecTypeI128" - | "scSpecTypeU256" - | "scSpecTypeI256" - | "scSpecTypeBytes" - | "scSpecTypeString" - | "scSpecTypeSymbol" - | "scSpecTypeAddress" - | "scSpecTypeMuxedAddress" - | "scSpecTypeOption" - | "scSpecTypeResult" - | "scSpecTypeVec" - | "scSpecTypeMap" - | "scSpecTypeTuple" - | "scSpecTypeBytesN" - | "scSpecTypeUdt"; + | 'scSpecTypeVal' + | 'scSpecTypeBool' + | 'scSpecTypeVoid' + | 'scSpecTypeError' + | 'scSpecTypeU32' + | 'scSpecTypeI32' + | 'scSpecTypeU64' + | 'scSpecTypeI64' + | 'scSpecTypeTimepoint' + | 'scSpecTypeDuration' + | 'scSpecTypeU128' + | 'scSpecTypeI128' + | 'scSpecTypeU256' + | 'scSpecTypeI256' + | 'scSpecTypeBytes' + | 'scSpecTypeString' + | 'scSpecTypeSymbol' + | 'scSpecTypeAddress' + | 'scSpecTypeMuxedAddress' + | 'scSpecTypeOption' + | 'scSpecTypeResult' + | 'scSpecTypeVec' + | 'scSpecTypeMap' + | 'scSpecTypeTuple' + | 'scSpecTypeBytesN' + | 'scSpecTypeUdt'; readonly value: | 0 @@ -2199,7 +2254,7 @@ declare namespace xdr { } class ScSpecUdtUnionCaseV0Kind { - readonly name: "scSpecUdtUnionCaseVoidV0" | "scSpecUdtUnionCaseTupleV0"; + readonly name: 'scSpecUdtUnionCaseVoidV0' | 'scSpecUdtUnionCaseTupleV0'; readonly value: 0 | 1; @@ -2210,8 +2265,8 @@ declare namespace xdr { class ScSpecEventParamLocationV0 { readonly name: - | "scSpecEventParamLocationData" - | "scSpecEventParamLocationTopicList"; + | 'scSpecEventParamLocationData' + | 'scSpecEventParamLocationTopicList'; readonly value: 0 | 1; @@ -2222,9 +2277,9 @@ declare namespace xdr { class ScSpecEventDataFormat { readonly name: - | "scSpecEventDataFormatSingleValue" - | "scSpecEventDataFormatVec" - | "scSpecEventDataFormatMap"; + | 'scSpecEventDataFormatSingleValue' + | 'scSpecEventDataFormatVec' + | 'scSpecEventDataFormatMap'; readonly value: 0 | 1 | 2; @@ -2237,12 +2292,12 @@ declare namespace xdr { class ScSpecEntryKind { readonly name: - | "scSpecEntryFunctionV0" - | "scSpecEntryUdtStructV0" - | "scSpecEntryUdtUnionV0" - | "scSpecEntryUdtEnumV0" - | "scSpecEntryUdtErrorEnumV0" - | "scSpecEntryEventV0"; + | 'scSpecEntryFunctionV0' + | 'scSpecEntryUdtStructV0' + | 'scSpecEntryUdtUnionV0' + | 'scSpecEntryUdtEnumV0' + | 'scSpecEntryUdtErrorEnumV0' + | 'scSpecEntryEventV0'; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -2261,76 +2316,76 @@ declare namespace xdr { class ContractCostType { readonly name: - | "wasmInsnExec" - | "memAlloc" - | "memCpy" - | "memCmp" - | "dispatchHostFunction" - | "visitObject" - | "valSer" - | "valDeser" - | "computeSha256Hash" - | "computeEd25519PubKey" - | "verifyEd25519Sig" - | "vmInstantiation" - | "vmCachedInstantiation" - | "invokeVmFunction" - | "computeKeccak256Hash" - | "decodeEcdsaCurve256Sig" - | "recoverEcdsaSecp256k1Key" - | "int256AddSub" - | "int256Mul" - | "int256Div" - | "int256Pow" - | "int256Shift" - | "chaCha20DrawBytes" - | "parseWasmInstructions" - | "parseWasmFunctions" - | "parseWasmGlobals" - | "parseWasmTableEntries" - | "parseWasmTypes" - | "parseWasmDataSegments" - | "parseWasmElemSegments" - | "parseWasmImports" - | "parseWasmExports" - | "parseWasmDataSegmentBytes" - | "instantiateWasmInstructions" - | "instantiateWasmFunctions" - | "instantiateWasmGlobals" - | "instantiateWasmTableEntries" - | "instantiateWasmTypes" - | "instantiateWasmDataSegments" - | "instantiateWasmElemSegments" - | "instantiateWasmImports" - | "instantiateWasmExports" - | "instantiateWasmDataSegmentBytes" - | "sec1DecodePointUncompressed" - | "verifyEcdsaSecp256r1Sig" - | "bls12381EncodeFp" - | "bls12381DecodeFp" - | "bls12381G1CheckPointOnCurve" - | "bls12381G1CheckPointInSubgroup" - | "bls12381G2CheckPointOnCurve" - | "bls12381G2CheckPointInSubgroup" - | "bls12381G1ProjectiveToAffine" - | "bls12381G2ProjectiveToAffine" - | "bls12381G1Add" - | "bls12381G1Mul" - | "bls12381G1Msm" - | "bls12381MapFpToG1" - | "bls12381HashToG1" - | "bls12381G2Add" - | "bls12381G2Mul" - | "bls12381G2Msm" - | "bls12381MapFp2ToG2" - | "bls12381HashToG2" - | "bls12381Pairing" - | "bls12381FrFromU256" - | "bls12381FrToU256" - | "bls12381FrAddSub" - | "bls12381FrMul" - | "bls12381FrPow" - | "bls12381FrInv"; + | 'wasmInsnExec' + | 'memAlloc' + | 'memCpy' + | 'memCmp' + | 'dispatchHostFunction' + | 'visitObject' + | 'valSer' + | 'valDeser' + | 'computeSha256Hash' + | 'computeEd25519PubKey' + | 'verifyEd25519Sig' + | 'vmInstantiation' + | 'vmCachedInstantiation' + | 'invokeVmFunction' + | 'computeKeccak256Hash' + | 'decodeEcdsaCurve256Sig' + | 'recoverEcdsaSecp256k1Key' + | 'int256AddSub' + | 'int256Mul' + | 'int256Div' + | 'int256Pow' + | 'int256Shift' + | 'chaCha20DrawBytes' + | 'parseWasmInstructions' + | 'parseWasmFunctions' + | 'parseWasmGlobals' + | 'parseWasmTableEntries' + | 'parseWasmTypes' + | 'parseWasmDataSegments' + | 'parseWasmElemSegments' + | 'parseWasmImports' + | 'parseWasmExports' + | 'parseWasmDataSegmentBytes' + | 'instantiateWasmInstructions' + | 'instantiateWasmFunctions' + | 'instantiateWasmGlobals' + | 'instantiateWasmTableEntries' + | 'instantiateWasmTypes' + | 'instantiateWasmDataSegments' + | 'instantiateWasmElemSegments' + | 'instantiateWasmImports' + | 'instantiateWasmExports' + | 'instantiateWasmDataSegmentBytes' + | 'sec1DecodePointUncompressed' + | 'verifyEcdsaSecp256r1Sig' + | 'bls12381EncodeFp' + | 'bls12381DecodeFp' + | 'bls12381G1CheckPointOnCurve' + | 'bls12381G1CheckPointInSubgroup' + | 'bls12381G2CheckPointOnCurve' + | 'bls12381G2CheckPointInSubgroup' + | 'bls12381G1ProjectiveToAffine' + | 'bls12381G2ProjectiveToAffine' + | 'bls12381G1Add' + | 'bls12381G1Mul' + | 'bls12381G1Msm' + | 'bls12381MapFpToG1' + | 'bls12381HashToG1' + | 'bls12381G2Add' + | 'bls12381G2Mul' + | 'bls12381G2Msm' + | 'bls12381MapFp2ToG2' + | 'bls12381HashToG2' + | 'bls12381Pairing' + | 'bls12381FrFromU256' + | 'bls12381FrToU256' + | 'bls12381FrAddSub' + | 'bls12381FrMul' + | 'bls12381FrPow' + | 'bls12381FrInv'; readonly value: | 0 @@ -2547,23 +2602,23 @@ declare namespace xdr { class ConfigSettingId { readonly name: - | "configSettingContractMaxSizeBytes" - | "configSettingContractComputeV0" - | "configSettingContractLedgerCostV0" - | "configSettingContractHistoricalDataV0" - | "configSettingContractEventsV0" - | "configSettingContractBandwidthV0" - | "configSettingContractCostParamsCpuInstructions" - | "configSettingContractCostParamsMemoryBytes" - | "configSettingContractDataKeySizeBytes" - | "configSettingContractDataEntrySizeBytes" - | "configSettingStateArchival" - | "configSettingContractExecutionLanes" - | "configSettingLiveSorobanStateSizeWindow" - | "configSettingEvictionIterator" - | "configSettingContractParallelComputeV0" - | "configSettingContractLedgerCostExtV0" - | "configSettingScpTiming"; + | 'configSettingContractMaxSizeBytes' + | 'configSettingContractComputeV0' + | 'configSettingContractLedgerCostV0' + | 'configSettingContractHistoricalDataV0' + | 'configSettingContractEventsV0' + | 'configSettingContractBandwidthV0' + | 'configSettingContractCostParamsCpuInstructions' + | 'configSettingContractCostParamsMemoryBytes' + | 'configSettingContractDataKeySizeBytes' + | 'configSettingContractDataEntrySizeBytes' + | 'configSettingStateArchival' + | 'configSettingContractExecutionLanes' + | 'configSettingLiveSorobanStateSizeWindow' + | 'configSettingEvictionIterator' + | 'configSettingContractParallelComputeV0' + | 'configSettingContractLedgerCostExtV0' + | 'configSettingScpTiming'; readonly value: | 0 @@ -2702,9 +2757,9 @@ declare namespace xdr { value(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpBallot; @@ -2714,13 +2769,13 @@ declare namespace xdr { static toXDR(value: ScpBallot): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpBallot; + static fromXDR(input: Buffer, format?: 'raw'): ScpBallot; - static fromXDR(input: string, format: "hex" | "base64"): ScpBallot; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpBallot; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpNomination { @@ -2736,9 +2791,9 @@ declare namespace xdr { accepted(value?: Buffer[]): Buffer[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpNomination; @@ -2748,13 +2803,13 @@ declare namespace xdr { static toXDR(value: ScpNomination): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpNomination; + static fromXDR(input: Buffer, format?: 'raw'): ScpNomination; - static fromXDR(input: string, format: "hex" | "base64"): ScpNomination; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpNomination; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementPrepare { @@ -2779,9 +2834,9 @@ declare namespace xdr { nH(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementPrepare; @@ -2791,16 +2846,16 @@ declare namespace xdr { static toXDR(value: ScpStatementPrepare): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementPrepare; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPrepare; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementPrepare; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementConfirm { @@ -2822,9 +2877,9 @@ declare namespace xdr { quorumSetHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementConfirm; @@ -2834,16 +2889,16 @@ declare namespace xdr { static toXDR(value: ScpStatementConfirm): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementConfirm; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementConfirm; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementConfirm; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementExternalize { @@ -2859,9 +2914,9 @@ declare namespace xdr { commitQuorumSetHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementExternalize; @@ -2871,16 +2926,16 @@ declare namespace xdr { static toXDR(value: ScpStatementExternalize): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementExternalize; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementExternalize; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementExternalize; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatement { @@ -2896,9 +2951,9 @@ declare namespace xdr { pledges(value?: ScpStatementPledges): ScpStatementPledges; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatement; @@ -2908,13 +2963,13 @@ declare namespace xdr { static toXDR(value: ScpStatement): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatement; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatement; - static fromXDR(input: string, format: "hex" | "base64"): ScpStatement; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpStatement; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpEnvelope { @@ -2924,9 +2979,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpEnvelope; @@ -2936,13 +2991,13 @@ declare namespace xdr { static toXDR(value: ScpEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): ScpEnvelope; - static fromXDR(input: string, format: "hex" | "base64"): ScpEnvelope; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpQuorumSet { @@ -2958,9 +3013,9 @@ declare namespace xdr { innerSets(value?: ScpQuorumSet[]): ScpQuorumSet[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpQuorumSet; @@ -2970,13 +3025,13 @@ declare namespace xdr { static toXDR(value: ScpQuorumSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpQuorumSet; + static fromXDR(input: Buffer, format?: 'raw'): ScpQuorumSet; - static fromXDR(input: string, format: "hex" | "base64"): ScpQuorumSet; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpQuorumSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AlphaNum4 { @@ -2986,9 +3041,9 @@ declare namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AlphaNum4; @@ -2998,13 +3053,13 @@ declare namespace xdr { static toXDR(value: AlphaNum4): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AlphaNum4; + static fromXDR(input: Buffer, format?: 'raw'): AlphaNum4; - static fromXDR(input: string, format: "hex" | "base64"): AlphaNum4; + static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum4; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AlphaNum12 { @@ -3014,9 +3069,9 @@ declare namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AlphaNum12; @@ -3026,13 +3081,13 @@ declare namespace xdr { static toXDR(value: AlphaNum12): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AlphaNum12; + static fromXDR(input: Buffer, format?: 'raw'): AlphaNum12; - static fromXDR(input: string, format: "hex" | "base64"): AlphaNum12; + static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum12; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Price { @@ -3042,9 +3097,9 @@ declare namespace xdr { d(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Price; @@ -3054,13 +3109,13 @@ declare namespace xdr { static toXDR(value: Price): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Price; + static fromXDR(input: Buffer, format?: 'raw'): Price; - static fromXDR(input: string, format: "hex" | "base64"): Price; + static fromXDR(input: string, format: 'hex' | 'base64'): Price; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Liabilities { @@ -3070,9 +3125,9 @@ declare namespace xdr { selling(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Liabilities; @@ -3082,13 +3137,13 @@ declare namespace xdr { static toXDR(value: Liabilities): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Liabilities; + static fromXDR(input: Buffer, format?: 'raw'): Liabilities; - static fromXDR(input: string, format: "hex" | "base64"): Liabilities; + static fromXDR(input: string, format: 'hex' | 'base64'): Liabilities; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Signer { @@ -3098,9 +3153,9 @@ declare namespace xdr { weight(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Signer; @@ -3110,13 +3165,13 @@ declare namespace xdr { static toXDR(value: Signer): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Signer; + static fromXDR(input: Buffer, format?: 'raw'): Signer; - static fromXDR(input: string, format: "hex" | "base64"): Signer; + static fromXDR(input: string, format: 'hex' | 'base64'): Signer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV3 { @@ -3132,9 +3187,9 @@ declare namespace xdr { seqTime(value?: TimePoint): TimePoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV3; @@ -3144,16 +3199,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV3): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV3; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV3; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV3; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV2 { @@ -3174,9 +3229,9 @@ declare namespace xdr { ext(value?: AccountEntryExtensionV2Ext): AccountEntryExtensionV2Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV2; @@ -3186,16 +3241,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV1 { @@ -3208,9 +3263,9 @@ declare namespace xdr { ext(value?: AccountEntryExtensionV1Ext): AccountEntryExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV1; @@ -3220,16 +3275,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntry { @@ -3266,9 +3321,9 @@ declare namespace xdr { ext(value?: AccountEntryExt): AccountEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntry; @@ -3278,13 +3333,13 @@ declare namespace xdr { static toXDR(value: AccountEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntry; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntry; - static fromXDR(input: string, format: "hex" | "base64"): AccountEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExtensionV2 { @@ -3297,9 +3352,9 @@ declare namespace xdr { ext(value?: TrustLineEntryExtensionV2Ext): TrustLineEntryExtensionV2Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExtensionV2; @@ -3309,16 +3364,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryExtensionV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryV1 { @@ -3331,9 +3386,9 @@ declare namespace xdr { ext(value?: TrustLineEntryV1Ext): TrustLineEntryV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryV1; @@ -3343,13 +3398,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntryV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntry { @@ -3374,9 +3429,9 @@ declare namespace xdr { ext(value?: TrustLineEntryExt): TrustLineEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntry; @@ -3386,13 +3441,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntry; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntry; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OfferEntry { @@ -3423,9 +3478,9 @@ declare namespace xdr { ext(value?: OfferEntryExt): OfferEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OfferEntry; @@ -3435,13 +3490,13 @@ declare namespace xdr { static toXDR(value: OfferEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OfferEntry; + static fromXDR(input: Buffer, format?: 'raw'): OfferEntry; - static fromXDR(input: string, format: "hex" | "base64"): OfferEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DataEntry { @@ -3460,9 +3515,9 @@ declare namespace xdr { ext(value?: DataEntryExt): DataEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DataEntry; @@ -3472,13 +3527,13 @@ declare namespace xdr { static toXDR(value: DataEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DataEntry; + static fromXDR(input: Buffer, format?: 'raw'): DataEntry; - static fromXDR(input: string, format: "hex" | "base64"): DataEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): DataEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimantV0 { @@ -3491,9 +3546,9 @@ declare namespace xdr { predicate(value?: ClaimPredicate): ClaimPredicate; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimantV0; @@ -3503,13 +3558,13 @@ declare namespace xdr { static toXDR(value: ClaimantV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimantV0; + static fromXDR(input: Buffer, format?: 'raw'): ClaimantV0; - static fromXDR(input: string, format: "hex" | "base64"): ClaimantV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimantV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExtensionV1 { @@ -3524,9 +3579,9 @@ declare namespace xdr { flags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1; @@ -3538,17 +3593,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClaimableBalanceEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntry { @@ -3570,9 +3625,9 @@ declare namespace xdr { ext(value?: ClaimableBalanceEntryExt): ClaimableBalanceEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntry; @@ -3582,16 +3637,16 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntry; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolConstantProductParameters { @@ -3603,9 +3658,9 @@ declare namespace xdr { fee(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolConstantProductParameters; @@ -3620,17 +3675,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): LiquidityPoolConstantProductParameters; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolConstantProductParameters; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntryConstantProduct { @@ -3654,9 +3709,9 @@ declare namespace xdr { poolSharesTrustLineCount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntryConstantProduct; @@ -3668,17 +3723,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): LiquidityPoolEntryConstantProduct; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolEntryConstantProduct; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntry { @@ -3691,9 +3746,9 @@ declare namespace xdr { body(value?: LiquidityPoolEntryBody): LiquidityPoolEntryBody; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntry; @@ -3703,13 +3758,13 @@ declare namespace xdr { static toXDR(value: LiquidityPoolEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntry; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntry; - static fromXDR(input: string, format: "hex" | "base64"): LiquidityPoolEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): LiquidityPoolEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractDataEntry { @@ -3731,9 +3786,9 @@ declare namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractDataEntry; @@ -3743,13 +3798,13 @@ declare namespace xdr { static toXDR(value: ContractDataEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractDataEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractDataEntry; - static fromXDR(input: string, format: "hex" | "base64"): ContractDataEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractDataEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeCostInputs { @@ -3789,9 +3844,9 @@ declare namespace xdr { nDataSegmentBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeCostInputs; @@ -3801,16 +3856,16 @@ declare namespace xdr { static toXDR(value: ContractCodeCostInputs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeCostInputs; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeCostInputs; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeCostInputs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntryV1 { @@ -3823,9 +3878,9 @@ declare namespace xdr { costInputs(value?: ContractCodeCostInputs): ContractCodeCostInputs; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntryV1; @@ -3835,16 +3890,16 @@ declare namespace xdr { static toXDR(value: ContractCodeEntryV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryV1; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeEntryV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntry { @@ -3860,9 +3915,9 @@ declare namespace xdr { code(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntry; @@ -3872,13 +3927,13 @@ declare namespace xdr { static toXDR(value: ContractCodeEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntry; - static fromXDR(input: string, format: "hex" | "base64"): ContractCodeEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractCodeEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TtlEntry { @@ -3888,9 +3943,9 @@ declare namespace xdr { liveUntilLedgerSeq(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TtlEntry; @@ -3900,13 +3955,13 @@ declare namespace xdr { static toXDR(value: TtlEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TtlEntry; + static fromXDR(input: Buffer, format?: 'raw'): TtlEntry; - static fromXDR(input: string, format: "hex" | "base64"): TtlEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): TtlEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExtensionV1 { @@ -3919,9 +3974,9 @@ declare namespace xdr { ext(value?: LedgerEntryExtensionV1Ext): LedgerEntryExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExtensionV1; @@ -3931,16 +3986,16 @@ declare namespace xdr { static toXDR(value: LedgerEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntry { @@ -3956,9 +4011,9 @@ declare namespace xdr { ext(value?: LedgerEntryExt): LedgerEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntry; @@ -3968,13 +4023,13 @@ declare namespace xdr { static toXDR(value: LedgerEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntry; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntry; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyAccount { @@ -3982,9 +4037,9 @@ declare namespace xdr { accountId(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyAccount; @@ -3994,13 +4049,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyAccount): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyAccount; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyAccount; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyAccount; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyAccount; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyTrustLine { @@ -4010,9 +4065,9 @@ declare namespace xdr { asset(value?: TrustLineAsset): TrustLineAsset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyTrustLine; @@ -4022,13 +4077,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyTrustLine): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTrustLine; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTrustLine; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTrustLine; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTrustLine; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyOffer { @@ -4038,9 +4093,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyOffer; @@ -4050,13 +4105,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyOffer): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyOffer; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyOffer; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyOffer; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyOffer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyData { @@ -4069,9 +4124,9 @@ declare namespace xdr { dataName(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyData; @@ -4081,13 +4136,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyData; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyData; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyClaimableBalance { @@ -4095,9 +4150,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyClaimableBalance; @@ -4107,16 +4162,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyClaimableBalance): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyClaimableBalance; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyClaimableBalance; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyClaimableBalance; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyLiquidityPool { @@ -4124,9 +4179,9 @@ declare namespace xdr { liquidityPoolId(value?: PoolId): PoolId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyLiquidityPool; @@ -4136,16 +4191,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyLiquidityPool): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyLiquidityPool; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyLiquidityPool; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyLiquidityPool; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyContractData { @@ -4161,9 +4216,9 @@ declare namespace xdr { durability(value?: ContractDataDurability): ContractDataDurability; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyContractData; @@ -4173,16 +4228,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyContractData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractData; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyContractData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyContractCode { @@ -4190,9 +4245,9 @@ declare namespace xdr { hash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyContractCode; @@ -4202,16 +4257,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyContractCode): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractCode; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractCode; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyContractCode; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyConfigSetting { @@ -4219,9 +4274,9 @@ declare namespace xdr { configSettingId(value?: ConfigSettingId): ConfigSettingId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyConfigSetting; @@ -4231,16 +4286,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyConfigSetting): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyConfigSetting; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyConfigSetting; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyConfigSetting; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyTtl { @@ -4248,9 +4303,9 @@ declare namespace xdr { keyHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyTtl; @@ -4260,13 +4315,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyTtl): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTtl; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTtl; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTtl; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTtl; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketMetadata { @@ -4276,9 +4331,9 @@ declare namespace xdr { ext(value?: BucketMetadataExt): BucketMetadataExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketMetadata; @@ -4288,13 +4343,13 @@ declare namespace xdr { static toXDR(value: BucketMetadata): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketMetadata; + static fromXDR(input: Buffer, format?: 'raw'): BucketMetadata; - static fromXDR(input: string, format: "hex" | "base64"): BucketMetadata; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadata; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseValueSignature { @@ -4304,9 +4359,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseValueSignature; @@ -4316,16 +4371,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseValueSignature): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseValueSignature; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseValueSignature; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseValueSignature; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarValue { @@ -4344,9 +4399,9 @@ declare namespace xdr { ext(value?: StellarValueExt): StellarValueExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarValue; @@ -4356,13 +4411,13 @@ declare namespace xdr { static toXDR(value: StellarValue): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarValue; + static fromXDR(input: Buffer, format?: 'raw'): StellarValue; - static fromXDR(input: string, format: "hex" | "base64"): StellarValue; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarValue; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExtensionV1 { @@ -4372,9 +4427,9 @@ declare namespace xdr { ext(value?: LedgerHeaderExtensionV1Ext): LedgerHeaderExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExtensionV1; @@ -4384,16 +4439,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeader { @@ -4445,9 +4500,9 @@ declare namespace xdr { ext(value?: LedgerHeaderExt): LedgerHeaderExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeader; @@ -4457,13 +4512,13 @@ declare namespace xdr { static toXDR(value: LedgerHeader): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeader; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeader; - static fromXDR(input: string, format: "hex" | "base64"): LedgerHeader; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeader; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigUpgradeSetKey { @@ -4473,9 +4528,9 @@ declare namespace xdr { contentHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigUpgradeSetKey; @@ -4485,16 +4540,16 @@ declare namespace xdr { static toXDR(value: ConfigUpgradeSetKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSetKey; + static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSetKey; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigUpgradeSetKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigUpgradeSet { @@ -4502,9 +4557,9 @@ declare namespace xdr { updatedEntry(value?: ConfigSettingEntry[]): ConfigSettingEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigUpgradeSet; @@ -4514,13 +4569,13 @@ declare namespace xdr { static toXDR(value: ConfigUpgradeSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSet; + static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSet; - static fromXDR(input: string, format: "hex" | "base64"): ConfigUpgradeSet; + static fromXDR(input: string, format: 'hex' | 'base64'): ConfigUpgradeSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ParallelTxsComponent { @@ -4535,9 +4590,9 @@ declare namespace xdr { value?: TransactionEnvelope[][][], ): TransactionEnvelope[][][]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ParallelTxsComponent; @@ -4547,16 +4602,16 @@ declare namespace xdr { static toXDR(value: ParallelTxsComponent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ParallelTxsComponent; + static fromXDR(input: Buffer, format?: 'raw'): ParallelTxsComponent; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ParallelTxsComponent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TxSetComponentTxsMaybeDiscountedFee { @@ -4569,9 +4624,9 @@ declare namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TxSetComponentTxsMaybeDiscountedFee; @@ -4583,17 +4638,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TxSetComponentTxsMaybeDiscountedFee; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TxSetComponentTxsMaybeDiscountedFee; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSet { @@ -4606,9 +4661,9 @@ declare namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSet; @@ -4618,13 +4673,13 @@ declare namespace xdr { static toXDR(value: TransactionSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSet; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSet; - static fromXDR(input: string, format: "hex" | "base64"): TransactionSet; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSetV1 { @@ -4637,9 +4692,9 @@ declare namespace xdr { phases(value?: TransactionPhase[]): TransactionPhase[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSetV1; @@ -4649,13 +4704,13 @@ declare namespace xdr { static toXDR(value: TransactionSetV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSetV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSetV1; - static fromXDR(input: string, format: "hex" | "base64"): TransactionSetV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSetV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultPair { @@ -4668,9 +4723,9 @@ declare namespace xdr { result(value?: TransactionResult): TransactionResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultPair; @@ -4680,16 +4735,16 @@ declare namespace xdr { static toXDR(value: TransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultPair; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultPair; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultPair; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultSet { @@ -4697,9 +4752,9 @@ declare namespace xdr { results(value?: TransactionResultPair[]): TransactionResultPair[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultSet; @@ -4709,16 +4764,16 @@ declare namespace xdr { static toXDR(value: TransactionResultSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultSet; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultSet; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryEntry { @@ -4734,9 +4789,9 @@ declare namespace xdr { ext(value?: TransactionHistoryEntryExt): TransactionHistoryEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryEntry; @@ -4746,16 +4801,16 @@ declare namespace xdr { static toXDR(value: TransactionHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryResultEntry { @@ -4773,9 +4828,9 @@ declare namespace xdr { value?: TransactionHistoryResultEntryExt, ): TransactionHistoryResultEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryResultEntry; @@ -4787,17 +4842,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionHistoryResultEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryResultEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderHistoryEntry { @@ -4813,9 +4868,9 @@ declare namespace xdr { ext(value?: LedgerHeaderHistoryEntryExt): LedgerHeaderHistoryEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderHistoryEntry; @@ -4825,16 +4880,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerScpMessages { @@ -4844,9 +4899,9 @@ declare namespace xdr { messages(value?: ScpEnvelope[]): ScpEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerScpMessages; @@ -4856,13 +4911,13 @@ declare namespace xdr { static toXDR(value: LedgerScpMessages): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerScpMessages; + static fromXDR(input: Buffer, format?: 'raw'): LedgerScpMessages; - static fromXDR(input: string, format: "hex" | "base64"): LedgerScpMessages; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerScpMessages; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpHistoryEntryV0 { @@ -4875,9 +4930,9 @@ declare namespace xdr { ledgerMessages(value?: LedgerScpMessages): LedgerScpMessages; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpHistoryEntryV0; @@ -4887,13 +4942,13 @@ declare namespace xdr { static toXDR(value: ScpHistoryEntryV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntryV0; + static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntryV0; - static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntryV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntryV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationMeta { @@ -4901,9 +4956,9 @@ declare namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationMeta; @@ -4913,13 +4968,13 @@ declare namespace xdr { static toXDR(value: OperationMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationMeta; + static fromXDR(input: Buffer, format?: 'raw'): OperationMeta; - static fromXDR(input: string, format: "hex" | "base64"): OperationMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV1 { @@ -4932,9 +4987,9 @@ declare namespace xdr { operations(value?: OperationMeta[]): OperationMeta[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV1; @@ -4944,13 +4999,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV1; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV2 { @@ -4966,9 +5021,9 @@ declare namespace xdr { txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV2; @@ -4978,13 +5033,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEventV0 { @@ -4994,9 +5049,9 @@ declare namespace xdr { data(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEventV0; @@ -5006,13 +5061,13 @@ declare namespace xdr { static toXDR(value: ContractEventV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEventV0; + static fromXDR(input: Buffer, format?: 'raw'): ContractEventV0; - static fromXDR(input: string, format: "hex" | "base64"): ContractEventV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEvent { @@ -5031,9 +5086,9 @@ declare namespace xdr { body(value?: ContractEventBody): ContractEventBody; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEvent; @@ -5043,13 +5098,13 @@ declare namespace xdr { static toXDR(value: ContractEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEvent; + static fromXDR(input: Buffer, format?: 'raw'): ContractEvent; - static fromXDR(input: string, format: "hex" | "base64"): ContractEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DiagnosticEvent { @@ -5062,9 +5117,9 @@ declare namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DiagnosticEvent; @@ -5074,13 +5129,13 @@ declare namespace xdr { static toXDR(value: DiagnosticEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DiagnosticEvent; + static fromXDR(input: Buffer, format?: 'raw'): DiagnosticEvent; - static fromXDR(input: string, format: "hex" | "base64"): DiagnosticEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): DiagnosticEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaExtV1 { @@ -5099,9 +5154,9 @@ declare namespace xdr { rentFeeCharged(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaExtV1; @@ -5111,16 +5166,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExtV1; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExtV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaExtV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMeta { @@ -5139,9 +5194,9 @@ declare namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMeta; @@ -5151,16 +5206,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMeta; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMeta; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV3 { @@ -5184,9 +5239,9 @@ declare namespace xdr { value?: null | SorobanTransactionMeta, ): null | SorobanTransactionMeta; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV3; @@ -5196,13 +5251,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV3): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV3; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV3; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV3; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV3; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationMetaV2 { @@ -5218,9 +5273,9 @@ declare namespace xdr { events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationMetaV2; @@ -5230,13 +5285,13 @@ declare namespace xdr { static toXDR(value: OperationMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): OperationMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): OperationMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaV2 { @@ -5249,9 +5304,9 @@ declare namespace xdr { returnValue(value?: null | ScVal): null | ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaV2; @@ -5261,16 +5316,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionEvent { @@ -5283,9 +5338,9 @@ declare namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionEvent; @@ -5295,13 +5350,13 @@ declare namespace xdr { static toXDR(value: TransactionEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionEvent; + static fromXDR(input: Buffer, format?: 'raw'): TransactionEvent; - static fromXDR(input: string, format: "hex" | "base64"): TransactionEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV4 { @@ -5331,9 +5386,9 @@ declare namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV4; @@ -5343,13 +5398,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV4): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV4; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV4; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV4; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV4; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionSuccessPreImage { @@ -5359,9 +5414,9 @@ declare namespace xdr { events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionSuccessPreImage; @@ -5373,17 +5428,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): InvokeHostFunctionSuccessPreImage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionSuccessPreImage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultMeta { @@ -5399,9 +5454,9 @@ declare namespace xdr { txApplyProcessing(value?: TransactionMeta): TransactionMeta; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultMeta; @@ -5411,16 +5466,16 @@ declare namespace xdr { static toXDR(value: TransactionResultMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultMeta; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMeta; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultMetaV1 { @@ -5442,9 +5497,9 @@ declare namespace xdr { postTxApplyFeeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultMetaV1; @@ -5454,16 +5509,16 @@ declare namespace xdr { static toXDR(value: TransactionResultMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMetaV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UpgradeEntryMeta { @@ -5476,9 +5531,9 @@ declare namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UpgradeEntryMeta; @@ -5488,13 +5543,13 @@ declare namespace xdr { static toXDR(value: UpgradeEntryMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UpgradeEntryMeta; + static fromXDR(input: Buffer, format?: 'raw'): UpgradeEntryMeta; - static fromXDR(input: string, format: "hex" | "base64"): UpgradeEntryMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): UpgradeEntryMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV0 { @@ -5516,9 +5571,9 @@ declare namespace xdr { scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV0; @@ -5528,13 +5583,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV0; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV0; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV0; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaExtV1 { @@ -5544,9 +5599,9 @@ declare namespace xdr { sorobanFeeWrite1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaExtV1; @@ -5556,16 +5611,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExtV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExtV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseMetaExtV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV1 { @@ -5599,9 +5654,9 @@ declare namespace xdr { unused(value?: LedgerEntry[]): LedgerEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV1; @@ -5611,13 +5666,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV1; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV1; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV2 { @@ -5648,9 +5703,9 @@ declare namespace xdr { evictedKeys(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV2; @@ -5660,13 +5715,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Error { @@ -5676,9 +5731,9 @@ declare namespace xdr { msg(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Error; @@ -5688,13 +5743,13 @@ declare namespace xdr { static toXDR(value: Error): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Error; + static fromXDR(input: Buffer, format?: 'raw'): Error; - static fromXDR(input: string, format: "hex" | "base64"): Error; + static fromXDR(input: string, format: 'hex' | 'base64'): Error; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SendMore { @@ -5702,9 +5757,9 @@ declare namespace xdr { numMessages(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SendMore; @@ -5714,13 +5769,13 @@ declare namespace xdr { static toXDR(value: SendMore): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SendMore; + static fromXDR(input: Buffer, format?: 'raw'): SendMore; - static fromXDR(input: string, format: "hex" | "base64"): SendMore; + static fromXDR(input: string, format: 'hex' | 'base64'): SendMore; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SendMoreExtended { @@ -5730,9 +5785,9 @@ declare namespace xdr { numBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SendMoreExtended; @@ -5742,13 +5797,13 @@ declare namespace xdr { static toXDR(value: SendMoreExtended): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SendMoreExtended; + static fromXDR(input: Buffer, format?: 'raw'): SendMoreExtended; - static fromXDR(input: string, format: "hex" | "base64"): SendMoreExtended; + static fromXDR(input: string, format: 'hex' | 'base64'): SendMoreExtended; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthCert { @@ -5764,9 +5819,9 @@ declare namespace xdr { sig(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthCert; @@ -5776,13 +5831,13 @@ declare namespace xdr { static toXDR(value: AuthCert): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthCert; + static fromXDR(input: Buffer, format?: 'raw'): AuthCert; - static fromXDR(input: string, format: "hex" | "base64"): AuthCert; + static fromXDR(input: string, format: 'hex' | 'base64'): AuthCert; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Hello { @@ -5816,9 +5871,9 @@ declare namespace xdr { nonce(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Hello; @@ -5828,13 +5883,13 @@ declare namespace xdr { static toXDR(value: Hello): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Hello; + static fromXDR(input: Buffer, format?: 'raw'): Hello; - static fromXDR(input: string, format: "hex" | "base64"): Hello; + static fromXDR(input: string, format: 'hex' | 'base64'): Hello; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Auth { @@ -5842,9 +5897,9 @@ declare namespace xdr { flags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Auth; @@ -5854,13 +5909,13 @@ declare namespace xdr { static toXDR(value: Auth): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Auth; + static fromXDR(input: Buffer, format?: 'raw'): Auth; - static fromXDR(input: string, format: "hex" | "base64"): Auth; + static fromXDR(input: string, format: 'hex' | 'base64'): Auth; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerAddress { @@ -5876,9 +5931,9 @@ declare namespace xdr { numFailures(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerAddress; @@ -5888,13 +5943,13 @@ declare namespace xdr { static toXDR(value: PeerAddress): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerAddress; + static fromXDR(input: Buffer, format?: 'raw'): PeerAddress; - static fromXDR(input: string, format: "hex" | "base64"): PeerAddress; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DontHave { @@ -5904,9 +5959,9 @@ declare namespace xdr { reqHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DontHave; @@ -5916,13 +5971,13 @@ declare namespace xdr { static toXDR(value: DontHave): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DontHave; + static fromXDR(input: Buffer, format?: 'raw'): DontHave; - static fromXDR(input: string, format: "hex" | "base64"): DontHave; + static fromXDR(input: string, format: 'hex' | 'base64'): DontHave; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyStartCollectingMessage { @@ -5938,9 +5993,9 @@ declare namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyStartCollectingMessage; @@ -5955,17 +6010,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyStartCollectingMessage { @@ -5980,9 +6035,9 @@ declare namespace xdr { value?: TimeSlicedSurveyStartCollectingMessage, ): TimeSlicedSurveyStartCollectingMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyStartCollectingMessage; @@ -5999,17 +6054,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyStopCollectingMessage { @@ -6025,9 +6080,9 @@ declare namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyStopCollectingMessage; @@ -6042,17 +6097,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyStopCollectingMessage { @@ -6067,9 +6122,9 @@ declare namespace xdr { value?: TimeSlicedSurveyStopCollectingMessage, ): TimeSlicedSurveyStopCollectingMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyStopCollectingMessage; @@ -6084,17 +6139,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyRequestMessage { @@ -6116,9 +6171,9 @@ declare namespace xdr { commandType(value?: SurveyMessageCommandType): SurveyMessageCommandType; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyRequestMessage; @@ -6128,16 +6183,16 @@ declare namespace xdr { static toXDR(value: SurveyRequestMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyRequestMessage; + static fromXDR(input: Buffer, format?: 'raw'): SurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyRequestMessage { @@ -6156,9 +6211,9 @@ declare namespace xdr { outboundPeersIndex(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyRequestMessage; @@ -6170,17 +6225,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyRequestMessage { @@ -6195,9 +6250,9 @@ declare namespace xdr { value?: TimeSlicedSurveyRequestMessage, ): TimeSlicedSurveyRequestMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyRequestMessage; @@ -6209,17 +6264,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyResponseMessage { @@ -6241,9 +6296,9 @@ declare namespace xdr { encryptedBody(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyResponseMessage; @@ -6253,16 +6308,16 @@ declare namespace xdr { static toXDR(value: SurveyResponseMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyResponseMessage; + static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyResponseMessage { @@ -6272,9 +6327,9 @@ declare namespace xdr { nonce(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyResponseMessage; @@ -6286,17 +6341,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyResponseMessage { @@ -6311,9 +6366,9 @@ declare namespace xdr { value?: TimeSlicedSurveyResponseMessage, ): TimeSlicedSurveyResponseMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyResponseMessage; @@ -6328,17 +6383,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerStats { @@ -6390,9 +6445,9 @@ declare namespace xdr { duplicateFetchMessageRecv(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerStats; @@ -6402,13 +6457,13 @@ declare namespace xdr { static toXDR(value: PeerStats): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerStats; + static fromXDR(input: Buffer, format?: 'raw'): PeerStats; - static fromXDR(input: string, format: "hex" | "base64"): PeerStats; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerStats; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedNodeData { @@ -6445,9 +6500,9 @@ declare namespace xdr { maxOutboundPeerCount(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedNodeData; @@ -6457,13 +6512,13 @@ declare namespace xdr { static toXDR(value: TimeSlicedNodeData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeSlicedNodeData; + static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedNodeData; - static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedNodeData; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedNodeData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedPeerData { @@ -6473,9 +6528,9 @@ declare namespace xdr { averageLatencyMs(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedPeerData; @@ -6485,13 +6540,13 @@ declare namespace xdr { static toXDR(value: TimeSlicedPeerData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeSlicedPeerData; + static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedPeerData; - static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedPeerData; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedPeerData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TopologyResponseBodyV2 { @@ -6507,9 +6562,9 @@ declare namespace xdr { nodeData(value?: TimeSlicedNodeData): TimeSlicedNodeData; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TopologyResponseBodyV2; @@ -6519,16 +6574,16 @@ declare namespace xdr { static toXDR(value: TopologyResponseBodyV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TopologyResponseBodyV2; + static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TopologyResponseBodyV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FloodAdvert { @@ -6536,9 +6591,9 @@ declare namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FloodAdvert; @@ -6548,13 +6603,13 @@ declare namespace xdr { static toXDR(value: FloodAdvert): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FloodAdvert; + static fromXDR(input: Buffer, format?: 'raw'): FloodAdvert; - static fromXDR(input: string, format: "hex" | "base64"): FloodAdvert; + static fromXDR(input: string, format: 'hex' | 'base64'): FloodAdvert; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FloodDemand { @@ -6562,9 +6617,9 @@ declare namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FloodDemand; @@ -6574,13 +6629,13 @@ declare namespace xdr { static toXDR(value: FloodDemand): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FloodDemand; + static fromXDR(input: Buffer, format?: 'raw'): FloodDemand; - static fromXDR(input: string, format: "hex" | "base64"): FloodDemand; + static fromXDR(input: string, format: 'hex' | 'base64'): FloodDemand; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthenticatedMessageV0 { @@ -6596,9 +6651,9 @@ declare namespace xdr { mac(value?: HmacSha256Mac): HmacSha256Mac; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthenticatedMessageV0; @@ -6608,16 +6663,16 @@ declare namespace xdr { static toXDR(value: AuthenticatedMessageV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessageV0; + static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessageV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AuthenticatedMessageV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedAccountMed25519 { @@ -6627,9 +6682,9 @@ declare namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedAccountMed25519; @@ -6639,16 +6694,16 @@ declare namespace xdr { static toXDR(value: MuxedAccountMed25519): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedAccountMed25519; + static fromXDR(input: Buffer, format?: 'raw'): MuxedAccountMed25519; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): MuxedAccountMed25519; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DecoratedSignature { @@ -6658,9 +6713,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DecoratedSignature; @@ -6670,13 +6725,13 @@ declare namespace xdr { static toXDR(value: DecoratedSignature): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DecoratedSignature; + static fromXDR(input: Buffer, format?: 'raw'): DecoratedSignature; - static fromXDR(input: string, format: "hex" | "base64"): DecoratedSignature; + static fromXDR(input: string, format: 'hex' | 'base64'): DecoratedSignature; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateAccountOp { @@ -6686,9 +6741,9 @@ declare namespace xdr { startingBalance(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateAccountOp; @@ -6698,13 +6753,13 @@ declare namespace xdr { static toXDR(value: CreateAccountOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateAccountOp; + static fromXDR(input: Buffer, format?: 'raw'): CreateAccountOp; - static fromXDR(input: string, format: "hex" | "base64"): CreateAccountOp; + static fromXDR(input: string, format: 'hex' | 'base64'): CreateAccountOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PaymentOp { @@ -6720,9 +6775,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PaymentOp; @@ -6732,13 +6787,13 @@ declare namespace xdr { static toXDR(value: PaymentOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PaymentOp; + static fromXDR(input: Buffer, format?: 'raw'): PaymentOp; - static fromXDR(input: string, format: "hex" | "base64"): PaymentOp; + static fromXDR(input: string, format: 'hex' | 'base64'): PaymentOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveOp { @@ -6763,9 +6818,9 @@ declare namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveOp; @@ -6775,16 +6830,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictReceiveOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictReceiveOp; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictReceiveOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendOp { @@ -6809,9 +6864,9 @@ declare namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendOp; @@ -6821,16 +6876,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictSendOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendOp; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageSellOfferOp { @@ -6852,9 +6907,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageSellOfferOp; @@ -6864,13 +6919,13 @@ declare namespace xdr { static toXDR(value: ManageSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageSellOfferOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageSellOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageBuyOfferOp { @@ -6892,9 +6947,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageBuyOfferOp; @@ -6904,13 +6959,13 @@ declare namespace xdr { static toXDR(value: ManageBuyOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageBuyOfferOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageBuyOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreatePassiveSellOfferOp { @@ -6929,9 +6984,9 @@ declare namespace xdr { price(value?: Price): Price; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreatePassiveSellOfferOp; @@ -6941,16 +6996,16 @@ declare namespace xdr { static toXDR(value: CreatePassiveSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreatePassiveSellOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): CreatePassiveSellOfferOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreatePassiveSellOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetOptionsOp { @@ -6984,9 +7039,9 @@ declare namespace xdr { signer(value?: null | Signer): null | Signer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetOptionsOp; @@ -6996,13 +7051,13 @@ declare namespace xdr { static toXDR(value: SetOptionsOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetOptionsOp; + static fromXDR(input: Buffer, format?: 'raw'): SetOptionsOp; - static fromXDR(input: string, format: "hex" | "base64"): SetOptionsOp; + static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustOp { @@ -7012,9 +7067,9 @@ declare namespace xdr { limit(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustOp; @@ -7024,13 +7079,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustOp; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustOp; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AllowTrustOp { @@ -7046,9 +7101,9 @@ declare namespace xdr { authorize(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AllowTrustOp; @@ -7058,13 +7113,13 @@ declare namespace xdr { static toXDR(value: AllowTrustOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AllowTrustOp; + static fromXDR(input: Buffer, format?: 'raw'): AllowTrustOp; - static fromXDR(input: string, format: "hex" | "base64"): AllowTrustOp; + static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageDataOp { @@ -7077,9 +7132,9 @@ declare namespace xdr { dataValue(value?: null | Buffer): null | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageDataOp; @@ -7089,13 +7144,13 @@ declare namespace xdr { static toXDR(value: ManageDataOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageDataOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageDataOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageDataOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BumpSequenceOp { @@ -7103,9 +7158,9 @@ declare namespace xdr { bumpTo(value?: SequenceNumber): SequenceNumber; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BumpSequenceOp; @@ -7115,13 +7170,13 @@ declare namespace xdr { static toXDR(value: BumpSequenceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BumpSequenceOp; + static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceOp; - static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceOp; + static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateClaimableBalanceOp { @@ -7137,9 +7192,9 @@ declare namespace xdr { claimants(value?: Claimant[]): Claimant[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateClaimableBalanceOp; @@ -7149,16 +7204,16 @@ declare namespace xdr { static toXDR(value: CreateClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimClaimableBalanceOp { @@ -7166,9 +7221,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimClaimableBalanceOp; @@ -7178,16 +7233,16 @@ declare namespace xdr { static toXDR(value: ClaimClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BeginSponsoringFutureReservesOp { @@ -7195,9 +7250,9 @@ declare namespace xdr { sponsoredId(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BeginSponsoringFutureReservesOp; @@ -7209,17 +7264,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): BeginSponsoringFutureReservesOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): BeginSponsoringFutureReservesOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipOpSigner { @@ -7229,9 +7284,9 @@ declare namespace xdr { signerKey(value?: SignerKey): SignerKey; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipOpSigner; @@ -7241,16 +7296,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipOpSigner): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOpSigner; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOpSigner; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipOpSigner; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackOp { @@ -7266,9 +7321,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackOp; @@ -7278,13 +7333,13 @@ declare namespace xdr { static toXDR(value: ClawbackOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackOp; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackOp; - static fromXDR(input: string, format: "hex" | "base64"): ClawbackOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackClaimableBalanceOp { @@ -7292,9 +7347,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackClaimableBalanceOp; @@ -7304,16 +7359,16 @@ declare namespace xdr { static toXDR(value: ClawbackClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClawbackClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetTrustLineFlagsOp { @@ -7332,9 +7387,9 @@ declare namespace xdr { setFlags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetTrustLineFlagsOp; @@ -7344,16 +7399,16 @@ declare namespace xdr { static toXDR(value: SetTrustLineFlagsOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsOp; + static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SetTrustLineFlagsOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolDepositOp { @@ -7375,9 +7430,9 @@ declare namespace xdr { maxPrice(value?: Price): Price; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolDepositOp; @@ -7387,16 +7442,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolDepositOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositOp; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolDepositOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolWithdrawOp { @@ -7415,9 +7470,9 @@ declare namespace xdr { minAmountB(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolWithdrawOp; @@ -7427,16 +7482,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolWithdrawOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawOp; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolWithdrawOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractIdPreimageFromAddress { @@ -7446,9 +7501,9 @@ declare namespace xdr { salt(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractIdPreimageFromAddress; @@ -7460,17 +7515,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ContractIdPreimageFromAddress; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractIdPreimageFromAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateContractArgs { @@ -7483,9 +7538,9 @@ declare namespace xdr { executable(value?: ContractExecutable): ContractExecutable; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateContractArgs; @@ -7495,13 +7550,13 @@ declare namespace xdr { static toXDR(value: CreateContractArgs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateContractArgs; + static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgs; - static fromXDR(input: string, format: "hex" | "base64"): CreateContractArgs; + static fromXDR(input: string, format: 'hex' | 'base64'): CreateContractArgs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateContractArgsV2 { @@ -7517,9 +7572,9 @@ declare namespace xdr { constructorArgs(value?: ScVal[]): ScVal[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateContractArgsV2; @@ -7529,16 +7584,16 @@ declare namespace xdr { static toXDR(value: CreateContractArgsV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateContractArgsV2; + static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgsV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateContractArgsV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeContractArgs { @@ -7554,9 +7609,9 @@ declare namespace xdr { args(value?: ScVal[]): ScVal[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeContractArgs; @@ -7566,13 +7621,13 @@ declare namespace xdr { static toXDR(value: InvokeContractArgs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeContractArgs; + static fromXDR(input: Buffer, format?: 'raw'): InvokeContractArgs; - static fromXDR(input: string, format: "hex" | "base64"): InvokeContractArgs; + static fromXDR(input: string, format: 'hex' | 'base64'): InvokeContractArgs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizedInvocation { @@ -7587,9 +7642,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation[], ): SorobanAuthorizedInvocation[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizedInvocation; @@ -7599,16 +7654,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizedInvocation): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedInvocation; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedInvocation; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizedInvocation; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAddressCredentials { @@ -7627,9 +7682,9 @@ declare namespace xdr { signature(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAddressCredentials; @@ -7639,16 +7694,16 @@ declare namespace xdr { static toXDR(value: SorobanAddressCredentials): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAddressCredentials; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAddressCredentials; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAddressCredentials; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizationEntry { @@ -7663,9 +7718,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizationEntry; @@ -7675,16 +7730,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizationEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizationEntry; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizationEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizationEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionOp { @@ -7697,9 +7752,9 @@ declare namespace xdr { auth(value?: SorobanAuthorizationEntry[]): SorobanAuthorizationEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionOp; @@ -7709,16 +7764,16 @@ declare namespace xdr { static toXDR(value: InvokeHostFunctionOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionOp; + static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtendFootprintTtlOp { @@ -7728,9 +7783,9 @@ declare namespace xdr { extendTo(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtendFootprintTtlOp; @@ -7740,16 +7795,16 @@ declare namespace xdr { static toXDR(value: ExtendFootprintTtlOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlOp; + static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ExtendFootprintTtlOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RestoreFootprintOp { @@ -7757,9 +7812,9 @@ declare namespace xdr { ext(value?: ExtensionPoint): ExtensionPoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RestoreFootprintOp; @@ -7769,44 +7824,13 @@ declare namespace xdr { static toXDR(value: RestoreFootprintOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintOp; - - static fromXDR(input: string, format: "hex" | "base64"): RestoreFootprintOp; - - static validateXDR(input: Buffer, format?: "raw"): boolean; - - static validateXDR(input: string, format: "hex" | "base64"): boolean; - } - - class Operation { - constructor(attributes: { - sourceAccount: null | MuxedAccount; - body: OperationBody; - }); - - sourceAccount(value?: null | MuxedAccount): null | MuxedAccount; - - body(value?: OperationBody): OperationBody; - - toXDR(format?: "raw"): Buffer; - - toXDR(format: "hex" | "base64"): string; - - static read(io: Buffer): Operation; - - static write(value: Operation, io: Buffer): void; - - static isValid(value: Operation): boolean; - - static toXDR(value: Operation): Buffer; - - static fromXDR(input: Buffer, format?: "raw"): Operation; + static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintOp; - static fromXDR(input: string, format: "hex" | "base64"): Operation; + static fromXDR(input: string, format: 'hex' | 'base64'): RestoreFootprintOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageOperationId { @@ -7822,9 +7846,9 @@ declare namespace xdr { opNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageOperationId; @@ -7834,16 +7858,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageOperationId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageOperationId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageOperationId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageOperationId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageRevokeId { @@ -7865,9 +7889,9 @@ declare namespace xdr { asset(value?: Asset): Asset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageRevokeId; @@ -7877,16 +7901,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageRevokeId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageRevokeId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageRevokeId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageRevokeId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageContractId { @@ -7899,9 +7923,9 @@ declare namespace xdr { contractIdPreimage(value?: ContractIdPreimage): ContractIdPreimage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageContractId; @@ -7911,16 +7935,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageContractId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageContractId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageContractId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageContractId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageSorobanAuthorization { @@ -7941,9 +7965,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageSorobanAuthorization; @@ -7955,17 +7979,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): HashIdPreimageSorobanAuthorization; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageSorobanAuthorization; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeBounds { @@ -7975,9 +7999,9 @@ declare namespace xdr { maxTime(value?: TimePoint): TimePoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeBounds; @@ -7987,13 +8011,13 @@ declare namespace xdr { static toXDR(value: TimeBounds): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeBounds; + static fromXDR(input: Buffer, format?: 'raw'): TimeBounds; - static fromXDR(input: string, format: "hex" | "base64"): TimeBounds; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeBounds; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerBounds { @@ -8003,9 +8027,9 @@ declare namespace xdr { maxLedger(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerBounds; @@ -8015,13 +8039,13 @@ declare namespace xdr { static toXDR(value: LedgerBounds): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerBounds; + static fromXDR(input: Buffer, format?: 'raw'): LedgerBounds; - static fromXDR(input: string, format: "hex" | "base64"): LedgerBounds; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerBounds; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PreconditionsV2 { @@ -8046,9 +8070,9 @@ declare namespace xdr { extraSigners(value?: SignerKey[]): SignerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PreconditionsV2; @@ -8058,13 +8082,13 @@ declare namespace xdr { static toXDR(value: PreconditionsV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PreconditionsV2; + static fromXDR(input: Buffer, format?: 'raw'): PreconditionsV2; - static fromXDR(input: string, format: "hex" | "base64"): PreconditionsV2; + static fromXDR(input: string, format: 'hex' | 'base64'): PreconditionsV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerFootprint { @@ -8074,9 +8098,9 @@ declare namespace xdr { readWrite(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerFootprint; @@ -8086,13 +8110,13 @@ declare namespace xdr { static toXDR(value: LedgerFootprint): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerFootprint; + static fromXDR(input: Buffer, format?: 'raw'): LedgerFootprint; - static fromXDR(input: string, format: "hex" | "base64"): LedgerFootprint; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerFootprint; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanResources { @@ -8111,9 +8135,9 @@ declare namespace xdr { writeBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanResources; @@ -8123,13 +8147,13 @@ declare namespace xdr { static toXDR(value: SorobanResources): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanResources; + static fromXDR(input: Buffer, format?: 'raw'): SorobanResources; - static fromXDR(input: string, format: "hex" | "base64"): SorobanResources; + static fromXDR(input: string, format: 'hex' | 'base64'): SorobanResources; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanResourcesExtV0 { @@ -8137,9 +8161,9 @@ declare namespace xdr { archivedSorobanEntries(value?: number[]): number[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanResourcesExtV0; @@ -8149,16 +8173,16 @@ declare namespace xdr { static toXDR(value: SorobanResourcesExtV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanResourcesExtV0; + static fromXDR(input: Buffer, format?: 'raw'): SorobanResourcesExtV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanResourcesExtV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionData { @@ -8174,9 +8198,9 @@ declare namespace xdr { resourceFee(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionData; @@ -8186,16 +8210,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionData; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionData; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0 { @@ -8223,9 +8247,9 @@ declare namespace xdr { ext(value?: TransactionV0Ext): TransactionV0Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0; @@ -8235,13 +8259,13 @@ declare namespace xdr { static toXDR(value: TransactionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0; - static fromXDR(input: string, format: "hex" | "base64"): TransactionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0Envelope { @@ -8254,9 +8278,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0Envelope; @@ -8266,16 +8290,16 @@ declare namespace xdr { static toXDR(value: TransactionV0Envelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0Envelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Envelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionV0Envelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Transaction { @@ -8303,9 +8327,9 @@ declare namespace xdr { ext(value?: TransactionExt): TransactionExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Transaction; @@ -8315,13 +8339,13 @@ declare namespace xdr { static toXDR(value: Transaction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Transaction; + static fromXDR(input: Buffer, format?: 'raw'): Transaction; - static fromXDR(input: string, format: "hex" | "base64"): Transaction; + static fromXDR(input: string, format: 'hex' | 'base64'): Transaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV1Envelope { @@ -8334,9 +8358,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV1Envelope; @@ -8346,16 +8370,16 @@ declare namespace xdr { static toXDR(value: TransactionV1Envelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV1Envelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV1Envelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionV1Envelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransaction { @@ -8374,9 +8398,9 @@ declare namespace xdr { ext(value?: FeeBumpTransactionExt): FeeBumpTransactionExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransaction; @@ -8386,13 +8410,13 @@ declare namespace xdr { static toXDR(value: FeeBumpTransaction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransaction; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransaction; - static fromXDR(input: string, format: "hex" | "base64"): FeeBumpTransaction; + static fromXDR(input: string, format: 'hex' | 'base64'): FeeBumpTransaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionEnvelope { @@ -8405,9 +8429,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionEnvelope; @@ -8417,16 +8441,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionEnvelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSignaturePayload { @@ -8441,9 +8465,9 @@ declare namespace xdr { value?: TransactionSignaturePayloadTaggedTransaction, ): TransactionSignaturePayloadTaggedTransaction; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSignaturePayload; @@ -8453,16 +8477,16 @@ declare namespace xdr { static toXDR(value: TransactionSignaturePayload): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSignaturePayload; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSignaturePayload; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionSignaturePayload; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimOfferAtomV0 { @@ -8487,9 +8511,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimOfferAtomV0; @@ -8499,13 +8523,13 @@ declare namespace xdr { static toXDR(value: ClaimOfferAtomV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtomV0; + static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtomV0; - static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtomV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtomV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimOfferAtom { @@ -8530,9 +8554,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimOfferAtom; @@ -8542,13 +8566,13 @@ declare namespace xdr { static toXDR(value: ClaimOfferAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimLiquidityAtom { @@ -8570,9 +8594,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimLiquidityAtom; @@ -8582,13 +8606,13 @@ declare namespace xdr { static toXDR(value: ClaimLiquidityAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimLiquidityAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimLiquidityAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimLiquidityAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimLiquidityAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SimplePaymentResult { @@ -8604,9 +8628,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SimplePaymentResult; @@ -8616,16 +8640,16 @@ declare namespace xdr { static toXDR(value: SimplePaymentResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SimplePaymentResult; + static fromXDR(input: Buffer, format?: 'raw'): SimplePaymentResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SimplePaymentResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveResultSuccess { @@ -8635,9 +8659,9 @@ declare namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveResultSuccess; @@ -8652,17 +8676,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictReceiveResultSuccess; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveResultSuccess; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendResultSuccess { @@ -8672,9 +8696,9 @@ declare namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendResultSuccess; @@ -8686,17 +8710,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictSendResultSuccess; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendResultSuccess; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageOfferSuccessResult { @@ -8709,9 +8733,9 @@ declare namespace xdr { offer(value?: ManageOfferSuccessResultOffer): ManageOfferSuccessResultOffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageOfferSuccessResult; @@ -8721,16 +8745,16 @@ declare namespace xdr { static toXDR(value: ManageOfferSuccessResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageOfferSuccessResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageOfferSuccessResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageOfferSuccessResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InflationPayout { @@ -8740,9 +8764,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InflationPayout; @@ -8752,13 +8776,13 @@ declare namespace xdr { static toXDR(value: InflationPayout): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InflationPayout; + static fromXDR(input: Buffer, format?: 'raw'): InflationPayout; - static fromXDR(input: string, format: "hex" | "base64"): InflationPayout; + static fromXDR(input: string, format: 'hex' | 'base64'): InflationPayout; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResult { @@ -8774,9 +8798,9 @@ declare namespace xdr { ext(value?: InnerTransactionResultExt): InnerTransactionResultExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResult; @@ -8786,16 +8810,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResult; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultPair { @@ -8808,9 +8832,9 @@ declare namespace xdr { result(value?: InnerTransactionResult): InnerTransactionResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultPair; @@ -8820,16 +8844,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultPair; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultPair; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultPair; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResult { @@ -8845,9 +8869,9 @@ declare namespace xdr { ext(value?: TransactionResultExt): TransactionResultExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResult; @@ -8857,13 +8881,13 @@ declare namespace xdr { static toXDR(value: TransactionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResult; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResult; - static fromXDR(input: string, format: "hex" | "base64"): TransactionResult; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignerKeyEd25519SignedPayload { @@ -8873,9 +8897,9 @@ declare namespace xdr { payload(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignerKeyEd25519SignedPayload; @@ -8887,17 +8911,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignerKeyEd25519SignedPayload; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignerKeyEd25519SignedPayload; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Curve25519Secret { @@ -8905,9 +8929,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Curve25519Secret; @@ -8917,13 +8941,13 @@ declare namespace xdr { static toXDR(value: Curve25519Secret): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Curve25519Secret; + static fromXDR(input: Buffer, format?: 'raw'): Curve25519Secret; - static fromXDR(input: string, format: "hex" | "base64"): Curve25519Secret; + static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Secret; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Curve25519Public { @@ -8931,9 +8955,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Curve25519Public; @@ -8943,13 +8967,13 @@ declare namespace xdr { static toXDR(value: Curve25519Public): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Curve25519Public; + static fromXDR(input: Buffer, format?: 'raw'): Curve25519Public; - static fromXDR(input: string, format: "hex" | "base64"): Curve25519Public; + static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Public; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HmacSha256Key { @@ -8957,9 +8981,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HmacSha256Key; @@ -8969,13 +8993,13 @@ declare namespace xdr { static toXDR(value: HmacSha256Key): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HmacSha256Key; + static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Key; - static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Key; + static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Key; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HmacSha256Mac { @@ -8983,9 +9007,9 @@ declare namespace xdr { mac(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HmacSha256Mac; @@ -8995,13 +9019,13 @@ declare namespace xdr { static toXDR(value: HmacSha256Mac): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HmacSha256Mac; + static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Mac; - static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Mac; + static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Mac; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ShortHashSeed { @@ -9009,9 +9033,9 @@ declare namespace xdr { seed(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ShortHashSeed; @@ -9021,13 +9045,13 @@ declare namespace xdr { static toXDR(value: ShortHashSeed): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ShortHashSeed; + static fromXDR(input: Buffer, format?: 'raw'): ShortHashSeed; - static fromXDR(input: string, format: "hex" | "base64"): ShortHashSeed; + static fromXDR(input: string, format: 'hex' | 'base64'): ShortHashSeed; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SerializedBinaryFuseFilter { @@ -9061,9 +9085,9 @@ declare namespace xdr { fingerprints(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SerializedBinaryFuseFilter; @@ -9073,16 +9097,16 @@ declare namespace xdr { static toXDR(value: SerializedBinaryFuseFilter): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SerializedBinaryFuseFilter; + static fromXDR(input: Buffer, format?: 'raw'): SerializedBinaryFuseFilter; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SerializedBinaryFuseFilter; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UInt128Parts { @@ -9092,9 +9116,9 @@ declare namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UInt128Parts; @@ -9104,13 +9128,13 @@ declare namespace xdr { static toXDR(value: UInt128Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UInt128Parts; + static fromXDR(input: Buffer, format?: 'raw'): UInt128Parts; - static fromXDR(input: string, format: "hex" | "base64"): UInt128Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): UInt128Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Int128Parts { @@ -9120,9 +9144,9 @@ declare namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Int128Parts; @@ -9132,13 +9156,13 @@ declare namespace xdr { static toXDR(value: Int128Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Int128Parts; + static fromXDR(input: Buffer, format?: 'raw'): Int128Parts; - static fromXDR(input: string, format: "hex" | "base64"): Int128Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): Int128Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UInt256Parts { @@ -9157,9 +9181,9 @@ declare namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UInt256Parts; @@ -9169,13 +9193,13 @@ declare namespace xdr { static toXDR(value: UInt256Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UInt256Parts; + static fromXDR(input: Buffer, format?: 'raw'): UInt256Parts; - static fromXDR(input: string, format: "hex" | "base64"): UInt256Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): UInt256Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Int256Parts { @@ -9194,9 +9218,9 @@ declare namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Int256Parts; @@ -9206,13 +9230,13 @@ declare namespace xdr { static toXDR(value: Int256Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Int256Parts; + static fromXDR(input: Buffer, format?: 'raw'): Int256Parts; - static fromXDR(input: string, format: "hex" | "base64"): Int256Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): Int256Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedEd25519Account { @@ -9222,9 +9246,9 @@ declare namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedEd25519Account; @@ -9234,16 +9258,16 @@ declare namespace xdr { static toXDR(value: MuxedEd25519Account): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedEd25519Account; + static fromXDR(input: Buffer, format?: 'raw'): MuxedEd25519Account; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): MuxedEd25519Account; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScNonceKey { @@ -9251,9 +9275,9 @@ declare namespace xdr { nonce(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScNonceKey; @@ -9263,13 +9287,13 @@ declare namespace xdr { static toXDR(value: ScNonceKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScNonceKey; + static fromXDR(input: Buffer, format?: 'raw'): ScNonceKey; - static fromXDR(input: string, format: "hex" | "base64"): ScNonceKey; + static fromXDR(input: string, format: 'hex' | 'base64'): ScNonceKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScContractInstance { @@ -9282,9 +9306,9 @@ declare namespace xdr { storage(value?: null | ScMapEntry[]): null | ScMapEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScContractInstance; @@ -9294,13 +9318,13 @@ declare namespace xdr { static toXDR(value: ScContractInstance): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScContractInstance; + static fromXDR(input: Buffer, format?: 'raw'): ScContractInstance; - static fromXDR(input: string, format: "hex" | "base64"): ScContractInstance; + static fromXDR(input: string, format: 'hex' | 'base64'): ScContractInstance; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMapEntry { @@ -9310,9 +9334,9 @@ declare namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMapEntry; @@ -9322,13 +9346,13 @@ declare namespace xdr { static toXDR(value: ScMapEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMapEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScMapEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScMapEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMapEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScEnvMetaEntryInterfaceVersion { @@ -9338,9 +9362,9 @@ declare namespace xdr { preRelease(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScEnvMetaEntryInterfaceVersion; @@ -9352,17 +9376,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ScEnvMetaEntryInterfaceVersion; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScEnvMetaEntryInterfaceVersion; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMetaV0 { @@ -9372,9 +9396,9 @@ declare namespace xdr { val(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMetaV0; @@ -9384,13 +9408,13 @@ declare namespace xdr { static toXDR(value: ScMetaV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMetaV0; + static fromXDR(input: Buffer, format?: 'raw'): ScMetaV0; - static fromXDR(input: string, format: "hex" | "base64"): ScMetaV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeOption { @@ -9398,9 +9422,9 @@ declare namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeOption; @@ -9410,13 +9434,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeOption): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeOption; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeOption; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeOption; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeOption; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeResult { @@ -9429,9 +9453,9 @@ declare namespace xdr { errorType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeResult; @@ -9441,13 +9465,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeResult; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeResult; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeVec { @@ -9455,9 +9479,9 @@ declare namespace xdr { elementType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeVec; @@ -9467,13 +9491,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeVec): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeVec; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeVec; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeVec; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeVec; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeMap { @@ -9486,9 +9510,9 @@ declare namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeMap; @@ -9498,13 +9522,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeMap): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeMap; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeMap; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeMap; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeMap; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeTuple { @@ -9512,9 +9536,9 @@ declare namespace xdr { valueTypes(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeTuple; @@ -9524,13 +9548,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeTuple): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeTuple; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeTuple; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeTuple; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeTuple; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeBytesN { @@ -9538,9 +9562,9 @@ declare namespace xdr { n(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeBytesN; @@ -9550,13 +9574,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeBytesN): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeBytesN; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeBytesN; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeBytesN; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeBytesN; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeUdt { @@ -9564,9 +9588,9 @@ declare namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeUdt; @@ -9576,13 +9600,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeUdt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeUdt; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeUdt; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeUdt; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeUdt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtStructFieldV0 { @@ -9598,9 +9622,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtStructFieldV0; @@ -9610,16 +9634,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtStructFieldV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructFieldV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructFieldV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtStructFieldV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtStructV0 { @@ -9638,9 +9662,9 @@ declare namespace xdr { fields(value?: ScSpecUdtStructFieldV0[]): ScSpecUdtStructFieldV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtStructV0; @@ -9650,13 +9674,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtStructV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtStructV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtStructV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseVoidV0 { @@ -9666,9 +9690,9 @@ declare namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseVoidV0; @@ -9678,16 +9702,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseVoidV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseVoidV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseVoidV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseVoidV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseTupleV0 { @@ -9703,9 +9727,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseTupleV0; @@ -9715,16 +9739,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseTupleV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseTupleV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseTupleV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseTupleV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionV0 { @@ -9743,9 +9767,9 @@ declare namespace xdr { cases(value?: ScSpecUdtUnionCaseV0[]): ScSpecUdtUnionCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionV0; @@ -9755,13 +9779,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtUnionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtUnionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtEnumCaseV0 { @@ -9777,9 +9801,9 @@ declare namespace xdr { value(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtEnumCaseV0; @@ -9789,16 +9813,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtEnumCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtEnumV0 { @@ -9817,9 +9841,9 @@ declare namespace xdr { cases(value?: ScSpecUdtEnumCaseV0[]): ScSpecUdtEnumCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtEnumV0; @@ -9829,13 +9853,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtEnumV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtEnumV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtEnumV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtErrorEnumCaseV0 { @@ -9851,9 +9875,9 @@ declare namespace xdr { value(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtErrorEnumCaseV0; @@ -9863,16 +9887,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtErrorEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtErrorEnumCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtErrorEnumV0 { @@ -9891,9 +9915,9 @@ declare namespace xdr { cases(value?: ScSpecUdtErrorEnumCaseV0[]): ScSpecUdtErrorEnumCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtErrorEnumV0; @@ -9903,16 +9927,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtErrorEnumV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtErrorEnumV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecFunctionInputV0 { @@ -9928,9 +9952,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecFunctionInputV0; @@ -9940,16 +9964,16 @@ declare namespace xdr { static toXDR(value: ScSpecFunctionInputV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionInputV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionInputV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecFunctionInputV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecFunctionV0 { @@ -9968,9 +9992,9 @@ declare namespace xdr { outputs(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecFunctionV0; @@ -9980,13 +10004,13 @@ declare namespace xdr { static toXDR(value: ScSpecFunctionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecFunctionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecFunctionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEventParamV0 { @@ -10005,9 +10029,9 @@ declare namespace xdr { location(value?: ScSpecEventParamLocationV0): ScSpecEventParamLocationV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEventParamV0; @@ -10017,13 +10041,13 @@ declare namespace xdr { static toXDR(value: ScSpecEventParamV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEventParamV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEventParamV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventParamV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEventParamV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEventV0 { @@ -10031,7 +10055,7 @@ declare namespace xdr { doc: string | Buffer; lib: string | Buffer; name: string | Buffer; - prefixTopics: (string | Buffer)[]; + prefixTopics: Array; params: ScSpecEventParamV0[]; dataFormat: ScSpecEventDataFormat; }); @@ -10042,15 +10066,15 @@ declare namespace xdr { name(value?: string | Buffer): string | Buffer; - prefixTopics(value?: (string | Buffer)[]): (string | Buffer)[]; + prefixTopics(value?: Array): Array; params(value?: ScSpecEventParamV0[]): ScSpecEventParamV0[]; dataFormat(value?: ScSpecEventDataFormat): ScSpecEventDataFormat; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEventV0; @@ -10060,13 +10084,13 @@ declare namespace xdr { static toXDR(value: ScSpecEventV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEventV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEventV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEventV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractExecutionLanesV0 { @@ -10074,9 +10098,9 @@ declare namespace xdr { ledgerMaxTxCount(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractExecutionLanesV0; @@ -10091,17 +10115,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractExecutionLanesV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractExecutionLanesV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractComputeV0 { @@ -10120,9 +10144,9 @@ declare namespace xdr { txMemoryLimit(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractComputeV0; @@ -10134,17 +10158,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractComputeV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractComputeV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractParallelComputeV0 { @@ -10152,9 +10176,9 @@ declare namespace xdr { ledgerMaxDependentTxClusters(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractParallelComputeV0; @@ -10169,17 +10193,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractParallelComputeV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractParallelComputeV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractLedgerCostV0 { @@ -10231,9 +10255,9 @@ declare namespace xdr { sorobanStateRentFeeGrowthFactor(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractLedgerCostV0; @@ -10245,17 +10269,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractLedgerCostV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractLedgerCostV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractLedgerCostExtV0 { @@ -10268,9 +10292,9 @@ declare namespace xdr { feeWrite1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractLedgerCostExtV0; @@ -10282,17 +10306,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractLedgerCostExtV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractLedgerCostExtV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractHistoricalDataV0 { @@ -10300,9 +10324,9 @@ declare namespace xdr { feeHistorical1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractHistoricalDataV0; @@ -10317,17 +10341,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractHistoricalDataV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractHistoricalDataV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractEventsV0 { @@ -10340,9 +10364,9 @@ declare namespace xdr { feeContractEvents1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractEventsV0; @@ -10354,17 +10378,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractEventsV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractEventsV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractBandwidthV0 { @@ -10380,9 +10404,9 @@ declare namespace xdr { feeTxSize1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractBandwidthV0; @@ -10394,17 +10418,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractBandwidthV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractBandwidthV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCostParamEntry { @@ -10420,9 +10444,9 @@ declare namespace xdr { linearTerm(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCostParamEntry; @@ -10432,16 +10456,16 @@ declare namespace xdr { static toXDR(value: ContractCostParamEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCostParamEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractCostParamEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCostParamEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StateArchivalSettings { @@ -10478,9 +10502,9 @@ declare namespace xdr { startingEvictionScanLevel(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StateArchivalSettings; @@ -10490,16 +10514,16 @@ declare namespace xdr { static toXDR(value: StateArchivalSettings): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StateArchivalSettings; + static fromXDR(input: Buffer, format?: 'raw'): StateArchivalSettings; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): StateArchivalSettings; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class EvictionIterator { @@ -10515,9 +10539,9 @@ declare namespace xdr { bucketFileOffset(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): EvictionIterator; @@ -10527,13 +10551,13 @@ declare namespace xdr { static toXDR(value: EvictionIterator): Buffer; - static fromXDR(input: Buffer, format?: "raw"): EvictionIterator; + static fromXDR(input: Buffer, format?: 'raw'): EvictionIterator; - static fromXDR(input: string, format: "hex" | "base64"): EvictionIterator; + static fromXDR(input: string, format: 'hex' | 'base64'): EvictionIterator; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingScpTiming { @@ -10555,9 +10579,9 @@ declare namespace xdr { ballotTimeoutIncrementMilliseconds(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingScpTiming; @@ -10567,16 +10591,16 @@ declare namespace xdr { static toXDR(value: ConfigSettingScpTiming): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigSettingScpTiming; + static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingScpTiming; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingScpTiming; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaBatch { @@ -10592,9 +10616,9 @@ declare namespace xdr { ledgerCloseMeta(value?: LedgerCloseMeta[]): LedgerCloseMeta[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaBatch; @@ -10604,16 +10628,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaBatch): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaBatch; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaBatch; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseMetaBatch; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementPledges { @@ -10643,9 +10667,9 @@ declare namespace xdr { | ScpStatementExternalize | ScpNomination; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementPledges; @@ -10655,16 +10679,16 @@ declare namespace xdr { static toXDR(value: ScpStatementPledges): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementPledges; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPledges; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementPledges; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AssetCode { @@ -10680,9 +10704,9 @@ declare namespace xdr { value(): Buffer | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AssetCode; @@ -10692,13 +10716,13 @@ declare namespace xdr { static toXDR(value: AssetCode): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AssetCode; + static fromXDR(input: Buffer, format?: 'raw'): AssetCode; - static fromXDR(input: string, format: "hex" | "base64"): AssetCode; + static fromXDR(input: string, format: 'hex' | 'base64'): AssetCode; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Asset { @@ -10716,9 +10740,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Asset; @@ -10728,13 +10752,13 @@ declare namespace xdr { static toXDR(value: Asset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Asset; + static fromXDR(input: Buffer, format?: 'raw'): Asset; - static fromXDR(input: string, format: "hex" | "base64"): Asset; + static fromXDR(input: string, format: 'hex' | 'base64'): Asset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV2Ext { @@ -10748,9 +10772,9 @@ declare namespace xdr { value(): AccountEntryExtensionV3 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV2Ext; @@ -10760,16 +10784,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV1Ext { @@ -10783,9 +10807,9 @@ declare namespace xdr { value(): AccountEntryExtensionV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV1Ext; @@ -10795,16 +10819,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExt { @@ -10818,9 +10842,9 @@ declare namespace xdr { value(): AccountEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExt; @@ -10830,13 +10854,13 @@ declare namespace xdr { static toXDR(value: AccountEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): AccountEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineAsset { @@ -10858,9 +10882,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | PoolId | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineAsset; @@ -10870,13 +10894,13 @@ declare namespace xdr { static toXDR(value: TrustLineAsset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineAsset; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineAsset; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineAsset; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineAsset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExtensionV2Ext { @@ -10886,9 +10910,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExtensionV2Ext; @@ -10898,16 +10922,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryV1Ext { @@ -10921,9 +10945,9 @@ declare namespace xdr { value(): TrustLineEntryExtensionV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryV1Ext; @@ -10933,16 +10957,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExt { @@ -10956,9 +10980,9 @@ declare namespace xdr { value(): TrustLineEntryV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExt; @@ -10968,13 +10992,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OfferEntryExt { @@ -10984,9 +11008,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OfferEntryExt; @@ -10996,13 +11020,13 @@ declare namespace xdr { static toXDR(value: OfferEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OfferEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): OfferEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): OfferEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DataEntryExt { @@ -11012,9 +11036,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DataEntryExt; @@ -11024,13 +11048,13 @@ declare namespace xdr { static toXDR(value: DataEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DataEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): DataEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): DataEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): DataEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimPredicate { @@ -11067,9 +11091,9 @@ declare namespace xdr { | Int64 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimPredicate; @@ -11079,13 +11103,13 @@ declare namespace xdr { static toXDR(value: ClaimPredicate): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimPredicate; + static fromXDR(input: Buffer, format?: 'raw'): ClaimPredicate; - static fromXDR(input: string, format: "hex" | "base64"): ClaimPredicate; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimPredicate; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Claimant { @@ -11097,9 +11121,9 @@ declare namespace xdr { value(): ClaimantV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Claimant; @@ -11109,13 +11133,13 @@ declare namespace xdr { static toXDR(value: Claimant): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Claimant; + static fromXDR(input: Buffer, format?: 'raw'): Claimant; - static fromXDR(input: string, format: "hex" | "base64"): Claimant; + static fromXDR(input: string, format: 'hex' | 'base64'): Claimant; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExtensionV1Ext { @@ -11125,9 +11149,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1Ext; @@ -11139,17 +11163,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClaimableBalanceEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExt { @@ -11165,9 +11189,9 @@ declare namespace xdr { value(): ClaimableBalanceEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExt; @@ -11177,16 +11201,16 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntryBody { @@ -11202,9 +11226,9 @@ declare namespace xdr { value(): LiquidityPoolEntryConstantProduct; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntryBody; @@ -11214,16 +11238,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolEntryBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntryBody; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntryBody; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolEntryBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntryExt { @@ -11237,9 +11261,9 @@ declare namespace xdr { value(): ContractCodeEntryV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntryExt; @@ -11249,16 +11273,16 @@ declare namespace xdr { static toXDR(value: ContractCodeEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExtensionV1Ext { @@ -11268,9 +11292,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExtensionV1Ext; @@ -11280,16 +11304,16 @@ declare namespace xdr { static toXDR(value: LedgerEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryData { @@ -11347,9 +11371,9 @@ declare namespace xdr { | ConfigSettingEntry | TtlEntry; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryData; @@ -11359,13 +11383,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryData; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryData; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExt { @@ -11379,9 +11403,9 @@ declare namespace xdr { value(): LedgerEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExt; @@ -11391,13 +11415,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKey { @@ -11457,9 +11481,9 @@ declare namespace xdr { | LedgerKeyConfigSetting | LedgerKeyTtl; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKey; @@ -11469,13 +11493,13 @@ declare namespace xdr { static toXDR(value: LedgerKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKey; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKey; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKey; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketMetadataExt { @@ -11489,9 +11513,9 @@ declare namespace xdr { value(): BucketListType | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketMetadataExt; @@ -11501,13 +11525,13 @@ declare namespace xdr { static toXDR(value: BucketMetadataExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketMetadataExt; + static fromXDR(input: Buffer, format?: 'raw'): BucketMetadataExt; - static fromXDR(input: string, format: "hex" | "base64"): BucketMetadataExt; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadataExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketEntry { @@ -11529,9 +11553,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketEntry; @@ -11541,13 +11565,13 @@ declare namespace xdr { static toXDR(value: BucketEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketEntry; + static fromXDR(input: Buffer, format?: 'raw'): BucketEntry; - static fromXDR(input: string, format: "hex" | "base64"): BucketEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HotArchiveBucketEntry { @@ -11567,9 +11591,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HotArchiveBucketEntry; @@ -11579,16 +11603,16 @@ declare namespace xdr { static toXDR(value: HotArchiveBucketEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HotArchiveBucketEntry; + static fromXDR(input: Buffer, format?: 'raw'): HotArchiveBucketEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HotArchiveBucketEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarValueExt { @@ -11606,9 +11630,9 @@ declare namespace xdr { value(): LedgerCloseValueSignature | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarValueExt; @@ -11618,13 +11642,13 @@ declare namespace xdr { static toXDR(value: StellarValueExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarValueExt; + static fromXDR(input: Buffer, format?: 'raw'): StellarValueExt; - static fromXDR(input: string, format: "hex" | "base64"): StellarValueExt; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarValueExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExtensionV1Ext { @@ -11634,9 +11658,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExtensionV1Ext; @@ -11646,16 +11670,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExt { @@ -11669,9 +11693,9 @@ declare namespace xdr { value(): LedgerHeaderExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExt; @@ -11681,13 +11705,13 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerHeaderExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeaderExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerUpgrade { @@ -11730,9 +11754,9 @@ declare namespace xdr { | ConfigUpgradeSetKey | number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerUpgrade; @@ -11742,13 +11766,13 @@ declare namespace xdr { static toXDR(value: LedgerUpgrade): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerUpgrade; + static fromXDR(input: Buffer, format?: 'raw'): LedgerUpgrade; - static fromXDR(input: string, format: "hex" | "base64"): LedgerUpgrade; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerUpgrade; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TxSetComponent { @@ -11764,9 +11788,9 @@ declare namespace xdr { value(): TxSetComponentTxsMaybeDiscountedFee; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TxSetComponent; @@ -11776,13 +11800,13 @@ declare namespace xdr { static toXDR(value: TxSetComponent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TxSetComponent; + static fromXDR(input: Buffer, format?: 'raw'): TxSetComponent; - static fromXDR(input: string, format: "hex" | "base64"): TxSetComponent; + static fromXDR(input: string, format: 'hex' | 'base64'): TxSetComponent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionPhase { @@ -11798,9 +11822,9 @@ declare namespace xdr { value(): TxSetComponent[] | ParallelTxsComponent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionPhase; @@ -11810,13 +11834,13 @@ declare namespace xdr { static toXDR(value: TransactionPhase): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionPhase; + static fromXDR(input: Buffer, format?: 'raw'): TransactionPhase; - static fromXDR(input: string, format: "hex" | "base64"): TransactionPhase; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionPhase; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class GeneralizedTransactionSet { @@ -11828,9 +11852,9 @@ declare namespace xdr { value(): TransactionSetV1; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): GeneralizedTransactionSet; @@ -11840,16 +11864,16 @@ declare namespace xdr { static toXDR(value: GeneralizedTransactionSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): GeneralizedTransactionSet; + static fromXDR(input: Buffer, format?: 'raw'): GeneralizedTransactionSet; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): GeneralizedTransactionSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryEntryExt { @@ -11865,9 +11889,9 @@ declare namespace xdr { value(): GeneralizedTransactionSet | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryEntryExt; @@ -11877,16 +11901,16 @@ declare namespace xdr { static toXDR(value: TransactionHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryResultEntryExt { @@ -11896,9 +11920,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryResultEntryExt; @@ -11910,17 +11934,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionHistoryResultEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryResultEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderHistoryEntryExt { @@ -11930,9 +11954,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderHistoryEntryExt; @@ -11942,16 +11966,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderHistoryEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpHistoryEntry { @@ -11963,9 +11987,9 @@ declare namespace xdr { value(): ScpHistoryEntryV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpHistoryEntry; @@ -11975,13 +11999,13 @@ declare namespace xdr { static toXDR(value: ScpHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryChange { @@ -12009,9 +12033,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry | LedgerEntry; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryChange; @@ -12021,13 +12045,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryChange): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryChange; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryChange; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryChange; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryChange; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEventBody { @@ -12039,9 +12063,9 @@ declare namespace xdr { value(): ContractEventV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEventBody; @@ -12051,13 +12075,13 @@ declare namespace xdr { static toXDR(value: ContractEventBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEventBody; + static fromXDR(input: Buffer, format?: 'raw'): ContractEventBody; - static fromXDR(input: string, format: "hex" | "base64"): ContractEventBody; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaExt { @@ -12071,9 +12095,9 @@ declare namespace xdr { value(): SorobanTransactionMetaExtV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaExt; @@ -12083,16 +12107,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExt; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMeta { @@ -12125,9 +12149,9 @@ declare namespace xdr { | TransactionMetaV3 | TransactionMetaV4; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMeta; @@ -12137,13 +12161,13 @@ declare namespace xdr { static toXDR(value: TransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMeta; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMeta; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaExt { @@ -12157,9 +12181,9 @@ declare namespace xdr { value(): LedgerCloseMetaExtV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaExt; @@ -12169,13 +12193,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMeta { @@ -12195,9 +12219,9 @@ declare namespace xdr { value(): LedgerCloseMetaV0 | LedgerCloseMetaV1 | LedgerCloseMetaV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMeta; @@ -12207,13 +12231,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMeta; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMeta; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerAddressIp { @@ -12229,9 +12253,9 @@ declare namespace xdr { value(): Buffer | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerAddressIp; @@ -12241,13 +12265,13 @@ declare namespace xdr { static toXDR(value: PeerAddressIp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerAddressIp; + static fromXDR(input: Buffer, format?: 'raw'): PeerAddressIp; - static fromXDR(input: string, format: "hex" | "base64"): PeerAddressIp; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddressIp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyResponseBody { @@ -12263,9 +12287,9 @@ declare namespace xdr { value(): TopologyResponseBodyV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyResponseBody; @@ -12275,13 +12299,13 @@ declare namespace xdr { static toXDR(value: SurveyResponseBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyResponseBody; + static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseBody; - static fromXDR(input: string, format: "hex" | "base64"): SurveyResponseBody; + static fromXDR(input: string, format: 'hex' | 'base64'): SurveyResponseBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarMessage { @@ -12412,9 +12436,9 @@ declare namespace xdr { | FloodAdvert | FloodDemand; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarMessage; @@ -12424,13 +12448,13 @@ declare namespace xdr { static toXDR(value: StellarMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarMessage; + static fromXDR(input: Buffer, format?: 'raw'): StellarMessage; - static fromXDR(input: string, format: "hex" | "base64"): StellarMessage; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthenticatedMessage { @@ -12442,9 +12466,9 @@ declare namespace xdr { value(): AuthenticatedMessageV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthenticatedMessage; @@ -12454,16 +12478,16 @@ declare namespace xdr { static toXDR(value: AuthenticatedMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessage; + static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AuthenticatedMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolParameters { @@ -12479,9 +12503,9 @@ declare namespace xdr { value(): LiquidityPoolConstantProductParameters; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolParameters; @@ -12491,16 +12515,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolParameters): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolParameters; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolParameters; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolParameters; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedAccount { @@ -12516,9 +12540,9 @@ declare namespace xdr { value(): Buffer | MuxedAccountMed25519; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedAccount; @@ -12528,13 +12552,13 @@ declare namespace xdr { static toXDR(value: MuxedAccount): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedAccount; + static fromXDR(input: Buffer, format?: 'raw'): MuxedAccount; - static fromXDR(input: string, format: "hex" | "base64"): MuxedAccount; + static fromXDR(input: string, format: 'hex' | 'base64'): MuxedAccount; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustAsset { @@ -12556,9 +12580,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | LiquidityPoolParameters | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustAsset; @@ -12568,13 +12592,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustAsset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustAsset; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustAsset; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustAsset; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustAsset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipOp { @@ -12592,9 +12616,9 @@ declare namespace xdr { value(): LedgerKey | RevokeSponsorshipOpSigner; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipOp; @@ -12604,16 +12628,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOp; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractIdPreimage { @@ -12633,9 +12657,9 @@ declare namespace xdr { value(): ContractIdPreimageFromAddress | Asset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractIdPreimage; @@ -12645,13 +12669,13 @@ declare namespace xdr { static toXDR(value: ContractIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractIdPreimage; + static fromXDR(input: Buffer, format?: 'raw'): ContractIdPreimage; - static fromXDR(input: string, format: "hex" | "base64"): ContractIdPreimage; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractIdPreimage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HostFunction { @@ -12685,9 +12709,9 @@ declare namespace xdr { | Buffer | CreateContractArgsV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HostFunction; @@ -12697,13 +12721,13 @@ declare namespace xdr { static toXDR(value: HostFunction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HostFunction; + static fromXDR(input: Buffer, format?: 'raw'): HostFunction; - static fromXDR(input: string, format: "hex" | "base64"): HostFunction; + static fromXDR(input: string, format: 'hex' | 'base64'): HostFunction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizedFunction { @@ -12729,9 +12753,9 @@ declare namespace xdr { value(): InvokeContractArgs | CreateContractArgs | CreateContractArgsV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizedFunction; @@ -12741,16 +12765,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizedFunction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedFunction; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedFunction; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizedFunction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanCredentials { @@ -12766,9 +12790,9 @@ declare namespace xdr { value(): SorobanAddressCredentials | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanCredentials; @@ -12778,13 +12802,13 @@ declare namespace xdr { static toXDR(value: SorobanCredentials): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanCredentials; + static fromXDR(input: Buffer, format?: 'raw'): SorobanCredentials; - static fromXDR(input: string, format: "hex" | "base64"): SorobanCredentials; + static fromXDR(input: string, format: 'hex' | 'base64'): SorobanCredentials; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationBody { @@ -12950,9 +12974,9 @@ declare namespace xdr { | RestoreFootprintOp | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationBody; @@ -12962,13 +12986,13 @@ declare namespace xdr { static toXDR(value: OperationBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationBody; + static fromXDR(input: Buffer, format?: 'raw'): OperationBody; - static fromXDR(input: string, format: "hex" | "base64"): OperationBody; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimage { @@ -13004,9 +13028,9 @@ declare namespace xdr { | HashIdPreimageContractId | HashIdPreimageSorobanAuthorization; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimage; @@ -13016,13 +13040,13 @@ declare namespace xdr { static toXDR(value: HashIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimage; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimage; - static fromXDR(input: string, format: "hex" | "base64"): HashIdPreimage; + static fromXDR(input: string, format: 'hex' | 'base64'): HashIdPreimage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Memo { @@ -13048,9 +13072,9 @@ declare namespace xdr { value(): string | Buffer | Uint64 | Buffer | Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Memo; @@ -13060,13 +13084,13 @@ declare namespace xdr { static toXDR(value: Memo): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Memo; + static fromXDR(input: Buffer, format?: 'raw'): Memo; - static fromXDR(input: string, format: "hex" | "base64"): Memo; + static fromXDR(input: string, format: 'hex' | 'base64'): Memo; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Preconditions { @@ -13084,9 +13108,9 @@ declare namespace xdr { value(): TimeBounds | PreconditionsV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Preconditions; @@ -13096,13 +13120,13 @@ declare namespace xdr { static toXDR(value: Preconditions): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Preconditions; + static fromXDR(input: Buffer, format?: 'raw'): Preconditions; - static fromXDR(input: string, format: "hex" | "base64"): Preconditions; + static fromXDR(input: string, format: 'hex' | 'base64'): Preconditions; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionDataExt { @@ -13116,9 +13140,9 @@ declare namespace xdr { value(): SorobanResourcesExtV0 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionDataExt; @@ -13128,16 +13152,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionDataExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionDataExt; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionDataExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionDataExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0Ext { @@ -13147,9 +13171,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0Ext; @@ -13159,13 +13183,13 @@ declare namespace xdr { static toXDR(value: TransactionV0Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0Ext; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Ext; - static fromXDR(input: string, format: "hex" | "base64"): TransactionV0Ext; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionExt { @@ -13179,9 +13203,9 @@ declare namespace xdr { value(): SorobanTransactionData | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionExt; @@ -13191,13 +13215,13 @@ declare namespace xdr { static toXDR(value: TransactionExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionExt; - static fromXDR(input: string, format: "hex" | "base64"): TransactionExt; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionInnerTx { @@ -13211,9 +13235,9 @@ declare namespace xdr { value(): TransactionV1Envelope; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionInnerTx; @@ -13223,16 +13247,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionInnerTx): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionInnerTx; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionInnerTx; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionInnerTx; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionExt { @@ -13242,9 +13266,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionExt; @@ -13254,16 +13278,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionExt; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionEnvelope { @@ -13288,9 +13312,9 @@ declare namespace xdr { | TransactionV1Envelope | FeeBumpTransactionEnvelope; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionEnvelope; @@ -13300,16 +13324,16 @@ declare namespace xdr { static toXDR(value: TransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionEnvelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSignaturePayloadTaggedTransaction { @@ -13329,9 +13353,9 @@ declare namespace xdr { value(): Transaction | FeeBumpTransaction; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSignaturePayloadTaggedTransaction; @@ -13348,17 +13372,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionSignaturePayloadTaggedTransaction; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionSignaturePayloadTaggedTransaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimAtom { @@ -13378,9 +13402,9 @@ declare namespace xdr { value(): ClaimOfferAtomV0 | ClaimOfferAtom | ClaimLiquidityAtom; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimAtom; @@ -13390,13 +13414,13 @@ declare namespace xdr { static toXDR(value: ClaimAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateAccountResult { @@ -13414,9 +13438,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateAccountResult; @@ -13426,16 +13450,16 @@ declare namespace xdr { static toXDR(value: CreateAccountResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateAccountResult; + static fromXDR(input: Buffer, format?: 'raw'): CreateAccountResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateAccountResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PaymentResult { @@ -13463,9 +13487,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PaymentResult; @@ -13475,13 +13499,13 @@ declare namespace xdr { static toXDR(value: PaymentResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PaymentResult; + static fromXDR(input: Buffer, format?: 'raw'): PaymentResult; - static fromXDR(input: string, format: "hex" | "base64"): PaymentResult; + static fromXDR(input: string, format: 'hex' | 'base64'): PaymentResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveResult { @@ -13525,9 +13549,9 @@ declare namespace xdr { value(): PathPaymentStrictReceiveResultSuccess | Asset | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveResult; @@ -13539,17 +13563,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictReceiveResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendResult { @@ -13593,9 +13617,9 @@ declare namespace xdr { value(): PathPaymentStrictSendResultSuccess | Asset | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendResult; @@ -13605,16 +13629,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictSendResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendResult; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageOfferSuccessResultOffer { @@ -13630,9 +13654,9 @@ declare namespace xdr { value(): OfferEntry | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageOfferSuccessResultOffer; @@ -13644,17 +13668,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ManageOfferSuccessResultOffer; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageOfferSuccessResultOffer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageSellOfferResult { @@ -13692,9 +13716,9 @@ declare namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageSellOfferResult; @@ -13704,16 +13728,16 @@ declare namespace xdr { static toXDR(value: ManageSellOfferResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageSellOfferResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageBuyOfferResult { @@ -13751,9 +13775,9 @@ declare namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageBuyOfferResult; @@ -13763,16 +13787,16 @@ declare namespace xdr { static toXDR(value: ManageBuyOfferResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageBuyOfferResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetOptionsResult { @@ -13802,9 +13826,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetOptionsResult; @@ -13814,13 +13838,13 @@ declare namespace xdr { static toXDR(value: SetOptionsResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetOptionsResult; + static fromXDR(input: Buffer, format?: 'raw'): SetOptionsResult; - static fromXDR(input: string, format: "hex" | "base64"): SetOptionsResult; + static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustResult { @@ -13846,9 +13870,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustResult; @@ -13858,13 +13882,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustResult; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustResult; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AllowTrustResult { @@ -13886,9 +13910,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AllowTrustResult; @@ -13898,13 +13922,13 @@ declare namespace xdr { static toXDR(value: AllowTrustResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AllowTrustResult; + static fromXDR(input: Buffer, format?: 'raw'): AllowTrustResult; - static fromXDR(input: string, format: "hex" | "base64"): AllowTrustResult; + static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountMergeResult { @@ -13930,9 +13954,9 @@ declare namespace xdr { value(): Int64 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountMergeResult; @@ -13942,13 +13966,13 @@ declare namespace xdr { static toXDR(value: AccountMergeResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountMergeResult; + static fromXDR(input: Buffer, format?: 'raw'): AccountMergeResult; - static fromXDR(input: string, format: "hex" | "base64"): AccountMergeResult; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountMergeResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InflationResult { @@ -13962,9 +13986,9 @@ declare namespace xdr { value(): InflationPayout[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InflationResult; @@ -13974,13 +13998,13 @@ declare namespace xdr { static toXDR(value: InflationResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InflationResult; + static fromXDR(input: Buffer, format?: 'raw'): InflationResult; - static fromXDR(input: string, format: "hex" | "base64"): InflationResult; + static fromXDR(input: string, format: 'hex' | 'base64'): InflationResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageDataResult { @@ -13998,9 +14022,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageDataResult; @@ -14010,13 +14034,13 @@ declare namespace xdr { static toXDR(value: ManageDataResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageDataResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageDataResult; - static fromXDR(input: string, format: "hex" | "base64"): ManageDataResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BumpSequenceResult { @@ -14028,9 +14052,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BumpSequenceResult; @@ -14040,13 +14064,13 @@ declare namespace xdr { static toXDR(value: BumpSequenceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BumpSequenceResult; + static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceResult; - static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceResult; + static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateClaimableBalanceResult { @@ -14070,9 +14094,9 @@ declare namespace xdr { value(): ClaimableBalanceId | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateClaimableBalanceResult; @@ -14082,16 +14106,16 @@ declare namespace xdr { static toXDR(value: CreateClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceResult; + static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimClaimableBalanceResult { @@ -14111,9 +14135,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimClaimableBalanceResult; @@ -14123,16 +14147,16 @@ declare namespace xdr { static toXDR(value: ClaimClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceResult; + static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BeginSponsoringFutureReservesResult { @@ -14148,9 +14172,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BeginSponsoringFutureReservesResult; @@ -14162,17 +14186,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): BeginSponsoringFutureReservesResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): BeginSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class EndSponsoringFutureReservesResult { @@ -14184,9 +14208,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): EndSponsoringFutureReservesResult; @@ -14198,17 +14222,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): EndSponsoringFutureReservesResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): EndSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipResult { @@ -14228,9 +14252,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipResult; @@ -14240,16 +14264,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipResult; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackResult { @@ -14267,9 +14291,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackResult; @@ -14279,13 +14303,13 @@ declare namespace xdr { static toXDR(value: ClawbackResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackResult; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackResult; - static fromXDR(input: string, format: "hex" | "base64"): ClawbackResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackClaimableBalanceResult { @@ -14301,9 +14325,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackClaimableBalanceResult; @@ -14315,17 +14339,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClawbackClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClawbackClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetTrustLineFlagsResult { @@ -14345,9 +14369,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetTrustLineFlagsResult; @@ -14357,16 +14381,16 @@ declare namespace xdr { static toXDR(value: SetTrustLineFlagsResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsResult; + static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SetTrustLineFlagsResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolDepositResult { @@ -14390,9 +14414,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolDepositResult; @@ -14402,16 +14426,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolDepositResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositResult; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolDepositResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolWithdrawResult { @@ -14431,9 +14455,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolWithdrawResult; @@ -14443,16 +14467,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolWithdrawResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawResult; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolWithdrawResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionResult { @@ -14474,9 +14498,9 @@ declare namespace xdr { value(): Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionResult; @@ -14486,16 +14510,16 @@ declare namespace xdr { static toXDR(value: InvokeHostFunctionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionResult; + static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtendFootprintTtlResult { @@ -14511,9 +14535,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtendFootprintTtlResult; @@ -14523,16 +14547,16 @@ declare namespace xdr { static toXDR(value: ExtendFootprintTtlResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlResult; + static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ExtendFootprintTtlResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RestoreFootprintResult { @@ -14548,9 +14572,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RestoreFootprintResult; @@ -14560,16 +14584,16 @@ declare namespace xdr { static toXDR(value: RestoreFootprintResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintResult; + static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RestoreFootprintResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationResultTr { @@ -14766,9 +14790,9 @@ declare namespace xdr { | ExtendFootprintTtlResult | RestoreFootprintResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationResultTr; @@ -14778,13 +14802,13 @@ declare namespace xdr { static toXDR(value: OperationResultTr): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationResultTr; + static fromXDR(input: Buffer, format?: 'raw'): OperationResultTr; - static fromXDR(input: string, format: "hex" | "base64"): OperationResultTr; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationResultTr; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationResult { @@ -14808,9 +14832,9 @@ declare namespace xdr { value(): OperationResultTr | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationResult; @@ -14820,13 +14844,13 @@ declare namespace xdr { static toXDR(value: OperationResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationResult; + static fromXDR(input: Buffer, format?: 'raw'): OperationResult; - static fromXDR(input: string, format: "hex" | "base64"): OperationResult; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultResult { @@ -14870,9 +14894,9 @@ declare namespace xdr { value(): OperationResult[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultResult; @@ -14882,16 +14906,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultResult; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultExt { @@ -14901,9 +14925,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultExt; @@ -14913,16 +14937,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultExt; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultResult { @@ -14978,9 +15002,9 @@ declare namespace xdr { value(): InnerTransactionResultPair | OperationResult[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultResult; @@ -14990,16 +15014,16 @@ declare namespace xdr { static toXDR(value: TransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultResult; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultExt { @@ -15009,9 +15033,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultExt; @@ -15021,16 +15045,16 @@ declare namespace xdr { static toXDR(value: TransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtensionPoint { @@ -15040,9 +15064,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtensionPoint; @@ -15052,13 +15076,13 @@ declare namespace xdr { static toXDR(value: ExtensionPoint): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtensionPoint; + static fromXDR(input: Buffer, format?: 'raw'): ExtensionPoint; - static fromXDR(input: string, format: "hex" | "base64"): ExtensionPoint; + static fromXDR(input: string, format: 'hex' | 'base64'): ExtensionPoint; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PublicKey { @@ -15070,9 +15094,9 @@ declare namespace xdr { value(): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PublicKey; @@ -15082,13 +15106,13 @@ declare namespace xdr { static toXDR(value: PublicKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PublicKey; + static fromXDR(input: Buffer, format?: 'raw'): PublicKey; - static fromXDR(input: string, format: "hex" | "base64"): PublicKey; + static fromXDR(input: string, format: 'hex' | 'base64'): PublicKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignerKey { @@ -15116,9 +15140,9 @@ declare namespace xdr { value(): Buffer | Buffer | Buffer | SignerKeyEd25519SignedPayload; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignerKey; @@ -15128,13 +15152,13 @@ declare namespace xdr { static toXDR(value: SignerKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SignerKey; + static fromXDR(input: Buffer, format?: 'raw'): SignerKey; - static fromXDR(input: string, format: "hex" | "base64"): SignerKey; + static fromXDR(input: string, format: 'hex' | 'base64'): SignerKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceId { @@ -15146,9 +15170,9 @@ declare namespace xdr { value(): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceId; @@ -15158,13 +15182,13 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceId; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceId; - static fromXDR(input: string, format: "hex" | "base64"): ClaimableBalanceId; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimableBalanceId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScError { @@ -15196,9 +15220,9 @@ declare namespace xdr { value(): number | ScErrorCode; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScError; @@ -15208,13 +15232,13 @@ declare namespace xdr { static toXDR(value: ScError): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScError; + static fromXDR(input: Buffer, format?: 'raw'): ScError; - static fromXDR(input: string, format: "hex" | "base64"): ScError; + static fromXDR(input: string, format: 'hex' | 'base64'): ScError; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractExecutable { @@ -15228,9 +15252,9 @@ declare namespace xdr { value(): Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractExecutable; @@ -15240,13 +15264,13 @@ declare namespace xdr { static toXDR(value: ContractExecutable): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractExecutable; + static fromXDR(input: Buffer, format?: 'raw'): ContractExecutable; - static fromXDR(input: string, format: "hex" | "base64"): ContractExecutable; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractExecutable; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScAddress { @@ -15279,9 +15303,9 @@ declare namespace xdr { | ClaimableBalanceId | PoolId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScAddress; @@ -15291,13 +15315,13 @@ declare namespace xdr { static toXDR(value: ScAddress): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScAddress; + static fromXDR(input: Buffer, format?: 'raw'): ScAddress; - static fromXDR(input: string, format: "hex" | "base64"): ScAddress; + static fromXDR(input: string, format: 'hex' | 'base64'): ScAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScVal { @@ -15414,9 +15438,9 @@ declare namespace xdr { | ScNonceKey | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScVal; @@ -15426,13 +15450,13 @@ declare namespace xdr { static toXDR(value: ScVal): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScVal; + static fromXDR(input: Buffer, format?: 'raw'): ScVal; - static fromXDR(input: string, format: "hex" | "base64"): ScVal; + static fromXDR(input: string, format: 'hex' | 'base64'): ScVal; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScEnvMetaEntry { @@ -15448,9 +15472,9 @@ declare namespace xdr { value(): ScEnvMetaEntryInterfaceVersion; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScEnvMetaEntry; @@ -15460,13 +15484,13 @@ declare namespace xdr { static toXDR(value: ScEnvMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScEnvMetaEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScEnvMetaEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScEnvMetaEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScEnvMetaEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMetaEntry { @@ -15478,9 +15502,9 @@ declare namespace xdr { value(): ScMetaV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMetaEntry; @@ -15490,13 +15514,13 @@ declare namespace xdr { static toXDR(value: ScMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMetaEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScMetaEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScMetaEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeDef { @@ -15578,9 +15602,9 @@ declare namespace xdr { | ScSpecTypeUdt | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeDef; @@ -15590,13 +15614,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeDef): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeDef; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeDef; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeDef; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeDef; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseV0 { @@ -15616,9 +15640,9 @@ declare namespace xdr { value(): ScSpecUdtUnionCaseVoidV0 | ScSpecUdtUnionCaseTupleV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseV0; @@ -15628,16 +15652,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEntry { @@ -15675,9 +15699,9 @@ declare namespace xdr { | ScSpecUdtErrorEnumV0 | ScSpecEventV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEntry; @@ -15687,13 +15711,13 @@ declare namespace xdr { static toXDR(value: ScSpecEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingEntry { @@ -15838,9 +15862,9 @@ declare namespace xdr { | ConfigSettingContractLedgerCostExtV0 | ConfigSettingScpTiming; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingEntry; @@ -15850,12 +15874,12 @@ declare namespace xdr { static toXDR(value: ConfigSettingEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigSettingEntry; + static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingEntry; - static fromXDR(input: string, format: "hex" | "base64"): ConfigSettingEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ConfigSettingEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } } diff --git a/types/next.d.ts b/types/next.d.ts index a5ec3be0..2e87eed3 100644 --- a/types/next.d.ts +++ b/types/next.d.ts @@ -1,4 +1,59 @@ -declare namespace xdr { +// 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 { + 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; @@ -6,10 +61,10 @@ declare namespace xdr { 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; + 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 { @@ -19,10 +74,10 @@ declare namespace xdr { 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; + 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 { @@ -30,10 +85,10 @@ declare namespace xdr { 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; + 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 { @@ -44,22 +99,22 @@ declare namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | (string | bigint | number)[], + values: string | bigint | number | Array, ); - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static toXDR(value: Hyper): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Hyper; + static fromXDR(input: Buffer, format?: 'raw'): Hyper; - static fromXDR(input: string, format: "hex" | "base64"): Hyper; + static fromXDR(input: string, format: 'hex' | 'base64'): Hyper; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; static readonly MAX_VALUE: Hyper; @@ -88,22 +143,22 @@ declare namespace xdr { unsigned: boolean; constructor( - values: string | bigint | number | (string | bigint | number)[], + values: string | bigint | number | Array, ); - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static toXDR(value: UnsignedHyper): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UnsignedHyper; + static fromXDR(input: Buffer, format?: 'raw'): UnsignedHyper; - static fromXDR(input: string, format: "hex" | "base64"): UnsignedHyper; + static fromXDR(input: string, format: 'hex' | 'base64'): UnsignedHyper; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; static readonly MAX_VALUE: UnsignedHyper; @@ -137,13 +192,13 @@ declare namespace xdr { toXDR(value: string | Buffer): Buffer; - fromXDR(input: Buffer, format?: "raw"): Buffer; + fromXDR(input: Buffer, format?: 'raw'): Buffer; - fromXDR(input: string, format: "hex" | "base64"): Buffer; + fromXDR(input: string, format: 'hex' | 'base64'): Buffer; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class XDRArray { @@ -155,13 +210,13 @@ declare namespace xdr { toXDR(value: T[]): Buffer; - fromXDR(input: Buffer, format?: "raw"): T[]; + fromXDR(input: Buffer, format?: 'raw'): T[]; - fromXDR(input: string, format: "hex" | "base64"): T[]; + fromXDR(input: string, format: 'hex' | 'base64'): T[]; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Opaque { @@ -175,13 +230,13 @@ declare namespace xdr { toXDR(value: Buffer): Buffer; - fromXDR(input: Buffer, format?: "raw"): Buffer; + fromXDR(input: Buffer, format?: 'raw'): Buffer; - fromXDR(input: string, format: "hex" | "base64"): Buffer; + fromXDR(input: string, format: 'hex' | 'base64'): Buffer; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class VarOpaque extends Opaque {} @@ -201,21 +256,21 @@ declare namespace xdr { toXDR(value: any): Buffer; - fromXDR(input: Buffer, format?: "raw"): any; + fromXDR(input: Buffer, format?: 'raw'): any; - fromXDR(input: string, format: "hex" | "base64"): any; + fromXDR(input: string, format: 'hex' | 'base64'): any; - validateXDR(input: Buffer, format?: "raw"): boolean; + validateXDR(input: Buffer, format?: 'raw'): boolean; - validateXDR(input: string, format: "hex" | "base64"): boolean; + validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementType { readonly name: - | "scpStPrepare" - | "scpStConfirm" - | "scpStExternalize" - | "scpStNominate"; + | 'scpStPrepare' + | 'scpStConfirm' + | 'scpStExternalize' + | 'scpStNominate'; readonly value: 0 | 1 | 2 | 3; @@ -230,10 +285,10 @@ declare namespace xdr { class AssetType { readonly name: - | "assetTypeNative" - | "assetTypeCreditAlphanum4" - | "assetTypeCreditAlphanum12" - | "assetTypePoolShare"; + | 'assetTypeNative' + | 'assetTypeCreditAlphanum4' + | 'assetTypeCreditAlphanum12' + | 'assetTypePoolShare'; readonly value: 0 | 1 | 2 | 3; @@ -248,10 +303,10 @@ declare namespace xdr { class ThresholdIndices { readonly name: - | "thresholdMasterWeight" - | "thresholdLow" - | "thresholdMed" - | "thresholdHigh"; + | 'thresholdMasterWeight' + | 'thresholdLow' + | 'thresholdMed' + | 'thresholdHigh'; readonly value: 0 | 1 | 2 | 3; @@ -266,16 +321,16 @@ declare namespace xdr { class LedgerEntryType { readonly name: - | "account" - | "trustline" - | "offer" - | "data" - | "claimableBalance" - | "liquidityPool" - | "contractData" - | "contractCode" - | "configSetting" - | "ttl"; + | 'account' + | 'trustline' + | 'offer' + | 'data' + | 'claimableBalance' + | 'liquidityPool' + | 'contractData' + | 'contractCode' + | 'configSetting' + | 'ttl'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -302,10 +357,10 @@ declare namespace xdr { class AccountFlags { readonly name: - | "authRequiredFlag" - | "authRevocableFlag" - | "authImmutableFlag" - | "authClawbackEnabledFlag"; + | 'authRequiredFlag' + | 'authRevocableFlag' + | 'authImmutableFlag' + | 'authClawbackEnabledFlag'; readonly value: 1 | 2 | 4 | 8; @@ -320,9 +375,9 @@ declare namespace xdr { class TrustLineFlags { readonly name: - | "authorizedFlag" - | "authorizedToMaintainLiabilitiesFlag" - | "trustlineClawbackEnabledFlag"; + | 'authorizedFlag' + | 'authorizedToMaintainLiabilitiesFlag' + | 'trustlineClawbackEnabledFlag'; readonly value: 1 | 2 | 4; @@ -334,7 +389,7 @@ declare namespace xdr { } class LiquidityPoolType { - readonly name: "liquidityPoolConstantProduct"; + readonly name: 'liquidityPoolConstantProduct'; readonly value: 0; @@ -342,7 +397,7 @@ declare namespace xdr { } class OfferEntryFlags { - readonly name: "passiveFlag"; + readonly name: 'passiveFlag'; readonly value: 1; @@ -351,12 +406,12 @@ declare namespace xdr { class ClaimPredicateType { readonly name: - | "claimPredicateUnconditional" - | "claimPredicateAnd" - | "claimPredicateOr" - | "claimPredicateNot" - | "claimPredicateBeforeAbsoluteTime" - | "claimPredicateBeforeRelativeTime"; + | 'claimPredicateUnconditional' + | 'claimPredicateAnd' + | 'claimPredicateOr' + | 'claimPredicateNot' + | 'claimPredicateBeforeAbsoluteTime' + | 'claimPredicateBeforeRelativeTime'; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -374,7 +429,7 @@ declare namespace xdr { } class ClaimantType { - readonly name: "claimantTypeV0"; + readonly name: 'claimantTypeV0'; readonly value: 0; @@ -382,7 +437,7 @@ declare namespace xdr { } class ClaimableBalanceFlags { - readonly name: "claimableBalanceClawbackEnabledFlag"; + readonly name: 'claimableBalanceClawbackEnabledFlag'; readonly value: 1; @@ -390,7 +445,7 @@ declare namespace xdr { } class ContractDataDurability { - readonly name: "temporary" | "persistent"; + readonly name: 'temporary' | 'persistent'; readonly value: 0 | 1; @@ -401,16 +456,16 @@ declare namespace xdr { class EnvelopeType { readonly name: - | "envelopeTypeTxV0" - | "envelopeTypeScp" - | "envelopeTypeTx" - | "envelopeTypeAuth" - | "envelopeTypeScpvalue" - | "envelopeTypeTxFeeBump" - | "envelopeTypeOpId" - | "envelopeTypePoolRevokeOpId" - | "envelopeTypeContractId" - | "envelopeTypeSorobanAuthorization"; + | 'envelopeTypeTxV0' + | 'envelopeTypeScp' + | 'envelopeTypeTx' + | 'envelopeTypeAuth' + | 'envelopeTypeScpvalue' + | 'envelopeTypeTxFeeBump' + | 'envelopeTypeOpId' + | 'envelopeTypePoolRevokeOpId' + | 'envelopeTypeContractId' + | 'envelopeTypeSorobanAuthorization'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -436,7 +491,7 @@ declare namespace xdr { } class BucketListType { - readonly name: "live" | "hotArchive"; + readonly name: 'live' | 'hotArchive'; readonly value: 0 | 1; @@ -446,7 +501,7 @@ declare namespace xdr { } class BucketEntryType { - readonly name: "metaentry" | "liveentry" | "deadentry" | "initentry"; + readonly name: 'metaentry' | 'liveentry' | 'deadentry' | 'initentry'; readonly value: -1 | 0 | 1 | 2; @@ -461,9 +516,9 @@ declare namespace xdr { class HotArchiveBucketEntryType { readonly name: - | "hotArchiveMetaentry" - | "hotArchiveArchived" - | "hotArchiveLive"; + | 'hotArchiveMetaentry' + | 'hotArchiveArchived' + | 'hotArchiveLive'; readonly value: -1 | 0 | 1; @@ -475,7 +530,7 @@ declare namespace xdr { } class StellarValueType { - readonly name: "stellarValueBasic" | "stellarValueSigned"; + readonly name: 'stellarValueBasic' | 'stellarValueSigned'; readonly value: 0 | 1; @@ -486,9 +541,9 @@ declare namespace xdr { class LedgerHeaderFlags { readonly name: - | "disableLiquidityPoolTradingFlag" - | "disableLiquidityPoolDepositFlag" - | "disableLiquidityPoolWithdrawalFlag"; + | 'disableLiquidityPoolTradingFlag' + | 'disableLiquidityPoolDepositFlag' + | 'disableLiquidityPoolWithdrawalFlag'; readonly value: 1 | 2 | 4; @@ -501,13 +556,13 @@ declare namespace xdr { class LedgerUpgradeType { readonly name: - | "ledgerUpgradeVersion" - | "ledgerUpgradeBaseFee" - | "ledgerUpgradeMaxTxSetSize" - | "ledgerUpgradeBaseReserve" - | "ledgerUpgradeFlags" - | "ledgerUpgradeConfig" - | "ledgerUpgradeMaxSorobanTxSetSize"; + | 'ledgerUpgradeVersion' + | 'ledgerUpgradeBaseFee' + | 'ledgerUpgradeMaxTxSetSize' + | 'ledgerUpgradeBaseReserve' + | 'ledgerUpgradeFlags' + | 'ledgerUpgradeConfig' + | 'ledgerUpgradeMaxSorobanTxSetSize'; readonly value: 1 | 2 | 3 | 4 | 5 | 6 | 7; @@ -527,7 +582,7 @@ declare namespace xdr { } class TxSetComponentType { - readonly name: "txsetCompTxsMaybeDiscountedFee"; + readonly name: 'txsetCompTxsMaybeDiscountedFee'; readonly value: 0; @@ -536,11 +591,11 @@ declare namespace xdr { class LedgerEntryChangeType { readonly name: - | "ledgerEntryCreated" - | "ledgerEntryUpdated" - | "ledgerEntryRemoved" - | "ledgerEntryState" - | "ledgerEntryRestored"; + | 'ledgerEntryCreated' + | 'ledgerEntryUpdated' + | 'ledgerEntryRemoved' + | 'ledgerEntryState' + | 'ledgerEntryRestored'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -556,7 +611,7 @@ declare namespace xdr { } class ContractEventType { - readonly name: "system" | "contract" | "diagnostic"; + readonly name: 'system' | 'contract' | 'diagnostic'; readonly value: 0 | 1 | 2; @@ -569,9 +624,9 @@ declare namespace xdr { class TransactionEventStage { readonly name: - | "transactionEventStageBeforeAllTxes" - | "transactionEventStageAfterTx" - | "transactionEventStageAfterAllTxes"; + | 'transactionEventStageBeforeAllTxes' + | 'transactionEventStageAfterTx' + | 'transactionEventStageAfterAllTxes'; readonly value: 0 | 1 | 2; @@ -583,7 +638,7 @@ declare namespace xdr { } class ErrorCode { - readonly name: "errMisc" | "errData" | "errConf" | "errAuth" | "errLoad"; + readonly name: 'errMisc' | 'errData' | 'errConf' | 'errAuth' | 'errLoad'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -599,7 +654,7 @@ declare namespace xdr { } class IpAddrType { - readonly name: "iPv4" | "iPv6"; + readonly name: 'iPv4' | 'iPv6'; readonly value: 0 | 1; @@ -610,27 +665,27 @@ declare namespace xdr { class MessageType { readonly name: - | "errorMsg" - | "auth" - | "dontHave" - | "peers" - | "getTxSet" - | "txSet" - | "generalizedTxSet" - | "transaction" - | "getScpQuorumset" - | "scpQuorumset" - | "scpMessage" - | "getScpState" - | "hello" - | "sendMore" - | "sendMoreExtended" - | "floodAdvert" - | "floodDemand" - | "timeSlicedSurveyRequest" - | "timeSlicedSurveyResponse" - | "timeSlicedSurveyStartCollecting" - | "timeSlicedSurveyStopCollecting"; + | 'errorMsg' + | 'auth' + | 'dontHave' + | 'peers' + | 'getTxSet' + | 'txSet' + | 'generalizedTxSet' + | 'transaction' + | 'getScpQuorumset' + | 'scpQuorumset' + | 'scpMessage' + | 'getScpState' + | 'hello' + | 'sendMore' + | 'sendMoreExtended' + | 'floodAdvert' + | 'floodDemand' + | 'timeSlicedSurveyRequest' + | 'timeSlicedSurveyResponse' + | 'timeSlicedSurveyStartCollecting' + | 'timeSlicedSurveyStopCollecting'; readonly value: | 0 @@ -699,7 +754,7 @@ declare namespace xdr { } class SurveyMessageCommandType { - readonly name: "timeSlicedSurveyTopology"; + readonly name: 'timeSlicedSurveyTopology'; readonly value: 1; @@ -707,7 +762,7 @@ declare namespace xdr { } class SurveyMessageResponseType { - readonly name: "surveyTopologyResponseV2"; + readonly name: 'surveyTopologyResponseV2'; readonly value: 2; @@ -716,33 +771,33 @@ declare namespace xdr { 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"; + | '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 @@ -829,7 +884,7 @@ declare namespace xdr { } class RevokeSponsorshipType { - readonly name: "revokeSponsorshipLedgerEntry" | "revokeSponsorshipSigner"; + readonly name: 'revokeSponsorshipLedgerEntry' | 'revokeSponsorshipSigner'; readonly value: 0 | 1; @@ -840,10 +895,10 @@ declare namespace xdr { class HostFunctionType { readonly name: - | "hostFunctionTypeInvokeContract" - | "hostFunctionTypeCreateContract" - | "hostFunctionTypeUploadContractWasm" - | "hostFunctionTypeCreateContractV2"; + | 'hostFunctionTypeInvokeContract' + | 'hostFunctionTypeCreateContract' + | 'hostFunctionTypeUploadContractWasm' + | 'hostFunctionTypeCreateContractV2'; readonly value: 0 | 1 | 2 | 3; @@ -858,8 +913,8 @@ declare namespace xdr { class ContractIdPreimageType { readonly name: - | "contractIdPreimageFromAddress" - | "contractIdPreimageFromAsset"; + | 'contractIdPreimageFromAddress' + | 'contractIdPreimageFromAsset'; readonly value: 0 | 1; @@ -870,9 +925,9 @@ declare namespace xdr { class SorobanAuthorizedFunctionType { readonly name: - | "sorobanAuthorizedFunctionTypeContractFn" - | "sorobanAuthorizedFunctionTypeCreateContractHostFn" - | "sorobanAuthorizedFunctionTypeCreateContractV2HostFn"; + | 'sorobanAuthorizedFunctionTypeContractFn' + | 'sorobanAuthorizedFunctionTypeCreateContractHostFn' + | 'sorobanAuthorizedFunctionTypeCreateContractV2HostFn'; readonly value: 0 | 1 | 2; @@ -885,8 +940,8 @@ declare namespace xdr { class SorobanCredentialsType { readonly name: - | "sorobanCredentialsSourceAccount" - | "sorobanCredentialsAddress"; + | 'sorobanCredentialsSourceAccount' + | 'sorobanCredentialsAddress'; readonly value: 0 | 1; @@ -897,11 +952,11 @@ declare namespace xdr { class MemoType { readonly name: - | "memoNone" - | "memoText" - | "memoId" - | "memoHash" - | "memoReturn"; + | 'memoNone' + | 'memoText' + | 'memoId' + | 'memoHash' + | 'memoReturn'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -917,7 +972,7 @@ declare namespace xdr { } class PreconditionType { - readonly name: "precondNone" | "precondTime" | "precondV2"; + readonly name: 'precondNone' | 'precondTime' | 'precondV2'; readonly value: 0 | 1 | 2; @@ -930,9 +985,9 @@ declare namespace xdr { class ClaimAtomType { readonly name: - | "claimAtomTypeV0" - | "claimAtomTypeOrderBook" - | "claimAtomTypeLiquidityPool"; + | 'claimAtomTypeV0' + | 'claimAtomTypeOrderBook' + | 'claimAtomTypeLiquidityPool'; readonly value: 0 | 1 | 2; @@ -945,11 +1000,11 @@ declare namespace xdr { class CreateAccountResultCode { readonly name: - | "createAccountSuccess" - | "createAccountMalformed" - | "createAccountUnderfunded" - | "createAccountLowReserve" - | "createAccountAlreadyExist"; + | 'createAccountSuccess' + | 'createAccountMalformed' + | 'createAccountUnderfunded' + | 'createAccountLowReserve' + | 'createAccountAlreadyExist'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -966,16 +1021,16 @@ declare namespace xdr { class PaymentResultCode { readonly name: - | "paymentSuccess" - | "paymentMalformed" - | "paymentUnderfunded" - | "paymentSrcNoTrust" - | "paymentSrcNotAuthorized" - | "paymentNoDestination" - | "paymentNoTrust" - | "paymentNotAuthorized" - | "paymentLineFull" - | "paymentNoIssuer"; + | 'paymentSuccess' + | 'paymentMalformed' + | 'paymentUnderfunded' + | 'paymentSrcNoTrust' + | 'paymentSrcNotAuthorized' + | 'paymentNoDestination' + | 'paymentNoTrust' + | 'paymentNotAuthorized' + | 'paymentLineFull' + | 'paymentNoIssuer'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9; @@ -1002,19 +1057,19 @@ declare namespace xdr { class PathPaymentStrictReceiveResultCode { readonly name: - | "pathPaymentStrictReceiveSuccess" - | "pathPaymentStrictReceiveMalformed" - | "pathPaymentStrictReceiveUnderfunded" - | "pathPaymentStrictReceiveSrcNoTrust" - | "pathPaymentStrictReceiveSrcNotAuthorized" - | "pathPaymentStrictReceiveNoDestination" - | "pathPaymentStrictReceiveNoTrust" - | "pathPaymentStrictReceiveNotAuthorized" - | "pathPaymentStrictReceiveLineFull" - | "pathPaymentStrictReceiveNoIssuer" - | "pathPaymentStrictReceiveTooFewOffers" - | "pathPaymentStrictReceiveOfferCrossSelf" - | "pathPaymentStrictReceiveOverSendmax"; + | 'pathPaymentStrictReceiveSuccess' + | 'pathPaymentStrictReceiveMalformed' + | 'pathPaymentStrictReceiveUnderfunded' + | 'pathPaymentStrictReceiveSrcNoTrust' + | 'pathPaymentStrictReceiveSrcNotAuthorized' + | 'pathPaymentStrictReceiveNoDestination' + | 'pathPaymentStrictReceiveNoTrust' + | 'pathPaymentStrictReceiveNotAuthorized' + | 'pathPaymentStrictReceiveLineFull' + | 'pathPaymentStrictReceiveNoIssuer' + | 'pathPaymentStrictReceiveTooFewOffers' + | 'pathPaymentStrictReceiveOfferCrossSelf' + | 'pathPaymentStrictReceiveOverSendmax'; readonly value: | 0 @@ -1060,19 +1115,19 @@ declare namespace xdr { class PathPaymentStrictSendResultCode { readonly name: - | "pathPaymentStrictSendSuccess" - | "pathPaymentStrictSendMalformed" - | "pathPaymentStrictSendUnderfunded" - | "pathPaymentStrictSendSrcNoTrust" - | "pathPaymentStrictSendSrcNotAuthorized" - | "pathPaymentStrictSendNoDestination" - | "pathPaymentStrictSendNoTrust" - | "pathPaymentStrictSendNotAuthorized" - | "pathPaymentStrictSendLineFull" - | "pathPaymentStrictSendNoIssuer" - | "pathPaymentStrictSendTooFewOffers" - | "pathPaymentStrictSendOfferCrossSelf" - | "pathPaymentStrictSendUnderDestmin"; + | 'pathPaymentStrictSendSuccess' + | 'pathPaymentStrictSendMalformed' + | 'pathPaymentStrictSendUnderfunded' + | 'pathPaymentStrictSendSrcNoTrust' + | 'pathPaymentStrictSendSrcNotAuthorized' + | 'pathPaymentStrictSendNoDestination' + | 'pathPaymentStrictSendNoTrust' + | 'pathPaymentStrictSendNotAuthorized' + | 'pathPaymentStrictSendLineFull' + | 'pathPaymentStrictSendNoIssuer' + | 'pathPaymentStrictSendTooFewOffers' + | 'pathPaymentStrictSendOfferCrossSelf' + | 'pathPaymentStrictSendUnderDestmin'; readonly value: | 0 @@ -1118,19 +1173,19 @@ declare namespace xdr { class ManageSellOfferResultCode { readonly name: - | "manageSellOfferSuccess" - | "manageSellOfferMalformed" - | "manageSellOfferSellNoTrust" - | "manageSellOfferBuyNoTrust" - | "manageSellOfferSellNotAuthorized" - | "manageSellOfferBuyNotAuthorized" - | "manageSellOfferLineFull" - | "manageSellOfferUnderfunded" - | "manageSellOfferCrossSelf" - | "manageSellOfferSellNoIssuer" - | "manageSellOfferBuyNoIssuer" - | "manageSellOfferNotFound" - | "manageSellOfferLowReserve"; + | 'manageSellOfferSuccess' + | 'manageSellOfferMalformed' + | 'manageSellOfferSellNoTrust' + | 'manageSellOfferBuyNoTrust' + | 'manageSellOfferSellNotAuthorized' + | 'manageSellOfferBuyNotAuthorized' + | 'manageSellOfferLineFull' + | 'manageSellOfferUnderfunded' + | 'manageSellOfferCrossSelf' + | 'manageSellOfferSellNoIssuer' + | 'manageSellOfferBuyNoIssuer' + | 'manageSellOfferNotFound' + | 'manageSellOfferLowReserve'; readonly value: | 0 @@ -1176,9 +1231,9 @@ declare namespace xdr { class ManageOfferEffect { readonly name: - | "manageOfferCreated" - | "manageOfferUpdated" - | "manageOfferDeleted"; + | 'manageOfferCreated' + | 'manageOfferUpdated' + | 'manageOfferDeleted'; readonly value: 0 | 1 | 2; @@ -1191,19 +1246,19 @@ declare namespace xdr { class ManageBuyOfferResultCode { readonly name: - | "manageBuyOfferSuccess" - | "manageBuyOfferMalformed" - | "manageBuyOfferSellNoTrust" - | "manageBuyOfferBuyNoTrust" - | "manageBuyOfferSellNotAuthorized" - | "manageBuyOfferBuyNotAuthorized" - | "manageBuyOfferLineFull" - | "manageBuyOfferUnderfunded" - | "manageBuyOfferCrossSelf" - | "manageBuyOfferSellNoIssuer" - | "manageBuyOfferBuyNoIssuer" - | "manageBuyOfferNotFound" - | "manageBuyOfferLowReserve"; + | 'manageBuyOfferSuccess' + | 'manageBuyOfferMalformed' + | 'manageBuyOfferSellNoTrust' + | 'manageBuyOfferBuyNoTrust' + | 'manageBuyOfferSellNotAuthorized' + | 'manageBuyOfferBuyNotAuthorized' + | 'manageBuyOfferLineFull' + | 'manageBuyOfferUnderfunded' + | 'manageBuyOfferCrossSelf' + | 'manageBuyOfferSellNoIssuer' + | 'manageBuyOfferBuyNoIssuer' + | 'manageBuyOfferNotFound' + | 'manageBuyOfferLowReserve'; readonly value: | 0 @@ -1249,17 +1304,17 @@ declare namespace xdr { class SetOptionsResultCode { readonly name: - | "setOptionsSuccess" - | "setOptionsLowReserve" - | "setOptionsTooManySigners" - | "setOptionsBadFlags" - | "setOptionsInvalidInflation" - | "setOptionsCantChange" - | "setOptionsUnknownFlag" - | "setOptionsThresholdOutOfRange" - | "setOptionsBadSigner" - | "setOptionsInvalidHomeDomain" - | "setOptionsAuthRevocableRequired"; + | 'setOptionsSuccess' + | 'setOptionsLowReserve' + | 'setOptionsTooManySigners' + | 'setOptionsBadFlags' + | 'setOptionsInvalidInflation' + | 'setOptionsCantChange' + | 'setOptionsUnknownFlag' + | 'setOptionsThresholdOutOfRange' + | 'setOptionsBadSigner' + | 'setOptionsInvalidHomeDomain' + | 'setOptionsAuthRevocableRequired'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -10; @@ -1288,15 +1343,15 @@ declare namespace xdr { class ChangeTrustResultCode { readonly name: - | "changeTrustSuccess" - | "changeTrustMalformed" - | "changeTrustNoIssuer" - | "changeTrustInvalidLimit" - | "changeTrustLowReserve" - | "changeTrustSelfNotAllowed" - | "changeTrustTrustLineMissing" - | "changeTrustCannotDelete" - | "changeTrustNotAuthMaintainLiabilities"; + | 'changeTrustSuccess' + | 'changeTrustMalformed' + | 'changeTrustNoIssuer' + | 'changeTrustInvalidLimit' + | 'changeTrustLowReserve' + | 'changeTrustSelfNotAllowed' + | 'changeTrustTrustLineMissing' + | 'changeTrustCannotDelete' + | 'changeTrustNotAuthMaintainLiabilities'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8; @@ -1321,13 +1376,13 @@ declare namespace xdr { class AllowTrustResultCode { readonly name: - | "allowTrustSuccess" - | "allowTrustMalformed" - | "allowTrustNoTrustLine" - | "allowTrustTrustNotRequired" - | "allowTrustCantRevoke" - | "allowTrustSelfNotAllowed" - | "allowTrustLowReserve"; + | 'allowTrustSuccess' + | 'allowTrustMalformed' + | 'allowTrustNoTrustLine' + | 'allowTrustTrustNotRequired' + | 'allowTrustCantRevoke' + | 'allowTrustSelfNotAllowed' + | 'allowTrustLowReserve'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1348,14 +1403,14 @@ declare namespace xdr { class AccountMergeResultCode { readonly name: - | "accountMergeSuccess" - | "accountMergeMalformed" - | "accountMergeNoAccount" - | "accountMergeImmutableSet" - | "accountMergeHasSubEntries" - | "accountMergeSeqnumTooFar" - | "accountMergeDestFull" - | "accountMergeIsSponsor"; + | 'accountMergeSuccess' + | 'accountMergeMalformed' + | 'accountMergeNoAccount' + | 'accountMergeImmutableSet' + | 'accountMergeHasSubEntries' + | 'accountMergeSeqnumTooFar' + | 'accountMergeDestFull' + | 'accountMergeIsSponsor'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1377,7 +1432,7 @@ declare namespace xdr { } class InflationResultCode { - readonly name: "inflationSuccess" | "inflationNotTime"; + readonly name: 'inflationSuccess' | 'inflationNotTime'; readonly value: 0 | -1; @@ -1388,11 +1443,11 @@ declare namespace xdr { class ManageDataResultCode { readonly name: - | "manageDataSuccess" - | "manageDataNotSupportedYet" - | "manageDataNameNotFound" - | "manageDataLowReserve" - | "manageDataInvalidName"; + | 'manageDataSuccess' + | 'manageDataNotSupportedYet' + | 'manageDataNameNotFound' + | 'manageDataLowReserve' + | 'manageDataInvalidName'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1408,7 +1463,7 @@ declare namespace xdr { } class BumpSequenceResultCode { - readonly name: "bumpSequenceSuccess" | "bumpSequenceBadSeq"; + readonly name: 'bumpSequenceSuccess' | 'bumpSequenceBadSeq'; readonly value: 0 | -1; @@ -1419,12 +1474,12 @@ declare namespace xdr { class CreateClaimableBalanceResultCode { readonly name: - | "createClaimableBalanceSuccess" - | "createClaimableBalanceMalformed" - | "createClaimableBalanceLowReserve" - | "createClaimableBalanceNoTrust" - | "createClaimableBalanceNotAuthorized" - | "createClaimableBalanceUnderfunded"; + | 'createClaimableBalanceSuccess' + | 'createClaimableBalanceMalformed' + | 'createClaimableBalanceLowReserve' + | 'createClaimableBalanceNoTrust' + | 'createClaimableBalanceNotAuthorized' + | 'createClaimableBalanceUnderfunded'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1443,12 +1498,12 @@ declare namespace xdr { class ClaimClaimableBalanceResultCode { readonly name: - | "claimClaimableBalanceSuccess" - | "claimClaimableBalanceDoesNotExist" - | "claimClaimableBalanceCannotClaim" - | "claimClaimableBalanceLineFull" - | "claimClaimableBalanceNoTrust" - | "claimClaimableBalanceNotAuthorized"; + | 'claimClaimableBalanceSuccess' + | 'claimClaimableBalanceDoesNotExist' + | 'claimClaimableBalanceCannotClaim' + | 'claimClaimableBalanceLineFull' + | 'claimClaimableBalanceNoTrust' + | 'claimClaimableBalanceNotAuthorized'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1467,10 +1522,10 @@ declare namespace xdr { class BeginSponsoringFutureReservesResultCode { readonly name: - | "beginSponsoringFutureReservesSuccess" - | "beginSponsoringFutureReservesMalformed" - | "beginSponsoringFutureReservesAlreadySponsored" - | "beginSponsoringFutureReservesRecursive"; + | 'beginSponsoringFutureReservesSuccess' + | 'beginSponsoringFutureReservesMalformed' + | 'beginSponsoringFutureReservesAlreadySponsored' + | 'beginSponsoringFutureReservesRecursive'; readonly value: 0 | -1 | -2 | -3; @@ -1485,8 +1540,8 @@ declare namespace xdr { class EndSponsoringFutureReservesResultCode { readonly name: - | "endSponsoringFutureReservesSuccess" - | "endSponsoringFutureReservesNotSponsored"; + | 'endSponsoringFutureReservesSuccess' + | 'endSponsoringFutureReservesNotSponsored'; readonly value: 0 | -1; @@ -1497,12 +1552,12 @@ declare namespace xdr { class RevokeSponsorshipResultCode { readonly name: - | "revokeSponsorshipSuccess" - | "revokeSponsorshipDoesNotExist" - | "revokeSponsorshipNotSponsor" - | "revokeSponsorshipLowReserve" - | "revokeSponsorshipOnlyTransferable" - | "revokeSponsorshipMalformed"; + | 'revokeSponsorshipSuccess' + | 'revokeSponsorshipDoesNotExist' + | 'revokeSponsorshipNotSponsor' + | 'revokeSponsorshipLowReserve' + | 'revokeSponsorshipOnlyTransferable' + | 'revokeSponsorshipMalformed'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1521,11 +1576,11 @@ declare namespace xdr { class ClawbackResultCode { readonly name: - | "clawbackSuccess" - | "clawbackMalformed" - | "clawbackNotClawbackEnabled" - | "clawbackNoTrust" - | "clawbackUnderfunded"; + | 'clawbackSuccess' + | 'clawbackMalformed' + | 'clawbackNotClawbackEnabled' + | 'clawbackNoTrust' + | 'clawbackUnderfunded'; readonly value: 0 | -1 | -2 | -3 | -4; @@ -1542,10 +1597,10 @@ declare namespace xdr { class ClawbackClaimableBalanceResultCode { readonly name: - | "clawbackClaimableBalanceSuccess" - | "clawbackClaimableBalanceDoesNotExist" - | "clawbackClaimableBalanceNotIssuer" - | "clawbackClaimableBalanceNotClawbackEnabled"; + | 'clawbackClaimableBalanceSuccess' + | 'clawbackClaimableBalanceDoesNotExist' + | 'clawbackClaimableBalanceNotIssuer' + | 'clawbackClaimableBalanceNotClawbackEnabled'; readonly value: 0 | -1 | -2 | -3; @@ -1560,12 +1615,12 @@ declare namespace xdr { class SetTrustLineFlagsResultCode { readonly name: - | "setTrustLineFlagsSuccess" - | "setTrustLineFlagsMalformed" - | "setTrustLineFlagsNoTrustLine" - | "setTrustLineFlagsCantRevoke" - | "setTrustLineFlagsInvalidState" - | "setTrustLineFlagsLowReserve"; + | 'setTrustLineFlagsSuccess' + | 'setTrustLineFlagsMalformed' + | 'setTrustLineFlagsNoTrustLine' + | 'setTrustLineFlagsCantRevoke' + | 'setTrustLineFlagsInvalidState' + | 'setTrustLineFlagsLowReserve'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1584,14 +1639,14 @@ declare namespace xdr { class LiquidityPoolDepositResultCode { readonly name: - | "liquidityPoolDepositSuccess" - | "liquidityPoolDepositMalformed" - | "liquidityPoolDepositNoTrust" - | "liquidityPoolDepositNotAuthorized" - | "liquidityPoolDepositUnderfunded" - | "liquidityPoolDepositLineFull" - | "liquidityPoolDepositBadPrice" - | "liquidityPoolDepositPoolFull"; + | 'liquidityPoolDepositSuccess' + | 'liquidityPoolDepositMalformed' + | 'liquidityPoolDepositNoTrust' + | 'liquidityPoolDepositNotAuthorized' + | 'liquidityPoolDepositUnderfunded' + | 'liquidityPoolDepositLineFull' + | 'liquidityPoolDepositBadPrice' + | 'liquidityPoolDepositPoolFull'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6 | -7; @@ -1614,12 +1669,12 @@ declare namespace xdr { class LiquidityPoolWithdrawResultCode { readonly name: - | "liquidityPoolWithdrawSuccess" - | "liquidityPoolWithdrawMalformed" - | "liquidityPoolWithdrawNoTrust" - | "liquidityPoolWithdrawUnderfunded" - | "liquidityPoolWithdrawLineFull" - | "liquidityPoolWithdrawUnderMinimum"; + | 'liquidityPoolWithdrawSuccess' + | 'liquidityPoolWithdrawMalformed' + | 'liquidityPoolWithdrawNoTrust' + | 'liquidityPoolWithdrawUnderfunded' + | 'liquidityPoolWithdrawLineFull' + | 'liquidityPoolWithdrawUnderMinimum'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1638,12 +1693,12 @@ declare namespace xdr { class InvokeHostFunctionResultCode { readonly name: - | "invokeHostFunctionSuccess" - | "invokeHostFunctionMalformed" - | "invokeHostFunctionTrapped" - | "invokeHostFunctionResourceLimitExceeded" - | "invokeHostFunctionEntryArchived" - | "invokeHostFunctionInsufficientRefundableFee"; + | 'invokeHostFunctionSuccess' + | 'invokeHostFunctionMalformed' + | 'invokeHostFunctionTrapped' + | 'invokeHostFunctionResourceLimitExceeded' + | 'invokeHostFunctionEntryArchived' + | 'invokeHostFunctionInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3 | -4 | -5; @@ -1662,10 +1717,10 @@ declare namespace xdr { class ExtendFootprintTtlResultCode { readonly name: - | "extendFootprintTtlSuccess" - | "extendFootprintTtlMalformed" - | "extendFootprintTtlResourceLimitExceeded" - | "extendFootprintTtlInsufficientRefundableFee"; + | 'extendFootprintTtlSuccess' + | 'extendFootprintTtlMalformed' + | 'extendFootprintTtlResourceLimitExceeded' + | 'extendFootprintTtlInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3; @@ -1680,10 +1735,10 @@ declare namespace xdr { class RestoreFootprintResultCode { readonly name: - | "restoreFootprintSuccess" - | "restoreFootprintMalformed" - | "restoreFootprintResourceLimitExceeded" - | "restoreFootprintInsufficientRefundableFee"; + | 'restoreFootprintSuccess' + | 'restoreFootprintMalformed' + | 'restoreFootprintResourceLimitExceeded' + | 'restoreFootprintInsufficientRefundableFee'; readonly value: 0 | -1 | -2 | -3; @@ -1698,13 +1753,13 @@ declare namespace xdr { class OperationResultCode { readonly name: - | "opInner" - | "opBadAuth" - | "opNoAccount" - | "opNotSupported" - | "opTooManySubentries" - | "opExceededWorkLimit" - | "opTooManySponsoring"; + | 'opInner' + | 'opBadAuth' + | 'opNoAccount' + | 'opNotSupported' + | 'opTooManySubentries' + | 'opExceededWorkLimit' + | 'opTooManySponsoring'; readonly value: 0 | -1 | -2 | -3 | -4 | -5 | -6; @@ -1725,25 +1780,25 @@ declare namespace xdr { class TransactionResultCode { readonly name: - | "txFeeBumpInnerSuccess" - | "txSuccess" - | "txFailed" - | "txTooEarly" - | "txTooLate" - | "txMissingOperation" - | "txBadSeq" - | "txBadAuth" - | "txInsufficientBalance" - | "txNoAccount" - | "txInsufficientFee" - | "txBadAuthExtra" - | "txInternalError" - | "txNotSupported" - | "txFeeBumpInnerFailed" - | "txBadSponsorship" - | "txBadMinSeqAgeOrGap" - | "txMalformed" - | "txSorobanInvalid"; + | 'txFeeBumpInnerSuccess' + | 'txSuccess' + | 'txFailed' + | 'txTooEarly' + | 'txTooLate' + | 'txMissingOperation' + | 'txBadSeq' + | 'txBadAuth' + | 'txInsufficientBalance' + | 'txNoAccount' + | 'txInsufficientFee' + | 'txBadAuthExtra' + | 'txInternalError' + | 'txNotSupported' + | 'txFeeBumpInnerFailed' + | 'txBadSponsorship' + | 'txBadMinSeqAgeOrGap' + | 'txMalformed' + | 'txSorobanInvalid'; readonly value: | 1 @@ -1807,11 +1862,11 @@ declare namespace xdr { class CryptoKeyType { readonly name: - | "keyTypeEd25519" - | "keyTypePreAuthTx" - | "keyTypeHashX" - | "keyTypeEd25519SignedPayload" - | "keyTypeMuxedEd25519"; + | 'keyTypeEd25519' + | 'keyTypePreAuthTx' + | 'keyTypeHashX' + | 'keyTypeEd25519SignedPayload' + | 'keyTypeMuxedEd25519'; readonly value: 0 | 1 | 2 | 3 | 256; @@ -1827,7 +1882,7 @@ declare namespace xdr { } class PublicKeyType { - readonly name: "publicKeyTypeEd25519"; + readonly name: 'publicKeyTypeEd25519'; readonly value: 0; @@ -1836,10 +1891,10 @@ declare namespace xdr { class SignerKeyType { readonly name: - | "signerKeyTypeEd25519" - | "signerKeyTypePreAuthTx" - | "signerKeyTypeHashX" - | "signerKeyTypeEd25519SignedPayload"; + | 'signerKeyTypeEd25519' + | 'signerKeyTypePreAuthTx' + | 'signerKeyTypeHashX' + | 'signerKeyTypeEd25519SignedPayload'; readonly value: 0 | 1 | 2 | 3; @@ -1854,9 +1909,9 @@ declare namespace xdr { class BinaryFuseFilterType { readonly name: - | "binaryFuseFilter8Bit" - | "binaryFuseFilter16Bit" - | "binaryFuseFilter32Bit"; + | 'binaryFuseFilter8Bit' + | 'binaryFuseFilter16Bit' + | 'binaryFuseFilter32Bit'; readonly value: 0 | 1 | 2; @@ -1868,7 +1923,7 @@ declare namespace xdr { } class ClaimableBalanceIdType { - readonly name: "claimableBalanceIdTypeV0"; + readonly name: 'claimableBalanceIdTypeV0'; readonly value: 0; @@ -1877,28 +1932,28 @@ declare namespace xdr { class ScValType { readonly name: - | "scvBool" - | "scvVoid" - | "scvError" - | "scvU32" - | "scvI32" - | "scvU64" - | "scvI64" - | "scvTimepoint" - | "scvDuration" - | "scvU128" - | "scvI128" - | "scvU256" - | "scvI256" - | "scvBytes" - | "scvString" - | "scvSymbol" - | "scvVec" - | "scvMap" - | "scvAddress" - | "scvContractInstance" - | "scvLedgerKeyContractInstance" - | "scvLedgerKeyNonce"; + | 'scvBool' + | 'scvVoid' + | 'scvError' + | 'scvU32' + | 'scvI32' + | 'scvU64' + | 'scvI64' + | 'scvTimepoint' + | 'scvDuration' + | 'scvU128' + | 'scvI128' + | 'scvU256' + | 'scvI256' + | 'scvBytes' + | 'scvString' + | 'scvSymbol' + | 'scvVec' + | 'scvMap' + | 'scvAddress' + | 'scvContractInstance' + | 'scvLedgerKeyContractInstance' + | 'scvLedgerKeyNonce'; readonly value: | 0 @@ -1971,16 +2026,16 @@ declare namespace xdr { class ScErrorType { readonly name: - | "sceContract" - | "sceWasmVm" - | "sceContext" - | "sceStorage" - | "sceObject" - | "sceCrypto" - | "sceEvents" - | "sceBudget" - | "sceValue" - | "sceAuth"; + | 'sceContract' + | 'sceWasmVm' + | 'sceContext' + | 'sceStorage' + | 'sceObject' + | 'sceCrypto' + | 'sceEvents' + | 'sceBudget' + | 'sceValue' + | 'sceAuth'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2007,16 +2062,16 @@ declare namespace xdr { class ScErrorCode { readonly name: - | "scecArithDomain" - | "scecIndexBounds" - | "scecInvalidInput" - | "scecMissingValue" - | "scecExistingValue" - | "scecExceededLimit" - | "scecInvalidAction" - | "scecInternalError" - | "scecUnexpectedType" - | "scecUnexpectedSize"; + | 'scecArithDomain' + | 'scecIndexBounds' + | 'scecInvalidInput' + | 'scecMissingValue' + | 'scecExistingValue' + | 'scecExceededLimit' + | 'scecInvalidAction' + | 'scecInternalError' + | 'scecUnexpectedType' + | 'scecUnexpectedSize'; readonly value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; @@ -2042,7 +2097,7 @@ declare namespace xdr { } class ContractExecutableType { - readonly name: "contractExecutableWasm" | "contractExecutableStellarAsset"; + readonly name: 'contractExecutableWasm' | 'contractExecutableStellarAsset'; readonly value: 0 | 1; @@ -2053,11 +2108,11 @@ declare namespace xdr { class ScAddressType { readonly name: - | "scAddressTypeAccount" - | "scAddressTypeContract" - | "scAddressTypeMuxedAccount" - | "scAddressTypeClaimableBalance" - | "scAddressTypeLiquidityPool"; + | 'scAddressTypeAccount' + | 'scAddressTypeContract' + | 'scAddressTypeMuxedAccount' + | 'scAddressTypeClaimableBalance' + | 'scAddressTypeLiquidityPool'; readonly value: 0 | 1 | 2 | 3 | 4; @@ -2073,7 +2128,7 @@ declare namespace xdr { } class ScEnvMetaKind { - readonly name: "scEnvMetaKindInterfaceVersion"; + readonly name: 'scEnvMetaKindInterfaceVersion'; readonly value: 0; @@ -2081,7 +2136,7 @@ declare namespace xdr { } class ScMetaKind { - readonly name: "scMetaV0"; + readonly name: 'scMetaV0'; readonly value: 0; @@ -2090,32 +2145,32 @@ declare namespace xdr { class ScSpecType { readonly name: - | "scSpecTypeVal" - | "scSpecTypeBool" - | "scSpecTypeVoid" - | "scSpecTypeError" - | "scSpecTypeU32" - | "scSpecTypeI32" - | "scSpecTypeU64" - | "scSpecTypeI64" - | "scSpecTypeTimepoint" - | "scSpecTypeDuration" - | "scSpecTypeU128" - | "scSpecTypeI128" - | "scSpecTypeU256" - | "scSpecTypeI256" - | "scSpecTypeBytes" - | "scSpecTypeString" - | "scSpecTypeSymbol" - | "scSpecTypeAddress" - | "scSpecTypeMuxedAddress" - | "scSpecTypeOption" - | "scSpecTypeResult" - | "scSpecTypeVec" - | "scSpecTypeMap" - | "scSpecTypeTuple" - | "scSpecTypeBytesN" - | "scSpecTypeUdt"; + | 'scSpecTypeVal' + | 'scSpecTypeBool' + | 'scSpecTypeVoid' + | 'scSpecTypeError' + | 'scSpecTypeU32' + | 'scSpecTypeI32' + | 'scSpecTypeU64' + | 'scSpecTypeI64' + | 'scSpecTypeTimepoint' + | 'scSpecTypeDuration' + | 'scSpecTypeU128' + | 'scSpecTypeI128' + | 'scSpecTypeU256' + | 'scSpecTypeI256' + | 'scSpecTypeBytes' + | 'scSpecTypeString' + | 'scSpecTypeSymbol' + | 'scSpecTypeAddress' + | 'scSpecTypeMuxedAddress' + | 'scSpecTypeOption' + | 'scSpecTypeResult' + | 'scSpecTypeVec' + | 'scSpecTypeMap' + | 'scSpecTypeTuple' + | 'scSpecTypeBytesN' + | 'scSpecTypeUdt'; readonly value: | 0 @@ -2199,7 +2254,7 @@ declare namespace xdr { } class ScSpecUdtUnionCaseV0Kind { - readonly name: "scSpecUdtUnionCaseVoidV0" | "scSpecUdtUnionCaseTupleV0"; + readonly name: 'scSpecUdtUnionCaseVoidV0' | 'scSpecUdtUnionCaseTupleV0'; readonly value: 0 | 1; @@ -2210,8 +2265,8 @@ declare namespace xdr { class ScSpecEventParamLocationV0 { readonly name: - | "scSpecEventParamLocationData" - | "scSpecEventParamLocationTopicList"; + | 'scSpecEventParamLocationData' + | 'scSpecEventParamLocationTopicList'; readonly value: 0 | 1; @@ -2222,9 +2277,9 @@ declare namespace xdr { class ScSpecEventDataFormat { readonly name: - | "scSpecEventDataFormatSingleValue" - | "scSpecEventDataFormatVec" - | "scSpecEventDataFormatMap"; + | 'scSpecEventDataFormatSingleValue' + | 'scSpecEventDataFormatVec' + | 'scSpecEventDataFormatMap'; readonly value: 0 | 1 | 2; @@ -2237,12 +2292,12 @@ declare namespace xdr { class ScSpecEntryKind { readonly name: - | "scSpecEntryFunctionV0" - | "scSpecEntryUdtStructV0" - | "scSpecEntryUdtUnionV0" - | "scSpecEntryUdtEnumV0" - | "scSpecEntryUdtErrorEnumV0" - | "scSpecEntryEventV0"; + | 'scSpecEntryFunctionV0' + | 'scSpecEntryUdtStructV0' + | 'scSpecEntryUdtUnionV0' + | 'scSpecEntryUdtEnumV0' + | 'scSpecEntryUdtErrorEnumV0' + | 'scSpecEntryEventV0'; readonly value: 0 | 1 | 2 | 3 | 4 | 5; @@ -2261,76 +2316,76 @@ declare namespace xdr { class ContractCostType { readonly name: - | "wasmInsnExec" - | "memAlloc" - | "memCpy" - | "memCmp" - | "dispatchHostFunction" - | "visitObject" - | "valSer" - | "valDeser" - | "computeSha256Hash" - | "computeEd25519PubKey" - | "verifyEd25519Sig" - | "vmInstantiation" - | "vmCachedInstantiation" - | "invokeVmFunction" - | "computeKeccak256Hash" - | "decodeEcdsaCurve256Sig" - | "recoverEcdsaSecp256k1Key" - | "int256AddSub" - | "int256Mul" - | "int256Div" - | "int256Pow" - | "int256Shift" - | "chaCha20DrawBytes" - | "parseWasmInstructions" - | "parseWasmFunctions" - | "parseWasmGlobals" - | "parseWasmTableEntries" - | "parseWasmTypes" - | "parseWasmDataSegments" - | "parseWasmElemSegments" - | "parseWasmImports" - | "parseWasmExports" - | "parseWasmDataSegmentBytes" - | "instantiateWasmInstructions" - | "instantiateWasmFunctions" - | "instantiateWasmGlobals" - | "instantiateWasmTableEntries" - | "instantiateWasmTypes" - | "instantiateWasmDataSegments" - | "instantiateWasmElemSegments" - | "instantiateWasmImports" - | "instantiateWasmExports" - | "instantiateWasmDataSegmentBytes" - | "sec1DecodePointUncompressed" - | "verifyEcdsaSecp256r1Sig" - | "bls12381EncodeFp" - | "bls12381DecodeFp" - | "bls12381G1CheckPointOnCurve" - | "bls12381G1CheckPointInSubgroup" - | "bls12381G2CheckPointOnCurve" - | "bls12381G2CheckPointInSubgroup" - | "bls12381G1ProjectiveToAffine" - | "bls12381G2ProjectiveToAffine" - | "bls12381G1Add" - | "bls12381G1Mul" - | "bls12381G1Msm" - | "bls12381MapFpToG1" - | "bls12381HashToG1" - | "bls12381G2Add" - | "bls12381G2Mul" - | "bls12381G2Msm" - | "bls12381MapFp2ToG2" - | "bls12381HashToG2" - | "bls12381Pairing" - | "bls12381FrFromU256" - | "bls12381FrToU256" - | "bls12381FrAddSub" - | "bls12381FrMul" - | "bls12381FrPow" - | "bls12381FrInv"; + | 'wasmInsnExec' + | 'memAlloc' + | 'memCpy' + | 'memCmp' + | 'dispatchHostFunction' + | 'visitObject' + | 'valSer' + | 'valDeser' + | 'computeSha256Hash' + | 'computeEd25519PubKey' + | 'verifyEd25519Sig' + | 'vmInstantiation' + | 'vmCachedInstantiation' + | 'invokeVmFunction' + | 'computeKeccak256Hash' + | 'decodeEcdsaCurve256Sig' + | 'recoverEcdsaSecp256k1Key' + | 'int256AddSub' + | 'int256Mul' + | 'int256Div' + | 'int256Pow' + | 'int256Shift' + | 'chaCha20DrawBytes' + | 'parseWasmInstructions' + | 'parseWasmFunctions' + | 'parseWasmGlobals' + | 'parseWasmTableEntries' + | 'parseWasmTypes' + | 'parseWasmDataSegments' + | 'parseWasmElemSegments' + | 'parseWasmImports' + | 'parseWasmExports' + | 'parseWasmDataSegmentBytes' + | 'instantiateWasmInstructions' + | 'instantiateWasmFunctions' + | 'instantiateWasmGlobals' + | 'instantiateWasmTableEntries' + | 'instantiateWasmTypes' + | 'instantiateWasmDataSegments' + | 'instantiateWasmElemSegments' + | 'instantiateWasmImports' + | 'instantiateWasmExports' + | 'instantiateWasmDataSegmentBytes' + | 'sec1DecodePointUncompressed' + | 'verifyEcdsaSecp256r1Sig' + | 'bls12381EncodeFp' + | 'bls12381DecodeFp' + | 'bls12381G1CheckPointOnCurve' + | 'bls12381G1CheckPointInSubgroup' + | 'bls12381G2CheckPointOnCurve' + | 'bls12381G2CheckPointInSubgroup' + | 'bls12381G1ProjectiveToAffine' + | 'bls12381G2ProjectiveToAffine' + | 'bls12381G1Add' + | 'bls12381G1Mul' + | 'bls12381G1Msm' + | 'bls12381MapFpToG1' + | 'bls12381HashToG1' + | 'bls12381G2Add' + | 'bls12381G2Mul' + | 'bls12381G2Msm' + | 'bls12381MapFp2ToG2' + | 'bls12381HashToG2' + | 'bls12381Pairing' + | 'bls12381FrFromU256' + | 'bls12381FrToU256' + | 'bls12381FrAddSub' + | 'bls12381FrMul' + | 'bls12381FrPow' + | 'bls12381FrInv'; readonly value: | 0 @@ -2547,23 +2602,23 @@ declare namespace xdr { class ConfigSettingId { readonly name: - | "configSettingContractMaxSizeBytes" - | "configSettingContractComputeV0" - | "configSettingContractLedgerCostV0" - | "configSettingContractHistoricalDataV0" - | "configSettingContractEventsV0" - | "configSettingContractBandwidthV0" - | "configSettingContractCostParamsCpuInstructions" - | "configSettingContractCostParamsMemoryBytes" - | "configSettingContractDataKeySizeBytes" - | "configSettingContractDataEntrySizeBytes" - | "configSettingStateArchival" - | "configSettingContractExecutionLanes" - | "configSettingLiveSorobanStateSizeWindow" - | "configSettingEvictionIterator" - | "configSettingContractParallelComputeV0" - | "configSettingContractLedgerCostExtV0" - | "configSettingScpTiming"; + | 'configSettingContractMaxSizeBytes' + | 'configSettingContractComputeV0' + | 'configSettingContractLedgerCostV0' + | 'configSettingContractHistoricalDataV0' + | 'configSettingContractEventsV0' + | 'configSettingContractBandwidthV0' + | 'configSettingContractCostParamsCpuInstructions' + | 'configSettingContractCostParamsMemoryBytes' + | 'configSettingContractDataKeySizeBytes' + | 'configSettingContractDataEntrySizeBytes' + | 'configSettingStateArchival' + | 'configSettingContractExecutionLanes' + | 'configSettingLiveSorobanStateSizeWindow' + | 'configSettingEvictionIterator' + | 'configSettingContractParallelComputeV0' + | 'configSettingContractLedgerCostExtV0' + | 'configSettingScpTiming'; readonly value: | 0 @@ -2702,9 +2757,9 @@ declare namespace xdr { value(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpBallot; @@ -2714,13 +2769,13 @@ declare namespace xdr { static toXDR(value: ScpBallot): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpBallot; + static fromXDR(input: Buffer, format?: 'raw'): ScpBallot; - static fromXDR(input: string, format: "hex" | "base64"): ScpBallot; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpBallot; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpNomination { @@ -2736,9 +2791,9 @@ declare namespace xdr { accepted(value?: Buffer[]): Buffer[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpNomination; @@ -2748,13 +2803,13 @@ declare namespace xdr { static toXDR(value: ScpNomination): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpNomination; + static fromXDR(input: Buffer, format?: 'raw'): ScpNomination; - static fromXDR(input: string, format: "hex" | "base64"): ScpNomination; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpNomination; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementPrepare { @@ -2779,9 +2834,9 @@ declare namespace xdr { nH(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementPrepare; @@ -2791,16 +2846,16 @@ declare namespace xdr { static toXDR(value: ScpStatementPrepare): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementPrepare; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPrepare; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementPrepare; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementConfirm { @@ -2822,9 +2877,9 @@ declare namespace xdr { quorumSetHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementConfirm; @@ -2834,16 +2889,16 @@ declare namespace xdr { static toXDR(value: ScpStatementConfirm): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementConfirm; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementConfirm; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementConfirm; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementExternalize { @@ -2859,9 +2914,9 @@ declare namespace xdr { commitQuorumSetHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementExternalize; @@ -2871,16 +2926,16 @@ declare namespace xdr { static toXDR(value: ScpStatementExternalize): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementExternalize; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementExternalize; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementExternalize; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatement { @@ -2896,9 +2951,9 @@ declare namespace xdr { pledges(value?: ScpStatementPledges): ScpStatementPledges; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatement; @@ -2908,13 +2963,13 @@ declare namespace xdr { static toXDR(value: ScpStatement): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatement; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatement; - static fromXDR(input: string, format: "hex" | "base64"): ScpStatement; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpStatement; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpEnvelope { @@ -2924,9 +2979,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpEnvelope; @@ -2936,13 +2991,13 @@ declare namespace xdr { static toXDR(value: ScpEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): ScpEnvelope; - static fromXDR(input: string, format: "hex" | "base64"): ScpEnvelope; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpQuorumSet { @@ -2958,9 +3013,9 @@ declare namespace xdr { innerSets(value?: ScpQuorumSet[]): ScpQuorumSet[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpQuorumSet; @@ -2970,13 +3025,13 @@ declare namespace xdr { static toXDR(value: ScpQuorumSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpQuorumSet; + static fromXDR(input: Buffer, format?: 'raw'): ScpQuorumSet; - static fromXDR(input: string, format: "hex" | "base64"): ScpQuorumSet; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpQuorumSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AlphaNum4 { @@ -2986,9 +3041,9 @@ declare namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AlphaNum4; @@ -2998,13 +3053,13 @@ declare namespace xdr { static toXDR(value: AlphaNum4): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AlphaNum4; + static fromXDR(input: Buffer, format?: 'raw'): AlphaNum4; - static fromXDR(input: string, format: "hex" | "base64"): AlphaNum4; + static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum4; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AlphaNum12 { @@ -3014,9 +3069,9 @@ declare namespace xdr { issuer(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AlphaNum12; @@ -3026,13 +3081,13 @@ declare namespace xdr { static toXDR(value: AlphaNum12): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AlphaNum12; + static fromXDR(input: Buffer, format?: 'raw'): AlphaNum12; - static fromXDR(input: string, format: "hex" | "base64"): AlphaNum12; + static fromXDR(input: string, format: 'hex' | 'base64'): AlphaNum12; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Price { @@ -3042,9 +3097,9 @@ declare namespace xdr { d(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Price; @@ -3054,13 +3109,13 @@ declare namespace xdr { static toXDR(value: Price): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Price; + static fromXDR(input: Buffer, format?: 'raw'): Price; - static fromXDR(input: string, format: "hex" | "base64"): Price; + static fromXDR(input: string, format: 'hex' | 'base64'): Price; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Liabilities { @@ -3070,9 +3125,9 @@ declare namespace xdr { selling(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Liabilities; @@ -3082,13 +3137,13 @@ declare namespace xdr { static toXDR(value: Liabilities): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Liabilities; + static fromXDR(input: Buffer, format?: 'raw'): Liabilities; - static fromXDR(input: string, format: "hex" | "base64"): Liabilities; + static fromXDR(input: string, format: 'hex' | 'base64'): Liabilities; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Signer { @@ -3098,9 +3153,9 @@ declare namespace xdr { weight(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Signer; @@ -3110,13 +3165,13 @@ declare namespace xdr { static toXDR(value: Signer): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Signer; + static fromXDR(input: Buffer, format?: 'raw'): Signer; - static fromXDR(input: string, format: "hex" | "base64"): Signer; + static fromXDR(input: string, format: 'hex' | 'base64'): Signer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV3 { @@ -3132,9 +3187,9 @@ declare namespace xdr { seqTime(value?: TimePoint): TimePoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV3; @@ -3144,16 +3199,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV3): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV3; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV3; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV3; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV2 { @@ -3174,9 +3229,9 @@ declare namespace xdr { ext(value?: AccountEntryExtensionV2Ext): AccountEntryExtensionV2Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV2; @@ -3186,16 +3241,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV1 { @@ -3208,9 +3263,9 @@ declare namespace xdr { ext(value?: AccountEntryExtensionV1Ext): AccountEntryExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV1; @@ -3220,16 +3275,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntry { @@ -3266,9 +3321,9 @@ declare namespace xdr { ext(value?: AccountEntryExt): AccountEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntry; @@ -3278,13 +3333,13 @@ declare namespace xdr { static toXDR(value: AccountEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntry; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntry; - static fromXDR(input: string, format: "hex" | "base64"): AccountEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExtensionV2 { @@ -3297,9 +3352,9 @@ declare namespace xdr { ext(value?: TrustLineEntryExtensionV2Ext): TrustLineEntryExtensionV2Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExtensionV2; @@ -3309,16 +3364,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExtensionV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryExtensionV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryV1 { @@ -3331,9 +3386,9 @@ declare namespace xdr { ext(value?: TrustLineEntryV1Ext): TrustLineEntryV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryV1; @@ -3343,13 +3398,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntryV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntry { @@ -3374,9 +3429,9 @@ declare namespace xdr { ext(value?: TrustLineEntryExt): TrustLineEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntry; @@ -3386,13 +3441,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntry; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntry; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OfferEntry { @@ -3423,9 +3478,9 @@ declare namespace xdr { ext(value?: OfferEntryExt): OfferEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OfferEntry; @@ -3435,13 +3490,13 @@ declare namespace xdr { static toXDR(value: OfferEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OfferEntry; + static fromXDR(input: Buffer, format?: 'raw'): OfferEntry; - static fromXDR(input: string, format: "hex" | "base64"): OfferEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DataEntry { @@ -3460,9 +3515,9 @@ declare namespace xdr { ext(value?: DataEntryExt): DataEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DataEntry; @@ -3472,13 +3527,13 @@ declare namespace xdr { static toXDR(value: DataEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DataEntry; + static fromXDR(input: Buffer, format?: 'raw'): DataEntry; - static fromXDR(input: string, format: "hex" | "base64"): DataEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): DataEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimantV0 { @@ -3491,9 +3546,9 @@ declare namespace xdr { predicate(value?: ClaimPredicate): ClaimPredicate; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimantV0; @@ -3503,13 +3558,13 @@ declare namespace xdr { static toXDR(value: ClaimantV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimantV0; + static fromXDR(input: Buffer, format?: 'raw'): ClaimantV0; - static fromXDR(input: string, format: "hex" | "base64"): ClaimantV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimantV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExtensionV1 { @@ -3524,9 +3579,9 @@ declare namespace xdr { flags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1; @@ -3538,17 +3593,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClaimableBalanceEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntry { @@ -3570,9 +3625,9 @@ declare namespace xdr { ext(value?: ClaimableBalanceEntryExt): ClaimableBalanceEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntry; @@ -3582,16 +3637,16 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntry; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolConstantProductParameters { @@ -3603,9 +3658,9 @@ declare namespace xdr { fee(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolConstantProductParameters; @@ -3620,17 +3675,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): LiquidityPoolConstantProductParameters; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolConstantProductParameters; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntryConstantProduct { @@ -3654,9 +3709,9 @@ declare namespace xdr { poolSharesTrustLineCount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntryConstantProduct; @@ -3668,17 +3723,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): LiquidityPoolEntryConstantProduct; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolEntryConstantProduct; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntry { @@ -3691,9 +3746,9 @@ declare namespace xdr { body(value?: LiquidityPoolEntryBody): LiquidityPoolEntryBody; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntry; @@ -3703,13 +3758,13 @@ declare namespace xdr { static toXDR(value: LiquidityPoolEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntry; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntry; - static fromXDR(input: string, format: "hex" | "base64"): LiquidityPoolEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): LiquidityPoolEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractDataEntry { @@ -3731,9 +3786,9 @@ declare namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractDataEntry; @@ -3743,13 +3798,13 @@ declare namespace xdr { static toXDR(value: ContractDataEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractDataEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractDataEntry; - static fromXDR(input: string, format: "hex" | "base64"): ContractDataEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractDataEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeCostInputs { @@ -3789,9 +3844,9 @@ declare namespace xdr { nDataSegmentBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeCostInputs; @@ -3801,16 +3856,16 @@ declare namespace xdr { static toXDR(value: ContractCodeCostInputs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeCostInputs; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeCostInputs; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeCostInputs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntryV1 { @@ -3823,9 +3878,9 @@ declare namespace xdr { costInputs(value?: ContractCodeCostInputs): ContractCodeCostInputs; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntryV1; @@ -3835,16 +3890,16 @@ declare namespace xdr { static toXDR(value: ContractCodeEntryV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryV1; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeEntryV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntry { @@ -3860,9 +3915,9 @@ declare namespace xdr { code(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntry; @@ -3872,13 +3927,13 @@ declare namespace xdr { static toXDR(value: ContractCodeEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntry; - static fromXDR(input: string, format: "hex" | "base64"): ContractCodeEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractCodeEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TtlEntry { @@ -3888,9 +3943,9 @@ declare namespace xdr { liveUntilLedgerSeq(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TtlEntry; @@ -3900,13 +3955,13 @@ declare namespace xdr { static toXDR(value: TtlEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TtlEntry; + static fromXDR(input: Buffer, format?: 'raw'): TtlEntry; - static fromXDR(input: string, format: "hex" | "base64"): TtlEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): TtlEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExtensionV1 { @@ -3919,9 +3974,9 @@ declare namespace xdr { ext(value?: LedgerEntryExtensionV1Ext): LedgerEntryExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExtensionV1; @@ -3931,16 +3986,16 @@ declare namespace xdr { static toXDR(value: LedgerEntryExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerEntryExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntry { @@ -3956,9 +4011,9 @@ declare namespace xdr { ext(value?: LedgerEntryExt): LedgerEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntry; @@ -3968,13 +4023,13 @@ declare namespace xdr { static toXDR(value: LedgerEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntry; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntry; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyAccount { @@ -3982,9 +4037,9 @@ declare namespace xdr { accountId(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyAccount; @@ -3994,13 +4049,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyAccount): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyAccount; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyAccount; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyAccount; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyAccount; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyTrustLine { @@ -4010,9 +4065,9 @@ declare namespace xdr { asset(value?: TrustLineAsset): TrustLineAsset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyTrustLine; @@ -4022,13 +4077,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyTrustLine): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTrustLine; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTrustLine; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTrustLine; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTrustLine; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyOffer { @@ -4038,9 +4093,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyOffer; @@ -4050,13 +4105,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyOffer): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyOffer; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyOffer; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyOffer; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyOffer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyData { @@ -4069,9 +4124,9 @@ declare namespace xdr { dataName(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyData; @@ -4081,13 +4136,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyData; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyData; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyClaimableBalance { @@ -4095,9 +4150,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyClaimableBalance; @@ -4107,16 +4162,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyClaimableBalance): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyClaimableBalance; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyClaimableBalance; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyClaimableBalance; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyLiquidityPool { @@ -4124,9 +4179,9 @@ declare namespace xdr { liquidityPoolId(value?: PoolId): PoolId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyLiquidityPool; @@ -4136,16 +4191,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyLiquidityPool): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyLiquidityPool; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyLiquidityPool; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyLiquidityPool; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyContractData { @@ -4161,9 +4216,9 @@ declare namespace xdr { durability(value?: ContractDataDurability): ContractDataDurability; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyContractData; @@ -4173,16 +4228,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyContractData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractData; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyContractData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyContractCode { @@ -4190,9 +4245,9 @@ declare namespace xdr { hash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyContractCode; @@ -4202,16 +4257,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyContractCode): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyContractCode; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyContractCode; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyContractCode; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyConfigSetting { @@ -4219,9 +4274,9 @@ declare namespace xdr { configSettingId(value?: ConfigSettingId): ConfigSettingId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyConfigSetting; @@ -4231,16 +4286,16 @@ declare namespace xdr { static toXDR(value: LedgerKeyConfigSetting): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyConfigSetting; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyConfigSetting; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerKeyConfigSetting; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKeyTtl { @@ -4248,9 +4303,9 @@ declare namespace xdr { keyHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKeyTtl; @@ -4260,13 +4315,13 @@ declare namespace xdr { static toXDR(value: LedgerKeyTtl): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKeyTtl; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKeyTtl; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKeyTtl; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKeyTtl; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketMetadata { @@ -4276,9 +4331,9 @@ declare namespace xdr { ext(value?: BucketMetadataExt): BucketMetadataExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketMetadata; @@ -4288,13 +4343,13 @@ declare namespace xdr { static toXDR(value: BucketMetadata): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketMetadata; + static fromXDR(input: Buffer, format?: 'raw'): BucketMetadata; - static fromXDR(input: string, format: "hex" | "base64"): BucketMetadata; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadata; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseValueSignature { @@ -4304,9 +4359,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseValueSignature; @@ -4316,16 +4371,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseValueSignature): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseValueSignature; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseValueSignature; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseValueSignature; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarValue { @@ -4344,9 +4399,9 @@ declare namespace xdr { ext(value?: StellarValueExt): StellarValueExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarValue; @@ -4356,13 +4411,13 @@ declare namespace xdr { static toXDR(value: StellarValue): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarValue; + static fromXDR(input: Buffer, format?: 'raw'): StellarValue; - static fromXDR(input: string, format: "hex" | "base64"): StellarValue; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarValue; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExtensionV1 { @@ -4372,9 +4427,9 @@ declare namespace xdr { ext(value?: LedgerHeaderExtensionV1Ext): LedgerHeaderExtensionV1Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExtensionV1; @@ -4384,16 +4439,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExtensionV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderExtensionV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeader { @@ -4445,9 +4500,9 @@ declare namespace xdr { ext(value?: LedgerHeaderExt): LedgerHeaderExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeader; @@ -4457,13 +4512,13 @@ declare namespace xdr { static toXDR(value: LedgerHeader): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeader; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeader; - static fromXDR(input: string, format: "hex" | "base64"): LedgerHeader; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeader; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigUpgradeSetKey { @@ -4473,9 +4528,9 @@ declare namespace xdr { contentHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigUpgradeSetKey; @@ -4485,16 +4540,16 @@ declare namespace xdr { static toXDR(value: ConfigUpgradeSetKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSetKey; + static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSetKey; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigUpgradeSetKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigUpgradeSet { @@ -4502,9 +4557,9 @@ declare namespace xdr { updatedEntry(value?: ConfigSettingEntry[]): ConfigSettingEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigUpgradeSet; @@ -4514,13 +4569,13 @@ declare namespace xdr { static toXDR(value: ConfigUpgradeSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigUpgradeSet; + static fromXDR(input: Buffer, format?: 'raw'): ConfigUpgradeSet; - static fromXDR(input: string, format: "hex" | "base64"): ConfigUpgradeSet; + static fromXDR(input: string, format: 'hex' | 'base64'): ConfigUpgradeSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ParallelTxsComponent { @@ -4535,9 +4590,9 @@ declare namespace xdr { value?: TransactionEnvelope[][][], ): TransactionEnvelope[][][]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ParallelTxsComponent; @@ -4547,16 +4602,16 @@ declare namespace xdr { static toXDR(value: ParallelTxsComponent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ParallelTxsComponent; + static fromXDR(input: Buffer, format?: 'raw'): ParallelTxsComponent; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ParallelTxsComponent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TxSetComponentTxsMaybeDiscountedFee { @@ -4569,9 +4624,9 @@ declare namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TxSetComponentTxsMaybeDiscountedFee; @@ -4583,17 +4638,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TxSetComponentTxsMaybeDiscountedFee; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TxSetComponentTxsMaybeDiscountedFee; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSet { @@ -4606,9 +4661,9 @@ declare namespace xdr { txes(value?: TransactionEnvelope[]): TransactionEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSet; @@ -4618,13 +4673,13 @@ declare namespace xdr { static toXDR(value: TransactionSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSet; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSet; - static fromXDR(input: string, format: "hex" | "base64"): TransactionSet; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSetV1 { @@ -4637,9 +4692,9 @@ declare namespace xdr { phases(value?: TransactionPhase[]): TransactionPhase[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSetV1; @@ -4649,13 +4704,13 @@ declare namespace xdr { static toXDR(value: TransactionSetV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSetV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSetV1; - static fromXDR(input: string, format: "hex" | "base64"): TransactionSetV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionSetV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultPair { @@ -4668,9 +4723,9 @@ declare namespace xdr { result(value?: TransactionResult): TransactionResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultPair; @@ -4680,16 +4735,16 @@ declare namespace xdr { static toXDR(value: TransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultPair; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultPair; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultPair; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultSet { @@ -4697,9 +4752,9 @@ declare namespace xdr { results(value?: TransactionResultPair[]): TransactionResultPair[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultSet; @@ -4709,16 +4764,16 @@ declare namespace xdr { static toXDR(value: TransactionResultSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultSet; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultSet; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryEntry { @@ -4734,9 +4789,9 @@ declare namespace xdr { ext(value?: TransactionHistoryEntryExt): TransactionHistoryEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryEntry; @@ -4746,16 +4801,16 @@ declare namespace xdr { static toXDR(value: TransactionHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryResultEntry { @@ -4773,9 +4828,9 @@ declare namespace xdr { value?: TransactionHistoryResultEntryExt, ): TransactionHistoryResultEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryResultEntry; @@ -4787,17 +4842,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionHistoryResultEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryResultEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderHistoryEntry { @@ -4813,9 +4868,9 @@ declare namespace xdr { ext(value?: LedgerHeaderHistoryEntryExt): LedgerHeaderHistoryEntryExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderHistoryEntry; @@ -4825,16 +4880,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerScpMessages { @@ -4844,9 +4899,9 @@ declare namespace xdr { messages(value?: ScpEnvelope[]): ScpEnvelope[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerScpMessages; @@ -4856,13 +4911,13 @@ declare namespace xdr { static toXDR(value: LedgerScpMessages): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerScpMessages; + static fromXDR(input: Buffer, format?: 'raw'): LedgerScpMessages; - static fromXDR(input: string, format: "hex" | "base64"): LedgerScpMessages; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerScpMessages; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpHistoryEntryV0 { @@ -4875,9 +4930,9 @@ declare namespace xdr { ledgerMessages(value?: LedgerScpMessages): LedgerScpMessages; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpHistoryEntryV0; @@ -4887,13 +4942,13 @@ declare namespace xdr { static toXDR(value: ScpHistoryEntryV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntryV0; + static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntryV0; - static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntryV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntryV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationMeta { @@ -4901,9 +4956,9 @@ declare namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationMeta; @@ -4913,13 +4968,13 @@ declare namespace xdr { static toXDR(value: OperationMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationMeta; + static fromXDR(input: Buffer, format?: 'raw'): OperationMeta; - static fromXDR(input: string, format: "hex" | "base64"): OperationMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV1 { @@ -4932,9 +4987,9 @@ declare namespace xdr { operations(value?: OperationMeta[]): OperationMeta[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV1; @@ -4944,13 +4999,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV1; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV1; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV2 { @@ -4966,9 +5021,9 @@ declare namespace xdr { txChangesAfter(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV2; @@ -4978,13 +5033,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEventV0 { @@ -4994,9 +5049,9 @@ declare namespace xdr { data(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEventV0; @@ -5006,13 +5061,13 @@ declare namespace xdr { static toXDR(value: ContractEventV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEventV0; + static fromXDR(input: Buffer, format?: 'raw'): ContractEventV0; - static fromXDR(input: string, format: "hex" | "base64"): ContractEventV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEvent { @@ -5031,9 +5086,9 @@ declare namespace xdr { body(value?: ContractEventBody): ContractEventBody; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEvent; @@ -5043,13 +5098,13 @@ declare namespace xdr { static toXDR(value: ContractEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEvent; + static fromXDR(input: Buffer, format?: 'raw'): ContractEvent; - static fromXDR(input: string, format: "hex" | "base64"): ContractEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DiagnosticEvent { @@ -5062,9 +5117,9 @@ declare namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DiagnosticEvent; @@ -5074,13 +5129,13 @@ declare namespace xdr { static toXDR(value: DiagnosticEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DiagnosticEvent; + static fromXDR(input: Buffer, format?: 'raw'): DiagnosticEvent; - static fromXDR(input: string, format: "hex" | "base64"): DiagnosticEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): DiagnosticEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaExtV1 { @@ -5099,9 +5154,9 @@ declare namespace xdr { rentFeeCharged(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaExtV1; @@ -5111,16 +5166,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExtV1; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExtV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaExtV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMeta { @@ -5139,9 +5194,9 @@ declare namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMeta; @@ -5151,16 +5206,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMeta; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMeta; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV3 { @@ -5184,9 +5239,9 @@ declare namespace xdr { value?: null | SorobanTransactionMeta, ): null | SorobanTransactionMeta; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV3; @@ -5196,13 +5251,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV3): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV3; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV3; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV3; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV3; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationMetaV2 { @@ -5218,9 +5273,9 @@ declare namespace xdr { events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationMetaV2; @@ -5230,13 +5285,13 @@ declare namespace xdr { static toXDR(value: OperationMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): OperationMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): OperationMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaV2 { @@ -5249,9 +5304,9 @@ declare namespace xdr { returnValue(value?: null | ScVal): null | ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaV2; @@ -5261,16 +5316,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionEvent { @@ -5283,9 +5338,9 @@ declare namespace xdr { event(value?: ContractEvent): ContractEvent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionEvent; @@ -5295,13 +5350,13 @@ declare namespace xdr { static toXDR(value: TransactionEvent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionEvent; + static fromXDR(input: Buffer, format?: 'raw'): TransactionEvent; - static fromXDR(input: string, format: "hex" | "base64"): TransactionEvent; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionEvent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMetaV4 { @@ -5331,9 +5386,9 @@ declare namespace xdr { diagnosticEvents(value?: DiagnosticEvent[]): DiagnosticEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMetaV4; @@ -5343,13 +5398,13 @@ declare namespace xdr { static toXDR(value: TransactionMetaV4): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMetaV4; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMetaV4; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMetaV4; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMetaV4; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionSuccessPreImage { @@ -5359,9 +5414,9 @@ declare namespace xdr { events(value?: ContractEvent[]): ContractEvent[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionSuccessPreImage; @@ -5373,17 +5428,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): InvokeHostFunctionSuccessPreImage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionSuccessPreImage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultMeta { @@ -5399,9 +5454,9 @@ declare namespace xdr { txApplyProcessing(value?: TransactionMeta): TransactionMeta; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultMeta; @@ -5411,16 +5466,16 @@ declare namespace xdr { static toXDR(value: TransactionResultMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultMeta; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMeta; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultMetaV1 { @@ -5442,9 +5497,9 @@ declare namespace xdr { postTxApplyFeeProcessing(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultMetaV1; @@ -5454,16 +5509,16 @@ declare namespace xdr { static toXDR(value: TransactionResultMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultMetaV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UpgradeEntryMeta { @@ -5476,9 +5531,9 @@ declare namespace xdr { changes(value?: LedgerEntryChange[]): LedgerEntryChange[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UpgradeEntryMeta; @@ -5488,13 +5543,13 @@ declare namespace xdr { static toXDR(value: UpgradeEntryMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UpgradeEntryMeta; + static fromXDR(input: Buffer, format?: 'raw'): UpgradeEntryMeta; - static fromXDR(input: string, format: "hex" | "base64"): UpgradeEntryMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): UpgradeEntryMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV0 { @@ -5516,9 +5571,9 @@ declare namespace xdr { scpInfo(value?: ScpHistoryEntry[]): ScpHistoryEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV0; @@ -5528,13 +5583,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV0; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV0; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV0; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaExtV1 { @@ -5544,9 +5599,9 @@ declare namespace xdr { sorobanFeeWrite1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaExtV1; @@ -5556,16 +5611,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaExtV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExtV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExtV1; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseMetaExtV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV1 { @@ -5599,9 +5654,9 @@ declare namespace xdr { unused(value?: LedgerEntry[]): LedgerEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV1; @@ -5611,13 +5666,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV1): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV1; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV1; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV1; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV1; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaV2 { @@ -5648,9 +5703,9 @@ declare namespace xdr { evictedKeys(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaV2; @@ -5660,13 +5715,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaV2; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaV2; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaV2; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Error { @@ -5676,9 +5731,9 @@ declare namespace xdr { msg(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Error; @@ -5688,13 +5743,13 @@ declare namespace xdr { static toXDR(value: Error): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Error; + static fromXDR(input: Buffer, format?: 'raw'): Error; - static fromXDR(input: string, format: "hex" | "base64"): Error; + static fromXDR(input: string, format: 'hex' | 'base64'): Error; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SendMore { @@ -5702,9 +5757,9 @@ declare namespace xdr { numMessages(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SendMore; @@ -5714,13 +5769,13 @@ declare namespace xdr { static toXDR(value: SendMore): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SendMore; + static fromXDR(input: Buffer, format?: 'raw'): SendMore; - static fromXDR(input: string, format: "hex" | "base64"): SendMore; + static fromXDR(input: string, format: 'hex' | 'base64'): SendMore; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SendMoreExtended { @@ -5730,9 +5785,9 @@ declare namespace xdr { numBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SendMoreExtended; @@ -5742,13 +5797,13 @@ declare namespace xdr { static toXDR(value: SendMoreExtended): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SendMoreExtended; + static fromXDR(input: Buffer, format?: 'raw'): SendMoreExtended; - static fromXDR(input: string, format: "hex" | "base64"): SendMoreExtended; + static fromXDR(input: string, format: 'hex' | 'base64'): SendMoreExtended; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthCert { @@ -5764,9 +5819,9 @@ declare namespace xdr { sig(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthCert; @@ -5776,13 +5831,13 @@ declare namespace xdr { static toXDR(value: AuthCert): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthCert; + static fromXDR(input: Buffer, format?: 'raw'): AuthCert; - static fromXDR(input: string, format: "hex" | "base64"): AuthCert; + static fromXDR(input: string, format: 'hex' | 'base64'): AuthCert; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Hello { @@ -5816,9 +5871,9 @@ declare namespace xdr { nonce(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Hello; @@ -5828,13 +5883,13 @@ declare namespace xdr { static toXDR(value: Hello): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Hello; + static fromXDR(input: Buffer, format?: 'raw'): Hello; - static fromXDR(input: string, format: "hex" | "base64"): Hello; + static fromXDR(input: string, format: 'hex' | 'base64'): Hello; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Auth { @@ -5842,9 +5897,9 @@ declare namespace xdr { flags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Auth; @@ -5854,13 +5909,13 @@ declare namespace xdr { static toXDR(value: Auth): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Auth; + static fromXDR(input: Buffer, format?: 'raw'): Auth; - static fromXDR(input: string, format: "hex" | "base64"): Auth; + static fromXDR(input: string, format: 'hex' | 'base64'): Auth; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerAddress { @@ -5876,9 +5931,9 @@ declare namespace xdr { numFailures(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerAddress; @@ -5888,13 +5943,13 @@ declare namespace xdr { static toXDR(value: PeerAddress): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerAddress; + static fromXDR(input: Buffer, format?: 'raw'): PeerAddress; - static fromXDR(input: string, format: "hex" | "base64"): PeerAddress; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DontHave { @@ -5904,9 +5959,9 @@ declare namespace xdr { reqHash(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DontHave; @@ -5916,13 +5971,13 @@ declare namespace xdr { static toXDR(value: DontHave): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DontHave; + static fromXDR(input: Buffer, format?: 'raw'): DontHave; - static fromXDR(input: string, format: "hex" | "base64"): DontHave; + static fromXDR(input: string, format: 'hex' | 'base64'): DontHave; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyStartCollectingMessage { @@ -5938,9 +5993,9 @@ declare namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyStartCollectingMessage; @@ -5955,17 +6010,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyStartCollectingMessage { @@ -5980,9 +6035,9 @@ declare namespace xdr { value?: TimeSlicedSurveyStartCollectingMessage, ): TimeSlicedSurveyStartCollectingMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyStartCollectingMessage; @@ -5999,17 +6054,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyStartCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyStartCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyStopCollectingMessage { @@ -6025,9 +6080,9 @@ declare namespace xdr { ledgerNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyStopCollectingMessage; @@ -6042,17 +6097,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyStopCollectingMessage { @@ -6067,9 +6122,9 @@ declare namespace xdr { value?: TimeSlicedSurveyStopCollectingMessage, ): TimeSlicedSurveyStopCollectingMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyStopCollectingMessage; @@ -6084,17 +6139,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyStopCollectingMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyStopCollectingMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyRequestMessage { @@ -6116,9 +6171,9 @@ declare namespace xdr { commandType(value?: SurveyMessageCommandType): SurveyMessageCommandType; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyRequestMessage; @@ -6128,16 +6183,16 @@ declare namespace xdr { static toXDR(value: SurveyRequestMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyRequestMessage; + static fromXDR(input: Buffer, format?: 'raw'): SurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyRequestMessage { @@ -6156,9 +6211,9 @@ declare namespace xdr { outboundPeersIndex(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyRequestMessage; @@ -6170,17 +6225,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyRequestMessage { @@ -6195,9 +6250,9 @@ declare namespace xdr { value?: TimeSlicedSurveyRequestMessage, ): TimeSlicedSurveyRequestMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyRequestMessage; @@ -6209,17 +6264,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyRequestMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyRequestMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyResponseMessage { @@ -6241,9 +6296,9 @@ declare namespace xdr { encryptedBody(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyResponseMessage; @@ -6253,16 +6308,16 @@ declare namespace xdr { static toXDR(value: SurveyResponseMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyResponseMessage; + static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedSurveyResponseMessage { @@ -6272,9 +6327,9 @@ declare namespace xdr { nonce(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedSurveyResponseMessage; @@ -6286,17 +6341,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignedTimeSlicedSurveyResponseMessage { @@ -6311,9 +6366,9 @@ declare namespace xdr { value?: TimeSlicedSurveyResponseMessage, ): TimeSlicedSurveyResponseMessage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignedTimeSlicedSurveyResponseMessage; @@ -6328,17 +6383,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignedTimeSlicedSurveyResponseMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignedTimeSlicedSurveyResponseMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerStats { @@ -6390,9 +6445,9 @@ declare namespace xdr { duplicateFetchMessageRecv(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerStats; @@ -6402,13 +6457,13 @@ declare namespace xdr { static toXDR(value: PeerStats): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerStats; + static fromXDR(input: Buffer, format?: 'raw'): PeerStats; - static fromXDR(input: string, format: "hex" | "base64"): PeerStats; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerStats; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedNodeData { @@ -6445,9 +6500,9 @@ declare namespace xdr { maxOutboundPeerCount(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedNodeData; @@ -6457,13 +6512,13 @@ declare namespace xdr { static toXDR(value: TimeSlicedNodeData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeSlicedNodeData; + static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedNodeData; - static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedNodeData; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedNodeData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeSlicedPeerData { @@ -6473,9 +6528,9 @@ declare namespace xdr { averageLatencyMs(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeSlicedPeerData; @@ -6485,13 +6540,13 @@ declare namespace xdr { static toXDR(value: TimeSlicedPeerData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeSlicedPeerData; + static fromXDR(input: Buffer, format?: 'raw'): TimeSlicedPeerData; - static fromXDR(input: string, format: "hex" | "base64"): TimeSlicedPeerData; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeSlicedPeerData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TopologyResponseBodyV2 { @@ -6507,9 +6562,9 @@ declare namespace xdr { nodeData(value?: TimeSlicedNodeData): TimeSlicedNodeData; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TopologyResponseBodyV2; @@ -6519,16 +6574,16 @@ declare namespace xdr { static toXDR(value: TopologyResponseBodyV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TopologyResponseBodyV2; + static fromXDR(input: Buffer, format?: 'raw'): TopologyResponseBodyV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TopologyResponseBodyV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FloodAdvert { @@ -6536,9 +6591,9 @@ declare namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FloodAdvert; @@ -6548,13 +6603,13 @@ declare namespace xdr { static toXDR(value: FloodAdvert): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FloodAdvert; + static fromXDR(input: Buffer, format?: 'raw'): FloodAdvert; - static fromXDR(input: string, format: "hex" | "base64"): FloodAdvert; + static fromXDR(input: string, format: 'hex' | 'base64'): FloodAdvert; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FloodDemand { @@ -6562,9 +6617,9 @@ declare namespace xdr { txHashes(value?: Hash[]): Hash[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FloodDemand; @@ -6574,13 +6629,13 @@ declare namespace xdr { static toXDR(value: FloodDemand): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FloodDemand; + static fromXDR(input: Buffer, format?: 'raw'): FloodDemand; - static fromXDR(input: string, format: "hex" | "base64"): FloodDemand; + static fromXDR(input: string, format: 'hex' | 'base64'): FloodDemand; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthenticatedMessageV0 { @@ -6596,9 +6651,9 @@ declare namespace xdr { mac(value?: HmacSha256Mac): HmacSha256Mac; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthenticatedMessageV0; @@ -6608,16 +6663,16 @@ declare namespace xdr { static toXDR(value: AuthenticatedMessageV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessageV0; + static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessageV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AuthenticatedMessageV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedAccountMed25519 { @@ -6627,9 +6682,9 @@ declare namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedAccountMed25519; @@ -6639,16 +6694,16 @@ declare namespace xdr { static toXDR(value: MuxedAccountMed25519): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedAccountMed25519; + static fromXDR(input: Buffer, format?: 'raw'): MuxedAccountMed25519; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): MuxedAccountMed25519; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DecoratedSignature { @@ -6658,9 +6713,9 @@ declare namespace xdr { signature(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DecoratedSignature; @@ -6670,13 +6725,13 @@ declare namespace xdr { static toXDR(value: DecoratedSignature): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DecoratedSignature; + static fromXDR(input: Buffer, format?: 'raw'): DecoratedSignature; - static fromXDR(input: string, format: "hex" | "base64"): DecoratedSignature; + static fromXDR(input: string, format: 'hex' | 'base64'): DecoratedSignature; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateAccountOp { @@ -6686,9 +6741,9 @@ declare namespace xdr { startingBalance(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateAccountOp; @@ -6698,13 +6753,13 @@ declare namespace xdr { static toXDR(value: CreateAccountOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateAccountOp; + static fromXDR(input: Buffer, format?: 'raw'): CreateAccountOp; - static fromXDR(input: string, format: "hex" | "base64"): CreateAccountOp; + static fromXDR(input: string, format: 'hex' | 'base64'): CreateAccountOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PaymentOp { @@ -6720,9 +6775,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PaymentOp; @@ -6732,13 +6787,13 @@ declare namespace xdr { static toXDR(value: PaymentOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PaymentOp; + static fromXDR(input: Buffer, format?: 'raw'): PaymentOp; - static fromXDR(input: string, format: "hex" | "base64"): PaymentOp; + static fromXDR(input: string, format: 'hex' | 'base64'): PaymentOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveOp { @@ -6763,9 +6818,9 @@ declare namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveOp; @@ -6775,16 +6830,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictReceiveOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictReceiveOp; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictReceiveOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendOp { @@ -6809,9 +6864,9 @@ declare namespace xdr { path(value?: Asset[]): Asset[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendOp; @@ -6821,16 +6876,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictSendOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendOp; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageSellOfferOp { @@ -6852,9 +6907,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageSellOfferOp; @@ -6864,13 +6919,13 @@ declare namespace xdr { static toXDR(value: ManageSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageSellOfferOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageSellOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageBuyOfferOp { @@ -6892,9 +6947,9 @@ declare namespace xdr { offerId(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageBuyOfferOp; @@ -6904,13 +6959,13 @@ declare namespace xdr { static toXDR(value: ManageBuyOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageBuyOfferOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageBuyOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreatePassiveSellOfferOp { @@ -6929,9 +6984,9 @@ declare namespace xdr { price(value?: Price): Price; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreatePassiveSellOfferOp; @@ -6941,16 +6996,16 @@ declare namespace xdr { static toXDR(value: CreatePassiveSellOfferOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreatePassiveSellOfferOp; + static fromXDR(input: Buffer, format?: 'raw'): CreatePassiveSellOfferOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreatePassiveSellOfferOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetOptionsOp { @@ -6984,9 +7039,9 @@ declare namespace xdr { signer(value?: null | Signer): null | Signer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetOptionsOp; @@ -6996,13 +7051,13 @@ declare namespace xdr { static toXDR(value: SetOptionsOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetOptionsOp; + static fromXDR(input: Buffer, format?: 'raw'): SetOptionsOp; - static fromXDR(input: string, format: "hex" | "base64"): SetOptionsOp; + static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustOp { @@ -7012,9 +7067,9 @@ declare namespace xdr { limit(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustOp; @@ -7024,13 +7079,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustOp; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustOp; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AllowTrustOp { @@ -7046,9 +7101,9 @@ declare namespace xdr { authorize(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AllowTrustOp; @@ -7058,13 +7113,13 @@ declare namespace xdr { static toXDR(value: AllowTrustOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AllowTrustOp; + static fromXDR(input: Buffer, format?: 'raw'): AllowTrustOp; - static fromXDR(input: string, format: "hex" | "base64"): AllowTrustOp; + static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageDataOp { @@ -7077,9 +7132,9 @@ declare namespace xdr { dataValue(value?: null | Buffer): null | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageDataOp; @@ -7089,13 +7144,13 @@ declare namespace xdr { static toXDR(value: ManageDataOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageDataOp; + static fromXDR(input: Buffer, format?: 'raw'): ManageDataOp; - static fromXDR(input: string, format: "hex" | "base64"): ManageDataOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BumpSequenceOp { @@ -7103,9 +7158,9 @@ declare namespace xdr { bumpTo(value?: SequenceNumber): SequenceNumber; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BumpSequenceOp; @@ -7115,13 +7170,13 @@ declare namespace xdr { static toXDR(value: BumpSequenceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BumpSequenceOp; + static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceOp; - static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceOp; + static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateClaimableBalanceOp { @@ -7137,9 +7192,9 @@ declare namespace xdr { claimants(value?: Claimant[]): Claimant[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateClaimableBalanceOp; @@ -7149,16 +7204,16 @@ declare namespace xdr { static toXDR(value: CreateClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimClaimableBalanceOp { @@ -7166,9 +7221,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimClaimableBalanceOp; @@ -7178,16 +7233,16 @@ declare namespace xdr { static toXDR(value: ClaimClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BeginSponsoringFutureReservesOp { @@ -7195,9 +7250,9 @@ declare namespace xdr { sponsoredId(value?: AccountId): AccountId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BeginSponsoringFutureReservesOp; @@ -7209,17 +7264,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): BeginSponsoringFutureReservesOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): BeginSponsoringFutureReservesOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipOpSigner { @@ -7229,9 +7284,9 @@ declare namespace xdr { signerKey(value?: SignerKey): SignerKey; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipOpSigner; @@ -7241,16 +7296,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipOpSigner): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOpSigner; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOpSigner; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipOpSigner; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackOp { @@ -7266,9 +7321,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackOp; @@ -7278,13 +7333,13 @@ declare namespace xdr { static toXDR(value: ClawbackOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackOp; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackOp; - static fromXDR(input: string, format: "hex" | "base64"): ClawbackOp; + static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackClaimableBalanceOp { @@ -7292,9 +7347,9 @@ declare namespace xdr { balanceId(value?: ClaimableBalanceId): ClaimableBalanceId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackClaimableBalanceOp; @@ -7304,16 +7359,16 @@ declare namespace xdr { static toXDR(value: ClawbackClaimableBalanceOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackClaimableBalanceOp; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackClaimableBalanceOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClawbackClaimableBalanceOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetTrustLineFlagsOp { @@ -7332,9 +7387,9 @@ declare namespace xdr { setFlags(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetTrustLineFlagsOp; @@ -7344,16 +7399,16 @@ declare namespace xdr { static toXDR(value: SetTrustLineFlagsOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsOp; + static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SetTrustLineFlagsOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolDepositOp { @@ -7375,9 +7430,9 @@ declare namespace xdr { maxPrice(value?: Price): Price; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolDepositOp; @@ -7387,16 +7442,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolDepositOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositOp; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolDepositOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolWithdrawOp { @@ -7415,9 +7470,9 @@ declare namespace xdr { minAmountB(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolWithdrawOp; @@ -7427,16 +7482,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolWithdrawOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawOp; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolWithdrawOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractIdPreimageFromAddress { @@ -7446,9 +7501,9 @@ declare namespace xdr { salt(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractIdPreimageFromAddress; @@ -7460,17 +7515,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ContractIdPreimageFromAddress; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractIdPreimageFromAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateContractArgs { @@ -7483,9 +7538,9 @@ declare namespace xdr { executable(value?: ContractExecutable): ContractExecutable; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateContractArgs; @@ -7495,13 +7550,13 @@ declare namespace xdr { static toXDR(value: CreateContractArgs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateContractArgs; + static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgs; - static fromXDR(input: string, format: "hex" | "base64"): CreateContractArgs; + static fromXDR(input: string, format: 'hex' | 'base64'): CreateContractArgs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateContractArgsV2 { @@ -7517,9 +7572,9 @@ declare namespace xdr { constructorArgs(value?: ScVal[]): ScVal[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateContractArgsV2; @@ -7529,16 +7584,16 @@ declare namespace xdr { static toXDR(value: CreateContractArgsV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateContractArgsV2; + static fromXDR(input: Buffer, format?: 'raw'): CreateContractArgsV2; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateContractArgsV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeContractArgs { @@ -7554,9 +7609,9 @@ declare namespace xdr { args(value?: ScVal[]): ScVal[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeContractArgs; @@ -7566,13 +7621,13 @@ declare namespace xdr { static toXDR(value: InvokeContractArgs): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeContractArgs; + static fromXDR(input: Buffer, format?: 'raw'): InvokeContractArgs; - static fromXDR(input: string, format: "hex" | "base64"): InvokeContractArgs; + static fromXDR(input: string, format: 'hex' | 'base64'): InvokeContractArgs; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizedInvocation { @@ -7587,9 +7642,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation[], ): SorobanAuthorizedInvocation[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizedInvocation; @@ -7599,16 +7654,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizedInvocation): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedInvocation; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedInvocation; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizedInvocation; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAddressCredentials { @@ -7627,9 +7682,9 @@ declare namespace xdr { signature(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAddressCredentials; @@ -7639,16 +7694,16 @@ declare namespace xdr { static toXDR(value: SorobanAddressCredentials): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAddressCredentials; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAddressCredentials; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAddressCredentials; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizationEntry { @@ -7663,9 +7718,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizationEntry; @@ -7675,16 +7730,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizationEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizationEntry; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizationEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizationEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionOp { @@ -7697,9 +7752,9 @@ declare namespace xdr { auth(value?: SorobanAuthorizationEntry[]): SorobanAuthorizationEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionOp; @@ -7709,16 +7764,16 @@ declare namespace xdr { static toXDR(value: InvokeHostFunctionOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionOp; + static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtendFootprintTtlOp { @@ -7728,9 +7783,9 @@ declare namespace xdr { extendTo(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtendFootprintTtlOp; @@ -7740,16 +7795,16 @@ declare namespace xdr { static toXDR(value: ExtendFootprintTtlOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlOp; + static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ExtendFootprintTtlOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RestoreFootprintOp { @@ -7757,9 +7812,9 @@ declare namespace xdr { ext(value?: ExtensionPoint): ExtensionPoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RestoreFootprintOp; @@ -7769,44 +7824,13 @@ declare namespace xdr { static toXDR(value: RestoreFootprintOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintOp; - - static fromXDR(input: string, format: "hex" | "base64"): RestoreFootprintOp; - - static validateXDR(input: Buffer, format?: "raw"): boolean; - - static validateXDR(input: string, format: "hex" | "base64"): boolean; - } - - class Operation { - constructor(attributes: { - sourceAccount: null | MuxedAccount; - body: OperationBody; - }); - - sourceAccount(value?: null | MuxedAccount): null | MuxedAccount; - - body(value?: OperationBody): OperationBody; - - toXDR(format?: "raw"): Buffer; - - toXDR(format: "hex" | "base64"): string; - - static read(io: Buffer): Operation; - - static write(value: Operation, io: Buffer): void; - - static isValid(value: Operation): boolean; - - static toXDR(value: Operation): Buffer; - - static fromXDR(input: Buffer, format?: "raw"): Operation; + static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintOp; - static fromXDR(input: string, format: "hex" | "base64"): Operation; + static fromXDR(input: string, format: 'hex' | 'base64'): RestoreFootprintOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageOperationId { @@ -7822,9 +7846,9 @@ declare namespace xdr { opNum(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageOperationId; @@ -7834,16 +7858,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageOperationId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageOperationId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageOperationId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageOperationId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageRevokeId { @@ -7865,9 +7889,9 @@ declare namespace xdr { asset(value?: Asset): Asset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageRevokeId; @@ -7877,16 +7901,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageRevokeId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageRevokeId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageRevokeId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageRevokeId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageContractId { @@ -7899,9 +7923,9 @@ declare namespace xdr { contractIdPreimage(value?: ContractIdPreimage): ContractIdPreimage; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageContractId; @@ -7911,16 +7935,16 @@ declare namespace xdr { static toXDR(value: HashIdPreimageContractId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimageContractId; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimageContractId; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageContractId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimageSorobanAuthorization { @@ -7941,9 +7965,9 @@ declare namespace xdr { value?: SorobanAuthorizedInvocation, ): SorobanAuthorizedInvocation; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimageSorobanAuthorization; @@ -7955,17 +7979,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): HashIdPreimageSorobanAuthorization; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HashIdPreimageSorobanAuthorization; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TimeBounds { @@ -7975,9 +7999,9 @@ declare namespace xdr { maxTime(value?: TimePoint): TimePoint; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TimeBounds; @@ -7987,13 +8011,13 @@ declare namespace xdr { static toXDR(value: TimeBounds): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TimeBounds; + static fromXDR(input: Buffer, format?: 'raw'): TimeBounds; - static fromXDR(input: string, format: "hex" | "base64"): TimeBounds; + static fromXDR(input: string, format: 'hex' | 'base64'): TimeBounds; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerBounds { @@ -8003,9 +8027,9 @@ declare namespace xdr { maxLedger(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerBounds; @@ -8015,13 +8039,13 @@ declare namespace xdr { static toXDR(value: LedgerBounds): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerBounds; + static fromXDR(input: Buffer, format?: 'raw'): LedgerBounds; - static fromXDR(input: string, format: "hex" | "base64"): LedgerBounds; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerBounds; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PreconditionsV2 { @@ -8046,9 +8070,9 @@ declare namespace xdr { extraSigners(value?: SignerKey[]): SignerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PreconditionsV2; @@ -8058,13 +8082,13 @@ declare namespace xdr { static toXDR(value: PreconditionsV2): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PreconditionsV2; + static fromXDR(input: Buffer, format?: 'raw'): PreconditionsV2; - static fromXDR(input: string, format: "hex" | "base64"): PreconditionsV2; + static fromXDR(input: string, format: 'hex' | 'base64'): PreconditionsV2; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerFootprint { @@ -8074,9 +8098,9 @@ declare namespace xdr { readWrite(value?: LedgerKey[]): LedgerKey[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerFootprint; @@ -8086,13 +8110,13 @@ declare namespace xdr { static toXDR(value: LedgerFootprint): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerFootprint; + static fromXDR(input: Buffer, format?: 'raw'): LedgerFootprint; - static fromXDR(input: string, format: "hex" | "base64"): LedgerFootprint; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerFootprint; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanResources { @@ -8111,9 +8135,9 @@ declare namespace xdr { writeBytes(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanResources; @@ -8123,13 +8147,13 @@ declare namespace xdr { static toXDR(value: SorobanResources): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanResources; + static fromXDR(input: Buffer, format?: 'raw'): SorobanResources; - static fromXDR(input: string, format: "hex" | "base64"): SorobanResources; + static fromXDR(input: string, format: 'hex' | 'base64'): SorobanResources; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanResourcesExtV0 { @@ -8137,9 +8161,9 @@ declare namespace xdr { archivedSorobanEntries(value?: number[]): number[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanResourcesExtV0; @@ -8149,16 +8173,16 @@ declare namespace xdr { static toXDR(value: SorobanResourcesExtV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanResourcesExtV0; + static fromXDR(input: Buffer, format?: 'raw'): SorobanResourcesExtV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanResourcesExtV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionData { @@ -8174,9 +8198,9 @@ declare namespace xdr { resourceFee(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionData; @@ -8186,16 +8210,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionData; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionData; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0 { @@ -8223,9 +8247,9 @@ declare namespace xdr { ext(value?: TransactionV0Ext): TransactionV0Ext; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0; @@ -8235,13 +8259,13 @@ declare namespace xdr { static toXDR(value: TransactionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0; - static fromXDR(input: string, format: "hex" | "base64"): TransactionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0Envelope { @@ -8254,9 +8278,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0Envelope; @@ -8266,16 +8290,16 @@ declare namespace xdr { static toXDR(value: TransactionV0Envelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0Envelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Envelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionV0Envelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Transaction { @@ -8303,9 +8327,9 @@ declare namespace xdr { ext(value?: TransactionExt): TransactionExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Transaction; @@ -8315,13 +8339,13 @@ declare namespace xdr { static toXDR(value: Transaction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Transaction; + static fromXDR(input: Buffer, format?: 'raw'): Transaction; - static fromXDR(input: string, format: "hex" | "base64"): Transaction; + static fromXDR(input: string, format: 'hex' | 'base64'): Transaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV1Envelope { @@ -8334,9 +8358,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV1Envelope; @@ -8346,16 +8370,16 @@ declare namespace xdr { static toXDR(value: TransactionV1Envelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV1Envelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV1Envelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionV1Envelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransaction { @@ -8374,9 +8398,9 @@ declare namespace xdr { ext(value?: FeeBumpTransactionExt): FeeBumpTransactionExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransaction; @@ -8386,13 +8410,13 @@ declare namespace xdr { static toXDR(value: FeeBumpTransaction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransaction; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransaction; - static fromXDR(input: string, format: "hex" | "base64"): FeeBumpTransaction; + static fromXDR(input: string, format: 'hex' | 'base64'): FeeBumpTransaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionEnvelope { @@ -8405,9 +8429,9 @@ declare namespace xdr { signatures(value?: DecoratedSignature[]): DecoratedSignature[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionEnvelope; @@ -8417,16 +8441,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionEnvelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSignaturePayload { @@ -8441,9 +8465,9 @@ declare namespace xdr { value?: TransactionSignaturePayloadTaggedTransaction, ): TransactionSignaturePayloadTaggedTransaction; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSignaturePayload; @@ -8453,16 +8477,16 @@ declare namespace xdr { static toXDR(value: TransactionSignaturePayload): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionSignaturePayload; + static fromXDR(input: Buffer, format?: 'raw'): TransactionSignaturePayload; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionSignaturePayload; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimOfferAtomV0 { @@ -8487,9 +8511,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimOfferAtomV0; @@ -8499,13 +8523,13 @@ declare namespace xdr { static toXDR(value: ClaimOfferAtomV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtomV0; + static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtomV0; - static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtomV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtomV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimOfferAtom { @@ -8530,9 +8554,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimOfferAtom; @@ -8542,13 +8566,13 @@ declare namespace xdr { static toXDR(value: ClaimOfferAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimOfferAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimOfferAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimOfferAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimOfferAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimLiquidityAtom { @@ -8570,9 +8594,9 @@ declare namespace xdr { amountBought(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimLiquidityAtom; @@ -8582,13 +8606,13 @@ declare namespace xdr { static toXDR(value: ClaimLiquidityAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimLiquidityAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimLiquidityAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimLiquidityAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimLiquidityAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SimplePaymentResult { @@ -8604,9 +8628,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SimplePaymentResult; @@ -8616,16 +8640,16 @@ declare namespace xdr { static toXDR(value: SimplePaymentResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SimplePaymentResult; + static fromXDR(input: Buffer, format?: 'raw'): SimplePaymentResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SimplePaymentResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveResultSuccess { @@ -8635,9 +8659,9 @@ declare namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveResultSuccess; @@ -8652,17 +8676,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictReceiveResultSuccess; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveResultSuccess; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendResultSuccess { @@ -8672,9 +8696,9 @@ declare namespace xdr { last(value?: SimplePaymentResult): SimplePaymentResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendResultSuccess; @@ -8686,17 +8710,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictSendResultSuccess; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendResultSuccess; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageOfferSuccessResult { @@ -8709,9 +8733,9 @@ declare namespace xdr { offer(value?: ManageOfferSuccessResultOffer): ManageOfferSuccessResultOffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageOfferSuccessResult; @@ -8721,16 +8745,16 @@ declare namespace xdr { static toXDR(value: ManageOfferSuccessResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageOfferSuccessResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageOfferSuccessResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageOfferSuccessResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InflationPayout { @@ -8740,9 +8764,9 @@ declare namespace xdr { amount(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InflationPayout; @@ -8752,13 +8776,13 @@ declare namespace xdr { static toXDR(value: InflationPayout): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InflationPayout; + static fromXDR(input: Buffer, format?: 'raw'): InflationPayout; - static fromXDR(input: string, format: "hex" | "base64"): InflationPayout; + static fromXDR(input: string, format: 'hex' | 'base64'): InflationPayout; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResult { @@ -8774,9 +8798,9 @@ declare namespace xdr { ext(value?: InnerTransactionResultExt): InnerTransactionResultExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResult; @@ -8786,16 +8810,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResult; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultPair { @@ -8808,9 +8832,9 @@ declare namespace xdr { result(value?: InnerTransactionResult): InnerTransactionResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultPair; @@ -8820,16 +8844,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultPair): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultPair; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultPair; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultPair; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResult { @@ -8845,9 +8869,9 @@ declare namespace xdr { ext(value?: TransactionResultExt): TransactionResultExt; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResult; @@ -8857,13 +8881,13 @@ declare namespace xdr { static toXDR(value: TransactionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResult; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResult; - static fromXDR(input: string, format: "hex" | "base64"): TransactionResult; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignerKeyEd25519SignedPayload { @@ -8873,9 +8897,9 @@ declare namespace xdr { payload(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignerKeyEd25519SignedPayload; @@ -8887,17 +8911,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): SignerKeyEd25519SignedPayload; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SignerKeyEd25519SignedPayload; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Curve25519Secret { @@ -8905,9 +8929,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Curve25519Secret; @@ -8917,13 +8941,13 @@ declare namespace xdr { static toXDR(value: Curve25519Secret): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Curve25519Secret; + static fromXDR(input: Buffer, format?: 'raw'): Curve25519Secret; - static fromXDR(input: string, format: "hex" | "base64"): Curve25519Secret; + static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Secret; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Curve25519Public { @@ -8931,9 +8955,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Curve25519Public; @@ -8943,13 +8967,13 @@ declare namespace xdr { static toXDR(value: Curve25519Public): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Curve25519Public; + static fromXDR(input: Buffer, format?: 'raw'): Curve25519Public; - static fromXDR(input: string, format: "hex" | "base64"): Curve25519Public; + static fromXDR(input: string, format: 'hex' | 'base64'): Curve25519Public; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HmacSha256Key { @@ -8957,9 +8981,9 @@ declare namespace xdr { key(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HmacSha256Key; @@ -8969,13 +8993,13 @@ declare namespace xdr { static toXDR(value: HmacSha256Key): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HmacSha256Key; + static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Key; - static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Key; + static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Key; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HmacSha256Mac { @@ -8983,9 +9007,9 @@ declare namespace xdr { mac(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HmacSha256Mac; @@ -8995,13 +9019,13 @@ declare namespace xdr { static toXDR(value: HmacSha256Mac): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HmacSha256Mac; + static fromXDR(input: Buffer, format?: 'raw'): HmacSha256Mac; - static fromXDR(input: string, format: "hex" | "base64"): HmacSha256Mac; + static fromXDR(input: string, format: 'hex' | 'base64'): HmacSha256Mac; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ShortHashSeed { @@ -9009,9 +9033,9 @@ declare namespace xdr { seed(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ShortHashSeed; @@ -9021,13 +9045,13 @@ declare namespace xdr { static toXDR(value: ShortHashSeed): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ShortHashSeed; + static fromXDR(input: Buffer, format?: 'raw'): ShortHashSeed; - static fromXDR(input: string, format: "hex" | "base64"): ShortHashSeed; + static fromXDR(input: string, format: 'hex' | 'base64'): ShortHashSeed; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SerializedBinaryFuseFilter { @@ -9061,9 +9085,9 @@ declare namespace xdr { fingerprints(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SerializedBinaryFuseFilter; @@ -9073,16 +9097,16 @@ declare namespace xdr { static toXDR(value: SerializedBinaryFuseFilter): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SerializedBinaryFuseFilter; + static fromXDR(input: Buffer, format?: 'raw'): SerializedBinaryFuseFilter; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SerializedBinaryFuseFilter; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UInt128Parts { @@ -9092,9 +9116,9 @@ declare namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UInt128Parts; @@ -9104,13 +9128,13 @@ declare namespace xdr { static toXDR(value: UInt128Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UInt128Parts; + static fromXDR(input: Buffer, format?: 'raw'): UInt128Parts; - static fromXDR(input: string, format: "hex" | "base64"): UInt128Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): UInt128Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Int128Parts { @@ -9120,9 +9144,9 @@ declare namespace xdr { lo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Int128Parts; @@ -9132,13 +9156,13 @@ declare namespace xdr { static toXDR(value: Int128Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Int128Parts; + static fromXDR(input: Buffer, format?: 'raw'): Int128Parts; - static fromXDR(input: string, format: "hex" | "base64"): Int128Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): Int128Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class UInt256Parts { @@ -9157,9 +9181,9 @@ declare namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): UInt256Parts; @@ -9169,13 +9193,13 @@ declare namespace xdr { static toXDR(value: UInt256Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): UInt256Parts; + static fromXDR(input: Buffer, format?: 'raw'): UInt256Parts; - static fromXDR(input: string, format: "hex" | "base64"): UInt256Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): UInt256Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Int256Parts { @@ -9194,9 +9218,9 @@ declare namespace xdr { loLo(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Int256Parts; @@ -9206,13 +9230,13 @@ declare namespace xdr { static toXDR(value: Int256Parts): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Int256Parts; + static fromXDR(input: Buffer, format?: 'raw'): Int256Parts; - static fromXDR(input: string, format: "hex" | "base64"): Int256Parts; + static fromXDR(input: string, format: 'hex' | 'base64'): Int256Parts; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedEd25519Account { @@ -9222,9 +9246,9 @@ declare namespace xdr { ed25519(value?: Buffer): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedEd25519Account; @@ -9234,16 +9258,16 @@ declare namespace xdr { static toXDR(value: MuxedEd25519Account): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedEd25519Account; + static fromXDR(input: Buffer, format?: 'raw'): MuxedEd25519Account; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): MuxedEd25519Account; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScNonceKey { @@ -9251,9 +9275,9 @@ declare namespace xdr { nonce(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScNonceKey; @@ -9263,13 +9287,13 @@ declare namespace xdr { static toXDR(value: ScNonceKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScNonceKey; + static fromXDR(input: Buffer, format?: 'raw'): ScNonceKey; - static fromXDR(input: string, format: "hex" | "base64"): ScNonceKey; + static fromXDR(input: string, format: 'hex' | 'base64'): ScNonceKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScContractInstance { @@ -9282,9 +9306,9 @@ declare namespace xdr { storage(value?: null | ScMapEntry[]): null | ScMapEntry[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScContractInstance; @@ -9294,13 +9318,13 @@ declare namespace xdr { static toXDR(value: ScContractInstance): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScContractInstance; + static fromXDR(input: Buffer, format?: 'raw'): ScContractInstance; - static fromXDR(input: string, format: "hex" | "base64"): ScContractInstance; + static fromXDR(input: string, format: 'hex' | 'base64'): ScContractInstance; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMapEntry { @@ -9310,9 +9334,9 @@ declare namespace xdr { val(value?: ScVal): ScVal; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMapEntry; @@ -9322,13 +9346,13 @@ declare namespace xdr { static toXDR(value: ScMapEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMapEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScMapEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScMapEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMapEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScEnvMetaEntryInterfaceVersion { @@ -9338,9 +9362,9 @@ declare namespace xdr { preRelease(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScEnvMetaEntryInterfaceVersion; @@ -9352,17 +9376,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ScEnvMetaEntryInterfaceVersion; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScEnvMetaEntryInterfaceVersion; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMetaV0 { @@ -9372,9 +9396,9 @@ declare namespace xdr { val(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMetaV0; @@ -9384,13 +9408,13 @@ declare namespace xdr { static toXDR(value: ScMetaV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMetaV0; + static fromXDR(input: Buffer, format?: 'raw'): ScMetaV0; - static fromXDR(input: string, format: "hex" | "base64"): ScMetaV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeOption { @@ -9398,9 +9422,9 @@ declare namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeOption; @@ -9410,13 +9434,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeOption): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeOption; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeOption; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeOption; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeOption; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeResult { @@ -9429,9 +9453,9 @@ declare namespace xdr { errorType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeResult; @@ -9441,13 +9465,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeResult; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeResult; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeVec { @@ -9455,9 +9479,9 @@ declare namespace xdr { elementType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeVec; @@ -9467,13 +9491,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeVec): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeVec; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeVec; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeVec; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeVec; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeMap { @@ -9486,9 +9510,9 @@ declare namespace xdr { valueType(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeMap; @@ -9498,13 +9522,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeMap): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeMap; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeMap; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeMap; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeMap; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeTuple { @@ -9512,9 +9536,9 @@ declare namespace xdr { valueTypes(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeTuple; @@ -9524,13 +9548,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeTuple): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeTuple; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeTuple; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeTuple; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeTuple; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeBytesN { @@ -9538,9 +9562,9 @@ declare namespace xdr { n(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeBytesN; @@ -9550,13 +9574,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeBytesN): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeBytesN; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeBytesN; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeBytesN; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeBytesN; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeUdt { @@ -9564,9 +9588,9 @@ declare namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeUdt; @@ -9576,13 +9600,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeUdt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeUdt; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeUdt; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeUdt; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeUdt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtStructFieldV0 { @@ -9598,9 +9622,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtStructFieldV0; @@ -9610,16 +9634,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtStructFieldV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructFieldV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructFieldV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtStructFieldV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtStructV0 { @@ -9638,9 +9662,9 @@ declare namespace xdr { fields(value?: ScSpecUdtStructFieldV0[]): ScSpecUdtStructFieldV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtStructV0; @@ -9650,13 +9674,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtStructV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtStructV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtStructV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtStructV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtStructV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseVoidV0 { @@ -9666,9 +9690,9 @@ declare namespace xdr { name(value?: string | Buffer): string | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseVoidV0; @@ -9678,16 +9702,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseVoidV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseVoidV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseVoidV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseVoidV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseTupleV0 { @@ -9703,9 +9727,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseTupleV0; @@ -9715,16 +9739,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseTupleV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseTupleV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseTupleV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseTupleV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionV0 { @@ -9743,9 +9767,9 @@ declare namespace xdr { cases(value?: ScSpecUdtUnionCaseV0[]): ScSpecUdtUnionCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionV0; @@ -9755,13 +9779,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtUnionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtUnionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtEnumCaseV0 { @@ -9777,9 +9801,9 @@ declare namespace xdr { value(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtEnumCaseV0; @@ -9789,16 +9813,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtEnumCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtEnumV0 { @@ -9817,9 +9841,9 @@ declare namespace xdr { cases(value?: ScSpecUdtEnumCaseV0[]): ScSpecUdtEnumCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtEnumV0; @@ -9829,13 +9853,13 @@ declare namespace xdr { static toXDR(value: ScSpecUdtEnumV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtEnumV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtEnumV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecUdtEnumV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecUdtEnumV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtErrorEnumCaseV0 { @@ -9851,9 +9875,9 @@ declare namespace xdr { value(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtErrorEnumCaseV0; @@ -9863,16 +9887,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtErrorEnumCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtErrorEnumCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtErrorEnumV0 { @@ -9891,9 +9915,9 @@ declare namespace xdr { cases(value?: ScSpecUdtErrorEnumCaseV0[]): ScSpecUdtErrorEnumCaseV0[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtErrorEnumV0; @@ -9903,16 +9927,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtErrorEnumV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtErrorEnumV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtErrorEnumV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtErrorEnumV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecFunctionInputV0 { @@ -9928,9 +9952,9 @@ declare namespace xdr { type(value?: ScSpecTypeDef): ScSpecTypeDef; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecFunctionInputV0; @@ -9940,16 +9964,16 @@ declare namespace xdr { static toXDR(value: ScSpecFunctionInputV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionInputV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionInputV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecFunctionInputV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecFunctionV0 { @@ -9968,9 +9992,9 @@ declare namespace xdr { outputs(value?: ScSpecTypeDef[]): ScSpecTypeDef[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecFunctionV0; @@ -9980,13 +10004,13 @@ declare namespace xdr { static toXDR(value: ScSpecFunctionV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecFunctionV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecFunctionV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecFunctionV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecFunctionV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEventParamV0 { @@ -10005,9 +10029,9 @@ declare namespace xdr { location(value?: ScSpecEventParamLocationV0): ScSpecEventParamLocationV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEventParamV0; @@ -10017,13 +10041,13 @@ declare namespace xdr { static toXDR(value: ScSpecEventParamV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEventParamV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEventParamV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventParamV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEventParamV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEventV0 { @@ -10048,9 +10072,9 @@ declare namespace xdr { dataFormat(value?: ScSpecEventDataFormat): ScSpecEventDataFormat; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEventV0; @@ -10060,13 +10084,13 @@ declare namespace xdr { static toXDR(value: ScSpecEventV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEventV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEventV0; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEventV0; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEventV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractExecutionLanesV0 { @@ -10074,9 +10098,9 @@ declare namespace xdr { ledgerMaxTxCount(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractExecutionLanesV0; @@ -10091,17 +10115,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractExecutionLanesV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractExecutionLanesV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractComputeV0 { @@ -10120,9 +10144,9 @@ declare namespace xdr { txMemoryLimit(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractComputeV0; @@ -10134,17 +10158,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractComputeV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractComputeV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractParallelComputeV0 { @@ -10152,9 +10176,9 @@ declare namespace xdr { ledgerMaxDependentTxClusters(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractParallelComputeV0; @@ -10169,17 +10193,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractParallelComputeV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractParallelComputeV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractLedgerCostV0 { @@ -10231,9 +10255,9 @@ declare namespace xdr { sorobanStateRentFeeGrowthFactor(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractLedgerCostV0; @@ -10245,17 +10269,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractLedgerCostV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractLedgerCostV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractLedgerCostExtV0 { @@ -10268,9 +10292,9 @@ declare namespace xdr { feeWrite1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractLedgerCostExtV0; @@ -10282,17 +10306,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractLedgerCostExtV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractLedgerCostExtV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractHistoricalDataV0 { @@ -10300,9 +10324,9 @@ declare namespace xdr { feeHistorical1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractHistoricalDataV0; @@ -10317,17 +10341,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractHistoricalDataV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractHistoricalDataV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractEventsV0 { @@ -10340,9 +10364,9 @@ declare namespace xdr { feeContractEvents1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractEventsV0; @@ -10354,17 +10378,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractEventsV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractEventsV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingContractBandwidthV0 { @@ -10380,9 +10404,9 @@ declare namespace xdr { feeTxSize1Kb(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingContractBandwidthV0; @@ -10394,17 +10418,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ConfigSettingContractBandwidthV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingContractBandwidthV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCostParamEntry { @@ -10420,9 +10444,9 @@ declare namespace xdr { linearTerm(value?: Int64): Int64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCostParamEntry; @@ -10432,16 +10456,16 @@ declare namespace xdr { static toXDR(value: ContractCostParamEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCostParamEntry; + static fromXDR(input: Buffer, format?: 'raw'): ContractCostParamEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCostParamEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StateArchivalSettings { @@ -10478,9 +10502,9 @@ declare namespace xdr { startingEvictionScanLevel(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StateArchivalSettings; @@ -10490,16 +10514,16 @@ declare namespace xdr { static toXDR(value: StateArchivalSettings): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StateArchivalSettings; + static fromXDR(input: Buffer, format?: 'raw'): StateArchivalSettings; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): StateArchivalSettings; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class EvictionIterator { @@ -10515,9 +10539,9 @@ declare namespace xdr { bucketFileOffset(value?: Uint64): Uint64; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): EvictionIterator; @@ -10527,13 +10551,13 @@ declare namespace xdr { static toXDR(value: EvictionIterator): Buffer; - static fromXDR(input: Buffer, format?: "raw"): EvictionIterator; + static fromXDR(input: Buffer, format?: 'raw'): EvictionIterator; - static fromXDR(input: string, format: "hex" | "base64"): EvictionIterator; + static fromXDR(input: string, format: 'hex' | 'base64'): EvictionIterator; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingScpTiming { @@ -10555,9 +10579,9 @@ declare namespace xdr { ballotTimeoutIncrementMilliseconds(value?: number): number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingScpTiming; @@ -10567,16 +10591,16 @@ declare namespace xdr { static toXDR(value: ConfigSettingScpTiming): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigSettingScpTiming; + static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingScpTiming; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ConfigSettingScpTiming; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaBatch { @@ -10592,9 +10616,9 @@ declare namespace xdr { ledgerCloseMeta(value?: LedgerCloseMeta[]): LedgerCloseMeta[]; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaBatch; @@ -10604,16 +10628,16 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaBatch): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaBatch; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaBatch; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerCloseMetaBatch; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpStatementPledges { @@ -10643,9 +10667,9 @@ declare namespace xdr { | ScpStatementExternalize | ScpNomination; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpStatementPledges; @@ -10655,16 +10679,16 @@ declare namespace xdr { static toXDR(value: ScpStatementPledges): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpStatementPledges; + static fromXDR(input: Buffer, format?: 'raw'): ScpStatementPledges; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScpStatementPledges; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AssetCode { @@ -10680,9 +10704,9 @@ declare namespace xdr { value(): Buffer | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AssetCode; @@ -10692,13 +10716,13 @@ declare namespace xdr { static toXDR(value: AssetCode): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AssetCode; + static fromXDR(input: Buffer, format?: 'raw'): AssetCode; - static fromXDR(input: string, format: "hex" | "base64"): AssetCode; + static fromXDR(input: string, format: 'hex' | 'base64'): AssetCode; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Asset { @@ -10716,9 +10740,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Asset; @@ -10728,13 +10752,13 @@ declare namespace xdr { static toXDR(value: Asset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Asset; + static fromXDR(input: Buffer, format?: 'raw'): Asset; - static fromXDR(input: string, format: "hex" | "base64"): Asset; + static fromXDR(input: string, format: 'hex' | 'base64'): Asset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV2Ext { @@ -10748,9 +10772,9 @@ declare namespace xdr { value(): AccountEntryExtensionV3 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV2Ext; @@ -10760,16 +10784,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV2Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExtensionV1Ext { @@ -10783,9 +10807,9 @@ declare namespace xdr { value(): AccountEntryExtensionV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExtensionV1Ext; @@ -10795,16 +10819,16 @@ declare namespace xdr { static toXDR(value: AccountEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AccountEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountEntryExt { @@ -10818,9 +10842,9 @@ declare namespace xdr { value(): AccountEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountEntryExt; @@ -10830,13 +10854,13 @@ declare namespace xdr { static toXDR(value: AccountEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): AccountEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): AccountEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineAsset { @@ -10858,9 +10882,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | PoolId | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineAsset; @@ -10870,13 +10894,13 @@ declare namespace xdr { static toXDR(value: TrustLineAsset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineAsset; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineAsset; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineAsset; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineAsset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExtensionV2Ext { @@ -10886,9 +10910,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExtensionV2Ext; @@ -10898,16 +10922,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExtensionV2Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExtensionV2Ext; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExtensionV2Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryExtensionV2Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryV1Ext { @@ -10921,9 +10945,9 @@ declare namespace xdr { value(): TrustLineEntryExtensionV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryV1Ext; @@ -10933,16 +10957,16 @@ declare namespace xdr { static toXDR(value: TrustLineEntryV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TrustLineEntryV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TrustLineEntryExt { @@ -10956,9 +10980,9 @@ declare namespace xdr { value(): TrustLineEntryV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TrustLineEntryExt; @@ -10968,13 +10992,13 @@ declare namespace xdr { static toXDR(value: TrustLineEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TrustLineEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): TrustLineEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): TrustLineEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): TrustLineEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OfferEntryExt { @@ -10984,9 +11008,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OfferEntryExt; @@ -10996,13 +11020,13 @@ declare namespace xdr { static toXDR(value: OfferEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OfferEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): OfferEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): OfferEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): OfferEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class DataEntryExt { @@ -11012,9 +11036,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): DataEntryExt; @@ -11024,13 +11048,13 @@ declare namespace xdr { static toXDR(value: DataEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): DataEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): DataEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): DataEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): DataEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimPredicate { @@ -11067,9 +11091,9 @@ declare namespace xdr { | Int64 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimPredicate; @@ -11079,13 +11103,13 @@ declare namespace xdr { static toXDR(value: ClaimPredicate): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimPredicate; + static fromXDR(input: Buffer, format?: 'raw'): ClaimPredicate; - static fromXDR(input: string, format: "hex" | "base64"): ClaimPredicate; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimPredicate; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Claimant { @@ -11097,9 +11121,9 @@ declare namespace xdr { value(): ClaimantV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Claimant; @@ -11109,13 +11133,13 @@ declare namespace xdr { static toXDR(value: Claimant): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Claimant; + static fromXDR(input: Buffer, format?: 'raw'): Claimant; - static fromXDR(input: string, format: "hex" | "base64"): Claimant; + static fromXDR(input: string, format: 'hex' | 'base64'): Claimant; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExtensionV1Ext { @@ -11125,9 +11149,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExtensionV1Ext; @@ -11139,17 +11163,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClaimableBalanceEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceEntryExt { @@ -11165,9 +11189,9 @@ declare namespace xdr { value(): ClaimableBalanceEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceEntryExt; @@ -11177,16 +11201,16 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimableBalanceEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolEntryBody { @@ -11202,9 +11226,9 @@ declare namespace xdr { value(): LiquidityPoolEntryConstantProduct; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolEntryBody; @@ -11214,16 +11238,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolEntryBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolEntryBody; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolEntryBody; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolEntryBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractCodeEntryExt { @@ -11237,9 +11261,9 @@ declare namespace xdr { value(): ContractCodeEntryV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractCodeEntryExt; @@ -11249,16 +11273,16 @@ declare namespace xdr { static toXDR(value: ContractCodeEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractCodeEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): ContractCodeEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ContractCodeEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExtensionV1Ext { @@ -11268,9 +11292,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExtensionV1Ext; @@ -11280,16 +11304,16 @@ declare namespace xdr { static toXDR(value: LedgerEntryExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerEntryExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryData { @@ -11347,9 +11371,9 @@ declare namespace xdr { | ConfigSettingEntry | TtlEntry; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryData; @@ -11359,13 +11383,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryData): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryData; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryData; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryData; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryData; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryExt { @@ -11379,9 +11403,9 @@ declare namespace xdr { value(): LedgerEntryExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryExt; @@ -11391,13 +11415,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerKey { @@ -11457,9 +11481,9 @@ declare namespace xdr { | LedgerKeyConfigSetting | LedgerKeyTtl; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerKey; @@ -11469,13 +11493,13 @@ declare namespace xdr { static toXDR(value: LedgerKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerKey; + static fromXDR(input: Buffer, format?: 'raw'): LedgerKey; - static fromXDR(input: string, format: "hex" | "base64"): LedgerKey; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketMetadataExt { @@ -11489,9 +11513,9 @@ declare namespace xdr { value(): BucketListType | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketMetadataExt; @@ -11501,13 +11525,13 @@ declare namespace xdr { static toXDR(value: BucketMetadataExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketMetadataExt; + static fromXDR(input: Buffer, format?: 'raw'): BucketMetadataExt; - static fromXDR(input: string, format: "hex" | "base64"): BucketMetadataExt; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketMetadataExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BucketEntry { @@ -11529,9 +11553,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BucketEntry; @@ -11541,13 +11565,13 @@ declare namespace xdr { static toXDR(value: BucketEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BucketEntry; + static fromXDR(input: Buffer, format?: 'raw'): BucketEntry; - static fromXDR(input: string, format: "hex" | "base64"): BucketEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): BucketEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HotArchiveBucketEntry { @@ -11567,9 +11591,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerKey | BucketMetadata; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HotArchiveBucketEntry; @@ -11579,16 +11603,16 @@ declare namespace xdr { static toXDR(value: HotArchiveBucketEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HotArchiveBucketEntry; + static fromXDR(input: Buffer, format?: 'raw'): HotArchiveBucketEntry; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): HotArchiveBucketEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarValueExt { @@ -11606,9 +11630,9 @@ declare namespace xdr { value(): LedgerCloseValueSignature | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarValueExt; @@ -11618,13 +11642,13 @@ declare namespace xdr { static toXDR(value: StellarValueExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarValueExt; + static fromXDR(input: Buffer, format?: 'raw'): StellarValueExt; - static fromXDR(input: string, format: "hex" | "base64"): StellarValueExt; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarValueExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExtensionV1Ext { @@ -11634,9 +11658,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExtensionV1Ext; @@ -11646,16 +11670,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExtensionV1Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExtensionV1Ext; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExtensionV1Ext; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderExtensionV1Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderExt { @@ -11669,9 +11693,9 @@ declare namespace xdr { value(): LedgerHeaderExtensionV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderExt; @@ -11681,13 +11705,13 @@ declare namespace xdr { static toXDR(value: LedgerHeaderExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerHeaderExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerHeaderExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerUpgrade { @@ -11730,9 +11754,9 @@ declare namespace xdr { | ConfigUpgradeSetKey | number; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerUpgrade; @@ -11742,13 +11766,13 @@ declare namespace xdr { static toXDR(value: LedgerUpgrade): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerUpgrade; + static fromXDR(input: Buffer, format?: 'raw'): LedgerUpgrade; - static fromXDR(input: string, format: "hex" | "base64"): LedgerUpgrade; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerUpgrade; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TxSetComponent { @@ -11764,9 +11788,9 @@ declare namespace xdr { value(): TxSetComponentTxsMaybeDiscountedFee; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TxSetComponent; @@ -11776,13 +11800,13 @@ declare namespace xdr { static toXDR(value: TxSetComponent): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TxSetComponent; + static fromXDR(input: Buffer, format?: 'raw'): TxSetComponent; - static fromXDR(input: string, format: "hex" | "base64"): TxSetComponent; + static fromXDR(input: string, format: 'hex' | 'base64'): TxSetComponent; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionPhase { @@ -11798,9 +11822,9 @@ declare namespace xdr { value(): TxSetComponent[] | ParallelTxsComponent; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionPhase; @@ -11810,13 +11834,13 @@ declare namespace xdr { static toXDR(value: TransactionPhase): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionPhase; + static fromXDR(input: Buffer, format?: 'raw'): TransactionPhase; - static fromXDR(input: string, format: "hex" | "base64"): TransactionPhase; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionPhase; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class GeneralizedTransactionSet { @@ -11828,9 +11852,9 @@ declare namespace xdr { value(): TransactionSetV1; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): GeneralizedTransactionSet; @@ -11840,16 +11864,16 @@ declare namespace xdr { static toXDR(value: GeneralizedTransactionSet): Buffer; - static fromXDR(input: Buffer, format?: "raw"): GeneralizedTransactionSet; + static fromXDR(input: Buffer, format?: 'raw'): GeneralizedTransactionSet; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): GeneralizedTransactionSet; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryEntryExt { @@ -11865,9 +11889,9 @@ declare namespace xdr { value(): GeneralizedTransactionSet | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryEntryExt; @@ -11877,16 +11901,16 @@ declare namespace xdr { static toXDR(value: TransactionHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionHistoryEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionHistoryEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionHistoryResultEntryExt { @@ -11896,9 +11920,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionHistoryResultEntryExt; @@ -11910,17 +11934,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionHistoryResultEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionHistoryResultEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerHeaderHistoryEntryExt { @@ -11930,9 +11954,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerHeaderHistoryEntryExt; @@ -11942,16 +11966,16 @@ declare namespace xdr { static toXDR(value: LedgerHeaderHistoryEntryExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerHeaderHistoryEntryExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerHeaderHistoryEntryExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LedgerHeaderHistoryEntryExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScpHistoryEntry { @@ -11963,9 +11987,9 @@ declare namespace xdr { value(): ScpHistoryEntryV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScpHistoryEntry; @@ -11975,13 +11999,13 @@ declare namespace xdr { static toXDR(value: ScpHistoryEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScpHistoryEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScpHistoryEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScpHistoryEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScpHistoryEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerEntryChange { @@ -12009,9 +12033,9 @@ declare namespace xdr { value(): LedgerEntry | LedgerEntry | LedgerKey | LedgerEntry | LedgerEntry; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerEntryChange; @@ -12021,13 +12045,13 @@ declare namespace xdr { static toXDR(value: LedgerEntryChange): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerEntryChange; + static fromXDR(input: Buffer, format?: 'raw'): LedgerEntryChange; - static fromXDR(input: string, format: "hex" | "base64"): LedgerEntryChange; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerEntryChange; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractEventBody { @@ -12039,9 +12063,9 @@ declare namespace xdr { value(): ContractEventV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractEventBody; @@ -12051,13 +12075,13 @@ declare namespace xdr { static toXDR(value: ContractEventBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractEventBody; + static fromXDR(input: Buffer, format?: 'raw'): ContractEventBody; - static fromXDR(input: string, format: "hex" | "base64"): ContractEventBody; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractEventBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionMetaExt { @@ -12071,9 +12095,9 @@ declare namespace xdr { value(): SorobanTransactionMetaExtV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionMetaExt; @@ -12083,16 +12107,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionMetaExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionMetaExt; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionMetaExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionMetaExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionMeta { @@ -12125,9 +12149,9 @@ declare namespace xdr { | TransactionMetaV3 | TransactionMetaV4; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionMeta; @@ -12137,13 +12161,13 @@ declare namespace xdr { static toXDR(value: TransactionMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionMeta; + static fromXDR(input: Buffer, format?: 'raw'): TransactionMeta; - static fromXDR(input: string, format: "hex" | "base64"): TransactionMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMetaExt { @@ -12157,9 +12181,9 @@ declare namespace xdr { value(): LedgerCloseMetaExtV1 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMetaExt; @@ -12169,13 +12193,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMetaExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMetaExt; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMetaExt; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMetaExt; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMetaExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LedgerCloseMeta { @@ -12195,9 +12219,9 @@ declare namespace xdr { value(): LedgerCloseMetaV0 | LedgerCloseMetaV1 | LedgerCloseMetaV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LedgerCloseMeta; @@ -12207,13 +12231,13 @@ declare namespace xdr { static toXDR(value: LedgerCloseMeta): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LedgerCloseMeta; + static fromXDR(input: Buffer, format?: 'raw'): LedgerCloseMeta; - static fromXDR(input: string, format: "hex" | "base64"): LedgerCloseMeta; + static fromXDR(input: string, format: 'hex' | 'base64'): LedgerCloseMeta; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PeerAddressIp { @@ -12229,9 +12253,9 @@ declare namespace xdr { value(): Buffer | Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PeerAddressIp; @@ -12241,13 +12265,13 @@ declare namespace xdr { static toXDR(value: PeerAddressIp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PeerAddressIp; + static fromXDR(input: Buffer, format?: 'raw'): PeerAddressIp; - static fromXDR(input: string, format: "hex" | "base64"): PeerAddressIp; + static fromXDR(input: string, format: 'hex' | 'base64'): PeerAddressIp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SurveyResponseBody { @@ -12263,9 +12287,9 @@ declare namespace xdr { value(): TopologyResponseBodyV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SurveyResponseBody; @@ -12275,13 +12299,13 @@ declare namespace xdr { static toXDR(value: SurveyResponseBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SurveyResponseBody; + static fromXDR(input: Buffer, format?: 'raw'): SurveyResponseBody; - static fromXDR(input: string, format: "hex" | "base64"): SurveyResponseBody; + static fromXDR(input: string, format: 'hex' | 'base64'): SurveyResponseBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class StellarMessage { @@ -12412,9 +12436,9 @@ declare namespace xdr { | FloodAdvert | FloodDemand; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): StellarMessage; @@ -12424,13 +12448,13 @@ declare namespace xdr { static toXDR(value: StellarMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): StellarMessage; + static fromXDR(input: Buffer, format?: 'raw'): StellarMessage; - static fromXDR(input: string, format: "hex" | "base64"): StellarMessage; + static fromXDR(input: string, format: 'hex' | 'base64'): StellarMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AuthenticatedMessage { @@ -12442,9 +12466,9 @@ declare namespace xdr { value(): AuthenticatedMessageV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AuthenticatedMessage; @@ -12454,16 +12478,16 @@ declare namespace xdr { static toXDR(value: AuthenticatedMessage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AuthenticatedMessage; + static fromXDR(input: Buffer, format?: 'raw'): AuthenticatedMessage; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): AuthenticatedMessage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolParameters { @@ -12479,9 +12503,9 @@ declare namespace xdr { value(): LiquidityPoolConstantProductParameters; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolParameters; @@ -12491,16 +12515,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolParameters): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolParameters; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolParameters; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolParameters; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class MuxedAccount { @@ -12516,9 +12540,9 @@ declare namespace xdr { value(): Buffer | MuxedAccountMed25519; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): MuxedAccount; @@ -12528,13 +12552,13 @@ declare namespace xdr { static toXDR(value: MuxedAccount): Buffer; - static fromXDR(input: Buffer, format?: "raw"): MuxedAccount; + static fromXDR(input: Buffer, format?: 'raw'): MuxedAccount; - static fromXDR(input: string, format: "hex" | "base64"): MuxedAccount; + static fromXDR(input: string, format: 'hex' | 'base64'): MuxedAccount; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustAsset { @@ -12556,9 +12580,9 @@ declare namespace xdr { value(): AlphaNum4 | AlphaNum12 | LiquidityPoolParameters | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustAsset; @@ -12568,13 +12592,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustAsset): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustAsset; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustAsset; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustAsset; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustAsset; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipOp { @@ -12592,9 +12616,9 @@ declare namespace xdr { value(): LedgerKey | RevokeSponsorshipOpSigner; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipOp; @@ -12604,16 +12628,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipOp): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipOp; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipOp; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipOp; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractIdPreimage { @@ -12633,9 +12657,9 @@ declare namespace xdr { value(): ContractIdPreimageFromAddress | Asset; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractIdPreimage; @@ -12645,13 +12669,13 @@ declare namespace xdr { static toXDR(value: ContractIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractIdPreimage; + static fromXDR(input: Buffer, format?: 'raw'): ContractIdPreimage; - static fromXDR(input: string, format: "hex" | "base64"): ContractIdPreimage; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractIdPreimage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HostFunction { @@ -12685,9 +12709,9 @@ declare namespace xdr { | Buffer | CreateContractArgsV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HostFunction; @@ -12697,13 +12721,13 @@ declare namespace xdr { static toXDR(value: HostFunction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HostFunction; + static fromXDR(input: Buffer, format?: 'raw'): HostFunction; - static fromXDR(input: string, format: "hex" | "base64"): HostFunction; + static fromXDR(input: string, format: 'hex' | 'base64'): HostFunction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanAuthorizedFunction { @@ -12729,9 +12753,9 @@ declare namespace xdr { value(): InvokeContractArgs | CreateContractArgs | CreateContractArgsV2; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanAuthorizedFunction; @@ -12741,16 +12765,16 @@ declare namespace xdr { static toXDR(value: SorobanAuthorizedFunction): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanAuthorizedFunction; + static fromXDR(input: Buffer, format?: 'raw'): SorobanAuthorizedFunction; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanAuthorizedFunction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanCredentials { @@ -12766,9 +12790,9 @@ declare namespace xdr { value(): SorobanAddressCredentials | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanCredentials; @@ -12778,13 +12802,13 @@ declare namespace xdr { static toXDR(value: SorobanCredentials): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanCredentials; + static fromXDR(input: Buffer, format?: 'raw'): SorobanCredentials; - static fromXDR(input: string, format: "hex" | "base64"): SorobanCredentials; + static fromXDR(input: string, format: 'hex' | 'base64'): SorobanCredentials; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationBody { @@ -12950,9 +12974,9 @@ declare namespace xdr { | RestoreFootprintOp | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationBody; @@ -12962,13 +12986,13 @@ declare namespace xdr { static toXDR(value: OperationBody): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationBody; + static fromXDR(input: Buffer, format?: 'raw'): OperationBody; - static fromXDR(input: string, format: "hex" | "base64"): OperationBody; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationBody; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class HashIdPreimage { @@ -13004,9 +13028,9 @@ declare namespace xdr { | HashIdPreimageContractId | HashIdPreimageSorobanAuthorization; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): HashIdPreimage; @@ -13016,13 +13040,13 @@ declare namespace xdr { static toXDR(value: HashIdPreimage): Buffer; - static fromXDR(input: Buffer, format?: "raw"): HashIdPreimage; + static fromXDR(input: Buffer, format?: 'raw'): HashIdPreimage; - static fromXDR(input: string, format: "hex" | "base64"): HashIdPreimage; + static fromXDR(input: string, format: 'hex' | 'base64'): HashIdPreimage; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Memo { @@ -13048,9 +13072,9 @@ declare namespace xdr { value(): string | Buffer | Uint64 | Buffer | Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Memo; @@ -13060,13 +13084,13 @@ declare namespace xdr { static toXDR(value: Memo): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Memo; + static fromXDR(input: Buffer, format?: 'raw'): Memo; - static fromXDR(input: string, format: "hex" | "base64"): Memo; + static fromXDR(input: string, format: 'hex' | 'base64'): Memo; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class Preconditions { @@ -13084,9 +13108,9 @@ declare namespace xdr { value(): TimeBounds | PreconditionsV2 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): Preconditions; @@ -13096,13 +13120,13 @@ declare namespace xdr { static toXDR(value: Preconditions): Buffer; - static fromXDR(input: Buffer, format?: "raw"): Preconditions; + static fromXDR(input: Buffer, format?: 'raw'): Preconditions; - static fromXDR(input: string, format: "hex" | "base64"): Preconditions; + static fromXDR(input: string, format: 'hex' | 'base64'): Preconditions; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SorobanTransactionDataExt { @@ -13116,9 +13140,9 @@ declare namespace xdr { value(): SorobanResourcesExtV0 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SorobanTransactionDataExt; @@ -13128,16 +13152,16 @@ declare namespace xdr { static toXDR(value: SorobanTransactionDataExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SorobanTransactionDataExt; + static fromXDR(input: Buffer, format?: 'raw'): SorobanTransactionDataExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SorobanTransactionDataExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionV0Ext { @@ -13147,9 +13171,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionV0Ext; @@ -13159,13 +13183,13 @@ declare namespace xdr { static toXDR(value: TransactionV0Ext): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionV0Ext; + static fromXDR(input: Buffer, format?: 'raw'): TransactionV0Ext; - static fromXDR(input: string, format: "hex" | "base64"): TransactionV0Ext; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionV0Ext; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionExt { @@ -13179,9 +13203,9 @@ declare namespace xdr { value(): SorobanTransactionData | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionExt; @@ -13191,13 +13215,13 @@ declare namespace xdr { static toXDR(value: TransactionExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionExt; - static fromXDR(input: string, format: "hex" | "base64"): TransactionExt; + static fromXDR(input: string, format: 'hex' | 'base64'): TransactionExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionInnerTx { @@ -13211,9 +13235,9 @@ declare namespace xdr { value(): TransactionV1Envelope; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionInnerTx; @@ -13223,16 +13247,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionInnerTx): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionInnerTx; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionInnerTx; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionInnerTx; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class FeeBumpTransactionExt { @@ -13242,9 +13266,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): FeeBumpTransactionExt; @@ -13254,16 +13278,16 @@ declare namespace xdr { static toXDR(value: FeeBumpTransactionExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): FeeBumpTransactionExt; + static fromXDR(input: Buffer, format?: 'raw'): FeeBumpTransactionExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): FeeBumpTransactionExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionEnvelope { @@ -13288,9 +13312,9 @@ declare namespace xdr { | TransactionV1Envelope | FeeBumpTransactionEnvelope; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionEnvelope; @@ -13300,16 +13324,16 @@ declare namespace xdr { static toXDR(value: TransactionEnvelope): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionEnvelope; + static fromXDR(input: Buffer, format?: 'raw'): TransactionEnvelope; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionEnvelope; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionSignaturePayloadTaggedTransaction { @@ -13329,9 +13353,9 @@ declare namespace xdr { value(): Transaction | FeeBumpTransaction; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionSignaturePayloadTaggedTransaction; @@ -13348,17 +13372,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): TransactionSignaturePayloadTaggedTransaction; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionSignaturePayloadTaggedTransaction; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimAtom { @@ -13378,9 +13402,9 @@ declare namespace xdr { value(): ClaimOfferAtomV0 | ClaimOfferAtom | ClaimLiquidityAtom; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimAtom; @@ -13390,13 +13414,13 @@ declare namespace xdr { static toXDR(value: ClaimAtom): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimAtom; + static fromXDR(input: Buffer, format?: 'raw'): ClaimAtom; - static fromXDR(input: string, format: "hex" | "base64"): ClaimAtom; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimAtom; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateAccountResult { @@ -13414,9 +13438,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateAccountResult; @@ -13426,16 +13450,16 @@ declare namespace xdr { static toXDR(value: CreateAccountResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateAccountResult; + static fromXDR(input: Buffer, format?: 'raw'): CreateAccountResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateAccountResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PaymentResult { @@ -13463,9 +13487,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PaymentResult; @@ -13475,13 +13499,13 @@ declare namespace xdr { static toXDR(value: PaymentResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PaymentResult; + static fromXDR(input: Buffer, format?: 'raw'): PaymentResult; - static fromXDR(input: string, format: "hex" | "base64"): PaymentResult; + static fromXDR(input: string, format: 'hex' | 'base64'): PaymentResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictReceiveResult { @@ -13525,9 +13549,9 @@ declare namespace xdr { value(): PathPaymentStrictReceiveResultSuccess | Asset | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictReceiveResult; @@ -13539,17 +13563,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): PathPaymentStrictReceiveResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictReceiveResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PathPaymentStrictSendResult { @@ -13593,9 +13617,9 @@ declare namespace xdr { value(): PathPaymentStrictSendResultSuccess | Asset | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PathPaymentStrictSendResult; @@ -13605,16 +13629,16 @@ declare namespace xdr { static toXDR(value: PathPaymentStrictSendResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PathPaymentStrictSendResult; + static fromXDR(input: Buffer, format?: 'raw'): PathPaymentStrictSendResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): PathPaymentStrictSendResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageOfferSuccessResultOffer { @@ -13630,9 +13654,9 @@ declare namespace xdr { value(): OfferEntry | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageOfferSuccessResultOffer; @@ -13644,17 +13668,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ManageOfferSuccessResultOffer; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageOfferSuccessResultOffer; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageSellOfferResult { @@ -13692,9 +13716,9 @@ declare namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageSellOfferResult; @@ -13704,16 +13728,16 @@ declare namespace xdr { static toXDR(value: ManageSellOfferResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageSellOfferResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageSellOfferResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageSellOfferResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageBuyOfferResult { @@ -13751,9 +13775,9 @@ declare namespace xdr { value(): ManageOfferSuccessResult | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageBuyOfferResult; @@ -13763,16 +13787,16 @@ declare namespace xdr { static toXDR(value: ManageBuyOfferResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageBuyOfferResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageBuyOfferResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ManageBuyOfferResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetOptionsResult { @@ -13802,9 +13826,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetOptionsResult; @@ -13814,13 +13838,13 @@ declare namespace xdr { static toXDR(value: SetOptionsResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetOptionsResult; + static fromXDR(input: Buffer, format?: 'raw'): SetOptionsResult; - static fromXDR(input: string, format: "hex" | "base64"): SetOptionsResult; + static fromXDR(input: string, format: 'hex' | 'base64'): SetOptionsResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ChangeTrustResult { @@ -13846,9 +13870,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ChangeTrustResult; @@ -13858,13 +13882,13 @@ declare namespace xdr { static toXDR(value: ChangeTrustResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ChangeTrustResult; + static fromXDR(input: Buffer, format?: 'raw'): ChangeTrustResult; - static fromXDR(input: string, format: "hex" | "base64"): ChangeTrustResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ChangeTrustResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AllowTrustResult { @@ -13886,9 +13910,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AllowTrustResult; @@ -13898,13 +13922,13 @@ declare namespace xdr { static toXDR(value: AllowTrustResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AllowTrustResult; + static fromXDR(input: Buffer, format?: 'raw'): AllowTrustResult; - static fromXDR(input: string, format: "hex" | "base64"): AllowTrustResult; + static fromXDR(input: string, format: 'hex' | 'base64'): AllowTrustResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class AccountMergeResult { @@ -13930,9 +13954,9 @@ declare namespace xdr { value(): Int64 | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): AccountMergeResult; @@ -13942,13 +13966,13 @@ declare namespace xdr { static toXDR(value: AccountMergeResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): AccountMergeResult; + static fromXDR(input: Buffer, format?: 'raw'): AccountMergeResult; - static fromXDR(input: string, format: "hex" | "base64"): AccountMergeResult; + static fromXDR(input: string, format: 'hex' | 'base64'): AccountMergeResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InflationResult { @@ -13962,9 +13986,9 @@ declare namespace xdr { value(): InflationPayout[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InflationResult; @@ -13974,13 +13998,13 @@ declare namespace xdr { static toXDR(value: InflationResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InflationResult; + static fromXDR(input: Buffer, format?: 'raw'): InflationResult; - static fromXDR(input: string, format: "hex" | "base64"): InflationResult; + static fromXDR(input: string, format: 'hex' | 'base64'): InflationResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ManageDataResult { @@ -13998,9 +14022,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ManageDataResult; @@ -14010,13 +14034,13 @@ declare namespace xdr { static toXDR(value: ManageDataResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ManageDataResult; + static fromXDR(input: Buffer, format?: 'raw'): ManageDataResult; - static fromXDR(input: string, format: "hex" | "base64"): ManageDataResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ManageDataResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BumpSequenceResult { @@ -14028,9 +14052,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BumpSequenceResult; @@ -14040,13 +14064,13 @@ declare namespace xdr { static toXDR(value: BumpSequenceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): BumpSequenceResult; + static fromXDR(input: Buffer, format?: 'raw'): BumpSequenceResult; - static fromXDR(input: string, format: "hex" | "base64"): BumpSequenceResult; + static fromXDR(input: string, format: 'hex' | 'base64'): BumpSequenceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class CreateClaimableBalanceResult { @@ -14070,9 +14094,9 @@ declare namespace xdr { value(): ClaimableBalanceId | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): CreateClaimableBalanceResult; @@ -14082,16 +14106,16 @@ declare namespace xdr { static toXDR(value: CreateClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): CreateClaimableBalanceResult; + static fromXDR(input: Buffer, format?: 'raw'): CreateClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): CreateClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimClaimableBalanceResult { @@ -14111,9 +14135,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimClaimableBalanceResult; @@ -14123,16 +14147,16 @@ declare namespace xdr { static toXDR(value: ClaimClaimableBalanceResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimClaimableBalanceResult; + static fromXDR(input: Buffer, format?: 'raw'): ClaimClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClaimClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class BeginSponsoringFutureReservesResult { @@ -14148,9 +14172,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): BeginSponsoringFutureReservesResult; @@ -14162,17 +14186,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): BeginSponsoringFutureReservesResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): BeginSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class EndSponsoringFutureReservesResult { @@ -14184,9 +14208,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): EndSponsoringFutureReservesResult; @@ -14198,17 +14222,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): EndSponsoringFutureReservesResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): EndSponsoringFutureReservesResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RevokeSponsorshipResult { @@ -14228,9 +14252,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RevokeSponsorshipResult; @@ -14240,16 +14264,16 @@ declare namespace xdr { static toXDR(value: RevokeSponsorshipResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RevokeSponsorshipResult; + static fromXDR(input: Buffer, format?: 'raw'): RevokeSponsorshipResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RevokeSponsorshipResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackResult { @@ -14267,9 +14291,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackResult; @@ -14279,13 +14303,13 @@ declare namespace xdr { static toXDR(value: ClawbackResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClawbackResult; + static fromXDR(input: Buffer, format?: 'raw'): ClawbackResult; - static fromXDR(input: string, format: "hex" | "base64"): ClawbackResult; + static fromXDR(input: string, format: 'hex' | 'base64'): ClawbackResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClawbackClaimableBalanceResult { @@ -14301,9 +14325,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClawbackClaimableBalanceResult; @@ -14315,17 +14339,17 @@ declare namespace xdr { static fromXDR( input: Buffer, - format?: "raw", + format?: 'raw', ): ClawbackClaimableBalanceResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ClawbackClaimableBalanceResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SetTrustLineFlagsResult { @@ -14345,9 +14369,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SetTrustLineFlagsResult; @@ -14357,16 +14381,16 @@ declare namespace xdr { static toXDR(value: SetTrustLineFlagsResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SetTrustLineFlagsResult; + static fromXDR(input: Buffer, format?: 'raw'): SetTrustLineFlagsResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): SetTrustLineFlagsResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolDepositResult { @@ -14390,9 +14414,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolDepositResult; @@ -14402,16 +14426,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolDepositResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolDepositResult; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolDepositResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolDepositResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class LiquidityPoolWithdrawResult { @@ -14431,9 +14455,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): LiquidityPoolWithdrawResult; @@ -14443,16 +14467,16 @@ declare namespace xdr { static toXDR(value: LiquidityPoolWithdrawResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): LiquidityPoolWithdrawResult; + static fromXDR(input: Buffer, format?: 'raw'): LiquidityPoolWithdrawResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): LiquidityPoolWithdrawResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InvokeHostFunctionResult { @@ -14474,9 +14498,9 @@ declare namespace xdr { value(): Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InvokeHostFunctionResult; @@ -14486,16 +14510,16 @@ declare namespace xdr { static toXDR(value: InvokeHostFunctionResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InvokeHostFunctionResult; + static fromXDR(input: Buffer, format?: 'raw'): InvokeHostFunctionResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InvokeHostFunctionResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtendFootprintTtlResult { @@ -14511,9 +14535,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtendFootprintTtlResult; @@ -14523,16 +14547,16 @@ declare namespace xdr { static toXDR(value: ExtendFootprintTtlResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtendFootprintTtlResult; + static fromXDR(input: Buffer, format?: 'raw'): ExtendFootprintTtlResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ExtendFootprintTtlResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class RestoreFootprintResult { @@ -14548,9 +14572,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): RestoreFootprintResult; @@ -14560,16 +14584,16 @@ declare namespace xdr { static toXDR(value: RestoreFootprintResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): RestoreFootprintResult; + static fromXDR(input: Buffer, format?: 'raw'): RestoreFootprintResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): RestoreFootprintResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationResultTr { @@ -14766,9 +14790,9 @@ declare namespace xdr { | ExtendFootprintTtlResult | RestoreFootprintResult; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationResultTr; @@ -14778,13 +14802,13 @@ declare namespace xdr { static toXDR(value: OperationResultTr): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationResultTr; + static fromXDR(input: Buffer, format?: 'raw'): OperationResultTr; - static fromXDR(input: string, format: "hex" | "base64"): OperationResultTr; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationResultTr; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class OperationResult { @@ -14808,9 +14832,9 @@ declare namespace xdr { value(): OperationResultTr | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): OperationResult; @@ -14820,13 +14844,13 @@ declare namespace xdr { static toXDR(value: OperationResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): OperationResult; + static fromXDR(input: Buffer, format?: 'raw'): OperationResult; - static fromXDR(input: string, format: "hex" | "base64"): OperationResult; + static fromXDR(input: string, format: 'hex' | 'base64'): OperationResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultResult { @@ -14870,9 +14894,9 @@ declare namespace xdr { value(): OperationResult[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultResult; @@ -14882,16 +14906,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultResult; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class InnerTransactionResultExt { @@ -14901,9 +14925,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): InnerTransactionResultExt; @@ -14913,16 +14937,16 @@ declare namespace xdr { static toXDR(value: InnerTransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): InnerTransactionResultExt; + static fromXDR(input: Buffer, format?: 'raw'): InnerTransactionResultExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): InnerTransactionResultExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultResult { @@ -14978,9 +15002,9 @@ declare namespace xdr { value(): InnerTransactionResultPair | OperationResult[] | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultResult; @@ -14990,16 +15014,16 @@ declare namespace xdr { static toXDR(value: TransactionResultResult): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultResult; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultResult; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultResult; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class TransactionResultExt { @@ -15009,9 +15033,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): TransactionResultExt; @@ -15021,16 +15045,16 @@ declare namespace xdr { static toXDR(value: TransactionResultExt): Buffer; - static fromXDR(input: Buffer, format?: "raw"): TransactionResultExt; + static fromXDR(input: Buffer, format?: 'raw'): TransactionResultExt; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): TransactionResultExt; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ExtensionPoint { @@ -15040,9 +15064,9 @@ declare namespace xdr { value(): void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ExtensionPoint; @@ -15052,13 +15076,13 @@ declare namespace xdr { static toXDR(value: ExtensionPoint): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ExtensionPoint; + static fromXDR(input: Buffer, format?: 'raw'): ExtensionPoint; - static fromXDR(input: string, format: "hex" | "base64"): ExtensionPoint; + static fromXDR(input: string, format: 'hex' | 'base64'): ExtensionPoint; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class PublicKey { @@ -15070,9 +15094,9 @@ declare namespace xdr { value(): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): PublicKey; @@ -15082,13 +15106,13 @@ declare namespace xdr { static toXDR(value: PublicKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): PublicKey; + static fromXDR(input: Buffer, format?: 'raw'): PublicKey; - static fromXDR(input: string, format: "hex" | "base64"): PublicKey; + static fromXDR(input: string, format: 'hex' | 'base64'): PublicKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class SignerKey { @@ -15116,9 +15140,9 @@ declare namespace xdr { value(): Buffer | Buffer | Buffer | SignerKeyEd25519SignedPayload; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): SignerKey; @@ -15128,13 +15152,13 @@ declare namespace xdr { static toXDR(value: SignerKey): Buffer; - static fromXDR(input: Buffer, format?: "raw"): SignerKey; + static fromXDR(input: Buffer, format?: 'raw'): SignerKey; - static fromXDR(input: string, format: "hex" | "base64"): SignerKey; + static fromXDR(input: string, format: 'hex' | 'base64'): SignerKey; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ClaimableBalanceId { @@ -15146,9 +15170,9 @@ declare namespace xdr { value(): Buffer; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ClaimableBalanceId; @@ -15158,13 +15182,13 @@ declare namespace xdr { static toXDR(value: ClaimableBalanceId): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ClaimableBalanceId; + static fromXDR(input: Buffer, format?: 'raw'): ClaimableBalanceId; - static fromXDR(input: string, format: "hex" | "base64"): ClaimableBalanceId; + static fromXDR(input: string, format: 'hex' | 'base64'): ClaimableBalanceId; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScError { @@ -15196,9 +15220,9 @@ declare namespace xdr { value(): number | ScErrorCode; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScError; @@ -15208,13 +15232,13 @@ declare namespace xdr { static toXDR(value: ScError): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScError; + static fromXDR(input: Buffer, format?: 'raw'): ScError; - static fromXDR(input: string, format: "hex" | "base64"): ScError; + static fromXDR(input: string, format: 'hex' | 'base64'): ScError; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ContractExecutable { @@ -15228,9 +15252,9 @@ declare namespace xdr { value(): Buffer | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ContractExecutable; @@ -15240,13 +15264,13 @@ declare namespace xdr { static toXDR(value: ContractExecutable): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ContractExecutable; + static fromXDR(input: Buffer, format?: 'raw'): ContractExecutable; - static fromXDR(input: string, format: "hex" | "base64"): ContractExecutable; + static fromXDR(input: string, format: 'hex' | 'base64'): ContractExecutable; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScAddress { @@ -15279,9 +15303,9 @@ declare namespace xdr { | ClaimableBalanceId | PoolId; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScAddress; @@ -15291,13 +15315,13 @@ declare namespace xdr { static toXDR(value: ScAddress): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScAddress; + static fromXDR(input: Buffer, format?: 'raw'): ScAddress; - static fromXDR(input: string, format: "hex" | "base64"): ScAddress; + static fromXDR(input: string, format: 'hex' | 'base64'): ScAddress; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScVal { @@ -15414,9 +15438,9 @@ declare namespace xdr { | ScNonceKey | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScVal; @@ -15426,13 +15450,13 @@ declare namespace xdr { static toXDR(value: ScVal): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScVal; + static fromXDR(input: Buffer, format?: 'raw'): ScVal; - static fromXDR(input: string, format: "hex" | "base64"): ScVal; + static fromXDR(input: string, format: 'hex' | 'base64'): ScVal; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScEnvMetaEntry { @@ -15448,9 +15472,9 @@ declare namespace xdr { value(): ScEnvMetaEntryInterfaceVersion; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScEnvMetaEntry; @@ -15460,13 +15484,13 @@ declare namespace xdr { static toXDR(value: ScEnvMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScEnvMetaEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScEnvMetaEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScEnvMetaEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScEnvMetaEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScMetaEntry { @@ -15478,9 +15502,9 @@ declare namespace xdr { value(): ScMetaV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScMetaEntry; @@ -15490,13 +15514,13 @@ declare namespace xdr { static toXDR(value: ScMetaEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScMetaEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScMetaEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScMetaEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScMetaEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecTypeDef { @@ -15578,9 +15602,9 @@ declare namespace xdr { | ScSpecTypeUdt | void; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecTypeDef; @@ -15590,13 +15614,13 @@ declare namespace xdr { static toXDR(value: ScSpecTypeDef): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecTypeDef; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecTypeDef; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecTypeDef; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecTypeDef; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecUdtUnionCaseV0 { @@ -15616,9 +15640,9 @@ declare namespace xdr { value(): ScSpecUdtUnionCaseVoidV0 | ScSpecUdtUnionCaseTupleV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecUdtUnionCaseV0; @@ -15628,16 +15652,16 @@ declare namespace xdr { static toXDR(value: ScSpecUdtUnionCaseV0): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecUdtUnionCaseV0; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecUdtUnionCaseV0; static fromXDR( input: string, - format: "hex" | "base64", + format: 'hex' | 'base64', ): ScSpecUdtUnionCaseV0; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ScSpecEntry { @@ -15675,9 +15699,9 @@ declare namespace xdr { | ScSpecUdtErrorEnumV0 | ScSpecEventV0; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ScSpecEntry; @@ -15687,13 +15711,13 @@ declare namespace xdr { static toXDR(value: ScSpecEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ScSpecEntry; + static fromXDR(input: Buffer, format?: 'raw'): ScSpecEntry; - static fromXDR(input: string, format: "hex" | "base64"): ScSpecEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ScSpecEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } class ConfigSettingEntry { @@ -15838,9 +15862,9 @@ declare namespace xdr { | ConfigSettingContractLedgerCostExtV0 | ConfigSettingScpTiming; - toXDR(format?: "raw"): Buffer; + toXDR(format?: 'raw'): Buffer; - toXDR(format: "hex" | "base64"): string; + toXDR(format: 'hex' | 'base64'): string; static read(io: Buffer): ConfigSettingEntry; @@ -15850,12 +15874,12 @@ declare namespace xdr { static toXDR(value: ConfigSettingEntry): Buffer; - static fromXDR(input: Buffer, format?: "raw"): ConfigSettingEntry; + static fromXDR(input: Buffer, format?: 'raw'): ConfigSettingEntry; - static fromXDR(input: string, format: "hex" | "base64"): ConfigSettingEntry; + static fromXDR(input: string, format: 'hex' | 'base64'): ConfigSettingEntry; - static validateXDR(input: Buffer, format?: "raw"): boolean; + static validateXDR(input: Buffer, format?: 'raw'): boolean; - static validateXDR(input: string, format: "hex" | "base64"): boolean; + static validateXDR(input: string, format: 'hex' | 'base64'): boolean; } } From f03f3d0f4902934308d55a374f17817bd0417dc2 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 May 2025 14:50:44 -0700 Subject: [PATCH 3/4] 3. Accomodate XDR additions or renames: * This accounts for any fields that encountered a rename as part of the new XDR version. In this case, `readBytes` was renamed to `diskReadBytes` because it's measured differently as a result of Core's state living in memory rather than on disk in most cases. * It also accounts for the unused extension point actually having a name now, so `xdr.ExtensionPoint` needs to use the structure- specific `xdr.SorobanTransactionDataExt`, instead. --- src/sorobandata_builder.js | 12 ++++++------ test/unit/sorobandata_builder_test.js | 4 ++-- types/index.d.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/sorobandata_builder.js b/src/sorobandata_builder.js index 14828d39..49183154 100644 --- a/src/sorobandata_builder.js +++ b/src/sorobandata_builder.js @@ -41,10 +41,10 @@ export class SorobanDataBuilder { resources: new xdr.SorobanResources({ footprint: new xdr.LedgerFootprint({ readOnly: [], readWrite: [] }), instructions: 0, - readBytes: 0, + diskReadBytes: 0, writeBytes: 0 }), - ext: new xdr.ExtensionPoint(0), + ext: new xdr.SorobanTransactionDataExt(0), resourceFee: new xdr.Int64(0) }); } else if ( @@ -88,14 +88,14 @@ export class SorobanDataBuilder { * by transaction simulation/preflight from a Soroban RPC server. * * @param {number} cpuInstrs number of CPU instructions - * @param {number} readBytes number of bytes being read - * @param {number} writeBytes number of bytes being written + * @param {number} diskReadBytes number of bytes being read from disk + * @param {number} writeBytes number of bytes being written to disk/memory * * @returns {SorobanDataBuilder} */ - setResources(cpuInstrs, readBytes, writeBytes) { + setResources(cpuInstrs, diskReadBytes, writeBytes) { this._data.resources().instructions(cpuInstrs); - this._data.resources().readBytes(readBytes); + this._data.resources().diskReadBytes(diskReadBytes); this._data.resources().writeBytes(writeBytes); return this; diff --git a/test/unit/sorobandata_builder_test.js b/test/unit/sorobandata_builder_test.js index aff86f6a..536891ad 100644 --- a/test/unit/sorobandata_builder_test.js +++ b/test/unit/sorobandata_builder_test.js @@ -6,11 +6,11 @@ describe('SorobanTransactionData can be built', function () { const c = new StellarBase.Contract(contractId); const sentinel = new xdr.SorobanTransactionData({ - ext: new xdr.ExtensionPoint(0), + ext: new xdr.SorobanTransactionDataExt(0), resources: new xdr.SorobanResources({ footprint: new xdr.LedgerFootprint({ readOnly: [], readWrite: [] }), instructions: 1, - readBytes: 2, + diskReadBytes: 2, writeBytes: 3 }), resourceFee: new xdr.Int64(5) diff --git a/types/index.d.ts b/types/index.d.ts index 5ebc5872..b8502c66 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1190,7 +1190,7 @@ export class SorobanDataBuilder { setResourceFee(fee: IntLike): SorobanDataBuilder; setResources( cpuInstrs: number, - readBytes: number, + diskReadBytes: number, writeBytes: number ): SorobanDataBuilder; From 9c1b641d8143c99e55622bb1e2adb5fa508a446c Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 May 2025 16:50:03 -0700 Subject: [PATCH 4/4] Add docs to README for completeness --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 50220433..6ca2e1d2 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,22 @@ earlier versions of Node, so the tests need to run on those versions.) #### Updating XDR definitions +XDR updates are complicated due to the fact that you need workarounds for bugs +in the generator, formatter, or a namespace adjustment. + 1. Make sure you have [Docker](https://www.docker.com/) installed and running. -2. `make reset-xdr` +2. Change the commit hash to the right version of [stellar-xdr](https://github.com/stellar/stellar-xdr) and add any filenames that might've been introduced. +3. Run `make reset-xdr` +4. Run `sed -ie s/\"/\'/g types/{curr,next}.d.ts` to minimize the diff (the generator's formatter uses `"` but the repo uses `'`). +5. Move `xdr.Operation` into a hidden namespace to avoid conflicts with the SDK's `Operation`. +6. Add generator workarounds: + * `type Hash = Opaque[]` is a necessary alias that doesn't get generated + * `Hyper`, `UnsignedHyper`, and `ScSpecEventV0` need their signatures + fixed because linting wants an `Array` instead of a naked `[]`. + * Some constants aren't generated correctly (e.g, Ctrl+F `SCSYMBOL_LIMIT` in `src/curr_generated.js`) +7. Finally, make code adjustments related to the XDR (these are usually revealed by running the tests). + +As an example PR to follow, [stellar-base#800](https://github.com/stellar/js-stellar-base/pull/800) has detailed steps for each part of the process. ## Usage