xrpl 2.12.0 → 2.14.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 +5920 -6205
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts +1 -3
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -10
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/client/index.d.ts +2 -1
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/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.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 +3 -5
- 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/DID.d.ts +11 -0
- package/dist/npm/models/ledger/DID.d.ts.map +1 -0
- package/dist/npm/models/ledger/DID.js +3 -0
- package/dist/npm/models/ledger/DID.js.map +1 -0
- 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 +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 +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/index.d.ts +4 -3
- package/dist/npm/models/methods/index.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 +3 -2
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/serverDefinitions.d.ts +32 -0
- package/dist/npm/models/methods/serverDefinitions.d.ts.map +1 -0
- package/dist/npm/models/methods/serverDefinitions.js +3 -0
- package/dist/npm/models/methods/serverDefinitions.js.map +1 -0
- package/dist/npm/models/methods/tx.d.ts +5 -2
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/DIDDelete.d.ts +6 -0
- package/dist/npm/models/transactions/DIDDelete.d.ts.map +1 -0
- package/dist/npm/models/transactions/DIDDelete.js +9 -0
- package/dist/npm/models/transactions/DIDDelete.js.map +1 -0
- package/dist/npm/models/transactions/DIDSet.d.ts +9 -0
- package/dist/npm/models/transactions/DIDSet.d.ts.map +1 -0
- package/dist/npm/models/transactions/DIDSet.js +18 -0
- package/dist/npm/models/transactions/DIDSet.js.map +1 -0
- 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 +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/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/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/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 +3 -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/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/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 +7 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +20 -12
- 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 +2 -2
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -0
- package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -3
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -10
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +2 -1
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.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.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 +3 -5
- 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/DID.d.ts +11 -0
- package/dist/npm/src/models/ledger/DID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/DID.js +3 -0
- package/dist/npm/src/models/ledger/DID.js.map +1 -0
- 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 +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 +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/index.d.ts +4 -3
- package/dist/npm/src/models/methods/index.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 +3 -2
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverDefinitions.d.ts +32 -0
- package/dist/npm/src/models/methods/serverDefinitions.d.ts.map +1 -0
- package/dist/npm/src/models/methods/serverDefinitions.js +3 -0
- package/dist/npm/src/models/methods/serverDefinitions.js.map +1 -0
- package/dist/npm/src/models/methods/tx.d.ts +5 -2
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/DIDDelete.d.ts +6 -0
- package/dist/npm/src/models/transactions/DIDDelete.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/DIDDelete.js +9 -0
- package/dist/npm/src/models/transactions/DIDDelete.js.map +1 -0
- package/dist/npm/src/models/transactions/DIDSet.d.ts +9 -0
- package/dist/npm/src/models/transactions/DIDSet.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/DIDSet.js +18 -0
- package/dist/npm/src/models/transactions/DIDSet.js.map +1 -0
- 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 +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/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/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/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 +3 -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/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/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 +7 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +20 -12
- 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/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/parseNFTokenID.d.ts.map +1 -1
- package/dist/npm/src/utils/parseNFTokenID.js +10 -1
- package/dist/npm/src/utils/parseNFTokenID.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/parseNFTokenID.d.ts.map +1 -1
- package/dist/npm/utils/parseNFTokenID.js +10 -1
- package/dist/npm/utils/parseNFTokenID.js.map +1 -1
- package/package.json +13 -4
- package/src/Wallet/defaultFaucets.ts +0 -12
- package/src/Wallet/fundWallet.ts +1 -1
- package/src/client/index.ts +5 -0
- package/src/client/partialPayment.ts +6 -2
- 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 +9 -21
- package/src/models/ledger/Check.ts +2 -2
- package/src/models/ledger/DID.ts +22 -0
- 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 +23 -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 +4 -1
- package/src/models/methods/accountObjects.ts +10 -44
- package/src/models/methods/index.ts +8 -0
- package/src/models/methods/ledger.ts +5 -0
- package/src/models/methods/ledgerData.ts +5 -1
- package/src/models/methods/ledgerEntry.ts +8 -2
- package/src/models/methods/nftInfo.ts +1 -1
- package/src/models/methods/serverDefinitions.ts +61 -0
- package/src/models/methods/subscribe.ts +1 -1
- package/src/models/methods/tx.ts +16 -3
- package/src/models/transactions/DIDDelete.ts +20 -0
- package/src/models/transactions/DIDSet.ts +49 -0
- 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 +5 -5
- 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 +8 -1
- package/src/models/transactions/payment.ts +8 -14
- package/src/models/transactions/paymentChannelCreate.ts +12 -21
- package/src/models/transactions/transaction.ts +37 -20
- package/src/models/utils/flags.ts +18 -28
- package/src/utils/hashes/hashLedger.ts +4 -1
- package/src/utils/parseNFTokenID.ts +11 -1
@@ -108,6 +108,10 @@ import {
|
|
108
108
|
RipplePathFindResponse,
|
109
109
|
SourceCurrencyAmount,
|
110
110
|
} from './ripplePathFind'
|
111
|
+
import {
|
112
|
+
ServerDefinitionsRequest,
|
113
|
+
ServerDefinitionsResponse,
|
114
|
+
} from './serverDefinitions'
|
111
115
|
import {
|
112
116
|
JobType,
|
113
117
|
ServerInfoRequest,
|
@@ -186,6 +190,7 @@ type Request =
|
|
186
190
|
// server info methods
|
187
191
|
| FeeRequest
|
188
192
|
| ManifestRequest
|
193
|
+
| ServerDefinitionsRequest
|
189
194
|
| ServerInfoRequest
|
190
195
|
| ServerStateRequest
|
191
196
|
// utility methods
|
@@ -239,6 +244,7 @@ type Response =
|
|
239
244
|
// server info methods
|
240
245
|
| FeeResponse
|
241
246
|
| ManifestResponse
|
247
|
+
| ServerDefinitionsResponse
|
242
248
|
| ServerInfoResponse
|
243
249
|
| ServerStateResponse
|
244
250
|
// utility methods
|
@@ -360,6 +366,8 @@ export {
|
|
360
366
|
FeeResponse,
|
361
367
|
ManifestRequest,
|
362
368
|
ManifestResponse,
|
369
|
+
ServerDefinitionsRequest,
|
370
|
+
ServerDefinitionsResponse,
|
363
371
|
ServerInfoRequest,
|
364
372
|
ServerInfoResponse,
|
365
373
|
ServerStateRequest,
|
@@ -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 = {
|
@@ -74,6 +74,12 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
|
|
74
74
|
}
|
75
75
|
| string
|
76
76
|
|
77
|
+
/**
|
78
|
+
* Specify a DID object to retrieve. If a string, must be the
|
79
|
+
* object ID of the DID object, as hexadecimal, or the account ID.
|
80
|
+
*/
|
81
|
+
did?: string
|
82
|
+
|
77
83
|
/**
|
78
84
|
* The DirectoryNode to retrieve. If a string, must be the object ID of the
|
79
85
|
* directory, as hexadecimal. If an object, requires either `dir_root` o
|
@@ -184,7 +190,7 @@ export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
|
|
184
190
|
*
|
185
191
|
* @category Responses
|
186
192
|
*/
|
187
|
-
export interface LedgerEntryResponse extends BaseResponse {
|
193
|
+
export interface LedgerEntryResponse<T = LedgerEntry> extends BaseResponse {
|
188
194
|
result: {
|
189
195
|
/** The unique ID of this ledger object. */
|
190
196
|
index: string
|
@@ -194,7 +200,7 @@ export interface LedgerEntryResponse extends BaseResponse {
|
|
194
200
|
* Object containing the data of this ledger object, according to the
|
195
201
|
* ledger format.
|
196
202
|
*/
|
197
|
-
node?:
|
203
|
+
node?: T
|
198
204
|
/** The binary representation of the ledger object, as hexadecimal. */
|
199
205
|
node_binary?: string
|
200
206
|
validated?: boolean
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The `server_definitions` method retrieves information about the definition
|
5
|
+
* enums available in this rippled node. Expects a response in the form of a
|
6
|
+
* {@link ServerDefinitionsResponse}.
|
7
|
+
*
|
8
|
+
* @category Requests
|
9
|
+
*/
|
10
|
+
export interface ServerDefinitionsRequest extends BaseRequest {
|
11
|
+
command: 'server_definitions'
|
12
|
+
/**
|
13
|
+
* The hash of a `server_definitions` response.
|
14
|
+
*/
|
15
|
+
hash?: string
|
16
|
+
}
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Response expected from an {@link ServerDefinitionsRequest}.
|
20
|
+
*
|
21
|
+
* @category Responses
|
22
|
+
*/
|
23
|
+
export interface ServerDefinitionsResponse extends BaseResponse {
|
24
|
+
result: {
|
25
|
+
hash: string
|
26
|
+
} & (
|
27
|
+
| {
|
28
|
+
FIELDS: Array<
|
29
|
+
[
|
30
|
+
string,
|
31
|
+
{
|
32
|
+
nth: number
|
33
|
+
isVLEncoded: boolean
|
34
|
+
isSerialized: boolean
|
35
|
+
isSigningField: boolean
|
36
|
+
type: string
|
37
|
+
},
|
38
|
+
]
|
39
|
+
>
|
40
|
+
|
41
|
+
LEDGER_ENTRY_TYPES: Record<string, number>
|
42
|
+
|
43
|
+
TRANSACTION_RESULTS: Record<string, number>
|
44
|
+
|
45
|
+
TRANSACTION_TYPES: Record<string, number>
|
46
|
+
|
47
|
+
TYPES: Record<string, number>
|
48
|
+
}
|
49
|
+
| {
|
50
|
+
FIELDS?: never
|
51
|
+
|
52
|
+
LEDGER_ENTRY_TYPES?: never
|
53
|
+
|
54
|
+
TRANSACTION_RESULTS?: never
|
55
|
+
|
56
|
+
TRANSACTION_TYPES?: never
|
57
|
+
|
58
|
+
TYPES?: never
|
59
|
+
}
|
60
|
+
)
|
61
|
+
}
|
@@ -38,7 +38,7 @@ export interface SubscribeBook {
|
|
38
38
|
|
39
39
|
/**
|
40
40
|
* The subscribe method requests periodic notifications from the server when
|
41
|
-
* certain events happen. Expects a response in the form of a
|
41
|
+
* certain events happen. Expects a response in the form of a
|
42
42
|
* {@link SubscribeResponse}.
|
43
43
|
*
|
44
44
|
* @category Requests
|
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
|
|
@@ -11,7 +12,14 @@ import { BaseRequest, BaseResponse } from './baseMethod'
|
|
11
12
|
*/
|
12
13
|
export interface TxRequest extends BaseRequest {
|
13
14
|
command: 'tx'
|
14
|
-
|
15
|
+
/**
|
16
|
+
* The transaction hash to look up. Exactly one of `transaction` or `ctid` must be specified for a TxRequest.
|
17
|
+
*/
|
18
|
+
transaction?: string
|
19
|
+
/**
|
20
|
+
* The Concise Transaction ID to look up. Exactly one of `transaction` or `ctid` must be specified for a TxRequest.
|
21
|
+
*/
|
22
|
+
ctid?: string
|
15
23
|
/**
|
16
24
|
* If true, return transaction data and metadata as binary serialized to
|
17
25
|
* hexadecimal strings. If false, return transaction data and metadata as.
|
@@ -39,11 +47,16 @@ export interface TxRequest extends BaseRequest {
|
|
39
47
|
*
|
40
48
|
* @category Responses
|
41
49
|
*/
|
42
|
-
export interface TxResponse<
|
43
|
-
extends
|
50
|
+
export interface TxResponse<
|
51
|
+
T extends BaseTransaction = Transaction | PseudoTransaction,
|
52
|
+
> extends BaseResponse {
|
44
53
|
result: {
|
45
54
|
/** The SHA-512 hash of the transaction. */
|
46
55
|
hash: string
|
56
|
+
/**
|
57
|
+
* The Concise Transaction Identifier of the transaction (16-byte hex string)
|
58
|
+
*/
|
59
|
+
ctid?: string
|
47
60
|
/** The ledger index of the ledger that includes this transaction. */
|
48
61
|
ledger_index?: number
|
49
62
|
/** Transaction metadata, which describes the results of the transaction.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BaseTransaction, validateBaseTransaction } from './common'
|
2
|
+
|
3
|
+
// TODO: add docs
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @category Transaction Models
|
7
|
+
*/
|
8
|
+
export interface DIDDelete extends BaseTransaction {
|
9
|
+
TransactionType: 'DIDDelete'
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Verify the form and type of a DIDDelete at runtime.
|
14
|
+
*
|
15
|
+
* @param tx - A DIDDelete Transaction.
|
16
|
+
* @throws When the DIDDelete is malformed.
|
17
|
+
*/
|
18
|
+
export function validateDIDDelete(tx: Record<string, unknown>): void {
|
19
|
+
validateBaseTransaction(tx)
|
20
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ValidationError } from '../../errors'
|
2
|
+
|
3
|
+
import {
|
4
|
+
BaseTransaction,
|
5
|
+
isString,
|
6
|
+
validateBaseTransaction,
|
7
|
+
validateOptionalField,
|
8
|
+
} from './common'
|
9
|
+
|
10
|
+
// TODO: add docs
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @category Transaction Models
|
14
|
+
*/
|
15
|
+
export interface DIDSet extends BaseTransaction {
|
16
|
+
TransactionType: 'DIDSet'
|
17
|
+
|
18
|
+
Data?: string
|
19
|
+
|
20
|
+
DIDDocument?: string
|
21
|
+
|
22
|
+
URI?: string
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Verify the form and type of a DIDSet at runtime.
|
27
|
+
*
|
28
|
+
* @param tx - A DIDSet Transaction.
|
29
|
+
* @throws When the DIDSet is malformed.
|
30
|
+
*/
|
31
|
+
export function validateDIDSet(tx: Record<string, unknown>): void {
|
32
|
+
validateBaseTransaction(tx)
|
33
|
+
|
34
|
+
validateOptionalField(tx, 'Data', isString)
|
35
|
+
|
36
|
+
validateOptionalField(tx, 'DIDDocument', isString)
|
37
|
+
|
38
|
+
validateOptionalField(tx, 'URI', isString)
|
39
|
+
|
40
|
+
if (
|
41
|
+
tx.Data === undefined &&
|
42
|
+
tx.DIDDocument === undefined &&
|
43
|
+
tx.URI === undefined
|
44
|
+
) {
|
45
|
+
throw new ValidationError(
|
46
|
+
'DIDSet: Must have at least one of `Data`, `DIDDocument`, and `URI`',
|
47
|
+
)
|
48
|
+
}
|
49
|
+
}
|
@@ -1,6 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import {
|
2
|
+
Account,
|
3
|
+
BaseTransaction,
|
4
|
+
isAccount,
|
5
|
+
isString,
|
6
|
+
validateBaseTransaction,
|
7
|
+
validateOptionalField,
|
8
|
+
validateRequiredField,
|
9
|
+
} from './common'
|
4
10
|
|
5
11
|
/**
|
6
12
|
* The NFTokenBurn transaction is used to remove an NFToken object from the
|
@@ -20,7 +26,7 @@ export interface NFTokenBurn extends BaseTransaction {
|
|
20
26
|
* in the NFToken, either the issuer account or an account authorized by the
|
21
27
|
* issuer, i.e. MintAccount.
|
22
28
|
*/
|
23
|
-
Account:
|
29
|
+
Account: Account
|
24
30
|
/**
|
25
31
|
* Identifies the NFToken object to be removed by the transaction.
|
26
32
|
*/
|
@@ -30,7 +36,7 @@ export interface NFTokenBurn extends BaseTransaction {
|
|
30
36
|
* Account. Only used to burn tokens which have the lsfBurnable flag enabled
|
31
37
|
* and are not owned by the signing account.
|
32
38
|
*/
|
33
|
-
Owner?:
|
39
|
+
Owner?: Account
|
34
40
|
}
|
35
41
|
|
36
42
|
/**
|
@@ -41,8 +47,6 @@ export interface NFTokenBurn extends BaseTransaction {
|
|
41
47
|
*/
|
42
48
|
export function validateNFTokenBurn(tx: Record<string, unknown>): void {
|
43
49
|
validateBaseTransaction(tx)
|
44
|
-
|
45
|
-
|
46
|
-
throw new ValidationError('NFTokenBurn: missing field NFTokenID')
|
47
|
-
}
|
50
|
+
validateRequiredField(tx, 'NFTokenID', isString)
|
51
|
+
validateOptionalField(tx, 'Owner', isAccount)
|
48
52
|
}
|
@@ -8,6 +8,9 @@ import {
|
|
8
8
|
validateBaseTransaction,
|
9
9
|
isAmount,
|
10
10
|
parseAmountValue,
|
11
|
+
isAccount,
|
12
|
+
validateOptionalField,
|
13
|
+
Account,
|
11
14
|
} from './common'
|
12
15
|
|
13
16
|
/**
|
@@ -67,7 +70,7 @@ export interface NFTokenCreateOffer extends BaseTransaction {
|
|
67
70
|
* (since an offer to sell a token one doesn't already hold
|
68
71
|
* is meaningless).
|
69
72
|
*/
|
70
|
-
Owner?:
|
73
|
+
Owner?: Account
|
71
74
|
/**
|
72
75
|
* Indicates the time after which the offer will no longer
|
73
76
|
* be valid. The value is the number of seconds since the
|
@@ -79,7 +82,7 @@ export interface NFTokenCreateOffer extends BaseTransaction {
|
|
79
82
|
* accepted by the specified account. Attempts by other
|
80
83
|
* accounts to accept this offer MUST fail.
|
81
84
|
*/
|
82
|
-
Destination?:
|
85
|
+
Destination?: Account
|
83
86
|
Flags?: number | NFTokenCreateOfferFlagsInterface
|
84
87
|
}
|
85
88
|
|
@@ -126,6 +129,9 @@ export function validateNFTokenCreateOffer(tx: Record<string, unknown>): void {
|
|
126
129
|
)
|
127
130
|
}
|
128
131
|
|
132
|
+
validateOptionalField(tx, 'Destination', isAccount)
|
133
|
+
validateOptionalField(tx, 'Owner', isAccount)
|
134
|
+
|
129
135
|
if (tx.NFTokenID == null) {
|
130
136
|
throw new ValidationError('NFTokenCreateOffer: missing field NFTokenID')
|
131
137
|
}
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import { ValidationError } from '../../errors'
|
2
2
|
import { isHex } from '../utils'
|
3
3
|
|
4
|
-
import {
|
4
|
+
import {
|
5
|
+
Account,
|
6
|
+
BaseTransaction,
|
7
|
+
GlobalFlags,
|
8
|
+
isAccount,
|
9
|
+
validateBaseTransaction,
|
10
|
+
validateOptionalField,
|
11
|
+
} from './common'
|
5
12
|
|
6
13
|
/**
|
7
14
|
* Transaction Flags for an NFTokenMint Transaction.
|
@@ -68,7 +75,7 @@ export interface NFTokenMint extends BaseTransaction {
|
|
68
75
|
* present, the `MintAccount` field in the `AccountRoot` of the `Issuer`
|
69
76
|
* field must match the `Account`, otherwise the transaction will fail.
|
70
77
|
*/
|
71
|
-
Issuer?:
|
78
|
+
Issuer?: Account
|
72
79
|
/**
|
73
80
|
* Specifies the fee charged by the issuer for secondary sales of the Token,
|
74
81
|
* if such sales are allowed. Valid values for this field are between 0 and
|
@@ -109,6 +116,8 @@ export function validateNFTokenMint(tx: Record<string, unknown>): void {
|
|
109
116
|
)
|
110
117
|
}
|
111
118
|
|
119
|
+
validateOptionalField(tx, 'Issuer', isAccount)
|
120
|
+
|
112
121
|
if (typeof tx.URI === 'string' && tx.URI === '') {
|
113
122
|
throw new ValidationError('NFTokenMint: URI must not be empty string')
|
114
123
|
}
|
@@ -1,9 +1,11 @@
|
|
1
|
+
import { BaseTransaction } from './common'
|
2
|
+
|
1
3
|
/**
|
2
4
|
* Mark a change to the Negative UNL.
|
3
5
|
*
|
4
6
|
* @category Pseudo Transaction Models
|
5
7
|
*/
|
6
|
-
export interface UNLModify {
|
8
|
+
export interface UNLModify extends BaseTransaction {
|
7
9
|
TransactionType: 'UNLModify'
|
8
10
|
/**
|
9
11
|
* The ledger index where this pseudo-transaction appears.
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import { isString } from 'lodash'
|
2
|
-
|
3
1
|
import { Amount, XChainBridge } from '../common'
|
4
2
|
|
5
3
|
import {
|
@@ -8,13 +6,15 @@ import {
|
|
8
6
|
isXChainBridge,
|
9
7
|
validateBaseTransaction,
|
10
8
|
validateRequiredField,
|
9
|
+
isAccount,
|
10
|
+
Account,
|
11
11
|
} from './common'
|
12
12
|
|
13
13
|
/**
|
14
14
|
* The XChainAccountCreateCommit transaction creates a new account on one of the
|
15
15
|
* chains a bridge connects, which serves as the bridge entrance for that chain.
|
16
16
|
*
|
17
|
-
*
|
17
|
+
* WARNING: This transaction should only be executed if the witness attestations
|
18
18
|
* will be reliably delivered to the destination chain. If the signatures aren't
|
19
19
|
* delivered, then account creation will be blocked until attestations are received.
|
20
20
|
* This can be used maliciously; to disable this transaction on XRP-XRP bridges,
|
@@ -39,7 +39,7 @@ export interface XChainAccountCreateCommit extends BaseTransaction {
|
|
39
39
|
/**
|
40
40
|
* The destination account on the destination chain.
|
41
41
|
*/
|
42
|
-
Destination:
|
42
|
+
Destination: Account
|
43
43
|
|
44
44
|
/**
|
45
45
|
* The amount, in XRP, to use for account creation. This must be greater than or
|
@@ -63,7 +63,7 @@ export function validateXChainAccountCreateCommit(
|
|
63
63
|
|
64
64
|
validateRequiredField(tx, 'SignatureReward', isAmount)
|
65
65
|
|
66
|
-
validateRequiredField(tx, 'Destination',
|
66
|
+
validateRequiredField(tx, 'Destination', isAccount)
|
67
67
|
|
68
68
|
validateRequiredField(tx, 'Amount', isAmount)
|
69
69
|
}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
3
|
import {
|
4
|
+
Account,
|
4
5
|
BaseTransaction,
|
6
|
+
isAccount,
|
5
7
|
isAmount,
|
6
8
|
isNumber,
|
7
9
|
isString,
|
@@ -29,23 +31,23 @@ export interface XChainAddAccountCreateAttestation extends BaseTransaction {
|
|
29
31
|
/**
|
30
32
|
* The account that should receive this signer's share of the SignatureReward.
|
31
33
|
*/
|
32
|
-
AttestationRewardAccount:
|
34
|
+
AttestationRewardAccount: Account
|
33
35
|
|
34
36
|
/**
|
35
37
|
* The account on the door account's signer list that is signing the transaction.
|
36
38
|
*/
|
37
|
-
AttestationSignerAccount:
|
39
|
+
AttestationSignerAccount: Account
|
38
40
|
|
39
41
|
/**
|
40
42
|
* The destination account for the funds on the destination chain.
|
41
43
|
*/
|
42
|
-
Destination:
|
44
|
+
Destination: Account
|
43
45
|
|
44
46
|
/**
|
45
47
|
* The account on the source chain that submitted the {@link XChainAccountCreateCommit}
|
46
48
|
* transaction that triggered the event associated with the attestation.
|
47
49
|
*/
|
48
|
-
OtherChainSource:
|
50
|
+
OtherChainSource: Account
|
49
51
|
|
50
52
|
/**
|
51
53
|
* The public key used to verify the signature.
|
@@ -91,13 +93,13 @@ export function validateXChainAddAccountCreateAttestation(
|
|
91
93
|
|
92
94
|
validateRequiredField(tx, 'Amount', isAmount)
|
93
95
|
|
94
|
-
validateRequiredField(tx, 'AttestationRewardAccount',
|
96
|
+
validateRequiredField(tx, 'AttestationRewardAccount', isAccount)
|
95
97
|
|
96
|
-
validateRequiredField(tx, 'AttestationSignerAccount',
|
98
|
+
validateRequiredField(tx, 'AttestationSignerAccount', isAccount)
|
97
99
|
|
98
|
-
validateRequiredField(tx, 'Destination',
|
100
|
+
validateRequiredField(tx, 'Destination', isAccount)
|
99
101
|
|
100
|
-
validateRequiredField(tx, 'OtherChainSource',
|
102
|
+
validateRequiredField(tx, 'OtherChainSource', isAccount)
|
101
103
|
|
102
104
|
validateRequiredField(tx, 'PublicKey', isString)
|
103
105
|
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
3
|
import {
|
4
|
+
Account,
|
4
5
|
BaseTransaction,
|
6
|
+
isAccount,
|
5
7
|
isAmount,
|
6
8
|
isNumber,
|
7
9
|
isString,
|
@@ -28,24 +30,24 @@ export interface XChainAddClaimAttestation extends BaseTransaction {
|
|
28
30
|
/**
|
29
31
|
* The account that should receive this signer's share of the SignatureReward.
|
30
32
|
*/
|
31
|
-
AttestationRewardAccount:
|
33
|
+
AttestationRewardAccount: Account
|
32
34
|
|
33
35
|
/**
|
34
36
|
* The account on the door account's signer list that is signing the transaction.
|
35
37
|
*/
|
36
|
-
AttestationSignerAccount:
|
38
|
+
AttestationSignerAccount: Account
|
37
39
|
|
38
40
|
/**
|
39
41
|
* The destination account for the funds on the destination chain (taken from
|
40
42
|
* the {@link XChainCommit} transaction).
|
41
43
|
*/
|
42
|
-
Destination?:
|
44
|
+
Destination?: Account
|
43
45
|
|
44
46
|
/**
|
45
47
|
* The account on the source chain that submitted the {@link XChainCommit}
|
46
48
|
* transaction that triggered the event associated with the attestation.
|
47
49
|
*/
|
48
|
-
OtherChainSource:
|
50
|
+
OtherChainSource: Account
|
49
51
|
|
50
52
|
/**
|
51
53
|
* The public key used to verify the attestation signature.
|
@@ -87,13 +89,13 @@ export function validateXChainAddClaimAttestation(
|
|
87
89
|
|
88
90
|
validateRequiredField(tx, 'Amount', isAmount)
|
89
91
|
|
90
|
-
validateRequiredField(tx, 'AttestationRewardAccount',
|
92
|
+
validateRequiredField(tx, 'AttestationRewardAccount', isAccount)
|
91
93
|
|
92
|
-
validateRequiredField(tx, 'AttestationSignerAccount',
|
94
|
+
validateRequiredField(tx, 'AttestationSignerAccount', isAccount)
|
93
95
|
|
94
|
-
validateOptionalField(tx, 'Destination',
|
96
|
+
validateOptionalField(tx, 'Destination', isAccount)
|
95
97
|
|
96
|
-
validateRequiredField(tx, 'OtherChainSource',
|
98
|
+
validateRequiredField(tx, 'OtherChainSource', isAccount)
|
97
99
|
|
98
100
|
validateRequiredField(tx, 'PublicKey', isString)
|
99
101
|
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
3
|
import {
|
4
|
+
Account,
|
4
5
|
BaseTransaction,
|
6
|
+
isAccount,
|
5
7
|
isAmount,
|
6
8
|
isNumber,
|
7
9
|
isString,
|
@@ -38,7 +40,7 @@ export interface XChainClaim extends BaseTransaction {
|
|
38
40
|
* sequence number and collected signatures won't be destroyed, and the
|
39
41
|
* transaction can be rerun with a different destination.
|
40
42
|
*/
|
41
|
-
Destination:
|
43
|
+
Destination: Account
|
42
44
|
|
43
45
|
/**
|
44
46
|
* An integer destination tag.
|
@@ -69,7 +71,7 @@ export function validateXChainClaim(tx: Record<string, unknown>): void {
|
|
69
71
|
(inp) => isNumber(inp) || isString(inp),
|
70
72
|
)
|
71
73
|
|
72
|
-
validateRequiredField(tx, 'Destination',
|
74
|
+
validateRequiredField(tx, 'Destination', isAccount)
|
73
75
|
|
74
76
|
validateOptionalField(tx, 'DestinationTag', isNumber)
|
75
77
|
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
3
|
import {
|
4
|
+
Account,
|
4
5
|
BaseTransaction,
|
6
|
+
isAccount,
|
5
7
|
isAmount,
|
6
8
|
isNumber,
|
7
9
|
isString,
|
@@ -41,7 +43,7 @@ export interface XChainCommit extends BaseTransaction {
|
|
41
43
|
* destination chain will need to submit a {@link XChainClaim} transaction to
|
42
44
|
* claim the funds.
|
43
45
|
*/
|
44
|
-
OtherChainDestination?:
|
46
|
+
OtherChainDestination?: Account
|
45
47
|
|
46
48
|
/**
|
47
49
|
* The asset to commit, and the quantity. This must match the door account's
|
@@ -68,7 +70,7 @@ export function validateXChainCommit(tx: Record<string, unknown>): void {
|
|
68
70
|
(inp) => isNumber(inp) || isString(inp),
|
69
71
|
)
|
70
72
|
|
71
|
-
validateOptionalField(tx, 'OtherChainDestination',
|
73
|
+
validateOptionalField(tx, 'OtherChainDestination', isAccount)
|
72
74
|
|
73
75
|
validateRequiredField(tx, 'Amount', isAmount)
|
74
76
|
}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common'
|
2
2
|
|
3
3
|
import {
|
4
|
+
Account,
|
4
5
|
BaseTransaction,
|
6
|
+
isAccount,
|
5
7
|
isAmount,
|
6
|
-
isString,
|
7
8
|
isXChainBridge,
|
8
9
|
validateBaseTransaction,
|
9
10
|
validateRequiredField,
|
@@ -33,7 +34,7 @@ export interface XChainCreateClaimID extends BaseTransaction {
|
|
33
34
|
/**
|
34
35
|
* The account that must send the {@link XChainCommit} transaction on the source chain.
|
35
36
|
*/
|
36
|
-
OtherChainSource:
|
37
|
+
OtherChainSource: Account
|
37
38
|
}
|
38
39
|
|
39
40
|
/**
|
@@ -49,5 +50,5 @@ export function validateXChainCreateClaimID(tx: Record<string, unknown>): void {
|
|
49
50
|
|
50
51
|
validateRequiredField(tx, 'SignatureReward', isAmount)
|
51
52
|
|
52
|
-
validateRequiredField(tx, 'OtherChainSource',
|
53
|
+
validateRequiredField(tx, 'OtherChainSource', isAccount)
|
53
54
|
}
|