riplle-lib 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +15 -0
- package/README.md +149 -0
- package/a4lpwwp5.cjs +1 -0
- package/build/ripple-latest-min.js +2 -0
- package/build/ripple-latest.js +5181 -0
- package/dist/npm/api.d.ts +272 -0
- package/dist/npm/api.d.ts.map +1 -0
- package/dist/npm/api.js +276 -0
- package/dist/npm/api.js.map +1 -0
- package/dist/npm/broadcast.d.ts +10 -0
- package/dist/npm/broadcast.d.ts.map +1 -0
- package/dist/npm/broadcast.js +67 -0
- package/dist/npm/broadcast.js.map +1 -0
- package/dist/npm/common/backoff.d.ts +14 -0
- package/dist/npm/common/backoff.d.ts.map +1 -0
- package/dist/npm/common/backoff.js +26 -0
- package/dist/npm/common/backoff.js.map +1 -0
- package/dist/npm/common/browser-hacks.d.ts +4 -0
- package/dist/npm/common/browser-hacks.d.ts.map +1 -0
- package/dist/npm/common/browser-hacks.js +21 -0
- package/dist/npm/common/browser-hacks.js.map +1 -0
- package/dist/npm/common/connection.d.ts +50 -0
- package/dist/npm/common/connection.d.ts.map +1 -0
- package/dist/npm/common/connection.js +467 -0
- package/dist/npm/common/connection.js.map +1 -0
- package/dist/npm/common/constants.d.ts +62 -0
- package/dist/npm/common/constants.d.ts.map +1 -0
- package/dist/npm/common/constants.js +54 -0
- package/dist/npm/common/constants.js.map +1 -0
- package/dist/npm/common/errors.d.ts +41 -0
- package/dist/npm/common/errors.d.ts.map +1 -0
- package/dist/npm/common/errors.js +101 -0
- package/dist/npm/common/errors.js.map +1 -0
- package/dist/npm/common/hashes/hash-prefix.d.ts +12 -0
- package/dist/npm/common/hashes/hash-prefix.d.ts.map +1 -0
- package/dist/npm/common/hashes/hash-prefix.js +15 -0
- package/dist/npm/common/hashes/hash-prefix.js.map +1 -0
- package/dist/npm/common/hashes/index.d.ts +13 -0
- package/dist/npm/common/hashes/index.d.ts.map +1 -0
- package/dist/npm/common/hashes/index.js +129 -0
- package/dist/npm/common/hashes/index.js.map +1 -0
- package/dist/npm/common/hashes/ledgerspaces.d.ts +21 -0
- package/dist/npm/common/hashes/ledgerspaces.d.ts.map +1 -0
- package/dist/npm/common/hashes/ledgerspaces.js +22 -0
- package/dist/npm/common/hashes/ledgerspaces.js.map +1 -0
- package/dist/npm/common/hashes/sha512Half.d.ts +3 -0
- package/dist/npm/common/hashes/sha512Half.d.ts.map +1 -0
- package/dist/npm/common/hashes/sha512Half.js +12 -0
- package/dist/npm/common/hashes/sha512Half.js.map +1 -0
- package/dist/npm/common/hashes/shamap.d.ts +38 -0
- package/dist/npm/common/hashes/shamap.d.ts.map +1 -0
- package/dist/npm/common/hashes/shamap.js +121 -0
- package/dist/npm/common/hashes/shamap.js.map +1 -0
- package/dist/npm/common/index.d.ts +10 -0
- package/dist/npm/common/index.d.ts.map +1 -0
- package/dist/npm/common/index.js +57 -0
- package/dist/npm/common/index.js.map +1 -0
- package/dist/npm/common/rangeset.d.ts +13 -0
- package/dist/npm/common/rangeset.d.ts.map +1 -0
- package/dist/npm/common/rangeset.js +72 -0
- package/dist/npm/common/rangeset.js.map +1 -0
- package/dist/npm/common/schema-validator.d.ts +5 -0
- package/dist/npm/common/schema-validator.d.ts.map +1 -0
- package/dist/npm/common/schema-validator.js +190 -0
- package/dist/npm/common/schema-validator.js.map +1 -0
- package/dist/npm/common/schemas/input/api-options.json +69 -0
- package/dist/npm/common/schemas/input/combine.json +19 -0
- package/dist/npm/common/schemas/input/compute-ledger-hash.json +13 -0
- package/dist/npm/common/schemas/input/generate-address.json +37 -0
- package/dist/npm/common/schemas/input/generate-x-address.json +37 -0
- package/dist/npm/common/schemas/input/get-account-info.json +24 -0
- package/dist/npm/common/schemas/input/get-account-objects.json +56 -0
- package/dist/npm/common/schemas/input/get-balance-sheet.json +30 -0
- package/dist/npm/common/schemas/input/get-balances.json +37 -0
- package/dist/npm/common/schemas/input/get-fee.json +13 -0
- package/dist/npm/common/schemas/input/get-ledger.json +35 -0
- package/dist/npm/common/schemas/input/get-orderbook.json +33 -0
- package/dist/npm/common/schemas/input/get-orders.json +29 -0
- package/dist/npm/common/schemas/input/get-paths.json +69 -0
- package/dist/npm/common/schemas/input/get-payment-channel.json +14 -0
- package/dist/npm/common/schemas/input/get-settings.json +24 -0
- package/dist/npm/common/schemas/input/get-transaction.json +28 -0
- package/dist/npm/common/schemas/input/get-transactions.json +71 -0
- package/dist/npm/common/schemas/input/get-trustlines.json +37 -0
- package/dist/npm/common/schemas/input/prepare-check-cancel.json +18 -0
- package/dist/npm/common/schemas/input/prepare-check-cash.json +18 -0
- package/dist/npm/common/schemas/input/prepare-check-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-cancellation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-creation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-execution.json +18 -0
- package/dist/npm/common/schemas/input/prepare-order-cancellation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-order.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-claim.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-fund.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment.json +18 -0
- package/dist/npm/common/schemas/input/prepare-settings.json +18 -0
- package/dist/npm/common/schemas/input/prepare-ticket-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-trustline.json +18 -0
- package/dist/npm/common/schemas/input/sign-payment-channel-claim.json +21 -0
- package/dist/npm/common/schemas/input/sign.json +55 -0
- package/dist/npm/common/schemas/input/submit.json +17 -0
- package/dist/npm/common/schemas/input/verify-payment-channel-claim.json +25 -0
- package/dist/npm/common/schemas/objects/address.json +12 -0
- package/dist/npm/common/schemas/objects/adjustment.json +12 -0
- package/dist/npm/common/schemas/objects/amount.json +10 -0
- package/dist/npm/common/schemas/objects/amountbase.json +44 -0
- package/dist/npm/common/schemas/objects/balance.json +45 -0
- package/dist/npm/common/schemas/objects/blob.json +8 -0
- package/dist/npm/common/schemas/objects/classic-address.json +9 -0
- package/dist/npm/common/schemas/objects/currency.json +8 -0
- package/dist/npm/common/schemas/objects/destination-address-tag.json +15 -0
- package/dist/npm/common/schemas/objects/destination-adjustment.json +9 -0
- package/dist/npm/common/schemas/objects/destination-exact-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/hash128.json +7 -0
- package/dist/npm/common/schemas/objects/hash256.json +7 -0
- package/dist/npm/common/schemas/objects/instructions.json +59 -0
- package/dist/npm/common/schemas/objects/issue.json +9 -0
- package/dist/npm/common/schemas/objects/lax-amount.json +14 -0
- package/dist/npm/common/schemas/objects/lax-lax-amount.json +14 -0
- package/dist/npm/common/schemas/objects/ledger-version.json +15 -0
- package/dist/npm/common/schemas/objects/max-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/memo.json +25 -0
- package/dist/npm/common/schemas/objects/memos.json +10 -0
- package/dist/npm/common/schemas/objects/min-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/orderbook.json +11 -0
- package/dist/npm/common/schemas/objects/private-key.json +7 -0
- package/dist/npm/common/schemas/objects/public-key.json +7 -0
- package/dist/npm/common/schemas/objects/quality.json +8 -0
- package/dist/npm/common/schemas/objects/sequence.json +8 -0
- package/dist/npm/common/schemas/objects/settings-plus-memos.json +120 -0
- package/dist/npm/common/schemas/objects/signature.json +7 -0
- package/dist/npm/common/schemas/objects/signed-value.json +8 -0
- package/dist/npm/common/schemas/objects/source-adjustment.json +9 -0
- package/dist/npm/common/schemas/objects/source-exact-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/tag.json +7 -0
- package/dist/npm/common/schemas/objects/ticket-sequence.json +8 -0
- package/dist/npm/common/schemas/objects/transaction-hash.json +8 -0
- package/dist/npm/common/schemas/objects/transaction-type.json +25 -0
- package/dist/npm/common/schemas/objects/tx-json.json +12 -0
- package/dist/npm/common/schemas/objects/uint32.json +8 -0
- package/dist/npm/common/schemas/objects/value.json +8 -0
- package/dist/npm/common/schemas/objects/x-address.json +9 -0
- package/dist/npm/common/schemas/output/generate-address.json +26 -0
- package/dist/npm/common/schemas/output/generate-x-address.json +18 -0
- package/dist/npm/common/schemas/output/get-account-info.json +40 -0
- package/dist/npm/common/schemas/output/get-account-objects.json +48 -0
- package/dist/npm/common/schemas/output/get-balance-sheet.json +33 -0
- package/dist/npm/common/schemas/output/get-balances.json +6 -0
- package/dist/npm/common/schemas/output/get-ledger.json +90 -0
- package/dist/npm/common/schemas/output/get-orderbook.json +17 -0
- package/dist/npm/common/schemas/output/get-orders.json +36 -0
- package/dist/npm/common/schemas/output/get-paths.json +24 -0
- package/dist/npm/common/schemas/output/get-payment-channel.json +67 -0
- package/dist/npm/common/schemas/output/get-server-info.json +117 -0
- package/dist/npm/common/schemas/output/get-settings.json +8 -0
- package/dist/npm/common/schemas/output/get-transaction.json +237 -0
- package/dist/npm/common/schemas/output/get-transactions.json +8 -0
- package/dist/npm/common/schemas/output/get-trustlines.json +49 -0
- package/dist/npm/common/schemas/output/ledger-event.json +46 -0
- package/dist/npm/common/schemas/output/order-change.json +40 -0
- package/dist/npm/common/schemas/output/orderbook-orders.json +58 -0
- package/dist/npm/common/schemas/output/outcome.json +57 -0
- package/dist/npm/common/schemas/output/prepare.json +47 -0
- package/dist/npm/common/schemas/output/sign-payment-channel-claim.json +7 -0
- package/dist/npm/common/schemas/output/sign.json +18 -0
- package/dist/npm/common/schemas/output/submit.json +37 -0
- package/dist/npm/common/schemas/output/verify-payment-channel-claim.json +6 -0
- package/dist/npm/common/schemas/specifications/account-delete.json +30 -0
- package/dist/npm/common/schemas/specifications/check-cancel.json +15 -0
- package/dist/npm/common/schemas/specifications/check-cash.json +27 -0
- package/dist/npm/common/schemas/specifications/check-create.json +32 -0
- package/dist/npm/common/schemas/specifications/deposit-preauth.json +22 -0
- package/dist/npm/common/schemas/specifications/escrow-cancellation.json +19 -0
- package/dist/npm/common/schemas/specifications/escrow-creation.json +42 -0
- package/dist/npm/common/schemas/specifications/escrow-execution.json +29 -0
- package/dist/npm/common/schemas/specifications/get-payment.json +39 -0
- package/dist/npm/common/schemas/specifications/order-cancellation.json +15 -0
- package/dist/npm/common/schemas/specifications/order.json +49 -0
- package/dist/npm/common/schemas/specifications/payment-channel-claim.json +39 -0
- package/dist/npm/common/schemas/specifications/payment-channel-create.json +40 -0
- package/dist/npm/common/schemas/specifications/payment-channel-fund.json +24 -0
- package/dist/npm/common/schemas/specifications/payment.json +39 -0
- package/dist/npm/common/schemas/specifications/settings.json +20 -0
- package/dist/npm/common/schemas/specifications/trustline.json +43 -0
- package/dist/npm/common/serverinfo.d.ts +34 -0
- package/dist/npm/common/serverinfo.d.ts.map +1 -0
- package/dist/npm/common/serverinfo.js +63 -0
- package/dist/npm/common/serverinfo.js.map +1 -0
- package/dist/npm/common/txflags.d.ts +51 -0
- package/dist/npm/common/txflags.d.ts.map +1 -0
- package/dist/npm/common/txflags.js +55 -0
- package/dist/npm/common/txflags.js.map +1 -0
- package/dist/npm/common/types/commands/account_info.d.ts +18 -0
- package/dist/npm/common/types/commands/account_info.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_info.js +3 -0
- package/dist/npm/common/types/commands/account_info.js.map +1 -0
- package/dist/npm/common/types/commands/account_lines.d.ts +18 -0
- package/dist/npm/common/types/commands/account_lines.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_lines.js +3 -0
- package/dist/npm/common/types/commands/account_lines.js.map +1 -0
- package/dist/npm/common/types/commands/account_objects.d.ts +27 -0
- package/dist/npm/common/types/commands/account_objects.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_objects.js +3 -0
- package/dist/npm/common/types/commands/account_objects.js.map +1 -0
- package/dist/npm/common/types/commands/account_offers.d.ts +25 -0
- package/dist/npm/common/types/commands/account_offers.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_offers.js +3 -0
- package/dist/npm/common/types/commands/account_offers.js.map +1 -0
- package/dist/npm/common/types/commands/book_offers.d.ts +24 -0
- package/dist/npm/common/types/commands/book_offers.d.ts.map +1 -0
- package/dist/npm/common/types/commands/book_offers.js +3 -0
- package/dist/npm/common/types/commands/book_offers.js.map +1 -0
- package/dist/npm/common/types/commands/gateway_balances.d.ts +24 -0
- package/dist/npm/common/types/commands/gateway_balances.d.ts.map +1 -0
- package/dist/npm/common/types/commands/gateway_balances.js +3 -0
- package/dist/npm/common/types/commands/gateway_balances.js.map +1 -0
- package/dist/npm/common/types/commands/index.d.ts +11 -0
- package/dist/npm/common/types/commands/index.d.ts.map +1 -0
- package/dist/npm/common/types/commands/index.js +23 -0
- package/dist/npm/common/types/commands/index.js.map +1 -0
- package/dist/npm/common/types/commands/ledger.d.ts +19 -0
- package/dist/npm/common/types/commands/ledger.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger.js +3 -0
- package/dist/npm/common/types/commands/ledger.js.map +1 -0
- package/dist/npm/common/types/commands/ledger_data.d.ts +11 -0
- package/dist/npm/common/types/commands/ledger_data.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger_data.js +3 -0
- package/dist/npm/common/types/commands/ledger_data.js.map +1 -0
- package/dist/npm/common/types/commands/ledger_entry.d.ts +30 -0
- package/dist/npm/common/types/commands/ledger_entry.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger_entry.js +3 -0
- package/dist/npm/common/types/commands/ledger_entry.js.map +1 -0
- package/dist/npm/common/types/commands/server_info.d.ts +50 -0
- package/dist/npm/common/types/commands/server_info.d.ts.map +1 -0
- package/dist/npm/common/types/commands/server_info.js +3 -0
- package/dist/npm/common/types/commands/server_info.js.map +1 -0
- package/dist/npm/common/types/objects/adjustments.d.ts +17 -0
- package/dist/npm/common/types/objects/adjustments.d.ts.map +1 -0
- package/dist/npm/common/types/objects/adjustments.js +3 -0
- package/dist/npm/common/types/objects/adjustments.js.map +1 -0
- package/dist/npm/common/types/objects/amounts.d.ts +14 -0
- package/dist/npm/common/types/objects/amounts.d.ts.map +1 -0
- package/dist/npm/common/types/objects/amounts.js +3 -0
- package/dist/npm/common/types/objects/amounts.js.map +1 -0
- package/dist/npm/common/types/objects/index.d.ts +13 -0
- package/dist/npm/common/types/objects/index.d.ts.map +1 -0
- package/dist/npm/common/types/objects/index.js +25 -0
- package/dist/npm/common/types/objects/index.js.map +1 -0
- package/dist/npm/common/types/objects/ledger.d.ts +30 -0
- package/dist/npm/common/types/objects/ledger.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger.js +3 -0
- package/dist/npm/common/types/objects/ledger.js.map +1 -0
- package/dist/npm/common/types/objects/ledger_data.d.ts +11 -0
- package/dist/npm/common/types/objects/ledger_data.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger_data.js +3 -0
- package/dist/npm/common/types/objects/ledger_data.js.map +1 -0
- package/dist/npm/common/types/objects/ledger_entries.d.ts +159 -0
- package/dist/npm/common/types/objects/ledger_entries.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger_entries.js +3 -0
- package/dist/npm/common/types/objects/ledger_entries.js.map +1 -0
- package/dist/npm/common/types/objects/memos.d.ts +6 -0
- package/dist/npm/common/types/objects/memos.d.ts.map +1 -0
- package/dist/npm/common/types/objects/memos.js +3 -0
- package/dist/npm/common/types/objects/memos.js.map +1 -0
- package/dist/npm/common/types/objects/orders.d.ts +14 -0
- package/dist/npm/common/types/objects/orders.d.ts.map +1 -0
- package/dist/npm/common/types/objects/orders.js +3 -0
- package/dist/npm/common/types/objects/orders.js.map +1 -0
- package/dist/npm/common/types/objects/queue_data.d.ts +16 -0
- package/dist/npm/common/types/objects/queue_data.d.ts.map +1 -0
- package/dist/npm/common/types/objects/queue_data.js +3 -0
- package/dist/npm/common/types/objects/queue_data.js.map +1 -0
- package/dist/npm/common/types/objects/settings.d.ts +31 -0
- package/dist/npm/common/types/objects/settings.d.ts.map +1 -0
- package/dist/npm/common/types/objects/settings.js +3 -0
- package/dist/npm/common/types/objects/settings.js.map +1 -0
- package/dist/npm/common/types/objects/signers.d.ts +7 -0
- package/dist/npm/common/types/objects/signers.d.ts.map +1 -0
- package/dist/npm/common/types/objects/signers.js +3 -0
- package/dist/npm/common/types/objects/signers.js.map +1 -0
- package/dist/npm/common/types/objects/transactions.d.ts +22 -0
- package/dist/npm/common/types/objects/transactions.d.ts.map +1 -0
- package/dist/npm/common/types/objects/transactions.js +3 -0
- package/dist/npm/common/types/objects/transactions.js.map +1 -0
- package/dist/npm/common/types/objects/trustlines.d.ts +40 -0
- package/dist/npm/common/types/objects/trustlines.d.ts.map +1 -0
- package/dist/npm/common/types/objects/trustlines.js +3 -0
- package/dist/npm/common/types/objects/trustlines.js.map +1 -0
- package/dist/npm/common/utils.d.ts +12 -0
- package/dist/npm/common/utils.d.ts.map +1 -0
- package/dist/npm/common/utils.js +157 -0
- package/dist/npm/common/utils.js.map +1 -0
- package/dist/npm/common/validate.d.ts +38 -0
- package/dist/npm/common/validate.d.ts.map +1 -0
- package/dist/npm/common/validate.js +79 -0
- package/dist/npm/common/validate.js.map +1 -0
- package/dist/npm/common/wswrapper.d.ts +15 -0
- package/dist/npm/common/wswrapper.d.ts.map +1 -0
- package/dist/npm/common/wswrapper.js +38 -0
- package/dist/npm/common/wswrapper.js.map +1 -0
- package/dist/npm/index.d.ts +6 -0
- package/dist/npm/index.d.ts.map +1 -0
- package/dist/npm/index.js +19 -0
- package/dist/npm/index.js.map +1 -0
- package/dist/npm/ledger/accountinfo.d.ts +14 -0
- package/dist/npm/ledger/accountinfo.d.ts.map +1 -0
- package/dist/npm/ledger/accountinfo.js +36 -0
- package/dist/npm/ledger/accountinfo.js.map +1 -0
- package/dist/npm/ledger/accountobjects.d.ts +4 -0
- package/dist/npm/ledger/accountobjects.d.ts.map +1 -0
- package/dist/npm/ledger/accountobjects.js +27 -0
- package/dist/npm/ledger/accountobjects.js.map +1 -0
- package/dist/npm/ledger/balance-sheet.d.ts +17 -0
- package/dist/npm/ledger/balance-sheet.d.ts.map +1 -0
- package/dist/npm/ledger/balance-sheet.js +52 -0
- package/dist/npm/ledger/balance-sheet.js.map +1 -0
- package/dist/npm/ledger/balances.d.ts +11 -0
- package/dist/npm/ledger/balances.d.ts.map +1 -0
- package/dist/npm/ledger/balances.js +61 -0
- package/dist/npm/ledger/balances.js.map +1 -0
- package/dist/npm/ledger/ledger.d.ts +12 -0
- package/dist/npm/ledger/ledger.d.ts.map +1 -0
- package/dist/npm/ledger/ledger.js +28 -0
- package/dist/npm/ledger/ledger.js.map +1 -0
- package/dist/npm/ledger/orderbook.d.ts +22 -0
- package/dist/npm/ledger/orderbook.d.ts.map +1 -0
- package/dist/npm/ledger/orderbook.js +100 -0
- package/dist/npm/ledger/orderbook.js.map +1 -0
- package/dist/npm/ledger/orders.d.ts +8 -0
- package/dist/npm/ledger/orders.d.ts.map +1 -0
- package/dist/npm/ledger/orders.js +56 -0
- package/dist/npm/ledger/orders.js.map +1 -0
- package/dist/npm/ledger/parse/account-delete.d.ts +8 -0
- package/dist/npm/ledger/parse/account-delete.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-delete.js +36 -0
- package/dist/npm/ledger/parse/account-delete.js.map +1 -0
- package/dist/npm/ledger/parse/account-order.d.ts +11 -0
- package/dist/npm/ledger/parse/account-order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-order.js +40 -0
- package/dist/npm/ledger/parse/account-order.js.map +1 -0
- package/dist/npm/ledger/parse/account-trustline.d.ts +4 -0
- package/dist/npm/ledger/parse/account-trustline.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-trustline.js +28 -0
- package/dist/npm/ledger/parse/account-trustline.js.map +1 -0
- package/dist/npm/ledger/parse/amendment.d.ts +5 -0
- package/dist/npm/ledger/parse/amendment.d.ts.map +1 -0
- package/dist/npm/ledger/parse/amendment.js +9 -0
- package/dist/npm/ledger/parse/amendment.js.map +1 -0
- package/dist/npm/ledger/parse/amount.d.ts +4 -0
- package/dist/npm/ledger/parse/amount.d.ts.map +1 -0
- package/dist/npm/ledger/parse/amount.js +37 -0
- package/dist/npm/ledger/parse/amount.js.map +1 -0
- package/dist/npm/ledger/parse/cancellation.d.ts +3 -0
- package/dist/npm/ledger/parse/cancellation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/cancellation.js +32 -0
- package/dist/npm/ledger/parse/cancellation.js.map +1 -0
- package/dist/npm/ledger/parse/check-cancel.d.ts +6 -0
- package/dist/npm/ledger/parse/check-cancel.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-cancel.js +33 -0
- package/dist/npm/ledger/parse/check-cancel.js.map +1 -0
- package/dist/npm/ledger/parse/check-cash.d.ts +9 -0
- package/dist/npm/ledger/parse/check-cash.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-cash.js +39 -0
- package/dist/npm/ledger/parse/check-cash.js.map +1 -0
- package/dist/npm/ledger/parse/check-create.d.ts +11 -0
- package/dist/npm/ledger/parse/check-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-create.js +42 -0
- package/dist/npm/ledger/parse/check-create.js.map +1 -0
- package/dist/npm/ledger/parse/deposit-preauth.d.ts +7 -0
- package/dist/npm/ledger/parse/deposit-preauth.d.ts.map +1 -0
- package/dist/npm/ledger/parse/deposit-preauth.js +34 -0
- package/dist/npm/ledger/parse/deposit-preauth.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-cancellation.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-cancellation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-cancellation.js +34 -0
- package/dist/npm/ledger/parse/escrow-cancellation.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-creation.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-creation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-creation.js +43 -0
- package/dist/npm/ledger/parse/escrow-creation.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-execution.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-execution.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-execution.js +36 -0
- package/dist/npm/ledger/parse/escrow-execution.js.map +1 -0
- package/dist/npm/ledger/parse/fee-update.d.ts +9 -0
- package/dist/npm/ledger/parse/fee-update.d.ts.map +1 -0
- package/dist/npm/ledger/parse/fee-update.js +20 -0
- package/dist/npm/ledger/parse/fee-update.js.map +1 -0
- package/dist/npm/ledger/parse/fields.d.ts +3 -0
- package/dist/npm/ledger/parse/fields.d.ts.map +1 -0
- package/dist/npm/ledger/parse/fields.js +47 -0
- package/dist/npm/ledger/parse/fields.js.map +1 -0
- package/dist/npm/ledger/parse/flags.d.ts +16 -0
- package/dist/npm/ledger/parse/flags.d.ts.map +1 -0
- package/dist/npm/ledger/parse/flags.js +20 -0
- package/dist/npm/ledger/parse/flags.js.map +1 -0
- package/dist/npm/ledger/parse/ledger.d.ts +19 -0
- package/dist/npm/ledger/parse/ledger.d.ts.map +1 -0
- package/dist/npm/ledger/parse/ledger.js +76 -0
- package/dist/npm/ledger/parse/ledger.js.map +1 -0
- package/dist/npm/ledger/parse/order.d.ts +4 -0
- package/dist/npm/ledger/parse/order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/order.js +50 -0
- package/dist/npm/ledger/parse/order.js.map +1 -0
- package/dist/npm/ledger/parse/orderbook-order.d.ts +17 -0
- package/dist/npm/ledger/parse/orderbook-order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/orderbook-order.js +63 -0
- package/dist/npm/ledger/parse/orderbook-order.js.map +1 -0
- package/dist/npm/ledger/parse/pathfind.d.ts +4 -0
- package/dist/npm/ledger/parse/pathfind.d.ts.map +1 -0
- package/dist/npm/ledger/parse/pathfind.js +63 -0
- package/dist/npm/ledger/parse/pathfind.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-claim.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-claim.js +44 -0
- package/dist/npm/ledger/parse/payment-channel-claim.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-create.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-create.js +43 -0
- package/dist/npm/ledger/parse/payment-channel-create.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-fund.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-fund.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-fund.js +39 -0
- package/dist/npm/ledger/parse/payment-channel-fund.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel.d.ts +17 -0
- package/dist/npm/ledger/parse/payment-channel.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel.js +24 -0
- package/dist/npm/ledger/parse/payment-channel.js.map +1 -0
- package/dist/npm/ledger/parse/payment.d.ts +3 -0
- package/dist/npm/ledger/parse/payment.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment.js +64 -0
- package/dist/npm/ledger/parse/payment.js.map +1 -0
- package/dist/npm/ledger/parse/settings.d.ts +3 -0
- package/dist/npm/ledger/parse/settings.d.ts.map +1 -0
- package/dist/npm/ledger/parse/settings.js +75 -0
- package/dist/npm/ledger/parse/settings.js.map +1 -0
- package/dist/npm/ledger/parse/ticket-create.d.ts +3 -0
- package/dist/npm/ledger/parse/ticket-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/ticket-create.js +33 -0
- package/dist/npm/ledger/parse/ticket-create.js.map +1 -0
- package/dist/npm/ledger/parse/transaction.d.ts +3 -0
- package/dist/npm/ledger/parse/transaction.d.ts.map +1 -0
- package/dist/npm/ledger/parse/transaction.js +98 -0
- package/dist/npm/ledger/parse/transaction.js.map +1 -0
- package/dist/npm/ledger/parse/trustline.d.ts +3 -0
- package/dist/npm/ledger/parse/trustline.d.ts.map +1 -0
- package/dist/npm/ledger/parse/trustline.js +50 -0
- package/dist/npm/ledger/parse/trustline.js.map +1 -0
- package/dist/npm/ledger/parse/utils.d.ts +10 -0
- package/dist/npm/ledger/parse/utils.d.ts.map +1 -0
- package/dist/npm/ledger/parse/utils.js +136 -0
- package/dist/npm/ledger/parse/utils.js.map +1 -0
- package/dist/npm/ledger/pathfind-types.d.ts +60 -0
- package/dist/npm/ledger/pathfind-types.d.ts.map +1 -0
- package/dist/npm/ledger/pathfind-types.js +3 -0
- package/dist/npm/ledger/pathfind-types.js.map +1 -0
- package/dist/npm/ledger/pathfind.d.ts +5 -0
- package/dist/npm/ledger/pathfind.d.ts.map +1 -0
- package/dist/npm/ledger/pathfind.js +141 -0
- package/dist/npm/ledger/pathfind.js.map +1 -0
- package/dist/npm/ledger/payment-channel.d.ts +5 -0
- package/dist/npm/ledger/payment-channel.d.ts.map +1 -0
- package/dist/npm/ledger/payment-channel.js +34 -0
- package/dist/npm/ledger/payment-channel.js.map +1 -0
- package/dist/npm/ledger/settings.d.ts +11 -0
- package/dist/npm/ledger/settings.d.ts.map +1 -0
- package/dist/npm/ledger/settings.js +53 -0
- package/dist/npm/ledger/settings.js.map +1 -0
- package/dist/npm/ledger/transaction.d.ts +10 -0
- package/dist/npm/ledger/transaction.d.ts.map +1 -0
- package/dist/npm/ledger/transaction.js +126 -0
- package/dist/npm/ledger/transaction.js.map +1 -0
- package/dist/npm/ledger/transactions.d.ts +20 -0
- package/dist/npm/ledger/transactions.d.ts.map +1 -0
- package/dist/npm/ledger/transactions.js +156 -0
- package/dist/npm/ledger/transactions.js.map +1 -0
- package/dist/npm/ledger/trustlines.d.ts +11 -0
- package/dist/npm/ledger/trustlines.d.ts.map +1 -0
- package/dist/npm/ledger/trustlines.js +58 -0
- package/dist/npm/ledger/trustlines.js.map +1 -0
- package/dist/npm/ledger/utils.d.ts +33 -0
- package/dist/npm/ledger/utils.d.ts.map +1 -0
- package/dist/npm/ledger/utils.js +107 -0
- package/dist/npm/ledger/utils.js.map +1 -0
- package/dist/npm/offline/derive.d.ts +8 -0
- package/dist/npm/offline/derive.d.ts.map +1 -0
- package/dist/npm/offline/derive.js +13 -0
- package/dist/npm/offline/derive.js.map +1 -0
- package/dist/npm/offline/generate-address.d.ts +15 -0
- package/dist/npm/offline/generate-address.d.ts.map +1 -0
- package/dist/npm/offline/generate-address.js +37 -0
- package/dist/npm/offline/generate-address.js.map +1 -0
- package/dist/npm/offline/ledgerhash.d.ts +6 -0
- package/dist/npm/offline/ledgerhash.d.ts.map +1 -0
- package/dist/npm/offline/ledgerhash.js +104 -0
- package/dist/npm/offline/ledgerhash.js.map +1 -0
- package/dist/npm/offline/sign-payment-channel-claim.d.ts +3 -0
- package/dist/npm/offline/sign-payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/offline/sign-payment-channel-claim.js +38 -0
- package/dist/npm/offline/sign-payment-channel-claim.js.map +1 -0
- package/dist/npm/offline/utils.d.ts +10 -0
- package/dist/npm/offline/utils.d.ts.map +1 -0
- package/dist/npm/offline/utils.js +43 -0
- package/dist/npm/offline/utils.js.map +1 -0
- package/dist/npm/offline/verify-payment-channel-claim.d.ts +3 -0
- package/dist/npm/offline/verify-payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/offline/verify-payment-channel-claim.js +18 -0
- package/dist/npm/offline/verify-payment-channel-claim.js.map +1 -0
- package/dist/npm/server/server.d.ts +8 -0
- package/dist/npm/server/server.d.ts.map +1 -0
- package/dist/npm/server/server.js +66 -0
- package/dist/npm/server/server.js.map +1 -0
- package/dist/npm/transaction/check-cancel.d.ts +8 -0
- package/dist/npm/transaction/check-cancel.d.ts.map +1 -0
- package/dist/npm/transaction/check-cancel.js +24 -0
- package/dist/npm/transaction/check-cancel.js.map +1 -0
- package/dist/npm/transaction/check-cash.d.ts +11 -0
- package/dist/npm/transaction/check-cash.d.ts.map +1 -0
- package/dist/npm/transaction/check-cash.js +55 -0
- package/dist/npm/transaction/check-cash.js.map +1 -0
- package/dist/npm/transaction/check-create.d.ts +13 -0
- package/dist/npm/transaction/check-create.d.ts.map +1 -0
- package/dist/npm/transaction/check-create.js +54 -0
- package/dist/npm/transaction/check-create.js.map +1 -0
- package/dist/npm/transaction/combine.d.ts +3 -0
- package/dist/npm/transaction/combine.d.ts.map +1 -0
- package/dist/npm/transaction/combine.js +62 -0
- package/dist/npm/transaction/combine.js.map +1 -0
- package/dist/npm/transaction/escrow-cancellation.d.ts +11 -0
- package/dist/npm/transaction/escrow-cancellation.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-cancellation.js +46 -0
- package/dist/npm/transaction/escrow-cancellation.js.map +1 -0
- package/dist/npm/transaction/escrow-creation.d.ts +16 -0
- package/dist/npm/transaction/escrow-creation.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-creation.js +69 -0
- package/dist/npm/transaction/escrow-creation.js.map +1 -0
- package/dist/npm/transaction/escrow-execution.d.ts +13 -0
- package/dist/npm/transaction/escrow-execution.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-execution.js +58 -0
- package/dist/npm/transaction/escrow-execution.js.map +1 -0
- package/dist/npm/transaction/order.d.ts +6 -0
- package/dist/npm/transaction/order.d.ts.map +1 -0
- package/dist/npm/transaction/order.js +69 -0
- package/dist/npm/transaction/order.js.map +1 -0
- package/dist/npm/transaction/ordercancellation.d.ts +5 -0
- package/dist/npm/transaction/ordercancellation.d.ts.map +1 -0
- package/dist/npm/transaction/ordercancellation.js +50 -0
- package/dist/npm/transaction/ordercancellation.js.map +1 -0
- package/dist/npm/transaction/payment-channel-claim.d.ts +14 -0
- package/dist/npm/transaction/payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-claim.js +76 -0
- package/dist/npm/transaction/payment-channel-claim.js.map +1 -0
- package/dist/npm/transaction/payment-channel-create.d.ts +14 -0
- package/dist/npm/transaction/payment-channel-create.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-create.js +59 -0
- package/dist/npm/transaction/payment-channel-create.js.map +1 -0
- package/dist/npm/transaction/payment-channel-fund.d.ts +10 -0
- package/dist/npm/transaction/payment-channel-fund.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-fund.js +51 -0
- package/dist/npm/transaction/payment-channel-fund.js.map +1 -0
- package/dist/npm/transaction/payment.d.ts +16 -0
- package/dist/npm/transaction/payment.d.ts.map +1 -0
- package/dist/npm/transaction/payment.js +163 -0
- package/dist/npm/transaction/payment.js.map +1 -0
- package/dist/npm/transaction/settings.d.ts +6 -0
- package/dist/npm/transaction/settings.d.ts.map +1 -0
- package/dist/npm/transaction/settings.js +130 -0
- package/dist/npm/transaction/settings.js.map +1 -0
- package/dist/npm/transaction/sign.d.ts +8 -0
- package/dist/npm/transaction/sign.d.ts.map +1 -0
- package/dist/npm/transaction/sign.js +173 -0
- package/dist/npm/transaction/sign.js.map +1 -0
- package/dist/npm/transaction/submit.d.ts +8 -0
- package/dist/npm/transaction/submit.d.ts.map +1 -0
- package/dist/npm/transaction/submit.js +59 -0
- package/dist/npm/transaction/submit.js.map +1 -0
- package/dist/npm/transaction/ticket.d.ts +9 -0
- package/dist/npm/transaction/ticket.d.ts.map +1 -0
- package/dist/npm/transaction/ticket.js +46 -0
- package/dist/npm/transaction/ticket.js.map +1 -0
- package/dist/npm/transaction/trustline.d.ts +6 -0
- package/dist/npm/transaction/trustline.d.ts.map +1 -0
- package/dist/npm/transaction/trustline.js +82 -0
- package/dist/npm/transaction/trustline.js.map +1 -0
- package/dist/npm/transaction/types.d.ts +138 -0
- package/dist/npm/transaction/types.d.ts.map +1 -0
- package/dist/npm/transaction/types.js +3 -0
- package/dist/npm/transaction/types.js.map +1 -0
- package/dist/npm/transaction/utils.d.ts +22 -0
- package/dist/npm/transaction/utils.d.ts.map +1 -0
- package/dist/npm/transaction/utils.js +285 -0
- package/dist/npm/transaction/utils.js.map +1 -0
- package/dist/npm/tsconfig.tsbuildinfo +4230 -0
- package/dist/npm/wallet/wallet-generation.d.ts +15 -0
- package/dist/npm/wallet/wallet-generation.d.ts.map +1 -0
- package/dist/npm/wallet/wallet-generation.js +150 -0
- package/dist/npm/wallet/wallet-generation.js.map +1 -0
- package/package.json +84 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "order",
|
4
|
+
"link": "order",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"direction": {
|
8
|
+
"type": "string",
|
9
|
+
"enum": ["buy", "sell"],
|
10
|
+
"description": "Equal to \"buy\" for buy orders and \"sell\" for sell orders."
|
11
|
+
},
|
12
|
+
"quantity": {
|
13
|
+
"$ref": "amount",
|
14
|
+
"description": "The amount of currency to buy or sell."
|
15
|
+
},
|
16
|
+
"totalPrice": {
|
17
|
+
"$ref": "amount",
|
18
|
+
"description": "The total price to be paid for the `quantity` to be bought or sold."
|
19
|
+
},
|
20
|
+
"immediateOrCancel": {
|
21
|
+
"type": "boolean",
|
22
|
+
"description": "Treat the offer as an [Immediate or Cancel order](http://en.wikipedia.org/wiki/Immediate_or_cancel). If enabled, do not create an object in the ledger that can be matched later: instead, only execute as much as can be fulfilled immediately. This cannot be used with `fillOrKill`."
|
23
|
+
},
|
24
|
+
"fillOrKill": {
|
25
|
+
"type": "boolean",
|
26
|
+
"description": "Treat the offer as a [Fill or Kill order](http://en.wikipedia.org/wiki/Fill_or_kill). Only attempt to match existing offers in the ledger, and only do so if the entire quantity can be exchanged. This cannot be used with `immediateOrCancel`."
|
27
|
+
},
|
28
|
+
"passive": {
|
29
|
+
"description": "If enabled, the offer does not consume offers that exactly match it, and instead becomes an Offer node in the ledger. It still consumes offers that cross it.",
|
30
|
+
"type": "boolean"
|
31
|
+
},
|
32
|
+
"expirationTime": {
|
33
|
+
"type": "string",
|
34
|
+
"format": "date-time",
|
35
|
+
"description": "Time after which the offer is no longer active, as an [ISO 8601 date-time](https://en.wikipedia.org/wiki/ISO_8601)."
|
36
|
+
},
|
37
|
+
"orderToReplace": {
|
38
|
+
"$ref": "sequence",
|
39
|
+
"description": "The [account sequence number](#account-sequence-number) of an order to cancel before the new order is created, effectively replacing the old order."
|
40
|
+
},
|
41
|
+
"memos": {"$ref": "memos"}
|
42
|
+
},
|
43
|
+
"required": ["direction", "quantity", "totalPrice"],
|
44
|
+
"additionalProperties": false,
|
45
|
+
"not": {
|
46
|
+
"description": "immediateOrCancel and fillOrKill are mutually exclusive",
|
47
|
+
"required": ["immediateOrCancel", "fillOrKill"]
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "paymentChannelClaim",
|
4
|
+
"link": "payment-channel-claim",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"channel": {
|
8
|
+
"$ref": "hash256",
|
9
|
+
"description": "256-bit hexadecimal channel identifier."
|
10
|
+
},
|
11
|
+
"amount": {
|
12
|
+
"$ref": "value",
|
13
|
+
"description": "Amount of XRP authorized by this signature."
|
14
|
+
},
|
15
|
+
"balance": {
|
16
|
+
"$ref": "value",
|
17
|
+
"description": "Total XRP balance delivered by this channel after claim is processed."
|
18
|
+
},
|
19
|
+
"signature": {
|
20
|
+
"$ref": "signature",
|
21
|
+
"description": "Signed claim authorizing withdrawal of XRP from the channel. (Required except from the channel's source address.)"
|
22
|
+
},
|
23
|
+
"publicKey": {
|
24
|
+
"$ref": "publicKey",
|
25
|
+
"description": "Public key of the channel. (For verifying the signature.)"
|
26
|
+
},
|
27
|
+
"renew": {
|
28
|
+
"type": "boolean",
|
29
|
+
"description": "Clear the channel's expiration time."
|
30
|
+
},
|
31
|
+
"close": {
|
32
|
+
"type": "boolean",
|
33
|
+
"description": "Request to close the channel. If the channel has no XRP remaining or the destination address requests it, closes the channel immediately (returning unclaimed XRP to the source address). Otherwise, sets the channel to expire after settleDelay seconds have passed."
|
34
|
+
},
|
35
|
+
"memos": {"$ref": "memos"}
|
36
|
+
},
|
37
|
+
"required": ["channel"],
|
38
|
+
"additionalProperties": false
|
39
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "paymentChannelCreate",
|
4
|
+
"link": "payment-channel-create",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"amount": {
|
8
|
+
"$ref": "value",
|
9
|
+
"description": "Amount of XRP for sender to set aside in this channel."
|
10
|
+
},
|
11
|
+
"destination": {
|
12
|
+
"$ref": "address",
|
13
|
+
"description": "Address to receive XRP claims against this channel."
|
14
|
+
},
|
15
|
+
"settleDelay": {
|
16
|
+
"type": "number",
|
17
|
+
"description": "Amount of seconds the source address must wait before closing the channel if it has unclaimed XRP."
|
18
|
+
},
|
19
|
+
"publicKey": {
|
20
|
+
"$ref": "publicKey",
|
21
|
+
"description": "Public key of the key pair the source may use to sign claims against this channel."
|
22
|
+
},
|
23
|
+
"cancelAfter": {
|
24
|
+
"type": "string",
|
25
|
+
"format": "date-time",
|
26
|
+
"description": "Time when this channel expires. This expiration cannot be changed after creating the channel."
|
27
|
+
},
|
28
|
+
"sourceTag": {
|
29
|
+
"$ref": "tag",
|
30
|
+
"description": "Source tag."
|
31
|
+
},
|
32
|
+
"destinationTag": {
|
33
|
+
"$ref": "tag",
|
34
|
+
"description": "Destination tag."
|
35
|
+
},
|
36
|
+
"memos": {"$ref": "memos"}
|
37
|
+
},
|
38
|
+
"required": ["amount", "destination", "settleDelay", "publicKey"],
|
39
|
+
"additionalProperties": false
|
40
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "paymentChannelFund",
|
4
|
+
"link": "payment-channel-fund",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"amount": {
|
8
|
+
"$ref": "value",
|
9
|
+
"description": "Amount of XRP to fund the channel with."
|
10
|
+
},
|
11
|
+
"channel": {
|
12
|
+
"$ref": "hash256",
|
13
|
+
"description": "256-bit hexadecimal channel identifier."
|
14
|
+
},
|
15
|
+
"expiration": {
|
16
|
+
"type": "string",
|
17
|
+
"format": "date-time",
|
18
|
+
"description": "New expiration for this channel. (This does not change the cancelAfter expiration, if the channel has one.) Cannot move the expiration sooner than settleDelay seconds from time of the request."
|
19
|
+
},
|
20
|
+
"memos": {"$ref": "memos"}
|
21
|
+
},
|
22
|
+
"required": ["amount", "channel"],
|
23
|
+
"additionalProperties": false
|
24
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "payment",
|
4
|
+
"link": "payment",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"source": {
|
8
|
+
"$ref": "sourceAdjustment",
|
9
|
+
"description": "The source of the funds to be sent."
|
10
|
+
},
|
11
|
+
"destination": {
|
12
|
+
"$ref": "destinationAdjustment",
|
13
|
+
"description": "The destination of the funds to be sent."
|
14
|
+
},
|
15
|
+
"paths": {
|
16
|
+
"type": "string",
|
17
|
+
"description": "The paths of trustlines and orders to use in executing the payment."
|
18
|
+
},
|
19
|
+
"memos": {"$ref": "memos"},
|
20
|
+
"invoiceID": {
|
21
|
+
"description": "A 256-bit hash that can be used to identify a particular payment.",
|
22
|
+
"$ref": "hash256"
|
23
|
+
},
|
24
|
+
"allowPartialPayment": {
|
25
|
+
"description": "If true, this payment can deliver less than the full amount.",
|
26
|
+
"type": "boolean"
|
27
|
+
},
|
28
|
+
"noDirectRipple": {
|
29
|
+
"description": "If true and paths are specified, the sender would like the XRP Ledger to disregard any direct paths from the source account to the destination account. This may be used to take advantage of an arbitrage opportunity or by gateways wishing to issue balances from a hot wallet to a user who has mistakenly set a trustline directly to the hot wallet.",
|
30
|
+
"type": "boolean"
|
31
|
+
},
|
32
|
+
"limitQuality": {
|
33
|
+
"description": "Only take paths where all the conversions have an input:output ratio that is equal or better than the ratio of destination.amount:source.maxAmount.",
|
34
|
+
"type": "boolean"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"required": ["source", "destination"],
|
38
|
+
"additionalProperties": false
|
39
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "settings",
|
4
|
+
"link": "settings",
|
5
|
+
"$ref": "settingsPlusMemos",
|
6
|
+
"oneOf": [
|
7
|
+
{
|
8
|
+
"required": ["memos"],
|
9
|
+
"minProperties": 2,
|
10
|
+
"maxProperties": 2
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"not": {
|
14
|
+
"required": ["memos"]
|
15
|
+
},
|
16
|
+
"minProperties": 1,
|
17
|
+
"maxProperties": 1
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "trustline",
|
4
|
+
"link": "trustline",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"currency": {
|
8
|
+
"$ref": "currency",
|
9
|
+
"description": "The currency this trustline applies to."
|
10
|
+
},
|
11
|
+
"counterparty": {
|
12
|
+
"$ref": "address",
|
13
|
+
"description": "The address of the account this trustline extends trust to."
|
14
|
+
},
|
15
|
+
"limit": {
|
16
|
+
"$ref": "value",
|
17
|
+
"description": "The maximum amount that the owner of the trustline can be owed through the trustline."
|
18
|
+
},
|
19
|
+
"qualityIn": {
|
20
|
+
"$ref": "quality",
|
21
|
+
"description": "Incoming balances on this trustline are valued at this ratio."
|
22
|
+
},
|
23
|
+
"qualityOut": {
|
24
|
+
"$ref": "quality",
|
25
|
+
"description": "Outgoing balances on this trustline are valued at this ratio."
|
26
|
+
},
|
27
|
+
"ripplingDisabled": {
|
28
|
+
"type": "boolean",
|
29
|
+
"description": "If true, payments cannot ripple through this trustline."
|
30
|
+
},
|
31
|
+
"authorized": {
|
32
|
+
"type": "boolean",
|
33
|
+
"description": "If true, authorize the counterparty to hold issuances from this account."
|
34
|
+
},
|
35
|
+
"frozen": {
|
36
|
+
"type": "boolean",
|
37
|
+
"description": "If true, the trustline is frozen, which means that funds can only be sent to the owner."
|
38
|
+
},
|
39
|
+
"memos": {"$ref": "memos"}
|
40
|
+
},
|
41
|
+
"required": ["currency", "counterparty", "limit"],
|
42
|
+
"additionalProperties": false
|
43
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { RippleAPI } from '..';
|
2
|
+
export declare type GetServerInfoResponse = {
|
3
|
+
buildVersion: string;
|
4
|
+
completeLedgers: string;
|
5
|
+
hostID: string;
|
6
|
+
ioLatencyMs: number;
|
7
|
+
load?: {
|
8
|
+
jobTypes: Array<object>;
|
9
|
+
threads: number;
|
10
|
+
};
|
11
|
+
lastClose: {
|
12
|
+
convergeTimeS: number;
|
13
|
+
proposers: number;
|
14
|
+
};
|
15
|
+
loadFactor: number;
|
16
|
+
peers: number;
|
17
|
+
pubkeyNode: string;
|
18
|
+
pubkeyValidator?: string;
|
19
|
+
serverState: string;
|
20
|
+
validatedLedger: {
|
21
|
+
age: number;
|
22
|
+
baseFeeXRP: string;
|
23
|
+
hash: string;
|
24
|
+
reserveBaseXRP: string;
|
25
|
+
reserveIncrementXRP: string;
|
26
|
+
ledgerVersion: number;
|
27
|
+
};
|
28
|
+
validationQuorum: number;
|
29
|
+
networkLedger?: string;
|
30
|
+
};
|
31
|
+
declare function getServerInfo(this: RippleAPI): Promise<GetServerInfoResponse>;
|
32
|
+
declare function getFee(this: RippleAPI, cushion?: number): Promise<string>;
|
33
|
+
export { getServerInfo, getFee };
|
34
|
+
//# sourceMappingURL=serverinfo.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serverinfo.d.ts","sourceRoot":"","sources":["../../../src/common/serverinfo.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,IAAI,CAAA;AAE5B,oBAAY,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE;QACL,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QACvB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,SAAS,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE;QACf,GAAG,EAAE,MAAM,CAAA;QACX,UAAU,EAAE,MAAM,CAAA;QAClB,IAAI,EAAE,MAAM,CAAA;QACZ,cAAc,EAAE,MAAM,CAAA;QACtB,mBAAmB,EAAE,MAAM,CAAA;QAC3B,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAUD,iBAAS,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiBtE;AAID,iBAAe,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBxE;AAED,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,CAAA"}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.getFee = exports.getServerInfo = void 0;
|
16
|
+
const utils_1 = require("./utils");
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
+
function renameKeys(object, mapping) {
|
19
|
+
Object.entries(mapping).forEach(entry => {
|
20
|
+
const [from, to] = entry;
|
21
|
+
object[to] = object[from];
|
22
|
+
delete object[from];
|
23
|
+
});
|
24
|
+
}
|
25
|
+
function getServerInfo() {
|
26
|
+
return this.request('server_info').then((response) => {
|
27
|
+
const info = utils_1.convertKeysFromSnakeCaseToCamelCase(response.info);
|
28
|
+
renameKeys(info, { hostid: 'hostID' });
|
29
|
+
if (info.validatedLedger) {
|
30
|
+
renameKeys(info.validatedLedger, {
|
31
|
+
baseFeeXrp: 'baseFeeXRP',
|
32
|
+
reserveBaseXrp: 'reserveBaseXRP',
|
33
|
+
reserveIncXrp: 'reserveIncrementXRP',
|
34
|
+
seq: 'ledgerVersion'
|
35
|
+
});
|
36
|
+
info.validatedLedger.baseFeeXRP = info.validatedLedger.baseFeeXRP.toString();
|
37
|
+
info.validatedLedger.reserveBaseXRP = info.validatedLedger.reserveBaseXRP.toString();
|
38
|
+
info.validatedLedger.reserveIncrementXRP = info.validatedLedger.reserveIncrementXRP.toString();
|
39
|
+
}
|
40
|
+
return info;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
exports.getServerInfo = getServerInfo;
|
44
|
+
function getFee(cushion) {
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
46
|
+
if (cushion == null) {
|
47
|
+
cushion = this._feeCushion;
|
48
|
+
}
|
49
|
+
if (cushion == null) {
|
50
|
+
cushion = 1.2;
|
51
|
+
}
|
52
|
+
const serverInfo = (yield this.request('server_info')).info;
|
53
|
+
const baseFeeXrp = new bignumber_js_1.default(serverInfo.validated_ledger.base_fee_xrp);
|
54
|
+
if (serverInfo.load_factor == null) {
|
55
|
+
serverInfo.load_factor = 1;
|
56
|
+
}
|
57
|
+
let fee = baseFeeXrp.times(serverInfo.load_factor).times(cushion);
|
58
|
+
fee = bignumber_js_1.default.min(fee, this._maxFeeXRP);
|
59
|
+
return new bignumber_js_1.default(fee.toFixed(6)).toString(10);
|
60
|
+
});
|
61
|
+
}
|
62
|
+
exports.getFee = getFee;
|
63
|
+
//# sourceMappingURL=serverinfo.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serverinfo.js","sourceRoot":"","sources":["../../../src/common/serverinfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mCAA2D;AAC3D,gEAAoC;AAiCpC,SAAS,UAAU,CAAC,MAA2B,EAAE,OAA4B;IAC3E,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACtC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC;QACzB,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;QACzB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,aAAa;IACpB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;QACnD,MAAM,IAAI,GAAG,2CAAmC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QAC/D,UAAU,CAAC,IAAI,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,CAAC,CAAA;QACpC,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,UAAU,CAAC,IAAI,CAAC,eAAe,EAAE;gBAC/B,UAAU,EAAE,YAAY;gBACxB,cAAc,EAAE,gBAAgB;gBAChC,aAAa,EAAE,qBAAqB;gBACpC,GAAG,EAAE,eAAe;aACrB,CAAC,CAAA;YACF,IAAI,CAAC,eAAe,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA;YAC5E,IAAI,CAAC,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAA;YACpF,IAAI,CAAC,eAAe,CAAC,mBAAmB,GAAG,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAA;SAC/F;QACD,OAAO,IAAI,CAAA;IACb,CAAC,CAAC,CAAA;AACJ,CAAC;AA0BO,sCAAa;AAtBrB,SAAe,MAAM,CAAkB,OAAgB;;QACrD,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,OAAO,GAAG,IAAI,CAAC,WAAW,CAAA;SAC3B;QACD,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,OAAO,GAAG,GAAG,CAAA;SACd;QAED,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAA;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAA;QAC1E,IAAI,UAAU,CAAC,WAAW,IAAI,IAAI,EAAE;YAElC,UAAU,CAAC,WAAW,GAAG,CAAC,CAAA;SAC3B;QACD,IAAI,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAGjE,GAAG,GAAG,sBAAS,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;QAEzC,OAAO,IAAI,sBAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IACnD,CAAC;CAAA;AAEsB,wBAAM"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
declare const txFlags: {
|
2
|
+
Universal: {
|
3
|
+
FullyCanonicalSig: number;
|
4
|
+
};
|
5
|
+
AccountSet: {
|
6
|
+
RequireDestTag: number;
|
7
|
+
OptionalDestTag: number;
|
8
|
+
RequireAuth: number;
|
9
|
+
OptionalAuth: number;
|
10
|
+
DisallowXRP: number;
|
11
|
+
AllowXRP: number;
|
12
|
+
};
|
13
|
+
TrustSet: {
|
14
|
+
SetAuth: number;
|
15
|
+
NoRipple: number;
|
16
|
+
SetNoRipple: number;
|
17
|
+
ClearNoRipple: number;
|
18
|
+
SetFreeze: number;
|
19
|
+
ClearFreeze: number;
|
20
|
+
};
|
21
|
+
OfferCreate: {
|
22
|
+
Passive: number;
|
23
|
+
ImmediateOrCancel: number;
|
24
|
+
FillOrKill: number;
|
25
|
+
Sell: number;
|
26
|
+
};
|
27
|
+
Payment: {
|
28
|
+
NoRippleDirect: number;
|
29
|
+
PartialPayment: number;
|
30
|
+
LimitQuality: number;
|
31
|
+
};
|
32
|
+
PaymentChannelClaim: {
|
33
|
+
Renew: number;
|
34
|
+
Close: number;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
declare const txFlagIndices: {
|
38
|
+
AccountSet: {
|
39
|
+
asfRequireDest: number;
|
40
|
+
asfRequireAuth: number;
|
41
|
+
asfDisallowXRP: number;
|
42
|
+
asfDisableMaster: number;
|
43
|
+
asfAccountTxnID: number;
|
44
|
+
asfNoFreeze: number;
|
45
|
+
asfGlobalFreeze: number;
|
46
|
+
asfDefaultRipple: number;
|
47
|
+
asfDepositAuth: number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
export { txFlags, txFlagIndices };
|
51
|
+
//# sourceMappingURL=txflags.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"txflags.d.ts","sourceRoot":"","sources":["../../../src/common/txflags.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCZ,CAAA;AAKD,QAAA,MAAM,aAAa;;;;;;;;;;;;CAYlB,CAAA;AAED,OAAO,EAAC,OAAO,EAAE,aAAa,EAAC,CAAA"}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.txFlagIndices = exports.txFlags = void 0;
|
4
|
+
const txFlags = {
|
5
|
+
Universal: {
|
6
|
+
FullyCanonicalSig: 0x80000000
|
7
|
+
},
|
8
|
+
AccountSet: {
|
9
|
+
RequireDestTag: 0x00010000,
|
10
|
+
OptionalDestTag: 0x00020000,
|
11
|
+
RequireAuth: 0x00040000,
|
12
|
+
OptionalAuth: 0x00080000,
|
13
|
+
DisallowXRP: 0x00100000,
|
14
|
+
AllowXRP: 0x00200000
|
15
|
+
},
|
16
|
+
TrustSet: {
|
17
|
+
SetAuth: 0x00010000,
|
18
|
+
NoRipple: 0x00020000,
|
19
|
+
SetNoRipple: 0x00020000,
|
20
|
+
ClearNoRipple: 0x00040000,
|
21
|
+
SetFreeze: 0x00100000,
|
22
|
+
ClearFreeze: 0x00200000
|
23
|
+
},
|
24
|
+
OfferCreate: {
|
25
|
+
Passive: 0x00010000,
|
26
|
+
ImmediateOrCancel: 0x00020000,
|
27
|
+
FillOrKill: 0x00040000,
|
28
|
+
Sell: 0x00080000
|
29
|
+
},
|
30
|
+
Payment: {
|
31
|
+
NoRippleDirect: 0x00010000,
|
32
|
+
PartialPayment: 0x00020000,
|
33
|
+
LimitQuality: 0x00040000
|
34
|
+
},
|
35
|
+
PaymentChannelClaim: {
|
36
|
+
Renew: 0x00010000,
|
37
|
+
Close: 0x00020000
|
38
|
+
}
|
39
|
+
};
|
40
|
+
exports.txFlags = txFlags;
|
41
|
+
const txFlagIndices = {
|
42
|
+
AccountSet: {
|
43
|
+
asfRequireDest: 1,
|
44
|
+
asfRequireAuth: 2,
|
45
|
+
asfDisallowXRP: 3,
|
46
|
+
asfDisableMaster: 4,
|
47
|
+
asfAccountTxnID: 5,
|
48
|
+
asfNoFreeze: 6,
|
49
|
+
asfGlobalFreeze: 7,
|
50
|
+
asfDefaultRipple: 8,
|
51
|
+
asfDepositAuth: 9
|
52
|
+
}
|
53
|
+
};
|
54
|
+
exports.txFlagIndices = txFlagIndices;
|
55
|
+
//# sourceMappingURL=txflags.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"txflags.js","sourceRoot":"","sources":["../../../src/common/txflags.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;IAEd,SAAS,EAAE;QACT,iBAAiB,EAAE,UAAU;KAC9B;IAED,UAAU,EAAE;QACV,cAAc,EAAE,UAAU;QAC1B,eAAe,EAAE,UAAU;QAC3B,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,UAAU;QACxB,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,UAAU;KACrB;IAED,QAAQ,EAAE;QACR,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,UAAU;QACvB,aAAa,EAAE,UAAU;QACzB,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,UAAU;KACxB;IAED,WAAW,EAAE;QACX,OAAO,EAAE,UAAU;QACnB,iBAAiB,EAAE,UAAU;QAC7B,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,UAAU;KACjB;IAED,OAAO,EAAE;QACP,cAAc,EAAE,UAAU;QAC1B,cAAc,EAAE,UAAU;QAC1B,YAAY,EAAE,UAAU;KACzB;IAED,mBAAmB,EAAE;QACnB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KAClB;CACF,CAAA;AAmBO,0BAAO;AAdf,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE;QACV,cAAc,EAAE,CAAC;QACjB,cAAc,EAAE,CAAC;QACjB,cAAc,EAAE,CAAC;QACjB,gBAAgB,EAAE,CAAC;QACnB,eAAe,EAAE,CAAC;QAClB,WAAW,EAAE,CAAC;QACd,eAAe,EAAE,CAAC;QAClB,gBAAgB,EAAE,CAAC;QACnB,cAAc,EAAE,CAAC;KAClB;CACF,CAAA;AAEgB,sCAAa"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { AccountRootLedgerEntry, SignerListLedgerEntry, QueueData } from '../objects';
|
2
|
+
export interface AccountInfoRequest {
|
3
|
+
account: string;
|
4
|
+
strict?: boolean;
|
5
|
+
queue?: boolean;
|
6
|
+
ledger_hash?: string;
|
7
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
8
|
+
signer_lists?: boolean;
|
9
|
+
}
|
10
|
+
export interface AccountInfoResponse {
|
11
|
+
account_data: AccountRootLedgerEntry;
|
12
|
+
signer_lists?: SignerListLedgerEntry[];
|
13
|
+
ledger_current_index?: number;
|
14
|
+
ledger_index?: number;
|
15
|
+
queue_data?: QueueData;
|
16
|
+
validated?: boolean;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=account_info.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_info.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_info.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACV,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,sBAAsB,CAAA;IACpC,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_info.js","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_info.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Trustline } from '../objects';
|
2
|
+
export interface AccountLinesRequest {
|
3
|
+
account: string;
|
4
|
+
ledger_hash?: string;
|
5
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
6
|
+
peer?: string;
|
7
|
+
limit?: number;
|
8
|
+
marker?: any;
|
9
|
+
}
|
10
|
+
export interface AccountLinesResponse {
|
11
|
+
account: string;
|
12
|
+
lines: Trustline[];
|
13
|
+
ledger_current_index?: number;
|
14
|
+
ledger_index?: number;
|
15
|
+
ledger_hash?: string;
|
16
|
+
marker?: any;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=account_lines.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_lines.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_lines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,CAAA;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,GAAG,CAAA;CACb"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_lines.js","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_lines.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { CheckLedgerEntry, RippleStateLedgerEntry, OfferLedgerEntry, SignerListLedgerEntry, EscrowLedgerEntry, PayChannelLedgerEntry, DepositPreauthLedgerEntry } from '../objects';
|
2
|
+
export interface GetAccountObjectsOptions {
|
3
|
+
type?: string | ('check' | 'escrow' | 'offer' | 'payment_channel' | 'signer_list' | 'state');
|
4
|
+
ledgerHash?: string;
|
5
|
+
ledgerIndex?: number | ('validated' | 'closed' | 'current');
|
6
|
+
limit?: number;
|
7
|
+
marker?: string;
|
8
|
+
}
|
9
|
+
export interface AccountObjectsRequest {
|
10
|
+
account: string;
|
11
|
+
type?: string | ('check' | 'escrow' | 'offer' | 'payment_channel' | 'signer_list' | 'state');
|
12
|
+
ledger_hash?: string;
|
13
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
14
|
+
limit?: number;
|
15
|
+
marker?: string;
|
16
|
+
}
|
17
|
+
export interface AccountObjectsResponse {
|
18
|
+
account: string;
|
19
|
+
account_objects: Array<CheckLedgerEntry | RippleStateLedgerEntry | OfferLedgerEntry | SignerListLedgerEntry | EscrowLedgerEntry | PayChannelLedgerEntry | DepositPreauthLedgerEntry>;
|
20
|
+
ledger_hash?: string;
|
21
|
+
ledger_index?: number;
|
22
|
+
ledger_current_index?: number;
|
23
|
+
limit?: number;
|
24
|
+
marker?: string;
|
25
|
+
validated?: boolean;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=account_objects.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_objects.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_objects.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EACD,MAAM,GACN,CACI,OAAO,GACP,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,OAAO,CACV,CAAA;IACL,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;IAGf,IAAI,CAAC,EACD,MAAM,GACN,CACI,OAAO,GACP,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,OAAO,CACV,CAAA;IAGL,WAAW,CAAC,EAAE,MAAM,CAAA;IAIpB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;IAE5D,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAA;IAIf,eAAe,EAAE,KAAK,CAClB,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,qBAAqB,GACrB,iBAAiB,GACjB,qBAAqB,GACrB,yBAAyB,CAC5B,CAAA;IAID,WAAW,CAAC,EAAE,MAAM,CAAA;IAIpB,YAAY,CAAC,EAAE,MAAM,CAAA;IAIrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,KAAK,CAAC,EAAE,MAAM,CAAA;IAKd,MAAM,CAAC,EAAE,MAAM,CAAA;IAIf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_objects.js","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_objects.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { RippledAmount } from '../objects';
|
2
|
+
export interface AccountOffersRequest {
|
3
|
+
account: string;
|
4
|
+
ledger_hash?: string;
|
5
|
+
ledger_index?: number | ('validated' | 'closed' | 'current');
|
6
|
+
limit?: number;
|
7
|
+
marker?: any;
|
8
|
+
}
|
9
|
+
export interface AccountOffersResponse {
|
10
|
+
account: string;
|
11
|
+
ledger_hash?: string;
|
12
|
+
ledger_current_index?: number;
|
13
|
+
ledger_index?: number;
|
14
|
+
marker?: any;
|
15
|
+
offers?: AccountOffer[];
|
16
|
+
}
|
17
|
+
export interface AccountOffer {
|
18
|
+
seq: number;
|
19
|
+
flags: number;
|
20
|
+
taker_gets: RippledAmount;
|
21
|
+
taker_pays: RippledAmount;
|
22
|
+
quality: string;
|
23
|
+
expiration?: number;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=account_offers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_offers.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAA;AAExC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAA;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,CAAA;CACb;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,aAAa,CAAA;IACzB,UAAU,EAAE,aAAa,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"account_offers.js","sourceRoot":"","sources":["../../../../../src/common/types/commands/account_offers.ts"],"names":[],"mappings":""}
|