xrpl 2.12.0 → 3.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -5
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +18365 -75189
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/authorizeChannel.d.ts +3 -0
- package/dist/npm/Wallet/authorizeChannel.d.ts.map +1 -0
- package/dist/npm/Wallet/authorizeChannel.js +14 -0
- package/dist/npm/Wallet/authorizeChannel.js.map +1 -0
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +1 -4
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/Wallet/fundWallet.d.ts +17 -3
- package/dist/npm/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/Wallet/fundWallet.js +53 -78
- package/dist/npm/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/Wallet/index.d.ts.map +1 -1
- package/dist/npm/Wallet/index.js +24 -23
- package/dist/npm/Wallet/index.js.map +1 -1
- package/dist/npm/Wallet/signer.d.ts +2 -4
- package/dist/npm/Wallet/signer.d.ts.map +1 -1
- package/dist/npm/Wallet/signer.js +17 -13
- package/dist/npm/Wallet/signer.js.map +1 -1
- package/dist/npm/Wallet/walletFromSecretNumbers.js +2 -2
- package/dist/npm/Wallet/walletFromSecretNumbers.js.map +1 -1
- package/dist/npm/client/RequestManager.d.ts +3 -2
- package/dist/npm/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/client/RequestManager.js +25 -1
- package/dist/npm/client/RequestManager.js.map +1 -1
- package/dist/npm/client/connection.d.ts +8 -11
- package/dist/npm/client/connection.d.ts.map +1 -1
- package/dist/npm/client/connection.js +8 -54
- package/dist/npm/client/connection.js.map +1 -1
- package/dist/npm/client/index.d.ts +56 -78
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js +155 -42
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts +4 -2
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/errors.d.ts.map +1 -1
- package/dist/npm/errors.js +1 -2
- package/dist/npm/errors.js.map +1 -1
- package/dist/npm/index.d.ts +1 -1
- package/dist/npm/index.d.ts.map +1 -1
- package/dist/npm/index.js +1 -3
- package/dist/npm/index.js.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +2 -4
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts +2 -4
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js +1 -1
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts +9 -1
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts +2 -4
- package/dist/npm/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/models/ledger/Check.d.ts +2 -2
- package/dist/npm/models/ledger/Check.d.ts.map +1 -1
- package/dist/npm/models/ledger/DepositPreauth.d.ts +2 -4
- package/dist/npm/models/ledger/DepositPreauth.d.ts.map +1 -1
- package/dist/npm/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/models/ledger/Escrow.d.ts +2 -4
- package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/models/ledger/Ledger.d.ts +3 -3
- package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/models/ledger/NFTokenOffer.d.ts +2 -4
- package/dist/npm/models/ledger/NFTokenOffer.d.ts.map +1 -1
- package/dist/npm/models/ledger/NFTokenPage.d.ts +2 -4
- package/dist/npm/models/ledger/NFTokenPage.d.ts.map +1 -1
- package/dist/npm/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/models/ledger/Offer.d.ts +2 -4
- package/dist/npm/models/ledger/Offer.d.ts.map +1 -1
- package/dist/npm/models/ledger/Offer.js +1 -1
- package/dist/npm/models/ledger/Offer.js.map +1 -1
- package/dist/npm/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/models/ledger/RippleState.d.ts +2 -4
- package/dist/npm/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/models/ledger/RippleState.js +1 -1
- package/dist/npm/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/models/ledger/SignerList.d.ts +2 -4
- package/dist/npm/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/models/ledger/SignerList.js +1 -1
- package/dist/npm/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/models/ledger/Ticket.d.ts +2 -4
- package/dist/npm/models/ledger/Ticket.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +2 -4
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +2 -4
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +2 -2
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +4 -3
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/index.d.ts +12 -1
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +37 -7
- package/dist/npm/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerData.d.ts +2 -1
- package/dist/npm/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +2 -2
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/subscribe.d.ts +3 -0
- package/dist/npm/models/methods/subscribe.d.ts.map +1 -1
- 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/AMMDeposit.js +1 -1
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.js +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenAcceptOffer.d.ts +4 -0
- package/dist/npm/models/transactions/NFTokenAcceptOffer.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenAcceptOffer.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenBurn.d.ts +3 -3
- package/dist/npm/models/transactions/NFTokenBurn.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenBurn.js +2 -4
- package/dist/npm/models/transactions/NFTokenBurn.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenCancelOffer.d.ts +4 -0
- package/dist/npm/models/transactions/NFTokenCancelOffer.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenCancelOffer.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts +7 -3
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.js +3 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.d.ts +6 -2
- package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.js +2 -1
- package/dist/npm/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/models/transactions/UNLModify.d.ts +2 -1
- package/dist/npm/models/transactions/UNLModify.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js +1 -2
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +1 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +4 -4
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js +4 -4
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +1 -1
- package/dist/npm/models/transactions/XChainClaim.d.ts +2 -2
- package/dist/npm/models/transactions/XChainClaim.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainClaim.js +1 -1
- package/dist/npm/models/transactions/XChainClaim.js.map +1 -1
- package/dist/npm/models/transactions/XChainCommit.d.ts +2 -2
- package/dist/npm/models/transactions/XChainCommit.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCommit.js +1 -1
- package/dist/npm/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +2 -2
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.js +1 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.js +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.js.map +1 -1
- package/dist/npm/models/transactions/accountDelete.d.ts +2 -2
- package/dist/npm/models/transactions/accountDelete.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountDelete.js +2 -11
- package/dist/npm/models/transactions/accountDelete.js.map +1 -1
- package/dist/npm/models/transactions/accountSet.d.ts +2 -2
- package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountSet.js +3 -7
- package/dist/npm/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/models/transactions/checkCreate.d.ts +2 -2
- package/dist/npm/models/transactions/checkCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/checkCreate.js +2 -10
- package/dist/npm/models/transactions/checkCreate.js.map +1 -1
- package/dist/npm/models/transactions/common.d.ts +3 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +7 -1
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/enableAmendment.js +1 -1
- package/dist/npm/models/transactions/enableAmendment.js.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.d.ts +2 -2
- package/dist/npm/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.js +1 -6
- package/dist/npm/models/transactions/escrowCancel.js.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.d.ts +2 -2
- package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.js +2 -10
- package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/models/transactions/escrowFinish.d.ts +2 -2
- package/dist/npm/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowFinish.js +1 -6
- package/dist/npm/models/transactions/escrowFinish.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +1 -1
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/metadata.d.ts +9 -1
- package/dist/npm/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/models/transactions/metadata.js.map +1 -1
- package/dist/npm/models/transactions/offerCreate.js +1 -1
- package/dist/npm/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/models/transactions/payment.d.ts +7 -2
- package/dist/npm/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/models/transactions/payment.js +3 -10
- package/dist/npm/models/transactions/payment.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.js +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts +2 -2
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.js +2 -10
- package/dist/npm/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +8 -3
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/transactions/trustSet.js +1 -1
- package/dist/npm/models/transactions/trustSet.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +17 -28
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/src/bridgeTransfer.js +4 -3
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
- package/dist/npm/snippets/src/getTransaction.js +1 -1
- package/dist/npm/snippets/src/getTransaction.js.map +1 -1
- package/dist/npm/snippets/src/paths.js +2 -3
- package/dist/npm/snippets/src/paths.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -0
- package/dist/npm/src/Wallet/authorizeChannel.d.ts +3 -0
- package/dist/npm/src/Wallet/authorizeChannel.d.ts.map +1 -0
- package/dist/npm/src/Wallet/authorizeChannel.js +14 -0
- package/dist/npm/src/Wallet/authorizeChannel.js.map +1 -0
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +1 -4
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.d.ts +17 -3
- package/dist/npm/src/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.js +53 -78
- package/dist/npm/src/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/src/Wallet/index.d.ts.map +1 -1
- package/dist/npm/src/Wallet/index.js +24 -23
- package/dist/npm/src/Wallet/index.js.map +1 -1
- package/dist/npm/src/Wallet/signer.d.ts +2 -4
- package/dist/npm/src/Wallet/signer.d.ts.map +1 -1
- package/dist/npm/src/Wallet/signer.js +17 -13
- package/dist/npm/src/Wallet/signer.js.map +1 -1
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js +2 -2
- package/dist/npm/src/Wallet/walletFromSecretNumbers.js.map +1 -1
- package/dist/npm/src/client/RequestManager.d.ts +3 -2
- package/dist/npm/src/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/src/client/RequestManager.js +25 -1
- package/dist/npm/src/client/RequestManager.js.map +1 -1
- package/dist/npm/src/client/connection.d.ts +8 -11
- package/dist/npm/src/client/connection.d.ts.map +1 -1
- package/dist/npm/src/client/connection.js +8 -54
- package/dist/npm/src/client/connection.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +56 -78
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js +155 -42
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts +4 -2
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/errors.d.ts.map +1 -1
- package/dist/npm/src/errors.js +1 -2
- package/dist/npm/src/errors.js.map +1 -1
- package/dist/npm/src/index.d.ts +1 -1
- package/dist/npm/src/index.d.ts.map +1 -1
- package/dist/npm/src/index.js +1 -3
- package/dist/npm/src/index.js.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +2 -4
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +2 -4
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts +9 -1
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +2 -4
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Check.d.ts +2 -2
- package/dist/npm/src/models/ledger/Check.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DepositPreauth.d.ts +2 -4
- package/dist/npm/src/models/ledger/DepositPreauth.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Escrow.d.ts +2 -4
- package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Ledger.d.ts +3 -3
- package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts +2 -4
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts +2 -4
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Offer.d.ts +2 -4
- package/dist/npm/src/models/ledger/Offer.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Offer.js +1 -1
- package/dist/npm/src/models/ledger/Offer.js.map +1 -1
- package/dist/npm/src/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/RippleState.d.ts +2 -4
- package/dist/npm/src/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/RippleState.js +1 -1
- package/dist/npm/src/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.d.ts +2 -4
- package/dist/npm/src/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.js +1 -1
- package/dist/npm/src/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/src/models/ledger/Ticket.d.ts +2 -4
- package/dist/npm/src/models/ledger/Ticket.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +2 -4
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +2 -4
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +2 -2
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +4 -3
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/index.d.ts +12 -1
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +37 -7
- package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerData.d.ts +2 -1
- package/dist/npm/src/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +2 -2
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/subscribe.d.ts +3 -0
- package/dist/npm/src/models/methods/subscribe.d.ts.map +1 -1
- 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/AMMDeposit.js +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.js +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenAcceptOffer.d.ts +4 -0
- package/dist/npm/src/models/transactions/NFTokenAcceptOffer.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenAcceptOffer.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenBurn.d.ts +3 -3
- package/dist/npm/src/models/transactions/NFTokenBurn.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenBurn.js +2 -4
- package/dist/npm/src/models/transactions/NFTokenBurn.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCancelOffer.d.ts +4 -0
- package/dist/npm/src/models/transactions/NFTokenCancelOffer.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCancelOffer.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts +7 -3
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js +3 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts +6 -2
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.js +2 -1
- package/dist/npm/src/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/src/models/transactions/UNLModify.d.ts +2 -1
- package/dist/npm/src/models/transactions/UNLModify.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +1 -2
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +4 -4
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +4 -4
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainClaim.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainClaim.js +1 -1
- package/dist/npm/src/models/transactions/XChainClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCommit.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCommit.js +1 -1
- package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js +1 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.js.map +1 -1
- package/dist/npm/src/models/transactions/accountDelete.d.ts +2 -2
- package/dist/npm/src/models/transactions/accountDelete.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountDelete.js +2 -11
- package/dist/npm/src/models/transactions/accountDelete.js.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.d.ts +2 -2
- package/dist/npm/src/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.js +3 -7
- package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/src/models/transactions/checkCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/checkCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/checkCreate.js +2 -10
- package/dist/npm/src/models/transactions/checkCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/common.d.ts +3 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +7 -1
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/enableAmendment.js +1 -1
- package/dist/npm/src/models/transactions/enableAmendment.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.d.ts +2 -2
- package/dist/npm/src/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.js +1 -6
- package/dist/npm/src/models/transactions/escrowCancel.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.js +2 -10
- package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowFinish.d.ts +2 -2
- package/dist/npm/src/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowFinish.js +1 -6
- package/dist/npm/src/models/transactions/escrowFinish.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +1 -1
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/metadata.d.ts +9 -1
- package/dist/npm/src/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/metadata.js.map +1 -1
- package/dist/npm/src/models/transactions/offerCreate.js +1 -1
- package/dist/npm/src/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/payment.d.ts +7 -2
- package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/payment.js +3 -10
- package/dist/npm/src/models/transactions/payment.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.js +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.js +2 -10
- package/dist/npm/src/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +8 -3
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/transactions/trustSet.js +1 -1
- package/dist/npm/src/models/transactions/trustSet.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +17 -28
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts +6 -2
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +9 -28
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/sugar/balances.d.ts +2 -17
- package/dist/npm/src/sugar/balances.d.ts.map +1 -1
- package/dist/npm/src/sugar/balances.js +2 -60
- package/dist/npm/src/sugar/balances.js.map +1 -1
- package/dist/npm/src/sugar/getOrderbook.d.ts +19 -5
- package/dist/npm/src/sugar/getOrderbook.d.ts.map +1 -1
- package/dist/npm/src/sugar/getOrderbook.js +72 -53
- package/dist/npm/src/sugar/getOrderbook.js.map +1 -1
- package/dist/npm/src/sugar/index.d.ts +0 -4
- package/dist/npm/src/sugar/index.d.ts.map +1 -1
- package/dist/npm/src/sugar/index.js +0 -13
- package/dist/npm/src/sugar/index.js.map +1 -1
- package/dist/npm/src/sugar/submit.d.ts +6 -9
- package/dist/npm/src/sugar/submit.d.ts.map +1 -1
- package/dist/npm/src/sugar/submit.js +5 -22
- package/dist/npm/src/sugar/submit.js.map +1 -1
- package/dist/npm/src/utils/collections.d.ts +7 -0
- package/dist/npm/src/utils/collections.d.ts.map +1 -0
- package/dist/npm/src/utils/collections.js +22 -0
- package/dist/npm/src/utils/collections.js.map +1 -0
- package/dist/npm/src/utils/getBalanceChanges.d.ts.map +1 -1
- package/dist/npm/src/utils/getBalanceChanges.js +3 -4
- package/dist/npm/src/utils/getBalanceChanges.js.map +1 -1
- package/dist/npm/src/utils/getNFTokenID.d.ts.map +1 -1
- package/dist/npm/src/utils/getNFTokenID.js +8 -8
- package/dist/npm/src/utils/getNFTokenID.js.map +1 -1
- package/dist/npm/src/utils/hashes/SHAMap/node.js +1 -1
- package/dist/npm/src/utils/hashes/SHAMap/node.js.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.d.ts +2 -1
- package/dist/npm/src/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/src/utils/hashes/sha512Half.d.ts.map +1 -1
- package/dist/npm/src/utils/hashes/sha512Half.js +4 -7
- package/dist/npm/src/utils/hashes/sha512Half.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts +6 -2
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +9 -28
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/balances.d.ts +2 -17
- package/dist/npm/sugar/balances.d.ts.map +1 -1
- package/dist/npm/sugar/balances.js +2 -60
- package/dist/npm/sugar/balances.js.map +1 -1
- package/dist/npm/sugar/getOrderbook.d.ts +19 -5
- package/dist/npm/sugar/getOrderbook.d.ts.map +1 -1
- package/dist/npm/sugar/getOrderbook.js +72 -53
- package/dist/npm/sugar/getOrderbook.js.map +1 -1
- package/dist/npm/sugar/index.d.ts +0 -4
- package/dist/npm/sugar/index.d.ts.map +1 -1
- package/dist/npm/sugar/index.js +0 -13
- package/dist/npm/sugar/index.js.map +1 -1
- package/dist/npm/sugar/submit.d.ts +6 -9
- package/dist/npm/sugar/submit.d.ts.map +1 -1
- package/dist/npm/sugar/submit.js +5 -22
- package/dist/npm/sugar/submit.js.map +1 -1
- package/dist/npm/utils/collections.d.ts +7 -0
- package/dist/npm/utils/collections.d.ts.map +1 -0
- package/dist/npm/utils/collections.js +22 -0
- package/dist/npm/utils/collections.js.map +1 -0
- package/dist/npm/utils/getBalanceChanges.d.ts.map +1 -1
- package/dist/npm/utils/getBalanceChanges.js +3 -4
- package/dist/npm/utils/getBalanceChanges.js.map +1 -1
- package/dist/npm/utils/getNFTokenID.d.ts.map +1 -1
- package/dist/npm/utils/getNFTokenID.js +8 -8
- package/dist/npm/utils/getNFTokenID.js.map +1 -1
- package/dist/npm/utils/hashes/SHAMap/node.js +1 -1
- package/dist/npm/utils/hashes/SHAMap/node.js.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.d.ts +2 -1
- package/dist/npm/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/utils/hashes/sha512Half.d.ts.map +1 -1
- package/dist/npm/utils/hashes/sha512Half.js +4 -7
- package/dist/npm/utils/hashes/sha512Half.js.map +1 -1
- package/package.json +32 -25
- package/src/Wallet/authorizeChannel.ts +26 -0
- package/src/Wallet/defaultFaucets.ts +0 -4
- package/src/Wallet/fundWallet.ts +151 -212
- package/src/Wallet/index.ts +28 -25
- package/src/Wallet/signer.ts +32 -43
- package/src/Wallet/walletFromSecretNumbers.ts +1 -1
- package/src/client/RequestManager.ts +40 -14
- package/src/client/connection.ts +20 -89
- package/src/client/index.ts +704 -269
- package/src/client/partialPayment.ts +20 -10
- package/src/errors.ts +1 -3
- package/src/index.ts +1 -3
- package/src/models/ledger/AMM.ts +2 -10
- package/src/models/ledger/AccountRoot.ts +2 -12
- package/src/models/ledger/Amendments.ts +4 -2
- package/src/models/ledger/BaseLedgerEntry.ts +25 -1
- package/src/models/ledger/Bridge.ts +2 -14
- package/src/models/ledger/Check.ts +2 -2
- package/src/models/ledger/DepositPreauth.ts +4 -12
- package/src/models/ledger/DirectoryNode.ts +4 -2
- package/src/models/ledger/Escrow.ts +2 -12
- package/src/models/ledger/FeeSettings.ts +2 -2
- package/src/models/ledger/Ledger.ts +10 -4
- package/src/models/ledger/LedgerEntry.ts +22 -1
- package/src/models/ledger/LedgerHashes.ts +4 -2
- package/src/models/ledger/NFTokenOffer.ts +2 -4
- package/src/models/ledger/NFTokenPage.ts +2 -4
- package/src/models/ledger/NegativeUNL.ts +4 -2
- package/src/models/ledger/Offer.ts +2 -12
- package/src/models/ledger/PayChannel.ts +2 -12
- package/src/models/ledger/RippleState.ts +2 -12
- package/src/models/ledger/SignerList.ts +2 -12
- package/src/models/ledger/Ticket.ts +2 -12
- package/src/models/ledger/XChainOwnedClaimID.ts +4 -12
- package/src/models/ledger/XChainOwnedCreateAccountClaimID.ts +3 -12
- package/src/models/ledger/index.ts +2 -1
- package/src/models/methods/accountObjects.ts +10 -44
- package/src/models/methods/index.ts +175 -0
- package/src/models/methods/ledger.ts +154 -20
- package/src/models/methods/ledgerData.ts +5 -1
- package/src/models/methods/ledgerEntry.ts +2 -2
- package/src/models/methods/subscribe.ts +36 -0
- package/src/models/methods/tx.ts +6 -3
- package/src/models/transactions/NFTokenAcceptOffer.ts +6 -0
- package/src/models/transactions/NFTokenBurn.ts +13 -9
- package/src/models/transactions/NFTokenCancelOffer.ts +6 -0
- package/src/models/transactions/NFTokenCreateOffer.ts +14 -2
- package/src/models/transactions/NFTokenMint.ts +17 -2
- package/src/models/transactions/UNLModify.ts +3 -1
- package/src/models/transactions/XChainAccountCreateCommit.ts +4 -4
- package/src/models/transactions/XChainAddAccountCreateAttestation.ts +10 -8
- package/src/models/transactions/XChainAddClaimAttestation.ts +10 -8
- package/src/models/transactions/XChainClaim.ts +4 -2
- package/src/models/transactions/XChainCommit.ts +4 -2
- package/src/models/transactions/XChainCreateClaimID.ts +4 -3
- package/src/models/transactions/accountDelete.ts +12 -18
- package/src/models/transactions/accountSet.ts +10 -11
- package/src/models/transactions/checkCreate.ts +8 -15
- package/src/models/transactions/common.ts +20 -1
- package/src/models/transactions/escrowCancel.ts +9 -9
- package/src/models/transactions/escrowCreate.ts +12 -16
- package/src/models/transactions/escrowFinish.ts +9 -9
- package/src/models/transactions/index.ts +6 -1
- package/src/models/transactions/metadata.ts +31 -1
- package/src/models/transactions/payment.ts +14 -14
- package/src/models/transactions/paymentChannelCreate.ts +12 -21
- package/src/models/transactions/transaction.ts +11 -4
- package/src/models/utils/flags.ts +18 -28
- package/src/sugar/autofill.ts +84 -88
- package/src/sugar/balances.ts +8 -116
- package/src/sugar/getOrderbook.ts +138 -61
- package/src/sugar/index.ts +0 -8
- package/src/sugar/submit.ts +114 -132
- package/src/utils/collections.ts +53 -0
- package/src/utils/getBalanceChanges.ts +2 -3
- package/src/utils/getNFTokenID.ts +18 -16
- package/src/utils/hashes/hashLedger.ts +4 -1
- package/src/utils/hashes/sha512Half.ts +4 -7
- package/dist/npm/client/BroadcastClient.d.ts +0 -7
- package/dist/npm/client/BroadcastClient.d.ts.map +0 -1
- package/dist/npm/client/BroadcastClient.js +0 -49
- package/dist/npm/client/BroadcastClient.js.map +0 -1
- package/dist/npm/client/WSWrapper.d.ts +0 -25
- package/dist/npm/client/WSWrapper.d.ts.map +0 -1
- package/dist/npm/client/WSWrapper.js +0 -44
- package/dist/npm/client/WSWrapper.js.map +0 -1
- package/dist/npm/src/client/BroadcastClient.d.ts +0 -7
- package/dist/npm/src/client/BroadcastClient.d.ts.map +0 -1
- package/dist/npm/src/client/BroadcastClient.js +0 -49
- package/dist/npm/src/client/BroadcastClient.js.map +0 -1
- package/dist/npm/src/client/WSWrapper.d.ts +0 -25
- package/dist/npm/src/client/WSWrapper.d.ts.map +0 -1
- package/dist/npm/src/client/WSWrapper.js +0 -44
- package/dist/npm/src/client/WSWrapper.js.map +0 -1
- package/dist/npm/src/sugar/getLedgerIndex.d.ts +0 -3
- package/dist/npm/src/sugar/getLedgerIndex.d.ts.map +0 -1
- package/dist/npm/src/sugar/getLedgerIndex.js +0 -22
- package/dist/npm/src/sugar/getLedgerIndex.js.map +0 -1
- package/dist/npm/sugar/getLedgerIndex.d.ts +0 -3
- package/dist/npm/sugar/getLedgerIndex.d.ts.map +0 -1
- package/dist/npm/sugar/getLedgerIndex.js +0 -22
- package/dist/npm/sugar/getLedgerIndex.js.map +0 -1
- package/src/client/BroadcastClient.ts +0 -84
- package/src/client/WSWrapper.ts +0 -106
- package/src/sugar/getLedgerIndex.ts +0 -15
@@ -3,14 +3,18 @@ import { decode } from 'ripple-binary-codec'
|
|
3
3
|
|
4
4
|
import type {
|
5
5
|
AccountTxResponse,
|
6
|
-
Response,
|
7
|
-
ResponseWarning,
|
8
6
|
TransactionEntryResponse,
|
9
7
|
TransactionStream,
|
10
8
|
TxResponse,
|
11
9
|
} from '..'
|
12
10
|
import type { Amount } from '../models/common'
|
13
|
-
import {
|
11
|
+
import type { RequestResponseMap } from '../models/methods'
|
12
|
+
import { BaseRequest, BaseResponse } from '../models/methods/baseMethod'
|
13
|
+
import {
|
14
|
+
PaymentFlags,
|
15
|
+
PseudoTransaction,
|
16
|
+
Transaction,
|
17
|
+
} from '../models/transactions'
|
14
18
|
import type { TransactionMetadata } from '../models/transactions/metadata'
|
15
19
|
import { isFlagEnabled } from '../models/utils'
|
16
20
|
|
@@ -36,7 +40,7 @@ function amountsEqual(amt1: Amount, amt2: Amount): boolean {
|
|
36
40
|
}
|
37
41
|
|
38
42
|
function isPartialPayment(
|
39
|
-
tx?: Transaction,
|
43
|
+
tx?: Transaction | PseudoTransaction,
|
40
44
|
metadata?: TransactionMetadata | string,
|
41
45
|
): boolean {
|
42
46
|
if (tx == null || metadata == null || tx.TransactionType !== 'Payment') {
|
@@ -86,7 +90,10 @@ function accountTxHasPartialPayment(response: AccountTxResponse): boolean {
|
|
86
90
|
return foo
|
87
91
|
}
|
88
92
|
|
89
|
-
function hasPartialPayment
|
93
|
+
function hasPartialPayment<R extends BaseRequest, T = RequestResponseMap<R>>(
|
94
|
+
command: string,
|
95
|
+
response: T,
|
96
|
+
): boolean {
|
90
97
|
/* eslint-disable @typescript-eslint/consistent-type-assertions -- Request type is known at runtime from command */
|
91
98
|
switch (command) {
|
92
99
|
case 'tx':
|
@@ -107,12 +114,13 @@ function hasPartialPayment(command: string, response: Response): boolean {
|
|
107
114
|
* @param command - Command from the request, tells us what response to expect.
|
108
115
|
* @param response - Response to check for a partial payment.
|
109
116
|
*/
|
110
|
-
export function handlePartialPayment
|
111
|
-
|
112
|
-
|
113
|
-
): void {
|
117
|
+
export function handlePartialPayment<
|
118
|
+
R extends BaseRequest,
|
119
|
+
T = RequestResponseMap<R>,
|
120
|
+
>(command: string, response: T): void {
|
114
121
|
if (hasPartialPayment(command, response)) {
|
115
|
-
|
122
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- We are checking dynamically and safely.
|
123
|
+
const warnings = (response as BaseResponse).warnings ?? []
|
116
124
|
|
117
125
|
const warning = {
|
118
126
|
id: WARN_PARTIAL_PAYMENT_CODE,
|
@@ -121,6 +129,8 @@ export function handlePartialPayment(
|
|
121
129
|
|
122
130
|
warnings.push(warning)
|
123
131
|
|
132
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- We are checking dynamically and safely.
|
133
|
+
// @ts-expect-error -- We are checking dynamically and safely.
|
124
134
|
response.warnings = warnings
|
125
135
|
}
|
126
136
|
}
|
package/src/errors.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
/* eslint-disable max-classes-per-file -- Errors can be defined in the same file */
|
2
|
-
import { inspect } from 'util'
|
3
|
-
|
4
2
|
/**
|
5
3
|
* Base Error class for xrpl.js. All Errors thrown by xrpl.js should throw
|
6
4
|
* XrplErrors.
|
@@ -38,7 +36,7 @@ class XrplError extends Error {
|
|
38
36
|
public toString(): string {
|
39
37
|
let result = `[${this.name}(${this.message}`
|
40
38
|
if (this.data) {
|
41
|
-
result += `, ${
|
39
|
+
result += `, ${JSON.stringify(this.data)}`
|
42
40
|
}
|
43
41
|
result += ')]'
|
44
42
|
return result
|
package/src/index.ts
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
// Broadcast client is experimental
|
2
|
-
export { BroadcastClient } from './client/BroadcastClient'
|
3
|
-
|
4
1
|
export { Client, ClientOptions } from './client'
|
5
2
|
|
6
3
|
export * from './models'
|
@@ -11,6 +8,7 @@ export { default as ECDSA } from './ECDSA'
|
|
11
8
|
|
12
9
|
export * from './errors'
|
13
10
|
|
11
|
+
export { FundingOptions } from './Wallet/fundWallet'
|
14
12
|
export { Wallet } from './Wallet'
|
15
13
|
|
16
14
|
export { walletFromSecretNumbers } from './Wallet/walletFromSecretNumbers'
|
package/src/models/ledger/AMM.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AuthAccount, Currency, IssuedCurrencyAmount } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
export interface VoteSlot {
|
6
6
|
VoteEntry: {
|
@@ -15,7 +15,7 @@ export interface VoteSlot {
|
|
15
15
|
*
|
16
16
|
* @category Ledger Entries
|
17
17
|
*/
|
18
|
-
export default interface AMM extends BaseLedgerEntry {
|
18
|
+
export default interface AMM extends BaseLedgerEntry, MissingPreviousTxnID {
|
19
19
|
LedgerEntryType: 'AMM'
|
20
20
|
/**
|
21
21
|
* The address of the special account that holds this AMM's assets.
|
@@ -75,12 +75,4 @@ export default interface AMM extends BaseLedgerEntry {
|
|
75
75
|
* type, so this value is always 0.
|
76
76
|
*/
|
77
77
|
Flags: 0
|
78
|
-
/**
|
79
|
-
* This field is missing on AMM but is present on all other account_object returned objects.
|
80
|
-
*/
|
81
|
-
PreviousTxnID: never
|
82
|
-
/**
|
83
|
-
* This field is missing on AMM but is present on all other account_object returned objects.
|
84
|
-
*/
|
85
|
-
PreviousTxnLgrSeq: never
|
86
78
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The AccountRoot object type describes a single account, its settings, and
|
@@ -6,7 +6,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
6
6
|
*
|
7
7
|
* @category Ledger Entries
|
8
8
|
*/
|
9
|
-
export default interface AccountRoot extends BaseLedgerEntry {
|
9
|
+
export default interface AccountRoot extends BaseLedgerEntry, HasPreviousTxnID {
|
10
10
|
LedgerEntryType: 'AccountRoot'
|
11
11
|
/** The identifying (classic) address of this account. */
|
12
12
|
Account: string
|
@@ -19,16 +19,6 @@ export default interface AccountRoot extends BaseLedgerEntry {
|
|
19
19
|
* to its owner reserve.
|
20
20
|
*/
|
21
21
|
OwnerCount: number
|
22
|
-
/**
|
23
|
-
* The identifying hash of the transaction that most recently modified this
|
24
|
-
* object.
|
25
|
-
*/
|
26
|
-
PreviousTxnID: string
|
27
|
-
/**
|
28
|
-
* The index of the ledger that contains the transaction that most recently
|
29
|
-
* modified this object.
|
30
|
-
*/
|
31
|
-
PreviousTxnLgrSeq: number
|
32
22
|
/** The sequence number of the next valid transaction for this account. */
|
33
23
|
Sequence: number
|
34
24
|
/**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The unique id for the Amendments object https://xrpl.org/amendments-object.html#amendments-id-format
|
@@ -24,7 +24,9 @@ export interface Majority {
|
|
24
24
|
*
|
25
25
|
* @category Ledger Entries
|
26
26
|
*/
|
27
|
-
export default interface Amendments
|
27
|
+
export default interface Amendments
|
28
|
+
extends BaseLedgerEntry,
|
29
|
+
MissingPreviousTxnID {
|
28
30
|
LedgerEntryType: 'Amendments'
|
29
31
|
/**
|
30
32
|
* Array of 256-bit amendment IDs for all currently-enabled amendments. If
|
@@ -1,3 +1,27 @@
|
|
1
|
-
export
|
1
|
+
export interface BaseLedgerEntry {
|
2
2
|
index: string
|
3
3
|
}
|
4
|
+
|
5
|
+
export interface HasPreviousTxnID {
|
6
|
+
/**
|
7
|
+
* The identifying hash of the transaction that most recently modified this
|
8
|
+
* object.
|
9
|
+
*/
|
10
|
+
PreviousTxnID: string
|
11
|
+
/**
|
12
|
+
* The index of the ledger that contains the transaction that most recently
|
13
|
+
* modified this object.
|
14
|
+
*/
|
15
|
+
PreviousTxnLgrSeq: number
|
16
|
+
}
|
17
|
+
|
18
|
+
export interface MissingPreviousTxnID {
|
19
|
+
/**
|
20
|
+
* This field is missing on this object but is present on most other returned objects.
|
21
|
+
*/
|
22
|
+
PreviousTxnID: never
|
23
|
+
/**
|
24
|
+
* This field is missing on this object but is present on most other returned objects.
|
25
|
+
*/
|
26
|
+
PreviousTxnLgrSeq: never
|
27
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
/**
|
6
6
|
* A Bridge objects represents a cross-chain bridge and includes information about
|
@@ -9,7 +9,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
9
9
|
*
|
10
10
|
* @category Ledger Entries
|
11
11
|
*/
|
12
|
-
export default interface Bridge extends BaseLedgerEntry {
|
12
|
+
export default interface Bridge extends BaseLedgerEntry, HasPreviousTxnID {
|
13
13
|
LedgerEntryType: 'Bridge'
|
14
14
|
|
15
15
|
/** The door account that owns the bridge. */
|
@@ -69,16 +69,4 @@ export default interface Bridge extends BaseLedgerEntry {
|
|
69
69
|
* object, in case the directory consists of multiple pages.
|
70
70
|
*/
|
71
71
|
OwnerNode: string
|
72
|
-
|
73
|
-
/**
|
74
|
-
* The identifying hash of the transaction that most recently modified this
|
75
|
-
* object.
|
76
|
-
*/
|
77
|
-
PreviousTxnID: string
|
78
|
-
|
79
|
-
/**
|
80
|
-
* The index of the ledger that contains the transaction that most recently
|
81
|
-
* modified this object.
|
82
|
-
*/
|
83
|
-
PreviousTxnLgrSeq: number
|
84
72
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Amount } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
/**
|
6
6
|
* A Check object describes a check, similar to a paper personal check, which
|
@@ -8,7 +8,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
8
8
|
*
|
9
9
|
* @category Ledger Entries
|
10
10
|
*/
|
11
|
-
export default interface Check extends BaseLedgerEntry {
|
11
|
+
export default interface Check extends BaseLedgerEntry, HasPreviousTxnID {
|
12
12
|
LedgerEntryType: 'Check'
|
13
13
|
/** The sender of the Check. Cashing the Check debits this address's balance. */
|
14
14
|
Account: string
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* A DepositPreauth object tracks a preauthorization from one account to
|
@@ -6,7 +6,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
6
6
|
*
|
7
7
|
* @category Ledger Entries
|
8
8
|
*/
|
9
|
-
export default interface DepositPreauth
|
9
|
+
export default interface DepositPreauth
|
10
|
+
extends BaseLedgerEntry,
|
11
|
+
HasPreviousTxnID {
|
10
12
|
LedgerEntryType: 'DepositPreauth'
|
11
13
|
/** The account that granted the preauthorization. */
|
12
14
|
Account: string
|
@@ -22,14 +24,4 @@ export default interface DepositPreauth extends BaseLedgerEntry {
|
|
22
24
|
* object, in case the directory consists of multiple pages.
|
23
25
|
*/
|
24
26
|
OwnerNode: string
|
25
|
-
/**
|
26
|
-
* The identifying hash of the transaction that most recently modified this
|
27
|
-
* object.
|
28
|
-
*/
|
29
|
-
PreviousTxnID: string
|
30
|
-
/**
|
31
|
-
* The index of the ledger that contains the transaction that most recently
|
32
|
-
* modified this object.
|
33
|
-
*/
|
34
|
-
PreviousTxnLgrSeq: number
|
35
27
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The DirectoryNode object type provides a list of links to other objects in
|
@@ -6,7 +6,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
6
6
|
*
|
7
7
|
* @category Ledger Entries
|
8
8
|
*/
|
9
|
-
export default interface DirectoryNode
|
9
|
+
export default interface DirectoryNode
|
10
|
+
extends BaseLedgerEntry,
|
11
|
+
MissingPreviousTxnID {
|
10
12
|
LedgerEntryType: 'DirectoryNode'
|
11
13
|
/**
|
12
14
|
* A bit-map of boolean flags enabled for this directory. Currently, the
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The Escrow object type represents a held payment of XRP waiting to be
|
@@ -6,7 +6,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
6
6
|
*
|
7
7
|
* @category Ledger Entries
|
8
8
|
*/
|
9
|
-
export default interface Escrow extends BaseLedgerEntry {
|
9
|
+
export default interface Escrow extends BaseLedgerEntry, HasPreviousTxnID {
|
10
10
|
LedgerEntryType: 'Escrow'
|
11
11
|
/**
|
12
12
|
* The address of the owner (sender) of this held payment. This is the
|
@@ -61,14 +61,4 @@ export default interface Escrow extends BaseLedgerEntry {
|
|
61
61
|
* this object, in case the directory consists of multiple pages.
|
62
62
|
*/
|
63
63
|
DestinationNode?: string
|
64
|
-
/**
|
65
|
-
* The identifying hash of the transaction that most recently modified this
|
66
|
-
* object.
|
67
|
-
*/
|
68
|
-
PreviousTxnID: string
|
69
|
-
/**
|
70
|
-
* The index of the ledger that contains the transaction that most recently
|
71
|
-
* modified this object.
|
72
|
-
*/
|
73
|
-
PreviousTxnLgrSeq: number
|
74
64
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The unique id for the FeeSettings object https://xrpl.org/feesettings.html#feesettings-id-format
|
@@ -26,7 +26,7 @@ export interface FeeSettingsPostAmendmentFields {
|
|
26
26
|
ReserveIncrementDrops: string
|
27
27
|
}
|
28
28
|
|
29
|
-
export interface FeeSettingsBase extends BaseLedgerEntry {
|
29
|
+
export interface FeeSettingsBase extends BaseLedgerEntry, MissingPreviousTxnID {
|
30
30
|
LedgerEntryType: 'FeeSettings'
|
31
31
|
/**
|
32
32
|
* A bit-map of boolean flags for this object. No flags are defined for this type.
|
@@ -1,6 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
PseudoTransaction,
|
3
|
+
Transaction,
|
4
|
+
TransactionMetadata,
|
5
|
+
} from '../transactions'
|
2
6
|
|
3
|
-
import LedgerEntry from './LedgerEntry'
|
7
|
+
import { LedgerEntry } from './LedgerEntry'
|
4
8
|
|
5
9
|
/**
|
6
10
|
* A ledger is a block of transactions and shared state data. It has a unique
|
@@ -11,7 +15,7 @@ import LedgerEntry from './LedgerEntry'
|
|
11
15
|
export default interface Ledger {
|
12
16
|
/** The SHA-512Half of this ledger's state tree information. */
|
13
17
|
account_hash: string
|
14
|
-
/** All the state information in this ledger. */
|
18
|
+
/** All the state information in this ledger. Admin only. */
|
15
19
|
accountState?: LedgerEntry[]
|
16
20
|
/** A bit-map of flags relating to the closing of this ledger. */
|
17
21
|
close_flags: number
|
@@ -61,5 +65,7 @@ export default interface Ledger {
|
|
61
65
|
* either JSON or binary depending on whether the request specified binary
|
62
66
|
* as true.
|
63
67
|
*/
|
64
|
-
transactions?: Array<
|
68
|
+
transactions?: Array<
|
69
|
+
(Transaction | PseudoTransaction) & { metaData?: TransactionMetadata }
|
70
|
+
>
|
65
71
|
}
|
@@ -37,4 +37,25 @@ type LedgerEntry =
|
|
37
37
|
| XChainOwnedClaimID
|
38
38
|
| XChainOwnedCreateAccountClaimID
|
39
39
|
|
40
|
-
|
40
|
+
type LedgerEntryFilter =
|
41
|
+
| 'account'
|
42
|
+
| 'amendments'
|
43
|
+
| 'amm'
|
44
|
+
| 'bridge'
|
45
|
+
| 'check'
|
46
|
+
| 'deposit_preauth'
|
47
|
+
| 'directory'
|
48
|
+
| 'escrow'
|
49
|
+
| 'fee'
|
50
|
+
| 'hashes'
|
51
|
+
| 'nft_offer'
|
52
|
+
| 'nft_page'
|
53
|
+
| 'offer'
|
54
|
+
| 'payment_channel'
|
55
|
+
| 'signer_list'
|
56
|
+
| 'state'
|
57
|
+
| 'ticket'
|
58
|
+
| 'xchain_owned_create_account_claim_id'
|
59
|
+
| 'xchain_owned_claim_id'
|
60
|
+
|
61
|
+
export { LedgerEntry, LedgerEntryFilter }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The LedgerHashes objects exist to make it possible to look up a previous
|
@@ -7,7 +7,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
7
7
|
*
|
8
8
|
* @category Ledger Entries
|
9
9
|
*/
|
10
|
-
export default interface LedgerHashes
|
10
|
+
export default interface LedgerHashes
|
11
|
+
extends BaseLedgerEntry,
|
12
|
+
MissingPreviousTxnID {
|
11
13
|
LedgerEntryType: 'LedgerHashes'
|
12
14
|
/** The Ledger Index of the last entry in this object's Hashes array. */
|
13
15
|
LastLedgerSequence?: number
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Amount } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
|
-
export interface NFTokenOffer extends BaseLedgerEntry {
|
5
|
+
export interface NFTokenOffer extends BaseLedgerEntry, HasPreviousTxnID {
|
6
6
|
LedgerEntryType: 'NFTokenOffer'
|
7
7
|
Amount: Amount
|
8
8
|
Destination?: string
|
@@ -11,6 +11,4 @@ export interface NFTokenOffer extends BaseLedgerEntry {
|
|
11
11
|
NFTokenOfferNode?: string
|
12
12
|
Owner: string
|
13
13
|
OwnerNode?: string
|
14
|
-
PreviousTxnID: string
|
15
|
-
PreviousTxnLgrSeq: number
|
16
14
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
export interface NFToken {
|
4
4
|
NFToken: {
|
@@ -10,11 +10,9 @@ export interface NFToken {
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
|
-
export interface NFTokenPage extends BaseLedgerEntry {
|
13
|
+
export interface NFTokenPage extends BaseLedgerEntry, HasPreviousTxnID {
|
14
14
|
LedgerEntryType: 'NFTokenPage'
|
15
15
|
NextPageMin?: string
|
16
16
|
NFTokens: NFToken[]
|
17
17
|
PreviousPageMin?: string
|
18
|
-
PreviousTxnID?: string
|
19
|
-
PreviousTxnLgrSeq?: number
|
20
18
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The unique id for the nUNL object https://xrpl.org/negativeunl.html#negativeunl-id-format
|
@@ -12,7 +12,9 @@ export const NEGATIVE_UNL_ID =
|
|
12
12
|
*
|
13
13
|
* @category Ledger Entries
|
14
14
|
*/
|
15
|
-
export default interface NegativeUNL
|
15
|
+
export default interface NegativeUNL
|
16
|
+
extends BaseLedgerEntry,
|
17
|
+
MissingPreviousTxnID {
|
16
18
|
LedgerEntryType: 'NegativeUNL'
|
17
19
|
/**
|
18
20
|
* A list of trusted validators that are currently disabled.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Amount } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
|
-
export default interface Offer extends BaseLedgerEntry {
|
5
|
+
export default interface Offer extends BaseLedgerEntry, HasPreviousTxnID {
|
6
6
|
LedgerEntryType: 'Offer'
|
7
7
|
/** A bit-map of boolean flags enabled for this Offer. */
|
8
8
|
Flags: number
|
@@ -32,16 +32,6 @@ export default interface Offer extends BaseLedgerEntry {
|
|
32
32
|
* in case the directory consists of multiple pages.
|
33
33
|
*/
|
34
34
|
OwnerNode: string
|
35
|
-
/**
|
36
|
-
* The identifying hash of the transaction that most recently modified this
|
37
|
-
* object.
|
38
|
-
*/
|
39
|
-
PreviousTxnID: string
|
40
|
-
/**
|
41
|
-
* The index of the ledger that contains the transaction that most recently
|
42
|
-
* modified this object.
|
43
|
-
*/
|
44
|
-
PreviousTxnLgrSeq: number
|
45
35
|
/** The time this Offer expires, in seconds since the Ripple Epoch. */
|
46
36
|
Expiration?: number
|
47
37
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The PayChannel object type represents a payment channel. Payment channels
|
@@ -9,7 +9,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
9
9
|
*
|
10
10
|
* @category Ledger Entries
|
11
11
|
*/
|
12
|
-
export default interface PayChannel extends BaseLedgerEntry {
|
12
|
+
export default interface PayChannel extends BaseLedgerEntry, HasPreviousTxnID {
|
13
13
|
LedgerEntryType: 'PayChannel'
|
14
14
|
/**
|
15
15
|
* The source address that owns this payment channel. This comes from the
|
@@ -60,16 +60,6 @@ export default interface PayChannel extends BaseLedgerEntry {
|
|
60
60
|
* to this object, in case the directory consists of multiple pages.
|
61
61
|
*/
|
62
62
|
OwnerNode: string
|
63
|
-
/**
|
64
|
-
* The identifying hash of the transaction that most recently modified this
|
65
|
-
* object.
|
66
|
-
*/
|
67
|
-
PreviousTxnID: string
|
68
|
-
/**
|
69
|
-
* The index of the ledger that contains the transaction that most recently
|
70
|
-
* modified this object.
|
71
|
-
*/
|
72
|
-
PreviousTxnLgrSeq: number
|
73
63
|
/**
|
74
64
|
* A bit-map of boolean flags enabled for this payment channel. Currently,
|
75
65
|
* the protocol defines no flags for PayChannel objects.
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { IssuedCurrencyAmount } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
/**
|
6
6
|
* The RippleState object type connects two accounts in a single currency.
|
7
7
|
*
|
8
8
|
* @category Ledger Entries
|
9
9
|
*/
|
10
|
-
export default interface RippleState extends BaseLedgerEntry {
|
10
|
+
export default interface RippleState extends BaseLedgerEntry, HasPreviousTxnID {
|
11
11
|
LedgerEntryType: 'RippleState'
|
12
12
|
/** A bit-map of boolean options enabled for this object. */
|
13
13
|
Flags: number
|
@@ -27,16 +27,6 @@ export default interface RippleState extends BaseLedgerEntry {
|
|
27
27
|
* the address of the high account that set this limit.
|
28
28
|
*/
|
29
29
|
HighLimit: IssuedCurrencyAmount
|
30
|
-
/**
|
31
|
-
* The identifying hash of the transaction that most recently modified this
|
32
|
-
* object.
|
33
|
-
*/
|
34
|
-
PreviousTxnID: string
|
35
|
-
/**
|
36
|
-
* The index of the ledger that contains the transaction that most recently
|
37
|
-
* modified this object.
|
38
|
-
*/
|
39
|
-
PreviousTxnLgrSeq: number
|
40
30
|
/**
|
41
31
|
* A hint indicating which page of the low account's owner directory links to
|
42
32
|
* this object, in case the directory consists of multiple pages.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SignerEntry } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
/**
|
6
6
|
* The SignerList object type represents a list of parties that, as a group,
|
@@ -10,23 +10,13 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
10
10
|
*
|
11
11
|
* @category Ledger Entries
|
12
12
|
*/
|
13
|
-
export default interface SignerList extends BaseLedgerEntry {
|
13
|
+
export default interface SignerList extends BaseLedgerEntry, HasPreviousTxnID {
|
14
14
|
LedgerEntryType: 'SignerList'
|
15
15
|
/**
|
16
16
|
* A bit-map of Boolean flags enabled for this signer list. For more
|
17
17
|
* information, see SignerList Flags.
|
18
18
|
*/
|
19
19
|
Flags: number
|
20
|
-
/**
|
21
|
-
* The identifying hash of the transaction that most recently modified this
|
22
|
-
* object.
|
23
|
-
*/
|
24
|
-
PreviousTxnID: string
|
25
|
-
/**
|
26
|
-
* The index of the ledger that contains the transaction that most recently
|
27
|
-
* modified this object.
|
28
|
-
*/
|
29
|
-
PreviousTxnLgrSeq: number
|
30
20
|
/**
|
31
21
|
* A hint indicating which page of the owner directory links to this object,
|
32
22
|
* in case the directory consists of multiple pages.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
1
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
2
2
|
|
3
3
|
/**
|
4
4
|
* The Ticket object type represents a Ticket, which tracks an account sequence
|
@@ -7,7 +7,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
7
7
|
*
|
8
8
|
* @category Ledger Entries
|
9
9
|
*/
|
10
|
-
export default interface Ticket extends BaseLedgerEntry {
|
10
|
+
export default interface Ticket extends BaseLedgerEntry, HasPreviousTxnID {
|
11
11
|
LedgerEntryType: 'Ticket'
|
12
12
|
/** The account that owns this Ticket. */
|
13
13
|
Account: string
|
@@ -21,16 +21,6 @@ export default interface Ticket extends BaseLedgerEntry {
|
|
21
21
|
* in case the directory consists of multiple pages.
|
22
22
|
*/
|
23
23
|
OwnerNode: string
|
24
|
-
/**
|
25
|
-
* The identifying hash of the transaction that most recently modified this
|
26
|
-
* object.
|
27
|
-
*/
|
28
|
-
PreviousTxnID: string
|
29
|
-
/**
|
30
|
-
* The index of the ledger that contains the transaction that most recently
|
31
|
-
* modified this object.
|
32
|
-
*/
|
33
|
-
PreviousTxnLgrSeq: number
|
34
24
|
/** The Sequence Number this Ticket sets aside. */
|
35
25
|
TicketSequence: number
|
36
26
|
}
|