@bithomp/xrpl-api 3.7.31 → 3.7.37
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/lib/connection.js +5 -3
- package/lib/src/base58.d.ts +2 -0
- package/lib/src/base58.js +32 -0
- package/lib/src/client.d.ts +25 -0
- package/lib/src/client.js +192 -0
- package/lib/src/common/errors/index.d.ts +3 -0
- package/lib/src/common/errors/index.js +7 -0
- package/lib/src/common/errors/validation_error.d.ts +4 -0
- package/lib/src/common/errors/validation_error.js +7 -0
- package/lib/src/common/errors/xrpl_api_error.d.ts +9 -0
- package/lib/src/common/errors/xrpl_api_error.js +28 -0
- package/lib/src/common/index.d.ts +9 -0
- package/lib/src/common/index.js +57 -0
- package/lib/src/common/sha512Half.d.ts +2 -0
- package/lib/src/common/sha512Half.js +12 -0
- package/lib/src/common/utils.d.ts +14 -0
- package/lib/src/common/utils.js +147 -0
- package/lib/src/connection.d.ts +76 -0
- package/lib/src/connection.js +653 -0
- package/lib/src/faucet.d.ts +58 -0
- package/lib/src/faucet.js +129 -0
- package/lib/src/index.d.ts +9 -0
- package/lib/src/index.js +45 -0
- package/lib/src/ledger/account_info.d.ts +16 -0
- package/lib/src/ledger/account_info.js +112 -0
- package/lib/src/ledger/account_lines.d.ts +11 -0
- package/lib/src/ledger/account_lines.js +90 -0
- package/lib/src/ledger/account_namespace.d.ts +7 -0
- package/lib/src/ledger/account_namespace.js +72 -0
- package/lib/src/ledger/account_nfts.d.ts +21 -0
- package/lib/src/ledger/account_nfts.js +199 -0
- package/lib/src/ledger/account_objects.d.ts +44 -0
- package/lib/src/ledger/account_objects.js +222 -0
- package/lib/src/ledger/account_offers.d.ts +13 -0
- package/lib/src/ledger/account_offers.js +142 -0
- package/lib/src/ledger/account_tx.d.ts +37 -0
- package/lib/src/ledger/account_tx.js +376 -0
- package/lib/src/ledger/amm_info.d.ts +13 -0
- package/lib/src/ledger/amm_info.js +114 -0
- package/lib/src/ledger/book_offers.d.ts +15 -0
- package/lib/src/ledger/book_offers.js +102 -0
- package/lib/src/ledger/currency.d.ts +28 -0
- package/lib/src/ledger/currency.js +250 -0
- package/lib/src/ledger/fee.d.ts +13 -0
- package/lib/src/ledger/fee.js +99 -0
- package/lib/src/ledger/gateway_balances.d.ts +16 -0
- package/lib/src/ledger/gateway_balances.js +119 -0
- package/lib/src/ledger/index.d.ts +21 -0
- package/lib/src/ledger/index.js +37 -0
- package/lib/src/ledger/ledger.d.ts +16 -0
- package/lib/src/ledger/ledger.js +99 -0
- package/lib/src/ledger/ledger_entry.d.ts +16 -0
- package/lib/src/ledger/ledger_entry.js +118 -0
- package/lib/src/ledger/manifest.d.ts +8 -0
- package/lib/src/ledger/manifest.js +67 -0
- package/lib/src/ledger/nft_info.d.ts +4 -0
- package/lib/src/ledger/nft_info.js +67 -0
- package/lib/src/ledger/server_definitions.d.ts +7 -0
- package/lib/src/ledger/server_definitions.js +65 -0
- package/lib/src/ledger/server_info.d.ts +8 -0
- package/lib/src/ledger/server_info.js +65 -0
- package/lib/src/ledger/transaction.d.ts +47 -0
- package/lib/src/ledger/transaction.js +440 -0
- package/lib/src/ledger/vl-v2.d.ts +3 -0
- package/lib/src/ledger/vl-v2.js +124 -0
- package/lib/src/ledger/vl.d.ts +4 -0
- package/lib/src/ledger/vl.js +131 -0
- package/lib/src/models/account_info.d.ts +184 -0
- package/lib/src/models/account_info.js +139 -0
- package/lib/src/models/account_lines.d.ts +26 -0
- package/lib/src/models/account_lines.js +2 -0
- package/lib/src/models/account_namespace.d.ts +16 -0
- package/lib/src/models/account_namespace.js +2 -0
- package/lib/src/models/account_nfts.d.ts +20 -0
- package/lib/src/models/account_nfts.js +92 -0
- package/lib/src/models/account_object.d.ts +61 -0
- package/lib/src/models/account_object.js +125 -0
- package/lib/src/models/account_offers.d.ts +9 -0
- package/lib/src/models/account_offers.js +2 -0
- package/lib/src/models/account_uritokens.d.ts +11 -0
- package/lib/src/models/account_uritokens.js +2 -0
- package/lib/src/models/amm_info.d.ts +1 -0
- package/lib/src/models/amm_info.js +4 -0
- package/lib/src/models/base_model.d.ts +15 -0
- package/lib/src/models/base_model.js +2 -0
- package/lib/src/models/book_offers.d.ts +9 -0
- package/lib/src/models/book_offers.js +40 -0
- package/lib/src/models/gateway_balances.d.ts +19 -0
- package/lib/src/models/gateway_balances.js +2 -0
- package/lib/src/models/index.d.ts +38 -0
- package/lib/src/models/index.js +82 -0
- package/lib/src/models/ledger.d.ts +7 -0
- package/lib/src/models/ledger.js +20 -0
- package/lib/src/models/manifest.d.ts +25 -0
- package/lib/src/models/manifest.js +199 -0
- package/lib/src/models/mptoken.d.ts +7 -0
- package/lib/src/models/mptoken.js +59 -0
- package/lib/src/models/path_find.d.ts +11 -0
- package/lib/src/models/path_find.js +2 -0
- package/lib/src/models/server_definitions.d.ts +33 -0
- package/lib/src/models/server_definitions.js +2 -0
- package/lib/src/models/transaction.d.ts +52 -0
- package/lib/src/models/transaction.js +141 -0
- package/lib/src/models/transactions/CronSet.d.ts +3 -0
- package/lib/src/models/transactions/CronSet.js +2 -0
- package/lib/src/models/transactions/SetRemarks.d.ts +3 -0
- package/lib/src/models/transactions/SetRemarks.js +2 -0
- package/lib/src/models/transactions/URITokenMint.d.ts +3 -0
- package/lib/src/models/transactions/URITokenMint.js +2 -0
- package/lib/src/models/vl.d.ts +82 -0
- package/lib/src/models/vl.js +498 -0
- package/lib/src/parse/index.d.ts +6 -0
- package/lib/src/parse/index.js +46 -0
- package/lib/src/parse/ledger/account-fields.d.ts +5 -0
- package/lib/src/parse/ledger/account-fields.js +43 -0
- package/lib/src/parse/ledger/account-info.d.ts +3 -0
- package/lib/src/parse/ledger/account-info.js +15 -0
- package/lib/src/parse/ledger/account-order.d.ts +18 -0
- package/lib/src/parse/ledger/account-order.js +48 -0
- package/lib/src/parse/ledger/account-settings-flags.d.ts +2 -0
- package/lib/src/parse/ledger/account-settings-flags.js +77 -0
- package/lib/src/parse/ledger/account.d.ts +1 -0
- package/lib/src/parse/ledger/account.js +7 -0
- package/lib/src/parse/ledger/amount.d.ts +3 -0
- package/lib/src/parse/ledger/amount.js +25 -0
- package/lib/src/parse/ledger/asset.d.ts +3 -0
- package/lib/src/parse/ledger/asset.js +19 -0
- package/lib/src/parse/ledger/auth-accounts.d.ts +3 -0
- package/lib/src/parse/ledger/auth-accounts.js +18 -0
- package/lib/src/parse/ledger/credential-flags.d.ts +5 -0
- package/lib/src/parse/ledger/credential-flags.js +8 -0
- package/lib/src/parse/ledger/credential.d.ts +3 -0
- package/lib/src/parse/ledger/credential.js +13 -0
- package/lib/src/parse/ledger/currency-amount.d.ts +3 -0
- package/lib/src/parse/ledger/currency-amount.js +13 -0
- package/lib/src/parse/ledger/delegate.d.ts +2 -0
- package/lib/src/parse/ledger/delegate.js +11 -0
- package/lib/src/parse/ledger/destination.d.ts +2 -0
- package/lib/src/parse/ledger/destination.js +12 -0
- package/lib/src/parse/ledger/emit_details.d.ts +2 -0
- package/lib/src/parse/ledger/emit_details.js +14 -0
- package/lib/src/parse/ledger/flags.d.ts +4 -0
- package/lib/src/parse/ledger/flags.js +17 -0
- package/lib/src/parse/ledger/gateway-balances.d.ts +3 -0
- package/lib/src/parse/ledger/gateway-balances.js +31 -0
- package/lib/src/parse/ledger/genesis-mints.d.ts +2 -0
- package/lib/src/parse/ledger/genesis-mints.js +17 -0
- package/lib/src/parse/ledger/import.d.ts +2 -0
- package/lib/src/parse/ledger/import.js +40 -0
- package/lib/src/parse/ledger/index.d.ts +6 -0
- package/lib/src/parse/ledger/index.js +29 -0
- package/lib/src/parse/ledger/ledger.d.ts +2 -0
- package/lib/src/parse/ledger/ledger.js +98 -0
- package/lib/src/parse/ledger/memos.d.ts +4 -0
- package/lib/src/parse/ledger/memos.js +27 -0
- package/lib/src/parse/ledger/mptoken-flags.d.ts +6 -0
- package/lib/src/parse/ledger/mptoken-flags.js +8 -0
- package/lib/src/parse/ledger/mptoken-issuance-flags.d.ts +6 -0
- package/lib/src/parse/ledger/mptoken-issuance-flags.js +8 -0
- package/lib/src/parse/ledger/nftoken-flags.d.ts +5 -0
- package/lib/src/parse/ledger/nftoken-flags.js +8 -0
- package/lib/src/parse/ledger/nftoken-offer-flags.d.ts +5 -0
- package/lib/src/parse/ledger/nftoken-offer-flags.js +8 -0
- package/lib/src/parse/ledger/offer-flags.d.ts +5 -0
- package/lib/src/parse/ledger/offer-flags.js +8 -0
- package/lib/src/parse/ledger/orderbook-order.d.ts +21 -0
- package/lib/src/parse/ledger/orderbook-order.js +42 -0
- package/lib/src/parse/ledger/permissions.d.ts +2 -0
- package/lib/src/parse/ledger/permissions.js +9 -0
- package/lib/src/parse/ledger/regular-key.d.ts +2 -0
- package/lib/src/parse/ledger/regular-key.js +14 -0
- package/lib/src/parse/ledger/remark-flags.d.ts +5 -0
- package/lib/src/parse/ledger/remark-flags.js +8 -0
- package/lib/src/parse/ledger/remarks.d.ts +3 -0
- package/lib/src/parse/ledger/remarks.js +37 -0
- package/lib/src/parse/ledger/signers.d.ts +2 -0
- package/lib/src/parse/ledger/signers.js +12 -0
- package/lib/src/parse/ledger/source.d.ts +3 -0
- package/lib/src/parse/ledger/source.js +28 -0
- package/lib/src/parse/ledger/trustline-flags.d.ts +5 -0
- package/lib/src/parse/ledger/trustline-flags.js +8 -0
- package/lib/src/parse/ledger/tx-account-set-flags.d.ts +4 -0
- package/lib/src/parse/ledger/tx-account-set-flags.js +36 -0
- package/lib/src/parse/ledger/tx-amm-clawback-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-amm-clawback-flags.js +8 -0
- package/lib/src/parse/ledger/tx-amm-deposit-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-amm-deposit-flags.js +8 -0
- package/lib/src/parse/ledger/tx-amm-withdraw-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-amm-withdraw-flags.js +8 -0
- package/lib/src/parse/ledger/tx-batch-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-batch-flags.js +8 -0
- package/lib/src/parse/ledger/tx-cron-set-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-cron-set-flags.js +8 -0
- package/lib/src/parse/ledger/tx-global-flags.d.ts +5 -0
- package/lib/src/parse/ledger/tx-global-flags.js +8 -0
- package/lib/src/parse/ledger/tx-mptoken-authorize-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-mptoken-authorize-flags.js +8 -0
- package/lib/src/parse/ledger/tx-mptoken-issuance-create-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-mptoken-issuance-create-flags.js +8 -0
- package/lib/src/parse/ledger/tx-mptoken-issuance-set-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-mptoken-issuance-set-flags.js +8 -0
- package/lib/src/parse/ledger/tx-nftoken-mint-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-nftoken-mint-flags.js +8 -0
- package/lib/src/parse/ledger/tx-nftoken-offer-create-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-nftoken-offer-create-flags.js +8 -0
- package/lib/src/parse/ledger/tx-offer-create-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-offer-create-flags.js +8 -0
- package/lib/src/parse/ledger/tx-payment-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-payment-flags.js +8 -0
- package/lib/src/parse/ledger/tx-trust-set-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-trust-set-flags.js +8 -0
- package/lib/src/parse/ledger/tx-uritoken-mint-flags.d.ts +6 -0
- package/lib/src/parse/ledger/tx-uritoken-mint-flags.js +8 -0
- package/lib/src/parse/ledger/uritoken-flags.d.ts +5 -0
- package/lib/src/parse/ledger/uritoken-flags.js +8 -0
- package/lib/src/parse/mptoken_normalize.d.ts +5 -0
- package/lib/src/parse/mptoken_normalize.js +215 -0
- package/lib/src/parse/outcome/account_setting_changes.d.ts +4 -0
- package/lib/src/parse/outcome/account_setting_changes.js +67 -0
- package/lib/src/parse/outcome/affected_objects.d.ts +7 -0
- package/lib/src/parse/outcome/affected_objects.js +147 -0
- package/lib/src/parse/outcome/amendment_changes.d.ts +8 -0
- package/lib/src/parse/outcome/amendment_changes.js +84 -0
- package/lib/src/parse/outcome/amm_changes.d.ts +52 -0
- package/lib/src/parse/outcome/amm_changes.js +214 -0
- package/lib/src/parse/outcome/balance_changes.d.ts +24 -0
- package/lib/src/parse/outcome/balance_changes.js +337 -0
- package/lib/src/parse/outcome/channel_changes.d.ts +20 -0
- package/lib/src/parse/outcome/channel_changes.js +70 -0
- package/lib/src/parse/outcome/check_changes.d.ts +17 -0
- package/lib/src/parse/outcome/check_changes.js +63 -0
- package/lib/src/parse/outcome/credential_changes.d.ts +16 -0
- package/lib/src/parse/outcome/credential_changes.js +59 -0
- package/lib/src/parse/outcome/cron_changes.d.ts +13 -0
- package/lib/src/parse/outcome/cron_changes.js +72 -0
- package/lib/src/parse/outcome/delegate_changes.d.ts +12 -0
- package/lib/src/parse/outcome/delegate_changes.js +59 -0
- package/lib/src/parse/outcome/delivered_amount.d.ts +4 -0
- package/lib/src/parse/outcome/delivered_amount.js +63 -0
- package/lib/src/parse/outcome/did_changes.d.ts +14 -0
- package/lib/src/parse/outcome/did_changes.js +50 -0
- package/lib/src/parse/outcome/emitted_txns.d.ts +9 -0
- package/lib/src/parse/outcome/emitted_txns.js +57 -0
- package/lib/src/parse/outcome/escrow_changes.d.ts +16 -0
- package/lib/src/parse/outcome/escrow_changes.js +75 -0
- package/lib/src/parse/outcome/hooks_executions.d.ts +13 -0
- package/lib/src/parse/outcome/hooks_executions.js +42 -0
- package/lib/src/parse/outcome/index.d.ts +26 -0
- package/lib/src/parse/outcome/index.js +55 -0
- package/lib/src/parse/outcome/locked_balance_changes.d.ts +20 -0
- package/lib/src/parse/outcome/locked_balance_changes.js +117 -0
- package/lib/src/parse/outcome/mptoken_changes.d.ts +1 -0
- package/lib/src/parse/outcome/mptoken_changes.js +113 -0
- package/lib/src/parse/outcome/mptoken_issuance_changes.d.ts +1 -0
- package/lib/src/parse/outcome/mptoken_issuance_changes.js +119 -0
- package/lib/src/parse/outcome/nftoken_changes.d.ts +1 -0
- package/lib/src/parse/outcome/nftoken_changes.js +234 -0
- package/lib/src/parse/outcome/nftoken_offer_changes.d.ts +2 -0
- package/lib/src/parse/outcome/nftoken_offer_changes.js +106 -0
- package/lib/src/parse/outcome/oracle_changes.d.ts +29 -0
- package/lib/src/parse/outcome/oracle_changes.js +150 -0
- package/lib/src/parse/outcome/orderbook_changes.d.ts +21 -0
- package/lib/src/parse/outcome/orderbook_changes.js +108 -0
- package/lib/src/parse/outcome/orderbook_quality.d.ts +2 -0
- package/lib/src/parse/outcome/orderbook_quality.js +49 -0
- package/lib/src/parse/outcome/remarks_changes.d.ts +14 -0
- package/lib/src/parse/outcome/remarks_changes.js +68 -0
- package/lib/src/parse/outcome/unl_report_changes.d.ts +13 -0
- package/lib/src/parse/outcome/unl_report_changes.js +48 -0
- package/lib/src/parse/outcome/uritoken_changes.d.ts +1 -0
- package/lib/src/parse/outcome/uritoken_changes.js +83 -0
- package/lib/src/parse/outcome/uritoken_sell_offer_changes.d.ts +1 -0
- package/lib/src/parse/outcome/uritoken_sell_offer_changes.js +105 -0
- package/lib/src/parse/outcome.d.ts +4 -0
- package/lib/src/parse/outcome.js +264 -0
- package/lib/src/parse/specification/account-delete.d.ts +4 -0
- package/lib/src/parse/specification/account-delete.js +59 -0
- package/lib/src/parse/specification/amendment.d.ts +3 -0
- package/lib/src/parse/specification/amendment.js +50 -0
- package/lib/src/parse/specification/amm-bid.d.ts +4 -0
- package/lib/src/parse/specification/amm-bid.js +66 -0
- package/lib/src/parse/specification/amm-clawback.d.ts +4 -0
- package/lib/src/parse/specification/amm-clawback.js +65 -0
- package/lib/src/parse/specification/amm-create.d.ts +4 -0
- package/lib/src/parse/specification/amm-create.js +62 -0
- package/lib/src/parse/specification/amm-delete.d.ts +4 -0
- package/lib/src/parse/specification/amm-delete.js +61 -0
- package/lib/src/parse/specification/amm-deposit.d.ts +4 -0
- package/lib/src/parse/specification/amm-deposit.js +66 -0
- package/lib/src/parse/specification/amm-vote.d.ts +4 -0
- package/lib/src/parse/specification/amm-vote.js +62 -0
- package/lib/src/parse/specification/amm-withdraw.d.ts +4 -0
- package/lib/src/parse/specification/amm-withdraw.js +66 -0
- package/lib/src/parse/specification/batch.d.ts +4 -0
- package/lib/src/parse/specification/batch.js +83 -0
- package/lib/src/parse/specification/check-cancel.d.ts +4 -0
- package/lib/src/parse/specification/check-cancel.js +58 -0
- package/lib/src/parse/specification/check-cash.d.ts +4 -0
- package/lib/src/parse/specification/check-cash.js +64 -0
- package/lib/src/parse/specification/check-create.d.ts +4 -0
- package/lib/src/parse/specification/check-create.js +67 -0
- package/lib/src/parse/specification/clawback.d.ts +4 -0
- package/lib/src/parse/specification/clawback.js +62 -0
- package/lib/src/parse/specification/credential-accept.d.ts +4 -0
- package/lib/src/parse/specification/credential-accept.js +56 -0
- package/lib/src/parse/specification/credential-create.d.ts +4 -0
- package/lib/src/parse/specification/credential-create.js +58 -0
- package/lib/src/parse/specification/credential-delete.d.ts +4 -0
- package/lib/src/parse/specification/credential-delete.js +57 -0
- package/lib/src/parse/specification/cron-set.d.ts +3 -0
- package/lib/src/parse/specification/cron-set.js +62 -0
- package/lib/src/parse/specification/cron.d.ts +3 -0
- package/lib/src/parse/specification/cron.js +47 -0
- package/lib/src/parse/specification/delegate-set.d.ts +4 -0
- package/lib/src/parse/specification/delegate-set.js +60 -0
- package/lib/src/parse/specification/deposit-preauth.d.ts +4 -0
- package/lib/src/parse/specification/deposit-preauth.js +62 -0
- package/lib/src/parse/specification/did-delete.d.ts +4 -0
- package/lib/src/parse/specification/did-delete.js +57 -0
- package/lib/src/parse/specification/did-set.d.ts +4 -0
- package/lib/src/parse/specification/did-set.js +60 -0
- package/lib/src/parse/specification/escrow-cancel.d.ts +4 -0
- package/lib/src/parse/specification/escrow-cancel.js +59 -0
- package/lib/src/parse/specification/escrow-create.d.ts +4 -0
- package/lib/src/parse/specification/escrow-create.js +64 -0
- package/lib/src/parse/specification/escrow-finish.d.ts +4 -0
- package/lib/src/parse/specification/escrow-finish.js +61 -0
- package/lib/src/parse/specification/fee-update.d.ts +3 -0
- package/lib/src/parse/specification/fee-update.js +69 -0
- package/lib/src/parse/specification/genesis-mint.d.ts +3 -0
- package/lib/src/parse/specification/genesis-mint.js +53 -0
- package/lib/src/parse/specification/import.d.ts +3 -0
- package/lib/src/parse/specification/import.js +55 -0
- package/lib/src/parse/specification/invoke.d.ts +3 -0
- package/lib/src/parse/specification/invoke.js +54 -0
- package/lib/src/parse/specification/mptoken-authorize.d.ts +4 -0
- package/lib/src/parse/specification/mptoken-authorize.js +60 -0
- package/lib/src/parse/specification/mptoken-issuance-create.d.ts +4 -0
- package/lib/src/parse/specification/mptoken-issuance-create.js +62 -0
- package/lib/src/parse/specification/mptoken-issuance-destroy.d.ts +4 -0
- package/lib/src/parse/specification/mptoken-issuance-destroy.js +56 -0
- package/lib/src/parse/specification/mptoken-issuance-set.d.ts +4 -0
- package/lib/src/parse/specification/mptoken-issuance-set.js +60 -0
- package/lib/src/parse/specification/nftoken-accept-offer.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-accept-offer.js +58 -0
- package/lib/src/parse/specification/nftoken-burn.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-burn.js +56 -0
- package/lib/src/parse/specification/nftoken-cancel-offer.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-cancel-offer.js +56 -0
- package/lib/src/parse/specification/nftoken-create-offer.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-create-offer.js +69 -0
- package/lib/src/parse/specification/nftoken-mint.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-mint.js +73 -0
- package/lib/src/parse/specification/nftoken-modify.d.ts +4 -0
- package/lib/src/parse/specification/nftoken-modify.js +58 -0
- package/lib/src/parse/specification/offer-cancel.d.ts +4 -0
- package/lib/src/parse/specification/offer-cancel.js +58 -0
- package/lib/src/parse/specification/offer-create.d.ts +4 -0
- package/lib/src/parse/specification/offer-create.js +78 -0
- package/lib/src/parse/specification/oracle-delete.d.ts +4 -0
- package/lib/src/parse/specification/oracle-delete.js +56 -0
- package/lib/src/parse/specification/oracle-set.d.ts +4 -0
- package/lib/src/parse/specification/oracle-set.js +62 -0
- package/lib/src/parse/specification/payment-channel-claim.d.ts +4 -0
- package/lib/src/parse/specification/payment-channel-claim.js +67 -0
- package/lib/src/parse/specification/payment-channel-create.d.ts +4 -0
- package/lib/src/parse/specification/payment-channel-create.js +68 -0
- package/lib/src/parse/specification/payment-channel-fund.d.ts +4 -0
- package/lib/src/parse/specification/payment-channel-fund.js +65 -0
- package/lib/src/parse/specification/payment.d.ts +4 -0
- package/lib/src/parse/specification/payment.js +75 -0
- package/lib/src/parse/specification/permissioned-domain-set.d.ts +4 -0
- package/lib/src/parse/specification/permissioned-domain-set.js +56 -0
- package/lib/src/parse/specification/remit.d.ts +3 -0
- package/lib/src/parse/specification/remit.js +90 -0
- package/lib/src/parse/specification/set-remarks.d.ts +3 -0
- package/lib/src/parse/specification/set-remarks.js +56 -0
- package/lib/src/parse/specification/settings.d.ts +4 -0
- package/lib/src/parse/specification/settings.js +64 -0
- package/lib/src/parse/specification/ticket-create.d.ts +4 -0
- package/lib/src/parse/specification/ticket-create.js +58 -0
- package/lib/src/parse/specification/trust-set.d.ts +4 -0
- package/lib/src/parse/specification/trust-set.js +80 -0
- package/lib/src/parse/specification/unl-modify.d.ts +4 -0
- package/lib/src/parse/specification/unl-modify.js +52 -0
- package/lib/src/parse/specification/unl-report.d.ts +3 -0
- package/lib/src/parse/specification/unl-report.js +51 -0
- package/lib/src/parse/specification/unrecognized.d.ts +4 -0
- package/lib/src/parse/specification/unrecognized.js +24 -0
- package/lib/src/parse/specification/uritoken-burn.d.ts +3 -0
- package/lib/src/parse/specification/uritoken-burn.js +54 -0
- package/lib/src/parse/specification/uritoken-buy.d.ts +3 -0
- package/lib/src/parse/specification/uritoken-buy.js +55 -0
- package/lib/src/parse/specification/uritoken-cancel-sell-offer.d.ts +3 -0
- package/lib/src/parse/specification/uritoken-cancel-sell-offer.js +54 -0
- package/lib/src/parse/specification/uritoken-create-sell-offer.d.ts +3 -0
- package/lib/src/parse/specification/uritoken-create-sell-offer.js +57 -0
- package/lib/src/parse/specification/uritoken-mint.d.ts +3 -0
- package/lib/src/parse/specification/uritoken-mint.js +63 -0
- package/lib/src/parse/transaction.d.ts +168 -0
- package/lib/src/parse/transaction.js +228 -0
- package/lib/src/parse/utils.d.ts +33 -0
- package/lib/src/parse/utils.js +119 -0
- package/lib/src/types/account.d.ts +26 -0
- package/lib/src/types/account.js +2 -0
- package/lib/src/types/adjustments.d.ts +16 -0
- package/lib/src/types/adjustments.js +2 -0
- package/lib/src/types/amendments.d.ts +4 -0
- package/lib/src/types/amendments.js +2 -0
- package/lib/src/types/amm.d.ts +98 -0
- package/lib/src/types/amm.js +68 -0
- package/lib/src/types/amounts.d.ts +20 -0
- package/lib/src/types/amounts.js +2 -0
- package/lib/src/types/batch.d.ts +21 -0
- package/lib/src/types/batch.js +26 -0
- package/lib/src/types/checks.d.ts +17 -0
- package/lib/src/types/checks.js +2 -0
- package/lib/src/types/clawback.d.ts +5 -0
- package/lib/src/types/clawback.js +2 -0
- package/lib/src/types/credentials.d.ts +30 -0
- package/lib/src/types/credentials.js +10 -0
- package/lib/src/types/cron.d.ts +17 -0
- package/lib/src/types/cron.js +6 -0
- package/lib/src/types/delegate.d.ts +5 -0
- package/lib/src/types/delegate.js +2 -0
- package/lib/src/types/deposits.d.ts +11 -0
- package/lib/src/types/deposits.js +2 -0
- package/lib/src/types/did.d.ts +7 -0
- package/lib/src/types/did.js +2 -0
- package/lib/src/types/emit_details.d.ts +7 -0
- package/lib/src/types/emit_details.js +2 -0
- package/lib/src/types/escrows.d.ts +18 -0
- package/lib/src/types/escrows.js +2 -0
- package/lib/src/types/fees.d.ts +9 -0
- package/lib/src/types/fees.js +2 -0
- package/lib/src/types/gateway_balances.d.ts +11 -0
- package/lib/src/types/gateway_balances.js +2 -0
- package/lib/src/types/genesis_mint.d.ts +9 -0
- package/lib/src/types/genesis_mint.js +2 -0
- package/lib/src/types/global.d.ts +14 -0
- package/lib/src/types/global.js +26 -0
- package/lib/src/types/hooks.d.ts +14 -0
- package/lib/src/types/hooks.js +2 -0
- package/lib/src/types/import.d.ts +21 -0
- package/lib/src/types/import.js +2 -0
- package/lib/src/types/index.d.ts +31 -0
- package/lib/src/types/index.js +47 -0
- package/lib/src/types/invoke.d.ts +5 -0
- package/lib/src/types/invoke.js +2 -0
- package/lib/src/types/ledger.d.ts +46 -0
- package/lib/src/types/ledger.js +2 -0
- package/lib/src/types/ledger_data.d.ts +10 -0
- package/lib/src/types/ledger_data.js +2 -0
- package/lib/src/types/ledger_entries.d.ts +163 -0
- package/lib/src/types/ledger_entries.js +2 -0
- package/lib/src/types/memos.d.ts +12 -0
- package/lib/src/types/memos.js +2 -0
- package/lib/src/types/mptokens.d.ts +84 -0
- package/lib/src/types/mptokens.js +76 -0
- package/lib/src/types/nftokens.d.ts +62 -0
- package/lib/src/types/nftokens.js +44 -0
- package/lib/src/types/offers.d.ts +46 -0
- package/lib/src/types/offers.js +33 -0
- package/lib/src/types/oracle.d.ts +19 -0
- package/lib/src/types/oracle.js +2 -0
- package/lib/src/types/outcome.d.ts +22 -0
- package/lib/src/types/outcome.js +2 -0
- package/lib/src/types/payment_channels.d.ts +23 -0
- package/lib/src/types/payment_channels.js +2 -0
- package/lib/src/types/payments.d.ts +24 -0
- package/lib/src/types/payments.js +25 -0
- package/lib/src/types/queue_data.d.ts +15 -0
- package/lib/src/types/queue_data.js +2 -0
- package/lib/src/types/remarks.d.ts +24 -0
- package/lib/src/types/remarks.js +6 -0
- package/lib/src/types/remits.d.ts +15 -0
- package/lib/src/types/remits.js +2 -0
- package/lib/src/types/settings.d.ts +27 -0
- package/lib/src/types/settings.js +2 -0
- package/lib/src/types/signers.d.ts +22 -0
- package/lib/src/types/signers.js +2 -0
- package/lib/src/types/specification.d.ts +14 -0
- package/lib/src/types/specification.js +2 -0
- package/lib/src/types/tickets.d.ts +4 -0
- package/lib/src/types/tickets.js +2 -0
- package/lib/src/types/trustlines.d.ts +85 -0
- package/lib/src/types/trustlines.js +43 -0
- package/lib/src/types/unl_modify.d.ts +6 -0
- package/lib/src/types/unl_modify.js +2 -0
- package/lib/src/types/unl_reports.d.ts +5 -0
- package/lib/src/types/unl_reports.js +2 -0
- package/lib/src/types/unrecognized.d.ts +5 -0
- package/lib/src/types/unrecognized.js +2 -0
- package/lib/src/types/uri_tokens.d.ts +7 -0
- package/lib/src/types/uri_tokens.js +6 -0
- package/lib/src/types/uritokens.d.ts +41 -0
- package/lib/src/types/uritokens.js +22 -0
- package/lib/src/v1/transaction/payment.d.ts +14 -0
- package/lib/src/v1/transaction/payment.js +142 -0
- package/lib/src/v1/types.d.ts +9 -0
- package/lib/src/v1/types.js +2 -0
- package/lib/src/v1/utils.d.ts +7 -0
- package/lib/src/v1/utils.js +49 -0
- package/lib/src/validator.d.ts +11 -0
- package/lib/src/validator.js +130 -0
- package/lib/src/wallet.d.ts +34 -0
- package/lib/src/wallet.js +284 -0
- package/package.json +11 -11
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { MPTokenIssuanceCreateFlags, MPTokenIssuanceSetFlags, MPTokenAuthorizeFlags } from "xrpl";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
4
|
+
export declare const MPTokenIssuanceFlagsKeys: {
|
|
5
|
+
locked: number;
|
|
6
|
+
canLock: MPTokenIssuanceCreateFlags;
|
|
7
|
+
requireAuth: MPTokenIssuanceCreateFlags;
|
|
8
|
+
canEscrow: MPTokenIssuanceCreateFlags;
|
|
9
|
+
canTrade: MPTokenIssuanceCreateFlags;
|
|
10
|
+
canTransfer: MPTokenIssuanceCreateFlags;
|
|
11
|
+
canClawback: MPTokenIssuanceCreateFlags;
|
|
12
|
+
};
|
|
13
|
+
export interface MPTokenIssuanceFlagsKeysInterface {
|
|
14
|
+
locked?: boolean;
|
|
15
|
+
canLock?: boolean;
|
|
16
|
+
requireAuth?: boolean;
|
|
17
|
+
canEscrow?: boolean;
|
|
18
|
+
canTrade?: boolean;
|
|
19
|
+
canTransfer?: boolean;
|
|
20
|
+
canClawback?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const MPTokenIssuanceCreateFlagsKeys: {
|
|
23
|
+
canLock: MPTokenIssuanceCreateFlags;
|
|
24
|
+
requireAuth: MPTokenIssuanceCreateFlags;
|
|
25
|
+
canEscrow: MPTokenIssuanceCreateFlags;
|
|
26
|
+
canTrade: MPTokenIssuanceCreateFlags;
|
|
27
|
+
canTransfer: MPTokenIssuanceCreateFlags;
|
|
28
|
+
canClawback: MPTokenIssuanceCreateFlags;
|
|
29
|
+
};
|
|
30
|
+
export declare function getMPTokenIssuanceCreateFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
31
|
+
export interface MPTokenIssuanceCreateFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
32
|
+
canLock?: boolean;
|
|
33
|
+
requireAuth?: boolean;
|
|
34
|
+
canEscrow?: boolean;
|
|
35
|
+
canTrade?: boolean;
|
|
36
|
+
canTransfer?: boolean;
|
|
37
|
+
canClawback?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const MPTokenIssuanceSetFlagsKeys: {
|
|
40
|
+
lock: MPTokenIssuanceSetFlags;
|
|
41
|
+
unlock: MPTokenIssuanceSetFlags;
|
|
42
|
+
};
|
|
43
|
+
export declare function getMPTokenIssuanceSetFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
44
|
+
export interface MPTokenIssuanceSetFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
45
|
+
lock?: boolean;
|
|
46
|
+
unlock?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const MPTokenAuthorizeFlagsKeys: {
|
|
49
|
+
unauthorize: MPTokenAuthorizeFlags;
|
|
50
|
+
};
|
|
51
|
+
export declare function getMPTokenAuthorizeFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
52
|
+
export interface MPTokenAuthorizeFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
53
|
+
unauthorize?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export type FormattedMPTokenAuthorizeSpecification = {
|
|
56
|
+
flags?: MPTokenAuthorizeFlagsKeysInterface;
|
|
57
|
+
holder?: string;
|
|
58
|
+
mptIssuanceID?: string;
|
|
59
|
+
} & FormattedBaseSpecification;
|
|
60
|
+
export type FormattedMPTokenIssuanceCreateSpecification = {
|
|
61
|
+
issuer?: string;
|
|
62
|
+
sequence?: number;
|
|
63
|
+
scale?: number;
|
|
64
|
+
flags?: MPTokenIssuanceCreateFlagsKeysInterface;
|
|
65
|
+
metadata?: string | null;
|
|
66
|
+
maximumAmount?: string;
|
|
67
|
+
transferFee?: number;
|
|
68
|
+
} & FormattedBaseSpecification;
|
|
69
|
+
export type FormattedMPTokenIssuanceDestroySpecification = {
|
|
70
|
+
mptIssuanceID?: string;
|
|
71
|
+
} & FormattedBaseSpecification;
|
|
72
|
+
export type FormattedMPTokenIssuanceSetSpecification = {
|
|
73
|
+
flags?: MPTokenIssuanceSetFlagsKeysInterface;
|
|
74
|
+
holder?: string;
|
|
75
|
+
mptIssuanceID?: string;
|
|
76
|
+
} & FormattedBaseSpecification;
|
|
77
|
+
export declare const MPTokenFlagsKeys: {
|
|
78
|
+
locked: number;
|
|
79
|
+
authorized: number;
|
|
80
|
+
};
|
|
81
|
+
export interface MPTokenFlagsKeysInterface {
|
|
82
|
+
locked?: boolean;
|
|
83
|
+
authorized?: boolean;
|
|
84
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MPTokenFlagsKeys = exports.MPTokenAuthorizeFlagsKeys = exports.MPTokenIssuanceSetFlagsKeys = exports.MPTokenIssuanceCreateFlagsKeys = exports.MPTokenIssuanceFlagsKeys = void 0;
|
|
4
|
+
exports.getMPTokenIssuanceCreateFlagsKeys = getMPTokenIssuanceCreateFlagsKeys;
|
|
5
|
+
exports.getMPTokenIssuanceSetFlagsKeys = getMPTokenIssuanceSetFlagsKeys;
|
|
6
|
+
exports.getMPTokenAuthorizeFlagsKeys = getMPTokenAuthorizeFlagsKeys;
|
|
7
|
+
const xrpl_1 = require("xrpl");
|
|
8
|
+
const global_1 = require("./global");
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
exports.MPTokenIssuanceFlagsKeys = {
|
|
11
|
+
locked: 0x00000001,
|
|
12
|
+
canLock: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanLock,
|
|
13
|
+
requireAuth: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTRequireAuth,
|
|
14
|
+
canEscrow: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanEscrow,
|
|
15
|
+
canTrade: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanTrade,
|
|
16
|
+
canTransfer: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanTransfer,
|
|
17
|
+
canClawback: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanClawback,
|
|
18
|
+
};
|
|
19
|
+
exports.MPTokenIssuanceCreateFlagsKeys = {
|
|
20
|
+
canLock: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanLock,
|
|
21
|
+
requireAuth: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTRequireAuth,
|
|
22
|
+
canEscrow: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanEscrow,
|
|
23
|
+
canTrade: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanTrade,
|
|
24
|
+
canTransfer: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanTransfer,
|
|
25
|
+
canClawback: xrpl_1.MPTokenIssuanceCreateFlags.tfMPTCanClawback,
|
|
26
|
+
};
|
|
27
|
+
const nativeCurrencyMPTokenIssuanceCreateFlags = {};
|
|
28
|
+
function getMPTokenIssuanceCreateFlagsKeys(nativeCurrency) {
|
|
29
|
+
if (!nativeCurrency) {
|
|
30
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
31
|
+
}
|
|
32
|
+
if (!nativeCurrencyMPTokenIssuanceCreateFlags[nativeCurrency]) {
|
|
33
|
+
nativeCurrencyMPTokenIssuanceCreateFlags[nativeCurrency] = {
|
|
34
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
35
|
+
...exports.MPTokenIssuanceCreateFlagsKeys,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return nativeCurrencyMPTokenIssuanceCreateFlags[nativeCurrency];
|
|
39
|
+
}
|
|
40
|
+
exports.MPTokenIssuanceSetFlagsKeys = {
|
|
41
|
+
lock: xrpl_1.MPTokenIssuanceSetFlags.tfMPTLock,
|
|
42
|
+
unlock: xrpl_1.MPTokenIssuanceSetFlags.tfMPTUnlock,
|
|
43
|
+
};
|
|
44
|
+
const nativeCurrencyMPTokenIssuanceSetFlags = {};
|
|
45
|
+
function getMPTokenIssuanceSetFlagsKeys(nativeCurrency) {
|
|
46
|
+
if (!nativeCurrency) {
|
|
47
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
48
|
+
}
|
|
49
|
+
if (!nativeCurrencyMPTokenIssuanceSetFlags[nativeCurrency]) {
|
|
50
|
+
nativeCurrencyMPTokenIssuanceSetFlags[nativeCurrency] = {
|
|
51
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
52
|
+
...exports.MPTokenIssuanceSetFlagsKeys,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return nativeCurrencyMPTokenIssuanceSetFlags[nativeCurrency];
|
|
56
|
+
}
|
|
57
|
+
exports.MPTokenAuthorizeFlagsKeys = {
|
|
58
|
+
unauthorize: xrpl_1.MPTokenAuthorizeFlags.tfMPTUnauthorize,
|
|
59
|
+
};
|
|
60
|
+
const nativeCurrencyMPTokenAuthorizeFlags = {};
|
|
61
|
+
function getMPTokenAuthorizeFlagsKeys(nativeCurrency) {
|
|
62
|
+
if (!nativeCurrency) {
|
|
63
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
64
|
+
}
|
|
65
|
+
if (!nativeCurrencyMPTokenAuthorizeFlags[nativeCurrency]) {
|
|
66
|
+
nativeCurrencyMPTokenAuthorizeFlags[nativeCurrency] = {
|
|
67
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
68
|
+
...exports.MPTokenAuthorizeFlagsKeys,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return nativeCurrencyMPTokenAuthorizeFlags[nativeCurrency];
|
|
72
|
+
}
|
|
73
|
+
exports.MPTokenFlagsKeys = {
|
|
74
|
+
locked: 0x00000001,
|
|
75
|
+
authorized: 0x00000002,
|
|
76
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { NFTokenMintFlags, NFTokenCreateOfferFlags } from "xrpl";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
import { Amount } from "./amounts";
|
|
4
|
+
import { FormattedSourceAddress, FormattedDestinationAddress } from "./account";
|
|
5
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
6
|
+
export declare const NFTokenFlagsKeys: {
|
|
7
|
+
burnable: NFTokenMintFlags;
|
|
8
|
+
onlyXRP: NFTokenMintFlags;
|
|
9
|
+
trustLine: NFTokenMintFlags;
|
|
10
|
+
transferable: NFTokenMintFlags;
|
|
11
|
+
mutable: NFTokenMintFlags;
|
|
12
|
+
};
|
|
13
|
+
export declare function getNFTokenMintFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
14
|
+
export interface NFTokenFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
15
|
+
burnable?: boolean;
|
|
16
|
+
onlyXRP?: boolean;
|
|
17
|
+
trustLine?: boolean;
|
|
18
|
+
transferable?: boolean;
|
|
19
|
+
mutable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const NFTokenOfferFlagsKeys: {
|
|
22
|
+
sellToken: NFTokenCreateOfferFlags;
|
|
23
|
+
};
|
|
24
|
+
export declare function getNFTokenOfferCreateFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
25
|
+
export interface NFTokenOfferFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
26
|
+
sellToken?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type FormattedNFTokenBurnSpecification = {
|
|
29
|
+
nftokenID: string;
|
|
30
|
+
} & FormattedBaseSpecification;
|
|
31
|
+
export type FormattedNFTokenMintSpecification = {
|
|
32
|
+
nftokenTaxon: number;
|
|
33
|
+
issuer?: string;
|
|
34
|
+
transferFee?: number;
|
|
35
|
+
uri?: string | null;
|
|
36
|
+
flags?: NFTokenFlagsKeysInterface;
|
|
37
|
+
amount?: Amount;
|
|
38
|
+
destination?: FormattedDestinationAddress;
|
|
39
|
+
expiration?: number;
|
|
40
|
+
} & FormattedBaseSpecification;
|
|
41
|
+
export type FormattedNFTokenModifySpecification = {
|
|
42
|
+
nftokenID: string;
|
|
43
|
+
owner?: string;
|
|
44
|
+
uri?: string | null;
|
|
45
|
+
} & FormattedBaseSpecification;
|
|
46
|
+
export type FormattedNFTokenCancelOfferSpecification = {
|
|
47
|
+
nftokenOffers: string[];
|
|
48
|
+
} & FormattedBaseSpecification;
|
|
49
|
+
export type FormattedNFTokenCreateOfferSpecification = {
|
|
50
|
+
nftokenID: string;
|
|
51
|
+
amount: Amount;
|
|
52
|
+
owner?: string;
|
|
53
|
+
source?: FormattedSourceAddress;
|
|
54
|
+
destination?: FormattedDestinationAddress;
|
|
55
|
+
expiration?: number;
|
|
56
|
+
flags?: NFTokenOfferFlagsKeysInterface;
|
|
57
|
+
} & FormattedBaseSpecification;
|
|
58
|
+
export type FormattedNFTokenAcceptOfferSpecification = {
|
|
59
|
+
nftokenSellOffer?: string;
|
|
60
|
+
nftokenBuyOffer?: string;
|
|
61
|
+
nftokenBrokerFee?: Amount;
|
|
62
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NFTokenOfferFlagsKeys = exports.NFTokenFlagsKeys = void 0;
|
|
4
|
+
exports.getNFTokenMintFlagsKeys = getNFTokenMintFlagsKeys;
|
|
5
|
+
exports.getNFTokenOfferCreateFlagsKeys = getNFTokenOfferCreateFlagsKeys;
|
|
6
|
+
const xrpl_1 = require("xrpl");
|
|
7
|
+
const global_1 = require("./global");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
exports.NFTokenFlagsKeys = {
|
|
10
|
+
burnable: xrpl_1.NFTokenMintFlags.tfBurnable,
|
|
11
|
+
onlyXRP: xrpl_1.NFTokenMintFlags.tfOnlyXRP,
|
|
12
|
+
trustLine: xrpl_1.NFTokenMintFlags.tfTrustLine,
|
|
13
|
+
transferable: xrpl_1.NFTokenMintFlags.tfTransferable,
|
|
14
|
+
mutable: xrpl_1.NFTokenMintFlags.tfMutable,
|
|
15
|
+
};
|
|
16
|
+
const nativeCurrencyNFTokenMintFlags = {};
|
|
17
|
+
function getNFTokenMintFlagsKeys(nativeCurrency) {
|
|
18
|
+
if (!nativeCurrency) {
|
|
19
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
20
|
+
}
|
|
21
|
+
if (!nativeCurrencyNFTokenMintFlags[nativeCurrency]) {
|
|
22
|
+
nativeCurrencyNFTokenMintFlags[nativeCurrency] = {
|
|
23
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
24
|
+
...exports.NFTokenFlagsKeys,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return nativeCurrencyNFTokenMintFlags[nativeCurrency];
|
|
28
|
+
}
|
|
29
|
+
exports.NFTokenOfferFlagsKeys = {
|
|
30
|
+
sellToken: xrpl_1.NFTokenCreateOfferFlags.tfSellNFToken,
|
|
31
|
+
};
|
|
32
|
+
const nativeCurrencyNFTokenOfferCreateFlags = {};
|
|
33
|
+
function getNFTokenOfferCreateFlagsKeys(nativeCurrency) {
|
|
34
|
+
if (!nativeCurrency) {
|
|
35
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
36
|
+
}
|
|
37
|
+
if (!nativeCurrencyNFTokenOfferCreateFlags[nativeCurrency]) {
|
|
38
|
+
nativeCurrencyNFTokenOfferCreateFlags[nativeCurrency] = {
|
|
39
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
40
|
+
...exports.NFTokenOfferFlagsKeys,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
return nativeCurrencyNFTokenOfferCreateFlags[nativeCurrency];
|
|
44
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LedgerEntry, OfferCreateFlags } from "xrpl";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
import { IssuedCurrencyAmount } from "./amounts";
|
|
4
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
5
|
+
export declare const OfferCreateFlagsKeys: {
|
|
6
|
+
passive: OfferCreateFlags;
|
|
7
|
+
immediateOrCancel: OfferCreateFlags;
|
|
8
|
+
fillOrKill: OfferCreateFlags;
|
|
9
|
+
sell: OfferCreateFlags;
|
|
10
|
+
hybrid: OfferCreateFlags;
|
|
11
|
+
};
|
|
12
|
+
export declare function getOfferCreateFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
13
|
+
export interface OfferCreateFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
14
|
+
passive: boolean;
|
|
15
|
+
immediateOrCancel: boolean;
|
|
16
|
+
fillOrKill: boolean;
|
|
17
|
+
sell: boolean;
|
|
18
|
+
hybrid: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const OfferFlagsKeys: {
|
|
21
|
+
passive: LedgerEntry.OfferFlags;
|
|
22
|
+
sell: LedgerEntry.OfferFlags;
|
|
23
|
+
hybrid: LedgerEntry.OfferFlags;
|
|
24
|
+
};
|
|
25
|
+
export interface OfferFlagsKeysInterface {
|
|
26
|
+
passive: boolean;
|
|
27
|
+
sell: boolean;
|
|
28
|
+
hybrid: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type FormattedOfferCancelSpecification = {
|
|
31
|
+
orderSequence: number;
|
|
32
|
+
} & FormattedBaseSpecification;
|
|
33
|
+
export type FormattedOfferCreateSpecification = {
|
|
34
|
+
flags: OfferCreateFlagsKeysInterface;
|
|
35
|
+
takerGets: IssuedCurrencyAmount;
|
|
36
|
+
takerPays: IssuedCurrencyAmount;
|
|
37
|
+
expirationTime?: string;
|
|
38
|
+
orderToReplace?: number;
|
|
39
|
+
domainID?: string;
|
|
40
|
+
direction: string;
|
|
41
|
+
immediateOrCancel?: boolean;
|
|
42
|
+
fillOrKill?: boolean;
|
|
43
|
+
passive?: boolean;
|
|
44
|
+
quantity: IssuedCurrencyAmount;
|
|
45
|
+
totalPrice: IssuedCurrencyAmount;
|
|
46
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferFlagsKeys = exports.OfferCreateFlagsKeys = void 0;
|
|
4
|
+
exports.getOfferCreateFlagsKeys = getOfferCreateFlagsKeys;
|
|
5
|
+
const xrpl_1 = require("xrpl");
|
|
6
|
+
const { OfferFlags } = xrpl_1.LedgerEntry;
|
|
7
|
+
const global_1 = require("./global");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
exports.OfferCreateFlagsKeys = {
|
|
10
|
+
passive: xrpl_1.OfferCreateFlags.tfPassive,
|
|
11
|
+
immediateOrCancel: xrpl_1.OfferCreateFlags.tfImmediateOrCancel,
|
|
12
|
+
fillOrKill: xrpl_1.OfferCreateFlags.tfFillOrKill,
|
|
13
|
+
sell: xrpl_1.OfferCreateFlags.tfSell,
|
|
14
|
+
hybrid: xrpl_1.OfferCreateFlags.tfHybrid,
|
|
15
|
+
};
|
|
16
|
+
const nativeCurrencyOfferCreateFlags = {};
|
|
17
|
+
function getOfferCreateFlagsKeys(nativeCurrency) {
|
|
18
|
+
if (!nativeCurrency) {
|
|
19
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
20
|
+
}
|
|
21
|
+
if (!nativeCurrencyOfferCreateFlags[nativeCurrency]) {
|
|
22
|
+
nativeCurrencyOfferCreateFlags[nativeCurrency] = {
|
|
23
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
24
|
+
...exports.OfferCreateFlagsKeys,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return nativeCurrencyOfferCreateFlags[nativeCurrency];
|
|
28
|
+
}
|
|
29
|
+
exports.OfferFlagsKeys = {
|
|
30
|
+
passive: OfferFlags.lsfPassive,
|
|
31
|
+
sell: OfferFlags.lsfSell,
|
|
32
|
+
hybrid: OfferFlags.lsfHybrid,
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
export interface FormattedOraclePriceDataSeriesInterface {
|
|
3
|
+
baseAsset: string;
|
|
4
|
+
quoteAsset: string;
|
|
5
|
+
assetPrice?: string;
|
|
6
|
+
scale?: number;
|
|
7
|
+
originalAssetPriceChange?: string;
|
|
8
|
+
}
|
|
9
|
+
export type FormattedOracleSetSpecification = {
|
|
10
|
+
oracleDocumentID: number;
|
|
11
|
+
provider?: string;
|
|
12
|
+
uri?: string | null;
|
|
13
|
+
assetClass?: string;
|
|
14
|
+
lastUpdateTime: number;
|
|
15
|
+
priceDataSeries?: FormattedOraclePriceDataSeriesInterface[];
|
|
16
|
+
} & FormattedBaseSpecification;
|
|
17
|
+
export type FormattedOracleDeleteSpecification = {
|
|
18
|
+
oracleDocumentID: number;
|
|
19
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormattedIssuedCurrencyAmount, FormattedIssuedMPTAmount } from "./amounts";
|
|
2
|
+
import { LockedBalanceChanges } from "../parse/outcome/locked_balance_changes";
|
|
3
|
+
import { BalanceChanges } from "../parse/outcome/balance_changes";
|
|
4
|
+
export type Outcome = {
|
|
5
|
+
result?: string;
|
|
6
|
+
ledgerIndex?: number;
|
|
7
|
+
ledgerVersion?: number;
|
|
8
|
+
indexInLedger?: number;
|
|
9
|
+
fee?: string;
|
|
10
|
+
balanceChanges?: BalanceChanges;
|
|
11
|
+
lockedBalanceChanges?: LockedBalanceChanges;
|
|
12
|
+
orderbookChanges?: object;
|
|
13
|
+
channelChanges?: object;
|
|
14
|
+
nftokenChanges?: object;
|
|
15
|
+
nftokenOfferChanges?: object;
|
|
16
|
+
uritokenChanges?: object;
|
|
17
|
+
uritokenSellOfferChanges?: object;
|
|
18
|
+
affectedObjects?: object;
|
|
19
|
+
ammChanges?: object;
|
|
20
|
+
deliveredAmount?: FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount;
|
|
21
|
+
timestamp?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { FormattedAmount } from "./amounts";
|
|
3
|
+
import { FormattedSourceAddress, FormattedDestinationAddress } from "./account";
|
|
4
|
+
export type FormattedPaymentChannelClaimSpecification = {
|
|
5
|
+
channel: string;
|
|
6
|
+
balance?: FormattedAmount;
|
|
7
|
+
amount?: FormattedAmount;
|
|
8
|
+
renew?: boolean;
|
|
9
|
+
close?: boolean;
|
|
10
|
+
} & FormattedBaseSpecification;
|
|
11
|
+
export type FormattedPaymentChannelCreateSpecification = {
|
|
12
|
+
source?: FormattedSourceAddress;
|
|
13
|
+
destination?: FormattedDestinationAddress;
|
|
14
|
+
amount?: FormattedAmount;
|
|
15
|
+
settleDelay: number;
|
|
16
|
+
publicKey?: string;
|
|
17
|
+
cancelAfter?: string | number;
|
|
18
|
+
} & FormattedBaseSpecification;
|
|
19
|
+
export type FormattedPaymentChannelFundSpecification = {
|
|
20
|
+
channel: string;
|
|
21
|
+
amount?: FormattedAmount;
|
|
22
|
+
expiration?: string | number;
|
|
23
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PaymentFlags } from "xrpl";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
import { FormattedSourceAddress, FormattedDestinationAddress } from "./account";
|
|
4
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
5
|
+
export declare const PaymentFlagsKeys: {
|
|
6
|
+
noRippleDirect: PaymentFlags;
|
|
7
|
+
partialPayment: PaymentFlags;
|
|
8
|
+
limitQuality: PaymentFlags;
|
|
9
|
+
};
|
|
10
|
+
export declare function getPaymentFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
11
|
+
export interface PaymentKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
12
|
+
noRippleDirect?: boolean;
|
|
13
|
+
partialPayment?: boolean;
|
|
14
|
+
limitQuality?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type FormattedPaymentSpecification = {
|
|
17
|
+
source?: FormattedSourceAddress;
|
|
18
|
+
destination?: FormattedDestinationAddress;
|
|
19
|
+
invoiceID?: string;
|
|
20
|
+
paths?: string;
|
|
21
|
+
allowPartialPayment?: boolean;
|
|
22
|
+
noDirectRipple?: boolean;
|
|
23
|
+
limitQuality?: boolean;
|
|
24
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentFlagsKeys = void 0;
|
|
4
|
+
exports.getPaymentFlagsKeys = getPaymentFlagsKeys;
|
|
5
|
+
const xrpl_1 = require("xrpl");
|
|
6
|
+
const global_1 = require("./global");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
exports.PaymentFlagsKeys = {
|
|
9
|
+
noRippleDirect: xrpl_1.PaymentFlags.tfNoRippleDirect,
|
|
10
|
+
partialPayment: xrpl_1.PaymentFlags.tfPartialPayment,
|
|
11
|
+
limitQuality: xrpl_1.PaymentFlags.tfLimitQuality,
|
|
12
|
+
};
|
|
13
|
+
const nativeCurrencyPaymentFlags = {};
|
|
14
|
+
function getPaymentFlagsKeys(nativeCurrency) {
|
|
15
|
+
if (!nativeCurrency) {
|
|
16
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
17
|
+
}
|
|
18
|
+
if (!nativeCurrencyPaymentFlags[nativeCurrency]) {
|
|
19
|
+
nativeCurrencyPaymentFlags[nativeCurrency] = {
|
|
20
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
21
|
+
...exports.PaymentFlagsKeys,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return nativeCurrencyPaymentFlags[nativeCurrency];
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface QueueTransaction {
|
|
2
|
+
auth_change: boolean;
|
|
3
|
+
fee: string;
|
|
4
|
+
fee_level: string;
|
|
5
|
+
max_spend_drops: string;
|
|
6
|
+
seq: number;
|
|
7
|
+
}
|
|
8
|
+
export interface QueueData {
|
|
9
|
+
txn_count: number;
|
|
10
|
+
auth_change_queued?: boolean;
|
|
11
|
+
lowest_sequence?: number;
|
|
12
|
+
highest_sequence?: number;
|
|
13
|
+
max_spend_drops_total?: string;
|
|
14
|
+
transactions?: QueueTransaction[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SetRemarksFlags } from "../models/transactions/SetRemarks";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
export declare const RemarksFlagsKeys: {
|
|
4
|
+
immutable: SetRemarksFlags;
|
|
5
|
+
};
|
|
6
|
+
export interface RemarksFlagsKeysInterface {
|
|
7
|
+
immutable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type Remark = {
|
|
10
|
+
Remark: {
|
|
11
|
+
RemarkName?: string;
|
|
12
|
+
RemarkValue?: string;
|
|
13
|
+
Flags?: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type FormattedRemark = {
|
|
17
|
+
name?: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
flags?: RemarksFlagsKeysInterface;
|
|
20
|
+
};
|
|
21
|
+
export type FormattedSetRemarksSpecification = {
|
|
22
|
+
ObjectID?: string;
|
|
23
|
+
Remarks?: FormattedRemark[];
|
|
24
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { Amount } from "./amounts";
|
|
3
|
+
import { URITokenFlagsKeysInterface } from "./uritokens";
|
|
4
|
+
export type FormattedRemitsSpecification = {
|
|
5
|
+
amounts?: Amount[];
|
|
6
|
+
uritokenIDs?: string[];
|
|
7
|
+
uritokenMint?: {
|
|
8
|
+
uri: string;
|
|
9
|
+
flags?: URITokenFlagsKeysInterface;
|
|
10
|
+
digest?: string;
|
|
11
|
+
};
|
|
12
|
+
blob?: string;
|
|
13
|
+
inform?: string;
|
|
14
|
+
invoiceID?: string;
|
|
15
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { FormattedTransactionSigner } from "./signers";
|
|
3
|
+
export type FormattedSettingsSpecification = {
|
|
4
|
+
defaultRipple?: boolean;
|
|
5
|
+
depositAuth?: boolean;
|
|
6
|
+
disableMasterKey?: boolean;
|
|
7
|
+
disallowIncomingXRP?: boolean;
|
|
8
|
+
disallowIncomingNFTokenOffer?: boolean;
|
|
9
|
+
disallowIncomingCheck?: boolean;
|
|
10
|
+
disallowIncomingPayChan?: boolean;
|
|
11
|
+
disallowIncomingTrustline?: boolean;
|
|
12
|
+
domain?: string;
|
|
13
|
+
emailHash?: string | null;
|
|
14
|
+
enableTransactionIDTracking?: boolean;
|
|
15
|
+
globalFreeze?: boolean;
|
|
16
|
+
messageKey?: string;
|
|
17
|
+
noFreeze?: boolean;
|
|
18
|
+
passwordSpent?: boolean;
|
|
19
|
+
regularKey?: string;
|
|
20
|
+
requireAuthorization?: boolean;
|
|
21
|
+
requireDestinationTag?: boolean;
|
|
22
|
+
signers?: FormattedTransactionSigner[] | null;
|
|
23
|
+
transferRate?: number | null;
|
|
24
|
+
tickSize?: number;
|
|
25
|
+
nftokenMinter?: string;
|
|
26
|
+
walletLocator?: string | null;
|
|
27
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SignerEntry {
|
|
2
|
+
SignerEntry: {
|
|
3
|
+
Account: string;
|
|
4
|
+
SignerWeight: number;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface FormattedSigner {
|
|
8
|
+
address: string;
|
|
9
|
+
weight: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TransactionSigner {
|
|
12
|
+
Signer: {
|
|
13
|
+
SigningPubKey: string;
|
|
14
|
+
TxnSignature: string;
|
|
15
|
+
Account?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface FormattedTransactionSigner {
|
|
19
|
+
address: string;
|
|
20
|
+
signingPubKey?: string;
|
|
21
|
+
txnSignature?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormattedSourceAddress, FormattedSignerRegularKey } from "./account";
|
|
2
|
+
import { FormattedEmitDetails } from "./emit_details";
|
|
3
|
+
import { FormattedMemo } from "./memos";
|
|
4
|
+
import { FormattedTransactionSigner } from "./signers";
|
|
5
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
6
|
+
export type FormattedBaseSpecification = {
|
|
7
|
+
source?: FormattedSourceAddress;
|
|
8
|
+
signers?: FormattedTransactionSigner[];
|
|
9
|
+
signer?: FormattedSignerRegularKey;
|
|
10
|
+
delegate?: FormattedSignerRegularKey;
|
|
11
|
+
emittedDetails?: FormattedEmitDetails;
|
|
12
|
+
flags?: TxGlobalFlagsKeysInterface;
|
|
13
|
+
memos?: FormattedMemo[];
|
|
14
|
+
};
|