xrpl 2.12.0-beta.0 → 2.13.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 +7248 -7657
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -3
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +2 -1
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +5 -5
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts +3 -4
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +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.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.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.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 +13 -5
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +12 -5
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +3 -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/ammInfo.d.ts +4 -3
- package/dist/npm/models/methods/ammInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +2 -0
- 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 +6 -6
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/serverInfo.d.ts +6 -0
- package/dist/npm/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/tx.d.ts +2 -1
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +3 -3
- package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.js.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.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/NFTokenCreateOffer.d.ts +3 -3
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.js +2 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.d.ts +2 -2
- package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.js +1 -0
- 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 +4 -26
- 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 +11 -68
- 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 +10 -59
- 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 +5 -30
- 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 +4 -24
- package/dist/npm/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCreateBridge.js +3 -17
- package/dist/npm/models/transactions/XChainCreateBridge.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 +3 -19
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.js +3 -14
- 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 +1 -5
- package/dist/npm/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/models/transactions/checkCash.d.ts.map +1 -1
- package/dist/npm/models/transactions/checkCash.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 +7 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +39 -38
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/depositPreauth.d.ts.map +1 -1
- package/dist/npm/models/transactions/depositPreauth.js.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.d.ts +3 -3
- package/dist/npm/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.js +5 -8
- 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 +3 -3
- package/dist/npm/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowFinish.js +5 -8
- 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/offerCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/models/transactions/payment.d.ts +2 -2
- package/dist/npm/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/models/transactions/payment.js +2 -9
- package/dist/npm/models/transactions/payment.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts.map +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/signerListSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +4 -0
- 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/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 +16 -13
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -3
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +2 -1
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +5 -5
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +3 -4
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +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.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.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.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 +13 -5
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +12 -5
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +3 -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/ammInfo.d.ts +4 -3
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +2 -0
- 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 +6 -6
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverInfo.d.ts +6 -0
- package/dist/npm/src/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/tx.d.ts +2 -1
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +3 -3
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.js.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.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/NFTokenCreateOffer.d.ts +3 -3
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js +2 -0
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts +2 -2
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.js +1 -0
- 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 +4 -26
- 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 +11 -68
- 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 +10 -59
- 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 +5 -30
- 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 +4 -24
- package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.js +3 -17
- package/dist/npm/src/models/transactions/XChainCreateBridge.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 +3 -19
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +3 -14
- 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 +1 -5
- package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/src/models/transactions/checkCash.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/checkCash.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 +7 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +39 -38
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/depositPreauth.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/depositPreauth.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.d.ts +3 -3
- package/dist/npm/src/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.js +5 -8
- 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 +3 -3
- package/dist/npm/src/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowFinish.js +5 -8
- 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/offerCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/payment.d.ts +2 -2
- package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/payment.js +2 -9
- package/dist/npm/src/models/transactions/payment.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts.map +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/signerListSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +4 -0
- 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/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.map +1 -1
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/utils/getXChainClaimID.d.ts +3 -0
- package/dist/npm/src/utils/getXChainClaimID.d.ts.map +1 -0
- package/dist/npm/src/utils/getXChainClaimID.js +29 -0
- package/dist/npm/src/utils/getXChainClaimID.js.map +1 -0
- 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/index.d.ts +2 -1
- package/dist/npm/src/utils/index.d.ts.map +1 -1
- package/dist/npm/src/utils/index.js +3 -1
- package/dist/npm/src/utils/index.js.map +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.js +2 -2
- package/dist/npm/src/utils/signPaymentChannelClaim.js.map +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.js +2 -2
- package/dist/npm/src/utils/verifyPaymentChannelClaim.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/utils/getXChainClaimID.d.ts +3 -0
- package/dist/npm/utils/getXChainClaimID.d.ts.map +1 -0
- package/dist/npm/utils/getXChainClaimID.js +29 -0
- package/dist/npm/utils/getXChainClaimID.js.map +1 -0
- 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/index.d.ts +2 -1
- package/dist/npm/utils/index.d.ts.map +1 -1
- package/dist/npm/utils/index.js +3 -1
- package/dist/npm/utils/index.js.map +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.js +2 -2
- package/dist/npm/utils/signPaymentChannelClaim.js.map +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.js +2 -2
- package/dist/npm/utils/verifyPaymentChannelClaim.js.map +1 -1
- package/package.json +14 -6
- package/src/Wallet/defaultFaucets.ts +0 -4
- package/src/client/partialPayment.ts +6 -2
- package/src/models/common/index.ts +2 -1
- package/src/models/ledger/AMM.ts +5 -5
- package/src/models/ledger/AccountRoot.ts +8 -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 +9 -3
- 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 +22 -14
- package/src/models/ledger/XChainOwnedCreateAccountClaimID.ts +19 -14
- package/src/models/ledger/index.ts +5 -1
- package/src/models/methods/accountObjects.ts +10 -41
- package/src/models/methods/ammInfo.ts +8 -3
- package/src/models/methods/ledger.ts +5 -0
- package/src/models/methods/ledgerData.ts +5 -1
- package/src/models/methods/ledgerEntry.ts +6 -6
- package/src/models/methods/serverInfo.ts +21 -0
- package/src/models/methods/tx.ts +4 -2
- package/src/models/transactions/AMMBid.ts +5 -6
- package/src/models/transactions/AMMDeposit.ts +0 -1
- package/src/models/transactions/AMMWithdraw.ts +0 -1
- package/src/models/transactions/NFTokenBurn.ts +13 -9
- package/src/models/transactions/NFTokenCreateOffer.ts +8 -2
- package/src/models/transactions/NFTokenMint.ts +11 -2
- package/src/models/transactions/UNLModify.ts +3 -1
- package/src/models/transactions/XChainAccountCreateCommit.ts +10 -48
- package/src/models/transactions/XChainAddAccountCreateAttestation.ts +40 -142
- package/src/models/transactions/XChainAddClaimAttestation.ts +39 -120
- package/src/models/transactions/XChainClaim.ts +18 -42
- package/src/models/transactions/XChainCommit.ts +17 -36
- package/src/models/transactions/XChainCreateBridge.ts +7 -29
- package/src/models/transactions/XChainCreateClaimID.ts +9 -33
- package/src/models/transactions/XChainModifyBridge.ts +7 -23
- package/src/models/transactions/accountDelete.ts +12 -18
- package/src/models/transactions/accountSet.ts +10 -13
- package/src/models/transactions/checkCash.ts +0 -1
- package/src/models/transactions/checkCreate.ts +8 -16
- package/src/models/transactions/common.ts +102 -54
- package/src/models/transactions/depositPreauth.ts +0 -1
- package/src/models/transactions/escrowCancel.ts +16 -12
- package/src/models/transactions/escrowCreate.ts +12 -17
- package/src/models/transactions/escrowFinish.ts +16 -12
- package/src/models/transactions/index.ts +6 -1
- package/src/models/transactions/offerCreate.ts +0 -1
- package/src/models/transactions/payment.ts +8 -15
- package/src/models/transactions/paymentChannelClaim.ts +0 -1
- package/src/models/transactions/paymentChannelCreate.ts +12 -22
- package/src/models/transactions/signerListSet.ts +0 -1
- package/src/models/transactions/transaction.ts +5 -1
- package/src/models/utils/flags.ts +18 -29
- package/src/sugar/autofill.ts +0 -2
- package/src/utils/getXChainClaimID.ts +64 -0
- package/src/utils/hashes/hashLedger.ts +4 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/signPaymentChannelClaim.ts +3 -3
- package/src/utils/verifyPaymentChannelClaim.ts +3 -3
@@ -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
|
}
|
@@ -1,6 +1,8 @@
|
|
1
|
+
import { Amount } from 'ripple-binary-codec/dist/types'
|
2
|
+
|
1
3
|
import { XChainBridge } from '../common'
|
2
4
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
5
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
6
|
|
5
7
|
/**
|
6
8
|
* An XChainOwnedClaimID object represents one cross-chain transfer of value
|
@@ -9,7 +11,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
9
11
|
*
|
10
12
|
* @category Ledger Entries
|
11
13
|
*/
|
12
|
-
export default interface XChainOwnedClaimID
|
14
|
+
export default interface XChainOwnedClaimID
|
15
|
+
extends BaseLedgerEntry,
|
16
|
+
HasPreviousTxnID {
|
13
17
|
LedgerEntryType: 'XChainOwnedClaimID'
|
14
18
|
|
15
19
|
/** The account that checked out this unique claim ID value. */
|
@@ -35,14 +39,28 @@ export default interface XChainOwnedClaimID extends BaseLedgerEntry {
|
|
35
39
|
*/
|
36
40
|
OtherChainSource: string
|
37
41
|
|
38
|
-
// TODO: type this better
|
39
42
|
/**
|
40
43
|
* Attestations collected from the witness servers. This includes the parameters
|
41
44
|
* needed to recreate the message that was signed, including the amount, which
|
42
45
|
* chain (locking or issuing), optional destination, and reward account for that
|
43
46
|
* signature.
|
44
47
|
*/
|
45
|
-
XChainClaimAttestations:
|
48
|
+
XChainClaimAttestations: Array<{
|
49
|
+
// TODO: add docs
|
50
|
+
XChainClaimProofSig: {
|
51
|
+
Amount: Amount
|
52
|
+
|
53
|
+
AttestationRewardAccount: string
|
54
|
+
|
55
|
+
AttestationSignerAccount: string
|
56
|
+
|
57
|
+
Destination?: string
|
58
|
+
|
59
|
+
PublicKey: string
|
60
|
+
|
61
|
+
WasLockingChainSend: 0 | 1
|
62
|
+
}
|
63
|
+
}>
|
46
64
|
|
47
65
|
/**
|
48
66
|
* The total amount to pay the witness servers for their signatures. It must be at
|
@@ -60,14 +78,4 @@ export default interface XChainOwnedClaimID extends BaseLedgerEntry {
|
|
60
78
|
* object, in case the directory consists of multiple pages.
|
61
79
|
*/
|
62
80
|
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
81
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { XChainBridge } from '../common'
|
2
2
|
|
3
|
-
import BaseLedgerEntry from './BaseLedgerEntry'
|
3
|
+
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
|
4
4
|
|
5
5
|
/**
|
6
6
|
* The XChainOwnedCreateAccountClaimID ledger object is used to collect attestations
|
@@ -9,7 +9,8 @@ import BaseLedgerEntry from './BaseLedgerEntry'
|
|
9
9
|
* @category Ledger Entries
|
10
10
|
*/
|
11
11
|
export default interface XChainOwnedCreateAccountClaimID
|
12
|
-
extends BaseLedgerEntry
|
12
|
+
extends BaseLedgerEntry,
|
13
|
+
HasPreviousTxnID {
|
13
14
|
LedgerEntryType: 'XChainOwnedCreateAccountClaimID'
|
14
15
|
|
15
16
|
/** The account that owns this object. */
|
@@ -27,7 +28,6 @@ export default interface XChainOwnedCreateAccountClaimID
|
|
27
28
|
*/
|
28
29
|
XChainAccountCreateCount: number
|
29
30
|
|
30
|
-
// TODO: type this better
|
31
31
|
/**
|
32
32
|
* Attestations collected from the witness servers. This includes the parameters
|
33
33
|
* needed to recreate the message that was signed, including the amount, destination,
|
@@ -35,7 +35,22 @@ export default interface XChainOwnedCreateAccountClaimID
|
|
35
35
|
* exception of the reward account, all signatures must sign the message created with
|
36
36
|
* common parameters.
|
37
37
|
*/
|
38
|
-
XChainCreateAccountAttestations:
|
38
|
+
XChainCreateAccountAttestations: Array<{
|
39
|
+
// TODO: add docs
|
40
|
+
XChainCreateAccountProofSig: {
|
41
|
+
Amount: string
|
42
|
+
|
43
|
+
AttestationRewardAccount: string
|
44
|
+
|
45
|
+
AttestationSignerAccount: string
|
46
|
+
|
47
|
+
Destination: string
|
48
|
+
|
49
|
+
PublicKey: string
|
50
|
+
|
51
|
+
WasLockingChainSend: 0 | 1
|
52
|
+
}
|
53
|
+
}>
|
39
54
|
|
40
55
|
/**
|
41
56
|
* A bit-map of boolean flags. No flags are defined for,
|
@@ -47,14 +62,4 @@ export default interface XChainOwnedCreateAccountClaimID
|
|
47
62
|
* object, in case the directory consists of multiple pages.
|
48
63
|
*/
|
49
64
|
OwnerNode: string
|
50
|
-
/**
|
51
|
-
* The identifying hash of the transaction that most recently modified this
|
52
|
-
* object.
|
53
|
-
*/
|
54
|
-
PreviousTxnID: string
|
55
|
-
/**
|
56
|
-
* The index of the ledger that contains the transaction that most recently
|
57
|
-
* modified this object.
|
58
|
-
*/
|
59
|
-
PreviousTxnLgrSeq: number
|
60
65
|
}
|
@@ -3,6 +3,7 @@ import AccountRoot, {
|
|
3
3
|
AccountRootFlagsInterface,
|
4
4
|
} from './AccountRoot'
|
5
5
|
import Amendments, { Majority, AMENDMENTS_ID } from './Amendments'
|
6
|
+
import AMM, { VoteSlot } from './AMM'
|
6
7
|
import Bridge from './Bridge'
|
7
8
|
import Check from './Check'
|
8
9
|
import DepositPreauth from './DepositPreauth'
|
@@ -14,7 +15,7 @@ import FeeSettings, {
|
|
14
15
|
FEE_SETTINGS_ID,
|
15
16
|
} from './FeeSettings'
|
16
17
|
import Ledger from './Ledger'
|
17
|
-
import LedgerEntry from './LedgerEntry'
|
18
|
+
import { LedgerEntry, LedgerEntryFilter } from './LedgerEntry'
|
18
19
|
import LedgerHashes from './LedgerHashes'
|
19
20
|
import NegativeUNL, { NEGATIVE_UNL_ID } from './NegativeUNL'
|
20
21
|
import { NFTokenOffer } from './NFTokenOffer'
|
@@ -33,6 +34,7 @@ export {
|
|
33
34
|
AccountRootFlagsInterface,
|
34
35
|
AMENDMENTS_ID,
|
35
36
|
Amendments,
|
37
|
+
AMM,
|
36
38
|
Bridge,
|
37
39
|
Check,
|
38
40
|
DepositPreauth,
|
@@ -43,6 +45,7 @@ export {
|
|
43
45
|
FeeSettingsPreAmendmentFields,
|
44
46
|
FeeSettingsPostAmendmentFields,
|
45
47
|
Ledger,
|
48
|
+
LedgerEntryFilter,
|
46
49
|
LedgerEntry,
|
47
50
|
LedgerHashes,
|
48
51
|
Majority,
|
@@ -61,4 +64,5 @@ export {
|
|
61
64
|
Ticket,
|
62
65
|
XChainOwnedClaimID,
|
63
66
|
XChainOwnedCreateAccountClaimID,
|
67
|
+
VoteSlot,
|
64
68
|
}
|
@@ -1,33 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
Check,
|
4
|
-
DepositPreauth,
|
5
|
-
Escrow,
|
6
|
-
Offer,
|
7
|
-
PayChannel,
|
8
|
-
RippleState,
|
9
|
-
SignerList,
|
10
|
-
Ticket,
|
11
|
-
XChainOwnedClaimID,
|
12
|
-
XChainOwnedCreateAccountClaimID,
|
13
|
-
} from '../ledger'
|
1
|
+
import { Amendments, FeeSettings, LedgerHashes } from '../ledger'
|
2
|
+
import { LedgerEntry, LedgerEntryFilter } from '../ledger/LedgerEntry'
|
14
3
|
|
15
4
|
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
16
5
|
|
17
|
-
export type AccountObjectType =
|
18
|
-
|
19
|
-
| '
|
20
|
-
|
21
|
-
| 'escrow'
|
22
|
-
| 'nft_offer'
|
23
|
-
| 'offer'
|
24
|
-
| 'payment_channel'
|
25
|
-
| 'signer_list'
|
26
|
-
| 'state'
|
27
|
-
| 'ticket'
|
28
|
-
| 'xchain_owned_create_account_claim_id'
|
29
|
-
| 'xchain_owned_claim_id'
|
30
|
-
|
6
|
+
export type AccountObjectType = Exclude<
|
7
|
+
LedgerEntryFilter,
|
8
|
+
'amendments' | 'fee' | 'hashes'
|
9
|
+
>
|
31
10
|
/**
|
32
11
|
* The account_objects command returns the raw ledger format for all objects
|
33
12
|
* owned by an account. For a higher-level view of an account's trust lines and
|
@@ -44,8 +23,6 @@ export interface AccountObjectsRequest
|
|
44
23
|
account: string
|
45
24
|
/**
|
46
25
|
* If included, filter results to include only this type of ledger object.
|
47
|
-
* The valid types are: Check , DepositPreauth, Escrow, Offer, PayChannel,
|
48
|
-
* SignerList, Ticket, and RippleState (trust line).
|
49
26
|
*/
|
50
27
|
type?: AccountObjectType
|
51
28
|
/**
|
@@ -69,18 +46,10 @@ export interface AccountObjectsRequest
|
|
69
46
|
* Account Objects can be a Check, a DepositPreauth, an Escrow, an Offer, a
|
70
47
|
* PayChannel, a SignerList, a Ticket, or a RippleState.
|
71
48
|
*/
|
72
|
-
export type AccountObject =
|
73
|
-
|
74
|
-
|
|
75
|
-
|
76
|
-
| Escrow
|
77
|
-
| Offer
|
78
|
-
| PayChannel
|
79
|
-
| SignerList
|
80
|
-
| RippleState
|
81
|
-
| Ticket
|
82
|
-
| XChainOwnedClaimID
|
83
|
-
| XChainOwnedCreateAccountClaimID
|
49
|
+
export type AccountObject = Exclude<
|
50
|
+
LedgerEntry,
|
51
|
+
Amendments | FeeSettings | LedgerHashes
|
52
|
+
>
|
84
53
|
|
85
54
|
/**
|
86
55
|
* Response expected from an {@link AccountObjectsRequest}.
|
@@ -11,15 +11,20 @@ import { BaseRequest, BaseResponse } from './baseMethod'
|
|
11
11
|
export interface AMMInfoRequest extends BaseRequest {
|
12
12
|
command: 'amm_info'
|
13
13
|
|
14
|
+
/**
|
15
|
+
* The address of the AMM Account to look up.
|
16
|
+
*/
|
17
|
+
amm_account?: string
|
18
|
+
|
14
19
|
/**
|
15
20
|
* One of the assets of the AMM pool to look up.
|
16
21
|
*/
|
17
|
-
asset
|
22
|
+
asset?: Currency
|
18
23
|
|
19
24
|
/**
|
20
25
|
* The other asset of the AMM pool.
|
21
26
|
*/
|
22
|
-
asset2
|
27
|
+
asset2?: Currency
|
23
28
|
}
|
24
29
|
|
25
30
|
/**
|
@@ -93,7 +98,7 @@ export interface AMMInfoResponse extends BaseResponse {
|
|
93
98
|
* The amount, in LP Tokens, that the auction slot holder paid to win the auction slot.
|
94
99
|
* This affects the price to outbid the current slot holder.
|
95
100
|
*/
|
96
|
-
price:
|
101
|
+
price: IssuedCurrencyAmount
|
97
102
|
|
98
103
|
/**
|
99
104
|
* The current 72-minute time interval this auction slot is in, from 0 to 19.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Ledger } from '../ledger'
|
2
|
+
import { LedgerEntryFilter } from '../ledger/LedgerEntry'
|
2
3
|
import { Transaction, TransactionAndMetadata } from '../transactions'
|
3
4
|
import { TransactionMetadata } from '../transactions/metadata'
|
4
5
|
|
@@ -65,6 +66,10 @@ export interface LedgerRequest extends BaseRequest, LookupByLedgerRequest {
|
|
65
66
|
* array of queued transactions in the results.
|
66
67
|
*/
|
67
68
|
queue?: boolean
|
69
|
+
/**
|
70
|
+
* If included, filter results to include only this type of ledger object.
|
71
|
+
*/
|
72
|
+
type?: LedgerEntryFilter
|
68
73
|
}
|
69
74
|
|
70
75
|
/**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LedgerEntry } from '../ledger'
|
1
|
+
import { LedgerEntry, LedgerEntryFilter } from '../ledger'
|
2
2
|
|
3
3
|
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
4
4
|
|
@@ -37,6 +37,10 @@ export interface LedgerDataRequest extends BaseRequest, LookupByLedgerRequest {
|
|
37
37
|
* that response left off.
|
38
38
|
*/
|
39
39
|
marker?: unknown
|
40
|
+
/**
|
41
|
+
* If included, filter results to include only this type of ledger object.
|
42
|
+
*/
|
43
|
+
type?: LedgerEntryFilter
|
40
44
|
}
|
41
45
|
|
42
46
|
export type LedgerDataLabeledLedgerEntry = {
|
@@ -158,23 +158,23 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
|
|
158
158
|
|
159
159
|
bridge?: XChainBridge
|
160
160
|
|
161
|
-
|
161
|
+
xchain_owned_claim_id?:
|
162
162
|
| {
|
163
163
|
locking_chain_door: string
|
164
164
|
locking_chain_issue: Currency
|
165
165
|
issuing_chain_door: string
|
166
166
|
issuing_chain_issue: Currency
|
167
|
-
|
167
|
+
xchain_owned_claim_id: string | number
|
168
168
|
}
|
169
169
|
| string
|
170
170
|
|
171
|
-
|
171
|
+
xchain_owned_create_account_claim_id?:
|
172
172
|
| {
|
173
173
|
locking_chain_door: string
|
174
174
|
locking_chain_issue: Currency
|
175
175
|
issuing_chain_door: string
|
176
176
|
issuing_chain_issue: Currency
|
177
|
-
|
177
|
+
xchain_owned_create_account_claim_id: string | number
|
178
178
|
}
|
179
179
|
| string
|
180
180
|
}
|
@@ -184,7 +184,7 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
|
|
184
184
|
*
|
185
185
|
* @category Responses
|
186
186
|
*/
|
187
|
-
export interface LedgerEntryResponse extends BaseResponse {
|
187
|
+
export interface LedgerEntryResponse<T = LedgerEntry> extends BaseResponse {
|
188
188
|
result: {
|
189
189
|
/** The unique ID of this ledger object. */
|
190
190
|
index: string
|
@@ -194,7 +194,7 @@ export interface LedgerEntryResponse extends BaseResponse {
|
|
194
194
|
* Object containing the data of this ledger object, according to the
|
195
195
|
* ledger format.
|
196
196
|
*/
|
197
|
-
node?:
|
197
|
+
node?: T
|
198
198
|
/** The binary representation of the ledger object, as hexadecimal. */
|
199
199
|
node_binary?: string
|
200
200
|
validated?: boolean
|
@@ -33,6 +33,22 @@ export interface JobType {
|
|
33
33
|
in_progress?: number
|
34
34
|
}
|
35
35
|
|
36
|
+
export type protocol =
|
37
|
+
| 'http'
|
38
|
+
| 'https'
|
39
|
+
| 'grpc'
|
40
|
+
| 'peer'
|
41
|
+
| 'ws'
|
42
|
+
| 'ws2'
|
43
|
+
| 'wss'
|
44
|
+
| 'wss2'
|
45
|
+
|
46
|
+
export interface ServerPort {
|
47
|
+
port: string
|
48
|
+
/** The values in protocol are sorted in alphabetical order */
|
49
|
+
protocol: protocol[]
|
50
|
+
}
|
51
|
+
|
36
52
|
// The states for validating and proposing do not exist in the field state_accounting
|
37
53
|
// See https://github.com/XRPLF/rippled/blob/develop/src/ripple/app/misc/NetworkOPs.cpp#L4545
|
38
54
|
// https://github.com/XRPLF/rippled/blob/develop/src/ripple/app/misc/NetworkOPs.h#L66
|
@@ -181,6 +197,11 @@ export interface ServerInfoResponse extends BaseResponse {
|
|
181
197
|
network_ledger?: 'waiting'
|
182
198
|
/** How many other rippled servers this one is currently connected to. */
|
183
199
|
peers: number
|
200
|
+
/**
|
201
|
+
* What Websocket/RPC ports rippled is listening on. This allows crawlers to build a richer topology without needing to
|
202
|
+
* port-scan nodes. For non-admin users (including peers), info about admin ports is excluded.
|
203
|
+
*/
|
204
|
+
ports: ServerPort[]
|
184
205
|
/**
|
185
206
|
* Public key used to verify this server for peer-to-peer communications.
|
186
207
|
* This node key pair is automatically generated by the server the first
|
package/src/models/methods/tx.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Transaction, TransactionMetadata } from '../transactions'
|
2
2
|
import { BaseTransaction } from '../transactions/common'
|
3
|
+
import { PseudoTransaction } from '../transactions/transaction'
|
3
4
|
|
4
5
|
import { BaseRequest, BaseResponse } from './baseMethod'
|
5
6
|
|
@@ -39,8 +40,9 @@ export interface TxRequest extends BaseRequest {
|
|
39
40
|
*
|
40
41
|
* @category Responses
|
41
42
|
*/
|
42
|
-
export interface TxResponse<
|
43
|
-
extends
|
43
|
+
export interface TxResponse<
|
44
|
+
T extends BaseTransaction = Transaction | PseudoTransaction,
|
45
|
+
> extends BaseResponse {
|
44
46
|
result: {
|
45
47
|
/** The SHA-512 hash of the transaction. */
|
46
48
|
hash: string
|
@@ -1,6 +1,5 @@
|
|
1
|
-
/* eslint-disable complexity -- required for validateAMMBid */
|
2
1
|
import { ValidationError } from '../../errors'
|
3
|
-
import {
|
2
|
+
import { AuthAccount, Currency, IssuedCurrencyAmount } from '../common'
|
4
3
|
|
5
4
|
import {
|
6
5
|
BaseTransaction,
|
@@ -33,18 +32,18 @@ export interface AMMBid extends BaseTransaction {
|
|
33
32
|
Asset2: Currency
|
34
33
|
|
35
34
|
/**
|
36
|
-
* Pay at least this amount for the slot.
|
35
|
+
* Pay at least this LPToken amount for the slot.
|
37
36
|
* Setting this value higher makes it harder for others to outbid you.
|
38
37
|
* If omitted, pay the minimum necessary to win the bid.
|
39
38
|
*/
|
40
|
-
BidMin?:
|
39
|
+
BidMin?: IssuedCurrencyAmount
|
41
40
|
|
42
41
|
/**
|
43
|
-
* Pay at most this amount for the slot.
|
42
|
+
* Pay at most this LPToken amount for the slot.
|
44
43
|
* If the cost to win the bid is higher than this amount, the transaction fails.
|
45
44
|
* If omitted, pay as much as necessary to win the bid.
|
46
45
|
*/
|
47
|
-
BidMax?:
|
46
|
+
BidMax?: IssuedCurrencyAmount
|
48
47
|
|
49
48
|
/**
|
50
49
|
* A list of up to 4 additional accounts that you allow to trade at the discounted fee.
|