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
@@ -1,7 +1,7 @@
|
|
1
1
|
import { LedgerIndex } from '../common';
|
2
|
-
import { Check, DepositPreauth, Escrow, Offer, PayChannel, RippleState, SignerList, Ticket
|
2
|
+
import { Check, DepositPreauth, Escrow, Offer, PayChannel, RippleState, SignerList, Ticket } from '../ledger';
|
3
3
|
import { BaseRequest, BaseResponse } from './baseMethod';
|
4
|
-
type AccountObjectType = 'check' | 'deposit_preauth' | 'escrow' | 'nft_offer' | 'offer' | 'payment_channel' | 'signer_list' | 'state' | 'ticket'
|
4
|
+
type AccountObjectType = 'check' | 'deposit_preauth' | 'escrow' | 'nft_offer' | 'offer' | 'payment_channel' | 'signer_list' | 'state' | 'ticket';
|
5
5
|
export interface AccountObjectsRequest extends BaseRequest {
|
6
6
|
command: 'account_objects';
|
7
7
|
account: string;
|
@@ -12,7 +12,7 @@ export interface AccountObjectsRequest extends BaseRequest {
|
|
12
12
|
limit?: number;
|
13
13
|
marker?: unknown;
|
14
14
|
}
|
15
|
-
type AccountObject = Check | DepositPreauth | Escrow | Offer | PayChannel | SignerList | RippleState | Ticket
|
15
|
+
type AccountObject = Check | DepositPreauth | Escrow | Offer | PayChannel | SignerList | RippleState | Ticket;
|
16
16
|
export interface AccountObjectsResponse extends BaseResponse {
|
17
17
|
result: {
|
18
18
|
account: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"accountObjects.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/accountObjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,
|
1
|
+
{"version":3,"file":"accountObjects.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/accountObjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACP,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAExD,KAAK,iBAAiB,GAClB,OAAO,GACP,iBAAiB,GACjB,QAAQ,GACR,WAAW,GACX,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,OAAO,GACP,QAAQ,CAAA;AAUZ,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,OAAO,EAAE,iBAAiB,CAAA;IAE1B,OAAO,EAAE,MAAM,CAAA;IAMf,IAAI,CAAC,EAAE,iBAAiB,CAAA;IAKxB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAEhC,WAAW,CAAC,EAAE,MAAM,CAAA;IAKpB,YAAY,CAAC,EAAE,WAAW,CAAA;IAK1B,KAAK,CAAC,EAAE,MAAM,CAAA;IAKd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAMD,KAAK,aAAa,GACd,KAAK,GACL,cAAc,GACd,MAAM,GACN,KAAK,GACL,UAAU,GACV,UAAU,GACV,WAAW,GACX,MAAM,CAAA;AAOV,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D,MAAM,EAAE;QAEN,OAAO,EAAE,MAAM,CAAA;QAKf,eAAe,EAAE,aAAa,EAAE,CAAA;QAKhC,WAAW,CAAC,EAAE,MAAM,CAAA;QAKpB,YAAY,CAAC,EAAE,MAAM,CAAA;QAKrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAE7B,KAAK,CAAC,EAAE,MAAM,CAAA;QAMd,MAAM,CAAC,EAAE,MAAM,CAAA;QAMf,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;CACF"}
|
@@ -6,12 +6,10 @@ import { AccountNFTsRequest, AccountNFTsResponse } from './accountNFTs';
|
|
6
6
|
import { AccountObjectsRequest, AccountObjectsResponse } from './accountObjects';
|
7
7
|
import { AccountOffer, AccountOffersRequest, AccountOffersResponse } from './accountOffers';
|
8
8
|
import { AccountTxRequest, AccountTxResponse } from './accountTx';
|
9
|
-
import { AMMInfoRequest, AMMInfoResponse } from './ammInfo';
|
10
9
|
import { ErrorResponse } from './baseMethod';
|
11
10
|
import { BookOffersRequest, BookOffer, BookOffersResponse } from './bookOffers';
|
12
11
|
import { ChannelVerifyRequest, ChannelVerifyResponse } from './channelVerify';
|
13
12
|
import { DepositAuthorizedRequest, DepositAuthorizedResponse } from './depositAuthorized';
|
14
|
-
import { FederatorInfoRequest, FederatorInfoResponse } from './federatorInfo';
|
15
13
|
import { FeeRequest, FeeResponse } from './fee';
|
16
14
|
import { GatewayBalancesRequest, GatewayBalancesResponse } from './gatewayBalances';
|
17
15
|
import { LedgerRequest, LedgerResponse } from './ledger';
|
@@ -21,6 +19,8 @@ import { LedgerDataRequest, LedgerDataResponse } from './ledgerData';
|
|
21
19
|
import { LedgerEntryRequest, LedgerEntryResponse } from './ledgerEntry';
|
22
20
|
import { ManifestRequest, ManifestResponse } from './manifest';
|
23
21
|
import { NFTBuyOffersRequest, NFTBuyOffersResponse } from './nftBuyOffers';
|
22
|
+
import { NFTHistoryRequest, NFTHistoryResponse } from './nftHistory';
|
23
|
+
import { NFTInfoRequest, NFTInfoResponse } from './nftInfo';
|
24
24
|
import { NFTSellOffersRequest, NFTSellOffersResponse } from './nftSellOffers';
|
25
25
|
import { NoRippleCheckRequest, NoRippleCheckResponse } from './norippleCheck';
|
26
26
|
import { PathFindRequest, PathFindCloseRequest, PathFindCreateRequest, PathFindStatusRequest, PathFindResponse } from './pathFind';
|
@@ -35,7 +35,7 @@ import { ConsensusStream, LedgerStream, OrderBookStream, PathFindStream, PeerSta
|
|
35
35
|
import { TransactionEntryRequest, TransactionEntryResponse } from './transactionEntry';
|
36
36
|
import { TxRequest, TxResponse } from './tx';
|
37
37
|
import { UnsubscribeRequest, UnsubscribeResponse } from './unsubscribe';
|
38
|
-
type Request = AccountChannelsRequest | AccountCurrenciesRequest | AccountInfoRequest | AccountLinesRequest | AccountNFTsRequest | AccountObjectsRequest | AccountOffersRequest | AccountTxRequest |
|
39
|
-
type Response = AccountChannelsResponse | AccountCurrenciesResponse | AccountInfoResponse | AccountLinesResponse | AccountNFTsResponse | AccountObjectsResponse | AccountOffersResponse | AccountTxResponse |
|
40
|
-
export { Request, Response, AccountChannelsRequest, AccountChannelsResponse, AccountCurrenciesRequest, AccountCurrenciesResponse, AccountInfoRequest, AccountInfoResponse, AccountLinesRequest, AccountLinesResponse, AccountNFTsRequest, AccountNFTsResponse, AccountObjectsRequest, AccountObjectsResponse, AccountOffer, AccountOffersRequest, AccountOffersResponse, AccountTxRequest, AccountTxResponse,
|
38
|
+
type Request = AccountChannelsRequest | AccountCurrenciesRequest | AccountInfoRequest | AccountLinesRequest | AccountNFTsRequest | AccountObjectsRequest | AccountOffersRequest | AccountTxRequest | GatewayBalancesRequest | NoRippleCheckRequest | LedgerRequest | LedgerClosedRequest | LedgerCurrentRequest | LedgerDataRequest | LedgerEntryRequest | SubmitRequest | SubmitMultisignedRequest | TransactionEntryRequest | TxRequest | BookOffersRequest | DepositAuthorizedRequest | PathFindRequest | RipplePathFindRequest | ChannelVerifyRequest | SubscribeRequest | UnsubscribeRequest | FeeRequest | ManifestRequest | ServerInfoRequest | ServerStateRequest | PingRequest | RandomRequest | NFTBuyOffersRequest | NFTSellOffersRequest | NFTInfoRequest | NFTHistoryRequest;
|
39
|
+
type Response = AccountChannelsResponse | AccountCurrenciesResponse | AccountInfoResponse | AccountLinesResponse | AccountNFTsResponse | AccountObjectsResponse | AccountOffersResponse | AccountTxResponse | GatewayBalancesResponse | NoRippleCheckResponse | LedgerResponse | LedgerClosedResponse | LedgerCurrentResponse | LedgerDataResponse | LedgerEntryResponse | SubmitResponse | SubmitMultisignedResponse | TransactionEntryResponse | TxResponse | BookOffersResponse | DepositAuthorizedResponse | PathFindResponse | RipplePathFindResponse | ChannelVerifyResponse | SubscribeResponse | UnsubscribeResponse | FeeResponse | ManifestResponse | ServerInfoResponse | ServerStateResponse | PingResponse | RandomResponse | NFTBuyOffersResponse | NFTSellOffersResponse | NFTInfoResponse | NFTHistoryResponse;
|
40
|
+
export { Request, Response, AccountChannelsRequest, AccountChannelsResponse, AccountCurrenciesRequest, AccountCurrenciesResponse, AccountInfoRequest, AccountInfoResponse, AccountLinesRequest, AccountLinesResponse, AccountNFTsRequest, AccountNFTsResponse, AccountObjectsRequest, AccountObjectsResponse, AccountOffer, AccountOffersRequest, AccountOffersResponse, AccountTxRequest, AccountTxResponse, GatewayBalancesRequest, GatewayBalancesResponse, NoRippleCheckRequest, NoRippleCheckResponse, LedgerRequest, LedgerResponse, LedgerClosedRequest, LedgerClosedResponse, LedgerCurrentRequest, LedgerCurrentResponse, LedgerDataRequest, LedgerDataResponse, LedgerEntryRequest, LedgerEntryResponse, SubmitRequest, SubmitResponse, SubmitMultisignedRequest, SubmitMultisignedResponse, TransactionEntryRequest, TransactionEntryResponse, TxRequest, TxResponse, BookOffersRequest, BookOffer, BookOffersResponse, DepositAuthorizedRequest, DepositAuthorizedResponse, PathFindRequest, PathFindCreateRequest, PathFindCloseRequest, PathFindStatusRequest, PathFindResponse, RipplePathFindRequest, RipplePathFindResponse, ChannelVerifyRequest, ChannelVerifyResponse, SubscribeRequest, SubscribeResponse, Stream, LedgerStream, ValidationStream, TransactionStream, PathFindStream, PeerStatusStream, OrderBookStream, ConsensusStream, UnsubscribeRequest, UnsubscribeResponse, FeeRequest, FeeResponse, ManifestRequest, ManifestResponse, ServerInfoRequest, ServerInfoResponse, ServerStateRequest, ServerStateResponse, PingRequest, PingResponse, RandomRequest, RandomResponse, ErrorResponse, NFTBuyOffersRequest, NFTBuyOffersResponse, NFTSellOffersRequest, NFTSellOffersResponse, NFTInfoRequest, NFTInfoResponse, NFTHistoryRequest, NFTHistoryResponse, };
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB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qB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EAEtB,oBAAoB,EACpB,qBAAqB,EAErB,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EAEnB,UAAU,EACV,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EAEnB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,aAAa,EAEb,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EAErB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,GACnB,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { LedgerIndex } from '../common';
|
2
2
|
import { LedgerEntry } from '../ledger';
|
3
3
|
import { BaseRequest, BaseResponse } from './baseMethod';
|
4
4
|
export interface LedgerEntryRequest extends BaseRequest {
|
@@ -35,21 +35,6 @@ export interface LedgerEntryRequest extends BaseRequest {
|
|
35
35
|
owner: string;
|
36
36
|
ticket_sequence: number;
|
37
37
|
} | string;
|
38
|
-
bridge_account?: string;
|
39
|
-
xchain_claim_id?: {
|
40
|
-
locking_chain_door: string;
|
41
|
-
locking_chain_issue: Currency;
|
42
|
-
issuing_chain_door: string;
|
43
|
-
issuing_chain_issue: Currency;
|
44
|
-
xchain_claim_id: string | number;
|
45
|
-
} | string;
|
46
|
-
xchain_create_account_claim_id?: {
|
47
|
-
locking_chain_door: string;
|
48
|
-
locking_chain_issue: Currency;
|
49
|
-
issuing_chain_door: string;
|
50
|
-
issuing_chain_issue: Currency;
|
51
|
-
xchain_create_account_claim_id: string | number;
|
52
|
-
} | string;
|
53
38
|
}
|
54
39
|
export interface LedgerEntryResponse extends BaseResponse {
|
55
40
|
result: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ledgerEntry.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/ledgerEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"ledgerEntry.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/ledgerEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAkBxD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,OAAO,EAAE,cAAc,CAAA;IAMvB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,YAAY,CAAC,EAAE,WAAW,CAAA;IAQ1B,KAAK,CAAC,EAAE,MAAM,CAAA;IAMd,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,KAAK,CAAC,EAAE,MAAM,CAAA;IAOd,eAAe,CAAC,EACZ;QAEE,KAAK,EAAE,MAAM,CAAA;QAEb,UAAU,EAAE,MAAM,CAAA;KACnB,GACD,MAAM,CAAA;IAOV,SAAS,CAAC,EACN;QAEE,SAAS,CAAC,EAAE,MAAM,CAAA;QAElB,QAAQ,CAAC,EAAE,MAAM,CAAA;QAEjB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,GACD,MAAM,CAAA;IAMV,MAAM,CAAC,EACH;QAEE,KAAK,EAAE,MAAM,CAAA;QAEb,GAAG,EAAE,MAAM,CAAA;KACZ,GACD,MAAM,CAAA;IAOV,KAAK,CAAC,EACF;QAEE,OAAO,EAAE,MAAM,CAAA;QAEf,GAAG,EAAE,MAAM,CAAA;KACZ,GACD,MAAM,CAAA;IAGV,eAAe,CAAC,EAAE,MAAM,CAAA;IAOxB,YAAY,CAAC,EAAE;QAKb,QAAQ,EAAE,MAAM,EAAE,CAAA;QAElB,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IAOD,MAAM,CAAC,EACH;QAEE,KAAK,EAAE,MAAM,CAAA;QAEb,eAAe,EAAE,MAAM,CAAA;KACxB,GACD,MAAM,CAAA;CACX;AAOD,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE;QAEN,KAAK,EAAE,MAAM,CAAA;QAEb,oBAAoB,EAAE,MAAM,CAAA;QAK5B,IAAI,CAAC,EAAE,WAAW,CAAA;QAElB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;CACF"}
|
@@ -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":";;;AAGA,6DAAuD;AAEvD,yCAA8C;AAE9C,oCAAwC;AAExC,MAAM,SAAS,GAAG,CAAC,CAAA;AAEnB,SAAS,MAAM,CAAC,GAAuB;IACrC,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,EAAE;QACpB,OAAO,KAAK,CAAA;KACb;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,IAA+B,CAAA;IAChD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CA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AY,KAAK,SAAS;QACjC,OAAO,MAAM,CAAC,YAAY,KAAK,QAAQ,EACvC;QACA,MAAM,IAAI,wBAAe,CAAC,uCAAuC,CAAC,CAAA;KACnE;AACH,CAAC;AAnFD,0DAmFC;AAQD,SAAgB,gBAAgB,CAAC,MAAe;IAC9C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACrB,OAAO,GAAG,CAAA;KACX;IACD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC9B,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;KAC1B;IACD,OAAO,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACjC,CAAC;AARD,4CAQC"}
|
@@ -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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AAwB,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"}
|