@bithomp/xrpl-api 3.7.31 → 3.7.38
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 +75 -0
- package/lib/src/connection.js +645 -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 +19 -19
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchFlagsKeys = void 0;
|
|
4
|
+
exports.getBatchFlagsKeys = getBatchFlagsKeys;
|
|
5
|
+
const batch_1 = require("xrpl/dist/npm/models/transactions/batch");
|
|
6
|
+
const global_1 = require("./global");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const nativeCurrencyBatchFlags = {};
|
|
9
|
+
exports.BatchFlagsKeys = {
|
|
10
|
+
allOrNothing: batch_1.BatchFlags.tfAllOrNothing,
|
|
11
|
+
onlyOne: batch_1.BatchFlags.tfOnlyOne,
|
|
12
|
+
untilFailure: batch_1.BatchFlags.tfUntilFailure,
|
|
13
|
+
independent: batch_1.BatchFlags.tfIndependent,
|
|
14
|
+
};
|
|
15
|
+
function getBatchFlagsKeys(nativeCurrency) {
|
|
16
|
+
if (!nativeCurrency) {
|
|
17
|
+
nativeCurrency = common_1.MAINNET_NATIVE_CURRENCY;
|
|
18
|
+
}
|
|
19
|
+
if (!nativeCurrencyBatchFlags[nativeCurrency]) {
|
|
20
|
+
nativeCurrencyBatchFlags[nativeCurrency] = {
|
|
21
|
+
...(0, global_1.getTxGlobalFlagsKeys)(nativeCurrency),
|
|
22
|
+
...exports.BatchFlagsKeys,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return nativeCurrencyBatchFlags[nativeCurrency];
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { IssuedCurrencyAmount, FormattedIssuedCurrencyAmount, FormattedIssuedMPTAmount } from "./amounts";
|
|
3
|
+
import { FormattedSourceAddress, FormattedDestinationAddress } from "./account";
|
|
4
|
+
export type FormattedCheckCancelSpecification = {
|
|
5
|
+
checkID: string;
|
|
6
|
+
} & FormattedBaseSpecification;
|
|
7
|
+
export type FormattedCheckCashSpecification = {
|
|
8
|
+
checkID: string;
|
|
9
|
+
amount?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
10
|
+
deliverMin?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
11
|
+
} & FormattedBaseSpecification;
|
|
12
|
+
export type FormattedCheckCreateSpecification = {
|
|
13
|
+
source?: FormattedSourceAddress;
|
|
14
|
+
destination?: FormattedDestinationAddress;
|
|
15
|
+
sendMax?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
16
|
+
expiration?: string | number;
|
|
17
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormattedAuthorizeCredentials } from "./deposits";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
export declare enum CredentialFlags {
|
|
4
|
+
lsfAccepted = 65536
|
|
5
|
+
}
|
|
6
|
+
export declare const CredentialFlagsKeys: {
|
|
7
|
+
accepted: CredentialFlags;
|
|
8
|
+
};
|
|
9
|
+
export interface CredentialFlagsKeysInterface {
|
|
10
|
+
accepted: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type FormattedCredentialCreateSpecification = {
|
|
13
|
+
subject?: string;
|
|
14
|
+
credentialType?: string;
|
|
15
|
+
expiration?: number | string;
|
|
16
|
+
uri?: string;
|
|
17
|
+
} & FormattedBaseSpecification;
|
|
18
|
+
export type FormattedCredentialAcceptSpecification = {
|
|
19
|
+
issuer?: string;
|
|
20
|
+
credentialType?: string;
|
|
21
|
+
} & FormattedBaseSpecification;
|
|
22
|
+
export type FormattedCredentialDeleteSpecification = {
|
|
23
|
+
issuer?: string;
|
|
24
|
+
subject?: string;
|
|
25
|
+
credentialType?: string;
|
|
26
|
+
} & FormattedBaseSpecification;
|
|
27
|
+
export type FormattedPermissionedDomainSetSpecification = {
|
|
28
|
+
domainID?: string;
|
|
29
|
+
acceptedCredentials?: FormattedAuthorizeCredentials[];
|
|
30
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CredentialFlagsKeys = exports.CredentialFlags = void 0;
|
|
4
|
+
var CredentialFlags;
|
|
5
|
+
(function (CredentialFlags) {
|
|
6
|
+
CredentialFlags[CredentialFlags["lsfAccepted"] = 65536] = "lsfAccepted";
|
|
7
|
+
})(CredentialFlags || (exports.CredentialFlags = CredentialFlags = {}));
|
|
8
|
+
exports.CredentialFlagsKeys = {
|
|
9
|
+
accepted: CredentialFlags.lsfAccepted,
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CronSetFlags } from "../models/transactions/CronSet";
|
|
2
|
+
import { TxGlobalFlagsKeysInterface } from "./global";
|
|
3
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
4
|
+
export declare const CronSetFlagsKeys: {
|
|
5
|
+
cronUnset: CronSetFlags;
|
|
6
|
+
};
|
|
7
|
+
export interface CronSetFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
|
|
8
|
+
cronUnset?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type FormattedCronSetSpecification = {
|
|
11
|
+
startTime?: number;
|
|
12
|
+
repeatCount?: number;
|
|
13
|
+
delaySeconds?: number;
|
|
14
|
+
} & FormattedBaseSpecification;
|
|
15
|
+
export type FormattedCronSpecification = {
|
|
16
|
+
owner?: string;
|
|
17
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
export interface FormattedAuthorizeCredentials {
|
|
3
|
+
issuer?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
}
|
|
6
|
+
export type FormattedDepositPreauthSpecification = {
|
|
7
|
+
authorize?: string;
|
|
8
|
+
unauthorize?: string;
|
|
9
|
+
authorizeCredentials?: FormattedAuthorizeCredentials[];
|
|
10
|
+
unauthorizeCredentials?: FormattedAuthorizeCredentials[];
|
|
11
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
export type FormattedDIDSetSpecification = {
|
|
3
|
+
uri?: string;
|
|
4
|
+
data?: string;
|
|
5
|
+
didDocument?: string;
|
|
6
|
+
} & FormattedBaseSpecification;
|
|
7
|
+
export type FormattedDIDDeleteSpecification = {} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { Amount } from "./amounts";
|
|
3
|
+
export type FormattedEscrowCancelSpecification = {
|
|
4
|
+
owner: string;
|
|
5
|
+
escrowSequence: string | number;
|
|
6
|
+
} & FormattedBaseSpecification;
|
|
7
|
+
export type FormattedEscrowCreateSpecification = {
|
|
8
|
+
amount?: Amount;
|
|
9
|
+
condition?: string;
|
|
10
|
+
allowCancelAfter?: string;
|
|
11
|
+
allowExecuteAfter?: string;
|
|
12
|
+
} & FormattedBaseSpecification;
|
|
13
|
+
export type FormattedEscrowFinishSpecification = {
|
|
14
|
+
owner: string;
|
|
15
|
+
escrowSequence: string | number;
|
|
16
|
+
condition?: string;
|
|
17
|
+
fulfillment?: string;
|
|
18
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
export type FormattedFeeUpdateSpecification = {
|
|
3
|
+
baseFeeNativeCurrency: string;
|
|
4
|
+
reserveBaseNativeCurrency: string;
|
|
5
|
+
reserveIncrementNativeCurrency: string;
|
|
6
|
+
baseFeeXRP: string;
|
|
7
|
+
reserveBaseXRP: string;
|
|
8
|
+
reserveIncrementXRP: string;
|
|
9
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IssuedCurrency, FormattedIssuedCurrency } from "./amounts";
|
|
2
|
+
type FormattedGatewayBalanceObligations = {
|
|
3
|
+
currency: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export type FormattedGatewayBalances = {
|
|
7
|
+
balances?: IssuedCurrency[] | FormattedIssuedCurrency[];
|
|
8
|
+
assets?: IssuedCurrency[] | FormattedIssuedCurrency[];
|
|
9
|
+
obligations?: FormattedGatewayBalanceObligations[];
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormattedAmount } from "./amounts";
|
|
2
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
3
|
+
export type FormattedGenesisMint = {
|
|
4
|
+
amount: FormattedAmount;
|
|
5
|
+
destination: string;
|
|
6
|
+
};
|
|
7
|
+
export type FormattedGenesisMintSpecification = {
|
|
8
|
+
genesisMints?: FormattedGenesisMint[];
|
|
9
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum GlobalFlags {
|
|
2
|
+
tfFullyCanonicalSig = 2147483648,
|
|
3
|
+
tfInnerBatchTxn = 1073741824
|
|
4
|
+
}
|
|
5
|
+
export interface TxGlobalFlagsKeysInterface {
|
|
6
|
+
fullyCanonicalSig?: boolean;
|
|
7
|
+
innerBatchTxn?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TxGlobalFlagsKeys: {};
|
|
10
|
+
export declare const XRPLTxGlobalFlagsKeys: {
|
|
11
|
+
innerBatchTxn: GlobalFlags;
|
|
12
|
+
};
|
|
13
|
+
export declare const XahauTxGlobalFlagsKeys: {};
|
|
14
|
+
export declare function getTxGlobalFlagsKeys(nativeCurrency?: string): Record<string, number>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XahauTxGlobalFlagsKeys = exports.XRPLTxGlobalFlagsKeys = exports.TxGlobalFlagsKeys = exports.GlobalFlags = void 0;
|
|
4
|
+
exports.getTxGlobalFlagsKeys = getTxGlobalFlagsKeys;
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
var GlobalFlags;
|
|
7
|
+
(function (GlobalFlags) {
|
|
8
|
+
GlobalFlags[GlobalFlags["tfFullyCanonicalSig"] = 2147483648] = "tfFullyCanonicalSig";
|
|
9
|
+
GlobalFlags[GlobalFlags["tfInnerBatchTxn"] = 1073741824] = "tfInnerBatchTxn";
|
|
10
|
+
})(GlobalFlags || (exports.GlobalFlags = GlobalFlags = {}));
|
|
11
|
+
exports.TxGlobalFlagsKeys = {};
|
|
12
|
+
exports.XRPLTxGlobalFlagsKeys = {
|
|
13
|
+
...exports.TxGlobalFlagsKeys,
|
|
14
|
+
innerBatchTxn: GlobalFlags.tfInnerBatchTxn,
|
|
15
|
+
};
|
|
16
|
+
exports.XahauTxGlobalFlagsKeys = {
|
|
17
|
+
...exports.TxGlobalFlagsKeys,
|
|
18
|
+
};
|
|
19
|
+
function getTxGlobalFlagsKeys(nativeCurrency) {
|
|
20
|
+
if (nativeCurrency === common_1.XAHAU_NATIVE_CURRENCY) {
|
|
21
|
+
return exports.XahauTxGlobalFlagsKeys;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return exports.XRPLTxGlobalFlagsKeys;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface HookExecutionObjectInterface {
|
|
2
|
+
HookExecution: HookExecutionInterface;
|
|
3
|
+
}
|
|
4
|
+
export interface HookExecutionInterface {
|
|
5
|
+
HookAccount: string;
|
|
6
|
+
HookEmitCount: number;
|
|
7
|
+
HookExecutionIndex: number;
|
|
8
|
+
HookHash: string;
|
|
9
|
+
HookInstructionCount: string;
|
|
10
|
+
HookResult: number;
|
|
11
|
+
HookReturnCode: string;
|
|
12
|
+
HookReturnString: string;
|
|
13
|
+
HookStateChangeCount: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FormattedBaseSpecification } from "./specification";
|
|
2
|
+
import { FormattedSpecification } from "../parse/transaction";
|
|
3
|
+
import { Outcome } from "./outcome";
|
|
4
|
+
export type FormattedImportBlobSpecification = {
|
|
5
|
+
ledger: number;
|
|
6
|
+
validation: {
|
|
7
|
+
data: any;
|
|
8
|
+
unl: any;
|
|
9
|
+
};
|
|
10
|
+
transaction: {
|
|
11
|
+
id: string;
|
|
12
|
+
tx: any;
|
|
13
|
+
meta: any;
|
|
14
|
+
proof: any;
|
|
15
|
+
specification: FormattedSpecification;
|
|
16
|
+
outcome?: Outcome;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type FormattedImportSpecification = {
|
|
20
|
+
blob: FormattedImportBlobSpecification | string;
|
|
21
|
+
} & FormattedBaseSpecification;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from "./account";
|
|
2
|
+
export * from "./adjustments";
|
|
3
|
+
export * from "./amendments";
|
|
4
|
+
export * from "./amounts";
|
|
5
|
+
export * from "./amm";
|
|
6
|
+
export * from "./checks";
|
|
7
|
+
export * from "./deposits";
|
|
8
|
+
export * from "./did";
|
|
9
|
+
export * from "./escrows";
|
|
10
|
+
export * from "./fees";
|
|
11
|
+
export * from "./gateway_balances";
|
|
12
|
+
export * from "./ledger";
|
|
13
|
+
export * from "./ledger_data";
|
|
14
|
+
export * from "./ledger_entries";
|
|
15
|
+
export * from "./memos";
|
|
16
|
+
export * from "./offers";
|
|
17
|
+
export * from "./oracle";
|
|
18
|
+
export * from "./queue_data";
|
|
19
|
+
export * from "./settings";
|
|
20
|
+
export * from "./signers";
|
|
21
|
+
export * from "./trustlines";
|
|
22
|
+
export * from "./nftokens";
|
|
23
|
+
export * from "./uritokens";
|
|
24
|
+
export * from "./import";
|
|
25
|
+
export * from "./invoke";
|
|
26
|
+
export * from "./unl_reports";
|
|
27
|
+
export * from "./remits";
|
|
28
|
+
export * from "./hooks";
|
|
29
|
+
export * from "./credentials";
|
|
30
|
+
export * from "./delegate";
|
|
31
|
+
export * from "./remarks";
|
|
@@ -0,0 +1,47 @@
|
|
|
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("./account"), exports);
|
|
18
|
+
__exportStar(require("./adjustments"), exports);
|
|
19
|
+
__exportStar(require("./amendments"), exports);
|
|
20
|
+
__exportStar(require("./amounts"), exports);
|
|
21
|
+
__exportStar(require("./amm"), exports);
|
|
22
|
+
__exportStar(require("./checks"), exports);
|
|
23
|
+
__exportStar(require("./deposits"), exports);
|
|
24
|
+
__exportStar(require("./did"), exports);
|
|
25
|
+
__exportStar(require("./escrows"), exports);
|
|
26
|
+
__exportStar(require("./fees"), exports);
|
|
27
|
+
__exportStar(require("./gateway_balances"), exports);
|
|
28
|
+
__exportStar(require("./ledger"), exports);
|
|
29
|
+
__exportStar(require("./ledger_data"), exports);
|
|
30
|
+
__exportStar(require("./ledger_entries"), exports);
|
|
31
|
+
__exportStar(require("./memos"), exports);
|
|
32
|
+
__exportStar(require("./offers"), exports);
|
|
33
|
+
__exportStar(require("./oracle"), exports);
|
|
34
|
+
__exportStar(require("./queue_data"), exports);
|
|
35
|
+
__exportStar(require("./settings"), exports);
|
|
36
|
+
__exportStar(require("./signers"), exports);
|
|
37
|
+
__exportStar(require("./trustlines"), exports);
|
|
38
|
+
__exportStar(require("./nftokens"), exports);
|
|
39
|
+
__exportStar(require("./uritokens"), exports);
|
|
40
|
+
__exportStar(require("./import"), exports);
|
|
41
|
+
__exportStar(require("./invoke"), exports);
|
|
42
|
+
__exportStar(require("./unl_reports"), exports);
|
|
43
|
+
__exportStar(require("./remits"), exports);
|
|
44
|
+
__exportStar(require("./hooks"), exports);
|
|
45
|
+
__exportStar(require("./credentials"), exports);
|
|
46
|
+
__exportStar(require("./delegate"), exports);
|
|
47
|
+
__exportStar(require("./remarks"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
ledgerIndex: number;
|
|
25
|
+
ledgerVersion: number;
|
|
26
|
+
parentLedgerHash: string;
|
|
27
|
+
parentCloseTime: string;
|
|
28
|
+
totalDrops: string;
|
|
29
|
+
transactionHash: string;
|
|
30
|
+
transactions?: object[];
|
|
31
|
+
transactionHashes?: string[];
|
|
32
|
+
rawState?: string;
|
|
33
|
+
stateHashes?: string[];
|
|
34
|
+
};
|
|
35
|
+
export type LedgerClosedEvent = {
|
|
36
|
+
type: "ledgerClosed";
|
|
37
|
+
fee_base: number;
|
|
38
|
+
fee_ref: number;
|
|
39
|
+
ledger_hash: string;
|
|
40
|
+
ledger_index: number;
|
|
41
|
+
ledger_time: number;
|
|
42
|
+
reserve_base: number;
|
|
43
|
+
reserve_inc: number;
|
|
44
|
+
txn_count: number;
|
|
45
|
+
validated_ledgers: string;
|
|
46
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { SignerEntry } from "./signers";
|
|
2
|
+
import { Amount } from "./amounts";
|
|
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
|
+
}
|
|
21
|
+
export interface AmendmentsMajority {
|
|
22
|
+
Majority: {
|
|
23
|
+
Amendment?: string;
|
|
24
|
+
CloseTime?: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface AmendmentsLedgerEntry {
|
|
28
|
+
LedgerEntryType: "Amendments";
|
|
29
|
+
Amendments?: string[];
|
|
30
|
+
Majorities?: AmendmentsMajority[];
|
|
31
|
+
Flags: 0;
|
|
32
|
+
}
|
|
33
|
+
export interface CheckLedgerEntry {
|
|
34
|
+
LedgerEntryType: "Check";
|
|
35
|
+
Account: string;
|
|
36
|
+
Destination: any;
|
|
37
|
+
string: any;
|
|
38
|
+
Flags: 0;
|
|
39
|
+
OwnerNode: string;
|
|
40
|
+
PreviousTxnID: string;
|
|
41
|
+
PreviousTxnLgrSeq: number;
|
|
42
|
+
SendMax: string | object;
|
|
43
|
+
Sequence: number;
|
|
44
|
+
DestinationNode: string;
|
|
45
|
+
DestinationTag: number;
|
|
46
|
+
Expiration: number;
|
|
47
|
+
InvoiceID: string;
|
|
48
|
+
SourceTag: number;
|
|
49
|
+
}
|
|
50
|
+
export interface DepositPreauthLedgerEntry {
|
|
51
|
+
LedgerEntryType: "DepositPreauth";
|
|
52
|
+
Account: string;
|
|
53
|
+
Authorize: string;
|
|
54
|
+
OwnerNode: string;
|
|
55
|
+
PreviousTxnID: string;
|
|
56
|
+
PreviousTxnLgrSeq: number;
|
|
57
|
+
}
|
|
58
|
+
export interface DirectoryNodeLedgerEntry {
|
|
59
|
+
LedgerEntryType: "DirectoryNode";
|
|
60
|
+
Flags: number;
|
|
61
|
+
RootIndex: string;
|
|
62
|
+
Indexes: string[];
|
|
63
|
+
IndexNext?: number;
|
|
64
|
+
IndexPrevious?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface OfferDirectoryNodeLedgerEntry extends DirectoryNodeLedgerEntry {
|
|
67
|
+
TakerPaysCurrency: string;
|
|
68
|
+
TakerPaysIssuer: string;
|
|
69
|
+
TakerGetsCurrency: string;
|
|
70
|
+
TakerGetsIssuer: string;
|
|
71
|
+
ExchangeRate?: number;
|
|
72
|
+
}
|
|
73
|
+
export interface OwnerDirectoryNodeLedgerEntry extends DirectoryNodeLedgerEntry {
|
|
74
|
+
Owner: string;
|
|
75
|
+
}
|
|
76
|
+
export interface EscrowLedgerEntry {
|
|
77
|
+
LedgerEntryType: "Escrow";
|
|
78
|
+
Account: string;
|
|
79
|
+
Destination: string;
|
|
80
|
+
Amount: string;
|
|
81
|
+
Condition?: string;
|
|
82
|
+
CancelAfter?: number;
|
|
83
|
+
FinishAfter?: number;
|
|
84
|
+
Flags: number;
|
|
85
|
+
SourceTag?: number;
|
|
86
|
+
DestinationTag?: number;
|
|
87
|
+
OwnerNode: string;
|
|
88
|
+
DestinationNode?: string;
|
|
89
|
+
PreviousTxnID: string;
|
|
90
|
+
PreviousTxnLgrSeq: number;
|
|
91
|
+
}
|
|
92
|
+
export interface FeeSettingsLedgerEntry {
|
|
93
|
+
LedgerEntryType: "FeeSettings";
|
|
94
|
+
BaseFee: string;
|
|
95
|
+
ReferenceFeeUnits: number;
|
|
96
|
+
ReserveBase: number;
|
|
97
|
+
ReserveIncrement: number;
|
|
98
|
+
Flags: number;
|
|
99
|
+
}
|
|
100
|
+
export interface LedgerHashesLedgerEntry {
|
|
101
|
+
LedgerEntryType: "LedgerHashes";
|
|
102
|
+
Hashes: string[];
|
|
103
|
+
Flags: number;
|
|
104
|
+
FirstLedgerSequence?: number;
|
|
105
|
+
LastLedgerSequence?: number;
|
|
106
|
+
}
|
|
107
|
+
export interface OfferLedgerEntry {
|
|
108
|
+
LedgerEntryType: "Offer";
|
|
109
|
+
Flags: number;
|
|
110
|
+
Account: string;
|
|
111
|
+
Sequence: number;
|
|
112
|
+
TakerPays: Amount;
|
|
113
|
+
TakerGets: Amount;
|
|
114
|
+
BookDirectory: string;
|
|
115
|
+
BookNode: string;
|
|
116
|
+
OwnerNode: string;
|
|
117
|
+
PreviousTxnID: string;
|
|
118
|
+
PreviousTxnLgrSeq: number;
|
|
119
|
+
Expiration?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface PayChannelLedgerEntry {
|
|
122
|
+
LedgerEntryType: "PayChannel";
|
|
123
|
+
Sequence: number;
|
|
124
|
+
Account: string;
|
|
125
|
+
Amount: string;
|
|
126
|
+
Balance: string;
|
|
127
|
+
PublicKey: string;
|
|
128
|
+
Destination: string;
|
|
129
|
+
SettleDelay: number;
|
|
130
|
+
Expiration?: number;
|
|
131
|
+
CancelAfter?: number;
|
|
132
|
+
SourceTag?: number;
|
|
133
|
+
DestinationTag?: number;
|
|
134
|
+
OwnerNode: string;
|
|
135
|
+
PreviousTxnID: string;
|
|
136
|
+
PreviousTxnLgrSeq: number;
|
|
137
|
+
index: string;
|
|
138
|
+
}
|
|
139
|
+
export interface RippleStateLedgerEntry {
|
|
140
|
+
LedgerEntryType: "RippleState";
|
|
141
|
+
Flags: number;
|
|
142
|
+
Balance: Amount;
|
|
143
|
+
LowLimit: Amount;
|
|
144
|
+
HighLimit: Amount;
|
|
145
|
+
PreviousTxnID: string;
|
|
146
|
+
PreviousTxnLgrSeq: number;
|
|
147
|
+
LowNode?: string;
|
|
148
|
+
HighNode?: string;
|
|
149
|
+
LowQualityIn?: number;
|
|
150
|
+
LowQualityOut?: number;
|
|
151
|
+
HighQualityIn?: number;
|
|
152
|
+
HighQualityOut?: number;
|
|
153
|
+
}
|
|
154
|
+
export interface SignerListLedgerEntry {
|
|
155
|
+
LedgerEntryType: "SignerList";
|
|
156
|
+
OwnerNode: string;
|
|
157
|
+
SignerQuorum: number;
|
|
158
|
+
SignerEntries: SignerEntry[];
|
|
159
|
+
SignerListID: number;
|
|
160
|
+
PreviousTxnID: string;
|
|
161
|
+
PreviousTxnLgrSeq: number;
|
|
162
|
+
}
|
|
163
|
+
export type LedgerEntry = AccountRootLedgerEntry | AmendmentsLedgerEntry | CheckLedgerEntry | DepositPreauthLedgerEntry | DirectoryNodeLedgerEntry | OfferDirectoryNodeLedgerEntry | OwnerDirectoryNodeLedgerEntry | EscrowLedgerEntry | FeeSettingsLedgerEntry | LedgerHashesLedgerEntry | OfferLedgerEntry | PayChannelLedgerEntry | RippleStateLedgerEntry | SignerListLedgerEntry;
|