xrpl 2.9.0-beta.0 → 2.9.1
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 +311 -1077
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/fundWallet.d.ts +2 -1
- package/dist/npm/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/Wallet/fundWallet.js +4 -5
- package/dist/npm/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/Wallet/index.d.ts +1 -2
- package/dist/npm/Wallet/index.d.ts.map +1 -1
- package/dist/npm/Wallet/index.js +2 -1
- package/dist/npm/Wallet/index.js.map +1 -1
- package/dist/npm/Wallet/signer.d.ts +1 -1
- package/dist/npm/Wallet/signer.d.ts.map +1 -1
- package/dist/npm/Wallet/signer.js +6 -7
- package/dist/npm/Wallet/signer.js.map +1 -1
- package/dist/npm/client/BroadcastClient.d.ts +1 -1
- package/dist/npm/client/BroadcastClient.d.ts.map +1 -1
- package/dist/npm/client/BroadcastClient.js +2 -1
- package/dist/npm/client/BroadcastClient.js.map +1 -1
- package/dist/npm/client/index.d.ts +4 -2
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js +21 -3
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/index.d.ts +3 -2
- package/dist/npm/index.d.ts.map +1 -1
- package/dist/npm/index.js +5 -3
- package/dist/npm/index.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +7 -9
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts +5 -2
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js +0 -1
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/models/ledger/Amendments.js +2 -0
- package/dist/npm/models/ledger/Amendments.js.map +1 -1
- package/dist/npm/models/ledger/Escrow.d.ts +1 -3
- package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/models/ledger/FeeSettings.d.ts +13 -3
- package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/models/ledger/FeeSettings.js +2 -0
- package/dist/npm/models/ledger/FeeSettings.js.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +1 -5
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/NFTokenOffer.d.ts +15 -0
- package/dist/npm/models/ledger/NFTokenOffer.d.ts.map +1 -0
- package/dist/npm/models/ledger/NFTokenOffer.js +3 -0
- package/dist/npm/models/ledger/NFTokenOffer.js.map +1 -0
- package/dist/npm/models/ledger/NFTokenPage.d.ts +19 -0
- package/dist/npm/models/ledger/NFTokenPage.d.ts.map +1 -0
- package/dist/npm/models/ledger/NFTokenPage.js +3 -0
- package/dist/npm/models/ledger/NFTokenPage.js.map +1 -0
- package/dist/npm/models/ledger/NegativeUNL.d.ts +5 -6
- package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/models/ledger/NegativeUNL.js +2 -0
- package/dist/npm/models/ledger/NegativeUNL.js.map +1 -1
- package/dist/npm/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/models/ledger/SignerList.d.ts +1 -7
- package/dist/npm/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +6 -7
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js +7 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountChannels.d.ts +4 -9
- package/dist/npm/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/models/methods/accountCurrencies.d.ts +2 -5
- package/dist/npm/models/methods/accountCurrencies.d.ts.map +1 -1
- package/dist/npm/models/methods/accountInfo.d.ts +22 -10
- package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/accountLines.d.ts +4 -9
- package/dist/npm/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/models/methods/accountNFTs.d.ts +2 -2
- package/dist/npm/models/methods/accountNFTs.d.ts.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +5 -9
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/accountOffers.d.ts +3 -5
- package/dist/npm/models/methods/accountOffers.d.ts.map +1 -1
- package/dist/npm/models/methods/accountTx.d.ts +5 -8
- package/dist/npm/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/models/methods/baseMethod.d.ts +7 -3
- package/dist/npm/models/methods/baseMethod.d.ts.map +1 -1
- package/dist/npm/models/methods/bookOffers.d.ts +6 -8
- package/dist/npm/models/methods/bookOffers.d.ts.map +1 -1
- package/dist/npm/models/methods/depositAuthorized.d.ts +2 -5
- package/dist/npm/models/methods/depositAuthorized.d.ts.map +1 -1
- package/dist/npm/models/methods/gatewayBalances.d.ts +5 -9
- package/dist/npm/models/methods/gatewayBalances.d.ts.map +1 -1
- package/dist/npm/models/methods/index.d.ts +20 -21
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +10 -15
- package/dist/npm/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerData.d.ts +7 -11
- package/dist/npm/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +3 -30
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/nftBuyOffers.d.ts +2 -2
- package/dist/npm/models/methods/nftBuyOffers.d.ts.map +1 -1
- package/dist/npm/models/methods/nftHistory.d.ts +5 -8
- package/dist/npm/models/methods/nftHistory.d.ts.map +1 -1
- package/dist/npm/models/methods/nftInfo.d.ts +3 -5
- package/dist/npm/models/methods/nftInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/nftSellOffers.d.ts +2 -2
- package/dist/npm/models/methods/nftSellOffers.d.ts.map +1 -1
- package/dist/npm/models/methods/pathFind.d.ts +2 -2
- package/dist/npm/models/methods/pathFind.d.ts.map +1 -1
- package/dist/npm/models/methods/ripplePathFind.d.ts +7 -10
- package/dist/npm/models/methods/ripplePathFind.d.ts.map +1 -1
- package/dist/npm/models/methods/serverInfo.d.ts +1 -0
- package/dist/npm/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/subscribe.d.ts +5 -5
- package/dist/npm/models/methods/subscribe.d.ts.map +1 -1
- package/dist/npm/models/methods/transactionEntry.d.ts +3 -5
- package/dist/npm/models/methods/transactionEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/methods/unsubscribe.d.ts +2 -3
- package/dist/npm/models/methods/unsubscribe.d.ts.map +1 -1
- package/dist/npm/models/transactions/UNLModify.d.ts +7 -0
- package/dist/npm/models/transactions/UNLModify.d.ts.map +1 -0
- package/dist/npm/models/{ledger/AMM.js → transactions/UNLModify.js} +1 -1
- package/dist/npm/models/transactions/UNLModify.js.map +1 -0
- package/dist/npm/models/transactions/common.d.ts +2 -3
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +4 -22
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/enableAmendment.d.ts +11 -0
- package/dist/npm/models/transactions/enableAmendment.d.ts.map +1 -0
- package/dist/npm/models/transactions/enableAmendment.js +9 -0
- package/dist/npm/models/transactions/enableAmendment.js.map +1 -0
- package/dist/npm/models/transactions/escrowCreate.d.ts +1 -2
- package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.js +2 -2
- package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +5 -14
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +18 -7
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts +2 -3
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.js +4 -4
- package/dist/npm/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts +1 -2
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.js +2 -2
- package/dist/npm/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelFund.d.ts +1 -2
- package/dist/npm/models/transactions/paymentChannelFund.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelFund.js +2 -2
- package/dist/npm/models/transactions/paymentChannelFund.js.map +1 -1
- package/dist/npm/models/transactions/setFee.d.ts +16 -0
- package/dist/npm/models/transactions/setFee.d.ts.map +1 -0
- package/dist/npm/models/{ledger/Bridge.js → transactions/setFee.js} +1 -1
- package/dist/npm/models/transactions/setFee.js.map +1 -0
- package/dist/npm/models/transactions/signerListSet.d.ts +1 -1
- package/dist/npm/models/transactions/signerListSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/signerListSet.js +3 -0
- package/dist/npm/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +1 -14
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +0 -52
- 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 +21 -18
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/src/getTransaction.js +1 -1
- package/dist/npm/snippets/src/getTransaction.js.map +1 -1
- package/dist/npm/snippets/src/multisigning.js +5 -3
- package/dist/npm/snippets/src/multisigning.js.map +1 -1
- package/dist/npm/snippets/src/partialPayment.js +6 -2
- package/dist/npm/snippets/src/partialPayment.js.map +1 -1
- package/dist/npm/snippets/src/paths.js +3 -1
- package/dist/npm/snippets/src/paths.js.map +1 -1
- package/dist/npm/snippets/src/reliableTransactionSubmission.js +6 -2
- package/dist/npm/snippets/src/reliableTransactionSubmission.js.map +1 -1
- package/dist/npm/snippets/src/sendEscrow.js +6 -2
- package/dist/npm/snippets/src/sendEscrow.js.map +1 -1
- package/dist/npm/snippets/src/setRegularKey.js +9 -3
- package/dist/npm/snippets/src/setRegularKey.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/fundWallet.d.ts +2 -1
- package/dist/npm/src/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.js +4 -5
- package/dist/npm/src/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/src/Wallet/index.d.ts +1 -2
- package/dist/npm/src/Wallet/index.d.ts.map +1 -1
- package/dist/npm/src/Wallet/index.js +2 -1
- package/dist/npm/src/Wallet/index.js.map +1 -1
- package/dist/npm/src/Wallet/signer.d.ts +1 -1
- package/dist/npm/src/Wallet/signer.d.ts.map +1 -1
- package/dist/npm/src/Wallet/signer.js +6 -7
- package/dist/npm/src/Wallet/signer.js.map +1 -1
- package/dist/npm/src/client/BroadcastClient.d.ts +1 -1
- package/dist/npm/src/client/BroadcastClient.d.ts.map +1 -1
- package/dist/npm/src/client/BroadcastClient.js +2 -1
- package/dist/npm/src/client/BroadcastClient.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +4 -2
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js +21 -3
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/index.d.ts +3 -2
- package/dist/npm/src/index.d.ts.map +1 -1
- package/dist/npm/src/index.js +5 -3
- package/dist/npm/src/index.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +7 -9
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +5 -2
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js +0 -1
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Amendments.js +2 -0
- package/dist/npm/src/models/ledger/Amendments.js.map +1 -1
- package/dist/npm/src/models/ledger/Escrow.d.ts +1 -3
- package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/FeeSettings.d.ts +13 -3
- package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/FeeSettings.js +2 -0
- package/dist/npm/src/models/ledger/FeeSettings.js.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +1 -5
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts +15 -0
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/NFTokenOffer.js +3 -0
- package/dist/npm/src/models/ledger/NFTokenOffer.js.map +1 -0
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts +19 -0
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/NFTokenPage.js +3 -0
- package/dist/npm/src/models/ledger/NFTokenPage.js.map +1 -0
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts +5 -6
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NegativeUNL.js +2 -0
- package/dist/npm/src/models/ledger/NegativeUNL.js.map +1 -1
- package/dist/npm/src/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.d.ts +1 -7
- package/dist/npm/src/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +6 -7
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js +7 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountChannels.d.ts +4 -9
- package/dist/npm/src/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountCurrencies.d.ts +2 -5
- package/dist/npm/src/models/methods/accountCurrencies.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountInfo.d.ts +22 -10
- package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountLines.d.ts +4 -9
- package/dist/npm/src/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountNFTs.d.ts +2 -2
- package/dist/npm/src/models/methods/accountNFTs.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +5 -9
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountOffers.d.ts +3 -5
- package/dist/npm/src/models/methods/accountOffers.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountTx.d.ts +5 -8
- package/dist/npm/src/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/src/models/methods/baseMethod.d.ts +7 -3
- package/dist/npm/src/models/methods/baseMethod.d.ts.map +1 -1
- package/dist/npm/src/models/methods/bookOffers.d.ts +6 -8
- package/dist/npm/src/models/methods/bookOffers.d.ts.map +1 -1
- package/dist/npm/src/models/methods/depositAuthorized.d.ts +2 -5
- package/dist/npm/src/models/methods/depositAuthorized.d.ts.map +1 -1
- package/dist/npm/src/models/methods/gatewayBalances.d.ts +5 -9
- package/dist/npm/src/models/methods/gatewayBalances.d.ts.map +1 -1
- package/dist/npm/src/models/methods/index.d.ts +20 -21
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +10 -15
- package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerData.d.ts +7 -11
- package/dist/npm/src/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +3 -30
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftBuyOffers.d.ts +2 -2
- package/dist/npm/src/models/methods/nftBuyOffers.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftHistory.d.ts +5 -8
- package/dist/npm/src/models/methods/nftHistory.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftInfo.d.ts +3 -5
- package/dist/npm/src/models/methods/nftInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftSellOffers.d.ts +2 -2
- package/dist/npm/src/models/methods/nftSellOffers.d.ts.map +1 -1
- package/dist/npm/src/models/methods/pathFind.d.ts +2 -2
- package/dist/npm/src/models/methods/pathFind.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ripplePathFind.d.ts +7 -10
- package/dist/npm/src/models/methods/ripplePathFind.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverInfo.d.ts +1 -0
- package/dist/npm/src/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/subscribe.d.ts +5 -5
- package/dist/npm/src/models/methods/subscribe.d.ts.map +1 -1
- package/dist/npm/src/models/methods/transactionEntry.d.ts +3 -5
- package/dist/npm/src/models/methods/transactionEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/methods/unsubscribe.d.ts +2 -3
- package/dist/npm/src/models/methods/unsubscribe.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/UNLModify.d.ts +7 -0
- package/dist/npm/src/models/transactions/UNLModify.d.ts.map +1 -0
- package/dist/npm/{models/methods/ammInfo.js → src/models/transactions/UNLModify.js} +1 -1
- package/dist/npm/src/models/transactions/UNLModify.js.map +1 -0
- package/dist/npm/src/models/transactions/common.d.ts +2 -3
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +4 -22
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/enableAmendment.d.ts +11 -0
- package/dist/npm/src/models/transactions/enableAmendment.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/enableAmendment.js +9 -0
- package/dist/npm/src/models/transactions/enableAmendment.js.map +1 -0
- package/dist/npm/src/models/transactions/escrowCreate.d.ts +1 -2
- package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.js +2 -2
- package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +5 -14
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +18 -7
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts +2 -3
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.js +4 -4
- package/dist/npm/src/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts +1 -2
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.js +2 -2
- package/dist/npm/src/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelFund.d.ts +1 -2
- package/dist/npm/src/models/transactions/paymentChannelFund.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelFund.js +2 -2
- package/dist/npm/src/models/transactions/paymentChannelFund.js.map +1 -1
- package/dist/npm/src/models/transactions/setFee.d.ts +16 -0
- package/dist/npm/src/models/transactions/setFee.d.ts.map +1 -0
- package/dist/npm/src/models/{ledger/AMM.js → transactions/setFee.js} +1 -1
- package/dist/npm/src/models/transactions/setFee.js.map +1 -0
- package/dist/npm/src/models/transactions/signerListSet.d.ts +1 -1
- package/dist/npm/src/models/transactions/signerListSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/signerListSet.js +3 -0
- package/dist/npm/src/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +1 -14
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +0 -52
- 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 +21 -18
- 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 +59 -4
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/sugar/balances.d.ts +1 -1
- package/dist/npm/src/sugar/balances.d.ts.map +1 -1
- package/dist/npm/src/sugar/balances.js.map +1 -1
- package/dist/npm/src/sugar/getOrderbook.d.ts +2 -2
- package/dist/npm/src/sugar/getOrderbook.d.ts.map +1 -1
- package/dist/npm/src/sugar/getOrderbook.js.map +1 -1
- package/dist/npm/src/sugar/utils.d.ts.map +1 -1
- package/dist/npm/src/sugar/utils.js.map +1 -1
- package/dist/npm/src/utils/getBalanceChanges.d.ts +2 -6
- package/dist/npm/src/utils/getBalanceChanges.d.ts.map +1 -1
- package/dist/npm/src/utils/getBalanceChanges.js.map +1 -1
- package/dist/npm/src/utils/getNFTokenID.d.ts +1 -1
- package/dist/npm/src/utils/getNFTokenID.d.ts.map +1 -1
- package/dist/npm/src/utils/getNFTokenID.js +12 -4
- package/dist/npm/src/utils/getNFTokenID.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +59 -4
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/balances.d.ts +1 -1
- package/dist/npm/sugar/balances.d.ts.map +1 -1
- package/dist/npm/sugar/balances.js.map +1 -1
- package/dist/npm/sugar/getOrderbook.d.ts +2 -2
- package/dist/npm/sugar/getOrderbook.d.ts.map +1 -1
- package/dist/npm/sugar/getOrderbook.js.map +1 -1
- package/dist/npm/sugar/utils.d.ts.map +1 -1
- package/dist/npm/sugar/utils.js.map +1 -1
- package/dist/npm/utils/getBalanceChanges.d.ts +2 -6
- package/dist/npm/utils/getBalanceChanges.d.ts.map +1 -1
- package/dist/npm/utils/getBalanceChanges.js.map +1 -1
- package/dist/npm/utils/getNFTokenID.d.ts +1 -1
- package/dist/npm/utils/getNFTokenID.d.ts.map +1 -1
- package/dist/npm/utils/getNFTokenID.js +12 -4
- package/dist/npm/utils/getNFTokenID.js.map +1 -1
- package/package.json +5 -5
- package/dist/npm/models/ledger/AMM.d.ts +0 -39
- package/dist/npm/models/ledger/AMM.d.ts.map +0 -1
- package/dist/npm/models/ledger/AMM.js.map +0 -1
- package/dist/npm/models/ledger/Bridge.d.ts +0 -17
- package/dist/npm/models/ledger/Bridge.d.ts.map +0 -1
- package/dist/npm/models/ledger/Bridge.js.map +0 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +0 -16
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +0 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.js +0 -3
- package/dist/npm/models/ledger/XChainOwnedClaimID.js.map +0 -1
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +0 -14
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +0 -1
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js +0 -3
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.js.map +0 -1
- package/dist/npm/models/methods/ammInfo.d.ts +0 -42
- package/dist/npm/models/methods/ammInfo.d.ts.map +0 -1
- package/dist/npm/models/methods/ammInfo.js.map +0 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +0 -18
- package/dist/npm/models/transactions/AMMBid.d.ts.map +0 -1
- package/dist/npm/models/transactions/AMMBid.js +0 -37
- package/dist/npm/models/transactions/AMMBid.js.map +0 -1
- package/dist/npm/models/transactions/AMMCreate.d.ts +0 -11
- package/dist/npm/models/transactions/AMMCreate.d.ts.map +0 -1
- package/dist/npm/models/transactions/AMMCreate.js +0 -32
- package/dist/npm/models/transactions/AMMCreate.js.map +0 -1
- package/dist/npm/models/transactions/AMMDeposit.d.ts +0 -27
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +0 -1
- package/dist/npm/models/transactions/AMMDeposit.js +0 -51
- package/dist/npm/models/transactions/AMMDeposit.js.map +0 -1
- package/dist/npm/models/transactions/AMMVote.d.ts +0 -10
- package/dist/npm/models/transactions/AMMVote.d.ts.map +0 -1
- package/dist/npm/models/transactions/AMMVote.js +0 -32
- package/dist/npm/models/transactions/AMMVote.js.map +0 -1
- package/dist/npm/models/transactions/AMMWithdraw.d.ts +0 -31
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +0 -1
- package/dist/npm/models/transactions/AMMWithdraw.js +0 -50
- package/dist/npm/models/transactions/AMMWithdraw.js.map +0 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +0 -11
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js +0 -35
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +0 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +0 -18
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +0 -77
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +0 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +0 -17
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js +0 -68
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +0 -1
- package/dist/npm/models/transactions/XChainClaim.d.ts +0 -12
- package/dist/npm/models/transactions/XChainClaim.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainClaim.js +0 -39
- package/dist/npm/models/transactions/XChainClaim.js.map +0 -1
- package/dist/npm/models/transactions/XChainCommit.d.ts +0 -11
- package/dist/npm/models/transactions/XChainCommit.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainCommit.js +0 -33
- package/dist/npm/models/transactions/XChainCommit.js.map +0 -1
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts +0 -10
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainCreateBridge.js +0 -26
- package/dist/npm/models/transactions/XChainCreateBridge.js.map +0 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +0 -10
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.js +0 -28
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +0 -1
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts +0 -17
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +0 -1
- package/dist/npm/models/transactions/XChainModifyBridge.js +0 -27
- package/dist/npm/models/transactions/XChainModifyBridge.js.map +0 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +0 -39
- package/dist/npm/src/models/ledger/AMM.d.ts.map +0 -1
- package/dist/npm/src/models/ledger/AMM.js.map +0 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +0 -17
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +0 -1
- package/dist/npm/src/models/ledger/Bridge.js +0 -3
- package/dist/npm/src/models/ledger/Bridge.js.map +0 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +0 -16
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +0 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js +0 -3
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.js.map +0 -1
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +0 -14
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +0 -1
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js +0 -3
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.js.map +0 -1
- package/dist/npm/src/models/methods/ammInfo.d.ts +0 -42
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +0 -1
- package/dist/npm/src/models/methods/ammInfo.js +0 -3
- package/dist/npm/src/models/methods/ammInfo.js.map +0 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +0 -18
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/AMMBid.js +0 -37
- package/dist/npm/src/models/transactions/AMMBid.js.map +0 -1
- package/dist/npm/src/models/transactions/AMMCreate.d.ts +0 -11
- package/dist/npm/src/models/transactions/AMMCreate.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/AMMCreate.js +0 -32
- package/dist/npm/src/models/transactions/AMMCreate.js.map +0 -1
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts +0 -27
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/AMMDeposit.js +0 -51
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +0 -1
- package/dist/npm/src/models/transactions/AMMVote.d.ts +0 -10
- package/dist/npm/src/models/transactions/AMMVote.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/AMMVote.js +0 -32
- package/dist/npm/src/models/transactions/AMMVote.js.map +0 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts +0 -31
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.js +0 -50
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +0 -11
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +0 -35
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +0 -18
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +0 -77
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +0 -17
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +0 -68
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainClaim.d.ts +0 -12
- package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainClaim.js +0 -39
- package/dist/npm/src/models/transactions/XChainClaim.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainCommit.d.ts +0 -11
- package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainCommit.js +0 -33
- package/dist/npm/src/models/transactions/XChainCommit.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts +0 -10
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.js +0 -26
- package/dist/npm/src/models/transactions/XChainCreateBridge.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +0 -10
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js +0 -28
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +0 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts +0 -17
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts.map +0 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +0 -27
- package/dist/npm/src/models/transactions/XChainModifyBridge.js.map +0 -1
package/build/xrpl-latest.js
CHANGED
@@ -64163,20 +64163,14 @@ exports.signingData = signingData;
|
|
64163
64163
|
* @returns the serialized object with appropriate prefix
|
64164
64164
|
*/
|
64165
64165
|
function signingClaimData(claim) {
|
64166
|
+
const num = bigInt(String(claim.amount));
|
64166
64167
|
const prefix = hash_prefixes_1.HashPrefix.paymentChannelClaim;
|
64167
64168
|
const channel = types_1.coreTypes.Hash256.from(claim.channel).toBytes();
|
64169
|
+
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
64168
64170
|
const bytesList = new binary_serializer_1.BytesList();
|
64169
64171
|
bytesList.put(prefix);
|
64170
64172
|
bytesList.put(channel);
|
64171
|
-
|
64172
|
-
const num = bigInt(String(claim.amount));
|
64173
|
-
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
64174
|
-
bytesList.put(amount);
|
64175
|
-
}
|
64176
|
-
else {
|
64177
|
-
const amount = types_1.coreTypes.Amount.from(claim.amount).toBytes();
|
64178
|
-
bytesList.put(amount);
|
64179
|
-
}
|
64173
|
+
bytesList.put(amount);
|
64180
64174
|
return bytesList.toBytes();
|
64181
64175
|
}
|
64182
64176
|
exports.signingClaimData = signingClaimData;
|
@@ -66373,7 +66367,6 @@ const hash_160_1 = __webpack_require__(/*! ./hash-160 */ "../../node_modules/rip
|
|
66373
66367
|
Object.defineProperty(exports, "Hash160", ({ enumerable: true, get: function () { return hash_160_1.Hash160; } }));
|
66374
66368
|
const hash_256_1 = __webpack_require__(/*! ./hash-256 */ "../../node_modules/ripple-binary-codec/dist/types/hash-256.js");
|
66375
66369
|
Object.defineProperty(exports, "Hash256", ({ enumerable: true, get: function () { return hash_256_1.Hash256; } }));
|
66376
|
-
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
66377
66370
|
const path_set_1 = __webpack_require__(/*! ./path-set */ "../../node_modules/ripple-binary-codec/dist/types/path-set.js");
|
66378
66371
|
Object.defineProperty(exports, "PathSet", ({ enumerable: true, get: function () { return path_set_1.PathSet; } }));
|
66379
66372
|
const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
|
@@ -66390,7 +66383,6 @@ const uint_8_1 = __webpack_require__(/*! ./uint-8 */ "../../node_modules/ripple-
|
|
66390
66383
|
Object.defineProperty(exports, "UInt8", ({ enumerable: true, get: function () { return uint_8_1.UInt8; } }));
|
66391
66384
|
const vector_256_1 = __webpack_require__(/*! ./vector-256 */ "../../node_modules/ripple-binary-codec/dist/types/vector-256.js");
|
66392
66385
|
Object.defineProperty(exports, "Vector256", ({ enumerable: true, get: function () { return vector_256_1.Vector256; } }));
|
66393
|
-
const xchain_bridge_1 = __webpack_require__(/*! ./xchain-bridge */ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js");
|
66394
66386
|
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
66395
66387
|
const coreTypes = {
|
66396
66388
|
AccountID: account_id_1.AccountID,
|
@@ -66400,7 +66392,6 @@ const coreTypes = {
|
|
66400
66392
|
Hash128: hash_128_1.Hash128,
|
66401
66393
|
Hash160: hash_160_1.Hash160,
|
66402
66394
|
Hash256: hash_256_1.Hash256,
|
66403
|
-
Issue: issue_1.Issue,
|
66404
66395
|
PathSet: path_set_1.PathSet,
|
66405
66396
|
STArray: st_array_1.STArray,
|
66406
66397
|
STObject: st_object_1.STObject,
|
@@ -66409,7 +66400,6 @@ const coreTypes = {
|
|
66409
66400
|
UInt32: uint_32_1.UInt32,
|
66410
66401
|
UInt64: uint_64_1.UInt64,
|
66411
66402
|
Vector256: vector_256_1.Vector256,
|
66412
|
-
XChainBridge: xchain_bridge_1.XChainBridge,
|
66413
66403
|
};
|
66414
66404
|
exports.coreTypes = coreTypes;
|
66415
66405
|
// Ensures that the DEFAULT_DEFINITIONS object connects these types to fields for serializing/deserializing
|
@@ -66418,97 +66408,6 @@ exports.coreTypes = coreTypes;
|
|
66418
66408
|
enums_1.DEFAULT_DEFINITIONS.associateTypes(coreTypes);
|
66419
66409
|
|
66420
66410
|
|
66421
|
-
/***/ }),
|
66422
|
-
|
66423
|
-
/***/ "../../node_modules/ripple-binary-codec/dist/types/issue.js":
|
66424
|
-
/*!******************************************************************!*\
|
66425
|
-
!*** ../../node_modules/ripple-binary-codec/dist/types/issue.js ***!
|
66426
|
-
\******************************************************************/
|
66427
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
66428
|
-
|
66429
|
-
"use strict";
|
66430
|
-
|
66431
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
66432
|
-
exports.Issue = void 0;
|
66433
|
-
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
66434
|
-
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
66435
|
-
const currency_1 = __webpack_require__(/*! ./currency */ "../../node_modules/ripple-binary-codec/dist/types/currency.js");
|
66436
|
-
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
66437
|
-
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
66438
|
-
/**
|
66439
|
-
* Type guard for AmountObject
|
66440
|
-
*/
|
66441
|
-
function isIssueObject(arg) {
|
66442
|
-
const keys = Object.keys(arg).sort();
|
66443
|
-
if (keys.length === 1) {
|
66444
|
-
return keys[0] === 'currency';
|
66445
|
-
}
|
66446
|
-
return keys.length === 2 && keys[0] === 'currency' && keys[1] === 'issuer';
|
66447
|
-
}
|
66448
|
-
/**
|
66449
|
-
* Class for serializing/Deserializing Amounts
|
66450
|
-
*/
|
66451
|
-
class Issue extends serialized_type_1.SerializedType {
|
66452
|
-
constructor(bytes) {
|
66453
|
-
super(bytes !== null && bytes !== void 0 ? bytes : Issue.ZERO_ISSUED_CURRENCY.bytes);
|
66454
|
-
}
|
66455
|
-
/**
|
66456
|
-
* Construct an amount from an IOU or string amount
|
66457
|
-
*
|
66458
|
-
* @param value An Amount, object representing an IOU, or a string
|
66459
|
-
* representing an integer amount
|
66460
|
-
* @returns An Amount object
|
66461
|
-
*/
|
66462
|
-
static from(value) {
|
66463
|
-
if (value instanceof Issue) {
|
66464
|
-
return value;
|
66465
|
-
}
|
66466
|
-
if (isIssueObject(value)) {
|
66467
|
-
const currency = currency_1.Currency.from(value.currency).toBytes();
|
66468
|
-
if (value.issuer == null) {
|
66469
|
-
return new Issue(currency);
|
66470
|
-
}
|
66471
|
-
const issuer = account_id_1.AccountID.from(value.issuer).toBytes();
|
66472
|
-
return new Issue(buffer_1.Buffer.concat([currency, issuer]));
|
66473
|
-
}
|
66474
|
-
throw new Error('Invalid type to construct an Amount');
|
66475
|
-
}
|
66476
|
-
/**
|
66477
|
-
* Read an amount from a BinaryParser
|
66478
|
-
*
|
66479
|
-
* @param parser BinaryParser to read the Amount from
|
66480
|
-
* @returns An Amount object
|
66481
|
-
*/
|
66482
|
-
static fromParser(parser) {
|
66483
|
-
const currency = parser.read(20);
|
66484
|
-
if (new currency_1.Currency(currency).toJSON() === 'XRP') {
|
66485
|
-
return new Issue(currency);
|
66486
|
-
}
|
66487
|
-
const currencyAndIssuer = [currency, parser.read(20)];
|
66488
|
-
return new Issue(buffer_1.Buffer.concat(currencyAndIssuer));
|
66489
|
-
}
|
66490
|
-
/**
|
66491
|
-
* Get the JSON representation of this Amount
|
66492
|
-
*
|
66493
|
-
* @returns the JSON interpretation of this.bytes
|
66494
|
-
*/
|
66495
|
-
toJSON() {
|
66496
|
-
const parser = new binary_parser_1.BinaryParser(this.toString());
|
66497
|
-
const currency = currency_1.Currency.fromParser(parser);
|
66498
|
-
if (currency.toJSON() === 'XRP') {
|
66499
|
-
return { currency: currency.toJSON() };
|
66500
|
-
}
|
66501
|
-
const issuer = account_id_1.AccountID.fromParser(parser);
|
66502
|
-
return {
|
66503
|
-
currency: currency.toJSON(),
|
66504
|
-
issuer: issuer.toJSON(),
|
66505
|
-
};
|
66506
|
-
}
|
66507
|
-
}
|
66508
|
-
exports.Issue = Issue;
|
66509
|
-
Issue.ZERO_ISSUED_CURRENCY = new Issue(buffer_1.Buffer.alloc(20));
|
66510
|
-
|
66511
|
-
|
66512
66411
|
/***/ }),
|
66513
66412
|
|
66514
66413
|
/***/ "../../node_modules/ripple-binary-codec/dist/types/path-set.js":
|
@@ -66814,9 +66713,12 @@ class SerializedType {
|
|
66814
66713
|
/**
|
66815
66714
|
* Return the JSON representation of a SerializedType
|
66816
66715
|
*
|
66716
|
+
* @param _definitions rippled definitions used to parse the values of transaction types and such.
|
66717
|
+
* Unused in default, but used in STObject, STArray
|
66718
|
+
* Can be customized for sidechains and amendments.
|
66817
66719
|
* @returns any type, if not overloaded returns hexString representation of bytes
|
66818
66720
|
*/
|
66819
|
-
toJSON() {
|
66721
|
+
toJSON(_definitions) {
|
66820
66722
|
return this.toHex();
|
66821
66723
|
}
|
66822
66724
|
/**
|
@@ -66871,6 +66773,7 @@ exports.Comparable = Comparable;
|
|
66871
66773
|
|
66872
66774
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
66873
66775
|
exports.STArray = void 0;
|
66776
|
+
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
66874
66777
|
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
66875
66778
|
const st_object_1 = __webpack_require__(/*! ./st-object */ "../../node_modules/ripple-binary-codec/dist/types/st-object.js");
|
66876
66779
|
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
@@ -66910,16 +66813,17 @@ class STArray extends serialized_type_1.SerializedType {
|
|
66910
66813
|
* Construct an STArray from an Array of JSON Objects
|
66911
66814
|
*
|
66912
66815
|
* @param value STArray or Array of Objects to parse into an STArray
|
66816
|
+
* @param definitions optional, types and values to use to encode/decode a transaction
|
66913
66817
|
* @returns An STArray object
|
66914
66818
|
*/
|
66915
|
-
static from(value) {
|
66819
|
+
static from(value, definitions = enums_1.DEFAULT_DEFINITIONS) {
|
66916
66820
|
if (value instanceof STArray) {
|
66917
66821
|
return value;
|
66918
66822
|
}
|
66919
66823
|
if (isObjects(value)) {
|
66920
66824
|
const bytes = [];
|
66921
66825
|
value.forEach((obj) => {
|
66922
|
-
bytes.push(st_object_1.STObject.from(obj).toBytes());
|
66826
|
+
bytes.push(st_object_1.STObject.from(obj, undefined, definitions).toBytes());
|
66923
66827
|
});
|
66924
66828
|
bytes.push(ARRAY_END_MARKER);
|
66925
66829
|
return new STArray(buffer_1.Buffer.concat(bytes));
|
@@ -66929,18 +66833,19 @@ class STArray extends serialized_type_1.SerializedType {
|
|
66929
66833
|
/**
|
66930
66834
|
* Return the JSON representation of this.bytes
|
66931
66835
|
*
|
66836
|
+
* @param definitions optional, types and values to use to encode/decode a transaction
|
66932
66837
|
* @returns An Array of JSON objects
|
66933
66838
|
*/
|
66934
|
-
toJSON() {
|
66839
|
+
toJSON(definitions = enums_1.DEFAULT_DEFINITIONS) {
|
66935
66840
|
const result = [];
|
66936
|
-
const arrayParser = new binary_parser_1.BinaryParser(this.toString());
|
66841
|
+
const arrayParser = new binary_parser_1.BinaryParser(this.toString(), definitions);
|
66937
66842
|
while (!arrayParser.end()) {
|
66938
66843
|
const field = arrayParser.readField();
|
66939
66844
|
if (field.name === ARRAY_END_MARKER_NAME) {
|
66940
66845
|
break;
|
66941
66846
|
}
|
66942
66847
|
const outer = {};
|
66943
|
-
outer[field.name] = st_object_1.STObject.fromParser(arrayParser).toJSON();
|
66848
|
+
outer[field.name] = st_object_1.STObject.fromParser(arrayParser).toJSON(definitions);
|
66944
66849
|
result.push(outer);
|
66945
66850
|
}
|
66946
66851
|
return result;
|
@@ -66967,6 +66872,7 @@ const ripple_address_codec_1 = __webpack_require__(/*! ripple-address-codec */ "
|
|
66967
66872
|
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
66968
66873
|
const binary_serializer_1 = __webpack_require__(/*! ../serdes/binary-serializer */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-serializer.js");
|
66969
66874
|
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
66875
|
+
const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
|
66970
66876
|
const OBJECT_END_MARKER_BYTE = buffer_1.Buffer.from([0xe1]);
|
66971
66877
|
const OBJECT_END_MARKER = 'ObjectEndMarker';
|
66972
66878
|
const ST_OBJECT = 'STObject';
|
@@ -67067,7 +66973,11 @@ class STObject extends serialized_type_1.SerializedType {
|
|
67067
66973
|
sorted = sorted.filter(filter);
|
67068
66974
|
}
|
67069
66975
|
sorted.forEach((field) => {
|
67070
|
-
const associatedValue = field.
|
66976
|
+
const associatedValue = field.type.name === ST_OBJECT
|
66977
|
+
? this.from(xAddressDecoded[field.name], undefined, definitions)
|
66978
|
+
: field.type.name === 'STArray'
|
66979
|
+
? st_array_1.STArray.from(xAddressDecoded[field.name], definitions)
|
66980
|
+
: field.associatedType.from(xAddressDecoded[field.name]);
|
67071
66981
|
if (associatedValue == undefined) {
|
67072
66982
|
throw new TypeError(`Unable to interpret "${field.name}: ${xAddressDecoded[field.name]}".`);
|
67073
66983
|
}
|
@@ -67100,7 +67010,9 @@ class STObject extends serialized_type_1.SerializedType {
|
|
67100
67010
|
if (field.name === OBJECT_END_MARKER) {
|
67101
67011
|
break;
|
67102
67012
|
}
|
67103
|
-
accumulator[field.name] = objectParser
|
67013
|
+
accumulator[field.name] = objectParser
|
67014
|
+
.readFieldValue(field)
|
67015
|
+
.toJSON(definitions);
|
67104
67016
|
}
|
67105
67017
|
return accumulator;
|
67106
67018
|
}
|
@@ -67509,118 +67421,6 @@ class Vector256 extends serialized_type_1.SerializedType {
|
|
67509
67421
|
exports.Vector256 = Vector256;
|
67510
67422
|
|
67511
67423
|
|
67512
|
-
/***/ }),
|
67513
|
-
|
67514
|
-
/***/ "../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js":
|
67515
|
-
/*!**************************************************************************!*\
|
67516
|
-
!*** ../../node_modules/ripple-binary-codec/dist/types/xchain-bridge.js ***!
|
67517
|
-
\**************************************************************************/
|
67518
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
67519
|
-
|
67520
|
-
"use strict";
|
67521
|
-
|
67522
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
67523
|
-
exports.XChainBridge = void 0;
|
67524
|
-
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
67525
|
-
const account_id_1 = __webpack_require__(/*! ./account-id */ "../../node_modules/ripple-binary-codec/dist/types/account-id.js");
|
67526
|
-
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
67527
|
-
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
67528
|
-
const issue_1 = __webpack_require__(/*! ./issue */ "../../node_modules/ripple-binary-codec/dist/types/issue.js");
|
67529
|
-
/**
|
67530
|
-
* Type guard for XChainBridgeObject
|
67531
|
-
*/
|
67532
|
-
function isXChainBridgeObject(arg) {
|
67533
|
-
const keys = Object.keys(arg).sort();
|
67534
|
-
return (keys.length === 4 &&
|
67535
|
-
keys[0] === 'IssuingChainDoor' &&
|
67536
|
-
keys[1] === 'IssuingChainIssue' &&
|
67537
|
-
keys[2] === 'LockingChainDoor' &&
|
67538
|
-
keys[3] === 'LockingChainIssue');
|
67539
|
-
}
|
67540
|
-
/**
|
67541
|
-
* Class for serializing/deserializing XChainBridges
|
67542
|
-
*/
|
67543
|
-
class XChainBridge extends serialized_type_1.SerializedType {
|
67544
|
-
constructor(bytes) {
|
67545
|
-
super(bytes !== null && bytes !== void 0 ? bytes : XChainBridge.ZERO_XCHAIN_BRIDGE.bytes);
|
67546
|
-
}
|
67547
|
-
/**
|
67548
|
-
* Construct a cross-chain bridge from a JSON
|
67549
|
-
*
|
67550
|
-
* @param value XChainBridge or JSON to parse into a XChainBridge
|
67551
|
-
* @returns A XChainBridge object
|
67552
|
-
*/
|
67553
|
-
static from(value) {
|
67554
|
-
if (value instanceof XChainBridge) {
|
67555
|
-
return value;
|
67556
|
-
}
|
67557
|
-
if (isXChainBridgeObject(value)) {
|
67558
|
-
const bytes = [];
|
67559
|
-
this.TYPE_ORDER.forEach((item) => {
|
67560
|
-
const { name, type } = item;
|
67561
|
-
if (type === account_id_1.AccountID) {
|
67562
|
-
bytes.push(buffer_1.Buffer.from([0x14]));
|
67563
|
-
}
|
67564
|
-
const object = type.from(value[name]);
|
67565
|
-
bytes.push(object.toBytes());
|
67566
|
-
});
|
67567
|
-
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
67568
|
-
}
|
67569
|
-
throw new Error('Invalid type to construct a XChainBridge');
|
67570
|
-
}
|
67571
|
-
/**
|
67572
|
-
* Read a XChainBridge from a BinaryParser
|
67573
|
-
*
|
67574
|
-
* @param parser BinaryParser to read the XChainBridge from
|
67575
|
-
* @returns A XChainBridge object
|
67576
|
-
*/
|
67577
|
-
static fromParser(parser) {
|
67578
|
-
const bytes = [];
|
67579
|
-
this.TYPE_ORDER.forEach((item) => {
|
67580
|
-
const { type } = item;
|
67581
|
-
if (type === account_id_1.AccountID) {
|
67582
|
-
parser.skip(1);
|
67583
|
-
bytes.push(buffer_1.Buffer.from([0x14]));
|
67584
|
-
}
|
67585
|
-
const object = type.fromParser(parser);
|
67586
|
-
bytes.push(object.toBytes());
|
67587
|
-
});
|
67588
|
-
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
67589
|
-
}
|
67590
|
-
/**
|
67591
|
-
* Get the JSON representation of this XChainBridge
|
67592
|
-
*
|
67593
|
-
* @returns the JSON interpretation of this.bytes
|
67594
|
-
*/
|
67595
|
-
toJSON() {
|
67596
|
-
const parser = new binary_parser_1.BinaryParser(this.toString());
|
67597
|
-
const json = {};
|
67598
|
-
XChainBridge.TYPE_ORDER.forEach((item) => {
|
67599
|
-
const { name, type } = item;
|
67600
|
-
if (type === account_id_1.AccountID) {
|
67601
|
-
parser.skip(1);
|
67602
|
-
}
|
67603
|
-
const object = type.fromParser(parser).toJSON();
|
67604
|
-
json[name] = object;
|
67605
|
-
});
|
67606
|
-
return json;
|
67607
|
-
}
|
67608
|
-
}
|
67609
|
-
exports.XChainBridge = XChainBridge;
|
67610
|
-
XChainBridge.ZERO_XCHAIN_BRIDGE = new XChainBridge(buffer_1.Buffer.concat([
|
67611
|
-
buffer_1.Buffer.from([0x14]),
|
67612
|
-
buffer_1.Buffer.alloc(40),
|
67613
|
-
buffer_1.Buffer.from([0x14]),
|
67614
|
-
buffer_1.Buffer.alloc(40),
|
67615
|
-
]));
|
67616
|
-
XChainBridge.TYPE_ORDER = [
|
67617
|
-
{ name: 'LockingChainDoor', type: account_id_1.AccountID },
|
67618
|
-
{ name: 'LockingChainIssue', type: issue_1.Issue },
|
67619
|
-
{ name: 'IssuingChainDoor', type: account_id_1.AccountID },
|
67620
|
-
{ name: 'IssuingChainIssue', type: issue_1.Issue },
|
67621
|
-
];
|
67622
|
-
|
67623
|
-
|
67624
67424
|
/***/ }),
|
67625
67425
|
|
67626
67426
|
/***/ "../../node_modules/ripple-keypairs/dist/Sha512.js":
|
@@ -73854,15 +73654,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
73854
73654
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
73855
73655
|
});
|
73856
73656
|
};
|
73857
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
73858
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
73859
|
-
};
|
73860
73657
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
73861
73658
|
const https_1 = __webpack_require__(/*! https */ "../../node_modules/https-browserify/index.js");
|
73862
73659
|
const ripple_address_codec_1 = __webpack_require__(/*! ripple-address-codec */ "../../node_modules/ripple-address-codec/dist/index.js");
|
73863
73660
|
const errors_1 = __webpack_require__(/*! ../errors */ "./dist/npm/errors.js");
|
73864
73661
|
const defaultFaucets_1 = __webpack_require__(/*! ./defaultFaucets */ "./dist/npm/Wallet/defaultFaucets.js");
|
73865
|
-
const _1 =
|
73662
|
+
const _1 = __webpack_require__(/*! . */ "./dist/npm/Wallet/index.js");
|
73866
73663
|
const INTERVAL_SECONDS = 1;
|
73867
73664
|
const MAX_ATTEMPTS = 20;
|
73868
73665
|
function fundWallet(wallet, options) {
|
@@ -73872,10 +73669,12 @@ function fundWallet(wallet, options) {
|
|
73872
73669
|
}
|
73873
73670
|
const walletToFund = wallet && (0, ripple_address_codec_1.isValidClassicAddress)(wallet.classicAddress)
|
73874
73671
|
? wallet
|
73875
|
-
: _1.
|
73672
|
+
: _1.Wallet.generate();
|
73876
73673
|
const postBody = Buffer.from(new TextEncoder().encode(JSON.stringify({
|
73877
73674
|
destination: walletToFund.classicAddress,
|
73878
73675
|
xrpAmount: options === null || options === void 0 ? void 0 : options.amount,
|
73676
|
+
userAgent: 'xrpl.js',
|
73677
|
+
usageContext: options === null || options === void 0 ? void 0 : options.usageContext,
|
73879
73678
|
})));
|
73880
73679
|
let startingBalance = 0;
|
73881
73680
|
try {
|
@@ -74019,6 +73818,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
74019
73818
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
74020
73819
|
};
|
74021
73820
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
73821
|
+
exports.Wallet = void 0;
|
74022
73822
|
const bignumber_js_1 = __importDefault(__webpack_require__(/*! bignumber.js */ "../../node_modules/bignumber.js/bignumber.js"));
|
74023
73823
|
const bip32_1 = __webpack_require__(/*! bip32 */ "../../node_modules/bip32/src/index.js");
|
74024
73824
|
const bip39_1 = __webpack_require__(/*! bip39 */ "../../node_modules/bip39/src/index.js");
|
@@ -74168,6 +73968,7 @@ class Wallet {
|
|
74168
73968
|
return (0, ripple_address_codec_1.classicAddressToXAddress)(this.classicAddress, tag, isTestnet);
|
74169
73969
|
}
|
74170
73970
|
}
|
73971
|
+
exports.Wallet = Wallet;
|
74171
73972
|
Wallet.fromSecret = Wallet.fromSeed;
|
74172
73973
|
function computeSignature(tx, privateKey, signAs) {
|
74173
73974
|
if (signAs) {
|
@@ -74187,7 +73988,6 @@ function removeTrailingZeros(tx) {
|
|
74187
73988
|
tx.Amount.value = new bignumber_js_1.default(tx.Amount.value).toString();
|
74188
73989
|
}
|
74189
73990
|
}
|
74190
|
-
exports["default"] = Wallet;
|
74191
73991
|
|
74192
73992
|
|
74193
73993
|
/***/ }),
|
@@ -74338,8 +74138,10 @@ function multisign(transactions) {
|
|
74338
74138
|
if (transactions.length === 0) {
|
74339
74139
|
throw new errors_1.ValidationError('There were 0 transactions to multisign');
|
74340
74140
|
}
|
74341
|
-
transactions.
|
74342
|
-
|
74141
|
+
const decodedTransactions = transactions.map((txOrBlob) => {
|
74142
|
+
return getDecodedTransaction(txOrBlob);
|
74143
|
+
});
|
74144
|
+
decodedTransactions.forEach((tx) => {
|
74343
74145
|
(0, transactions_1.validate)(tx);
|
74344
74146
|
if (tx.Signers == null || tx.Signers.length === 0) {
|
74345
74147
|
throw new errors_1.ValidationError("For multisigning all transactions must include a Signers field containing an array of signatures. You may have forgotten to pass the 'forMultisign' parameter when signing.");
|
@@ -74348,9 +74150,6 @@ function multisign(transactions) {
|
|
74348
74150
|
throw new errors_1.ValidationError('SigningPubKey must be an empty string for all transactions when multisigning.');
|
74349
74151
|
}
|
74350
74152
|
});
|
74351
|
-
const decodedTransactions = transactions.map((txOrBlob) => {
|
74352
|
-
return getDecodedTransaction(txOrBlob);
|
74353
|
-
});
|
74354
74153
|
validateTransactionEquivalence(decodedTransactions);
|
74355
74154
|
return (0, ripple_binary_codec_1.encode)(getTransactionWithAllSigners(decodedTransactions));
|
74356
74155
|
}
|
@@ -74383,10 +74182,10 @@ function getTransactionWithAllSigners(transactions) {
|
|
74383
74182
|
function compareSigners(left, right) {
|
74384
74183
|
return addressToBigNumber(left.Signer.Account).comparedTo(addressToBigNumber(right.Signer.Account));
|
74385
74184
|
}
|
74185
|
+
const NUM_BITS_IN_HEX = 16;
|
74386
74186
|
function addressToBigNumber(address) {
|
74387
74187
|
const hex = Buffer.from((0, ripple_address_codec_1.decodeAccountID)(address)).toString('hex');
|
74388
|
-
|
74389
|
-
return new bignumber_js_1.BigNumber(hex, numberOfBitsInHex);
|
74188
|
+
return new bignumber_js_1.BigNumber(hex, NUM_BITS_IN_HEX);
|
74390
74189
|
}
|
74391
74190
|
function getDecodedTransaction(txOrBlob) {
|
74392
74191
|
if (typeof txOrBlob === 'object') {
|
@@ -74416,6 +74215,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
74416
74215
|
});
|
74417
74216
|
};
|
74418
74217
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
74218
|
+
exports.BroadcastClient = void 0;
|
74419
74219
|
const _1 = __webpack_require__(/*! . */ "./dist/npm/client/index.js");
|
74420
74220
|
class BroadcastClient extends _1.Client {
|
74421
74221
|
constructor(servers, options = {}) {
|
@@ -74451,7 +74251,7 @@ class BroadcastClient extends _1.Client {
|
|
74451
74251
|
return methodNames;
|
74452
74252
|
}
|
74453
74253
|
}
|
74454
|
-
exports
|
74254
|
+
exports.BroadcastClient = BroadcastClient;
|
74455
74255
|
|
74456
74256
|
|
74457
74257
|
/***/ }),
|
@@ -75151,8 +74951,8 @@ class Client extends events_1.EventEmitter {
|
|
75151
74951
|
this.connection.on('error', (errorCode, errorMessage, data) => {
|
75152
74952
|
this.emit('error', errorCode, errorMessage, data);
|
75153
74953
|
});
|
75154
|
-
this.connection.on('
|
75155
|
-
this.emit('connected');
|
74954
|
+
this.connection.on('reconnect', () => {
|
74955
|
+
this.connection.on('connected', () => this.emit('connected'));
|
75156
74956
|
});
|
75157
74957
|
this.connection.on('disconnected', (code) => {
|
75158
74958
|
let finalCode = code;
|
@@ -75242,9 +75042,27 @@ class Client extends events_1.EventEmitter {
|
|
75242
75042
|
return results;
|
75243
75043
|
});
|
75244
75044
|
}
|
75045
|
+
getServerInfo() {
|
75046
|
+
var _a;
|
75047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
75048
|
+
try {
|
75049
|
+
const response = yield this.request({
|
75050
|
+
command: 'server_info',
|
75051
|
+
});
|
75052
|
+
this.networkID = (_a = response.result.info.network_id) !== null && _a !== void 0 ? _a : undefined;
|
75053
|
+
this.buildVersion = response.result.info.build_version;
|
75054
|
+
}
|
75055
|
+
catch (error) {
|
75056
|
+
console.error(error);
|
75057
|
+
}
|
75058
|
+
});
|
75059
|
+
}
|
75245
75060
|
connect() {
|
75246
75061
|
return __awaiter(this, void 0, void 0, function* () {
|
75247
|
-
return this.connection.connect()
|
75062
|
+
return this.connection.connect().then(() => __awaiter(this, void 0, void 0, function* () {
|
75063
|
+
yield this.getServerInfo();
|
75064
|
+
this.emit('connected');
|
75065
|
+
}));
|
75248
75066
|
});
|
75249
75067
|
}
|
75250
75068
|
disconnect() {
|
@@ -75471,16 +75289,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
75471
75289
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
75472
75290
|
};
|
75473
75291
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75474
|
-
exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.Wallet = exports.Client = exports.BroadcastClient = void 0;
|
75292
|
+
exports.rfc1751MnemonicToKey = exports.keyToRFC1751Mnemonic = exports.Wallet = exports.ECDSA = exports.Client = exports.BroadcastClient = void 0;
|
75475
75293
|
var BroadcastClient_1 = __webpack_require__(/*! ./client/BroadcastClient */ "./dist/npm/client/BroadcastClient.js");
|
75476
|
-
Object.defineProperty(exports, "BroadcastClient", ({ enumerable: true, get: function () { return
|
75294
|
+
Object.defineProperty(exports, "BroadcastClient", ({ enumerable: true, get: function () { return BroadcastClient_1.BroadcastClient; } }));
|
75477
75295
|
var client_1 = __webpack_require__(/*! ./client */ "./dist/npm/client/index.js");
|
75478
75296
|
Object.defineProperty(exports, "Client", ({ enumerable: true, get: function () { return client_1.Client; } }));
|
75479
75297
|
__exportStar(__webpack_require__(/*! ./models */ "./dist/npm/models/index.js"), exports);
|
75480
75298
|
__exportStar(__webpack_require__(/*! ./utils */ "./dist/npm/utils/index.js"), exports);
|
75299
|
+
var ECDSA_1 = __webpack_require__(/*! ./ECDSA */ "./dist/npm/ECDSA.js");
|
75300
|
+
Object.defineProperty(exports, "ECDSA", ({ enumerable: true, get: function () { return __importDefault(ECDSA_1).default; } }));
|
75481
75301
|
__exportStar(__webpack_require__(/*! ./errors */ "./dist/npm/errors.js"), exports);
|
75482
75302
|
var Wallet_1 = __webpack_require__(/*! ./Wallet */ "./dist/npm/Wallet/index.js");
|
75483
|
-
Object.defineProperty(exports, "Wallet", ({ enumerable: true, get: function () { return
|
75303
|
+
Object.defineProperty(exports, "Wallet", ({ enumerable: true, get: function () { return Wallet_1.Wallet; } }));
|
75484
75304
|
var rfc1751_1 = __webpack_require__(/*! ./Wallet/rfc1751 */ "./dist/npm/Wallet/rfc1751.js");
|
75485
75305
|
Object.defineProperty(exports, "keyToRFC1751Mnemonic", ({ enumerable: true, get: function () { return rfc1751_1.keyToRFC1751Mnemonic; } }));
|
75486
75306
|
Object.defineProperty(exports, "rfc1751MnemonicToKey", ({ enumerable: true, get: function () { return rfc1751_1.rfc1751MnemonicToKey; } }));
|
@@ -75570,7 +75390,6 @@ var AccountRootFlags;
|
|
75570
75390
|
AccountRootFlags[AccountRootFlags["lsfGlobalFreeze"] = 4194304] = "lsfGlobalFreeze";
|
75571
75391
|
AccountRootFlags[AccountRootFlags["lsfDefaultRipple"] = 8388608] = "lsfDefaultRipple";
|
75572
75392
|
AccountRootFlags[AccountRootFlags["lsfDepositAuth"] = 16777216] = "lsfDepositAuth";
|
75573
|
-
AccountRootFlags[AccountRootFlags["lsfAMM"] = 33554432] = "lsfAMM";
|
75574
75393
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingNFTokenOffer"] = 67108864] = "lsfDisallowIncomingNFTokenOffer";
|
75575
75394
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingCheck"] = 134217728] = "lsfDisallowIncomingCheck";
|
75576
75395
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingPayChan"] = 268435456] = "lsfDisallowIncomingPayChan";
|
@@ -75578,6 +75397,51 @@ var AccountRootFlags;
|
|
75578
75397
|
})(AccountRootFlags = exports.AccountRootFlags || (exports.AccountRootFlags = {}));
|
75579
75398
|
|
75580
75399
|
|
75400
|
+
/***/ }),
|
75401
|
+
|
75402
|
+
/***/ "./dist/npm/models/ledger/Amendments.js":
|
75403
|
+
/*!**********************************************!*\
|
75404
|
+
!*** ./dist/npm/models/ledger/Amendments.js ***!
|
75405
|
+
\**********************************************/
|
75406
|
+
/***/ ((__unused_webpack_module, exports) => {
|
75407
|
+
|
75408
|
+
"use strict";
|
75409
|
+
|
75410
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75411
|
+
exports.AMENDMENTS_ID = void 0;
|
75412
|
+
exports.AMENDMENTS_ID = '7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4';
|
75413
|
+
|
75414
|
+
|
75415
|
+
/***/ }),
|
75416
|
+
|
75417
|
+
/***/ "./dist/npm/models/ledger/FeeSettings.js":
|
75418
|
+
/*!***********************************************!*\
|
75419
|
+
!*** ./dist/npm/models/ledger/FeeSettings.js ***!
|
75420
|
+
\***********************************************/
|
75421
|
+
/***/ ((__unused_webpack_module, exports) => {
|
75422
|
+
|
75423
|
+
"use strict";
|
75424
|
+
|
75425
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75426
|
+
exports.FEE_SETTINGS_ID = void 0;
|
75427
|
+
exports.FEE_SETTINGS_ID = '4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651';
|
75428
|
+
|
75429
|
+
|
75430
|
+
/***/ }),
|
75431
|
+
|
75432
|
+
/***/ "./dist/npm/models/ledger/NegativeUNL.js":
|
75433
|
+
/*!***********************************************!*\
|
75434
|
+
!*** ./dist/npm/models/ledger/NegativeUNL.js ***!
|
75435
|
+
\***********************************************/
|
75436
|
+
/***/ ((__unused_webpack_module, exports) => {
|
75437
|
+
|
75438
|
+
"use strict";
|
75439
|
+
|
75440
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75441
|
+
exports.NEGATIVE_UNL_ID = void 0;
|
75442
|
+
exports.NEGATIVE_UNL_ID = '2E8A59AA9D3B5B186B0B9E0F62E6C02587CA74A4D778938E957B6357D364B244';
|
75443
|
+
|
75444
|
+
|
75581
75445
|
/***/ }),
|
75582
75446
|
|
75583
75447
|
/***/ "./dist/npm/models/ledger/Offer.js":
|
@@ -75651,9 +75515,15 @@ var SignerListFlags;
|
|
75651
75515
|
"use strict";
|
75652
75516
|
|
75653
75517
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75654
|
-
exports.SignerListFlags = exports.RippleStateFlags = exports.OfferFlags = exports.AccountRootFlags = void 0;
|
75518
|
+
exports.SignerListFlags = exports.RippleStateFlags = exports.OfferFlags = exports.NEGATIVE_UNL_ID = exports.FEE_SETTINGS_ID = exports.AMENDMENTS_ID = exports.AccountRootFlags = void 0;
|
75655
75519
|
const AccountRoot_1 = __webpack_require__(/*! ./AccountRoot */ "./dist/npm/models/ledger/AccountRoot.js");
|
75656
75520
|
Object.defineProperty(exports, "AccountRootFlags", ({ enumerable: true, get: function () { return AccountRoot_1.AccountRootFlags; } }));
|
75521
|
+
const Amendments_1 = __webpack_require__(/*! ./Amendments */ "./dist/npm/models/ledger/Amendments.js");
|
75522
|
+
Object.defineProperty(exports, "AMENDMENTS_ID", ({ enumerable: true, get: function () { return Amendments_1.AMENDMENTS_ID; } }));
|
75523
|
+
const FeeSettings_1 = __webpack_require__(/*! ./FeeSettings */ "./dist/npm/models/ledger/FeeSettings.js");
|
75524
|
+
Object.defineProperty(exports, "FEE_SETTINGS_ID", ({ enumerable: true, get: function () { return FeeSettings_1.FEE_SETTINGS_ID; } }));
|
75525
|
+
const NegativeUNL_1 = __webpack_require__(/*! ./NegativeUNL */ "./dist/npm/models/ledger/NegativeUNL.js");
|
75526
|
+
Object.defineProperty(exports, "NEGATIVE_UNL_ID", ({ enumerable: true, get: function () { return NegativeUNL_1.NEGATIVE_UNL_ID; } }));
|
75657
75527
|
const Offer_1 = __webpack_require__(/*! ./Offer */ "./dist/npm/models/ledger/Offer.js");
|
75658
75528
|
Object.defineProperty(exports, "OfferFlags", ({ enumerable: true, get: function () { return Offer_1.OfferFlags; } }));
|
75659
75529
|
const RippleState_1 = __webpack_require__(/*! ./RippleState */ "./dist/npm/models/ledger/RippleState.js");
|
@@ -75677,357 +75547,105 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75677
75547
|
|
75678
75548
|
/***/ }),
|
75679
75549
|
|
75680
|
-
/***/ "./dist/npm/models/transactions/
|
75681
|
-
|
75682
|
-
!*** ./dist/npm/models/transactions/
|
75683
|
-
|
75550
|
+
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
75551
|
+
/*!************************************************************!*\
|
75552
|
+
!*** ./dist/npm/models/transactions/NFTokenAcceptOffer.js ***!
|
75553
|
+
\************************************************************/
|
75684
75554
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75685
75555
|
|
75686
75556
|
"use strict";
|
75687
75557
|
|
75688
75558
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75689
|
-
exports.
|
75559
|
+
exports.validateNFTokenAcceptOffer = void 0;
|
75690
75560
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75691
75561
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75692
|
-
|
75693
|
-
|
75694
|
-
(
|
75695
|
-
|
75696
|
-
throw new errors_1.ValidationError('AMMBid: missing field Asset');
|
75697
|
-
}
|
75698
|
-
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
75699
|
-
throw new errors_1.ValidationError('AMMBid: Asset must be an Issue');
|
75700
|
-
}
|
75701
|
-
if (tx.Asset2 == null) {
|
75702
|
-
throw new errors_1.ValidationError('AMMBid: missing field Asset2');
|
75562
|
+
function validateNFTokenBrokerFee(tx) {
|
75563
|
+
const value = (0, common_1.parseAmountValue)(tx.NFTokenBrokerFee);
|
75564
|
+
if (Number.isNaN(value)) {
|
75565
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: invalid NFTokenBrokerFee');
|
75703
75566
|
}
|
75704
|
-
if (
|
75705
|
-
throw new errors_1.ValidationError('
|
75567
|
+
if (value <= 0) {
|
75568
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee');
|
75706
75569
|
}
|
75707
|
-
if (tx.
|
75708
|
-
throw new errors_1.ValidationError('
|
75570
|
+
if (tx.NFTokenSellOffer == null || tx.NFTokenBuyOffer == null) {
|
75571
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode');
|
75709
75572
|
}
|
75710
|
-
|
75711
|
-
|
75573
|
+
}
|
75574
|
+
function validateNFTokenAcceptOffer(tx) {
|
75575
|
+
(0, common_1.validateBaseTransaction)(tx);
|
75576
|
+
if (tx.NFTokenBrokerFee != null) {
|
75577
|
+
validateNFTokenBrokerFee(tx);
|
75712
75578
|
}
|
75713
|
-
if (tx.
|
75714
|
-
|
75715
|
-
throw new errors_1.ValidationError(`AMMBid: AuthAccounts must be an AuthAccount array`);
|
75716
|
-
}
|
75717
|
-
if (tx.AuthAccounts.length > MAX_AUTH_ACCOUNTS) {
|
75718
|
-
throw new errors_1.ValidationError(`AMMBid: AuthAccounts length must not be greater than ${MAX_AUTH_ACCOUNTS}`);
|
75719
|
-
}
|
75579
|
+
if (tx.NFTokenSellOffer == null && tx.NFTokenBuyOffer == null) {
|
75580
|
+
throw new errors_1.ValidationError('NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer');
|
75720
75581
|
}
|
75721
75582
|
}
|
75722
|
-
exports.
|
75583
|
+
exports.validateNFTokenAcceptOffer = validateNFTokenAcceptOffer;
|
75723
75584
|
|
75724
75585
|
|
75725
75586
|
/***/ }),
|
75726
75587
|
|
75727
|
-
/***/ "./dist/npm/models/transactions/
|
75728
|
-
|
75729
|
-
!*** ./dist/npm/models/transactions/
|
75730
|
-
|
75588
|
+
/***/ "./dist/npm/models/transactions/NFTokenBurn.js":
|
75589
|
+
/*!*****************************************************!*\
|
75590
|
+
!*** ./dist/npm/models/transactions/NFTokenBurn.js ***!
|
75591
|
+
\*****************************************************/
|
75731
75592
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75732
75593
|
|
75733
75594
|
"use strict";
|
75734
75595
|
|
75735
75596
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75736
|
-
exports.
|
75597
|
+
exports.validateNFTokenBurn = void 0;
|
75737
75598
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75738
75599
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75739
|
-
|
75740
|
-
function validateAMMCreate(tx) {
|
75600
|
+
function validateNFTokenBurn(tx) {
|
75741
75601
|
(0, common_1.validateBaseTransaction)(tx);
|
75742
|
-
if (tx.
|
75743
|
-
throw new errors_1.ValidationError('
|
75744
|
-
}
|
75745
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
75746
|
-
throw new errors_1.ValidationError('AMMCreate: Amount must be an Amount');
|
75747
|
-
}
|
75748
|
-
if (tx.Amount2 == null) {
|
75749
|
-
throw new errors_1.ValidationError('AMMCreate: missing field Amount2');
|
75750
|
-
}
|
75751
|
-
if (!(0, common_1.isAmount)(tx.Amount2)) {
|
75752
|
-
throw new errors_1.ValidationError('AMMCreate: Amount2 must be an Amount');
|
75753
|
-
}
|
75754
|
-
if (tx.TradingFee == null) {
|
75755
|
-
throw new errors_1.ValidationError('AMMCreate: missing field TradingFee');
|
75756
|
-
}
|
75757
|
-
if (typeof tx.TradingFee !== 'number') {
|
75758
|
-
throw new errors_1.ValidationError('AMMCreate: TradingFee must be a number');
|
75759
|
-
}
|
75760
|
-
if (tx.TradingFee < 0 || tx.TradingFee > exports.AMM_MAX_TRADING_FEE) {
|
75761
|
-
throw new errors_1.ValidationError(`AMMCreate: TradingFee must be between 0 and ${exports.AMM_MAX_TRADING_FEE}`);
|
75602
|
+
if (tx.NFTokenID == null) {
|
75603
|
+
throw new errors_1.ValidationError('NFTokenBurn: missing field NFTokenID');
|
75762
75604
|
}
|
75763
75605
|
}
|
75764
|
-
exports.
|
75606
|
+
exports.validateNFTokenBurn = validateNFTokenBurn;
|
75765
75607
|
|
75766
75608
|
|
75767
75609
|
/***/ }),
|
75768
75610
|
|
75769
|
-
/***/ "./dist/npm/models/transactions/
|
75770
|
-
|
75771
|
-
!*** ./dist/npm/models/transactions/
|
75772
|
-
|
75611
|
+
/***/ "./dist/npm/models/transactions/NFTokenCancelOffer.js":
|
75612
|
+
/*!************************************************************!*\
|
75613
|
+
!*** ./dist/npm/models/transactions/NFTokenCancelOffer.js ***!
|
75614
|
+
\************************************************************/
|
75773
75615
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75774
75616
|
|
75775
75617
|
"use strict";
|
75776
75618
|
|
75777
75619
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75778
|
-
exports.
|
75620
|
+
exports.validateNFTokenCancelOffer = void 0;
|
75779
75621
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75780
75622
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75781
|
-
|
75782
|
-
(function (AMMDepositFlags) {
|
75783
|
-
AMMDepositFlags[AMMDepositFlags["tfLPToken"] = 65536] = "tfLPToken";
|
75784
|
-
AMMDepositFlags[AMMDepositFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
75785
|
-
AMMDepositFlags[AMMDepositFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
75786
|
-
AMMDepositFlags[AMMDepositFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
75787
|
-
AMMDepositFlags[AMMDepositFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
75788
|
-
})(AMMDepositFlags = exports.AMMDepositFlags || (exports.AMMDepositFlags = {}));
|
75789
|
-
function validateAMMDeposit(tx) {
|
75623
|
+
function validateNFTokenCancelOffer(tx) {
|
75790
75624
|
(0, common_1.validateBaseTransaction)(tx);
|
75791
|
-
if (tx.
|
75792
|
-
throw new errors_1.ValidationError('
|
75793
|
-
}
|
75794
|
-
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
75795
|
-
throw new errors_1.ValidationError('AMMDeposit: Asset must be an Issue');
|
75796
|
-
}
|
75797
|
-
if (tx.Asset2 == null) {
|
75798
|
-
throw new errors_1.ValidationError('AMMDeposit: missing field Asset2');
|
75799
|
-
}
|
75800
|
-
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
75801
|
-
throw new errors_1.ValidationError('AMMDeposit: Asset2 must be an Issue');
|
75802
|
-
}
|
75803
|
-
if (tx.Amount2 != null && tx.Amount == null) {
|
75804
|
-
throw new errors_1.ValidationError('AMMDeposit: must set Amount with Amount2');
|
75805
|
-
}
|
75806
|
-
else if (tx.EPrice != null && tx.Amount == null) {
|
75807
|
-
throw new errors_1.ValidationError('AMMDeposit: must set Amount with EPrice');
|
75808
|
-
}
|
75809
|
-
else if (tx.LPTokenOut == null && tx.Amount == null) {
|
75810
|
-
throw new errors_1.ValidationError('AMMDeposit: must set at least LPTokenOut or Amount');
|
75811
|
-
}
|
75812
|
-
if (tx.LPTokenOut != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenOut)) {
|
75813
|
-
throw new errors_1.ValidationError('AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount');
|
75814
|
-
}
|
75815
|
-
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
75816
|
-
throw new errors_1.ValidationError('AMMDeposit: Amount must be an Amount');
|
75817
|
-
}
|
75818
|
-
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
75819
|
-
throw new errors_1.ValidationError('AMMDeposit: Amount2 must be an Amount');
|
75625
|
+
if (!Array.isArray(tx.NFTokenOffers)) {
|
75626
|
+
throw new errors_1.ValidationError('NFTokenCancelOffer: missing field NFTokenOffers');
|
75820
75627
|
}
|
75821
|
-
if (tx.
|
75822
|
-
throw new errors_1.ValidationError('
|
75628
|
+
if (tx.NFTokenOffers.length < 1) {
|
75629
|
+
throw new errors_1.ValidationError('NFTokenCancelOffer: empty field NFTokenOffers');
|
75823
75630
|
}
|
75824
75631
|
}
|
75825
|
-
exports.
|
75632
|
+
exports.validateNFTokenCancelOffer = validateNFTokenCancelOffer;
|
75826
75633
|
|
75827
75634
|
|
75828
75635
|
/***/ }),
|
75829
75636
|
|
75830
|
-
/***/ "./dist/npm/models/transactions/
|
75831
|
-
|
75832
|
-
!*** ./dist/npm/models/transactions/
|
75833
|
-
|
75637
|
+
/***/ "./dist/npm/models/transactions/NFTokenCreateOffer.js":
|
75638
|
+
/*!************************************************************!*\
|
75639
|
+
!*** ./dist/npm/models/transactions/NFTokenCreateOffer.js ***!
|
75640
|
+
\************************************************************/
|
75834
75641
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75835
75642
|
|
75836
75643
|
"use strict";
|
75837
75644
|
|
75838
75645
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75839
|
-
exports.
|
75646
|
+
exports.validateNFTokenCreateOffer = exports.NFTokenCreateOfferFlags = void 0;
|
75840
75647
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75841
|
-
const
|
75842
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75843
|
-
function validateAMMVote(tx) {
|
75844
|
-
(0, common_1.validateBaseTransaction)(tx);
|
75845
|
-
if (tx.Asset == null) {
|
75846
|
-
throw new errors_1.ValidationError('AMMVote: missing field Asset');
|
75847
|
-
}
|
75848
|
-
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
75849
|
-
throw new errors_1.ValidationError('AMMVote: Asset must be an Issue');
|
75850
|
-
}
|
75851
|
-
if (tx.Asset2 == null) {
|
75852
|
-
throw new errors_1.ValidationError('AMMVote: missing field Asset2');
|
75853
|
-
}
|
75854
|
-
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
75855
|
-
throw new errors_1.ValidationError('AMMVote: Asset2 must be an Issue');
|
75856
|
-
}
|
75857
|
-
if (tx.TradingFee == null) {
|
75858
|
-
throw new errors_1.ValidationError('AMMVote: missing field TradingFee');
|
75859
|
-
}
|
75860
|
-
if (typeof tx.TradingFee !== 'number') {
|
75861
|
-
throw new errors_1.ValidationError('AMMVote: TradingFee must be a number');
|
75862
|
-
}
|
75863
|
-
if (tx.TradingFee < 0 || tx.TradingFee > AMMCreate_1.AMM_MAX_TRADING_FEE) {
|
75864
|
-
throw new errors_1.ValidationError(`AMMVote: TradingFee must be between 0 and ${AMMCreate_1.AMM_MAX_TRADING_FEE}`);
|
75865
|
-
}
|
75866
|
-
}
|
75867
|
-
exports.validateAMMVote = validateAMMVote;
|
75868
|
-
|
75869
|
-
|
75870
|
-
/***/ }),
|
75871
|
-
|
75872
|
-
/***/ "./dist/npm/models/transactions/AMMWithdraw.js":
|
75873
|
-
/*!*****************************************************!*\
|
75874
|
-
!*** ./dist/npm/models/transactions/AMMWithdraw.js ***!
|
75875
|
-
\*****************************************************/
|
75876
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75877
|
-
|
75878
|
-
"use strict";
|
75879
|
-
|
75880
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75881
|
-
exports.validateAMMWithdraw = exports.AMMWithdrawFlags = void 0;
|
75882
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75883
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75884
|
-
var AMMWithdrawFlags;
|
75885
|
-
(function (AMMWithdrawFlags) {
|
75886
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfLPToken"] = 65536] = "tfLPToken";
|
75887
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfWithdrawAll"] = 131072] = "tfWithdrawAll";
|
75888
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetWithdrawAll"] = 262144] = "tfOneAssetWithdrawAll";
|
75889
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfSingleAsset"] = 524288] = "tfSingleAsset";
|
75890
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfTwoAsset"] = 1048576] = "tfTwoAsset";
|
75891
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfOneAssetLPToken"] = 2097152] = "tfOneAssetLPToken";
|
75892
|
-
AMMWithdrawFlags[AMMWithdrawFlags["tfLimitLPToken"] = 4194304] = "tfLimitLPToken";
|
75893
|
-
})(AMMWithdrawFlags = exports.AMMWithdrawFlags || (exports.AMMWithdrawFlags = {}));
|
75894
|
-
function validateAMMWithdraw(tx) {
|
75895
|
-
(0, common_1.validateBaseTransaction)(tx);
|
75896
|
-
if (tx.Asset == null) {
|
75897
|
-
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset');
|
75898
|
-
}
|
75899
|
-
if (!(0, common_1.isCurrency)(tx.Asset)) {
|
75900
|
-
throw new errors_1.ValidationError('AMMWithdraw: Asset must be an Issue');
|
75901
|
-
}
|
75902
|
-
if (tx.Asset2 == null) {
|
75903
|
-
throw new errors_1.ValidationError('AMMWithdraw: missing field Asset2');
|
75904
|
-
}
|
75905
|
-
if (!(0, common_1.isCurrency)(tx.Asset2)) {
|
75906
|
-
throw new errors_1.ValidationError('AMMWithdraw: Asset2 must be an Issue');
|
75907
|
-
}
|
75908
|
-
if (tx.Amount2 != null && tx.Amount == null) {
|
75909
|
-
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with Amount2');
|
75910
|
-
}
|
75911
|
-
else if (tx.EPrice != null && tx.Amount == null) {
|
75912
|
-
throw new errors_1.ValidationError('AMMWithdraw: must set Amount with EPrice');
|
75913
|
-
}
|
75914
|
-
if (tx.LPTokenIn != null && !(0, common_1.isIssuedCurrency)(tx.LPTokenIn)) {
|
75915
|
-
throw new errors_1.ValidationError('AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount');
|
75916
|
-
}
|
75917
|
-
if (tx.Amount != null && !(0, common_1.isAmount)(tx.Amount)) {
|
75918
|
-
throw new errors_1.ValidationError('AMMWithdraw: Amount must be an Amount');
|
75919
|
-
}
|
75920
|
-
if (tx.Amount2 != null && !(0, common_1.isAmount)(tx.Amount2)) {
|
75921
|
-
throw new errors_1.ValidationError('AMMWithdraw: Amount2 must be an Amount');
|
75922
|
-
}
|
75923
|
-
if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
|
75924
|
-
throw new errors_1.ValidationError('AMMWithdraw: EPrice must be an Amount');
|
75925
|
-
}
|
75926
|
-
}
|
75927
|
-
exports.validateAMMWithdraw = validateAMMWithdraw;
|
75928
|
-
|
75929
|
-
|
75930
|
-
/***/ }),
|
75931
|
-
|
75932
|
-
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
75933
|
-
/*!************************************************************!*\
|
75934
|
-
!*** ./dist/npm/models/transactions/NFTokenAcceptOffer.js ***!
|
75935
|
-
\************************************************************/
|
75936
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75937
|
-
|
75938
|
-
"use strict";
|
75939
|
-
|
75940
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75941
|
-
exports.validateNFTokenAcceptOffer = void 0;
|
75942
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75943
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75944
|
-
function validateNFTokenBrokerFee(tx) {
|
75945
|
-
const value = (0, common_1.parseAmountValue)(tx.NFTokenBrokerFee);
|
75946
|
-
if (Number.isNaN(value)) {
|
75947
|
-
throw new errors_1.ValidationError('NFTokenAcceptOffer: invalid NFTokenBrokerFee');
|
75948
|
-
}
|
75949
|
-
if (value <= 0) {
|
75950
|
-
throw new errors_1.ValidationError('NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee');
|
75951
|
-
}
|
75952
|
-
if (tx.NFTokenSellOffer == null || tx.NFTokenBuyOffer == null) {
|
75953
|
-
throw new errors_1.ValidationError('NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode');
|
75954
|
-
}
|
75955
|
-
}
|
75956
|
-
function validateNFTokenAcceptOffer(tx) {
|
75957
|
-
(0, common_1.validateBaseTransaction)(tx);
|
75958
|
-
if (tx.NFTokenBrokerFee != null) {
|
75959
|
-
validateNFTokenBrokerFee(tx);
|
75960
|
-
}
|
75961
|
-
if (tx.NFTokenSellOffer == null && tx.NFTokenBuyOffer == null) {
|
75962
|
-
throw new errors_1.ValidationError('NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer');
|
75963
|
-
}
|
75964
|
-
}
|
75965
|
-
exports.validateNFTokenAcceptOffer = validateNFTokenAcceptOffer;
|
75966
|
-
|
75967
|
-
|
75968
|
-
/***/ }),
|
75969
|
-
|
75970
|
-
/***/ "./dist/npm/models/transactions/NFTokenBurn.js":
|
75971
|
-
/*!*****************************************************!*\
|
75972
|
-
!*** ./dist/npm/models/transactions/NFTokenBurn.js ***!
|
75973
|
-
\*****************************************************/
|
75974
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75975
|
-
|
75976
|
-
"use strict";
|
75977
|
-
|
75978
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
75979
|
-
exports.validateNFTokenBurn = void 0;
|
75980
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
75981
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
75982
|
-
function validateNFTokenBurn(tx) {
|
75983
|
-
(0, common_1.validateBaseTransaction)(tx);
|
75984
|
-
if (tx.NFTokenID == null) {
|
75985
|
-
throw new errors_1.ValidationError('NFTokenBurn: missing field NFTokenID');
|
75986
|
-
}
|
75987
|
-
}
|
75988
|
-
exports.validateNFTokenBurn = validateNFTokenBurn;
|
75989
|
-
|
75990
|
-
|
75991
|
-
/***/ }),
|
75992
|
-
|
75993
|
-
/***/ "./dist/npm/models/transactions/NFTokenCancelOffer.js":
|
75994
|
-
/*!************************************************************!*\
|
75995
|
-
!*** ./dist/npm/models/transactions/NFTokenCancelOffer.js ***!
|
75996
|
-
\************************************************************/
|
75997
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
75998
|
-
|
75999
|
-
"use strict";
|
76000
|
-
|
76001
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76002
|
-
exports.validateNFTokenCancelOffer = void 0;
|
76003
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76004
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76005
|
-
function validateNFTokenCancelOffer(tx) {
|
76006
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76007
|
-
if (!Array.isArray(tx.NFTokenOffers)) {
|
76008
|
-
throw new errors_1.ValidationError('NFTokenCancelOffer: missing field NFTokenOffers');
|
76009
|
-
}
|
76010
|
-
if (tx.NFTokenOffers.length < 1) {
|
76011
|
-
throw new errors_1.ValidationError('NFTokenCancelOffer: empty field NFTokenOffers');
|
76012
|
-
}
|
76013
|
-
}
|
76014
|
-
exports.validateNFTokenCancelOffer = validateNFTokenCancelOffer;
|
76015
|
-
|
76016
|
-
|
76017
|
-
/***/ }),
|
76018
|
-
|
76019
|
-
/***/ "./dist/npm/models/transactions/NFTokenCreateOffer.js":
|
76020
|
-
/*!************************************************************!*\
|
76021
|
-
!*** ./dist/npm/models/transactions/NFTokenCreateOffer.js ***!
|
76022
|
-
\************************************************************/
|
76023
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76024
|
-
|
76025
|
-
"use strict";
|
76026
|
-
|
76027
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76028
|
-
exports.validateNFTokenCreateOffer = exports.NFTokenCreateOfferFlags = void 0;
|
76029
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76030
|
-
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
75648
|
+
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
76031
75649
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76032
75650
|
var NFTokenCreateOfferFlags;
|
76033
75651
|
(function (NFTokenCreateOfferFlags) {
|
@@ -76111,419 +75729,6 @@ function validateNFTokenMint(tx) {
|
|
76111
75729
|
exports.validateNFTokenMint = validateNFTokenMint;
|
76112
75730
|
|
76113
75731
|
|
76114
|
-
/***/ }),
|
76115
|
-
|
76116
|
-
/***/ "./dist/npm/models/transactions/XChainAccountCreateCommit.js":
|
76117
|
-
/*!*******************************************************************!*\
|
76118
|
-
!*** ./dist/npm/models/transactions/XChainAccountCreateCommit.js ***!
|
76119
|
-
\*******************************************************************/
|
76120
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76121
|
-
|
76122
|
-
"use strict";
|
76123
|
-
|
76124
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76125
|
-
exports.validateXChainAccountCreateCommit = void 0;
|
76126
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76127
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76128
|
-
function validateXChainAccountCreateCommit(tx) {
|
76129
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76130
|
-
if (tx.XChainBridge == null) {
|
76131
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field XChainBridge');
|
76132
|
-
}
|
76133
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76134
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field XChainBridge');
|
76135
|
-
}
|
76136
|
-
if (tx.SignatureReward == null) {
|
76137
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field SignatureReward');
|
76138
|
-
}
|
76139
|
-
if (typeof tx.SignatureReward !== 'number' &&
|
76140
|
-
typeof tx.SignatureReward !== 'string') {
|
76141
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field SignatureReward');
|
76142
|
-
}
|
76143
|
-
if (tx.Destination == null) {
|
76144
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Destination');
|
76145
|
-
}
|
76146
|
-
if (typeof tx.Destination !== 'string') {
|
76147
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Destination');
|
76148
|
-
}
|
76149
|
-
if (tx.Amount == null) {
|
76150
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Amount');
|
76151
|
-
}
|
76152
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76153
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Amount');
|
76154
|
-
}
|
76155
|
-
}
|
76156
|
-
exports.validateXChainAccountCreateCommit = validateXChainAccountCreateCommit;
|
76157
|
-
|
76158
|
-
|
76159
|
-
/***/ }),
|
76160
|
-
|
76161
|
-
/***/ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js":
|
76162
|
-
/*!***************************************************************************!*\
|
76163
|
-
!*** ./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js ***!
|
76164
|
-
\***************************************************************************/
|
76165
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76166
|
-
|
76167
|
-
"use strict";
|
76168
|
-
|
76169
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76170
|
-
exports.validateXChainAddAccountCreateAttestation = void 0;
|
76171
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76172
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76173
|
-
function validateXChainAddAccountCreateAttestation(tx) {
|
76174
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76175
|
-
if (tx.Amount == null) {
|
76176
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Amount');
|
76177
|
-
}
|
76178
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76179
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Amount');
|
76180
|
-
}
|
76181
|
-
if (tx.AttestationRewardAccount == null) {
|
76182
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationRewardAccount');
|
76183
|
-
}
|
76184
|
-
if (typeof tx.AttestationRewardAccount !== 'string') {
|
76185
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationRewardAccount');
|
76186
|
-
}
|
76187
|
-
if (tx.AttestationSignerAccount == null) {
|
76188
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationSignerAccount');
|
76189
|
-
}
|
76190
|
-
if (typeof tx.AttestationSignerAccount !== 'string') {
|
76191
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationSignerAccount');
|
76192
|
-
}
|
76193
|
-
if (tx.Destination == null) {
|
76194
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Destination');
|
76195
|
-
}
|
76196
|
-
if (typeof tx.Destination !== 'string') {
|
76197
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Destination');
|
76198
|
-
}
|
76199
|
-
if (tx.OtherChainSource == null) {
|
76200
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field OtherChainSource');
|
76201
|
-
}
|
76202
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
76203
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field OtherChainSource');
|
76204
|
-
}
|
76205
|
-
if (tx.PublicKey == null) {
|
76206
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field PublicKey');
|
76207
|
-
}
|
76208
|
-
if (typeof tx.PublicKey !== 'string') {
|
76209
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field PublicKey');
|
76210
|
-
}
|
76211
|
-
if (tx.Signature == null) {
|
76212
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Signature');
|
76213
|
-
}
|
76214
|
-
if (typeof tx.Signature !== 'string') {
|
76215
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Signature');
|
76216
|
-
}
|
76217
|
-
if (tx.SignatureReward == null) {
|
76218
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field SignatureReward');
|
76219
|
-
}
|
76220
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
76221
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field SignatureReward');
|
76222
|
-
}
|
76223
|
-
if (tx.WasLockingChainSend == null) {
|
76224
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field WasLockingChainSend');
|
76225
|
-
}
|
76226
|
-
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
76227
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field WasLockingChainSend');
|
76228
|
-
}
|
76229
|
-
if (tx.XChainAccountCreateCount == null) {
|
76230
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainAccountCreateCount');
|
76231
|
-
}
|
76232
|
-
if (typeof tx.XChainAccountCreateCount !== 'string' &&
|
76233
|
-
typeof tx.XChainAccountCreateCount !== 'number') {
|
76234
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainAccountCreateCount');
|
76235
|
-
}
|
76236
|
-
if (tx.XChainBridge == null) {
|
76237
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainBridge');
|
76238
|
-
}
|
76239
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76240
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainBridge');
|
76241
|
-
}
|
76242
|
-
}
|
76243
|
-
exports.validateXChainAddAccountCreateAttestation = validateXChainAddAccountCreateAttestation;
|
76244
|
-
|
76245
|
-
|
76246
|
-
/***/ }),
|
76247
|
-
|
76248
|
-
/***/ "./dist/npm/models/transactions/XChainAddClaimAttestation.js":
|
76249
|
-
/*!*******************************************************************!*\
|
76250
|
-
!*** ./dist/npm/models/transactions/XChainAddClaimAttestation.js ***!
|
76251
|
-
\*******************************************************************/
|
76252
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76253
|
-
|
76254
|
-
"use strict";
|
76255
|
-
|
76256
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76257
|
-
exports.validateXChainAddClaimAttestation = void 0;
|
76258
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76259
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76260
|
-
function validateXChainAddClaimAttestation(tx) {
|
76261
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76262
|
-
if (tx.Amount == null) {
|
76263
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Amount');
|
76264
|
-
}
|
76265
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76266
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Amount');
|
76267
|
-
}
|
76268
|
-
if (tx.AttestationRewardAccount == null) {
|
76269
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationRewardAccount');
|
76270
|
-
}
|
76271
|
-
if (typeof tx.AttestationRewardAccount !== 'string') {
|
76272
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationRewardAccount');
|
76273
|
-
}
|
76274
|
-
if (tx.AttestationSignerAccount == null) {
|
76275
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationSignerAccount');
|
76276
|
-
}
|
76277
|
-
if (typeof tx.AttestationSignerAccount !== 'string') {
|
76278
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationSignerAccount');
|
76279
|
-
}
|
76280
|
-
if (tx.Destination !== undefined && typeof tx.Destination !== 'string') {
|
76281
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Destination');
|
76282
|
-
}
|
76283
|
-
if (tx.OtherChainSource == null) {
|
76284
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field OtherChainSource');
|
76285
|
-
}
|
76286
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
76287
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field OtherChainSource');
|
76288
|
-
}
|
76289
|
-
if (tx.PublicKey == null) {
|
76290
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field PublicKey');
|
76291
|
-
}
|
76292
|
-
if (typeof tx.PublicKey !== 'string') {
|
76293
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field PublicKey');
|
76294
|
-
}
|
76295
|
-
if (tx.Signature == null) {
|
76296
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Signature');
|
76297
|
-
}
|
76298
|
-
if (typeof tx.Signature !== 'string') {
|
76299
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Signature');
|
76300
|
-
}
|
76301
|
-
if (tx.WasLockingChainSend == null) {
|
76302
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field WasLockingChainSend');
|
76303
|
-
}
|
76304
|
-
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
76305
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field WasLockingChainSend');
|
76306
|
-
}
|
76307
|
-
if (tx.XChainBridge == null) {
|
76308
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainBridge');
|
76309
|
-
}
|
76310
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76311
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainBridge');
|
76312
|
-
}
|
76313
|
-
if (tx.XChainClaimID == null) {
|
76314
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainClaimID');
|
76315
|
-
}
|
76316
|
-
if (typeof tx.XChainClaimID !== 'string' &&
|
76317
|
-
typeof tx.XChainClaimID !== 'number') {
|
76318
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainClaimID');
|
76319
|
-
}
|
76320
|
-
}
|
76321
|
-
exports.validateXChainAddClaimAttestation = validateXChainAddClaimAttestation;
|
76322
|
-
|
76323
|
-
|
76324
|
-
/***/ }),
|
76325
|
-
|
76326
|
-
/***/ "./dist/npm/models/transactions/XChainClaim.js":
|
76327
|
-
/*!*****************************************************!*\
|
76328
|
-
!*** ./dist/npm/models/transactions/XChainClaim.js ***!
|
76329
|
-
\*****************************************************/
|
76330
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76331
|
-
|
76332
|
-
"use strict";
|
76333
|
-
|
76334
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76335
|
-
exports.validateXChainClaim = void 0;
|
76336
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76337
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76338
|
-
function validateXChainClaim(tx) {
|
76339
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76340
|
-
if (tx.XChainBridge == null) {
|
76341
|
-
throw new errors_1.ValidationError('XChainClaim: missing field XChainBridge');
|
76342
|
-
}
|
76343
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76344
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field XChainBridge');
|
76345
|
-
}
|
76346
|
-
if (tx.XChainClaimID == null) {
|
76347
|
-
throw new errors_1.ValidationError('XChainClaim: missing field XChainClaimID');
|
76348
|
-
}
|
76349
|
-
if (typeof tx.XChainClaimID !== 'number' &&
|
76350
|
-
typeof tx.XChainClaimID !== 'string') {
|
76351
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field XChainClaimID');
|
76352
|
-
}
|
76353
|
-
if (tx.Destination == null) {
|
76354
|
-
throw new errors_1.ValidationError('XChainClaim: missing field Destination');
|
76355
|
-
}
|
76356
|
-
if (typeof tx.Destination !== 'string') {
|
76357
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field Destination');
|
76358
|
-
}
|
76359
|
-
if (tx.DestinationTag !== undefined &&
|
76360
|
-
typeof tx.DestinationTag !== 'number') {
|
76361
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field DestinationTag');
|
76362
|
-
}
|
76363
|
-
if (tx.Amount == null) {
|
76364
|
-
throw new errors_1.ValidationError('XChainClaim: missing field Amount');
|
76365
|
-
}
|
76366
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76367
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field Amount');
|
76368
|
-
}
|
76369
|
-
}
|
76370
|
-
exports.validateXChainClaim = validateXChainClaim;
|
76371
|
-
|
76372
|
-
|
76373
|
-
/***/ }),
|
76374
|
-
|
76375
|
-
/***/ "./dist/npm/models/transactions/XChainCommit.js":
|
76376
|
-
/*!******************************************************!*\
|
76377
|
-
!*** ./dist/npm/models/transactions/XChainCommit.js ***!
|
76378
|
-
\******************************************************/
|
76379
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76380
|
-
|
76381
|
-
"use strict";
|
76382
|
-
|
76383
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76384
|
-
exports.validateXChainCommit = void 0;
|
76385
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76386
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76387
|
-
function validateXChainCommit(tx) {
|
76388
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76389
|
-
if (tx.XChainBridge == null) {
|
76390
|
-
throw new errors_1.ValidationError('XChainCommit: missing field XChainBridge');
|
76391
|
-
}
|
76392
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76393
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field XChainBridge');
|
76394
|
-
}
|
76395
|
-
if (tx.XChainClaimID == null) {
|
76396
|
-
throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
|
76397
|
-
}
|
76398
|
-
if (typeof tx.XChainClaimID !== 'number' &&
|
76399
|
-
typeof tx.XChainClaimID !== 'string') {
|
76400
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field XChainClaimID');
|
76401
|
-
}
|
76402
|
-
if (tx.OtherChainDestination !== undefined &&
|
76403
|
-
typeof tx.OtherChainDestination !== 'string') {
|
76404
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field OtherChainDestination');
|
76405
|
-
}
|
76406
|
-
if (tx.Amount == null) {
|
76407
|
-
throw new errors_1.ValidationError('XChainCommit: missing field Amount');
|
76408
|
-
}
|
76409
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
76410
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field Amount');
|
76411
|
-
}
|
76412
|
-
}
|
76413
|
-
exports.validateXChainCommit = validateXChainCommit;
|
76414
|
-
|
76415
|
-
|
76416
|
-
/***/ }),
|
76417
|
-
|
76418
|
-
/***/ "./dist/npm/models/transactions/XChainCreateBridge.js":
|
76419
|
-
/*!************************************************************!*\
|
76420
|
-
!*** ./dist/npm/models/transactions/XChainCreateBridge.js ***!
|
76421
|
-
\************************************************************/
|
76422
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76423
|
-
|
76424
|
-
"use strict";
|
76425
|
-
|
76426
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76427
|
-
exports.validateXChainCreateBridge = void 0;
|
76428
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76429
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76430
|
-
function validateXChainCreateBridge(tx) {
|
76431
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76432
|
-
if (tx.XChainBridge == null) {
|
76433
|
-
throw new errors_1.ValidationError('XChainCreateBridge: missing field XChainBridge');
|
76434
|
-
}
|
76435
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76436
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field XChainBridge');
|
76437
|
-
}
|
76438
|
-
if (tx.SignatureReward == null) {
|
76439
|
-
throw new errors_1.ValidationError('XChainCreateBridge: missing field SignatureReward');
|
76440
|
-
}
|
76441
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
76442
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field SignatureReward');
|
76443
|
-
}
|
76444
|
-
if (tx.MinAccountCreateAmount !== undefined &&
|
76445
|
-
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
76446
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field MinAccountCreateAmount');
|
76447
|
-
}
|
76448
|
-
}
|
76449
|
-
exports.validateXChainCreateBridge = validateXChainCreateBridge;
|
76450
|
-
|
76451
|
-
|
76452
|
-
/***/ }),
|
76453
|
-
|
76454
|
-
/***/ "./dist/npm/models/transactions/XChainCreateClaimID.js":
|
76455
|
-
/*!*************************************************************!*\
|
76456
|
-
!*** ./dist/npm/models/transactions/XChainCreateClaimID.js ***!
|
76457
|
-
\*************************************************************/
|
76458
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76459
|
-
|
76460
|
-
"use strict";
|
76461
|
-
|
76462
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76463
|
-
exports.validateXChainCreateClaimID = void 0;
|
76464
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76465
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76466
|
-
function validateXChainCreateClaimID(tx) {
|
76467
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76468
|
-
if (tx.XChainBridge == null) {
|
76469
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: missing field XChainBridge');
|
76470
|
-
}
|
76471
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76472
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field XChainBridge');
|
76473
|
-
}
|
76474
|
-
if (tx.SignatureReward == null) {
|
76475
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
|
76476
|
-
}
|
76477
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
76478
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field SignatureReward');
|
76479
|
-
}
|
76480
|
-
if (tx.OtherChainSource == null) {
|
76481
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
|
76482
|
-
}
|
76483
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
76484
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field OtherChainSource');
|
76485
|
-
}
|
76486
|
-
}
|
76487
|
-
exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
|
76488
|
-
|
76489
|
-
|
76490
|
-
/***/ }),
|
76491
|
-
|
76492
|
-
/***/ "./dist/npm/models/transactions/XChainModifyBridge.js":
|
76493
|
-
/*!************************************************************!*\
|
76494
|
-
!*** ./dist/npm/models/transactions/XChainModifyBridge.js ***!
|
76495
|
-
\************************************************************/
|
76496
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
76497
|
-
|
76498
|
-
"use strict";
|
76499
|
-
|
76500
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76501
|
-
exports.validateXChainModifyBridge = exports.XChainModifyBridgeFlags = void 0;
|
76502
|
-
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76503
|
-
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76504
|
-
var XChainModifyBridgeFlags;
|
76505
|
-
(function (XChainModifyBridgeFlags) {
|
76506
|
-
XChainModifyBridgeFlags[XChainModifyBridgeFlags["tfClearAccountCreateAmount"] = 65536] = "tfClearAccountCreateAmount";
|
76507
|
-
})(XChainModifyBridgeFlags = exports.XChainModifyBridgeFlags || (exports.XChainModifyBridgeFlags = {}));
|
76508
|
-
function validateXChainModifyBridge(tx) {
|
76509
|
-
(0, common_1.validateBaseTransaction)(tx);
|
76510
|
-
if (tx.XChainBridge == null) {
|
76511
|
-
throw new errors_1.ValidationError('XChainModifyBridge: missing field XChainBridge');
|
76512
|
-
}
|
76513
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
76514
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field XChainBridge');
|
76515
|
-
}
|
76516
|
-
if (tx.SignatureReward !== undefined && !(0, common_1.isAmount)(tx.SignatureReward)) {
|
76517
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field SignatureReward');
|
76518
|
-
}
|
76519
|
-
if (tx.MinAccountCreateAmount !== undefined &&
|
76520
|
-
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
76521
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field MinAccountCreateAmount');
|
76522
|
-
}
|
76523
|
-
}
|
76524
|
-
exports.validateXChainModifyBridge = validateXChainModifyBridge;
|
76525
|
-
|
76526
|
-
|
76527
75732
|
/***/ }),
|
76528
75733
|
|
76529
75734
|
/***/ "./dist/npm/models/transactions/accountDelete.js":
|
@@ -76758,7 +75963,7 @@ exports.validateCheckCreate = validateCheckCreate;
|
|
76758
75963
|
"use strict";
|
76759
75964
|
|
76760
75965
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76761
|
-
exports.parseAmountValue = exports.validateBaseTransaction = exports.
|
75966
|
+
exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;
|
76762
75967
|
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
76763
75968
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
76764
75969
|
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/index.js");
|
@@ -76791,22 +75996,10 @@ function isSigner(obj) {
|
|
76791
75996
|
typeof signer.TxnSignature === 'string' &&
|
76792
75997
|
typeof signer.SigningPubKey === 'string');
|
76793
75998
|
}
|
76794
|
-
const XRP_CURRENCY_SIZE = 1;
|
76795
|
-
const ISSUE_SIZE = 2;
|
76796
75999
|
const ISSUED_CURRENCY_SIZE = 3;
|
76797
|
-
const XCHAIN_BRIDGE_SIZE = 4;
|
76798
76000
|
function isRecord(value) {
|
76799
76001
|
return value !== null && typeof value === 'object';
|
76800
76002
|
}
|
76801
|
-
function isCurrency(input) {
|
76802
|
-
return (isRecord(input) &&
|
76803
|
-
((Object.keys(input).length === ISSUE_SIZE &&
|
76804
|
-
typeof input.issuer === 'string' &&
|
76805
|
-
typeof input.currency === 'string') ||
|
76806
|
-
(Object.keys(input).length === XRP_CURRENCY_SIZE &&
|
76807
|
-
input.currency === 'XRP')));
|
76808
|
-
}
|
76809
|
-
exports.isCurrency = isCurrency;
|
76810
76003
|
function isIssuedCurrency(input) {
|
76811
76004
|
return (isRecord(input) &&
|
76812
76005
|
Object.keys(input).length === ISSUED_CURRENCY_SIZE &&
|
@@ -76819,15 +76012,6 @@ function isAmount(amount) {
|
|
76819
76012
|
return typeof amount === 'string' || isIssuedCurrency(amount);
|
76820
76013
|
}
|
76821
76014
|
exports.isAmount = isAmount;
|
76822
|
-
function isXChainBridge(input) {
|
76823
|
-
return (isRecord(input) &&
|
76824
|
-
Object.keys(input).length === XCHAIN_BRIDGE_SIZE &&
|
76825
|
-
typeof input.LockingChainDoor === 'string' &&
|
76826
|
-
isCurrency(input.LockingChainIssue) &&
|
76827
|
-
typeof input.IssuingChainDoor === 'string' &&
|
76828
|
-
isCurrency(input.IssuingChainIssue));
|
76829
|
-
}
|
76830
|
-
exports.isXChainBridge = isXChainBridge;
|
76831
76015
|
function validateBaseTransaction(common) {
|
76832
76016
|
if (common.Account === undefined) {
|
76833
76017
|
throw new errors_1.ValidationError('BaseTransaction: missing field Account');
|
@@ -76882,6 +76066,9 @@ function validateBaseTransaction(common) {
|
|
76882
76066
|
typeof common.TxnSignature !== 'string') {
|
76883
76067
|
throw new errors_1.ValidationError('BaseTransaction: invalid TxnSignature');
|
76884
76068
|
}
|
76069
|
+
if (common.NetworkID !== undefined && typeof common.NetworkID !== 'number') {
|
76070
|
+
throw new errors_1.ValidationError('BaseTransaction: invalid NetworkID');
|
76071
|
+
}
|
76885
76072
|
}
|
76886
76073
|
exports.validateBaseTransaction = validateBaseTransaction;
|
76887
76074
|
function parseAmountValue(amount) {
|
@@ -76938,6 +76125,25 @@ function validateDepositPreauth(tx) {
|
|
76938
76125
|
exports.validateDepositPreauth = validateDepositPreauth;
|
76939
76126
|
|
76940
76127
|
|
76128
|
+
/***/ }),
|
76129
|
+
|
76130
|
+
/***/ "./dist/npm/models/transactions/enableAmendment.js":
|
76131
|
+
/*!*********************************************************!*\
|
76132
|
+
!*** ./dist/npm/models/transactions/enableAmendment.js ***!
|
76133
|
+
\*********************************************************/
|
76134
|
+
/***/ ((__unused_webpack_module, exports) => {
|
76135
|
+
|
76136
|
+
"use strict";
|
76137
|
+
|
76138
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
76139
|
+
exports.EnableAmendmentFlags = void 0;
|
76140
|
+
var EnableAmendmentFlags;
|
76141
|
+
(function (EnableAmendmentFlags) {
|
76142
|
+
EnableAmendmentFlags[EnableAmendmentFlags["tfGotMajority"] = 65536] = "tfGotMajority";
|
76143
|
+
EnableAmendmentFlags[EnableAmendmentFlags["tfLostMajority"] = 131072] = "tfLostMajority";
|
76144
|
+
})(EnableAmendmentFlags = exports.EnableAmendmentFlags || (exports.EnableAmendmentFlags = {}));
|
76145
|
+
|
76146
|
+
|
76941
76147
|
/***/ }),
|
76942
76148
|
|
76943
76149
|
/***/ "./dist/npm/models/transactions/escrowCancel.js":
|
@@ -76989,8 +76195,8 @@ function validateEscrowCreate(tx) {
|
|
76989
76195
|
if (tx.Amount === undefined) {
|
76990
76196
|
throw new errors_1.ValidationError('EscrowCreate: missing field Amount');
|
76991
76197
|
}
|
76992
|
-
if (typeof tx.Amount !== 'string'
|
76993
|
-
throw new errors_1.ValidationError('EscrowCreate: Amount must be
|
76198
|
+
if (typeof tx.Amount !== 'string') {
|
76199
|
+
throw new errors_1.ValidationError('EscrowCreate: Amount must be a string');
|
76994
76200
|
}
|
76995
76201
|
if (tx.Destination === undefined) {
|
76996
76202
|
throw new errors_1.ValidationError('EscrowCreate: missing field Destination');
|
@@ -77065,21 +76271,34 @@ exports.validateEscrowFinish = validateEscrowFinish;
|
|
77065
76271
|
/*!***********************************************!*\
|
77066
76272
|
!*** ./dist/npm/models/transactions/index.js ***!
|
77067
76273
|
\***********************************************/
|
77068
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
76274
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
77069
76275
|
|
77070
76276
|
"use strict";
|
77071
76277
|
|
76278
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
76279
|
+
if (k2 === undefined) k2 = k;
|
76280
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
76281
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
76282
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
76283
|
+
}
|
76284
|
+
Object.defineProperty(o, k2, desc);
|
76285
|
+
}) : (function(o, m, k, k2) {
|
76286
|
+
if (k2 === undefined) k2 = k;
|
76287
|
+
o[k2] = m[k];
|
76288
|
+
}));
|
76289
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
76290
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
76291
|
+
};
|
77072
76292
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77073
|
-
exports.
|
76293
|
+
exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.EnableAmendmentFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
77074
76294
|
var transaction_1 = __webpack_require__(/*! ./transaction */ "./dist/npm/models/transactions/transaction.js");
|
77075
76295
|
Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return transaction_1.validate; } }));
|
76296
|
+
__exportStar(__webpack_require__(/*! ./metadata */ "./dist/npm/models/transactions/metadata.js"), exports);
|
77076
76297
|
var accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
77077
76298
|
Object.defineProperty(exports, "AccountSetAsfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } }));
|
77078
76299
|
Object.defineProperty(exports, "AccountSetTfFlags", ({ enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } }));
|
77079
|
-
var
|
77080
|
-
Object.defineProperty(exports, "
|
77081
|
-
var AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77082
|
-
Object.defineProperty(exports, "AMMWithdrawFlags", ({ enumerable: true, get: function () { return AMMWithdraw_1.AMMWithdrawFlags; } }));
|
76300
|
+
var enableAmendment_1 = __webpack_require__(/*! ./enableAmendment */ "./dist/npm/models/transactions/enableAmendment.js");
|
76301
|
+
Object.defineProperty(exports, "EnableAmendmentFlags", ({ enumerable: true, get: function () { return enableAmendment_1.EnableAmendmentFlags; } }));
|
77083
76302
|
var NFTokenCreateOffer_1 = __webpack_require__(/*! ./NFTokenCreateOffer */ "./dist/npm/models/transactions/NFTokenCreateOffer.js");
|
77084
76303
|
Object.defineProperty(exports, "NFTokenCreateOfferFlags", ({ enumerable: true, get: function () { return NFTokenCreateOffer_1.NFTokenCreateOfferFlags; } }));
|
77085
76304
|
var NFTokenMint_1 = __webpack_require__(/*! ./NFTokenMint */ "./dist/npm/models/transactions/NFTokenMint.js");
|
@@ -77092,8 +76311,6 @@ var paymentChannelClaim_1 = __webpack_require__(/*! ./paymentChannelClaim */ "./
|
|
77092
76311
|
Object.defineProperty(exports, "PaymentChannelClaimFlags", ({ enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } }));
|
77093
76312
|
var trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
77094
76313
|
Object.defineProperty(exports, "TrustSetFlags", ({ enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } }));
|
77095
|
-
var XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77096
|
-
Object.defineProperty(exports, "XChainModifyBridgeFlags", ({ enumerable: true, get: function () { return XChainModifyBridge_1.XChainModifyBridgeFlags; } }));
|
77097
76314
|
|
77098
76315
|
|
77099
76316
|
/***/ }),
|
@@ -77334,11 +76551,11 @@ function validatePaymentChannelClaim(tx) {
|
|
77334
76551
|
if (typeof tx.Channel !== 'string') {
|
77335
76552
|
throw new errors_1.ValidationError('PaymentChannelClaim: Channel must be a string');
|
77336
76553
|
}
|
77337
|
-
if (tx.Balance !== undefined &&
|
77338
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be
|
76554
|
+
if (tx.Balance !== undefined && typeof tx.Balance !== 'string') {
|
76555
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be a string');
|
77339
76556
|
}
|
77340
|
-
if (tx.Amount !== undefined &&
|
77341
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be
|
76557
|
+
if (tx.Amount !== undefined && typeof tx.Amount !== 'string') {
|
76558
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be a string');
|
77342
76559
|
}
|
77343
76560
|
if (tx.Signature !== undefined && typeof tx.Signature !== 'string') {
|
77344
76561
|
throw new errors_1.ValidationError('PaymentChannelClaim: Signature must be a string');
|
@@ -77369,8 +76586,8 @@ function validatePaymentChannelCreate(tx) {
|
|
77369
76586
|
if (tx.Amount === undefined) {
|
77370
76587
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Amount');
|
77371
76588
|
}
|
77372
|
-
if (typeof tx.Amount !== 'string'
|
77373
|
-
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be
|
76589
|
+
if (typeof tx.Amount !== 'string') {
|
76590
|
+
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be a string');
|
77374
76591
|
}
|
77375
76592
|
if (tx.Destination === undefined) {
|
77376
76593
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Destination');
|
@@ -77426,8 +76643,8 @@ function validatePaymentChannelFund(tx) {
|
|
77426
76643
|
if (tx.Amount === undefined) {
|
77427
76644
|
throw new errors_1.ValidationError('PaymentChannelFund: missing Amount');
|
77428
76645
|
}
|
77429
|
-
if (typeof tx.Amount !== 'string'
|
77430
|
-
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be
|
76646
|
+
if (typeof tx.Amount !== 'string') {
|
76647
|
+
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be a string');
|
77431
76648
|
}
|
77432
76649
|
if (tx.Expiration !== undefined && typeof tx.Expiration !== 'number') {
|
77433
76650
|
throw new errors_1.ValidationError('PaymentChannelFund: Expiration must be a number');
|
@@ -77483,6 +76700,9 @@ function validateSignerListSet(tx) {
|
|
77483
76700
|
if (typeof tx.SignerQuorum !== 'number') {
|
77484
76701
|
throw new errors_1.ValidationError('SignerListSet: invalid SignerQuorum');
|
77485
76702
|
}
|
76703
|
+
if (tx.SignerQuorum === 0) {
|
76704
|
+
return;
|
76705
|
+
}
|
77486
76706
|
if (tx.SignerEntries === undefined) {
|
77487
76707
|
throw new errors_1.ValidationError('SignerListSet: missing field SignerEntries');
|
77488
76708
|
}
|
@@ -77557,11 +76777,6 @@ const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/models/utils/ind
|
|
77557
76777
|
const flags_1 = __webpack_require__(/*! ../utils/flags */ "./dist/npm/models/utils/flags.js");
|
77558
76778
|
const accountDelete_1 = __webpack_require__(/*! ./accountDelete */ "./dist/npm/models/transactions/accountDelete.js");
|
77559
76779
|
const accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
77560
|
-
const AMMBid_1 = __webpack_require__(/*! ./AMMBid */ "./dist/npm/models/transactions/AMMBid.js");
|
77561
|
-
const AMMCreate_1 = __webpack_require__(/*! ./AMMCreate */ "./dist/npm/models/transactions/AMMCreate.js");
|
77562
|
-
const AMMDeposit_1 = __webpack_require__(/*! ./AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
77563
|
-
const AMMVote_1 = __webpack_require__(/*! ./AMMVote */ "./dist/npm/models/transactions/AMMVote.js");
|
77564
|
-
const AMMWithdraw_1 = __webpack_require__(/*! ./AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77565
76780
|
const checkCancel_1 = __webpack_require__(/*! ./checkCancel */ "./dist/npm/models/transactions/checkCancel.js");
|
77566
76781
|
const checkCash_1 = __webpack_require__(/*! ./checkCash */ "./dist/npm/models/transactions/checkCash.js");
|
77567
76782
|
const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/models/transactions/checkCreate.js");
|
@@ -77585,14 +76800,6 @@ const setRegularKey_1 = __webpack_require__(/*! ./setRegularKey */ "./dist/npm/m
|
|
77585
76800
|
const signerListSet_1 = __webpack_require__(/*! ./signerListSet */ "./dist/npm/models/transactions/signerListSet.js");
|
77586
76801
|
const ticketCreate_1 = __webpack_require__(/*! ./ticketCreate */ "./dist/npm/models/transactions/ticketCreate.js");
|
77587
76802
|
const trustSet_1 = __webpack_require__(/*! ./trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
77588
|
-
const XChainAccountCreateCommit_1 = __webpack_require__(/*! ./XChainAccountCreateCommit */ "./dist/npm/models/transactions/XChainAccountCreateCommit.js");
|
77589
|
-
const XChainAddAccountCreateAttestation_1 = __webpack_require__(/*! ./XChainAddAccountCreateAttestation */ "./dist/npm/models/transactions/XChainAddAccountCreateAttestation.js");
|
77590
|
-
const XChainAddClaimAttestation_1 = __webpack_require__(/*! ./XChainAddClaimAttestation */ "./dist/npm/models/transactions/XChainAddClaimAttestation.js");
|
77591
|
-
const XChainClaim_1 = __webpack_require__(/*! ./XChainClaim */ "./dist/npm/models/transactions/XChainClaim.js");
|
77592
|
-
const XChainCommit_1 = __webpack_require__(/*! ./XChainCommit */ "./dist/npm/models/transactions/XChainCommit.js");
|
77593
|
-
const XChainCreateBridge_1 = __webpack_require__(/*! ./XChainCreateBridge */ "./dist/npm/models/transactions/XChainCreateBridge.js");
|
77594
|
-
const XChainCreateClaimID_1 = __webpack_require__(/*! ./XChainCreateClaimID */ "./dist/npm/models/transactions/XChainCreateClaimID.js");
|
77595
|
-
const XChainModifyBridge_1 = __webpack_require__(/*! ./XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77596
76803
|
function validate(transaction) {
|
77597
76804
|
const tx = Object.assign({}, transaction);
|
77598
76805
|
if (tx.TransactionType == null) {
|
@@ -77645,21 +76852,6 @@ function validate(transaction) {
|
|
77645
76852
|
case 'AccountSet':
|
77646
76853
|
(0, accountSet_1.validateAccountSet)(tx);
|
77647
76854
|
break;
|
77648
|
-
case 'AMMBid':
|
77649
|
-
(0, AMMBid_1.validateAMMBid)(tx);
|
77650
|
-
break;
|
77651
|
-
case 'AMMDeposit':
|
77652
|
-
(0, AMMDeposit_1.validateAMMDeposit)(tx);
|
77653
|
-
break;
|
77654
|
-
case 'AMMCreate':
|
77655
|
-
(0, AMMCreate_1.validateAMMCreate)(tx);
|
77656
|
-
break;
|
77657
|
-
case 'AMMVote':
|
77658
|
-
(0, AMMVote_1.validateAMMVote)(tx);
|
77659
|
-
break;
|
77660
|
-
case 'AMMWithdraw':
|
77661
|
-
(0, AMMWithdraw_1.validateAMMWithdraw)(tx);
|
77662
|
-
break;
|
77663
76855
|
case 'CheckCancel':
|
77664
76856
|
(0, checkCancel_1.validateCheckCancel)(tx);
|
77665
76857
|
break;
|
@@ -77726,30 +76918,6 @@ function validate(transaction) {
|
|
77726
76918
|
case 'TrustSet':
|
77727
76919
|
(0, trustSet_1.validateTrustSet)(tx);
|
77728
76920
|
break;
|
77729
|
-
case 'XChainAddAccountCreateAttestation':
|
77730
|
-
(0, XChainAddAccountCreateAttestation_1.validateXChainAddAccountCreateAttestation)(tx);
|
77731
|
-
break;
|
77732
|
-
case 'XChainAddClaimAttestation':
|
77733
|
-
(0, XChainAddClaimAttestation_1.validateXChainAddClaimAttestation)(tx);
|
77734
|
-
break;
|
77735
|
-
case 'XChainClaim':
|
77736
|
-
(0, XChainClaim_1.validateXChainClaim)(tx);
|
77737
|
-
break;
|
77738
|
-
case 'XChainCommit':
|
77739
|
-
(0, XChainCommit_1.validateXChainCommit)(tx);
|
77740
|
-
break;
|
77741
|
-
case 'XChainCreateBridge':
|
77742
|
-
(0, XChainCreateBridge_1.validateXChainCreateBridge)(tx);
|
77743
|
-
break;
|
77744
|
-
case 'XChainCreateClaimID':
|
77745
|
-
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
|
77746
|
-
break;
|
77747
|
-
case 'XChainAccountCreateCommit':
|
77748
|
-
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
77749
|
-
break;
|
77750
|
-
case 'XChainModifyBridge':
|
77751
|
-
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
|
77752
|
-
break;
|
77753
76921
|
default:
|
77754
76922
|
throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);
|
77755
76923
|
}
|
@@ -77813,13 +76981,10 @@ exports.setTransactionFlagsToNumber = exports.parseAccountRootFlags = void 0;
|
|
77813
76981
|
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77814
76982
|
const AccountRoot_1 = __webpack_require__(/*! ../ledger/AccountRoot */ "./dist/npm/models/ledger/AccountRoot.js");
|
77815
76983
|
const accountSet_1 = __webpack_require__(/*! ../transactions/accountSet */ "./dist/npm/models/transactions/accountSet.js");
|
77816
|
-
const AMMDeposit_1 = __webpack_require__(/*! ../transactions/AMMDeposit */ "./dist/npm/models/transactions/AMMDeposit.js");
|
77817
|
-
const AMMWithdraw_1 = __webpack_require__(/*! ../transactions/AMMWithdraw */ "./dist/npm/models/transactions/AMMWithdraw.js");
|
77818
76984
|
const offerCreate_1 = __webpack_require__(/*! ../transactions/offerCreate */ "./dist/npm/models/transactions/offerCreate.js");
|
77819
76985
|
const payment_1 = __webpack_require__(/*! ../transactions/payment */ "./dist/npm/models/transactions/payment.js");
|
77820
76986
|
const paymentChannelClaim_1 = __webpack_require__(/*! ../transactions/paymentChannelClaim */ "./dist/npm/models/transactions/paymentChannelClaim.js");
|
77821
76987
|
const trustSet_1 = __webpack_require__(/*! ../transactions/trustSet */ "./dist/npm/models/transactions/trustSet.js");
|
77822
|
-
const XChainModifyBridge_1 = __webpack_require__(/*! ../transactions/XChainModifyBridge */ "./dist/npm/models/transactions/XChainModifyBridge.js");
|
77823
76988
|
const _1 = __webpack_require__(/*! . */ "./dist/npm/models/utils/index.js");
|
77824
76989
|
function parseAccountRootFlags(flags) {
|
77825
76990
|
const flagsInterface = {};
|
@@ -77841,35 +77006,41 @@ function setTransactionFlagsToNumber(tx) {
|
|
77841
77006
|
}
|
77842
77007
|
switch (tx.TransactionType) {
|
77843
77008
|
case 'AccountSet':
|
77844
|
-
tx.Flags =
|
77845
|
-
return;
|
77846
|
-
case 'AMMDeposit':
|
77847
|
-
tx.Flags = convertFlagsToNumber(tx.Flags, AMMDeposit_1.AMMDepositFlags);
|
77848
|
-
return;
|
77849
|
-
case 'AMMWithdraw':
|
77850
|
-
tx.Flags = convertFlagsToNumber(tx.Flags, AMMWithdraw_1.AMMWithdrawFlags);
|
77009
|
+
tx.Flags = convertAccountSetFlagsToNumber(tx.Flags);
|
77851
77010
|
return;
|
77852
77011
|
case 'OfferCreate':
|
77853
|
-
tx.Flags =
|
77012
|
+
tx.Flags = convertOfferCreateFlagsToNumber(tx.Flags);
|
77854
77013
|
return;
|
77855
77014
|
case 'PaymentChannelClaim':
|
77856
|
-
tx.Flags =
|
77015
|
+
tx.Flags = convertPaymentChannelClaimFlagsToNumber(tx.Flags);
|
77857
77016
|
return;
|
77858
77017
|
case 'Payment':
|
77859
|
-
tx.Flags =
|
77018
|
+
tx.Flags = convertPaymentTransactionFlagsToNumber(tx.Flags);
|
77860
77019
|
return;
|
77861
77020
|
case 'TrustSet':
|
77862
|
-
tx.Flags =
|
77863
|
-
return;
|
77864
|
-
case 'XChainModifyBridge':
|
77865
|
-
tx.Flags = convertFlagsToNumber(tx.Flags, XChainModifyBridge_1.XChainModifyBridgeFlags);
|
77021
|
+
tx.Flags = convertTrustSetFlagsToNumber(tx.Flags);
|
77866
77022
|
return;
|
77867
77023
|
default:
|
77868
77024
|
tx.Flags = 0;
|
77869
77025
|
}
|
77870
77026
|
}
|
77871
77027
|
exports.setTransactionFlagsToNumber = setTransactionFlagsToNumber;
|
77872
|
-
function
|
77028
|
+
function convertAccountSetFlagsToNumber(flags) {
|
77029
|
+
return reduceFlags(flags, accountSet_1.AccountSetTfFlags);
|
77030
|
+
}
|
77031
|
+
function convertOfferCreateFlagsToNumber(flags) {
|
77032
|
+
return reduceFlags(flags, offerCreate_1.OfferCreateFlags);
|
77033
|
+
}
|
77034
|
+
function convertPaymentChannelClaimFlagsToNumber(flags) {
|
77035
|
+
return reduceFlags(flags, paymentChannelClaim_1.PaymentChannelClaimFlags);
|
77036
|
+
}
|
77037
|
+
function convertPaymentTransactionFlagsToNumber(flags) {
|
77038
|
+
return reduceFlags(flags, payment_1.PaymentFlags);
|
77039
|
+
}
|
77040
|
+
function convertTrustSetFlagsToNumber(flags) {
|
77041
|
+
return reduceFlags(flags, trustSet_1.TrustSetFlags);
|
77042
|
+
}
|
77043
|
+
function reduceFlags(flags, flagEnum) {
|
77873
77044
|
return Object.keys(flags).reduce((resultFlags, flag) => {
|
77874
77045
|
if (flagEnum[flag] == null) {
|
77875
77046
|
throw new errors_1.ValidationError(`flag ${flag} doesn't exist in flagEnum: ${JSON.stringify(flagEnum)}`);
|
@@ -77936,12 +77107,18 @@ const flags_1 = __webpack_require__(/*! ../models/utils/flags */ "./dist/npm/mod
|
|
77936
77107
|
const utils_1 = __webpack_require__(/*! ../utils */ "./dist/npm/utils/index.js");
|
77937
77108
|
const getFeeXrp_1 = __importDefault(__webpack_require__(/*! ./getFeeXrp */ "./dist/npm/sugar/getFeeXrp.js"));
|
77938
77109
|
const LEDGER_OFFSET = 20;
|
77110
|
+
const RESTRICTED_NETWORKS = 1024;
|
77111
|
+
const REQUIRED_NETWORKID_VERSION = '1.11.0';
|
77112
|
+
const HOOKS_TESTNET_ID = 21338;
|
77939
77113
|
function autofill(transaction, signersCount) {
|
77940
77114
|
return __awaiter(this, void 0, void 0, function* () {
|
77941
77115
|
const tx = Object.assign({}, transaction);
|
77942
77116
|
setValidAddresses(tx);
|
77943
77117
|
(0, flags_1.setTransactionFlagsToNumber)(tx);
|
77944
77118
|
const promises = [];
|
77119
|
+
if (tx.NetworkID == null) {
|
77120
|
+
tx.NetworkID = txNeedsNetworkID(this) ? this.networkID : undefined;
|
77121
|
+
}
|
77945
77122
|
if (tx.Sequence == null) {
|
77946
77123
|
promises.push(setNextValidSequenceNumber(this, tx));
|
77947
77124
|
}
|
@@ -77957,6 +77134,56 @@ function autofill(transaction, signersCount) {
|
|
77957
77134
|
return Promise.all(promises).then(() => tx);
|
77958
77135
|
});
|
77959
77136
|
}
|
77137
|
+
function isNotLaterRippledVersion(source, target) {
|
77138
|
+
if (source === target) {
|
77139
|
+
return true;
|
77140
|
+
}
|
77141
|
+
const sourceDecomp = source.split('.');
|
77142
|
+
const targetDecomp = target.split('.');
|
77143
|
+
const sourceMajor = parseInt(sourceDecomp[0], 10);
|
77144
|
+
const sourceMinor = parseInt(sourceDecomp[1], 10);
|
77145
|
+
const targetMajor = parseInt(targetDecomp[0], 10);
|
77146
|
+
const targetMinor = parseInt(targetDecomp[1], 10);
|
77147
|
+
if (sourceMajor !== targetMajor) {
|
77148
|
+
return sourceMajor < targetMajor;
|
77149
|
+
}
|
77150
|
+
if (sourceMinor !== targetMinor) {
|
77151
|
+
return sourceMinor < targetMinor;
|
77152
|
+
}
|
77153
|
+
const sourcePatch = sourceDecomp[2].split('-');
|
77154
|
+
const targetPatch = targetDecomp[2].split('-');
|
77155
|
+
const sourcePatchVersion = parseInt(sourcePatch[0], 10);
|
77156
|
+
const targetPatchVersion = parseInt(targetPatch[0], 10);
|
77157
|
+
if (sourcePatchVersion !== targetPatchVersion) {
|
77158
|
+
return sourcePatchVersion < targetPatchVersion;
|
77159
|
+
}
|
77160
|
+
if (sourcePatch.length !== targetPatch.length) {
|
77161
|
+
return sourcePatch.length > targetPatch.length;
|
77162
|
+
}
|
77163
|
+
if (sourcePatch.length === 2) {
|
77164
|
+
if (!sourcePatch[1][0].startsWith(targetPatch[1][0])) {
|
77165
|
+
return sourcePatch[1] < targetPatch[1];
|
77166
|
+
}
|
77167
|
+
if (sourcePatch[1].startsWith('b')) {
|
77168
|
+
return (parseInt(sourcePatch[1].slice(1), 10) <
|
77169
|
+
parseInt(targetPatch[1].slice(1), 10));
|
77170
|
+
}
|
77171
|
+
return (parseInt(sourcePatch[1].slice(2), 10) <
|
77172
|
+
parseInt(targetPatch[1].slice(2), 10));
|
77173
|
+
}
|
77174
|
+
return false;
|
77175
|
+
}
|
77176
|
+
function txNeedsNetworkID(client) {
|
77177
|
+
if (client.networkID !== undefined &&
|
77178
|
+
client.networkID > RESTRICTED_NETWORKS) {
|
77179
|
+
if ((client.buildVersion &&
|
77180
|
+
isNotLaterRippledVersion(REQUIRED_NETWORKID_VERSION, client.buildVersion)) ||
|
77181
|
+
client.networkID === HOOKS_TESTNET_ID) {
|
77182
|
+
return true;
|
77183
|
+
}
|
77184
|
+
}
|
77185
|
+
return false;
|
77186
|
+
}
|
77960
77187
|
function setValidAddresses(tx) {
|
77961
77188
|
validateAccountAddress(tx, 'Account', 'SourceTag');
|
77962
77189
|
if (tx['Destination'] != null) {
|
@@ -78011,7 +77238,7 @@ function setNextValidSequenceNumber(client, tx) {
|
|
78011
77238
|
tx.Sequence = data.result.account_data.Sequence;
|
78012
77239
|
});
|
78013
77240
|
}
|
78014
|
-
function
|
77241
|
+
function fetchAccountDeleteFee(client) {
|
78015
77242
|
var _a;
|
78016
77243
|
return __awaiter(this, void 0, void 0, function* () {
|
78017
77244
|
const response = yield client.request({ command: 'server_state' });
|
@@ -78032,9 +77259,8 @@ function calculateFeePerTransactionType(client, tx, signersCount = 0) {
|
|
78032
77259
|
const product = new bignumber_js_1.default(scaleValue(netFeeDrops, 33 + fulfillmentBytesSize / 16));
|
78033
77260
|
baseFee = product.dp(0, bignumber_js_1.default.ROUND_CEIL);
|
78034
77261
|
}
|
78035
|
-
if (tx.TransactionType === 'AccountDelete'
|
78036
|
-
|
78037
|
-
baseFee = yield fetchOwnerReserveFee(client);
|
77262
|
+
if (tx.TransactionType === 'AccountDelete') {
|
77263
|
+
baseFee = yield fetchAccountDeleteFee(client);
|
78038
77264
|
}
|
78039
77265
|
if (signersCount > 0) {
|
78040
77266
|
baseFee = bignumber_js_1.default.sum(baseFee, scaleValue(netFeeDrops, 1 + signersCount));
|
@@ -78704,13 +77930,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78704
77930
|
};
|
78705
77931
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
78706
77932
|
const flatMap_1 = __importDefault(__webpack_require__(/*! lodash/flatMap */ "../../node_modules/lodash/flatMap.js"));
|
77933
|
+
const ripple_binary_codec_1 = __webpack_require__(/*! ripple-binary-codec */ "../../node_modules/ripple-binary-codec/dist/index.js");
|
78707
77934
|
const metadata_1 = __webpack_require__(/*! ../models/transactions/metadata */ "./dist/npm/models/transactions/metadata.js");
|
77935
|
+
function ensureDecodedMeta(meta) {
|
77936
|
+
if (typeof meta === 'string') {
|
77937
|
+
return (0, ripple_binary_codec_1.decode)(meta);
|
77938
|
+
}
|
77939
|
+
return meta;
|
77940
|
+
}
|
78708
77941
|
function getNFTokenID(meta) {
|
78709
|
-
if (meta.AffectedNodes === undefined) {
|
78710
|
-
throw new TypeError(`Unable to parse the parameter given to getNFTokenID.
|
78711
|
-
|
77942
|
+
if (typeof meta !== 'string' && (meta === null || meta === void 0 ? void 0 : meta.AffectedNodes) === undefined) {
|
77943
|
+
throw new TypeError(`Unable to parse the parameter given to getNFTokenID.
|
77944
|
+
'meta' must be the metadata from an NFTokenMint transaction. Received ${JSON.stringify(meta)} instead.`);
|
78712
77945
|
}
|
78713
|
-
const
|
77946
|
+
const decodedMeta = ensureDecodedMeta(meta);
|
77947
|
+
const affectedNodes = decodedMeta.AffectedNodes.filter((node) => {
|
78714
77948
|
var _a;
|
78715
77949
|
if ((0, metadata_1.isCreatedNode)(node)) {
|
78716
77950
|
return node.CreatedNode.LedgerEntryType === 'NFTokenPage';
|
@@ -79952,7 +79186,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
|
|
79952
79186
|
/***/ ((module) => {
|
79953
79187
|
|
79954
79188
|
"use strict";
|
79955
|
-
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,"XChainClaimID":113,"XChainCreateAccountClaimID":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"}],["LockCount",{"nth":47,"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"}],["LockedBalance",{"nth":21,"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":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationBatchElement",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationBatchElement",{"nth":35,"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"}],["XChainClaimAttestationBatch",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestationBatch",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":24,"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,"temEQUAL_DOOR_ACCOUNTS":-259,"temBAD_XCHAIN_PROOF":-258,"temSIDECHAIN_BAD_ISSUES":-257,"temSIDECHAIN_NONDOOR_OWNER":-256,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-255,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-254,"temXCHAIN_TOO_MANY_ATTESTATIONS":-253,"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,"tecBAD_XCHAIN_TRANSFER_ISSUE":171,"tecXCHAIN_NO_CLAIM_ID":172,"tecXCHAIN_BAD_CLAIM_ID":173,"tecXCHAIN_CLAIM_NO_QUORUM":174,"tecXCHAIN_PROOF_UNKNOWN_KEY":175,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":176,"tecXCHAIN_WRONG_CHAIN":177,"tecXCHAIN_REWARD_MISMATCH":178,"tecXCHAIN_NO_SIGNERS_LIST":179,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":180,"tecXCHAIN_INSUFF_CREATE_AMOUNT":181,"tecXCHAIN_ACCOUNT_CREATE_PAST":182,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":183,"tecXCHAIN_PAYMENT_FAILED":184,"tecXCHAIN_SELF_COMMIT":185,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":186,"tecREQUIRES_FLAG":187,"tecPRECISION_LOSS":188},"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,"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}}');
|
79189
|
+
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,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
79956
79190
|
|
79957
79191
|
/***/ }),
|
79958
79192
|
|