xrpl 2.10.0 → 2.12.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +1308 -33
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/walletFromSecretNumbers.d.ts +7 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.js +27 -0
- package/dist/npm/Wallet/walletFromSecretNumbers.js.map +1 -0
- package/dist/npm/client/index.d.ts +2 -1
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/index.d.ts +1 -0
- package/dist/npm/index.d.ts.map +1 -1
- package/dist/npm/index.js +3 -1
- package/dist/npm/index.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +11 -0
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +27 -0
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -0
- package/dist/npm/models/ledger/AMM.js +3 -0
- package/dist/npm/models/ledger/AMM.js.map +1 -0
- package/dist/npm/models/ledger/AccountRoot.d.ts +2 -0
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts +17 -0
- package/dist/npm/models/ledger/Bridge.d.ts.map +1 -0
- package/dist/npm/models/ledger/Bridge.js +3 -0
- package/dist/npm/models/ledger/Bridge.js.map +1 -0
- package/dist/npm/models/ledger/LedgerEntry.d.ts +5 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +16 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.js +3 -0
- package/dist/npm/models/ledger/XChainOwnedClaimID.js.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +14 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js +3 -0
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js.map +1 -0
- package/dist/npm/models/ledger/index.d.ts +4 -1
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/ammInfo.d.ts +39 -0
- package/dist/npm/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/models/methods/ammInfo.js +3 -0
- package/dist/npm/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +4 -3
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +27 -0
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +12 -0
- package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMBid.js +56 -0
- package/dist/npm/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/models/transactions/AMMDelete.d.ts +9 -0
- package/dist/npm/models/transactions/AMMDelete.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMDelete.js +22 -0
- package/dist/npm/models/transactions/AMMDelete.js.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMVote.js +32 -0
- package/dist/npm/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +11 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js +35 -0
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +1 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +18 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +77 -0
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +17 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js +68 -0
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +1 -0
- package/dist/npm/models/transactions/XChainClaim.d.ts +12 -0
- package/dist/npm/models/transactions/XChainClaim.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainClaim.js +39 -0
- package/dist/npm/models/transactions/XChainClaim.js.map +1 -0
- package/dist/npm/models/transactions/XChainCommit.d.ts +11 -0
- package/dist/npm/models/transactions/XChainCommit.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCommit.js +33 -0
- package/dist/npm/models/transactions/XChainCommit.js.map +1 -0
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts +10 -0
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCreateBridge.js +26 -0
- package/dist/npm/models/transactions/XChainCreateBridge.js.map +1 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +10 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.js +28 -0
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -0
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts +17 -0
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +1 -0
- package/dist/npm/models/transactions/XChainModifyBridge.js +27 -0
- package/dist/npm/models/transactions/XChainModifyBridge.js.map +1 -0
- package/dist/npm/models/transactions/common.d.ts +3 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +22 -1
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +15 -1
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +7 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +15 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +56 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +18 -21
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/src/bridgeTransfer.d.ts +2 -0
- package/dist/npm/snippets/src/bridgeTransfer.d.ts.map +1 -0
- package/dist/npm/snippets/src/bridgeTransfer.js +124 -0
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -0
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts +7 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.d.ts.map +1 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js +27 -0
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js.map +1 -0
- package/dist/npm/src/client/index.d.ts +2 -1
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/index.d.ts +1 -0
- package/dist/npm/src/index.d.ts.map +1 -1
- package/dist/npm/src/index.js +3 -1
- package/dist/npm/src/index.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +11 -0
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +27 -0
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/AMM.js +3 -0
- package/dist/npm/src/models/ledger/AMM.js.map +1 -0
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +2 -0
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +17 -0
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/Bridge.js +3 -0
- package/dist/npm/src/models/ledger/Bridge.js.map +1 -0
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +5 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +16 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js +3 -0
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +14 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js +3 -0
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js.map +1 -0
- package/dist/npm/src/models/ledger/index.d.ts +4 -1
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ammInfo.d.ts +39 -0
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -0
- package/dist/npm/src/models/methods/ammInfo.js +3 -0
- package/dist/npm/src/models/methods/ammInfo.js.map +1 -0
- package/dist/npm/src/models/methods/index.d.ts +4 -3
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +27 -0
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +12 -0
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMBid.js +56 -0
- package/dist/npm/src/models/transactions/AMMBid.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts +11 -0
- package/dist/npm/src/models/transactions/AMMCreate.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMCreate.js +32 -0
- package/dist/npm/src/models/transactions/AMMCreate.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMDelete.d.ts +9 -0
- package/dist/npm/src/models/transactions/AMMDelete.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMDelete.js +22 -0
- package/dist/npm/src/models/transactions/AMMDelete.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts +27 -0
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js +51 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts +10 -0
- package/dist/npm/src/models/transactions/AMMVote.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMVote.js +32 -0
- package/dist/npm/src/models/transactions/AMMVote.js.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts +31 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js +50 -0
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +11 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +35 -0
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +18 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +77 -0
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +17 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +68 -0
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainClaim.d.ts +12 -0
- package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainClaim.js +39 -0
- package/dist/npm/src/models/transactions/XChainClaim.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCommit.d.ts +11 -0
- package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCommit.js +33 -0
- package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts +10 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.js +26 -0
- package/dist/npm/src/models/transactions/XChainCreateBridge.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +10 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js +28 -0
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts +17 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +27 -0
- package/dist/npm/src/models/transactions/XChainModifyBridge.js.map +1 -0
- package/dist/npm/src/models/transactions/common.d.ts +3 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +22 -1
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +15 -1
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +7 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +15 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +56 -0
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +18 -21
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +4 -3
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +4 -3
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/package.json +8 -6
- package/src/ECDSA.ts +6 -0
- package/src/Wallet/defaultFaucets.ts +82 -0
- package/src/Wallet/fundWallet.ts +344 -0
- package/src/Wallet/index.ts +504 -0
- package/src/Wallet/rfc1751.ts +190 -0
- package/src/Wallet/rfc1751Words.json +243 -0
- package/src/Wallet/signer.ts +173 -0
- package/src/Wallet/walletFromSecretNumbers.ts +37 -0
- package/src/client/BroadcastClient.ts +84 -0
- package/src/client/ConnectionManager.ts +40 -0
- package/src/client/ExponentialBackoff.ts +71 -0
- package/src/client/RequestManager.ts +194 -0
- package/src/client/WSWrapper.ts +106 -0
- package/src/client/connection.ts +593 -0
- package/src/client/index.ts +712 -0
- package/src/client/partialPayment.ts +153 -0
- package/src/errors.ts +161 -0
- package/src/index.ts +20 -0
- package/src/models/common/index.ts +156 -0
- package/src/models/index.ts +16 -0
- package/src/models/ledger/AMM.ts +78 -0
- package/src/models/ledger/AccountRoot.ts +217 -0
- package/src/models/ledger/Amendments.ts +45 -0
- package/src/models/ledger/BaseLedgerEntry.ts +3 -0
- package/src/models/ledger/Bridge.ts +84 -0
- package/src/models/ledger/Check.ts +70 -0
- package/src/models/ledger/DepositPreauth.ts +35 -0
- package/src/models/ledger/DirectoryNode.ts +46 -0
- package/src/models/ledger/Escrow.ts +74 -0
- package/src/models/ledger/FeeSettings.ts +52 -0
- package/src/models/ledger/Ledger.ts +65 -0
- package/src/models/ledger/LedgerEntry.ts +40 -0
- package/src/models/ledger/LedgerHashes.ts +24 -0
- package/src/models/ledger/NFTokenOffer.ts +16 -0
- package/src/models/ledger/NFTokenPage.ts +20 -0
- package/src/models/ledger/NegativeUNL.ts +34 -0
- package/src/models/ledger/Offer.ts +52 -0
- package/src/models/ledger/PayChannel.ts +107 -0
- package/src/models/ledger/RippleState.ts +88 -0
- package/src/models/ledger/SignerList.ts +56 -0
- package/src/models/ledger/Ticket.ts +36 -0
- package/src/models/ledger/XChainOwnedClaimID.ts +73 -0
- package/src/models/ledger/XChainOwnedCreateAccountClaimID.ts +60 -0
- package/src/models/ledger/index.ts +64 -0
- package/src/models/methods/accountChannels.ts +93 -0
- package/src/models/methods/accountCurrencies.ts +45 -0
- package/src/models/methods/accountInfo.ts +182 -0
- package/src/models/methods/accountLines.ts +137 -0
- package/src/models/methods/accountNFTs.ts +72 -0
- package/src/models/methods/accountObjects.ts +129 -0
- package/src/models/methods/accountOffers.ts +100 -0
- package/src/models/methods/accountTx.ts +109 -0
- package/src/models/methods/ammInfo.ts +145 -0
- package/src/models/methods/baseMethod.ts +58 -0
- package/src/models/methods/bookOffers.ts +96 -0
- package/src/models/methods/channelVerify.ts +41 -0
- package/src/models/methods/depositAuthorized.ts +56 -0
- package/src/models/methods/fee.ts +91 -0
- package/src/models/methods/gatewayBalances.ts +85 -0
- package/src/models/methods/index.ts +391 -0
- package/src/models/methods/ledger.ts +125 -0
- package/src/models/methods/ledgerClosed.ts +32 -0
- package/src/models/methods/ledgerCurrent.ts +31 -0
- package/src/models/methods/ledgerData.ts +78 -0
- package/src/models/methods/ledgerEntry.ts +202 -0
- package/src/models/methods/manifest.ts +54 -0
- package/src/models/methods/nftBuyOffers.ts +37 -0
- package/src/models/methods/nftHistory.ts +113 -0
- package/src/models/methods/nftInfo.ts +25 -0
- package/src/models/methods/nftSellOffers.ts +37 -0
- package/src/models/methods/norippleCheck.ts +82 -0
- package/src/models/methods/pathFind.ts +116 -0
- package/src/models/methods/ping.ts +21 -0
- package/src/models/methods/random.ts +23 -0
- package/src/models/methods/ripplePathFind.ts +81 -0
- package/src/models/methods/serverInfo.ts +257 -0
- package/src/models/methods/serverState.ts +77 -0
- package/src/models/methods/submit.ts +94 -0
- package/src/models/methods/submitMultisigned.ts +51 -0
- package/src/models/methods/subscribe.ts +435 -0
- package/src/models/methods/transactionEntry.ts +47 -0
- package/src/models/methods/tx.ts +69 -0
- package/src/models/methods/unsubscribe.ts +49 -0
- package/src/models/transactions/AMMBid.ts +140 -0
- package/src/models/transactions/AMMCreate.ts +80 -0
- package/src/models/transactions/AMMDelete.ts +55 -0
- package/src/models/transactions/AMMDeposit.ts +130 -0
- package/src/models/transactions/AMMVote.ts +71 -0
- package/src/models/transactions/AMMWithdraw.ts +126 -0
- package/src/models/transactions/NFTokenAcceptOffer.ts +104 -0
- package/src/models/transactions/NFTokenBurn.ts +48 -0
- package/src/models/transactions/NFTokenCancelOffer.ts +45 -0
- package/src/models/transactions/NFTokenCreateOffer.ts +145 -0
- package/src/models/transactions/NFTokenMint.ts +123 -0
- package/src/models/transactions/UNLModify.ts +20 -0
- package/src/models/transactions/XChainAccountCreateCommit.ts +107 -0
- package/src/models/transactions/XChainAddAccountCreateAttestation.ts +225 -0
- package/src/models/transactions/XChainAddClaimAttestation.ts +198 -0
- package/src/models/transactions/XChainClaim.ts +103 -0
- package/src/models/transactions/XChainCommit.ts +95 -0
- package/src/models/transactions/XChainCreateBridge.ts +78 -0
- package/src/models/transactions/XChainCreateClaimID.ts +78 -0
- package/src/models/transactions/XChainModifyBridge.ts +93 -0
- package/src/models/transactions/accountDelete.ts +50 -0
- package/src/models/transactions/accountSet.ts +228 -0
- package/src/models/transactions/checkCancel.ts +34 -0
- package/src/models/transactions/checkCash.ts +73 -0
- package/src/models/transactions/checkCreate.ts +90 -0
- package/src/models/transactions/clawback.ts +49 -0
- package/src/models/transactions/common.ts +320 -0
- package/src/models/transactions/depositPreauth.ts +68 -0
- package/src/models/transactions/enableAmendment.ts +26 -0
- package/src/models/transactions/escrowCancel.ts +45 -0
- package/src/models/transactions/escrowCreate.ts +100 -0
- package/src/models/transactions/escrowFinish.ts +63 -0
- package/src/models/transactions/index.ts +78 -0
- package/src/models/transactions/metadata.ts +69 -0
- package/src/models/transactions/offerCancel.ts +37 -0
- package/src/models/transactions/offerCreate.ts +144 -0
- package/src/models/transactions/payment.ts +278 -0
- package/src/models/transactions/paymentChannelClaim.ts +165 -0
- package/src/models/transactions/paymentChannelCreate.ts +116 -0
- package/src/models/transactions/paymentChannelFund.ts +65 -0
- package/src/models/transactions/setFee.ts +48 -0
- package/src/models/transactions/setRegularKey.ts +33 -0
- package/src/models/transactions/signerListSet.ts +89 -0
- package/src/models/transactions/ticketCreate.ts +50 -0
- package/src/models/transactions/transaction.ts +370 -0
- package/src/models/transactions/trustSet.ts +146 -0
- package/src/models/utils/flags.ts +103 -0
- package/src/models/utils/index.ts +37 -0
- package/src/sugar/autofill.ts +373 -0
- package/src/sugar/balances.ts +123 -0
- package/src/sugar/getFeeXrp.ts +45 -0
- package/src/sugar/getLedgerIndex.ts +15 -0
- package/src/sugar/getOrderbook.ts +152 -0
- package/src/sugar/index.ts +11 -0
- package/src/sugar/submit.ts +305 -0
- package/src/sugar/utils.ts +29 -0
- package/src/utils/derive.ts +23 -0
- package/src/utils/getBalanceChanges.ts +186 -0
- package/src/utils/getNFTokenID.ts +97 -0
- package/src/utils/hashes/HashPrefix.ts +40 -0
- package/src/utils/hashes/README.md +65 -0
- package/src/utils/hashes/SHAMap/InnerNode.ts +124 -0
- package/src/utils/hashes/SHAMap/LeafNode.ts +69 -0
- package/src/utils/hashes/SHAMap/index.ts +41 -0
- package/src/utils/hashes/SHAMap/node.ts +14 -0
- package/src/utils/hashes/hashLedger.ts +236 -0
- package/src/utils/hashes/index.ts +187 -0
- package/src/utils/hashes/ledgerSpaces.ts +34 -0
- package/src/utils/hashes/sha512Half.ts +19 -0
- package/src/utils/index.ts +223 -0
- package/src/utils/parseNFTokenID.ts +84 -0
- package/src/utils/quality.ts +169 -0
- package/src/utils/signPaymentChannelClaim.ts +27 -0
- package/src/utils/stringConversion.ts +27 -0
- package/src/utils/timeConversion.ts +53 -0
- package/src/utils/verifyPaymentChannelClaim.ts +30 -0
- package/src/utils/xrpConversion.ts +104 -0
package/build/xrpl-latest.js
CHANGED
@@ -67671,6 +67671,7 @@ const hash_160_1 = __webpack_require__(/*! ./hash-160 */ "../../node_modules/rip
|
|
67671
67671
|
Object.defineProperty(exports, "Hash160", ({ enumerable: true, get: function () { return hash_160_1.Hash160; } }));
|
67672
67672
|
const hash_256_1 = __webpack_require__(/*! ./hash-256 */ "../../node_modules/ripple-binary-codec/dist/types/hash-256.js");
|
67673
67673
|
Object.defineProperty(exports, "Hash256", ({ enumerable: true, get: function () { return hash_256_1.Hash256; } }));
|
67674
|
+
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
67674
67675
|
const path_set_1 = __webpack_require__(/*! ./path-set */ "../../node_modules/ripple-binary-codec/dist/types/path-set.js");
|
67675
67676
|
Object.defineProperty(exports, "PathSet", ({ enumerable: true, get: function () { return path_set_1.PathSet; } }));
|
67676
67677
|
const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
|
@@ -67687,6 +67688,7 @@ const uint_8_1 = __webpack_require__(/*! ./uint-8 */ "../../node_modules/ripple-
|
|
67687
67688
|
Object.defineProperty(exports, "UInt8", ({ enumerable: true, get: function () { return uint_8_1.UInt8; } }));
|
67688
67689
|
const vector_256_1 = __webpack_require__(/*! ./vector-256 */ "../../node_modules/ripple-binary-codec/dist/types/vector-256.js");
|
67689
67690
|
Object.defineProperty(exports, "Vector256", ({ enumerable: true, get: function () { return vector_256_1.Vector256; } }));
|
67691
|
+
const xchain_bridge_1 = __webpack_require__(/*! ./xchain-bridge */ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js");
|
67690
67692
|
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
67691
67693
|
const coreTypes = {
|
67692
67694
|
AccountID: account_id_1.AccountID,
|
@@ -67696,6 +67698,7 @@ const coreTypes = {
|
|
67696
67698
|
Hash128: hash_128_1.Hash128,
|
67697
67699
|
Hash160: hash_160_1.Hash160,
|
67698
67700
|
Hash256: hash_256_1.Hash256,
|
67701
|
+
Issue: issue_1.Issue,
|
67699
67702
|
PathSet: path_set_1.PathSet,
|
67700
67703
|
STArray: st_array_1.STArray,
|
67701
67704
|
STObject: st_object_1.STObject,
|
@@ -67704,6 +67707,7 @@ const coreTypes = {
|
|
67704
67707
|
UInt32: uint_32_1.UInt32,
|
67705
67708
|
UInt64: uint_64_1.UInt64,
|
67706
67709
|
Vector256: vector_256_1.Vector256,
|
67710
|
+
XChainBridge: xchain_bridge_1.XChainBridge,
|
67707
67711
|
};
|
67708
67712
|
exports.coreTypes = coreTypes;
|
67709
67713
|
// Ensures that the DEFAULT_DEFINITIONS object connects these types to fields for serializing/deserializing
|
@@ -67712,6 +67716,97 @@ exports.coreTypes = coreTypes;
|
|
67712
67716
|
enums_1.DEFAULT_DEFINITIONS.associateTypes(coreTypes);
|
67713
67717
|
|
67714
67718
|
|
67719
|
+
/***/ }),
|
67720
|
+
|
67721
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/types/issue.js":
|
67722
|
+
/*!******************************************************************!*\
|
67723
|
+
!*** ../../node_modules/ripple-binary-codec/dist/types/issue.js ***!
|
67724
|
+
\******************************************************************/
|
67725
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
67726
|
+
|
67727
|
+
"use strict";
|
67728
|
+
|
67729
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
67730
|
+
exports.Issue = void 0;
|
67731
|
+
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
67732
|
+
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
67733
|
+
const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
|
67734
|
+
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
67735
|
+
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
67736
|
+
/**
|
67737
|
+
* Type guard for AmountObject
|
67738
|
+
*/
|
67739
|
+
function isIssueObject(arg) {
|
67740
|
+
const keys = Object.keys(arg).sort();
|
67741
|
+
if (keys.length === 1) {
|
67742
|
+
return keys[0] === 'currency';
|
67743
|
+
}
|
67744
|
+
return keys.length === 2 && keys[0] === 'currency' && keys[1] === 'issuer';
|
67745
|
+
}
|
67746
|
+
/**
|
67747
|
+
* Class for serializing/Deserializing Amounts
|
67748
|
+
*/
|
67749
|
+
class Issue extends serialized_type_1.SerializedType {
|
67750
|
+
constructor(bytes) {
|
67751
|
+
super(bytes !== null && bytes !== void 0 ? bytes : Issue.ZERO_ISSUED_CURRENCY.bytes);
|
67752
|
+
}
|
67753
|
+
/**
|
67754
|
+
* Construct an amount from an IOU or string amount
|
67755
|
+
*
|
67756
|
+
* @param value An Amount, object representing an IOU, or a string
|
67757
|
+
* representing an integer amount
|
67758
|
+
* @returns An Amount object
|
67759
|
+
*/
|
67760
|
+
static from(value) {
|
67761
|
+
if (value instanceof Issue) {
|
67762
|
+
return value;
|
67763
|
+
}
|
67764
|
+
if (isIssueObject(value)) {
|
67765
|
+
const currency = currency_1.Currency.from(value.currency).toBytes();
|
67766
|
+
if (value.issuer == null) {
|
67767
|
+
return new Issue(currency);
|
67768
|
+
}
|
67769
|
+
const issuer = account_id_1.AccountID.from(value.issuer).toBytes();
|
67770
|
+
return new Issue(buffer_1.Buffer.concat([currency, issuer]));
|
67771
|
+
}
|
67772
|
+
throw new Error('Invalid type to construct an Amount');
|
67773
|
+
}
|
67774
|
+
/**
|
67775
|
+
* Read an amount from a BinaryParser
|
67776
|
+
*
|
67777
|
+
* @param parser BinaryParser to read the Amount from
|
67778
|
+
* @returns An Amount object
|
67779
|
+
*/
|
67780
|
+
static fromParser(parser) {
|
67781
|
+
const currency = parser.read(20);
|
67782
|
+
if (new currency_1.Currency(currency).toJSON() === 'XRP') {
|
67783
|
+
return new Issue(currency);
|
67784
|
+
}
|
67785
|
+
const currencyAndIssuer = [currency, parser.read(20)];
|
67786
|
+
return new Issue(buffer_1.Buffer.concat(currencyAndIssuer));
|
67787
|
+
}
|
67788
|
+
/**
|
67789
|
+
* Get the JSON representation of this Amount
|
67790
|
+
*
|
67791
|
+
* @returns the JSON interpretation of this.bytes
|
67792
|
+
*/
|
67793
|
+
toJSON() {
|
67794
|
+
const parser = new binary_parser_1.BinaryParser(this.toString());
|
67795
|
+
const currency = currency_1.Currency.fromParser(parser);
|
67796
|
+
if (currency.toJSON() === 'XRP') {
|
67797
|
+
return { currency: currency.toJSON() };
|
67798
|
+
}
|
67799
|
+
const issuer = account_id_1.AccountID.fromParser(parser);
|
67800
|
+
return {
|
67801
|
+
currency: currency.toJSON(),
|
67802
|
+
issuer: issuer.toJSON(),
|
67803
|
+
};
|
67804
|
+
}
|
67805
|
+
}
|
67806
|
+
exports.Issue = Issue;
|
67807
|
+
Issue.ZERO_ISSUED_CURRENCY = new Issue(buffer_1.Buffer.alloc(20));
|
67808
|
+
|
67809
|
+
|
67715
67810
|
/***/ }),
|
67716
67811
|
|
67717
67812
|
/***/ "../../node_modules/ripple-binary-codec/dist/types/path-set.js":
|
@@ -68725,6 +68820,118 @@ class Vector256 extends serialized_type_1.SerializedType {
|
|
68725
68820
|
exports.Vector256 = Vector256;
|
68726
68821
|
|
68727
68822
|
|
68823
|
+
/***/ }),
|
68824
|
+
|
68825
|
+
/***/ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js":
|
68826
|
+
/*!**************************************************************************!*\
|
68827
|
+
!*** ../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js ***!
|
68828
|
+
\**************************************************************************/
|
68829
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
68830
|
+
|
68831
|
+
"use strict";
|
68832
|
+
|
68833
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
68834
|
+
exports.XChainBridge = void 0;
|
68835
|
+
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
68836
|
+
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
68837
|
+
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
68838
|
+
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
68839
|
+
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
68840
|
+
/**
|
68841
|
+
* Type guard for XChainBridgeObject
|
68842
|
+
*/
|
68843
|
+
function isXChainBridgeObject(arg) {
|
68844
|
+
const keys = Object.keys(arg).sort();
|
68845
|
+
return (keys.length === 4 &&
|
68846
|
+
keys[0] === 'IssuingChainDoor' &&
|
68847
|
+
keys[1] === 'IssuingChainIssue' &&
|
68848
|
+
keys[2] === 'LockingChainDoor' &&
|
68849
|
+
keys[3] === 'LockingChainIssue');
|
68850
|
+
}
|
68851
|
+
/**
|
68852
|
+
* Class for serializing/deserializing XChainBridges
|
68853
|
+
*/
|
68854
|
+
class XChainBridge extends serialized_type_1.SerializedType {
|
68855
|
+
constructor(bytes) {
|
68856
|
+
super(bytes !== null && bytes !== void 0 ? bytes : XChainBridge.ZERO_XCHAIN_BRIDGE.bytes);
|
68857
|
+
}
|
68858
|
+
/**
|
68859
|
+
* Construct a cross-chain bridge from a JSON
|
68860
|
+
*
|
68861
|
+
* @param value XChainBridge or JSON to parse into a XChainBridge
|
68862
|
+
* @returns A XChainBridge object
|
68863
|
+
*/
|
68864
|
+
static from(value) {
|
68865
|
+
if (value instanceof XChainBridge) {
|
68866
|
+
return value;
|
68867
|
+
}
|
68868
|
+
if (isXChainBridgeObject(value)) {
|
68869
|
+
const bytes = [];
|
68870
|
+
this.TYPE_ORDER.forEach((item) => {
|
68871
|
+
const { name, type } = item;
|
68872
|
+
if (type === account_id_1.AccountID) {
|
68873
|
+
bytes.push(buffer_1.Buffer.from([0x14]));
|
68874
|
+
}
|
68875
|
+
const object = type.from(value[name]);
|
68876
|
+
bytes.push(object.toBytes());
|
68877
|
+
});
|
68878
|
+
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
68879
|
+
}
|
68880
|
+
throw new Error('Invalid type to construct a XChainBridge');
|
68881
|
+
}
|
68882
|
+
/**
|
68883
|
+
* Read a XChainBridge from a BinaryParser
|
68884
|
+
*
|
68885
|
+
* @param parser BinaryParser to read the XChainBridge from
|
68886
|
+
* @returns A XChainBridge object
|
68887
|
+
*/
|
68888
|
+
static fromParser(parser) {
|
68889
|
+
const bytes = [];
|
68890
|
+
this.TYPE_ORDER.forEach((item) => {
|
68891
|
+
const { type } = item;
|
68892
|
+
if (type === account_id_1.AccountID) {
|
68893
|
+
parser.skip(1);
|
68894
|
+
bytes.push(buffer_1.Buffer.from([0x14]));
|
68895
|
+
}
|
68896
|
+
const object = type.fromParser(parser);
|
68897
|
+
bytes.push(object.toBytes());
|
68898
|
+
});
|
68899
|
+
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
68900
|
+
}
|
68901
|
+
/**
|
68902
|
+
* Get the JSON representation of this XChainBridge
|
68903
|
+
*
|
68904
|
+
* @returns the JSON interpretation of this.bytes
|
68905
|
+
*/
|
68906
|
+
toJSON() {
|
68907
|
+
const parser = new binary_parser_1.BinaryParser(this.toString());
|
68908
|
+
const json = {};
|
68909
|
+
XChainBridge.TYPE_ORDER.forEach((item) => {
|
68910
|
+
const { name, type } = item;
|
68911
|
+
if (type === account_id_1.AccountID) {
|
68912
|
+
parser.skip(1);
|
68913
|
+
}
|
68914
|
+
const object = type.fromParser(parser).toJSON();
|
68915
|
+
json[name] = object;
|
68916
|
+
});
|
68917
|
+
return json;
|
68918
|
+
}
|
68919
|
+
}
|
68920
|
+
exports.XChainBridge = XChainBridge;
|
68921
|
+
XChainBridge.ZERO_XCHAIN_BRIDGE = new XChainBridge(buffer_1.Buffer.concat([
|
68922
|
+
buffer_1.Buffer.from([0x14]),
|
68923
|
+
buffer_1.Buffer.alloc(40),
|
68924
|
+
buffer_1.Buffer.from([0x14]),
|
68925
|
+
buffer_1.Buffer.alloc(40),
|
68926
|
+
]));
|
68927
|
+
XChainBridge.TYPE_ORDER = [
|
68928
|
+
{ name: 'LockingChainDoor', type: account_id_1.AccountID },
|
68929
|
+
{ name: 'LockingChainIssue', type: issue_1.Issue },
|
68930
|
+
{ name: 'IssuingChainDoor', type: account_id_1.AccountID },
|
68931
|
+
{ name: 'IssuingChainIssue', type: issue_1.Issue },
|
68932
|
+
];
|
68933
|
+
|
68934
|
+
|
68728
68935
|
/***/ }),
|
68729
68936
|
|
68730
68937
|
/***/ "../../node_modules/ripple-keypairs/dist/Sha512.js":
|
@@ -74979,6 +75186,237 @@ module.exports = {
|
|
74979
75186
|
}
|
74980
75187
|
|
74981
75188
|
|
75189
|
+
/***/ }),
|
75190
|
+
|
75191
|
+
/***/ "../../node_modules/xrpl-secret-numbers/dist/index.js":
|
75192
|
+
/*!************************************************************!*\
|
75193
|
+
!*** ../../node_modules/xrpl-secret-numbers/dist/index.js ***!
|
75194
|
+
\************************************************************/
|
75195
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
75196
|
+
|
75197
|
+
"use strict";
|
75198
|
+
|
75199
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
75200
|
+
if (k2 === undefined) k2 = k;
|
75201
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
75202
|
+
}) : (function(o, m, k, k2) {
|
75203
|
+
if (k2 === undefined) k2 = k;
|
75204
|
+
o[k2] = m[k];
|
75205
|
+
}));
|
75206
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
75207
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
75208
|
+
}) : function(o, v) {
|
75209
|
+
o["default"] = v;
|
75210
|
+
});
|
75211
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
75212
|
+
if (mod && mod.__esModule) return mod;
|
75213
|
+
var result = {};
|
75214
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
75215
|
+
__setModuleDefault(result, mod);
|
75216
|
+
return result;
|
75217
|
+
};
|
75218
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
75219
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
75220
|
+
};
|
75221
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75222
|
+
exports.Utils = exports.Account = void 0;
|
75223
|
+
/* Methods ==================================================================== */
|
75224
|
+
var Utils = __importStar(__webpack_require__(/*! ./utils */ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js"));
|
75225
|
+
exports.Utils = Utils;
|
75226
|
+
/* Types ==================================================================== */
|
75227
|
+
var Account_1 = __importDefault(__webpack_require__(/*! ./schema/Account */ "../../node_modules/xrpl-secret-numbers/dist/schema/Account.js"));
|
75228
|
+
exports.Account = Account_1.default;
|
75229
|
+
|
75230
|
+
|
75231
|
+
/***/ }),
|
75232
|
+
|
75233
|
+
/***/ "../../node_modules/xrpl-secret-numbers/dist/schema/Account.js":
|
75234
|
+
/*!*********************************************************************!*\
|
75235
|
+
!*** ../../node_modules/xrpl-secret-numbers/dist/schema/Account.js ***!
|
75236
|
+
\*********************************************************************/
|
75237
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
75238
|
+
|
75239
|
+
"use strict";
|
75240
|
+
/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js")["Buffer"];
|
75241
|
+
|
75242
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
75243
|
+
if (k2 === undefined) k2 = k;
|
75244
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
75245
|
+
}) : (function(o, m, k, k2) {
|
75246
|
+
if (k2 === undefined) k2 = k;
|
75247
|
+
o[k2] = m[k];
|
75248
|
+
}));
|
75249
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
75250
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
75251
|
+
}) : function(o, v) {
|
75252
|
+
o["default"] = v;
|
75253
|
+
});
|
75254
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
75255
|
+
if (mod && mod.__esModule) return mod;
|
75256
|
+
var result = {};
|
75257
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
75258
|
+
__setModuleDefault(result, mod);
|
75259
|
+
return result;
|
75260
|
+
};
|
75261
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
75262
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
75263
|
+
};
|
75264
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75265
|
+
var assert_1 = __importDefault(__webpack_require__(/*! assert */ "../../node_modules/assert/build/assert.js"));
|
75266
|
+
var keypairs = __importStar(__webpack_require__(/*! ripple-keypairs */ "../../node_modules/ripple-keypairs/dist/index.js"));
|
75267
|
+
var utils = __importStar(__webpack_require__(/*! ../utils */ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js"));
|
75268
|
+
/* Class ==================================================================== */
|
75269
|
+
var Account = /** @class */ (function () {
|
75270
|
+
function Account(SecretNumbers) {
|
75271
|
+
var _this = this;
|
75272
|
+
this.account = {
|
75273
|
+
familySeed: '',
|
75274
|
+
address: '',
|
75275
|
+
keypair: {
|
75276
|
+
publicKey: '',
|
75277
|
+
privateKey: ''
|
75278
|
+
}
|
75279
|
+
};
|
75280
|
+
var asserts = function () {
|
75281
|
+
assert_1.default.strictEqual(_this.secret.length, 8);
|
75282
|
+
_this.secret.forEach(function (r, i) {
|
75283
|
+
assert_1.default.strictEqual(r.length, 6);
|
75284
|
+
});
|
75285
|
+
};
|
75286
|
+
var derive = function () {
|
75287
|
+
try {
|
75288
|
+
var entropy = utils.secretToEntropy(_this.secret);
|
75289
|
+
_this.account.familySeed = keypairs.generateSeed({ entropy: entropy });
|
75290
|
+
_this.account.keypair = keypairs.deriveKeypair(_this.account.familySeed);
|
75291
|
+
_this.account.address = keypairs.deriveAddress(_this.account.keypair.publicKey);
|
75292
|
+
}
|
75293
|
+
catch (e) {
|
75294
|
+
throw e.message;
|
75295
|
+
}
|
75296
|
+
};
|
75297
|
+
if (typeof SecretNumbers === 'string') {
|
75298
|
+
this.secret = utils.parseSecretString(SecretNumbers);
|
75299
|
+
}
|
75300
|
+
else if (Array.isArray(SecretNumbers)) {
|
75301
|
+
this.secret = SecretNumbers;
|
75302
|
+
}
|
75303
|
+
else if (Buffer.isBuffer(SecretNumbers)) {
|
75304
|
+
this.secret = utils.entropyToSecret(SecretNumbers);
|
75305
|
+
}
|
75306
|
+
else {
|
75307
|
+
this.secret = utils.randomSecret();
|
75308
|
+
}
|
75309
|
+
asserts();
|
75310
|
+
derive();
|
75311
|
+
}
|
75312
|
+
Account.prototype.getSecret = function () {
|
75313
|
+
return this.secret;
|
75314
|
+
};
|
75315
|
+
Account.prototype.getSecretString = function () {
|
75316
|
+
return this.secret.join(' ');
|
75317
|
+
};
|
75318
|
+
Account.prototype.getAddress = function () {
|
75319
|
+
return this.account.address;
|
75320
|
+
};
|
75321
|
+
Account.prototype.getFamilySeed = function () {
|
75322
|
+
return this.account.familySeed;
|
75323
|
+
};
|
75324
|
+
Account.prototype.getKeypair = function () {
|
75325
|
+
return this.account.keypair;
|
75326
|
+
};
|
75327
|
+
Account.prototype.toString = function () {
|
75328
|
+
return this.getSecretString();
|
75329
|
+
};
|
75330
|
+
return Account;
|
75331
|
+
}());
|
75332
|
+
exports["default"] = Account;
|
75333
|
+
|
75334
|
+
|
75335
|
+
/***/ }),
|
75336
|
+
|
75337
|
+
/***/ "../../node_modules/xrpl-secret-numbers/dist/utils/index.js":
|
75338
|
+
/*!******************************************************************!*\
|
75339
|
+
!*** ../../node_modules/xrpl-secret-numbers/dist/utils/index.js ***!
|
75340
|
+
\******************************************************************/
|
75341
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
75342
|
+
|
75343
|
+
"use strict";
|
75344
|
+
/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js")["Buffer"];
|
75345
|
+
|
75346
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
75347
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
75348
|
+
};
|
75349
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75350
|
+
exports.parseSecretString = exports.checkChecksum = exports.calculateChecksum = exports.secretToEntropy = exports.entropyToSecret = exports.randomSecret = exports.randomEntropy = void 0;
|
75351
|
+
var assert_1 = __importDefault(__webpack_require__(/*! assert */ "../../node_modules/assert/build/assert.js"));
|
75352
|
+
var brorand_1 = __importDefault(__webpack_require__(/*! brorand */ "../../node_modules/brorand/index.js"));
|
75353
|
+
function randomEntropy() {
|
75354
|
+
return Buffer.from(brorand_1.default(16));
|
75355
|
+
}
|
75356
|
+
exports.randomEntropy = randomEntropy;
|
75357
|
+
function calculateChecksum(position, value) {
|
75358
|
+
return value * (position * 2 + 1) % 9;
|
75359
|
+
}
|
75360
|
+
exports.calculateChecksum = calculateChecksum;
|
75361
|
+
function checkChecksum(position, value, checksum) {
|
75362
|
+
if (typeof value === 'string') {
|
75363
|
+
assert_1.default.strictEqual(value.length, 6);
|
75364
|
+
checksum = parseInt(value.slice(5), 10);
|
75365
|
+
value = parseInt(value.slice(0, 5), 10);
|
75366
|
+
}
|
75367
|
+
return value * (position * 2 + 1) % 9 === checksum;
|
75368
|
+
}
|
75369
|
+
exports.checkChecksum = checkChecksum;
|
75370
|
+
function entropyToSecret(entropy) {
|
75371
|
+
var length = Array(Math.ceil(entropy.length / 2));
|
75372
|
+
var chunks = Array.apply(null, length).map(function (a, b) {
|
75373
|
+
return entropy.slice(b * 2, ++b * 2);
|
75374
|
+
}).map(function (r, i) {
|
75375
|
+
var no = parseInt(r.toString('hex'), 16);
|
75376
|
+
var fill = '0'.repeat(5 - String(no).length);
|
75377
|
+
return fill + String(no) + String(calculateChecksum(i, no));
|
75378
|
+
});
|
75379
|
+
assert_1.default.equal(chunks.length, 8);
|
75380
|
+
return chunks;
|
75381
|
+
}
|
75382
|
+
exports.entropyToSecret = entropyToSecret;
|
75383
|
+
function randomSecret() {
|
75384
|
+
return entropyToSecret(randomEntropy());
|
75385
|
+
}
|
75386
|
+
exports.randomSecret = randomSecret;
|
75387
|
+
function secretToEntropy(secret) {
|
75388
|
+
return Buffer.concat(secret.map(function (r, i) {
|
75389
|
+
var no = Number(r.slice(0, 5));
|
75390
|
+
var checksum = Number(r.slice(5));
|
75391
|
+
try {
|
75392
|
+
assert_1.default.strictEqual(r.length, 6);
|
75393
|
+
}
|
75394
|
+
catch (e) {
|
75395
|
+
throw new Error('Invalid secret: number invalid');
|
75396
|
+
}
|
75397
|
+
try {
|
75398
|
+
assert_1.default.strictEqual(checkChecksum(i, no, checksum), true);
|
75399
|
+
}
|
75400
|
+
catch (e) {
|
75401
|
+
throw new Error('Invalid secret part: checksum invalid');
|
75402
|
+
}
|
75403
|
+
var hex = ('0000' + no.toString(16)).slice(-4);
|
75404
|
+
return Buffer.from(hex, 'hex');
|
75405
|
+
}));
|
75406
|
+
}
|
75407
|
+
exports.secretToEntropy = secretToEntropy;
|
75408
|
+
function parseSecretString(secret) {
|
75409
|
+
secret = secret.replace(/[^0-9]/g, '');
|
75410
|
+
if (secret.length !== 48) {
|
75411
|
+
throw new Error('Invalid secret string (should contain 8 blocks of 6 digits');
|
75412
|
+
}
|
75413
|
+
return Array.apply(null, Array(8)).map(function (a, i) {
|
75414
|
+
return secret.slice(i * 6, (i + 1) * 6);
|
75415
|
+
});
|
75416
|
+
}
|
75417
|
+
exports.parseSecretString = parseSecretString;
|
75418
|
+
|
75419
|
+
|
74982
75420
|
/***/ }),
|
74983
75421
|
|
74984
75422
|
/***/ "../../node_modules/xtend/immutable.js":
|
@@ -75648,6 +76086,43 @@ function getDecodedTransaction(txOrBlob) {
|
|
75648
76086
|
}
|
75649
76087
|
|
75650
76088
|
|
76089
|
+
/***/ }),
|
76090
|
+
|
76091
|
+
/***/ "./dist/npm/Wallet/walletFromSecretNumbers.js":
|
76092
|
+
/*!****************************************************!*\
|
76093
|
+
!*** ./dist/npm/Wallet/walletFromSecretNumbers.js ***!
|
76094
|
+
\****************************************************/
|
76095
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
76096
|
+
|
76097
|
+
"use strict";
|
76098
|
+
|
76099
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
76100
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
76101
|
+
};
|
76102
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76103
|
+
exports.walletFromSecretNumbers = void 0;
|
76104
|
+
const xrpl_secret_numbers_1 = __webpack_require__(/*! xrpl-secret-numbers */ "../../node_modules/xrpl-secret-numbers/dist/index.js");
|
76105
|
+
const ECDSA_1 = __importDefault(__webpack_require__(/*! ../ECDSA */ "./dist/npm/ECDSA.js"));
|
76106
|
+
const _1 = __webpack_require__(/*! . */ "./dist/npm/Wallet/index.js");
|
76107
|
+
function walletFromSecretNumbers(secretNumbers, opts) {
|
76108
|
+
var _a;
|
76109
|
+
const secret = new xrpl_secret_numbers_1.Account(secretNumbers).getFamilySeed();
|
76110
|
+
const updatedOpts = {
|
76111
|
+
masterAddress: undefined,
|
76112
|
+
algorithm: undefined,
|
76113
|
+
};
|
76114
|
+
if (opts === undefined) {
|
76115
|
+
updatedOpts.algorithm = ECDSA_1.default.secp256k1;
|
76116
|
+
}
|
76117
|
+
else {
|
76118
|
+
updatedOpts.masterAddress = opts.masterAddress;
|
76119
|
+
updatedOpts.algorithm = (_a = opts.algorithm) !== null && _a !== void 0 ? _a : ECDSA_1.default.secp256k1;
|
76120
|
+
}
|
76121
|
+
return _1.Wallet.fromSecret(secret, updatedOpts);
|
76122
|
+
}
|
76123
|
+
exports.walletFromSecretNumbers = walletFromSecretNumbers;
|
76124
|
+
|
76125
|
+
|
75651
76126
|
/***/ }),
|
75652
76127
|
|
75653
76128
|
/***/ "./dist/npm/client/BroadcastClient.js":
|
@@ -76742,7 +77217,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
76742
77217
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
76743
77218
|
};
|
76744
77219
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76745
|
-
exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.Wallet = exports.ECDSA = exports.Client = exports.BroadcastClient = void 0;
|
77220
|
+
exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.walletFromSecretNumbers = exports.Wallet = exports.ECDSA = exports.Client = exports.BroadcastClient = void 0;
|
76746
77221
|
var BroadcastClient_1 = __webpack_require__(/*! ./client/BroadcastClient */ "./dist/npm/client/BroadcastClient.js");
|
76747
77222
|
Object.defineProperty(exports, "BroadcastClient", ({ enumerable: true, get: function () { return BroadcastClient_1.BroadcastClient; } }));
|
76748
77223
|
var client_1 = __webpack_require__(/*! ./client */ "./dist/npm/client/index.js");
|
@@ -76754,6 +77229,8 @@ Object.defineProperty(exports, "ECDSA", ({ enumerable: true, get: function () {
|
|
76754
77229
|
__exportStar(__webpack_require__(/*! ./errors */ "./dist/npm/errors.js"), exports);
|
76755
77230
|
var Wallet_1 = __webpack_require__(/*! ./Wallet */ "./dist/npm/Wallet/index.js");
|
76756
77231
|
Object.defineProperty(exports, "Wallet", ({ enumerable: true, get: function () { return Wallet_1.Wallet; } }));
|
77232
|
+
var walletFromSecretNumbers_1 = __webpack_require__(/*! ./Wallet/walletFromSecretNumbers */ "./dist/npm/Wallet/walletFromSecretNumbers.js");
|
77233
|
+
Object.defineProperty(exports, "walletFromSecretNumbers", ({ enumerable: true, get: function () { return walletFromSecretNumbers_1.walletFromSecretNumbers; } }));
|
76757
77234
|
var rfc1751_1 = __webpack_require__(/*! ./Wallet/rfc1751 */ "./dist/npm/Wallet/rfc1751.js");
|
76758
77235
|
Object.defineProperty(exports, "keyToRFC1751Mnemonic", ({ enumerable: true, get: function () { return rfc1751_1.keyToRFC1751Mnemonic; } }));
|
76759
77236
|
Object.defineProperty(exports, "rfc1751MnemonicToKey", ({ enumerable: true, get: function () { return rfc1751_1.rfc1751MnemonicToKey; } }));
|
@@ -76843,6 +77320,7 @@ var AccountRootFlags;
|
|
76843
77320
|
AccountRootFlags[AccountRootFlags["lsfGlobalFreeze"] = 4194304] = "lsfGlobalFreeze";
|
76844
77321
|
AccountRootFlags[AccountRootFlags["lsfDefaultRipple"] = 8388608] = "lsfDefaultRipple";
|
76845
77322
|
AccountRootFlags[AccountRootFlags["lsfDepositAuth"] = 16777216] = "lsfDepositAuth";
|
77323
|
+
AccountRootFlags[AccountRootFlags["lsfAMM"] = 33554432] = "lsfAMM";
|
76846
77324
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingNFTokenOffer"] = 67108864] = "lsfDisallowIncomingNFTokenOffer";
|
76847
77325
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingCheck"] = 134217728] = "lsfDisallowIncomingCheck";
|
76848
77326
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingPayChan"] = 268435456] = "lsfDisallowIncomingPayChan";
|
@@ -77001,11 +77479,314 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77001
77479
|
|
77002
77480
|
/***/ }),
|
77003
77481
|
|
77004
|
-
/***/ "./dist/npm/models/transactions/
|
77005
|
-
|
77006
|
-
!*** ./dist/npm/models/transactions/
|
77007
|
-
|
77008
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77482
|
+
/***/ "./dist/npm/models/transactions/AMMBid.js":
|
77483
|
+
/*!************************************************!*\
|
77484
|
+
!*** ./dist/npm/models/transactions/AMMBid.js ***!
|
77485
|
+
\************************************************/
|
77486
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77487
|
+
|
77488
|
+
"use strict";
|
77489
|
+
|
77490
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77491
|
+
exports.validateAMMBid = void 0;
|
77492
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77493
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77494
|
+
const MAX_AUTH_ACCOUNTS = 4;
|
77495
|
+
function validateAMMBid(tx) {
|
77496
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77497
|
+
if (tx.Asset == null) {
|
77498
|
+
throw new errors_1.ValidationError('AMMBid: missing field Asset');
|
77499
|
+
}
|
77500
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
77501
|
+
throw new errors_1.ValidationError('AMMBid: Asset must be a Currency');
|
77502
|
+
}
|
77503
|
+
if (tx.Asset2 == null) {
|
77504
|
+
throw new errors_1.ValidationError('AMMBid: missing field Asset2');
|
77505
|
+
}
|
77506
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
77507
|
+
throw new errors_1.ValidationError('AMMBid: Asset2 must be a Currency');
|
77508
|
+
}
|
77509
|
+
if (tx.BidMin != null && !(0, common_1.isAmount)(tx.BidMin)) {
|
77510
|
+
throw new errors_1.ValidationError('AMMBid: BidMin must be an Amount');
|
77511
|
+
}
|
77512
|
+
if (tx.BidMax != null && !(0, common_1.isAmount)(tx.BidMax)) {
|
77513
|
+
throw new errors_1.ValidationError('AMMBid: BidMax must be an Amount');
|
77514
|
+
}
|
77515
|
+
if (tx.AuthAccounts != null) {
|
77516
|
+
if (!Array.isArray(tx.AuthAccounts)) {
|
77517
|
+
throw new errors_1.ValidationError(`AMMBid: AuthAccounts must be an AuthAccount array`);
|
77518
|
+
}
|
77519
|
+
if (tx.AuthAccounts.length > MAX_AUTH_ACCOUNTS) {
|
77520
|
+
throw new errors_1.ValidationError(`AMMBid: AuthAccounts length must not be greater than ${MAX_AUTH_ACCOUNTS}`);
|
77521
|
+
}
|
77522
|
+
validateAuthAccounts(tx.Account, tx.AuthAccounts);
|
77523
|
+
}
|
77524
|
+
}
|
77525
|
+
exports.validateAMMBid = validateAMMBid;
|
77526
|
+
function validateAuthAccounts(senderAddress, authAccounts) {
|
77527
|
+
for (const authAccount of authAccounts) {
|
77528
|
+
if (authAccount.AuthAccount == null ||
|
77529
|
+
typeof authAccount.AuthAccount !== 'object') {
|
77530
|
+
throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
|
77531
|
+
}
|
77532
|
+
if (authAccount.AuthAccount.Account == null) {
|
77533
|
+
throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
|
77534
|
+
}
|
77535
|
+
if (typeof authAccount.AuthAccount.Account !== 'string') {
|
77536
|
+
throw new errors_1.ValidationError(`AMMBid: invalid AuthAccounts`);
|
77537
|
+
}
|
77538
|
+
if (authAccount.AuthAccount.Account === senderAddress) {
|
77539
|
+
throw new errors_1.ValidationError(`AMMBid: AuthAccounts must not include sender's address`);
|
77540
|
+
}
|
77541
|
+
}
|
77542
|
+
return true;
|
77543
|
+
}
|
77544
|
+
|
77545
|
+
|
77546
|
+
/***/ }),
|
77547
|
+
|
77548
|
+
/***/ "./dist/npm/models/transactions/AMMCreate.js":
|
77549
|
+
/*!***************************************************!*\
|
77550
|
+
!*** ./dist/npm/models/transactions/AMMCreate.js ***!
|
77551
|
+
\***************************************************/
|
77552
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77553
|
+
|
77554
|
+
"use strict";
|
77555
|
+
|
77556
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77557
|
+
exports.validateAMMCreate = exports.AMM_MAX_TRADING_FEE = void 0;
|
77558
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77559
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77560
|
+
exports.AMM_MAX_TRADING_FEE = 1000;
|
77561
|
+
function validateAMMCreate(tx) {
|
77562
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77563
|
+
if (tx.Amount == null) {
|
77564
|
+
throw new errors_1.ValidationError('AMMCreate: missing field Amount');
|
77565
|
+
}
|
77566
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
77567
|
+
throw new errors_1.ValidationError('AMMCreate: Amount must be an Amount');
|
77568
|
+
}
|
77569
|
+
if (tx.Amount2 == null) {
|
77570
|
+
throw new errors_1.ValidationError('AMMCreate: missing field Amount2');
|
77571
|
+
}
|
77572
|
+
if (!(0, common_1.isAmount)(tx.Amount2)) {
|
77573
|
+
throw new errors_1.ValidationError('AMMCreate: Amount2 must be an Amount');
|
77574
|
+
}
|
77575
|
+
if (tx.TradingFee == null) {
|
77576
|
+
throw new errors_1.ValidationError('AMMCreate: missing field TradingFee');
|
77577
|
+
}
|
77578
|
+
if (typeof tx.TradingFee !== 'number') {
|
77579
|
+
throw new errors_1.ValidationError('AMMCreate: TradingFee must be a number');
|
77580
|
+
}
|
77581
|
+
if (tx.TradingFee < 0 || tx.TradingFee > exports.AMM_MAX_TRADING_FEE) {
|
77582
|
+
throw new errors_1.ValidationError(`AMMCreate: TradingFee must be between 0 and ${exports.AMM_MAX_TRADING_FEE}`);
|
77583
|
+
}
|
77584
|
+
}
|
77585
|
+
exports.validateAMMCreate = validateAMMCreate;
|
77586
|
+
|
77587
|
+
|
77588
|
+
/***/ }),
|
77589
|
+
|
77590
|
+
/***/ "./dist/npm/models/transactions/AMMDelete.js":
|
77591
|
+
/*!***************************************************!*\
|
77592
|
+
!*** ./dist/npm/models/transactions/AMMDelete.js ***!
|
77593
|
+
\***************************************************/
|
77594
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77595
|
+
|
77596
|
+
"use strict";
|
77597
|
+
|
77598
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77599
|
+
exports.validateAMMDelete = void 0;
|
77600
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77601
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77602
|
+
function validateAMMDelete(tx) {
|
77603
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77604
|
+
if (tx.Asset == null) {
|
77605
|
+
throw new errors_1.ValidationError('AMMDelete: missing field Asset');
|
77606
|
+
}
|
77607
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
77608
|
+
throw new errors_1.ValidationError('AMMDelete: Asset must be a Currency');
|
77609
|
+
}
|
77610
|
+
if (tx.Asset2 == null) {
|
77611
|
+
throw new errors_1.ValidationError('AMMDelete: missing field Asset2');
|
77612
|
+
}
|
77613
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
77614
|
+
throw new errors_1.ValidationError('AMMDelete: Asset2 must be a Currency');
|
77615
|
+
}
|
77616
|
+
}
|
77617
|
+
exports.validateAMMDelete = validateAMMDelete;
|
77618
|
+
|
77619
|
+
|
77620
|
+
/***/ }),
|
77621
|
+
|
77622
|
+
/***/ "./dist/npm/models/transactions/AMMDeposit.js":
|
77623
|
+
/*!****************************************************!*\
|
77624
|
+
!*** ./dist/npm/models/transactions/AMMDeposit.js ***!
|
77625
|
+
\****************************************************/
|
77626
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77627
|
+
|
77628
|
+
"use strict";
|
77629
|
+
|
77630
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77631
|
+
exports.validateAMMDeposit = exports.AMMDepositFlags = void 0;
|
77632
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77633
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77634
|
+
var AMMDepositFlags;
|
77635
|
+
(function (AMMDepositFlags) {
|
77636
|
+
AMMDepositFlags[AMMDepositFlags["tfLPToken"] = 65536] = "tfLPToken";
|
77637
|
+
AMMDepositFlags[AMMDepositFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
77638
|
+
AMMDepositFlags[AMMDepositFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
77639
|
+
AMMDepositFlags[AMMDepositFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
77640
|
+
AMMDepositFlags[AMMDepositFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
77641
|
+
})(AMMDepositFlags = exports.AMMDepositFlags || (exports.AMMDepositFlags = {}));
|
77642
|
+
function validateAMMDeposit(tx) {
|
77643
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77644
|
+
if (tx.Asset == null) {
|
77645
|
+
throw new errors_1.ValidationError('AMMDeposit: missing field Asset');
|
77646
|
+
}
|
77647
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
77648
|
+
throw new errors_1.ValidationError('AMMDeposit: Asset must be a Currency');
|
77649
|
+
}
|
77650
|
+
if (tx.Asset2 == null) {
|
77651
|
+
throw new errors_1.ValidationError('AMMDeposit: missing field Asset2');
|
77652
|
+
}
|
77653
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
77654
|
+
throw new errors_1.ValidationError('AMMDeposit: Asset2 must be a Currency');
|
77655
|
+
}
|
77656
|
+
if (tx.Amount2 != null && tx.Amount == null) {
|
77657
|
+
throw new errors_1.ValidationError('AMMDeposit: must set Amount with Amount2');
|
77658
|
+
}
|
77659
|
+
else if (tx.EPrice != null && tx.Amount == null) {
|
77660
|
+
throw new errors_1.ValidationError('AMMDeposit: must set Amount with EPrice');
|
77661
|
+
}
|
77662
|
+
else if (tx.LPTokenOut == null && tx.Amount == null) {
|
77663
|
+
throw new errors_1.ValidationError('AMMDeposit: must set at least LPTokenOut or Amount');
|
77664
|
+
}
|
77665
|
+
if (tx.LPTokenOut != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenOut)) {
|
77666
|
+
throw new errors_1.ValidationError('AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount');
|
77667
|
+
}
|
77668
|
+
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
77669
|
+
throw new errors_1.ValidationError('AMMDeposit: Amount must be an Amount');
|
77670
|
+
}
|
77671
|
+
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
77672
|
+
throw new errors_1.ValidationError('AMMDeposit: Amount2 must be an Amount');
|
77673
|
+
}
|
77674
|
+
if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
|
77675
|
+
throw new errors_1.ValidationError('AMMDeposit: EPrice must be an Amount');
|
77676
|
+
}
|
77677
|
+
}
|
77678
|
+
exports.validateAMMDeposit = validateAMMDeposit;
|
77679
|
+
|
77680
|
+
|
77681
|
+
/***/ }),
|
77682
|
+
|
77683
|
+
/***/ "./dist/npm/models/transactions/AMMVote.js":
|
77684
|
+
/*!*************************************************!*\
|
77685
|
+
!*** ./dist/npm/models/transactions/AMMVote.js ***!
|
77686
|
+
\*************************************************/
|
77687
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77688
|
+
|
77689
|
+
"use strict";
|
77690
|
+
|
77691
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77692
|
+
exports.validateAMMVote = void 0;
|
77693
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77694
|
+
const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
|
77695
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77696
|
+
function validateAMMVote(tx) {
|
77697
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77698
|
+
if (tx.Asset == null) {
|
77699
|
+
throw new errors_1.ValidationError('AMMVote: missing field Asset');
|
77700
|
+
}
|
77701
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
77702
|
+
throw new errors_1.ValidationError('AMMVote: Asset must be a Currency');
|
77703
|
+
}
|
77704
|
+
if (tx.Asset2 == null) {
|
77705
|
+
throw new errors_1.ValidationError('AMMVote: missing field Asset2');
|
77706
|
+
}
|
77707
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
77708
|
+
throw new errors_1.ValidationError('AMMVote: Asset2 must be a Currency');
|
77709
|
+
}
|
77710
|
+
if (tx.TradingFee == null) {
|
77711
|
+
throw new errors_1.ValidationError('AMMVote: missing field TradingFee');
|
77712
|
+
}
|
77713
|
+
if (typeof tx.TradingFee !== 'number') {
|
77714
|
+
throw new errors_1.ValidationError('AMMVote: TradingFee must be a number');
|
77715
|
+
}
|
77716
|
+
if (tx.TradingFee < 0 || tx.TradingFee > AMMCreate_1.AMM_MAX_TRADING_FEE) {
|
77717
|
+
throw new errors_1.ValidationError(`AMMVote: TradingFee must be between 0 and ${AMMCreate_1.AMM_MAX_TRADING_FEE}`);
|
77718
|
+
}
|
77719
|
+
}
|
77720
|
+
exports.validateAMMVote = validateAMMVote;
|
77721
|
+
|
77722
|
+
|
77723
|
+
/***/ }),
|
77724
|
+
|
77725
|
+
/***/ "./dist/npm/models/transactions/AMMWithdraw.js":
|
77726
|
+
/*!*****************************************************!*\
|
77727
|
+
!*** ./dist/npm/models/transactions/AMMWithdraw.js ***!
|
77728
|
+
\*****************************************************/
|
77729
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77730
|
+
|
77731
|
+
"use strict";
|
77732
|
+
|
77733
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77734
|
+
exports.validateAMMWithdraw = exports.AMMWithdrawFlags = void 0;
|
77735
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77736
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77737
|
+
var AMMWithdrawFlags;
|
77738
|
+
(function (AMMWithdrawFlags) {
|
77739
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfLPToken"] = 65536] = "tfLPToken";
|
77740
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfWithdrawAll"] = 131072] = "tfWithdrawAll";
|
77741
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetWithdrawAll"] = 262144] = "tfOneAssetWithdrawAll";
|
77742
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
77743
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
77744
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
77745
|
+
AMMWithdrawFlags[AMMWithdrawFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
77746
|
+
})(AMMWithdrawFlags = exports.AMMWithdrawFlags || (exports.AMMWithdrawFlags = {}));
|
77747
|
+
function validateAMMWithdraw(tx) {
|
77748
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77749
|
+
if (tx.Asset == null) {
|
77750
|
+
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset');
|
77751
|
+
}
|
77752
|
+
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
77753
|
+
throw new errors_1.ValidationError('AMMWithdraw: Asset must be a Currency');
|
77754
|
+
}
|
77755
|
+
if (tx.Asset2 == null) {
|
77756
|
+
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset2');
|
77757
|
+
}
|
77758
|
+
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
77759
|
+
throw new errors_1.ValidationError('AMMWithdraw: Asset2 must be a Currency');
|
77760
|
+
}
|
77761
|
+
if (tx.Amount2 != null && tx.Amount == null) {
|
77762
|
+
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with Amount2');
|
77763
|
+
}
|
77764
|
+
else if (tx.EPrice != null && tx.Amount == null) {
|
77765
|
+
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with EPrice');
|
77766
|
+
}
|
77767
|
+
if (tx.LPTokenIn != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenIn)) {
|
77768
|
+
throw new errors_1.ValidationError('AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount');
|
77769
|
+
}
|
77770
|
+
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
77771
|
+
throw new errors_1.ValidationError('AMMWithdraw: Amount must be an Amount');
|
77772
|
+
}
|
77773
|
+
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
77774
|
+
throw new errors_1.ValidationError('AMMWithdraw: Amount2 must be an Amount');
|
77775
|
+
}
|
77776
|
+
if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
|
77777
|
+
throw new errors_1.ValidationError('AMMWithdraw: EPrice must be an Amount');
|
77778
|
+
}
|
77779
|
+
}
|
77780
|
+
exports.validateAMMWithdraw = validateAMMWithdraw;
|
77781
|
+
|
77782
|
+
|
77783
|
+
/***/ }),
|
77784
|
+
|
77785
|
+
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
77786
|
+
/*!************************************************************!*\
|
77787
|
+
!*** ./dist/npm/models/transactions/NFTokenAcceptOffer.js ***!
|
77788
|
+
\************************************************************/
|
77789
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77009
77790
|
|
77010
77791
|
"use strict";
|
77011
77792
|
|
@@ -77183,6 +77964,419 @@ function validateNFTokenMint(tx) {
|
|
77183
77964
|
exports.validateNFTokenMint = validateNFTokenMint;
|
77184
77965
|
|
77185
77966
|
|
77967
|
+
/***/ }),
|
77968
|
+
|
77969
|
+
/***/ "./dist/npm/models/transactions/XChainAccountCreateCommit.js":
|
77970
|
+
/*!*******************************************************************!*\
|
77971
|
+
!*** ./dist/npm/models/transactions/XChainAccountCreateCommit.js ***!
|
77972
|
+
\*******************************************************************/
|
77973
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77974
|
+
|
77975
|
+
"use strict";
|
77976
|
+
|
77977
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77978
|
+
exports.validateXChainAccountCreateCommit = void 0;
|
77979
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77980
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77981
|
+
function validateXChainAccountCreateCommit(tx) {
|
77982
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77983
|
+
if (tx.XChainBridge == null) {
|
77984
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field XChainBridge');
|
77985
|
+
}
|
77986
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
77987
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field XChainBridge');
|
77988
|
+
}
|
77989
|
+
if (tx.SignatureReward == null) {
|
77990
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field SignatureReward');
|
77991
|
+
}
|
77992
|
+
if (typeof tx.SignatureReward !== 'number' &&
|
77993
|
+
typeof tx.SignatureReward !== 'string') {
|
77994
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field SignatureReward');
|
77995
|
+
}
|
77996
|
+
if (tx.Destination == null) {
|
77997
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Destination');
|
77998
|
+
}
|
77999
|
+
if (typeof tx.Destination !== 'string') {
|
78000
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Destination');
|
78001
|
+
}
|
78002
|
+
if (tx.Amount == null) {
|
78003
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Amount');
|
78004
|
+
}
|
78005
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
78006
|
+
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Amount');
|
78007
|
+
}
|
78008
|
+
}
|
78009
|
+
exports.validateXChainAccountCreateCommit = validateXChainAccountCreateCommit;
|
78010
|
+
|
78011
|
+
|
78012
|
+
/***/ }),
|
78013
|
+
|
78014
|
+
/***/ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js":
|
78015
|
+
/*!***************************************************************************!*\
|
78016
|
+
!*** ./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js ***!
|
78017
|
+
\***************************************************************************/
|
78018
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78019
|
+
|
78020
|
+
"use strict";
|
78021
|
+
|
78022
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78023
|
+
exports.validateXChainAddAccountCreateAttestation = void 0;
|
78024
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78025
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78026
|
+
function validateXChainAddAccountCreateAttestation(tx) {
|
78027
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78028
|
+
if (tx.Amount == null) {
|
78029
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Amount');
|
78030
|
+
}
|
78031
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
78032
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Amount');
|
78033
|
+
}
|
78034
|
+
if (tx.AttestationRewardAccount == null) {
|
78035
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationRewardAccount');
|
78036
|
+
}
|
78037
|
+
if (typeof tx.AttestationRewardAccount !== 'string') {
|
78038
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationRewardAccount');
|
78039
|
+
}
|
78040
|
+
if (tx.AttestationSignerAccount == null) {
|
78041
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationSignerAccount');
|
78042
|
+
}
|
78043
|
+
if (typeof tx.AttestationSignerAccount !== 'string') {
|
78044
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationSignerAccount');
|
78045
|
+
}
|
78046
|
+
if (tx.Destination == null) {
|
78047
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Destination');
|
78048
|
+
}
|
78049
|
+
if (typeof tx.Destination !== 'string') {
|
78050
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Destination');
|
78051
|
+
}
|
78052
|
+
if (tx.OtherChainSource == null) {
|
78053
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field OtherChainSource');
|
78054
|
+
}
|
78055
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
78056
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field OtherChainSource');
|
78057
|
+
}
|
78058
|
+
if (tx.PublicKey == null) {
|
78059
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field PublicKey');
|
78060
|
+
}
|
78061
|
+
if (typeof tx.PublicKey !== 'string') {
|
78062
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field PublicKey');
|
78063
|
+
}
|
78064
|
+
if (tx.Signature == null) {
|
78065
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Signature');
|
78066
|
+
}
|
78067
|
+
if (typeof tx.Signature !== 'string') {
|
78068
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Signature');
|
78069
|
+
}
|
78070
|
+
if (tx.SignatureReward == null) {
|
78071
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field SignatureReward');
|
78072
|
+
}
|
78073
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
78074
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field SignatureReward');
|
78075
|
+
}
|
78076
|
+
if (tx.WasLockingChainSend == null) {
|
78077
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field WasLockingChainSend');
|
78078
|
+
}
|
78079
|
+
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
78080
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field WasLockingChainSend');
|
78081
|
+
}
|
78082
|
+
if (tx.XChainAccountCreateCount == null) {
|
78083
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainAccountCreateCount');
|
78084
|
+
}
|
78085
|
+
if (typeof tx.XChainAccountCreateCount !== 'string' &&
|
78086
|
+
typeof tx.XChainAccountCreateCount !== 'number') {
|
78087
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainAccountCreateCount');
|
78088
|
+
}
|
78089
|
+
if (tx.XChainBridge == null) {
|
78090
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainBridge');
|
78091
|
+
}
|
78092
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78093
|
+
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainBridge');
|
78094
|
+
}
|
78095
|
+
}
|
78096
|
+
exports.validateXChainAddAccountCreateAttestation = validateXChainAddAccountCreateAttestation;
|
78097
|
+
|
78098
|
+
|
78099
|
+
/***/ }),
|
78100
|
+
|
78101
|
+
/***/ "./dist/npm/models/transactions/XChainAddClaimAttestation.js":
|
78102
|
+
/*!*******************************************************************!*\
|
78103
|
+
!*** ./dist/npm/models/transactions/XChainAddClaimAttestation.js ***!
|
78104
|
+
\*******************************************************************/
|
78105
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78106
|
+
|
78107
|
+
"use strict";
|
78108
|
+
|
78109
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78110
|
+
exports.validateXChainAddClaimAttestation = void 0;
|
78111
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78112
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78113
|
+
function validateXChainAddClaimAttestation(tx) {
|
78114
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78115
|
+
if (tx.Amount == null) {
|
78116
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Amount');
|
78117
|
+
}
|
78118
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
78119
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Amount');
|
78120
|
+
}
|
78121
|
+
if (tx.AttestationRewardAccount == null) {
|
78122
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationRewardAccount');
|
78123
|
+
}
|
78124
|
+
if (typeof tx.AttestationRewardAccount !== 'string') {
|
78125
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationRewardAccount');
|
78126
|
+
}
|
78127
|
+
if (tx.AttestationSignerAccount == null) {
|
78128
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationSignerAccount');
|
78129
|
+
}
|
78130
|
+
if (typeof tx.AttestationSignerAccount !== 'string') {
|
78131
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationSignerAccount');
|
78132
|
+
}
|
78133
|
+
if (tx.Destination !== undefined && typeof tx.Destination !== 'string') {
|
78134
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Destination');
|
78135
|
+
}
|
78136
|
+
if (tx.OtherChainSource == null) {
|
78137
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field OtherChainSource');
|
78138
|
+
}
|
78139
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
78140
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field OtherChainSource');
|
78141
|
+
}
|
78142
|
+
if (tx.PublicKey == null) {
|
78143
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field PublicKey');
|
78144
|
+
}
|
78145
|
+
if (typeof tx.PublicKey !== 'string') {
|
78146
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field PublicKey');
|
78147
|
+
}
|
78148
|
+
if (tx.Signature == null) {
|
78149
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Signature');
|
78150
|
+
}
|
78151
|
+
if (typeof tx.Signature !== 'string') {
|
78152
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Signature');
|
78153
|
+
}
|
78154
|
+
if (tx.WasLockingChainSend == null) {
|
78155
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field WasLockingChainSend');
|
78156
|
+
}
|
78157
|
+
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
78158
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field WasLockingChainSend');
|
78159
|
+
}
|
78160
|
+
if (tx.XChainBridge == null) {
|
78161
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainBridge');
|
78162
|
+
}
|
78163
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78164
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainBridge');
|
78165
|
+
}
|
78166
|
+
if (tx.XChainClaimID == null) {
|
78167
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainClaimID');
|
78168
|
+
}
|
78169
|
+
if (typeof tx.XChainClaimID !== 'string' &&
|
78170
|
+
typeof tx.XChainClaimID !== 'number') {
|
78171
|
+
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainClaimID');
|
78172
|
+
}
|
78173
|
+
}
|
78174
|
+
exports.validateXChainAddClaimAttestation = validateXChainAddClaimAttestation;
|
78175
|
+
|
78176
|
+
|
78177
|
+
/***/ }),
|
78178
|
+
|
78179
|
+
/***/ "./dist/npm/models/transactions/XChainClaim.js":
|
78180
|
+
/*!*****************************************************!*\
|
78181
|
+
!*** ./dist/npm/models/transactions/XChainClaim.js ***!
|
78182
|
+
\*****************************************************/
|
78183
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78184
|
+
|
78185
|
+
"use strict";
|
78186
|
+
|
78187
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78188
|
+
exports.validateXChainClaim = void 0;
|
78189
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78190
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78191
|
+
function validateXChainClaim(tx) {
|
78192
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78193
|
+
if (tx.XChainBridge == null) {
|
78194
|
+
throw new errors_1.ValidationError('XChainClaim: missing field XChainBridge');
|
78195
|
+
}
|
78196
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78197
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field XChainBridge');
|
78198
|
+
}
|
78199
|
+
if (tx.XChainClaimID == null) {
|
78200
|
+
throw new errors_1.ValidationError('XChainClaim: missing field XChainClaimID');
|
78201
|
+
}
|
78202
|
+
if (typeof tx.XChainClaimID !== 'number' &&
|
78203
|
+
typeof tx.XChainClaimID !== 'string') {
|
78204
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field XChainClaimID');
|
78205
|
+
}
|
78206
|
+
if (tx.Destination == null) {
|
78207
|
+
throw new errors_1.ValidationError('XChainClaim: missing field Destination');
|
78208
|
+
}
|
78209
|
+
if (typeof tx.Destination !== 'string') {
|
78210
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field Destination');
|
78211
|
+
}
|
78212
|
+
if (tx.DestinationTag !== undefined &&
|
78213
|
+
typeof tx.DestinationTag !== 'number') {
|
78214
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field DestinationTag');
|
78215
|
+
}
|
78216
|
+
if (tx.Amount == null) {
|
78217
|
+
throw new errors_1.ValidationError('XChainClaim: missing field Amount');
|
78218
|
+
}
|
78219
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
78220
|
+
throw new errors_1.ValidationError('XChainClaim: invalid field Amount');
|
78221
|
+
}
|
78222
|
+
}
|
78223
|
+
exports.validateXChainClaim = validateXChainClaim;
|
78224
|
+
|
78225
|
+
|
78226
|
+
/***/ }),
|
78227
|
+
|
78228
|
+
/***/ "./dist/npm/models/transactions/XChainCommit.js":
|
78229
|
+
/*!******************************************************!*\
|
78230
|
+
!*** ./dist/npm/models/transactions/XChainCommit.js ***!
|
78231
|
+
\******************************************************/
|
78232
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78233
|
+
|
78234
|
+
"use strict";
|
78235
|
+
|
78236
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78237
|
+
exports.validateXChainCommit = void 0;
|
78238
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78239
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78240
|
+
function validateXChainCommit(tx) {
|
78241
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78242
|
+
if (tx.XChainBridge == null) {
|
78243
|
+
throw new errors_1.ValidationError('XChainCommit: missing field XChainBridge');
|
78244
|
+
}
|
78245
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78246
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field XChainBridge');
|
78247
|
+
}
|
78248
|
+
if (tx.XChainClaimID == null) {
|
78249
|
+
throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
|
78250
|
+
}
|
78251
|
+
if (typeof tx.XChainClaimID !== 'number' &&
|
78252
|
+
typeof tx.XChainClaimID !== 'string') {
|
78253
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field XChainClaimID');
|
78254
|
+
}
|
78255
|
+
if (tx.OtherChainDestination !== undefined &&
|
78256
|
+
typeof tx.OtherChainDestination !== 'string') {
|
78257
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field OtherChainDestination');
|
78258
|
+
}
|
78259
|
+
if (tx.Amount == null) {
|
78260
|
+
throw new errors_1.ValidationError('XChainCommit: missing field Amount');
|
78261
|
+
}
|
78262
|
+
if (!(0, common_1.isAmount)(tx.Amount)) {
|
78263
|
+
throw new errors_1.ValidationError('XChainCommit: invalid field Amount');
|
78264
|
+
}
|
78265
|
+
}
|
78266
|
+
exports.validateXChainCommit = validateXChainCommit;
|
78267
|
+
|
78268
|
+
|
78269
|
+
/***/ }),
|
78270
|
+
|
78271
|
+
/***/ "./dist/npm/models/transactions/XChainCreateBridge.js":
|
78272
|
+
/*!************************************************************!*\
|
78273
|
+
!*** ./dist/npm/models/transactions/XChainCreateBridge.js ***!
|
78274
|
+
\************************************************************/
|
78275
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78276
|
+
|
78277
|
+
"use strict";
|
78278
|
+
|
78279
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78280
|
+
exports.validateXChainCreateBridge = void 0;
|
78281
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78282
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78283
|
+
function validateXChainCreateBridge(tx) {
|
78284
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78285
|
+
if (tx.XChainBridge == null) {
|
78286
|
+
throw new errors_1.ValidationError('XChainCreateBridge: missing field XChainBridge');
|
78287
|
+
}
|
78288
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78289
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field XChainBridge');
|
78290
|
+
}
|
78291
|
+
if (tx.SignatureReward == null) {
|
78292
|
+
throw new errors_1.ValidationError('XChainCreateBridge: missing field SignatureReward');
|
78293
|
+
}
|
78294
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
78295
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field SignatureReward');
|
78296
|
+
}
|
78297
|
+
if (tx.MinAccountCreateAmount !== undefined &&
|
78298
|
+
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
78299
|
+
throw new errors_1.ValidationError('XChainCreateBridge: invalid field MinAccountCreateAmount');
|
78300
|
+
}
|
78301
|
+
}
|
78302
|
+
exports.validateXChainCreateBridge = validateXChainCreateBridge;
|
78303
|
+
|
78304
|
+
|
78305
|
+
/***/ }),
|
78306
|
+
|
78307
|
+
/***/ "./dist/npm/models/transactions/XChainCreateClaimID.js":
|
78308
|
+
/*!*************************************************************!*\
|
78309
|
+
!*** ./dist/npm/models/transactions/XChainCreateClaimID.js ***!
|
78310
|
+
\*************************************************************/
|
78311
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78312
|
+
|
78313
|
+
"use strict";
|
78314
|
+
|
78315
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78316
|
+
exports.validateXChainCreateClaimID = void 0;
|
78317
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78318
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78319
|
+
function validateXChainCreateClaimID(tx) {
|
78320
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78321
|
+
if (tx.XChainBridge == null) {
|
78322
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field XChainBridge');
|
78323
|
+
}
|
78324
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78325
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field XChainBridge');
|
78326
|
+
}
|
78327
|
+
if (tx.SignatureReward == null) {
|
78328
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
|
78329
|
+
}
|
78330
|
+
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
78331
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field SignatureReward');
|
78332
|
+
}
|
78333
|
+
if (tx.OtherChainSource == null) {
|
78334
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
|
78335
|
+
}
|
78336
|
+
if (typeof tx.OtherChainSource !== 'string') {
|
78337
|
+
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field OtherChainSource');
|
78338
|
+
}
|
78339
|
+
}
|
78340
|
+
exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
|
78341
|
+
|
78342
|
+
|
78343
|
+
/***/ }),
|
78344
|
+
|
78345
|
+
/***/ "./dist/npm/models/transactions/XChainModifyBridge.js":
|
78346
|
+
/*!************************************************************!*\
|
78347
|
+
!*** ./dist/npm/models/transactions/XChainModifyBridge.js ***!
|
78348
|
+
\************************************************************/
|
78349
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
78350
|
+
|
78351
|
+
"use strict";
|
78352
|
+
|
78353
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78354
|
+
exports.validateXChainModifyBridge = exports.XChainModifyBridgeFlags = void 0;
|
78355
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78356
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
78357
|
+
var XChainModifyBridgeFlags;
|
78358
|
+
(function (XChainModifyBridgeFlags) {
|
78359
|
+
XChainModifyBridgeFlags[XChainModifyBridgeFlags["tfClearAccountCreateAmount"] = 65536] = "tfClearAccountCreateAmount";
|
78360
|
+
})(XChainModifyBridgeFlags = exports.XChainModifyBridgeFlags || (exports.XChainModifyBridgeFlags = {}));
|
78361
|
+
function validateXChainModifyBridge(tx) {
|
78362
|
+
(0, common_1.validateBaseTransaction)(tx);
|
78363
|
+
if (tx.XChainBridge == null) {
|
78364
|
+
throw new errors_1.ValidationError('XChainModifyBridge: missing field XChainBridge');
|
78365
|
+
}
|
78366
|
+
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
78367
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field XChainBridge');
|
78368
|
+
}
|
78369
|
+
if (tx.SignatureReward !== undefined && !(0, common_1.isAmount)(tx.SignatureReward)) {
|
78370
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field SignatureReward');
|
78371
|
+
}
|
78372
|
+
if (tx.MinAccountCreateAmount !== undefined &&
|
78373
|
+
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
78374
|
+
throw new errors_1.ValidationError('XChainModifyBridge: invalid field MinAccountCreateAmount');
|
78375
|
+
}
|
78376
|
+
}
|
78377
|
+
exports.validateXChainModifyBridge = validateXChainModifyBridge;
|
78378
|
+
|
78379
|
+
|
77186
78380
|
/***/ }),
|
77187
78381
|
|
77188
78382
|
/***/ "./dist/npm/models/transactions/accountDelete.js":
|
@@ -77447,7 +78641,7 @@ exports.validateClawback = validateClawback;
|
|
77447
78641
|
"use strict";
|
77448
78642
|
|
77449
78643
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77450
|
-
exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;
|
78644
|
+
exports.parseAmountValue = exports.validateBaseTransaction = exports.isXChainBridge = exports.isAmount = exports.isIssuedCurrency = exports.isCurrency = void 0;
|
77451
78645
|
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
77452
78646
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77453
78647
|
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
@@ -77480,10 +78674,22 @@ function isSigner(obj) {
|
|
77480
78674
|
typeof signer.TxnSignature === 'string' &&
|
77481
78675
|
typeof signer.SigningPubKey === 'string');
|
77482
78676
|
}
|
78677
|
+
const XRP_CURRENCY_SIZE = 1;
|
78678
|
+
const ISSUE_SIZE = 2;
|
77483
78679
|
const ISSUED_CURRENCY_SIZE = 3;
|
78680
|
+
const XCHAIN_BRIDGE_SIZE = 4;
|
77484
78681
|
function isRecord(value) {
|
77485
78682
|
return value !== null && typeof value === 'object';
|
77486
78683
|
}
|
78684
|
+
function isCurrency(input) {
|
78685
|
+
return (isRecord(input) &&
|
78686
|
+
((Object.keys(input).length === ISSUE_SIZE &&
|
78687
|
+
typeof input.issuer === 'string' &&
|
78688
|
+
typeof input.currency === 'string') ||
|
78689
|
+
(Object.keys(input).length === XRP_CURRENCY_SIZE &&
|
78690
|
+
input.currency === 'XRP')));
|
78691
|
+
}
|
78692
|
+
exports.isCurrency = isCurrency;
|
77487
78693
|
function isIssuedCurrency(input) {
|
77488
78694
|
return (isRecord(input) &&
|
77489
78695
|
Object.keys(input).length === ISSUED_CURRENCY_SIZE &&
|
@@ -77496,6 +78702,15 @@ function isAmount(amount) {
|
|
77496
78702
|
return typeof amount === 'string' || isIssuedCurrency(amount);
|
77497
78703
|
}
|
77498
78704
|
exports.isAmount = isAmount;
|
78705
|
+
function isXChainBridge(input) {
|
78706
|
+
return (isRecord(input) &&
|
78707
|
+
Object.keys(input).length === XCHAIN_BRIDGE_SIZE &&
|
78708
|
+
typeof input.LockingChainDoor === 'string' &&
|
78709
|
+
isCurrency(input.LockingChainIssue) &&
|
78710
|
+
typeof input.IssuingChainDoor === 'string' &&
|
78711
|
+
isCurrency(input.IssuingChainIssue));
|
78712
|
+
}
|
78713
|
+
exports.isXChainBridge = isXChainBridge;
|
77499
78714
|
function validateBaseTransaction(common) {
|
77500
78715
|
if (common.Account === undefined) {
|
77501
78716
|
throw new errors_1.ValidationError('BaseTransaction: missing field Account');
|
@@ -77774,13 +78989,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
77774
78989
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
77775
78990
|
};
|
77776
78991
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77777
|
-
exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.EnableAmendmentFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
78992
|
+
exports.XChainModifyBridgeFlags = exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.EnableAmendmentFlags = exports.AMMWithdrawFlags = exports.AMMDepositFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
77778
78993
|
var transaction_1 = __webpack_require__(/*! ./transaction */ "./dist/npm/models/transactions/transaction.js");
|
77779
78994
|
Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return transaction_1.validate; } }));
|
77780
78995
|
__exportStar(__webpack_require__(/*! ./metadata */ "./dist/npm/models/transactions/metadata.js"), exports);
|
77781
78996
|
var accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
77782
78997
|
Object.defineProperty(exports, "AccountSetAsfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));
|
77783
78998
|
Object.defineProperty(exports, "AccountSetTfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));
|
78999
|
+
var AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
79000
|
+
Object.defineProperty(exports, "AMMDepositFlags", ({ enumerable: true, get: function () { return AMMDeposit_1.AMMDepositFlags; } }));
|
79001
|
+
var AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
79002
|
+
Object.defineProperty(exports, "AMMWithdrawFlags", ({ enumerable: true, get: function () { return AMMWithdraw_1.AMMWithdrawFlags; } }));
|
77784
79003
|
var enableAmendment_1 = __webpack_require__(/*! ./enableAmendment */ "./dist/npm/models/transactions/enableAmendment.js");
|
77785
79004
|
Object.defineProperty(exports, "EnableAmendmentFlags", ({ enumerable: true, get: function () { return enableAmendment_1.EnableAmendmentFlags; } }));
|
77786
79005
|
var NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ "./dist/npm/models/transactions/NFTokenCreateOffer.js");
|
@@ -77795,6 +79014,8 @@ var paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ "./
|
|
77795
79014
|
Object.defineProperty(exports, "PaymentChannelClaimFlags", ({ enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } }));
|
77796
79015
|
var trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
77797
79016
|
Object.defineProperty(exports, "TrustSetFlags", ({ enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } }));
|
79017
|
+
var XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
79018
|
+
Object.defineProperty(exports, "XChainModifyBridgeFlags", ({ enumerable: true, get: function () { return XChainModifyBridge_1.XChainModifyBridgeFlags; } }));
|
77798
79019
|
|
77799
79020
|
|
77800
79021
|
/***/ }),
|
@@ -78261,6 +79482,12 @@ const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/ind
|
|
78261
79482
|
const flags_1 = __webpack_require__(/*! ../utils/flags */ "./dist/npm/models/utils/flags.js");
|
78262
79483
|
const accountDelete_1 = __webpack_require__(/*! ./accountDelete */ "./dist/npm/models/transactions/accountDelete.js");
|
78263
79484
|
const accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
79485
|
+
const AMMBid_1 = __webpack_require__(/*! ./AMMBid */ "./dist/npm/models/transactions/AMMBid.js");
|
79486
|
+
const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
|
79487
|
+
const AMMDelete_1 = __webpack_require__(/*! ./AMMDelete */ "./dist/npm/models/transactions/AMMDelete.js");
|
79488
|
+
const AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
79489
|
+
const AMMVote_1 = __webpack_require__(/*! ./AMMVote */ "./dist/npm/models/transactions/AMMVote.js");
|
79490
|
+
const AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
78264
79491
|
const checkCancel_1 = __webpack_require__(/*! ./checkCancel */ "./dist/npm/models/transactions/checkCancel.js");
|
78265
79492
|
const checkCash_1 = __webpack_require__(/*! ./checkCash */ "./dist/npm/models/transactions/checkCash.js");
|
78266
79493
|
const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/models/transactions/checkCreate.js");
|
@@ -78285,6 +79512,14 @@ const setRegularKey_1 = __webpack_require__(/*! ./setRegularKey */ "./dist/npm/m
|
|
78285
79512
|
const signerListSet_1 = __webpack_require__(/*! ./signerListSet */ "./dist/npm/models/transactions/signerListSet.js");
|
78286
79513
|
const ticketCreate_1 = __webpack_require__(/*! ./ticketCreate */ "./dist/npm/models/transactions/ticketCreate.js");
|
78287
79514
|
const trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
79515
|
+
const XChainAccountCreateCommit_1 = __webpack_require__(/*! ./XChainAccountCreateCommit */ "./dist/npm/models/transactions/XChainAccountCreateCommit.js");
|
79516
|
+
const XChainAddAccountCreateAttestation_1 = __webpack_require__(/*! ./XChainAddAccountCreateAttestation */ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js");
|
79517
|
+
const XChainAddClaimAttestation_1 = __webpack_require__(/*! ./XChainAddClaimAttestation */ "./dist/npm/models/transactions/XChainAddClaimAttestation.js");
|
79518
|
+
const XChainClaim_1 = __webpack_require__(/*! ./XChainClaim */ "./dist/npm/models/transactions/XChainClaim.js");
|
79519
|
+
const XChainCommit_1 = __webpack_require__(/*! ./XChainCommit */ "./dist/npm/models/transactions/XChainCommit.js");
|
79520
|
+
const XChainCreateBridge_1 = __webpack_require__(/*! ./XChainCreateBridge */ "./dist/npm/models/transactions/XChainCreateBridge.js");
|
79521
|
+
const XChainCreateClaimID_1 = __webpack_require__(/*! ./XChainCreateClaimID */ "./dist/npm/models/transactions/XChainCreateClaimID.js");
|
79522
|
+
const XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
78288
79523
|
function validate(transaction) {
|
78289
79524
|
const tx = Object.assign({}, transaction);
|
78290
79525
|
if (tx.TransactionType == null) {
|
@@ -78337,6 +79572,24 @@ function validate(transaction) {
|
|
78337
79572
|
case 'AccountSet':
|
78338
79573
|
(0, accountSet_1.validateAccountSet)(tx);
|
78339
79574
|
break;
|
79575
|
+
case 'AMMBid':
|
79576
|
+
(0, AMMBid_1.validateAMMBid)(tx);
|
79577
|
+
break;
|
79578
|
+
case 'AMMDelete':
|
79579
|
+
(0, AMMDelete_1.validateAMMDelete)(tx);
|
79580
|
+
break;
|
79581
|
+
case 'AMMDeposit':
|
79582
|
+
(0, AMMDeposit_1.validateAMMDeposit)(tx);
|
79583
|
+
break;
|
79584
|
+
case 'AMMCreate':
|
79585
|
+
(0, AMMCreate_1.validateAMMCreate)(tx);
|
79586
|
+
break;
|
79587
|
+
case 'AMMVote':
|
79588
|
+
(0, AMMVote_1.validateAMMVote)(tx);
|
79589
|
+
break;
|
79590
|
+
case 'AMMWithdraw':
|
79591
|
+
(0, AMMWithdraw_1.validateAMMWithdraw)(tx);
|
79592
|
+
break;
|
78340
79593
|
case 'CheckCancel':
|
78341
79594
|
(0, checkCancel_1.validateCheckCancel)(tx);
|
78342
79595
|
break;
|
@@ -78406,6 +79659,30 @@ function validate(transaction) {
|
|
78406
79659
|
case 'TrustSet':
|
78407
79660
|
(0, trustSet_1.validateTrustSet)(tx);
|
78408
79661
|
break;
|
79662
|
+
case 'XChainAddAccountCreateAttestation':
|
79663
|
+
(0, XChainAddAccountCreateAttestation_1.validateXChainAddAccountCreateAttestation)(tx);
|
79664
|
+
break;
|
79665
|
+
case 'XChainAddClaimAttestation':
|
79666
|
+
(0, XChainAddClaimAttestation_1.validateXChainAddClaimAttestation)(tx);
|
79667
|
+
break;
|
79668
|
+
case 'XChainClaim':
|
79669
|
+
(0, XChainClaim_1.validateXChainClaim)(tx);
|
79670
|
+
break;
|
79671
|
+
case 'XChainCommit':
|
79672
|
+
(0, XChainCommit_1.validateXChainCommit)(tx);
|
79673
|
+
break;
|
79674
|
+
case 'XChainCreateBridge':
|
79675
|
+
(0, XChainCreateBridge_1.validateXChainCreateBridge)(tx);
|
79676
|
+
break;
|
79677
|
+
case 'XChainCreateClaimID':
|
79678
|
+
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
|
79679
|
+
break;
|
79680
|
+
case 'XChainAccountCreateCommit':
|
79681
|
+
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
79682
|
+
break;
|
79683
|
+
case 'XChainModifyBridge':
|
79684
|
+
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
|
79685
|
+
break;
|
78409
79686
|
default:
|
78410
79687
|
throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);
|
78411
79688
|
}
|
@@ -78469,10 +79746,13 @@ exports.setTransactionFlagsToNumber = exports.parseAccountRootFlags = void 0;
|
|
78469
79746
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
78470
79747
|
const AccountRoot_1 = __webpack_require__(/*! ../ledger/AccountRoot */ "./dist/npm/models/ledger/AccountRoot.js");
|
78471
79748
|
const accountSet_1 = __webpack_require__(/*! ../transactions/accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
79749
|
+
const AMMDeposit_1 = __webpack_require__(/*! ../transactions/AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
79750
|
+
const AMMWithdraw_1 = __webpack_require__(/*! ../transactions/AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
78472
79751
|
const offerCreate_1 = __webpack_require__(/*! ../transactions/offerCreate */ "./dist/npm/models/transactions/offerCreate.js");
|
78473
79752
|
const payment_1 = __webpack_require__(/*! ../transactions/payment */ "./dist/npm/models/transactions/payment.js");
|
78474
79753
|
const paymentChannelClaim_1 = __webpack_require__(/*! ../transactions/paymentChannelClaim */ "./dist/npm/models/transactions/paymentChannelClaim.js");
|
78475
79754
|
const trustSet_1 = __webpack_require__(/*! ../transactions/trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
79755
|
+
const XChainModifyBridge_1 = __webpack_require__(/*! ../transactions/XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
78476
79756
|
const _1 = __webpack_require__(/*! . */ "./dist/npm/models/utils/index.js");
|
78477
79757
|
function parseAccountRootFlags(flags) {
|
78478
79758
|
const flagsInterface = {};
|
@@ -78495,41 +79775,35 @@ function setTransactionFlagsToNumber(tx) {
|
|
78495
79775
|
}
|
78496
79776
|
switch (tx.TransactionType) {
|
78497
79777
|
case 'AccountSet':
|
78498
|
-
tx.Flags =
|
79778
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, accountSet_1.AccountSetTfFlags);
|
79779
|
+
return;
|
79780
|
+
case 'AMMDeposit':
|
79781
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, AMMDeposit_1.AMMDepositFlags);
|
79782
|
+
return;
|
79783
|
+
case 'AMMWithdraw':
|
79784
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, AMMWithdraw_1.AMMWithdrawFlags);
|
78499
79785
|
return;
|
78500
79786
|
case 'OfferCreate':
|
78501
|
-
tx.Flags =
|
79787
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, offerCreate_1.OfferCreateFlags);
|
78502
79788
|
return;
|
78503
79789
|
case 'PaymentChannelClaim':
|
78504
|
-
tx.Flags =
|
79790
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
|
78505
79791
|
return;
|
78506
79792
|
case 'Payment':
|
78507
|
-
tx.Flags =
|
79793
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, payment_1.PaymentFlags);
|
78508
79794
|
return;
|
78509
79795
|
case 'TrustSet':
|
78510
|
-
tx.Flags =
|
79796
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, trustSet_1.TrustSetFlags);
|
79797
|
+
return;
|
79798
|
+
case 'XChainModifyBridge':
|
79799
|
+
tx.Flags = convertFlagsToNumber(tx.Flags, XChainModifyBridge_1.XChainModifyBridgeFlags);
|
78511
79800
|
return;
|
78512
79801
|
default:
|
78513
79802
|
tx.Flags = 0;
|
78514
79803
|
}
|
78515
79804
|
}
|
78516
79805
|
exports.setTransactionFlagsToNumber = setTransactionFlagsToNumber;
|
78517
|
-
function
|
78518
|
-
return reduceFlags(flags, accountSet_1.AccountSetTfFlags);
|
78519
|
-
}
|
78520
|
-
function convertOfferCreateFlagsToNumber(flags) {
|
78521
|
-
return reduceFlags(flags, offerCreate_1.OfferCreateFlags);
|
78522
|
-
}
|
78523
|
-
function convertPaymentChannelClaimFlagsToNumber(flags) {
|
78524
|
-
return reduceFlags(flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
|
78525
|
-
}
|
78526
|
-
function convertPaymentTransactionFlagsToNumber(flags) {
|
78527
|
-
return reduceFlags(flags, payment_1.PaymentFlags);
|
78528
|
-
}
|
78529
|
-
function convertTrustSetFlagsToNumber(flags) {
|
78530
|
-
return reduceFlags(flags, trustSet_1.TrustSetFlags);
|
78531
|
-
}
|
78532
|
-
function reduceFlags(flags, flagEnum) {
|
79806
|
+
function convertFlagsToNumber(flags, flagEnum) {
|
78533
79807
|
return Object.keys(flags).reduce((resultFlags, flag) => {
|
78534
79808
|
if (flagEnum[flag] == null) {
|
78535
79809
|
throw new errors_1.ValidationError(`flag ${flag} doesn't exist in flagEnum: ${JSON.stringify(flagEnum)}`);
|
@@ -78727,7 +80001,7 @@ function setNextValidSequenceNumber(client, tx) {
|
|
78727
80001
|
tx.Sequence = data.result.account_data.Sequence;
|
78728
80002
|
});
|
78729
80003
|
}
|
78730
|
-
function
|
80004
|
+
function fetchOwnerReserveFee(client) {
|
78731
80005
|
var _a;
|
78732
80006
|
return __awaiter(this, void 0, void 0, function* () {
|
78733
80007
|
const response = yield client.request({ command: 'server_state' });
|
@@ -78748,8 +80022,9 @@ function calculateFeePerTransactionType(client, tx, signersCount = 0) {
|
|
78748
80022
|
const product = new bignumber_js_1.default(scaleValue(netFeeDrops, 33 + fulfillmentBytesSize / 16));
|
78749
80023
|
baseFee = product.dp(0, bignumber_js_1.default.ROUND_CEIL);
|
78750
80024
|
}
|
78751
|
-
if (tx.TransactionType === 'AccountDelete'
|
78752
|
-
|
80025
|
+
if (tx.TransactionType === 'AccountDelete' ||
|
80026
|
+
tx.TransactionType === 'AMMCreate') {
|
80027
|
+
baseFee = yield fetchOwnerReserveFee(client);
|
78753
80028
|
}
|
78754
80029
|
if (signersCount > 0) {
|
78755
80030
|
baseFee = bignumber_js_1.default.sum(baseFee, scaleValue(netFeeDrops, 1 + signersCount));
|
@@ -80685,7 +81960,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
|
|
80685
81960
|
/***/ ((module) => {
|
80686
81961
|
|
80687
81962
|
"use strict";
|
80688
|
-
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
81963
|
+
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"XChainBridge":25,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"Bridge":105,"LedgerHashes":104,"Amendments":102,"XChainOwnedClaimID":113,"XChainOwnedCreateAccountClaimID":116,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["WasLockingChainSend",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["DiscountedFee",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstNFTokenSequence",{"nth":50,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainClaimID",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountCreateCount",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountClaimCount",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BaseFeeDrops",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveBaseDrops",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveIncrementDrops",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SignatureReward",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinAccountCreateAmount",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainSource",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainDestination",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationSignerAccount",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationRewardAccount",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["LockingChainDoor",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["IssuingChainDoor",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["LockingChainIssue",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["IssuingChainIssue",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["XChainBridge",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"XChainBridge"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimProofSig",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationCollectionElement",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationCollectionElement",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_AMM_TOKENS":-261,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"terNO_AMM":-87,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecUNFUNDED_AMM":162,"tecAMM_BALANCE":163,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecXCHAIN_BAD_TRANSFER_ISSUE":166,"tecXCHAIN_NO_CLAIM_ID":167,"tecXCHAIN_BAD_CLAIM_ID":168,"tecXCHAIN_CLAIM_NO_QUORUM":169,"tecXCHAIN_PROOF_UNKNOWN_KEY":170,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":171,"tecXCHAIN_WRONG_CHAIN":172,"tecXCHAIN_REWARD_MISMATCH":173,"tecXCHAIN_NO_SIGNERS_LIST":174,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":175,"tecXCHAIN_INSUFF_CREATE_AMOUNT":176,"tecXCHAIN_ACCOUNT_CREATE_PAST":177,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":178,"tecXCHAIN_PAYMENT_FAILED":179,"tecXCHAIN_SELF_COMMIT":180,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":181,"tecXCHAIN_CREATE_ACCOUNT_DISABLED":182},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"XChainCreateBridge":40,"XChainCreateClaimID":41,"XChainCommit":42,"XChainClaim":43,"XChainAccountCreateCommit":44,"XChainAddClaimAttestation":45,"XChainAddAccountCreateAttestation":46,"XChainModifyBridge":47,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
80689
81964
|
|
80690
81965
|
/***/ }),
|
80691
81966
|
|