@bithomp/xrpl-api 2.3.6
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/LICENSE +674 -0
- package/README.md +101 -0
- package/lib/base58.d.ts +3 -0
- package/lib/base58.js +33 -0
- package/lib/client.d.ts +19 -0
- package/lib/client.js +122 -0
- package/lib/common/errors/index.d.ts +3 -0
- package/lib/common/errors/index.js +7 -0
- package/lib/common/errors/ripple_error.d.ts +9 -0
- package/lib/common/errors/ripple_error.js +28 -0
- package/lib/common/errors/utils.d.ts +2 -0
- package/lib/common/errors/utils.js +19 -0
- package/lib/common/errors/validation_error.d.ts +4 -0
- package/lib/common/errors/validation_error.js +7 -0
- package/lib/common/index.d.ts +6 -0
- package/lib/common/index.js +44 -0
- package/lib/common/sha512Half.d.ts +2 -0
- package/lib/common/sha512Half.js +12 -0
- package/lib/common/utils.d.ts +10 -0
- package/lib/common/utils.js +113 -0
- package/lib/connection.d.ts +57 -0
- package/lib/connection.js +369 -0
- package/lib/faucet.d.ts +58 -0
- package/lib/faucet.js +89 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +35 -0
- package/lib/ledger/account_info.d.ts +12 -0
- package/lib/ledger/account_info.js +78 -0
- package/lib/ledger/account_lines.d.ts +11 -0
- package/lib/ledger/account_lines.js +69 -0
- package/lib/ledger/account_nfts.d.ts +21 -0
- package/lib/ledger/account_nfts.js +185 -0
- package/lib/ledger/account_objects.d.ts +28 -0
- package/lib/ledger/account_objects.js +169 -0
- package/lib/ledger/account_offers.d.ts +8 -0
- package/lib/ledger/account_offers.js +67 -0
- package/lib/ledger/account_tx.d.ts +29 -0
- package/lib/ledger/account_tx.js +256 -0
- package/lib/ledger/book_offers.d.ts +11 -0
- package/lib/ledger/book_offers.js +90 -0
- package/lib/ledger/currency.d.ts +27 -0
- package/lib/ledger/currency.js +167 -0
- package/lib/ledger/fee.d.ts +5 -0
- package/lib/ledger/fee.js +45 -0
- package/lib/ledger/gateway_balances.d.ts +13 -0
- package/lib/ledger/gateway_balances.js +101 -0
- package/lib/ledger/index.d.ts +16 -0
- package/lib/ledger/index.js +32 -0
- package/lib/ledger/ledger.d.ts +11 -0
- package/lib/ledger/ledger.js +72 -0
- package/lib/ledger/manifest.d.ts +8 -0
- package/lib/ledger/manifest.js +56 -0
- package/lib/ledger/nft_info.d.ts +4 -0
- package/lib/ledger/nft_info.js +56 -0
- package/lib/ledger/server_info.d.ts +8 -0
- package/lib/ledger/server_info.js +54 -0
- package/lib/ledger/transaction.d.ts +37 -0
- package/lib/ledger/transaction.js +214 -0
- package/lib/ledger/vl.d.ts +10 -0
- package/lib/ledger/vl.js +92 -0
- package/lib/models/account_info.d.ts +122 -0
- package/lib/models/account_info.js +102 -0
- package/lib/models/account_lines.d.ts +24 -0
- package/lib/models/account_lines.js +2 -0
- package/lib/models/account_nfts.d.ts +19 -0
- package/lib/models/account_nfts.js +45 -0
- package/lib/models/account_object.d.ts +38 -0
- package/lib/models/account_object.js +61 -0
- package/lib/models/base_model.d.ts +14 -0
- package/lib/models/base_model.js +2 -0
- package/lib/models/book_offers.d.ts +9 -0
- package/lib/models/book_offers.js +41 -0
- package/lib/models/index.d.ts +23 -0
- package/lib/models/index.js +56 -0
- package/lib/models/ledger.d.ts +6 -0
- package/lib/models/ledger.js +20 -0
- package/lib/models/manifest.d.ts +26 -0
- package/lib/models/manifest.js +187 -0
- package/lib/models/transaction/affected_objects.d.ts +6 -0
- package/lib/models/transaction/affected_objects.js +104 -0
- package/lib/models/transaction/balance_changes.d.ts +7 -0
- package/lib/models/transaction/balance_changes.js +125 -0
- package/lib/models/transaction/channel_changes.d.ts +9 -0
- package/lib/models/transaction/channel_changes.js +57 -0
- package/lib/models/transaction/locked_balance_changes.d.ts +7 -0
- package/lib/models/transaction/locked_balance_changes.js +114 -0
- package/lib/models/transaction/nftoken_changes.d.ts +1 -0
- package/lib/models/transaction/nftoken_changes.js +163 -0
- package/lib/models/transaction/nftoken_offer_changes.d.ts +1 -0
- package/lib/models/transaction/nftoken_offer_changes.js +107 -0
- package/lib/models/transaction/orderbook_changes.d.ts +3 -0
- package/lib/models/transaction/orderbook_changes.js +136 -0
- package/lib/models/transaction/quality.d.ts +2 -0
- package/lib/models/transaction/quality.js +46 -0
- package/lib/models/transaction.d.ts +39 -0
- package/lib/models/transaction.js +45 -0
- package/lib/models/trustline.d.ts +15 -0
- package/lib/models/trustline.js +2 -0
- package/lib/models/utils.d.ts +3 -0
- package/lib/models/utils.js +19 -0
- package/lib/models/vl.d.ts +60 -0
- package/lib/models/vl.js +377 -0
- package/lib/parse/index.d.ts +3 -0
- package/lib/parse/index.js +32 -0
- package/lib/parse/ledger/account-order.d.ts +10 -0
- package/lib/parse/ledger/account-order.js +39 -0
- package/lib/parse/ledger/account-trustline.d.ts +3 -0
- package/lib/parse/ledger/account-trustline.js +27 -0
- package/lib/parse/ledger/amount.d.ts +3 -0
- package/lib/parse/ledger/amount.js +17 -0
- package/lib/parse/ledger/currency-amount.d.ts +3 -0
- package/lib/parse/ledger/currency-amount.js +13 -0
- package/lib/parse/ledger/fields.d.ts +2 -0
- package/lib/parse/ledger/fields.js +42 -0
- package/lib/parse/ledger/flags.d.ts +4 -0
- package/lib/parse/ledger/flags.js +18 -0
- package/lib/parse/ledger/index.d.ts +4 -0
- package/lib/parse/ledger/index.js +25 -0
- package/lib/parse/ledger/ledger.d.ts +2 -0
- package/lib/parse/ledger/ledger.js +61 -0
- package/lib/parse/ledger/memos.d.ts +3 -0
- package/lib/parse/ledger/memos.js +17 -0
- package/lib/parse/ledger/nftoken-flags.d.ts +5 -0
- package/lib/parse/ledger/nftoken-flags.js +8 -0
- package/lib/parse/ledger/nftoken-offer-flags.d.ts +5 -0
- package/lib/parse/ledger/nftoken-offer-flags.js +8 -0
- package/lib/parse/ledger/orderbook-order.d.ts +16 -0
- package/lib/parse/ledger/orderbook-order.js +39 -0
- package/lib/parse/ledger/pathfind.d.ts +4 -0
- package/lib/parse/ledger/pathfind.js +41 -0
- package/lib/parse/ledger/payment-channel.d.ts +16 -0
- package/lib/parse/ledger/payment-channel.js +27 -0
- package/lib/parse/ledger/ripple-amount.d.ts +3 -0
- package/lib/parse/ledger/ripple-amount.js +17 -0
- package/lib/parse/outcome/affected_objects.d.ts +6 -0
- package/lib/parse/outcome/affected_objects.js +109 -0
- package/lib/parse/outcome/balance_changes.d.ts +7 -0
- package/lib/parse/outcome/balance_changes.js +103 -0
- package/lib/parse/outcome/channel_changes.d.ts +9 -0
- package/lib/parse/outcome/channel_changes.js +53 -0
- package/lib/parse/outcome/index.d.ts +7 -0
- package/lib/parse/outcome/index.js +17 -0
- package/lib/parse/outcome/locked_balance_changes.d.ts +7 -0
- package/lib/parse/outcome/locked_balance_changes.js +92 -0
- package/lib/parse/outcome/nftoken_changes.d.ts +1 -0
- package/lib/parse/outcome/nftoken_changes.js +143 -0
- package/lib/parse/outcome/nftoken_offer_changes.d.ts +2 -0
- package/lib/parse/outcome/nftoken_offer_changes.js +107 -0
- package/lib/parse/outcome/orderbook_changes.d.ts +3 -0
- package/lib/parse/outcome/orderbook_changes.js +111 -0
- package/lib/parse/outcome/orderbook_quality.d.ts +2 -0
- package/lib/parse/outcome/orderbook_quality.js +45 -0
- package/lib/parse/outcome.d.ts +3 -0
- package/lib/parse/outcome.js +80 -0
- package/lib/parse/specification/account-delete.d.ts +3 -0
- package/lib/parse/specification/account-delete.js +42 -0
- package/lib/parse/specification/amendment.d.ts +3 -0
- package/lib/parse/specification/amendment.js +14 -0
- package/lib/parse/specification/check-cancel.d.ts +3 -0
- package/lib/parse/specification/check-cancel.js +39 -0
- package/lib/parse/specification/check-cash.d.ts +3 -0
- package/lib/parse/specification/check-cash.js +42 -0
- package/lib/parse/specification/check-create.d.ts +3 -0
- package/lib/parse/specification/check-create.js +45 -0
- package/lib/parse/specification/deposit-preauth.d.ts +3 -0
- package/lib/parse/specification/deposit-preauth.js +40 -0
- package/lib/parse/specification/escrow-cancel.d.ts +3 -0
- package/lib/parse/specification/escrow-cancel.js +40 -0
- package/lib/parse/specification/escrow-create.d.ts +3 -0
- package/lib/parse/specification/escrow-create.js +47 -0
- package/lib/parse/specification/escrow-finish.d.ts +3 -0
- package/lib/parse/specification/escrow-finish.js +42 -0
- package/lib/parse/specification/fee-update.d.ts +3 -0
- package/lib/parse/specification/fee-update.js +19 -0
- package/lib/parse/specification/nftoken-accept-offer.d.ts +3 -0
- package/lib/parse/specification/nftoken-accept-offer.js +41 -0
- package/lib/parse/specification/nftoken-burn.d.ts +3 -0
- package/lib/parse/specification/nftoken-burn.js +40 -0
- package/lib/parse/specification/nftoken-cancel-offer.d.ts +3 -0
- package/lib/parse/specification/nftoken-cancel-offer.js +39 -0
- package/lib/parse/specification/nftoken-create-offer.d.ts +3 -0
- package/lib/parse/specification/nftoken-create-offer.js +50 -0
- package/lib/parse/specification/nftoken-mint.d.ts +3 -0
- package/lib/parse/specification/nftoken-mint.js +44 -0
- package/lib/parse/specification/offer-cancel.d.ts +3 -0
- package/lib/parse/specification/offer-cancel.js +38 -0
- package/lib/parse/specification/offer-create.d.ts +3 -0
- package/lib/parse/specification/offer-create.js +53 -0
- package/lib/parse/specification/payment-channel-claim.d.ts +3 -0
- package/lib/parse/specification/payment-channel-claim.js +47 -0
- package/lib/parse/specification/payment-channel-create.d.ts +3 -0
- package/lib/parse/specification/payment-channel-create.js +47 -0
- package/lib/parse/specification/payment-channel-fund.d.ts +3 -0
- package/lib/parse/specification/payment-channel-fund.js +43 -0
- package/lib/parse/specification/payment-channel.d.ts +16 -0
- package/lib/parse/specification/payment-channel.js +27 -0
- package/lib/parse/specification/payment.d.ts +3 -0
- package/lib/parse/specification/payment.js +67 -0
- package/lib/parse/specification/settings.d.ts +2 -0
- package/lib/parse/specification/settings.js +80 -0
- package/lib/parse/specification/ticket-create.d.ts +3 -0
- package/lib/parse/specification/ticket-create.js +39 -0
- package/lib/parse/specification/trustline.d.ts +3 -0
- package/lib/parse/specification/trustline.js +57 -0
- package/lib/parse/transaction.d.ts +27 -0
- package/lib/parse/transaction.js +114 -0
- package/lib/parse/utils.d.ts +6 -0
- package/lib/parse/utils.js +38 -0
- package/lib/types/amounts.d.ts +16 -0
- package/lib/types/amounts.js +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/v1/common/constants.d.ts +16 -0
- package/lib/v1/common/constants.js +6 -0
- package/lib/v1/common/errors/index.d.ts +3 -0
- package/lib/v1/common/errors/index.js +7 -0
- package/lib/v1/common/errors/ripple_error.d.ts +9 -0
- package/lib/v1/common/errors/ripple_error.js +28 -0
- package/lib/v1/common/errors/utils.d.ts +2 -0
- package/lib/v1/common/errors/utils.js +19 -0
- package/lib/v1/common/errors/validation_error.d.ts +4 -0
- package/lib/v1/common/errors/validation_error.js +7 -0
- package/lib/v1/common/index.d.ts +3 -0
- package/lib/v1/common/index.js +31 -0
- package/lib/v1/common/txflags.d.ts +51 -0
- package/lib/v1/common/txflags.js +55 -0
- package/lib/v1/common/types/commands/account_info.d.ts +17 -0
- package/lib/v1/common/types/commands/account_info.js +2 -0
- package/lib/v1/common/types/commands/account_lines.d.ts +17 -0
- package/lib/v1/common/types/commands/account_lines.js +2 -0
- package/lib/v1/common/types/commands/account_objects.d.ts +26 -0
- package/lib/v1/common/types/commands/account_objects.js +2 -0
- package/lib/v1/common/types/commands/account_offers.d.ts +24 -0
- package/lib/v1/common/types/commands/account_offers.js +2 -0
- package/lib/v1/common/types/commands/book_offers.d.ts +23 -0
- package/lib/v1/common/types/commands/book_offers.js +2 -0
- package/lib/v1/common/types/commands/gateway_balances.d.ts +23 -0
- package/lib/v1/common/types/commands/gateway_balances.js +2 -0
- package/lib/v1/common/types/commands/index.d.ts +10 -0
- package/lib/v1/common/types/commands/index.js +26 -0
- package/lib/v1/common/types/commands/ledger.d.ts +18 -0
- package/lib/v1/common/types/commands/ledger.js +2 -0
- package/lib/v1/common/types/commands/ledger_data.d.ts +10 -0
- package/lib/v1/common/types/commands/ledger_data.js +2 -0
- package/lib/v1/common/types/commands/ledger_entry.d.ts +29 -0
- package/lib/v1/common/types/commands/ledger_entry.js +2 -0
- package/lib/v1/common/types/commands/path_find.d.ts +33 -0
- package/lib/v1/common/types/commands/path_find.js +2 -0
- package/lib/v1/common/types/commands/server_info.d.ts +49 -0
- package/lib/v1/common/types/commands/server_info.js +2 -0
- package/lib/v1/common/types/objects/account.d.ts +6 -0
- package/lib/v1/common/types/objects/account.js +2 -0
- package/lib/v1/common/types/objects/adjustments.d.ts +16 -0
- package/lib/v1/common/types/objects/adjustments.js +2 -0
- package/lib/v1/common/types/objects/amendments.d.ts +4 -0
- package/lib/v1/common/types/objects/amendments.js +2 -0
- package/lib/v1/common/types/objects/amounts.d.ts +13 -0
- package/lib/v1/common/types/objects/amounts.js +2 -0
- package/lib/v1/common/types/objects/checks.d.ts +17 -0
- package/lib/v1/common/types/objects/checks.js +2 -0
- package/lib/v1/common/types/objects/deposits.d.ts +5 -0
- package/lib/v1/common/types/objects/deposits.js +2 -0
- package/lib/v1/common/types/objects/escrows.d.ts +21 -0
- package/lib/v1/common/types/objects/escrows.js +2 -0
- package/lib/v1/common/types/objects/fees.d.ts +7 -0
- package/lib/v1/common/types/objects/fees.js +2 -0
- package/lib/v1/common/types/objects/flags.d.ts +5 -0
- package/lib/v1/common/types/objects/flags.js +8 -0
- package/lib/v1/common/types/objects/index.d.ts +15 -0
- package/lib/v1/common/types/objects/index.js +31 -0
- package/lib/v1/common/types/objects/ledger.d.ts +45 -0
- package/lib/v1/common/types/objects/ledger.js +2 -0
- package/lib/v1/common/types/objects/ledger_data.d.ts +10 -0
- package/lib/v1/common/types/objects/ledger_data.js +2 -0
- package/lib/v1/common/types/objects/ledger_entries.d.ts +158 -0
- package/lib/v1/common/types/objects/ledger_entries.js +2 -0
- package/lib/v1/common/types/objects/memos.d.ts +12 -0
- package/lib/v1/common/types/objects/memos.js +2 -0
- package/lib/v1/common/types/objects/nftokens.d.ts +47 -0
- package/lib/v1/common/types/objects/nftokens.js +13 -0
- package/lib/v1/common/types/objects/offers.d.ts +15 -0
- package/lib/v1/common/types/objects/offers.js +2 -0
- package/lib/v1/common/types/objects/orders.d.ts +13 -0
- package/lib/v1/common/types/objects/orders.js +2 -0
- package/lib/v1/common/types/objects/path_find.d.ts +27 -0
- package/lib/v1/common/types/objects/path_find.js +2 -0
- package/lib/v1/common/types/objects/payment_channels.d.ts +25 -0
- package/lib/v1/common/types/objects/payment_channels.js +2 -0
- package/lib/v1/common/types/objects/payments.d.ts +20 -0
- package/lib/v1/common/types/objects/payments.js +2 -0
- package/lib/v1/common/types/objects/queue_data.d.ts +15 -0
- package/lib/v1/common/types/objects/queue_data.js +2 -0
- package/lib/v1/common/types/objects/settings.d.ts +34 -0
- package/lib/v1/common/types/objects/settings.js +2 -0
- package/lib/v1/common/types/objects/signers.d.ts +6 -0
- package/lib/v1/common/types/objects/signers.js +2 -0
- package/lib/v1/common/types/objects/specification.d.ts +4 -0
- package/lib/v1/common/types/objects/specification.js +2 -0
- package/lib/v1/common/types/objects/tickets.d.ts +4 -0
- package/lib/v1/common/types/objects/tickets.js +2 -0
- package/lib/v1/common/types/objects/transactions.d.ts +21 -0
- package/lib/v1/common/types/objects/transactions.js +2 -0
- package/lib/v1/common/types/objects/trustlines.d.ts +38 -0
- package/lib/v1/common/types/objects/trustlines.js +2 -0
- package/lib/v1/common/types/pathfind-types.d.ts +59 -0
- package/lib/v1/common/types/pathfind-types.js +2 -0
- package/lib/v1/common/utils.d.ts +6 -0
- package/lib/v1/common/utils.js +58 -0
- package/lib/v1/index.d.ts +2 -0
- package/lib/v1/index.js +28 -0
- package/lib/v1/ledger/index.d.ts +1 -0
- package/lib/v1/ledger/index.js +27 -0
- package/lib/v1/ledger/parse/account-delete.d.ts +7 -0
- package/lib/v1/ledger/parse/account-delete.js +42 -0
- package/lib/v1/ledger/parse/account-order.d.ts +10 -0
- package/lib/v1/ledger/parse/account-order.js +39 -0
- package/lib/v1/ledger/parse/account-trustline.d.ts +3 -0
- package/lib/v1/ledger/parse/account-trustline.js +27 -0
- package/lib/v1/ledger/parse/amendment.d.ts +5 -0
- package/lib/v1/ledger/parse/amendment.js +14 -0
- package/lib/v1/ledger/parse/amount.d.ts +3 -0
- package/lib/v1/ledger/parse/amount.js +40 -0
- package/lib/v1/ledger/parse/cancellation.d.ts +2 -0
- package/lib/v1/ledger/parse/cancellation.js +38 -0
- package/lib/v1/ledger/parse/check-cancel.d.ts +5 -0
- package/lib/v1/ledger/parse/check-cancel.js +39 -0
- package/lib/v1/ledger/parse/check-cash.d.ts +8 -0
- package/lib/v1/ledger/parse/check-cash.js +42 -0
- package/lib/v1/ledger/parse/check-create.d.ts +10 -0
- package/lib/v1/ledger/parse/check-create.js +45 -0
- package/lib/v1/ledger/parse/currency-amount.d.ts +3 -0
- package/lib/v1/ledger/parse/currency-amount.js +13 -0
- package/lib/v1/ledger/parse/deposit-preauth.d.ts +6 -0
- package/lib/v1/ledger/parse/deposit-preauth.js +40 -0
- package/lib/v1/ledger/parse/escrow-cancellation.d.ts +2 -0
- package/lib/v1/ledger/parse/escrow-cancellation.js +40 -0
- package/lib/v1/ledger/parse/escrow-creation.d.ts +2 -0
- package/lib/v1/ledger/parse/escrow-creation.js +47 -0
- package/lib/v1/ledger/parse/escrow-execution.d.ts +2 -0
- package/lib/v1/ledger/parse/escrow-execution.js +42 -0
- package/lib/v1/ledger/parse/fee-update.d.ts +8 -0
- package/lib/v1/ledger/parse/fee-update.js +19 -0
- package/lib/v1/ledger/parse/fields.d.ts +2 -0
- package/lib/v1/ledger/parse/fields.js +42 -0
- package/lib/v1/ledger/parse/flags.d.ts +15 -0
- package/lib/v1/ledger/parse/flags.js +19 -0
- package/lib/v1/ledger/parse/index.d.ts +4 -0
- package/lib/v1/ledger/parse/index.js +25 -0
- package/lib/v1/ledger/parse/ledger.d.ts +18 -0
- package/lib/v1/ledger/parse/ledger.js +77 -0
- package/lib/v1/ledger/parse/memos.d.ts +3 -0
- package/lib/v1/ledger/parse/memos.js +17 -0
- package/lib/v1/ledger/parse/order.d.ts +3 -0
- package/lib/v1/ledger/parse/order.js +53 -0
- package/lib/v1/ledger/parse/orderbook-order.d.ts +16 -0
- package/lib/v1/ledger/parse/orderbook-order.js +66 -0
- package/lib/v1/ledger/parse/pathfind.d.ts +3 -0
- package/lib/v1/ledger/parse/pathfind.js +66 -0
- package/lib/v1/ledger/parse/payment-channel-claim.d.ts +2 -0
- package/lib/v1/ledger/parse/payment-channel-claim.js +47 -0
- package/lib/v1/ledger/parse/payment-channel-create.d.ts +2 -0
- package/lib/v1/ledger/parse/payment-channel-create.js +47 -0
- package/lib/v1/ledger/parse/payment-channel-fund.d.ts +2 -0
- package/lib/v1/ledger/parse/payment-channel-fund.js +43 -0
- package/lib/v1/ledger/parse/payment-channel.d.ts +16 -0
- package/lib/v1/ledger/parse/payment-channel.js +27 -0
- package/lib/v1/ledger/parse/payment.d.ts +2 -0
- package/lib/v1/ledger/parse/payment.js +69 -0
- package/lib/v1/ledger/parse/ripple-amount.d.ts +3 -0
- package/lib/v1/ledger/parse/ripple-amount.js +40 -0
- package/lib/v1/ledger/parse/settings.d.ts +2 -0
- package/lib/v1/ledger/parse/settings.js +82 -0
- package/lib/v1/ledger/parse/ticket-create.d.ts +2 -0
- package/lib/v1/ledger/parse/ticket-create.js +39 -0
- package/lib/v1/ledger/parse/transaction.d.ts +3 -0
- package/lib/v1/ledger/parse/transaction.js +110 -0
- package/lib/v1/ledger/parse/trustline.d.ts +2 -0
- package/lib/v1/ledger/parse/trustline.js +57 -0
- package/lib/v1/ledger/parse/utils.d.ts +6 -0
- package/lib/v1/ledger/parse/utils.js +63 -0
- package/lib/v1/ledger/parse_outcome.d.ts +2 -0
- package/lib/v1/ledger/parse_outcome.js +80 -0
- package/lib/v1/ledger/pathfind-types.d.ts +59 -0
- package/lib/v1/ledger/pathfind-types.js +2 -0
- package/lib/v1/transaction/payment.d.ts +14 -0
- package/lib/v1/transaction/payment.js +130 -0
- package/lib/v1/transaction/types.d.ts +40 -0
- package/lib/v1/transaction/types.js +2 -0
- package/lib/v1/transaction/utils.d.ts +8 -0
- package/lib/v1/transaction/utils.js +38 -0
- package/lib/validator.d.ts +12 -0
- package/lib/validator.js +134 -0
- package/lib/wallet.d.ts +17 -0
- package/lib/wallet.js +140 -0
- package/package.json +62 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ledger, QueueData } from '../objects';
|
|
2
|
+
export interface LedgerRequest {
|
|
3
|
+
ledger_hash?: string;
|
|
4
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
|
5
|
+
full?: boolean;
|
|
6
|
+
accounts?: boolean;
|
|
7
|
+
transactions?: boolean;
|
|
8
|
+
expand?: boolean;
|
|
9
|
+
owner_funds?: boolean;
|
|
10
|
+
binary?: boolean;
|
|
11
|
+
queue?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface LedgerResponse {
|
|
14
|
+
ledger_index: number;
|
|
15
|
+
ledger_hash: string;
|
|
16
|
+
ledger: Ledger;
|
|
17
|
+
queue_data?: QueueData;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LedgerEntry } from '../objects';
|
|
2
|
+
export interface LedgerEntryRequest {
|
|
3
|
+
ledger_hash?: string;
|
|
4
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
|
5
|
+
index?: string;
|
|
6
|
+
account_root?: string;
|
|
7
|
+
directory?: string | {
|
|
8
|
+
sub_index?: number;
|
|
9
|
+
dir_root: string;
|
|
10
|
+
} | {
|
|
11
|
+
sub_index?: number;
|
|
12
|
+
owner: string;
|
|
13
|
+
};
|
|
14
|
+
offer?: string | {
|
|
15
|
+
account: string;
|
|
16
|
+
seq: number;
|
|
17
|
+
};
|
|
18
|
+
ripple_state?: {
|
|
19
|
+
accounts: [string, string];
|
|
20
|
+
currency: string;
|
|
21
|
+
};
|
|
22
|
+
binary?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface LedgerEntryResponse {
|
|
25
|
+
index: string;
|
|
26
|
+
ledger_index: number;
|
|
27
|
+
node_binary?: string;
|
|
28
|
+
node?: LedgerEntry;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Amount } from "../objects";
|
|
2
|
+
export type PathFindRequest = {
|
|
3
|
+
command: string;
|
|
4
|
+
source_account: string;
|
|
5
|
+
destination_amount: Amount;
|
|
6
|
+
destination_account: string;
|
|
7
|
+
source_currencies?: {
|
|
8
|
+
currency: string;
|
|
9
|
+
issuer?: string;
|
|
10
|
+
}[];
|
|
11
|
+
send_max?: Amount;
|
|
12
|
+
};
|
|
13
|
+
export type RippledPathsResponse = {
|
|
14
|
+
alternatives: Array<{
|
|
15
|
+
paths_computed: Array<Array<{
|
|
16
|
+
type: number;
|
|
17
|
+
type_hex: string;
|
|
18
|
+
account?: string;
|
|
19
|
+
issuer?: string;
|
|
20
|
+
currency?: string;
|
|
21
|
+
}>>;
|
|
22
|
+
source_amount: Amount;
|
|
23
|
+
}>;
|
|
24
|
+
type: string;
|
|
25
|
+
destination_account: string;
|
|
26
|
+
destination_amount: Amount;
|
|
27
|
+
destination_currencies?: Array<string>;
|
|
28
|
+
source_account: string;
|
|
29
|
+
source_currencies?: Array<{
|
|
30
|
+
currency: string;
|
|
31
|
+
}>;
|
|
32
|
+
full_reply?: boolean;
|
|
33
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface ServerInfoRequest {
|
|
2
|
+
id?: number;
|
|
3
|
+
}
|
|
4
|
+
export interface ServerInfoResponse {
|
|
5
|
+
info: {
|
|
6
|
+
amendment_blocked?: boolean;
|
|
7
|
+
build_version: string;
|
|
8
|
+
closed_ledger?: LedgerInfo;
|
|
9
|
+
complete_ledgers: string;
|
|
10
|
+
hostid: string;
|
|
11
|
+
io_latency_ms: number;
|
|
12
|
+
last_close: {
|
|
13
|
+
converge_time_s: number;
|
|
14
|
+
proposers: number;
|
|
15
|
+
};
|
|
16
|
+
load?: {
|
|
17
|
+
job_types: {
|
|
18
|
+
job_type: string;
|
|
19
|
+
per_second: number;
|
|
20
|
+
in_progress: number;
|
|
21
|
+
}[];
|
|
22
|
+
threads: number;
|
|
23
|
+
};
|
|
24
|
+
load_factor: number;
|
|
25
|
+
load_factor_local?: number;
|
|
26
|
+
load_factor_net?: number;
|
|
27
|
+
load_factor_cluster?: number;
|
|
28
|
+
load_factor_fee_escalation?: number;
|
|
29
|
+
load_factor_fee_queue?: number;
|
|
30
|
+
load_factor_server?: number;
|
|
31
|
+
peers: number;
|
|
32
|
+
pubkey_node: string;
|
|
33
|
+
pubkey_validator: string;
|
|
34
|
+
server_state: string;
|
|
35
|
+
state_accounting: any;
|
|
36
|
+
uptime: number;
|
|
37
|
+
validated_ledger?: LedgerInfo;
|
|
38
|
+
validation_quorum: number;
|
|
39
|
+
validator_list_expires: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface LedgerInfo {
|
|
43
|
+
age: number;
|
|
44
|
+
base_fee_xrp: number;
|
|
45
|
+
hash: string;
|
|
46
|
+
reserve_base_xrp: number;
|
|
47
|
+
reserve_inc_xrp: number;
|
|
48
|
+
seq: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormattedIssuedCurrencyAmount } from "../../../../types";
|
|
2
|
+
export type Adjustment = {
|
|
3
|
+
address: string;
|
|
4
|
+
amount: FormattedIssuedCurrencyAmount;
|
|
5
|
+
tag?: number;
|
|
6
|
+
};
|
|
7
|
+
export type MaxAdjustment = {
|
|
8
|
+
address: string;
|
|
9
|
+
maxAmount: FormattedIssuedCurrencyAmount;
|
|
10
|
+
tag?: number;
|
|
11
|
+
};
|
|
12
|
+
export type MinAdjustment = {
|
|
13
|
+
address: string;
|
|
14
|
+
minAmount: FormattedIssuedCurrencyAmount;
|
|
15
|
+
tag?: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Amount extends Issue {
|
|
2
|
+
value: string;
|
|
3
|
+
}
|
|
4
|
+
export type RippledAmount = string | Amount;
|
|
5
|
+
export interface TakerRequestAmount {
|
|
6
|
+
currency: string;
|
|
7
|
+
issuer?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Issue {
|
|
10
|
+
currency: string;
|
|
11
|
+
issuer?: string;
|
|
12
|
+
counterparty?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { FormattedIssuedCurrencyAmount } from "../../../../types";
|
|
3
|
+
export type FormattedCheckCancelSpecification = {
|
|
4
|
+
checkID: string;
|
|
5
|
+
} & FormattedBaseSpecification;
|
|
6
|
+
export type FormattedCheckCashSpecification = {
|
|
7
|
+
checkID: string;
|
|
8
|
+
amount: FormattedIssuedCurrencyAmount;
|
|
9
|
+
deliverMin: FormattedIssuedCurrencyAmount;
|
|
10
|
+
} & FormattedBaseSpecification;
|
|
11
|
+
export type FormattedCheckCreateSpecification = {
|
|
12
|
+
destination: string;
|
|
13
|
+
sendMax: FormattedIssuedCurrencyAmount;
|
|
14
|
+
destinationTag?: string;
|
|
15
|
+
expiration?: string;
|
|
16
|
+
invoiceID?: string;
|
|
17
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { FormattedAmount } from "../../../../types";
|
|
3
|
+
export type FormattedEscrowCancelSpecification = {
|
|
4
|
+
owner: string;
|
|
5
|
+
escrowSequence: number;
|
|
6
|
+
} & FormattedBaseSpecification;
|
|
7
|
+
export type FormattedEscrowCreateSpecification = {
|
|
8
|
+
amount?: FormattedAmount;
|
|
9
|
+
destination: string;
|
|
10
|
+
condition: string;
|
|
11
|
+
allowCancelAfter?: string;
|
|
12
|
+
allowExecuteAfter?: string;
|
|
13
|
+
sourceTag?: number;
|
|
14
|
+
destinationTag?: number;
|
|
15
|
+
} & FormattedBaseSpecification;
|
|
16
|
+
export type FormattedEscrowFinishSpecification = {
|
|
17
|
+
owner: string;
|
|
18
|
+
escrowSequence: number;
|
|
19
|
+
condition?: string;
|
|
20
|
+
fulfillment?: string;
|
|
21
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./adjustments";
|
|
2
|
+
export * from "./ledger";
|
|
3
|
+
export * from "./ledger_data";
|
|
4
|
+
export * from "./ledger_entries";
|
|
5
|
+
export * from "./memos";
|
|
6
|
+
export * from "./checks";
|
|
7
|
+
export * from "./deposits";
|
|
8
|
+
export * from "./escrows";
|
|
9
|
+
export * from "./offers";
|
|
10
|
+
export * from "./queue_data";
|
|
11
|
+
export * from "./settings";
|
|
12
|
+
export * from "./signers";
|
|
13
|
+
export * from "./transactions";
|
|
14
|
+
export * from "./trustlines";
|
|
15
|
+
export * from "../../../../types";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./adjustments"), exports);
|
|
18
|
+
__exportStar(require("./ledger"), exports);
|
|
19
|
+
__exportStar(require("./ledger_data"), exports);
|
|
20
|
+
__exportStar(require("./ledger_entries"), exports);
|
|
21
|
+
__exportStar(require("./memos"), exports);
|
|
22
|
+
__exportStar(require("./checks"), exports);
|
|
23
|
+
__exportStar(require("./deposits"), exports);
|
|
24
|
+
__exportStar(require("./escrows"), exports);
|
|
25
|
+
__exportStar(require("./offers"), exports);
|
|
26
|
+
__exportStar(require("./queue_data"), exports);
|
|
27
|
+
__exportStar(require("./settings"), exports);
|
|
28
|
+
__exportStar(require("./signers"), exports);
|
|
29
|
+
__exportStar(require("./transactions"), exports);
|
|
30
|
+
__exportStar(require("./trustlines"), exports);
|
|
31
|
+
__exportStar(require("../../../../types"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface Ledger {
|
|
2
|
+
account_hash: string;
|
|
3
|
+
close_time: number;
|
|
4
|
+
close_time_human: string;
|
|
5
|
+
close_time_resolution: number;
|
|
6
|
+
closed: boolean;
|
|
7
|
+
ledger_hash: string;
|
|
8
|
+
ledger_index: string;
|
|
9
|
+
parent_hash: string;
|
|
10
|
+
total_coins: string;
|
|
11
|
+
transaction_hash: string;
|
|
12
|
+
transactions: string[] | object[];
|
|
13
|
+
close_flags?: number;
|
|
14
|
+
parent_close_time?: number;
|
|
15
|
+
accountState?: any[];
|
|
16
|
+
validated?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type FormattedLedger = {
|
|
19
|
+
stateHash: string;
|
|
20
|
+
closeTime: string;
|
|
21
|
+
closeTimeResolution: number;
|
|
22
|
+
closeFlags: number;
|
|
23
|
+
ledgerHash: string;
|
|
24
|
+
ledgerVersion: number;
|
|
25
|
+
parentLedgerHash: string;
|
|
26
|
+
parentCloseTime: string;
|
|
27
|
+
totalDrops: string;
|
|
28
|
+
transactionHash: string;
|
|
29
|
+
transactions?: Array<object>;
|
|
30
|
+
transactionHashes?: Array<string>;
|
|
31
|
+
rawState?: string;
|
|
32
|
+
stateHashes?: Array<string>;
|
|
33
|
+
};
|
|
34
|
+
export type LedgerClosedEvent = {
|
|
35
|
+
type: "ledgerClosed";
|
|
36
|
+
fee_base: number;
|
|
37
|
+
fee_ref: number;
|
|
38
|
+
ledger_hash: string;
|
|
39
|
+
ledger_index: number;
|
|
40
|
+
ledger_time: number;
|
|
41
|
+
reserve_base: number;
|
|
42
|
+
reserve_inc: number;
|
|
43
|
+
txn_count: number;
|
|
44
|
+
validated_ledgers: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { SignerEntry } from "./index";
|
|
2
|
+
import { Amount } from "../../../../types";
|
|
3
|
+
export interface AccountRootLedgerEntry {
|
|
4
|
+
LedgerEntryType: "AccountRoot";
|
|
5
|
+
Account: string;
|
|
6
|
+
Balance: string;
|
|
7
|
+
Flags: number;
|
|
8
|
+
OwnerCount: number;
|
|
9
|
+
PreviousTxnID: string;
|
|
10
|
+
PreviousTxnLgrSeq: number;
|
|
11
|
+
Sequence: number;
|
|
12
|
+
AccountTxnID?: string;
|
|
13
|
+
Domain?: string;
|
|
14
|
+
EmailHash?: string;
|
|
15
|
+
MessageKey?: string;
|
|
16
|
+
RegularKey?: string;
|
|
17
|
+
TickSize?: number;
|
|
18
|
+
TransferRate?: number;
|
|
19
|
+
WalletLocator?: string;
|
|
20
|
+
WalletSize?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface AmendmentsLedgerEntry {
|
|
23
|
+
LedgerEntryType: "Amendments";
|
|
24
|
+
Amendments?: string[];
|
|
25
|
+
Majorities?: any[];
|
|
26
|
+
Flags: 0;
|
|
27
|
+
}
|
|
28
|
+
export interface CheckLedgerEntry {
|
|
29
|
+
LedgerEntryType: "Check";
|
|
30
|
+
Account: string;
|
|
31
|
+
Destination: any;
|
|
32
|
+
string: any;
|
|
33
|
+
Flags: 0;
|
|
34
|
+
OwnerNode: string;
|
|
35
|
+
PreviousTxnID: string;
|
|
36
|
+
PreviousTxnLgrSeq: number;
|
|
37
|
+
SendMax: string | object;
|
|
38
|
+
Sequence: number;
|
|
39
|
+
DestinationNode: string;
|
|
40
|
+
DestinationTag: number;
|
|
41
|
+
Expiration: number;
|
|
42
|
+
InvoiceID: string;
|
|
43
|
+
SourceTag: number;
|
|
44
|
+
}
|
|
45
|
+
export interface DepositPreauthLedgerEntry {
|
|
46
|
+
LedgerEntryType: "DepositPreauth";
|
|
47
|
+
Account: string;
|
|
48
|
+
Authorize: string;
|
|
49
|
+
OwnerNode: string;
|
|
50
|
+
PreviousTxnID: string;
|
|
51
|
+
PreviousTxnLgrSeq: number;
|
|
52
|
+
}
|
|
53
|
+
export interface DirectoryNodeLedgerEntry {
|
|
54
|
+
LedgerEntryType: "DirectoryNode";
|
|
55
|
+
Flags: number;
|
|
56
|
+
RootIndex: string;
|
|
57
|
+
Indexes: string[];
|
|
58
|
+
IndexNext?: number;
|
|
59
|
+
IndexPrevious?: number;
|
|
60
|
+
}
|
|
61
|
+
export interface OfferDirectoryNodeLedgerEntry extends DirectoryNodeLedgerEntry {
|
|
62
|
+
TakerPaysCurrency: string;
|
|
63
|
+
TakerPaysIssuer: string;
|
|
64
|
+
TakerGetsCurrency: string;
|
|
65
|
+
TakerGetsIssuer: string;
|
|
66
|
+
ExchangeRate?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface OwnerDirectoryNodeLedgerEntry extends DirectoryNodeLedgerEntry {
|
|
69
|
+
Owner: string;
|
|
70
|
+
}
|
|
71
|
+
export interface EscrowLedgerEntry {
|
|
72
|
+
LedgerEntryType: "Escrow";
|
|
73
|
+
Account: string;
|
|
74
|
+
Destination: string;
|
|
75
|
+
Amount: string;
|
|
76
|
+
Condition?: string;
|
|
77
|
+
CancelAfter?: number;
|
|
78
|
+
FinishAfter?: number;
|
|
79
|
+
Flags: number;
|
|
80
|
+
SourceTag?: number;
|
|
81
|
+
DestinationTag?: number;
|
|
82
|
+
OwnerNode: string;
|
|
83
|
+
DestinationNode?: string;
|
|
84
|
+
PreviousTxnID: string;
|
|
85
|
+
PreviousTxnLgrSeq: number;
|
|
86
|
+
}
|
|
87
|
+
export interface FeeSettingsLedgerEntry {
|
|
88
|
+
LedgerEntryType: "FeeSettings";
|
|
89
|
+
BaseFee: string;
|
|
90
|
+
ReferenceFeeUnits: number;
|
|
91
|
+
ReserveBase: number;
|
|
92
|
+
ReserveIncrement: number;
|
|
93
|
+
Flags: number;
|
|
94
|
+
}
|
|
95
|
+
export interface LedgerHashesLedgerEntry {
|
|
96
|
+
LedgerEntryType: "LedgerHashes";
|
|
97
|
+
Hashes: string[];
|
|
98
|
+
Flags: number;
|
|
99
|
+
FirstLedgerSequence?: number;
|
|
100
|
+
LastLedgerSequence?: number;
|
|
101
|
+
}
|
|
102
|
+
export interface OfferLedgerEntry {
|
|
103
|
+
LedgerEntryType: "Offer";
|
|
104
|
+
Flags: number;
|
|
105
|
+
Account: string;
|
|
106
|
+
Sequence: number;
|
|
107
|
+
TakerPays: Amount;
|
|
108
|
+
TakerGets: Amount;
|
|
109
|
+
BookDirectory: string;
|
|
110
|
+
BookNode: string;
|
|
111
|
+
OwnerNode: string;
|
|
112
|
+
PreviousTxnID: string;
|
|
113
|
+
PreviousTxnLgrSeq: number;
|
|
114
|
+
Expiration?: number;
|
|
115
|
+
}
|
|
116
|
+
export interface PayChannelLedgerEntry {
|
|
117
|
+
LedgerEntryType: "PayChannel";
|
|
118
|
+
Sequence: number;
|
|
119
|
+
Account: string;
|
|
120
|
+
Amount: string;
|
|
121
|
+
Balance: string;
|
|
122
|
+
PublicKey: string;
|
|
123
|
+
Destination: string;
|
|
124
|
+
SettleDelay: number;
|
|
125
|
+
Expiration?: number;
|
|
126
|
+
CancelAfter?: number;
|
|
127
|
+
SourceTag?: number;
|
|
128
|
+
DestinationTag?: number;
|
|
129
|
+
OwnerNode: string;
|
|
130
|
+
PreviousTxnID: string;
|
|
131
|
+
PreviousTxnLgrSeq: number;
|
|
132
|
+
index: string;
|
|
133
|
+
}
|
|
134
|
+
export interface RippleStateLedgerEntry {
|
|
135
|
+
LedgerEntryType: "RippleState";
|
|
136
|
+
Flags: number;
|
|
137
|
+
Balance: Amount;
|
|
138
|
+
LowLimit: Amount;
|
|
139
|
+
HighLimit: Amount;
|
|
140
|
+
PreviousTxnID: string;
|
|
141
|
+
PreviousTxnLgrSeq: number;
|
|
142
|
+
LowNode?: string;
|
|
143
|
+
HighNode?: string;
|
|
144
|
+
LowQualityIn?: number;
|
|
145
|
+
LowQualityOut?: number;
|
|
146
|
+
HighQualityIn?: number;
|
|
147
|
+
HighQualityOut?: number;
|
|
148
|
+
}
|
|
149
|
+
export interface SignerListLedgerEntry {
|
|
150
|
+
LedgerEntryType: "SignerList";
|
|
151
|
+
OwnerNode: string;
|
|
152
|
+
SignerQuorum: number;
|
|
153
|
+
SignerEntries: SignerEntry[];
|
|
154
|
+
SignerListID: number;
|
|
155
|
+
PreviousTxnID: string;
|
|
156
|
+
PreviousTxnLgrSeq: number;
|
|
157
|
+
}
|
|
158
|
+
export type LedgerEntry = AccountRootLedgerEntry | AmendmentsLedgerEntry | CheckLedgerEntry | DepositPreauthLedgerEntry | DirectoryNodeLedgerEntry | OfferDirectoryNodeLedgerEntry | OwnerDirectoryNodeLedgerEntry | EscrowLedgerEntry | FeeSettingsLedgerEntry | LedgerHashesLedgerEntry | OfferLedgerEntry | PayChannelLedgerEntry | RippleStateLedgerEntry | SignerListLedgerEntry;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NFTokenMintFlags, NFTokenCreateOfferFlags } from "xrpl";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
export declare const NFTokenFlagsKeys: {
|
|
4
|
+
burnable: NFTokenMintFlags;
|
|
5
|
+
onlyXRP: NFTokenMintFlags;
|
|
6
|
+
trustLine: NFTokenMintFlags;
|
|
7
|
+
transferable: NFTokenMintFlags;
|
|
8
|
+
};
|
|
9
|
+
export interface NFTokenFlagsKeysInterface {
|
|
10
|
+
burnable?: boolean;
|
|
11
|
+
onlyXRP?: boolean;
|
|
12
|
+
trustLine?: boolean;
|
|
13
|
+
transferable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const NFTokenOfferFlagsKeys: {
|
|
16
|
+
sellToken: NFTokenCreateOfferFlags;
|
|
17
|
+
};
|
|
18
|
+
export interface NFTokenOfferFlagsKeysInterface {
|
|
19
|
+
sellToken?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type FormattedNFTokenBurnSpecification = {
|
|
22
|
+
account: string;
|
|
23
|
+
nftokenID: string;
|
|
24
|
+
} & FormattedBaseSpecification;
|
|
25
|
+
export type FormattedNFTokenMintSpecification = {
|
|
26
|
+
nftokenTaxon: number;
|
|
27
|
+
issuer?: string;
|
|
28
|
+
transferFee?: number;
|
|
29
|
+
uri?: string;
|
|
30
|
+
flags?: NFTokenFlagsKeysInterface;
|
|
31
|
+
} & FormattedBaseSpecification;
|
|
32
|
+
export type FormattedNFTokenCancelOfferSpecification = {
|
|
33
|
+
nftokenOffers: string[];
|
|
34
|
+
} & FormattedBaseSpecification;
|
|
35
|
+
export type FormattedNFTokenCreateOfferSpecification = {
|
|
36
|
+
nftokenID: string;
|
|
37
|
+
amount: string;
|
|
38
|
+
owner?: string;
|
|
39
|
+
destination?: string;
|
|
40
|
+
expiration?: number;
|
|
41
|
+
flags?: NFTokenOfferFlagsKeysInterface;
|
|
42
|
+
} & FormattedBaseSpecification;
|
|
43
|
+
export type FormattedNFTokenAcceptOfferSpecification = {
|
|
44
|
+
nftokenSellOffer?: string;
|
|
45
|
+
nftokenBuyOffer?: string;
|
|
46
|
+
nftokenBrokerFee?: string;
|
|
47
|
+
} & FormattedBaseSpecification;
|