xrpl 3.1.0 → 4.0.0-mpt-beta
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 +3 -3
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +394 -710
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts +1 -2
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -5
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/Wallet/fundWallet.js +1 -5
- package/dist/npm/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/client/RequestManager.d.ts +5 -4
- package/dist/npm/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/client/RequestManager.js.map +1 -1
- package/dist/npm/client/connection.d.ts +2 -2
- package/dist/npm/client/connection.d.ts.map +1 -1
- package/dist/npm/client/connection.js.map +1 -1
- package/dist/npm/client/index.d.ts +4 -3
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js +16 -4
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts +2 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js +19 -3
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +9 -0
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/common/index.js +4 -0
- package/dist/npm/models/common/index.js.map +1 -1
- package/dist/npm/models/index.d.ts +1 -1
- package/dist/npm/models/index.d.ts.map +1 -1
- package/dist/npm/models/index.js +2 -1
- package/dist/npm/models/index.js.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +2 -2
- package/dist/npm/models/ledger/AMM.d.ts.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 +3 -3
- package/dist/npm/models/ledger/BaseLedgerEntry.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/FeeSettings.d.ts +2 -2
- package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/models/ledger/Ledger.d.ts +11 -2
- package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +1 -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/MPToken.d.ts +11 -0
- package/dist/npm/models/ledger/MPToken.d.ts.map +1 -0
- package/dist/npm/models/ledger/MPToken.js +3 -0
- package/dist/npm/models/ledger/MPToken.js.map +1 -0
- package/dist/npm/models/ledger/MPTokenIssuance.d.ts +14 -0
- package/dist/npm/models/ledger/MPTokenIssuance.d.ts.map +1 -0
- package/dist/npm/models/ledger/MPTokenIssuance.js +3 -0
- package/dist/npm/models/ledger/MPTokenIssuance.js.map +1 -0
- 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/index.d.ts +4 -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/accountInfo.d.ts +17 -4
- package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/accountTx.d.ts +11 -5
- package/dist/npm/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/models/methods/feature.d.ts +28 -0
- package/dist/npm/models/methods/feature.d.ts.map +1 -0
- package/dist/npm/models/methods/feature.js +3 -0
- package/dist/npm/models/methods/feature.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +14 -11
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +17 -5
- package/dist/npm/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +5 -0
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/nftsByIssuer.d.ts +19 -0
- package/dist/npm/models/methods/nftsByIssuer.d.ts.map +1 -0
- package/dist/npm/models/methods/nftsByIssuer.js +3 -0
- package/dist/npm/models/methods/nftsByIssuer.js.map +1 -0
- package/dist/npm/models/methods/submitMultisigned.d.ts +16 -5
- package/dist/npm/models/methods/submitMultisigned.d.ts.map +1 -1
- package/dist/npm/models/methods/tx.d.ts +20 -8
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/MPTokenAuthorize.d.ts +15 -0
- package/dist/npm/models/transactions/MPTokenAuthorize.d.ts.map +1 -0
- package/dist/npm/models/transactions/MPTokenAuthorize.js +15 -0
- package/dist/npm/models/transactions/MPTokenAuthorize.js.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceCreate.d.ts +31 -0
- package/dist/npm/models/transactions/MPTokenIssuanceCreate.d.ts.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceCreate.js +26 -0
- package/dist/npm/models/transactions/MPTokenIssuanceCreate.js.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceDestroy.d.ts +7 -0
- package/dist/npm/models/transactions/MPTokenIssuanceDestroy.d.ts.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceDestroy.js +10 -0
- package/dist/npm/models/transactions/MPTokenIssuanceDestroy.js.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceSet.d.ts +17 -0
- package/dist/npm/models/transactions/MPTokenIssuanceSet.d.ts.map +1 -0
- package/dist/npm/models/transactions/MPTokenIssuanceSet.js +22 -0
- package/dist/npm/models/transactions/MPTokenIssuanceSet.js.map +1 -0
- package/dist/npm/models/transactions/clawback.d.ts +3 -2
- package/dist/npm/models/transactions/clawback.d.ts.map +1 -1
- package/dist/npm/models/transactions/clawback.js +11 -1
- package/dist/npm/models/transactions/clawback.js.map +1 -1
- package/dist/npm/models/transactions/common.d.ts +2 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +12 -2
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +5 -1
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js +9 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/metadata.d.ts +5 -4
- package/dist/npm/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/models/transactions/metadata.js.map +1 -1
- package/dist/npm/models/transactions/payment.d.ts +4 -4
- package/dist/npm/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +5 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +16 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts +1 -0
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +23 -1
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/src/claimPayChannel.js +1 -1
- package/dist/npm/snippets/src/claimPayChannel.js.map +1 -1
- package/dist/npm/snippets/src/sendEscrow.js +1 -1
- package/dist/npm/snippets/src/sendEscrow.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -2
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -5
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.d.ts.map +1 -1
- package/dist/npm/src/Wallet/fundWallet.js +1 -5
- package/dist/npm/src/Wallet/fundWallet.js.map +1 -1
- package/dist/npm/src/client/RequestManager.d.ts +5 -4
- package/dist/npm/src/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/src/client/RequestManager.js.map +1 -1
- package/dist/npm/src/client/connection.d.ts +2 -2
- package/dist/npm/src/client/connection.d.ts.map +1 -1
- package/dist/npm/src/client/connection.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +4 -3
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js +16 -4
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts +2 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js +19 -3
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +9 -0
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/common/index.js +4 -0
- package/dist/npm/src/models/common/index.js.map +1 -1
- package/dist/npm/src/models/index.d.ts +1 -1
- package/dist/npm/src/models/index.d.ts.map +1 -1
- package/dist/npm/src/models/index.js +2 -1
- package/dist/npm/src/models/index.js.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +2 -2
- package/dist/npm/src/models/ledger/AMM.d.ts.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 +3 -3
- package/dist/npm/src/models/ledger/BaseLedgerEntry.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/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 +11 -2
- package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +1 -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/MPToken.d.ts +11 -0
- package/dist/npm/src/models/ledger/MPToken.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/MPToken.js +3 -0
- package/dist/npm/src/models/ledger/MPToken.js.map +1 -0
- package/dist/npm/src/models/ledger/MPTokenIssuance.d.ts +14 -0
- package/dist/npm/src/models/ledger/MPTokenIssuance.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/MPTokenIssuance.js +3 -0
- package/dist/npm/src/models/ledger/MPTokenIssuance.js.map +1 -0
- 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/index.d.ts +4 -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/accountInfo.d.ts +17 -4
- package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountTx.d.ts +11 -5
- package/dist/npm/src/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/src/models/methods/feature.d.ts +28 -0
- package/dist/npm/src/models/methods/feature.d.ts.map +1 -0
- package/dist/npm/src/models/methods/feature.js +3 -0
- package/dist/npm/src/models/methods/feature.js.map +1 -0
- package/dist/npm/src/models/methods/index.d.ts +14 -11
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +17 -5
- package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +5 -0
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftsByIssuer.d.ts +19 -0
- package/dist/npm/src/models/methods/nftsByIssuer.d.ts.map +1 -0
- package/dist/npm/src/models/methods/nftsByIssuer.js +3 -0
- package/dist/npm/src/models/methods/nftsByIssuer.js.map +1 -0
- package/dist/npm/src/models/methods/submitMultisigned.d.ts +16 -5
- package/dist/npm/src/models/methods/submitMultisigned.d.ts.map +1 -1
- package/dist/npm/src/models/methods/tx.d.ts +20 -8
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/MPTokenAuthorize.d.ts +15 -0
- package/dist/npm/src/models/transactions/MPTokenAuthorize.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenAuthorize.js +15 -0
- package/dist/npm/src/models/transactions/MPTokenAuthorize.js.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.d.ts +31 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.js +26 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.js.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceDestroy.d.ts +7 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceDestroy.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceDestroy.js +10 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceDestroy.js.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceSet.d.ts +17 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceSet.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceSet.js +22 -0
- package/dist/npm/src/models/transactions/MPTokenIssuanceSet.js.map +1 -0
- package/dist/npm/src/models/transactions/clawback.d.ts +3 -2
- package/dist/npm/src/models/transactions/clawback.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/clawback.js +11 -1
- package/dist/npm/src/models/transactions/clawback.js.map +1 -1
- package/dist/npm/src/models/transactions/common.d.ts +2 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +12 -2
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +5 -1
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js +9 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/metadata.d.ts +5 -4
- package/dist/npm/src/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/metadata.js.map +1 -1
- package/dist/npm/src/models/transactions/payment.d.ts +4 -4
- package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +5 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +16 -0
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts +1 -0
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +23 -1
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +2 -4
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/sugar/getFeeXrp.d.ts +1 -1
- package/dist/npm/src/sugar/getFeeXrp.d.ts.map +1 -1
- package/dist/npm/src/sugar/getFeeXrp.js +3 -2
- package/dist/npm/src/sugar/getFeeXrp.js.map +1 -1
- package/dist/npm/src/sugar/submit.d.ts.map +1 -1
- package/dist/npm/src/sugar/submit.js.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.d.ts +4 -3
- 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 +4 -2
- 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/mptConversion.d.ts +2 -0
- package/dist/npm/src/utils/mptConversion.d.ts.map +1 -0
- package/dist/npm/src/utils/mptConversion.js +31 -0
- package/dist/npm/src/utils/mptConversion.js.map +1 -0
- package/dist/npm/sugar/autofill.d.ts +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +2 -4
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/getFeeXrp.d.ts +1 -1
- package/dist/npm/sugar/getFeeXrp.d.ts.map +1 -1
- package/dist/npm/sugar/getFeeXrp.js +3 -2
- package/dist/npm/sugar/getFeeXrp.js.map +1 -1
- package/dist/npm/sugar/submit.d.ts.map +1 -1
- package/dist/npm/sugar/submit.js.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.d.ts +4 -3
- 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 +4 -2
- 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/mptConversion.d.ts +2 -0
- package/dist/npm/utils/mptConversion.d.ts.map +1 -0
- package/dist/npm/utils/mptConversion.js +31 -0
- package/dist/npm/utils/mptConversion.js.map +1 -0
- package/package.json +6 -7
- package/src/Wallet/defaultFaucets.ts +0 -6
- package/src/Wallet/fundWallet.ts +0 -1
- package/src/client/RequestManager.ts +17 -12
- package/src/client/connection.ts +7 -5
- package/src/client/index.ts +63 -16
- package/src/client/partialPayment.ts +55 -17
- package/src/models/common/index.ts +13 -0
- package/src/models/index.ts +1 -0
- package/src/models/ledger/AMM.ts +2 -2
- package/src/models/ledger/Amendments.ts +2 -2
- package/src/models/ledger/BaseLedgerEntry.ts +9 -5
- package/src/models/ledger/DirectoryNode.ts +2 -2
- package/src/models/ledger/FeeSettings.ts +4 -2
- package/src/models/ledger/Ledger.ts +46 -9
- package/src/models/ledger/LedgerEntry.ts +2 -0
- package/src/models/ledger/LedgerHashes.ts +2 -4
- package/src/models/ledger/MPToken.ts +12 -0
- package/src/models/ledger/MPTokenIssuance.ts +14 -0
- package/src/models/ledger/NegativeUNL.ts +2 -2
- package/src/models/ledger/index.ts +6 -1
- package/src/models/methods/accountInfo.ts +58 -12
- package/src/models/methods/accountTx.ts +49 -8
- package/src/models/methods/feature.ts +68 -0
- package/src/models/methods/index.ts +67 -23
- package/src/models/methods/ledger.ts +41 -5
- package/src/models/methods/ledgerEntry.ts +16 -0
- package/src/models/methods/nftsByIssuer.ts +68 -0
- package/src/models/methods/submitMultisigned.ts +48 -16
- package/src/models/methods/tx.ts +74 -22
- package/src/models/transactions/MPTokenAuthorize.ts +67 -0
- package/src/models/transactions/MPTokenIssuanceCreate.ts +132 -0
- package/src/models/transactions/MPTokenIssuanceDestroy.ts +34 -0
- package/src/models/transactions/MPTokenIssuanceSet.ts +76 -0
- package/src/models/transactions/clawback.ts +29 -6
- package/src/models/transactions/common.ts +22 -1
- package/src/models/transactions/index.ts +17 -1
- package/src/models/transactions/metadata.ts +9 -3
- package/src/models/transactions/payment.ts +4 -4
- package/src/models/transactions/transaction.ts +33 -0
- package/src/models/utils/flags.ts +33 -1
- package/src/sugar/autofill.ts +4 -10
- package/src/sugar/getFeeXrp.ts +6 -3
- package/src/sugar/submit.ts +5 -3
- package/src/utils/hashes/hashLedger.ts +8 -5
- package/src/utils/index.ts +4 -1
- package/src/utils/mptConversion.ts +61 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
2
|
+
|
3
|
+
export interface FeatureAllRequest extends BaseRequest {
|
4
|
+
command: 'feature'
|
5
|
+
|
6
|
+
feature?: never
|
7
|
+
}
|
8
|
+
|
9
|
+
export interface FeatureOneRequest extends BaseRequest {
|
10
|
+
command: 'feature'
|
11
|
+
|
12
|
+
feature: string
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* The `feature` command returns information about amendments this server knows about, including whether they are enabled.
|
17
|
+
* Returns an {@link FeatureResponse}.
|
18
|
+
*
|
19
|
+
* @category Requests
|
20
|
+
*/
|
21
|
+
export type FeatureRequest = FeatureAllRequest | FeatureOneRequest
|
22
|
+
|
23
|
+
export interface FeatureAllResponse extends BaseResponse {
|
24
|
+
result: {
|
25
|
+
features: Record<
|
26
|
+
string,
|
27
|
+
{
|
28
|
+
/*
|
29
|
+
* Whether this amendment is currently enabled in the latest ledger.
|
30
|
+
*/
|
31
|
+
enabled: boolean
|
32
|
+
|
33
|
+
/*
|
34
|
+
* The human-readable name for this amendment, if known.
|
35
|
+
*/
|
36
|
+
name: string
|
37
|
+
|
38
|
+
supported: boolean
|
39
|
+
}
|
40
|
+
>
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
export interface FeatureOneResponse extends BaseResponse {
|
45
|
+
result: Record<
|
46
|
+
string,
|
47
|
+
{
|
48
|
+
/*
|
49
|
+
* Whether this amendment is currently enabled in the latest ledger.
|
50
|
+
*/
|
51
|
+
enabled: boolean
|
52
|
+
|
53
|
+
/*
|
54
|
+
* The human-readable name for this amendment, if known.
|
55
|
+
*/
|
56
|
+
name: string
|
57
|
+
|
58
|
+
supported: boolean
|
59
|
+
}
|
60
|
+
>
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Response expected from an {@link FeatureRequest}.
|
65
|
+
*
|
66
|
+
* @category Responses
|
67
|
+
*/
|
68
|
+
export type FeatureResponse = FeatureAllResponse | FeatureOneResponse
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/* eslint-disable no-inline-comments -- Necessary for important note */
|
2
2
|
/* eslint-disable max-lines -- There is a lot to export */
|
3
|
+
import type { APIVersion, DEFAULT_API_VERSION } from '../common'
|
4
|
+
|
3
5
|
import {
|
4
6
|
AccountChannelsRequest,
|
5
7
|
AccountChannelsResponse,
|
@@ -13,6 +15,8 @@ import {
|
|
13
15
|
AccountInfoAccountFlags,
|
14
16
|
AccountInfoRequest,
|
15
17
|
AccountInfoResponse,
|
18
|
+
AccountInfoV1Response,
|
19
|
+
AccountInfoVersionResponseMap,
|
16
20
|
AccountQueueData,
|
17
21
|
AccountQueueTransaction,
|
18
22
|
} from './accountInfo'
|
@@ -40,6 +44,8 @@ import {
|
|
40
44
|
import {
|
41
45
|
AccountTxRequest,
|
42
46
|
AccountTxResponse,
|
47
|
+
AccountTxV1Response,
|
48
|
+
AccountTxVersionResponseMap,
|
43
49
|
AccountTxTransaction,
|
44
50
|
} from './accountTx'
|
45
51
|
import { AMMInfoRequest, AMMInfoResponse } from './ammInfo'
|
@@ -60,6 +66,14 @@ import {
|
|
60
66
|
DepositAuthorizedRequest,
|
61
67
|
DepositAuthorizedResponse,
|
62
68
|
} from './depositAuthorized'
|
69
|
+
import {
|
70
|
+
FeatureAllRequest,
|
71
|
+
FeatureAllResponse,
|
72
|
+
FeatureOneRequest,
|
73
|
+
FeatureOneResponse,
|
74
|
+
FeatureRequest,
|
75
|
+
FeatureResponse,
|
76
|
+
} from './feature'
|
63
77
|
import { FeeRequest, FeeResponse } from './fee'
|
64
78
|
import {
|
65
79
|
GatewayBalance,
|
@@ -76,11 +90,13 @@ import {
|
|
76
90
|
LedgerQueueData,
|
77
91
|
LedgerRequest,
|
78
92
|
LedgerResponse,
|
93
|
+
LedgerV1Response,
|
79
94
|
LedgerRequestExpandedTransactionsOnly,
|
80
95
|
LedgerResponseExpanded,
|
81
96
|
LedgerRequestExpandedAccountsAndTransactions,
|
82
97
|
LedgerRequestExpandedAccountsOnly,
|
83
98
|
LedgerRequestExpandedTransactionsBinary,
|
99
|
+
LedgerVersionResponseMap,
|
84
100
|
} from './ledger'
|
85
101
|
import { LedgerClosedRequest, LedgerClosedResponse } from './ledgerClosed'
|
86
102
|
import { LedgerCurrentRequest, LedgerCurrentResponse } from './ledgerCurrent'
|
@@ -100,6 +116,7 @@ import {
|
|
100
116
|
NFTHistoryTransaction,
|
101
117
|
} from './nftHistory'
|
102
118
|
import { NFTInfoRequest, NFTInfoResponse } from './nftInfo'
|
119
|
+
import { NFTsByIssuerRequest, NFTsByIssuerResponse } from './nftsByIssuer'
|
103
120
|
import { NFTSellOffersRequest, NFTSellOffersResponse } from './nftSellOffers'
|
104
121
|
import { NoRippleCheckRequest, NoRippleCheckResponse } from './norippleCheck'
|
105
122
|
import {
|
@@ -135,6 +152,8 @@ import { SubmitRequest, SubmitResponse } from './submit'
|
|
135
152
|
import {
|
136
153
|
SubmitMultisignedRequest,
|
137
154
|
SubmitMultisignedResponse,
|
155
|
+
SubmitMultisignedV1Response,
|
156
|
+
SubmitMultisignedVersionResponseMap,
|
138
157
|
} from './submitMultisigned'
|
139
158
|
import {
|
140
159
|
BooksSnapshot,
|
@@ -155,7 +174,7 @@ import {
|
|
155
174
|
TransactionEntryRequest,
|
156
175
|
TransactionEntryResponse,
|
157
176
|
} from './transactionEntry'
|
158
|
-
import { TxRequest, TxResponse } from './tx'
|
177
|
+
import { TxRequest, TxResponse, TxV1Response, TxVersionResponseMap } from './tx'
|
159
178
|
import {
|
160
179
|
UnsubscribeBook,
|
161
180
|
UnsubscribeRequest,
|
@@ -203,6 +222,7 @@ type Request =
|
|
203
222
|
| ServerDefinitionsRequest
|
204
223
|
| ServerInfoRequest
|
205
224
|
| ServerStateRequest
|
225
|
+
| FeatureRequest
|
206
226
|
// utility methods
|
207
227
|
| PingRequest
|
208
228
|
| RandomRequest
|
@@ -212,6 +232,7 @@ type Request =
|
|
212
232
|
// clio only methods
|
213
233
|
| NFTInfoRequest
|
214
234
|
| NFTHistoryRequest
|
235
|
+
| NFTsByIssuerRequest
|
215
236
|
// AMM methods
|
216
237
|
| AMMInfoRequest
|
217
238
|
// Price Oracle methods
|
@@ -220,27 +241,27 @@ type Request =
|
|
220
241
|
/**
|
221
242
|
* @category Responses
|
222
243
|
*/
|
223
|
-
type Response =
|
244
|
+
type Response<Version extends APIVersion = typeof DEFAULT_API_VERSION> =
|
224
245
|
// account methods
|
225
246
|
| AccountChannelsResponse
|
226
247
|
| AccountCurrenciesResponse
|
227
|
-
|
|
248
|
+
| AccountInfoVersionResponseMap<Version>
|
228
249
|
| AccountLinesResponse
|
229
250
|
| AccountNFTsResponse
|
230
251
|
| AccountObjectsResponse
|
231
252
|
| AccountOffersResponse
|
232
|
-
|
|
253
|
+
| AccountTxVersionResponseMap<Version>
|
233
254
|
| GatewayBalancesResponse
|
234
255
|
| NoRippleCheckResponse
|
235
256
|
// ledger methods
|
236
|
-
|
|
257
|
+
| LedgerVersionResponseMap<Version>
|
237
258
|
| LedgerClosedResponse
|
238
259
|
| LedgerCurrentResponse
|
239
260
|
| LedgerDataResponse
|
240
261
|
| LedgerEntryResponse
|
241
262
|
// transaction methods
|
242
263
|
| SubmitResponse
|
243
|
-
|
|
264
|
+
| SubmitMultisignedVersionResponseMap<Version>
|
244
265
|
| TransactionEntryResponse
|
245
266
|
| TxResponse
|
246
267
|
// path and order book methods
|
@@ -259,6 +280,7 @@ type Response =
|
|
259
280
|
| ServerDefinitionsResponse
|
260
281
|
| ServerInfoResponse
|
261
282
|
| ServerStateResponse
|
283
|
+
| FeatureResponse
|
262
284
|
// utility methods
|
263
285
|
| PingResponse
|
264
286
|
| RandomResponse
|
@@ -268,17 +290,21 @@ type Response =
|
|
268
290
|
// clio only methods
|
269
291
|
| NFTInfoResponse
|
270
292
|
| NFTHistoryResponse
|
293
|
+
| NFTsByIssuerResponse
|
271
294
|
// AMM methods
|
272
295
|
| AMMInfoResponse
|
273
296
|
// Price Oracle methods
|
274
297
|
| GetAggregatePriceResponse
|
275
298
|
|
276
|
-
export type RequestResponseMap<
|
299
|
+
export type RequestResponseMap<
|
300
|
+
T,
|
301
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
302
|
+
> = T extends AccountChannelsRequest
|
277
303
|
? AccountChannelsResponse
|
278
304
|
: T extends AccountCurrenciesRequest
|
279
305
|
? AccountCurrenciesResponse
|
280
306
|
: T extends AccountInfoRequest
|
281
|
-
?
|
307
|
+
? AccountInfoVersionResponseMap<Version>
|
282
308
|
: T extends AccountLinesRequest
|
283
309
|
? AccountLinesResponse
|
284
310
|
: T extends AccountNFTsRequest
|
@@ -288,7 +314,7 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
288
314
|
: T extends AccountOffersRequest
|
289
315
|
? AccountOffersResponse
|
290
316
|
: T extends AccountTxRequest
|
291
|
-
?
|
317
|
+
? AccountTxVersionResponseMap<Version>
|
292
318
|
: T extends AMMInfoRequest
|
293
319
|
? AMMInfoResponse
|
294
320
|
: T extends GatewayBalancesRequest
|
@@ -354,15 +380,15 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
354
380
|
// then we'd get the wrong response type, LedgerResponse, instead of
|
355
381
|
// LedgerResponseExpanded.
|
356
382
|
T extends LedgerRequestExpandedTransactionsBinary
|
357
|
-
?
|
383
|
+
? LedgerVersionResponseMap<Version>
|
358
384
|
: T extends LedgerRequestExpandedAccountsAndTransactions
|
359
|
-
? LedgerResponseExpanded
|
385
|
+
? LedgerResponseExpanded<Version>
|
360
386
|
: T extends LedgerRequestExpandedTransactionsOnly
|
361
|
-
? LedgerResponseExpanded
|
387
|
+
? LedgerResponseExpanded<Version>
|
362
388
|
: T extends LedgerRequestExpandedAccountsOnly
|
363
|
-
? LedgerResponseExpanded
|
389
|
+
? LedgerResponseExpanded<Version>
|
364
390
|
: T extends LedgerRequest
|
365
|
-
?
|
391
|
+
? LedgerVersionResponseMap<Version>
|
366
392
|
: T extends LedgerClosedRequest
|
367
393
|
? LedgerClosedResponse
|
368
394
|
: T extends LedgerCurrentRequest
|
@@ -374,11 +400,11 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
374
400
|
: T extends SubmitRequest
|
375
401
|
? SubmitResponse
|
376
402
|
: T extends SubmitMultisignedRequest
|
377
|
-
?
|
403
|
+
? SubmitMultisignedVersionResponseMap<Version>
|
378
404
|
: T extends TransactionEntryRequest
|
379
405
|
? TransactionEntryResponse
|
380
406
|
: T extends TxRequest
|
381
|
-
?
|
407
|
+
? TxVersionResponseMap<Version>
|
382
408
|
: T extends BookOffersRequest
|
383
409
|
? BookOffersResponse
|
384
410
|
: T extends DepositAuthorizedRequest
|
@@ -403,6 +429,10 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
403
429
|
? ServerStateResponse
|
404
430
|
: T extends ServerDefinitionsRequest
|
405
431
|
? ServerDefinitionsResponse
|
432
|
+
: T extends FeatureAllRequest
|
433
|
+
? FeatureAllResponse
|
434
|
+
: T extends FeatureOneRequest
|
435
|
+
? FeatureOneResponse
|
406
436
|
: T extends PingRequest
|
407
437
|
? PingResponse
|
408
438
|
: T extends RandomRequest
|
@@ -413,22 +443,29 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
413
443
|
? NFTSellOffersResponse
|
414
444
|
: T extends NFTInfoRequest
|
415
445
|
? NFTInfoResponse
|
446
|
+
: T extends NFTsByIssuerRequest
|
447
|
+
? NFTsByIssuerResponse
|
416
448
|
: T extends NFTHistoryRequest
|
417
449
|
? NFTHistoryResponse
|
418
|
-
: Response
|
450
|
+
: Response<Version>
|
419
451
|
|
420
452
|
export type MarkerRequest = Request & {
|
421
453
|
limit?: number
|
422
454
|
marker?: unknown
|
423
455
|
}
|
424
456
|
|
425
|
-
export type MarkerResponse
|
457
|
+
export type MarkerResponse<
|
458
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
459
|
+
> = Response<Version> & {
|
426
460
|
result: {
|
427
461
|
marker?: unknown
|
428
462
|
}
|
429
463
|
}
|
430
464
|
|
431
|
-
export type RequestAllResponseMap<
|
465
|
+
export type RequestAllResponseMap<
|
466
|
+
T,
|
467
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
468
|
+
> = T extends AccountChannelsRequest
|
432
469
|
? AccountChannelsResponse
|
433
470
|
: T extends AccountLinesRequest
|
434
471
|
? AccountLinesResponse
|
@@ -437,14 +474,12 @@ export type RequestAllResponseMap<T> = T extends AccountChannelsRequest
|
|
437
474
|
: T extends AccountOffersRequest
|
438
475
|
? AccountOffersResponse
|
439
476
|
: T extends AccountTxRequest
|
440
|
-
?
|
477
|
+
? AccountTxVersionResponseMap<Version>
|
441
478
|
: T extends LedgerDataRequest
|
442
479
|
? LedgerDataResponse
|
443
|
-
: T extends AccountTxRequest
|
444
|
-
? AccountTxResponse
|
445
480
|
: T extends BookOffersRequest
|
446
481
|
? BookOffersResponse
|
447
|
-
: MarkerResponse
|
482
|
+
: MarkerResponse<Version>
|
448
483
|
|
449
484
|
export {
|
450
485
|
// Allow users to define their own requests and responses. This is useful for releasing experimental versions
|
@@ -462,6 +497,7 @@ export {
|
|
462
497
|
AccountInfoAccountFlags,
|
463
498
|
AccountInfoRequest,
|
464
499
|
AccountInfoResponse,
|
500
|
+
AccountInfoV1Response,
|
465
501
|
AccountQueueData,
|
466
502
|
AccountQueueTransaction,
|
467
503
|
AccountLinesRequest,
|
@@ -479,6 +515,7 @@ export {
|
|
479
515
|
AccountOffersResponse,
|
480
516
|
AccountTxRequest,
|
481
517
|
AccountTxResponse,
|
518
|
+
AccountTxV1Response,
|
482
519
|
AccountTxTransaction,
|
483
520
|
GatewayBalance,
|
484
521
|
GatewayBalancesRequest,
|
@@ -490,6 +527,7 @@ export {
|
|
490
527
|
// ledger methods
|
491
528
|
LedgerRequest,
|
492
529
|
LedgerResponse,
|
530
|
+
LedgerV1Response,
|
493
531
|
LedgerQueueData,
|
494
532
|
LedgerBinary,
|
495
533
|
LedgerModifiedOfferCreateTransaction,
|
@@ -509,10 +547,12 @@ export {
|
|
509
547
|
SubmitResponse,
|
510
548
|
SubmitMultisignedRequest,
|
511
549
|
SubmitMultisignedResponse,
|
550
|
+
SubmitMultisignedV1Response,
|
512
551
|
TransactionEntryRequest,
|
513
552
|
TransactionEntryResponse,
|
514
553
|
TxRequest,
|
515
554
|
TxResponse,
|
555
|
+
TxV1Response,
|
516
556
|
// path and order book methods with types
|
517
557
|
BookOffersRequest,
|
518
558
|
BookOffer,
|
@@ -565,6 +605,8 @@ export {
|
|
565
605
|
ServerState,
|
566
606
|
StateAccountingFinal,
|
567
607
|
StateAccounting,
|
608
|
+
FeatureRequest,
|
609
|
+
FeatureResponse,
|
568
610
|
// utility methods
|
569
611
|
PingRequest,
|
570
612
|
PingResponse,
|
@@ -582,6 +624,8 @@ export {
|
|
582
624
|
NFTHistoryRequest,
|
583
625
|
NFTHistoryResponse,
|
584
626
|
NFTHistoryTransaction,
|
627
|
+
NFTsByIssuerRequest,
|
628
|
+
NFTsByIssuerResponse,
|
585
629
|
// AMM methods
|
586
630
|
AMMInfoRequest,
|
587
631
|
AMMInfoResponse,
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { APIVersion, DEFAULT_API_VERSION, RIPPLED_API_V1 } from '../common'
|
2
|
+
import { Ledger, LedgerV1, LedgerVersionMap } from '../ledger/Ledger'
|
2
3
|
import { LedgerEntryFilter } from '../ledger/LedgerEntry'
|
3
4
|
import { Transaction, TransactionAndMetadata } from '../transactions'
|
4
5
|
import { TransactionMetadata } from '../transactions/metadata'
|
@@ -207,6 +208,12 @@ export interface LedgerBinary
|
|
207
208
|
transactions?: string[]
|
208
209
|
}
|
209
210
|
|
211
|
+
export interface LedgerBinaryV1
|
212
|
+
extends Omit<Omit<LedgerV1, 'transactions'>, 'accountState'> {
|
213
|
+
accountState?: string[]
|
214
|
+
transactions?: string[]
|
215
|
+
}
|
216
|
+
|
210
217
|
interface LedgerResponseBase {
|
211
218
|
/** Unique identifying hash of the entire ledger. */
|
212
219
|
ledger_hash: string
|
@@ -231,6 +238,11 @@ interface LedgerResponseResult extends LedgerResponseBase {
|
|
231
238
|
ledger: LedgerBinary
|
232
239
|
}
|
233
240
|
|
241
|
+
interface LedgerV1ResponseResult extends LedgerResponseBase {
|
242
|
+
/** The complete header data of this {@link Ledger}. */
|
243
|
+
ledger: LedgerBinaryV1
|
244
|
+
}
|
245
|
+
|
234
246
|
/**
|
235
247
|
* Response expected from a {@link LedgerRequest}.
|
236
248
|
* This is the default request response, triggered when `expand` and `binary` are both false.
|
@@ -241,9 +253,31 @@ export interface LedgerResponse extends BaseResponse {
|
|
241
253
|
result: LedgerResponseResult
|
242
254
|
}
|
243
255
|
|
244
|
-
|
256
|
+
/**
|
257
|
+
* Response expected from a {@link LedgerRequest}.
|
258
|
+
* This is the default request response, triggered when `expand` and `binary` are both false.
|
259
|
+
* This is the response for API version 1.
|
260
|
+
*
|
261
|
+
* @category ResponsesV1
|
262
|
+
*/
|
263
|
+
export interface LedgerV1Response extends BaseResponse {
|
264
|
+
result: LedgerV1ResponseResult
|
265
|
+
}
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Type to map between the API version and the response type.
|
269
|
+
*
|
270
|
+
* @category Responses
|
271
|
+
*/
|
272
|
+
export type LedgerVersionResponseMap<
|
273
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
274
|
+
> = Version extends typeof RIPPLED_API_V1 ? LedgerV1Response : LedgerResponse
|
275
|
+
|
276
|
+
interface LedgerResponseExpandedResult<
|
277
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
278
|
+
> extends LedgerResponseBase {
|
245
279
|
/** The complete header data of this {@link Ledger}. */
|
246
|
-
ledger:
|
280
|
+
ledger: LedgerVersionMap<Version>
|
247
281
|
}
|
248
282
|
|
249
283
|
/**
|
@@ -254,6 +288,8 @@ interface LedgerResponseExpandedResult extends LedgerResponseBase {
|
|
254
288
|
*
|
255
289
|
* @category Responses
|
256
290
|
*/
|
257
|
-
export interface LedgerResponseExpanded
|
258
|
-
|
291
|
+
export interface LedgerResponseExpanded<
|
292
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
293
|
+
> extends BaseResponse {
|
294
|
+
result: LedgerResponseExpandedResult<Version>
|
259
295
|
}
|
@@ -21,6 +21,22 @@ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
|
21
21
|
*/
|
22
22
|
export interface LedgerEntryRequest extends BaseRequest, LookupByLedgerRequest {
|
23
23
|
command: 'ledger_entry'
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Retrieve a MPTokenIssuance object from the ledger.
|
27
|
+
*/
|
28
|
+
mpt_issuance?: string
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Retrieve a MPToken object from the ledger.
|
32
|
+
*/
|
33
|
+
mptoken?:
|
34
|
+
| {
|
35
|
+
mpt_issuance_id: string
|
36
|
+
account: string
|
37
|
+
}
|
38
|
+
| string
|
39
|
+
|
24
40
|
/**
|
25
41
|
* Retrieve an Automated Market Maker (AMM) object from the ledger.
|
26
42
|
* This is similar to amm_info method, but the ledger_entry version returns only the ledger entry as stored.
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { NFToken } from '../common'
|
2
|
+
|
3
|
+
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The nfts_by_issuer method returns a list of NFTokens issued by the account.
|
7
|
+
* The order of the NFTs is not associated with the date the NFTs were minted.
|
8
|
+
* Expects a response in the form of a {@link
|
9
|
+
* NFTsByIssuerResponse}.
|
10
|
+
*
|
11
|
+
* @category Requests
|
12
|
+
*/
|
13
|
+
export interface NFTsByIssuerRequest
|
14
|
+
extends BaseRequest,
|
15
|
+
LookupByLedgerRequest {
|
16
|
+
command: 'nfts_by_issuer'
|
17
|
+
/**
|
18
|
+
* A unique identifier for the account, most commonly the account's address
|
19
|
+
*/
|
20
|
+
issuer: string
|
21
|
+
/**
|
22
|
+
* Value from a previous paginated response. Resume retrieving data where
|
23
|
+
* that response left off. This value is stable even if there is a change in
|
24
|
+
* the server's range of available ledgers.
|
25
|
+
*/
|
26
|
+
marker?: unknown
|
27
|
+
/**
|
28
|
+
* Filter NFTs issued by this issuer that have this taxon.
|
29
|
+
*/
|
30
|
+
nft_taxon?: number
|
31
|
+
/**
|
32
|
+
* Default varies. Limit the number of transactions to retrieve. The server
|
33
|
+
* is not required to honor this value.
|
34
|
+
*/
|
35
|
+
limit?: number
|
36
|
+
}
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Expected response from an {@link NFTsByIssuerRequest}.
|
40
|
+
*
|
41
|
+
* @category Responses
|
42
|
+
*/
|
43
|
+
export interface NFTsByIssuerResponse extends BaseResponse {
|
44
|
+
result: {
|
45
|
+
/**
|
46
|
+
* The unique identifier for the account, most commonly the account's address
|
47
|
+
*/
|
48
|
+
issuer: string
|
49
|
+
/**
|
50
|
+
* A list of NFTs issued by the account.
|
51
|
+
* The order of the NFTs is not associated with the date the NFTs were minted.
|
52
|
+
*/
|
53
|
+
nfts: NFToken[]
|
54
|
+
/**
|
55
|
+
* Server-defined value indicating the response is paginated. Pass this
|
56
|
+
* to the next call to resume where this call left off.
|
57
|
+
*/
|
58
|
+
marker?: unknown
|
59
|
+
/**
|
60
|
+
* The limit value used in the request.
|
61
|
+
*/
|
62
|
+
limit?: number
|
63
|
+
/**
|
64
|
+
* Use to filter NFTs issued by this issuer that have this taxon.
|
65
|
+
*/
|
66
|
+
nft_taxon?: number
|
67
|
+
}
|
68
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { APIVersion, DEFAULT_API_VERSION, RIPPLED_API_V1 } from '../common'
|
1
2
|
import { Transaction } from '../transactions'
|
2
3
|
|
3
4
|
import { BaseRequest, BaseResponse } from './baseMethod'
|
@@ -24,28 +25,59 @@ export interface SubmitMultisignedRequest extends BaseRequest {
|
|
24
25
|
fail_hard?: boolean
|
25
26
|
}
|
26
27
|
|
28
|
+
/**
|
29
|
+
* Common properties for multisigned transaction responses.
|
30
|
+
*
|
31
|
+
* @category Responses
|
32
|
+
*/
|
33
|
+
interface BaseSubmitMultisignedResult {
|
34
|
+
/**
|
35
|
+
* Code indicating the preliminary result of the transaction, for example.
|
36
|
+
* `tesSUCCESS`.
|
37
|
+
*/
|
38
|
+
engine_result: string
|
39
|
+
/**
|
40
|
+
* Numeric code indicating the preliminary result of the transaction,
|
41
|
+
* directly correlated to `engine_result`.
|
42
|
+
*/
|
43
|
+
engine_result_code: number
|
44
|
+
/** Human-readable explanation of the preliminary transaction result. */
|
45
|
+
engine_result_message: string
|
46
|
+
/** The complete transaction in hex string format. */
|
47
|
+
tx_blob: string
|
48
|
+
/** The complete transaction in JSON format. */
|
49
|
+
tx_json: Transaction
|
50
|
+
}
|
51
|
+
|
27
52
|
/**
|
28
53
|
* Response expected from a {@link SubmitMultisignedRequest}.
|
29
54
|
*
|
30
55
|
* @category Responses
|
31
56
|
*/
|
32
57
|
export interface SubmitMultisignedResponse extends BaseResponse {
|
33
|
-
result: {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
engine_result_message: string
|
46
|
-
/** The complete transaction in hex string format. */
|
47
|
-
tx_blob: string
|
48
|
-
/** The complete transaction in JSON format. */
|
58
|
+
result: BaseSubmitMultisignedResult & {
|
59
|
+
hash?: string
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Response expected from a {@link SubmitMultisignedRequest} using api_version 1.
|
65
|
+
*
|
66
|
+
* @category ResponsesV1
|
67
|
+
*/
|
68
|
+
export interface SubmitMultisignedV1Response extends BaseResponse {
|
69
|
+
result: BaseSubmitMultisignedResult & {
|
49
70
|
tx_json: Transaction & { hash?: string }
|
50
71
|
}
|
51
72
|
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Type to map between the API version and the response type.
|
76
|
+
*
|
77
|
+
* @category Responses
|
78
|
+
*/
|
79
|
+
export type SubmitMultisignedVersionResponseMap<
|
80
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
81
|
+
> = Version extends typeof RIPPLED_API_V1
|
82
|
+
? SubmitMultisignedV1Response
|
83
|
+
: SubmitMultisignedResponse
|