xrpl 2.8.0-beta.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +1196 -3022
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts +2 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +12 -4
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/Wallet/fundWallet.d.ts +1 -0
- package/dist/npm/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/Wallet/fundWallet.js +2 -0
- package/dist/npm/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/Wallet/index.d.ts +0 -1
- package/dist/npm/Wallet/index.d.ts.map +1 -1
- package/dist/npm/Wallet/index.js +5 -81
- package/dist/npm/Wallet/index.js.map +1 -1
- package/dist/npm/client/index.d.ts +3 -2
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +12 -6
- package/dist/npm/models/common/index.d.ts.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/PayChannel.d.ts +2 -4
- package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +1 -4
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountChannels.d.ts +2 -3
- package/dist/npm/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/models/methods/accountInfo.d.ts +3 -2
- package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/accountLines.d.ts +1 -3
- package/dist/npm/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/index.d.ts +5 -5
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +1 -16
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/nftHistory.d.ts +35 -0
- package/dist/npm/models/methods/nftHistory.d.ts.map +1 -0
- package/dist/npm/models/{ledger/Bridge.js → methods/nftHistory.js} +1 -1
- package/dist/npm/models/methods/nftHistory.js.map +1 -0
- package/dist/npm/models/methods/nftInfo.d.ts +12 -0
- package/dist/npm/models/methods/nftInfo.d.ts.map +1 -0
- package/dist/npm/{src/models/ledger/Bridge.js → models/methods/nftInfo.js} +1 -1
- package/dist/npm/models/methods/nftInfo.js.map +1 -0
- package/dist/npm/models/methods/tx.d.ts +3 -2
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.d.ts +1 -3
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +1 -22
- package/dist/npm/models/transactions/common.js.map +1 -1
- 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 +0 -13
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +1 -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/transaction.d.ts +1 -14
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +38 -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/multisigning.js +9 -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/defaultFaucets.d.ts +2 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +12 -4
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.d.ts +1 -0
- package/dist/npm/src/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.js +2 -0
- package/dist/npm/src/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/src/Wallet/index.d.ts +0 -1
- package/dist/npm/src/Wallet/index.d.ts.map +1 -1
- package/dist/npm/src/Wallet/index.js +5 -81
- package/dist/npm/src/Wallet/index.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +3 -2
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +12 -6
- package/dist/npm/src/models/common/index.d.ts.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/PayChannel.d.ts +2 -4
- package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +1 -4
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountChannels.d.ts +2 -3
- package/dist/npm/src/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountInfo.d.ts +3 -2
- package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountLines.d.ts +1 -3
- package/dist/npm/src/models/methods/accountLines.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +3 -3
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/index.d.ts +5 -5
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +1 -16
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftHistory.d.ts +35 -0
- package/dist/npm/src/models/methods/nftHistory.d.ts.map +1 -0
- package/dist/npm/{models/methods/ammInfo.js → src/models/methods/nftHistory.js} +1 -1
- package/dist/npm/src/models/methods/nftHistory.js.map +1 -0
- package/dist/npm/src/models/methods/nftInfo.d.ts +12 -0
- package/dist/npm/src/models/methods/nftInfo.d.ts.map +1 -0
- package/dist/npm/src/models/methods/{ammInfo.js → nftInfo.js} +1 -1
- package/dist/npm/src/models/methods/nftInfo.js.map +1 -0
- package/dist/npm/src/models/methods/tx.d.ts +3 -2
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.d.ts +1 -3
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +1 -22
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- 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 +0 -13
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +1 -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/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 +38 -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 +3 -4
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/sugar/getOrderbook.d.ts +1 -1
- package/dist/npm/src/sugar/getOrderbook.js +5 -5
- package/dist/npm/src/sugar/submit.d.ts +2 -2
- package/dist/npm/src/sugar/submit.d.ts.map +1 -1
- package/dist/npm/src/sugar/submit.js +14 -2
- package/dist/npm/src/sugar/submit.js.map +1 -1
- package/dist/npm/src/utils/index.d.ts +1 -2
- package/dist/npm/src/utils/index.d.ts.map +1 -1
- package/dist/npm/src/utils/index.js +1 -3
- package/dist/npm/src/utils/index.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +3 -4
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/getOrderbook.d.ts +1 -1
- package/dist/npm/sugar/getOrderbook.js +5 -5
- package/dist/npm/sugar/submit.d.ts +2 -2
- package/dist/npm/sugar/submit.d.ts.map +1 -1
- package/dist/npm/sugar/submit.js +14 -2
- package/dist/npm/sugar/submit.js.map +1 -1
- package/dist/npm/utils/index.d.ts +1 -2
- package/dist/npm/utils/index.d.ts.map +1 -1
- package/dist/npm/utils/index.js +1 -3
- package/dist/npm/utils/index.js.map +1 -1
- package/package.json +7 -7
- 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/methods/federatorInfo.d.ts +0 -64
- package/dist/npm/models/methods/federatorInfo.d.ts.map +0 -1
- package/dist/npm/models/methods/federatorInfo.js +0 -3
- package/dist/npm/models/methods/federatorInfo.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 -76
- 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 -67
- 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/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.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.map +0 -1
- package/dist/npm/src/models/methods/federatorInfo.d.ts +0 -64
- package/dist/npm/src/models/methods/federatorInfo.d.ts.map +0 -1
- package/dist/npm/src/models/methods/federatorInfo.js +0 -3
- package/dist/npm/src/models/methods/federatorInfo.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 -76
- 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 -67
- 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/dist/npm/src/utils/createCrossChainPayment.d.ts +0 -3
- package/dist/npm/src/utils/createCrossChainPayment.d.ts.map +0 -1
- package/dist/npm/src/utils/createCrossChainPayment.js +0 -19
- package/dist/npm/src/utils/createCrossChainPayment.js.map +0 -1
- package/dist/npm/utils/createCrossChainPayment.d.ts +0 -3
- package/dist/npm/utils/createCrossChainPayment.d.ts.map +0 -1
- package/dist/npm/utils/createCrossChainPayment.js +0 -19
- package/dist/npm/utils/createCrossChainPayment.js.map +0 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
import { LedgerIndex, ResponseOnlyTxInfo } from '../common';
|
2
|
+
import { Transaction, TransactionMetadata } from '../transactions';
|
3
|
+
import { BaseRequest, BaseResponse } from './baseMethod';
|
4
|
+
export interface NFTHistoryRequest extends BaseRequest {
|
5
|
+
command: 'nft_history';
|
6
|
+
nft_id: string;
|
7
|
+
ledger_index_min?: number;
|
8
|
+
ledger_index_max?: number;
|
9
|
+
ledger_hash?: string;
|
10
|
+
ledger_index?: LedgerIndex;
|
11
|
+
binary?: boolean;
|
12
|
+
forward?: boolean;
|
13
|
+
limit?: number;
|
14
|
+
marker?: unknown;
|
15
|
+
}
|
16
|
+
interface NFTokenTransaction {
|
17
|
+
ledger_index: number;
|
18
|
+
meta: string | TransactionMetadata;
|
19
|
+
tx?: Transaction & ResponseOnlyTxInfo;
|
20
|
+
tx_blob?: string;
|
21
|
+
validated: boolean;
|
22
|
+
}
|
23
|
+
export interface NFTHistoryResponse extends BaseResponse {
|
24
|
+
result: {
|
25
|
+
nft_id: string;
|
26
|
+
ledger_index_min: number;
|
27
|
+
ledger_index_max: number;
|
28
|
+
limit?: number;
|
29
|
+
marker?: unknown;
|
30
|
+
transactions: NFTokenTransaction[];
|
31
|
+
validated?: boolean;
|
32
|
+
};
|
33
|
+
}
|
34
|
+
export {};
|
35
|
+
//# sourceMappingURL=nftHistory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nftHistory.d.ts","sourceRoot":"","sources":["../../../../../src/models/methods/nftHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AASxD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,OAAO,EAAE,aAAa,CAAA;IAItB,MAAM,EAAE,MAAM,CAAA;IAMd,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAMzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,YAAY,CAAC,EAAE,WAAW,CAAA;IAK1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,OAAO,CAAC,EAAE,OAAO,CAAA;IAKjB,KAAK,CAAC,EAAE,MAAM,CAAA;IAMd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,kBAAkB;IAE1B,YAAY,EAAE,MAAM,CAAA;IAKpB,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAA;IAElC,EAAE,CAAC,EAAE,WAAW,GAAG,kBAAkB,CAAA;IAErC,OAAO,CAAC,EAAE,MAAM,CAAA;IAKhB,SAAS,EAAE,OAAO,CAAA;CACnB;AAOD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,MAAM,EAAE;QAIN,MAAM,EAAE,MAAM,CAAA;QAKd,gBAAgB,EAAE,MAAM,CAAA;QAKxB,gBAAgB,EAAE,MAAM,CAAA;QAExB,KAAK,CAAC,EAAE,MAAM,CAAA;QAKd,MAAM,CAAC,EAAE,OAAO,CAAA;QAKhB,YAAY,EAAE,kBAAkB,EAAE,CAAA;QAMlC,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nftHistory.js","sourceRoot":"","sources":["../../../../../src/models/methods/nftHistory.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { LedgerIndex, NFToken } from '../common';
|
2
|
+
import { BaseRequest, BaseResponse } from './baseMethod';
|
3
|
+
export interface NFTInfoRequest extends BaseRequest {
|
4
|
+
command: 'nft_info';
|
5
|
+
nft_id: string;
|
6
|
+
ledger_hash?: string;
|
7
|
+
ledger_index?: LedgerIndex;
|
8
|
+
}
|
9
|
+
export interface NFTInfoResponse extends BaseResponse {
|
10
|
+
result: NFToken;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=nftInfo.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nftInfo.d.ts","sourceRoot":"","sources":["../../../../../src/models/methods/nftInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAQxD,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,OAAO,EAAE,UAAU,CAAA;IAInB,MAAM,EAAE,MAAM,CAAA;IAEd,WAAW,CAAC,EAAE,MAAM,CAAA;IAKpB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAOD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,MAAM,EAAE,OAAO,CAAA;CAChB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nftInfo.js","sourceRoot":"","sources":["../../../../../src/models/methods/nftInfo.ts"],"names":[],"mappings":""}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Transaction, TransactionMetadata } from '../transactions';
|
2
|
+
import { BaseTransaction } from '../transactions/common';
|
2
3
|
import { BaseRequest, BaseResponse } from './baseMethod';
|
3
4
|
export interface TxRequest extends BaseRequest {
|
4
5
|
command: 'tx';
|
@@ -7,14 +8,14 @@ export interface TxRequest extends BaseRequest {
|
|
7
8
|
min_ledger?: number;
|
8
9
|
max_ledger?: number;
|
9
10
|
}
|
10
|
-
export interface TxResponse extends BaseResponse {
|
11
|
+
export interface TxResponse<T extends BaseTransaction = Transaction> extends BaseResponse {
|
11
12
|
result: {
|
12
13
|
hash: string;
|
13
14
|
ledger_index?: number;
|
14
15
|
meta?: TransactionMetadata | string;
|
15
16
|
validated?: boolean;
|
16
17
|
date?: number;
|
17
|
-
} &
|
18
|
+
} & T;
|
18
19
|
searched_all?: boolean;
|
19
20
|
}
|
20
21
|
//# sourceMappingURL=tx.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../../../../src/models/methods/tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../../../../src/models/methods/tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAQxD,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,OAAO,EAAE,IAAI,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IAMnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAOhB,UAAU,CAAC,EAAE,MAAM,CAAA;IAOnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAOD,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,eAAe,GAAG,WAAW,CACjE,SAAQ,YAAY;IACpB,MAAM,EAAE;QAEN,IAAI,EAAE,MAAM,CAAA;QAEZ,YAAY,CAAC,EAAE,MAAM,CAAA;QAErB,IAAI,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAA;QAKnC,SAAS,CAAC,EAAE,OAAO,CAAA;QAInB,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,GAAG,CAAC,CAAA;IAOL,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { Amount,
|
2
|
-
export declare function isCurrency(input: unknown): input is Currency;
|
1
|
+
import { Amount, IssuedCurrencyAmount, Memo, Signer } from '../common';
|
3
2
|
export declare function isIssuedCurrency(input: unknown): input is IssuedCurrencyAmount;
|
4
3
|
export declare function isAmount(amount: unknown): amount is Amount;
|
5
|
-
export declare function isXChainBridge(input: unknown): input is XChainBridge;
|
6
4
|
export interface GlobalFlags {
|
7
5
|
}
|
8
6
|
export interface BaseTransaction {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/common.ts"],"names":[],"mappings":"AAMA,OAAO,
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/common.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AA0DtE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAQ/B;AAQD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,MAAM,CAE1D;AAGD,MAAM,WAAW,WAAW;CAAG;AAK/B,MAAM,WAAW,eAAe;IAE9B,OAAO,EAAE,MAAM,CAAA;IAKf,eAAe,EAAE,MAAM,CAAA;IAMvB,GAAG,CAAC,EAAE,MAAM,CAAA;IAOZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IAMjB,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAM5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAI3B,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAKd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAOlB,SAAS,CAAC,EAAE,MAAM,CAAA;IAMlB,aAAa,CAAC,EAAE,MAAM,CAAA;IAKtB,cAAc,CAAC,EAAE,MAAM,CAAA;IAKvB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAUD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAmF7E;AAQD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAQxD"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.parseAmountValue = exports.validateBaseTransaction = exports.
|
3
|
+
exports.parseAmountValue = exports.validateBaseTransaction = exports.isAmount = exports.isIssuedCurrency = void 0;
|
4
4
|
const ripple_binary_codec_1 = require("ripple-binary-codec");
|
5
5
|
const errors_1 = require("../../errors");
|
6
6
|
const utils_1 = require("../utils");
|
@@ -33,22 +33,10 @@ function isSigner(obj) {
|
|
33
33
|
typeof signer.TxnSignature === 'string' &&
|
34
34
|
typeof signer.SigningPubKey === 'string');
|
35
35
|
}
|
36
|
-
const XRP_CURRENCY_SIZE = 1;
|
37
|
-
const ISSUE_SIZE = 2;
|
38
36
|
const ISSUED_CURRENCY_SIZE = 3;
|
39
|
-
const XCHAIN_BRIDGE_SIZE = 4;
|
40
37
|
function isRecord(value) {
|
41
38
|
return value !== null && typeof value === 'object';
|
42
39
|
}
|
43
|
-
function isCurrency(input) {
|
44
|
-
return (isRecord(input) &&
|
45
|
-
((Object.keys(input).length === ISSUE_SIZE &&
|
46
|
-
typeof input.issuer === 'string' &&
|
47
|
-
typeof input.currency === 'string') ||
|
48
|
-
(Object.keys(input).length === XRP_CURRENCY_SIZE &&
|
49
|
-
input.currency === 'XRP')));
|
50
|
-
}
|
51
|
-
exports.isCurrency = isCurrency;
|
52
40
|
function isIssuedCurrency(input) {
|
53
41
|
return (isRecord(input) &&
|
54
42
|
Object.keys(input).length === ISSUED_CURRENCY_SIZE &&
|
@@ -61,15 +49,6 @@ function isAmount(amount) {
|
|
61
49
|
return typeof amount === 'string' || isIssuedCurrency(amount);
|
62
50
|
}
|
63
51
|
exports.isAmount = isAmount;
|
64
|
-
function isXChainBridge(input) {
|
65
|
-
return (isRecord(input) &&
|
66
|
-
Object.keys(input).length === XCHAIN_BRIDGE_SIZE &&
|
67
|
-
typeof input.LockingChainDoor === 'string' &&
|
68
|
-
isCurrency(input.LockingChainIssue) &&
|
69
|
-
typeof input.IssuingChainDoor === 'string' &&
|
70
|
-
isCurrency(input.IssuingChainIssue));
|
71
|
-
}
|
72
|
-
exports.isXChainBridge = isXChainBridge;
|
73
52
|
function validateBaseTransaction(common) {
|
74
53
|
if (common.Account === undefined) {
|
75
54
|
throw new errors_1.ValidationError('BaseTransaction: missing field Account');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/models/transactions/common.ts"],"names":[],"mappings":";;;AAGA,6DAAuD;AAEvD,yCAA8C;
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/models/transactions/common.ts"],"names":[],"mappings":"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"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Amount } from '../common';
|
2
1
|
import { BaseTransaction } from './common';
|
3
2
|
export interface EscrowCreate extends BaseTransaction {
|
4
3
|
TransactionType: 'EscrowCreate';
|
5
|
-
Amount:
|
4
|
+
Amount: string;
|
6
5
|
Destination: string;
|
7
6
|
CancelAfter?: number;
|
8
7
|
FinishAfter?: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"escrowCreate.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/escrowCreate.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"escrowCreate.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/escrowCreate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAOnE,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,eAAe,EAAE,cAAc,CAAA;IAM/B,MAAM,EAAE,MAAM,CAAA;IAEd,WAAW,EAAE,MAAM,CAAA;IAMnB,WAAW,CAAC,EAAE,MAAM,CAAA;IAMpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAKlB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAQD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAiDtE"}
|
@@ -8,8 +8,8 @@ function validateEscrowCreate(tx) {
|
|
8
8
|
if (tx.Amount === undefined) {
|
9
9
|
throw new errors_1.ValidationError('EscrowCreate: missing field Amount');
|
10
10
|
}
|
11
|
-
if (typeof tx.Amount !== 'string'
|
12
|
-
throw new errors_1.ValidationError('EscrowCreate: Amount must be
|
11
|
+
if (typeof tx.Amount !== 'string') {
|
12
|
+
throw new errors_1.ValidationError('EscrowCreate: Amount must be a string');
|
13
13
|
}
|
14
14
|
if (tx.Destination === undefined) {
|
15
15
|
throw new errors_1.ValidationError('EscrowCreate: missing field Destination');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"escrowCreate.js","sourceRoot":"","sources":["../../../../../src/models/transactions/escrowCreate.ts"],"names":[],"mappings":";;;AACA,yCAA8C;
|
1
|
+
{"version":3,"file":"escrowCreate.js","sourceRoot":"","sources":["../../../../../src/models/transactions/escrowCreate.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAE9C,qCAAmE;AA+CnE,SAAgB,oBAAoB,CAAC,EAA2B;IAC9D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,MAAM,KAAK,SAAS,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,oCAAoC,CAAC,CAAA;KAChE;IAED,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,wBAAe,CAAC,uCAAuC,CAAC,CAAA;KACnE;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,yCAAyC,CAAC,CAAA;KACrE;IAED,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtC,MAAM,IAAI,wBAAe,CAAC,4CAA4C,CAAC,CAAA;KACxE;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,EAAE;QAChE,MAAM,IAAI,wBAAe,CACvB,mEAAmE,CACpE,CAAA;KACF;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,EAAE;QAC9D,MAAM,IAAI,wBAAe,CACvB,iEAAiE,CAClE,CAAA;KACF;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtE,MAAM,IAAI,wBAAe,CAAC,4CAA4C,CAAC,CAAA;KACxE;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtE,MAAM,IAAI,wBAAe,CAAC,4CAA4C,CAAC,CAAA;KACxE;IAED,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,SAAS,KAAK,QAAQ,EAAE;QAClE,MAAM,IAAI,wBAAe,CAAC,0CAA0C,CAAC,CAAA;KACtE;IAED,IACE,EAAE,CAAC,cAAc,KAAK,SAAS;QAC/B,OAAO,EAAE,CAAC,cAAc,KAAK,QAAQ,EACrC;QACA,MAAM,IAAI,wBAAe,CAAC,+CAA+C,CAAC,CAAA;KAC3E;AACH,CAAC;AAjDD,oDAiDC"}
|
@@ -2,11 +2,6 @@ export { validate, TransactionAndMetadata, Transaction } from './transaction';
|
|
2
2
|
export { TransactionMetadata } from './metadata';
|
3
3
|
export { AccountSetAsfFlags, AccountSetTfFlags, AccountSetFlagsInterface, AccountSet, } from './accountSet';
|
4
4
|
export { AccountDelete } from './accountDelete';
|
5
|
-
export { AMMBid } from './AMMBid';
|
6
|
-
export { AMMDepositFlags, AMMDepositFlagsInterface, AMMDeposit, } from './AMMDeposit';
|
7
|
-
export { AMMCreate } from './AMMCreate';
|
8
|
-
export { AMMVote } from './AMMVote';
|
9
|
-
export { AMMWithdrawFlags, AMMWithdrawFlagsInterface, AMMWithdraw, } from './AMMWithdraw';
|
10
5
|
export { CheckCancel } from './checkCancel';
|
11
6
|
export { CheckCash } from './checkCash';
|
12
7
|
export { CheckCreate } from './checkCreate';
|
@@ -29,12 +24,4 @@ export { SetRegularKey } from './setRegularKey';
|
|
29
24
|
export { SignerListSet } from './signerListSet';
|
30
25
|
export { TicketCreate } from './ticketCreate';
|
31
26
|
export { TrustSetFlagsInterface, TrustSetFlags, TrustSet } from './trustSet';
|
32
|
-
export { XChainAddAccountCreateAttestation } from './XChainAddAccountCreateAttestation';
|
33
|
-
export { XChainAddClaimAttestation } from './XChainAddClaimAttestation';
|
34
|
-
export { XChainClaim } from './XChainClaim';
|
35
|
-
export { XChainCommit } from './XChainCommit';
|
36
|
-
export { XChainCreateBridge } from './XChainCreateBridge';
|
37
|
-
export { XChainCreateClaimID } from './XChainCreateClaimID';
|
38
|
-
export { XChainAccountCreateCommit } from './XChainAccountCreateCommit';
|
39
|
-
export { XChainModifyBridge, XChainModifyBridgeFlags, XChainModifyBridgeFlagsInterface, } from './XChainModifyBridge';
|
40
27
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,UAAU,GACX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,UAAU,GACX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,WAAW,GACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxE,OAAO,EACL,wBAAwB,EACxB,iCAAiC,EACjC,mBAAmB,GACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
@@ -1,15 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.TrustSetFlags = exports.PaymentChannelClaimFlags = exports.PaymentFlags = exports.OfferCreateFlags = exports.NFTokenMintFlags = exports.NFTokenCreateOfferFlags = exports.AccountSetTfFlags = exports.AccountSetAsfFlags = exports.validate = void 0;
|
4
4
|
var transaction_1 = require("./transaction");
|
5
5
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return transaction_1.validate; } });
|
6
6
|
var accountSet_1 = require("./accountSet");
|
7
7
|
Object.defineProperty(exports, "AccountSetAsfFlags", { enumerable: true, get: function () { return accountSet_1.AccountSetAsfFlags; } });
|
8
8
|
Object.defineProperty(exports, "AccountSetTfFlags", { enumerable: true, get: function () { return accountSet_1.AccountSetTfFlags; } });
|
9
|
-
var AMMDeposit_1 = require("./AMMDeposit");
|
10
|
-
Object.defineProperty(exports, "AMMDepositFlags", { enumerable: true, get: function () { return AMMDeposit_1.AMMDepositFlags; } });
|
11
|
-
var AMMWithdraw_1 = require("./AMMWithdraw");
|
12
|
-
Object.defineProperty(exports, "AMMWithdrawFlags", { enumerable: true, get: function () { return AMMWithdraw_1.AMMWithdrawFlags; } });
|
13
9
|
var NFTokenCreateOffer_1 = require("./NFTokenCreateOffer");
|
14
10
|
Object.defineProperty(exports, "NFTokenCreateOfferFlags", { enumerable: true, get: function () { return NFTokenCreateOffer_1.NFTokenCreateOfferFlags; } });
|
15
11
|
var NFTokenMint_1 = require("./NFTokenMint");
|
@@ -22,6 +18,4 @@ var paymentChannelClaim_1 = require("./paymentChannelClaim");
|
|
22
18
|
Object.defineProperty(exports, "PaymentChannelClaimFlags", { enumerable: true, get: function () { return paymentChannelClaim_1.PaymentChannelClaimFlags; } });
|
23
19
|
var trustSet_1 = require("./trustSet");
|
24
20
|
Object.defineProperty(exports, "TrustSetFlags", { enumerable: true, get: function () { return trustSet_1.TrustSetFlags; } });
|
25
|
-
var XChainModifyBridge_1 = require("./XChainModifyBridge");
|
26
|
-
Object.defineProperty(exports, "XChainModifyBridgeFlags", { enumerable: true, get: function () { return XChainModifyBridge_1.XChainModifyBridgeFlags; } });
|
27
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/transactions/index.ts"],"names":[],"mappings":";;;AAAA,6CAA6E;AAApE,uGAAA,QAAQ,OAAA;AAEjB,2CAKqB;AAJnB,gHAAA,kBAAkB,OAAA;AAClB,+GAAA,iBAAiB,OAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/transactions/index.ts"],"names":[],"mappings":";;;AAAA,6CAA6E;AAApE,uGAAA,QAAQ,OAAA;AAEjB,2CAKqB;AAJnB,gHAAA,kBAAkB,OAAA;AAClB,+GAAA,iBAAiB,OAAA;AAenB,2DAI6B;AAF3B,6HAAA,uBAAuB,OAAA;AAGzB,6CAIsB;AAFpB,+GAAA,gBAAgB,OAAA;AAIlB,6CAIsB;AAHpB,+GAAA,gBAAgB,OAAA;AAIlB,qCAAwE;AAA/D,uGAAA,YAAY,OAAA;AACrB,6DAI8B;AAH5B,+HAAA,wBAAwB,OAAA;AAS1B,uCAA4E;AAA3C,yGAAA,aAAa,OAAA"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Amount } from '../common';
|
2
1
|
import { BaseTransaction, GlobalFlags } from './common';
|
3
2
|
export declare enum PaymentChannelClaimFlags {
|
4
3
|
tfRenew = 65536,
|
@@ -12,8 +11,8 @@ export interface PaymentChannelClaim extends BaseTransaction {
|
|
12
11
|
TransactionType: 'PaymentChannelClaim';
|
13
12
|
Flags?: number | PaymentChannelClaimFlagsInterface;
|
14
13
|
Channel: string;
|
15
|
-
Balance?:
|
16
|
-
Amount?:
|
14
|
+
Balance?: string;
|
15
|
+
Amount?: string;
|
17
16
|
Signature?: string;
|
18
17
|
PublicKey?: string;
|
19
18
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelClaim.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelClaim.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"paymentChannelClaim.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelClaim.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,WAAW,EAA2B,MAAM,UAAU,CAAA;AAOhF,oBAAY,wBAAwB;IAMlC,OAAO,QAAa;IAcpB,OAAO,SAAa;CACrB;AAuCD,MAAM,WAAW,iCAAkC,SAAQ,WAAW;IAMpE,OAAO,CAAC,EAAE,OAAO,CAAA;IAcjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAQD,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,eAAe,EAAE,qBAAqB,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,GAAG,iCAAiC,CAAA;IAElD,OAAO,EAAE,MAAM,CAAA;IAOf,OAAO,CAAC,EAAE,MAAM,CAAA;IAMhB,MAAM,CAAC,EAAE,MAAM,CAAA;IAMf,SAAS,CAAC,EAAE,MAAM,CAAA;IAOlB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CA0B7E"}
|
@@ -16,11 +16,11 @@ function validatePaymentChannelClaim(tx) {
|
|
16
16
|
if (typeof tx.Channel !== 'string') {
|
17
17
|
throw new errors_1.ValidationError('PaymentChannelClaim: Channel must be a string');
|
18
18
|
}
|
19
|
-
if (tx.Balance !== undefined &&
|
20
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be
|
19
|
+
if (tx.Balance !== undefined && typeof tx.Balance !== 'string') {
|
20
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Balance must be a string');
|
21
21
|
}
|
22
|
-
if (tx.Amount !== undefined &&
|
23
|
-
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be
|
22
|
+
if (tx.Amount !== undefined && typeof tx.Amount !== 'string') {
|
23
|
+
throw new errors_1.ValidationError('PaymentChannelClaim: Amount must be a string');
|
24
24
|
}
|
25
25
|
if (tx.Signature !== undefined && typeof tx.Signature !== 'string') {
|
26
26
|
throw new errors_1.ValidationError('PaymentChannelClaim: Signature must be a string');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelClaim.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelClaim.ts"],"names":[],"mappings":";;;AACA,yCAA8C;
|
1
|
+
{"version":3,"file":"paymentChannelClaim.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelClaim.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAE9C,qCAAgF;AAOhF,IAAY,wBAqBX;AArBD,WAAY,wBAAwB;IAMlC,iFAAoB,CAAA;IAcpB,kFAAoB,CAAA;AACtB,CAAC,EArBW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAqBnC;AA2GD,SAAgB,2BAA2B,CAAC,EAA2B;IACrE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,OAAO,KAAK,SAAS,EAAE;QAC5B,MAAM,IAAI,wBAAe,CAAC,sCAAsC,CAAC,CAAA;KAClE;IAED,IAAI,OAAO,EAAE,CAAC,OAAO,KAAK,QAAQ,EAAE;QAClC,MAAM,IAAI,wBAAe,CAAC,+CAA+C,CAAC,CAAA;KAC3E;IAED,IAAI,EAAE,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,OAAO,KAAK,QAAQ,EAAE;QAC9D,MAAM,IAAI,wBAAe,CAAC,+CAA+C,CAAC,CAAA;KAC3E;IAED,IAAI,EAAE,CAAC,MAAM,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,QAAQ,EAAE;QAC5D,MAAM,IAAI,wBAAe,CAAC,8CAA8C,CAAC,CAAA;KAC1E;IAED,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,SAAS,KAAK,QAAQ,EAAE;QAClE,MAAM,IAAI,wBAAe,CAAC,iDAAiD,CAAC,CAAA;KAC7E;IAED,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,SAAS,KAAK,QAAQ,EAAE;QAClE,MAAM,IAAI,wBAAe,CAAC,iDAAiD,CAAC,CAAA;KAC7E;AACH,CAAC;AA1BD,kEA0BC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Amount } from '../common';
|
2
1
|
import { BaseTransaction } from './common';
|
3
2
|
export interface PaymentChannelCreate extends BaseTransaction {
|
4
3
|
TransactionType: 'PaymentChannelCreate';
|
5
|
-
Amount:
|
4
|
+
Amount: string;
|
6
5
|
Destination: string;
|
7
6
|
SettleDelay: number;
|
8
7
|
PublicKey: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelCreate.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelCreate.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"paymentChannelCreate.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelCreate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAQnE,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,eAAe,EAAE,sBAAsB,CAAA;IAOvC,MAAM,EAAE,MAAM,CAAA;IAKd,WAAW,EAAE,MAAM,CAAA;IAKnB,WAAW,EAAE,MAAM,CAAA;IAMnB,SAAS,EAAE,MAAM,CAAA;IAQjB,WAAW,CAAC,EAAE,MAAM,CAAA;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AASD,wBAAgB,4BAA4B,CAC1C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1B,IAAI,CAuDN"}
|
@@ -8,8 +8,8 @@ function validatePaymentChannelCreate(tx) {
|
|
8
8
|
if (tx.Amount === undefined) {
|
9
9
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Amount');
|
10
10
|
}
|
11
|
-
if (typeof tx.Amount !== 'string'
|
12
|
-
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be
|
11
|
+
if (typeof tx.Amount !== 'string') {
|
12
|
+
throw new errors_1.ValidationError('PaymentChannelCreate: Amount must be a string');
|
13
13
|
}
|
14
14
|
if (tx.Destination === undefined) {
|
15
15
|
throw new errors_1.ValidationError('PaymentChannelCreate: missing Destination');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelCreate.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelCreate.ts"],"names":[],"mappings":";;;AACA,yCAA8C;
|
1
|
+
{"version":3,"file":"paymentChannelCreate.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelCreate.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAE9C,qCAAmE;AAuDnE,SAAgB,4BAA4B,CAC1C,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,MAAM,KAAK,SAAS,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,sCAAsC,CAAC,CAAA;KAClE;IAED,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,wBAAe,CAAC,+CAA+C,CAAC,CAAA;KAC3E;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,2CAA2C,CAAC,CAAA;KACvE;IAED,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtC,MAAM,IAAI,wBAAe,CACvB,oDAAoD,CACrD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,2CAA2C,CAAC,CAAA;KACvE;IAED,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtC,MAAM,IAAI,wBAAe,CACvB,oDAAoD,CACrD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,EAAE;QAC9B,MAAM,IAAI,wBAAe,CAAC,yCAAyC,CAAC,CAAA;KACrE;IAED,IAAI,OAAO,EAAE,CAAC,SAAS,KAAK,QAAQ,EAAE;QACpC,MAAM,IAAI,wBAAe,CACvB,kDAAkD,CACnD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,WAAW,KAAK,QAAQ,EAAE;QACtE,MAAM,IAAI,wBAAe,CACvB,oDAAoD,CACrD,CAAA;KACF;IAED,IACE,EAAE,CAAC,cAAc,KAAK,SAAS;QAC/B,OAAO,EAAE,CAAC,cAAc,KAAK,QAAQ,EACrC;QACA,MAAM,IAAI,wBAAe,CACvB,uDAAuD,CACxD,CAAA;KACF;AACH,CAAC;AAzDD,oEAyDC"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { Amount } from '../common';
|
2
1
|
import { BaseTransaction } from './common';
|
3
2
|
export interface PaymentChannelFund extends BaseTransaction {
|
4
3
|
TransactionType: 'PaymentChannelFund';
|
5
4
|
Channel: string;
|
6
|
-
Amount:
|
5
|
+
Amount: string;
|
7
6
|
Expiration?: number;
|
8
7
|
}
|
9
8
|
export declare function validatePaymentChannelFund(tx: Record<string, unknown>): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelFund.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelFund.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"paymentChannelFund.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelFund.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AASnE,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,eAAe,EAAE,oBAAoB,CAAA;IAKrC,OAAO,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,MAAM,CAAA;IAWd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAQD,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAsB5E"}
|
@@ -14,8 +14,8 @@ function validatePaymentChannelFund(tx) {
|
|
14
14
|
if (tx.Amount === undefined) {
|
15
15
|
throw new errors_1.ValidationError('PaymentChannelFund: missing Amount');
|
16
16
|
}
|
17
|
-
if (typeof tx.Amount !== 'string'
|
18
|
-
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be
|
17
|
+
if (typeof tx.Amount !== 'string') {
|
18
|
+
throw new errors_1.ValidationError('PaymentChannelFund: Amount must be a string');
|
19
19
|
}
|
20
20
|
if (tx.Expiration !== undefined && typeof tx.Expiration !== 'number') {
|
21
21
|
throw new errors_1.ValidationError('PaymentChannelFund: Expiration must be a number');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paymentChannelFund.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelFund.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;
|
1
|
+
{"version":3,"file":"paymentChannelFund.js","sourceRoot":"","sources":["../../../../../src/models/transactions/paymentChannelFund.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAE9C,qCAAmE;AAwCnE,SAAgB,0BAA0B,CAAC,EAA2B;IACpE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,OAAO,KAAK,SAAS,EAAE;QAC5B,MAAM,IAAI,wBAAe,CAAC,qCAAqC,CAAC,CAAA;KACjE;IAED,IAAI,OAAO,EAAE,CAAC,OAAO,KAAK,QAAQ,EAAE;QAClC,MAAM,IAAI,wBAAe,CAAC,8CAA8C,CAAC,CAAA;KAC1E;IAED,IAAI,EAAE,CAAC,MAAM,KAAK,SAAS,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,oCAAoC,CAAC,CAAA;KAChE;IAED,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;IAED,IAAI,EAAE,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC,UAAU,KAAK,QAAQ,EAAE;QACpE,MAAM,IAAI,wBAAe,CAAC,iDAAiD,CAAC,CAAA;KAC7E;AACH,CAAC;AAtBD,gEAsBC"}
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import { AccountDelete } from './accountDelete';
|
2
2
|
import { AccountSet } from './accountSet';
|
3
|
-
import { AMMBid } from './AMMBid';
|
4
|
-
import { AMMCreate } from './AMMCreate';
|
5
|
-
import { AMMDeposit } from './AMMDeposit';
|
6
|
-
import { AMMVote } from './AMMVote';
|
7
|
-
import { AMMWithdraw } from './AMMWithdraw';
|
8
3
|
import { CheckCancel } from './checkCancel';
|
9
4
|
import { CheckCash } from './checkCash';
|
10
5
|
import { CheckCreate } from './checkCreate';
|
@@ -28,15 +23,7 @@ import { SetRegularKey } from './setRegularKey';
|
|
28
23
|
import { SignerListSet } from './signerListSet';
|
29
24
|
import { TicketCreate } from './ticketCreate';
|
30
25
|
import { TrustSet } from './trustSet';
|
31
|
-
|
32
|
-
import { XChainAddAccountCreateAttestation } from './XChainAddAccountCreateAttestation';
|
33
|
-
import { XChainAddClaimAttestation } from './XChainAddClaimAttestation';
|
34
|
-
import { XChainClaim } from './XChainClaim';
|
35
|
-
import { XChainCommit } from './XChainCommit';
|
36
|
-
import { XChainCreateBridge } from './XChainCreateBridge';
|
37
|
-
import { XChainCreateClaimID } from './XChainCreateClaimID';
|
38
|
-
import { XChainModifyBridge } from './XChainModifyBridge';
|
39
|
-
export type Transaction = AccountDelete | AccountSet | AMMBid | AMMDeposit | AMMCreate | AMMVote | AMMWithdraw | CheckCancel | CheckCash | CheckCreate | DepositPreauth | EscrowCancel | EscrowCreate | EscrowFinish | NFTokenAcceptOffer | NFTokenBurn | NFTokenCancelOffer | NFTokenCreateOffer | NFTokenMint | OfferCancel | OfferCreate | Payment | PaymentChannelClaim | PaymentChannelCreate | PaymentChannelFund | SetRegularKey | SignerListSet | TicketCreate | TrustSet | XChainAddAccountCreateAttestation | XChainAddClaimAttestation | XChainClaim | XChainCommit | XChainCreateBridge | XChainCreateClaimID | XChainAccountCreateCommit | XChainModifyBridge;
|
26
|
+
export type Transaction = AccountDelete | AccountSet | CheckCancel | CheckCash | CheckCreate | DepositPreauth | EscrowCancel | EscrowCreate | EscrowFinish | NFTokenAcceptOffer | NFTokenBurn | NFTokenCancelOffer | NFTokenCreateOffer | NFTokenMint | OfferCancel | OfferCreate | Payment | PaymentChannelClaim | PaymentChannelCreate | PaymentChannelFund | SetRegularKey | SignerListSet | TicketCreate | TrustSet;
|
40
27
|
export interface TransactionAndMetadata {
|
41
28
|
transaction: Transaction;
|
42
29
|
metadata: TransactionMetadata;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/transaction.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../src/models/transactions/transaction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAyB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAsB,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,SAAS,EAAqB,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,YAAY,EAAwB,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAwB,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAwB,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EACL,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAChE,OAAO,EACL,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,OAAO,EAAmB,MAAM,WAAW,CAAA;AACpD,OAAO,EACL,mBAAmB,EAEpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,oBAAoB,EAErB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAyB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,aAAa,EAAyB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,YAAY,EAAwB,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAA;AAKvD,MAAM,MAAM,WAAW,GACnB,aAAa,GACb,UAAU,GACV,WAAW,GACX,SAAS,GACT,WAAW,GACX,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,WAAW,GACX,kBAAkB,GAClB,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,WAAW,GACX,OAAO,GACP,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,YAAY,GACZ,QAAQ,CAAA;AAKZ,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,WAAW,CAAA;IACxB,QAAQ,EAAE,mBAAmB,CAAA;CAC9B;AAUD,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAkKnE"}
|
@@ -2,17 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validate = void 0;
|
4
4
|
const errors_1 = require("../../errors");
|
5
|
+
const utils_1 = require("../utils");
|
5
6
|
const flags_1 = require("../utils/flags");
|
6
7
|
const accountDelete_1 = require("./accountDelete");
|
7
8
|
const accountSet_1 = require("./accountSet");
|
8
|
-
const AMMBid_1 = require("./AMMBid");
|
9
|
-
const AMMCreate_1 = require("./AMMCreate");
|
10
|
-
const AMMDeposit_1 = require("./AMMDeposit");
|
11
|
-
const AMMVote_1 = require("./AMMVote");
|
12
|
-
const AMMWithdraw_1 = require("./AMMWithdraw");
|
13
9
|
const checkCancel_1 = require("./checkCancel");
|
14
10
|
const checkCash_1 = require("./checkCash");
|
15
11
|
const checkCreate_1 = require("./checkCreate");
|
12
|
+
const common_1 = require("./common");
|
16
13
|
const depositPreauth_1 = require("./depositPreauth");
|
17
14
|
const escrowCancel_1 = require("./escrowCancel");
|
18
15
|
const escrowCreate_1 = require("./escrowCreate");
|
@@ -32,14 +29,6 @@ const setRegularKey_1 = require("./setRegularKey");
|
|
32
29
|
const signerListSet_1 = require("./signerListSet");
|
33
30
|
const ticketCreate_1 = require("./ticketCreate");
|
34
31
|
const trustSet_1 = require("./trustSet");
|
35
|
-
const XChainAccountCreateCommit_1 = require("./XChainAccountCreateCommit");
|
36
|
-
const XChainAddAccountCreateAttestation_1 = require("./XChainAddAccountCreateAttestation");
|
37
|
-
const XChainAddClaimAttestation_1 = require("./XChainAddClaimAttestation");
|
38
|
-
const XChainClaim_1 = require("./XChainClaim");
|
39
|
-
const XChainCommit_1 = require("./XChainCommit");
|
40
|
-
const XChainCreateBridge_1 = require("./XChainCreateBridge");
|
41
|
-
const XChainCreateClaimID_1 = require("./XChainCreateClaimID");
|
42
|
-
const XChainModifyBridge_1 = require("./XChainModifyBridge");
|
43
32
|
function validate(transaction) {
|
44
33
|
const tx = Object.assign({}, transaction);
|
45
34
|
if (tx.TransactionType == null) {
|
@@ -48,6 +37,42 @@ function validate(transaction) {
|
|
48
37
|
if (typeof tx.TransactionType !== 'string') {
|
49
38
|
throw new errors_1.ValidationError("Object's `TransactionType` is not a string");
|
50
39
|
}
|
40
|
+
if (tx.Memos != null && typeof tx.Memos !== 'object') {
|
41
|
+
throw new errors_1.ValidationError('Memo must be array');
|
42
|
+
}
|
43
|
+
if (tx.Memos != null) {
|
44
|
+
;
|
45
|
+
tx.Memos.forEach((memo) => {
|
46
|
+
if ((memo === null || memo === void 0 ? void 0 : memo.Memo) == null) {
|
47
|
+
throw new errors_1.ValidationError('Memo data must be in a `Memo` field');
|
48
|
+
}
|
49
|
+
if (memo.Memo.MemoData) {
|
50
|
+
if (!(0, utils_1.isHex)(memo.Memo.MemoData)) {
|
51
|
+
throw new errors_1.ValidationError('MemoData field must be a hex value');
|
52
|
+
}
|
53
|
+
}
|
54
|
+
if (memo.Memo.MemoType) {
|
55
|
+
if (!(0, utils_1.isHex)(memo.Memo.MemoType)) {
|
56
|
+
throw new errors_1.ValidationError('MemoType field must be a hex value');
|
57
|
+
}
|
58
|
+
}
|
59
|
+
if (memo.Memo.MemoFormat) {
|
60
|
+
if (!(0, utils_1.isHex)(memo.Memo.MemoFormat)) {
|
61
|
+
throw new errors_1.ValidationError('MemoFormat field must be a hex value');
|
62
|
+
}
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}
|
66
|
+
Object.keys(tx).forEach((key) => {
|
67
|
+
const standard_currency_code_len = 3;
|
68
|
+
if (tx[key] && (0, common_1.isIssuedCurrency)(tx[key])) {
|
69
|
+
const txCurrency = tx[key].currency;
|
70
|
+
if (txCurrency.length === standard_currency_code_len &&
|
71
|
+
txCurrency.toUpperCase() === 'XRP') {
|
72
|
+
throw new errors_1.ValidationError(`Cannot have an issued currency with a similar standard code to XRP (received '${txCurrency}'). XRP is not an issued currency.`);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
});
|
51
76
|
(0, flags_1.setTransactionFlagsToNumber)(tx);
|
52
77
|
switch (tx.TransactionType) {
|
53
78
|
case 'AccountDelete':
|
@@ -56,21 +81,6 @@ function validate(transaction) {
|
|
56
81
|
case 'AccountSet':
|
57
82
|
(0, accountSet_1.validateAccountSet)(tx);
|
58
83
|
break;
|
59
|
-
case 'AMMBid':
|
60
|
-
(0, AMMBid_1.validateAMMBid)(tx);
|
61
|
-
break;
|
62
|
-
case 'AMMDeposit':
|
63
|
-
(0, AMMDeposit_1.validateAMMDeposit)(tx);
|
64
|
-
break;
|
65
|
-
case 'AMMCreate':
|
66
|
-
(0, AMMCreate_1.validateAMMCreate)(tx);
|
67
|
-
break;
|
68
|
-
case 'AMMVote':
|
69
|
-
(0, AMMVote_1.validateAMMVote)(tx);
|
70
|
-
break;
|
71
|
-
case 'AMMWithdraw':
|
72
|
-
(0, AMMWithdraw_1.validateAMMWithdraw)(tx);
|
73
|
-
break;
|
74
84
|
case 'CheckCancel':
|
75
85
|
(0, checkCancel_1.validateCheckCancel)(tx);
|
76
86
|
break;
|
@@ -137,30 +147,6 @@ function validate(transaction) {
|
|
137
147
|
case 'TrustSet':
|
138
148
|
(0, trustSet_1.validateTrustSet)(tx);
|
139
149
|
break;
|
140
|
-
case 'XChainAddAccountCreateAttestation':
|
141
|
-
(0, XChainAddAccountCreateAttestation_1.validateXChainAddAccountCreateAttestation)(tx);
|
142
|
-
break;
|
143
|
-
case 'XChainAddClaimAttestation':
|
144
|
-
(0, XChainAddClaimAttestation_1.validateXChainAddClaimAttestation)(tx);
|
145
|
-
break;
|
146
|
-
case 'XChainClaim':
|
147
|
-
(0, XChainClaim_1.validateXChainClaim)(tx);
|
148
|
-
break;
|
149
|
-
case 'XChainCommit':
|
150
|
-
(0, XChainCommit_1.validateXChainCommit)(tx);
|
151
|
-
break;
|
152
|
-
case 'XChainCreateBridge':
|
153
|
-
(0, XChainCreateBridge_1.validateXChainCreateBridge)(tx);
|
154
|
-
break;
|
155
|
-
case 'XChainCreateClaimID':
|
156
|
-
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
|
157
|
-
break;
|
158
|
-
case 'XChainAccountCreateCommit':
|
159
|
-
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
160
|
-
break;
|
161
|
-
case 'XChainModifyBridge':
|
162
|
-
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
|
163
|
-
break;
|
164
150
|
default:
|
165
151
|
throw new errors_1.ValidationError(`Invalid field TransactionType: ${tx.TransactionType}`);
|
166
152
|
}
|