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,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
7
|
+
const common_1 = require("../../common");
|
8
|
+
const utils_1 = require("./utils");
|
9
|
+
function parseFeeUpdate(tx) {
|
10
|
+
const baseFeeDrops = new bignumber_js_1.default(tx.BaseFee, 16).toString();
|
11
|
+
return {
|
12
|
+
memos: utils_1.parseMemos(tx),
|
13
|
+
baseFeeXRP: common_1.dropsToXrp(baseFeeDrops),
|
14
|
+
referenceFeeUnits: tx.ReferenceFeeUnits,
|
15
|
+
reserveBaseXRP: common_1.dropsToXrp(tx.ReserveBase),
|
16
|
+
reserveIncrementXRP: common_1.dropsToXrp(tx.ReserveIncrement)
|
17
|
+
};
|
18
|
+
}
|
19
|
+
exports.default = parseFeeUpdate;
|
20
|
+
//# sourceMappingURL=fee-update.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fee-update.js","sourceRoot":"","sources":["../../../../src/ledger/parse/fee-update.ts"],"names":[],"mappings":";;;;;AAAA,gEAAoC;AACpC,yCAAuC;AACvC,mCAAkC;AAElC,SAAS,cAAc,CAAC,EAAO;IAC7B,MAAM,YAAY,GAAG,IAAI,sBAAS,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IAC7D,OAAO;QACL,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,UAAU,EAAE,mBAAU,CAAC,YAAY,CAAC;QACpC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB;QACvC,cAAc,EAAE,mBAAU,CAAC,EAAE,CAAC,WAAW,CAAC;QAC1C,mBAAmB,EAAE,mBAAU,CAAC,EAAE,CAAC,gBAAgB,CAAC;KACrD,CAAA;AACH,CAAC;AAED,kBAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/fields.ts"],"names":[],"mappings":"AAgBA,iBAAS,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAiCtC;AAED,eAAe,WAAW,CAAA"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
7
|
+
const common_1 = require("../../common");
|
8
|
+
const AccountFields = common_1.constants.AccountFields;
|
9
|
+
function parseField(info, value) {
|
10
|
+
if (info.encoding === 'hex' && !info.length) {
|
11
|
+
return Buffer.from(value, 'hex').toString('ascii');
|
12
|
+
}
|
13
|
+
if (info.shift) {
|
14
|
+
return new bignumber_js_1.default(value).shiftedBy(-info.shift).toNumber();
|
15
|
+
}
|
16
|
+
return value;
|
17
|
+
}
|
18
|
+
function parseFields(data) {
|
19
|
+
const settings = {};
|
20
|
+
for (const fieldName in AccountFields) {
|
21
|
+
const fieldValue = data[fieldName];
|
22
|
+
if (fieldValue != null) {
|
23
|
+
const info = AccountFields[fieldName];
|
24
|
+
settings[info.name] = parseField(info, fieldValue);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
if (data.RegularKey) {
|
28
|
+
settings.regularKey = data.RegularKey;
|
29
|
+
}
|
30
|
+
if (data.signer_lists && data.signer_lists.length === 1) {
|
31
|
+
settings.signers = {};
|
32
|
+
if (data.signer_lists[0].SignerQuorum) {
|
33
|
+
settings.signers.threshold = data.signer_lists[0].SignerQuorum;
|
34
|
+
}
|
35
|
+
if (data.signer_lists[0].SignerEntries) {
|
36
|
+
settings.signers.weights = data.signer_lists[0].SignerEntries.map((entry) => {
|
37
|
+
return {
|
38
|
+
address: entry.SignerEntry.Account,
|
39
|
+
weight: entry.SignerEntry.SignerWeight
|
40
|
+
};
|
41
|
+
});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return settings;
|
45
|
+
}
|
46
|
+
exports.default = parseFields;
|
47
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/ledger/parse/fields.ts"],"names":[],"mappings":";;;;;AACA,gEAAoC;AACpC,yCAAsC;AACtC,MAAM,aAAa,GAAG,kBAAS,CAAC,aAAa,CAAA;AAE7C,SAAS,UAAU,CAAC,IAAI,EAAE,KAAK;IAC7B,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QAE3C,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;KACnD;IACD,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,OAAO,IAAI,sBAAS,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;KAC9D;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,WAAW,CAAC,IAAS;IAC5B,MAAM,QAAQ,GAAQ,EAAE,CAAA;IACxB,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,CAAA;QAClC,IAAI,UAAU,IAAI,IAAI,EAAE;YACtB,MAAM,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,CAAA;YACrC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;SACnD;KACF;IAED,IAAI,IAAI,CAAC,UAAU,EAAE;QACnB,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;KACtC;IAID,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;QACvD,QAAQ,CAAC,OAAO,GAAG,EAAE,CAAA;QACrB,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE;YACrC,QAAQ,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAA;SAC/D;QACD,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE;YACtC,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAC/D,CAAC,KAAU,EAAE,EAAE;gBACb,OAAO;oBACL,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO;oBAClC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY;iBACvC,CAAA;YACH,CAAC,CACF,CAAA;SACF;KACF;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,kBAAe,WAAW,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const orderFlags: {
|
2
|
+
Passive: number;
|
3
|
+
Sell: number;
|
4
|
+
};
|
5
|
+
declare const trustlineFlags: {
|
6
|
+
LowReserve: number;
|
7
|
+
HighReserve: number;
|
8
|
+
LowAuth: number;
|
9
|
+
HighAuth: number;
|
10
|
+
LowNoRipple: number;
|
11
|
+
HighNoRipple: number;
|
12
|
+
LowFreeze: number;
|
13
|
+
HighFreeze: number;
|
14
|
+
};
|
15
|
+
export { orderFlags, trustlineFlags };
|
16
|
+
//# sourceMappingURL=flags.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/flags.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;CAGf,CAAA;AAED,QAAA,MAAM,cAAc;;;;;;;;;CASnB,CAAA;AAED,OAAO,EAAC,UAAU,EAAE,cAAc,EAAC,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.trustlineFlags = exports.orderFlags = void 0;
|
4
|
+
const orderFlags = {
|
5
|
+
Passive: 0x00010000,
|
6
|
+
Sell: 0x00020000
|
7
|
+
};
|
8
|
+
exports.orderFlags = orderFlags;
|
9
|
+
const trustlineFlags = {
|
10
|
+
LowReserve: 0x00010000,
|
11
|
+
HighReserve: 0x00020000,
|
12
|
+
LowAuth: 0x00040000,
|
13
|
+
HighAuth: 0x00080000,
|
14
|
+
LowNoRipple: 0x00100000,
|
15
|
+
HighNoRipple: 0x00200000,
|
16
|
+
LowFreeze: 0x00400000,
|
17
|
+
HighFreeze: 0x00800000
|
18
|
+
};
|
19
|
+
exports.trustlineFlags = trustlineFlags;
|
20
|
+
//# sourceMappingURL=flags.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../../../src/ledger/parse/flags.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,UAAU;CACjB,CAAA;AAaO,gCAAU;AAXlB,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,UAAU;IACtB,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,UAAU;IACvB,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,UAAU;CACvB,CAAA;AAEmB,wCAAc"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Ledger } from '../../common/types/objects';
|
2
|
+
export declare type FormattedLedger = {
|
3
|
+
stateHash: string;
|
4
|
+
closeTime: string;
|
5
|
+
closeTimeResolution: number;
|
6
|
+
closeFlags: number;
|
7
|
+
ledgerHash: string;
|
8
|
+
ledgerVersion: number;
|
9
|
+
parentLedgerHash: string;
|
10
|
+
parentCloseTime: string;
|
11
|
+
totalDrops: string;
|
12
|
+
transactionHash: string;
|
13
|
+
transactions?: Array<object>;
|
14
|
+
transactionHashes?: Array<string>;
|
15
|
+
rawState?: string;
|
16
|
+
stateHashes?: Array<string>;
|
17
|
+
};
|
18
|
+
export declare function parseLedger(ledger: Ledger): FormattedLedger;
|
19
|
+
//# sourceMappingURL=ledger.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/ledger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAA;AAEjD,oBAAY,eAAe,GAAG;IAG5B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAA;AA4CD,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAoB3D"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
exports.parseLedger = void 0;
|
26
|
+
const _ = __importStar(require("lodash"));
|
27
|
+
const common_1 = require("../../common");
|
28
|
+
const transaction_1 = __importDefault(require("./transaction"));
|
29
|
+
function parseTransactionWrapper(ledgerVersion, tx) {
|
30
|
+
const transaction = Object.assign({}, _.omit(tx, 'metaData'), {
|
31
|
+
meta: tx.metaData,
|
32
|
+
ledger_index: ledgerVersion
|
33
|
+
});
|
34
|
+
const result = transaction_1.default(transaction, true);
|
35
|
+
if (!result.outcome.ledgerVersion) {
|
36
|
+
result.outcome.ledgerVersion = ledgerVersion;
|
37
|
+
}
|
38
|
+
return result;
|
39
|
+
}
|
40
|
+
function parseTransactions(transactions, ledgerVersion) {
|
41
|
+
if (_.isEmpty(transactions)) {
|
42
|
+
return {};
|
43
|
+
}
|
44
|
+
if (typeof transactions[0] === 'string') {
|
45
|
+
return { transactionHashes: transactions };
|
46
|
+
}
|
47
|
+
return {
|
48
|
+
transactions: transactions.map(_.partial(parseTransactionWrapper, ledgerVersion))
|
49
|
+
};
|
50
|
+
}
|
51
|
+
function parseState(state) {
|
52
|
+
if (_.isEmpty(state)) {
|
53
|
+
return {};
|
54
|
+
}
|
55
|
+
if (typeof state[0] === 'string') {
|
56
|
+
return { stateHashes: state };
|
57
|
+
}
|
58
|
+
return { rawState: JSON.stringify(state) };
|
59
|
+
}
|
60
|
+
function parseLedger(ledger) {
|
61
|
+
const ledgerVersion = parseInt(ledger.ledger_index, 10);
|
62
|
+
return common_1.removeUndefined(Object.assign({
|
63
|
+
stateHash: ledger.account_hash,
|
64
|
+
closeTime: common_1.rippleTimeToISO8601(ledger.close_time),
|
65
|
+
closeTimeResolution: ledger.close_time_resolution,
|
66
|
+
closeFlags: ledger.close_flags,
|
67
|
+
ledgerHash: ledger.ledger_hash,
|
68
|
+
ledgerVersion: ledgerVersion,
|
69
|
+
parentLedgerHash: ledger.parent_hash,
|
70
|
+
parentCloseTime: common_1.rippleTimeToISO8601(ledger.parent_close_time),
|
71
|
+
totalDrops: ledger.total_coins,
|
72
|
+
transactionHash: ledger.transaction_hash
|
73
|
+
}, parseTransactions(ledger.transactions, ledgerVersion), parseState(ledger.accountState)));
|
74
|
+
}
|
75
|
+
exports.parseLedger = parseLedger;
|
76
|
+
//# sourceMappingURL=ledger.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ledger.js","sourceRoot":"","sources":["../../../../src/ledger/parse/ledger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA2B;AAC3B,yCAAiE;AACjE,gEAA4C;AAsB5C,SAAS,uBAAuB,CAAC,aAAa,EAAE,EAAE;IAEhD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE;QAC5D,IAAI,EAAE,EAAE,CAAC,QAAQ;QACjB,YAAY,EAAE,aAAa;KAC5B,CAAC,CAAA;IACF,MAAM,MAAM,GAAG,qBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IAClD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,EAAE;QACjC,MAAM,CAAC,OAAO,CAAC,aAAa,GAAG,aAAa,CAAA;KAC7C;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,iBAAiB,CAAC,YAAY,EAAE,aAAa;IACpD,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC3B,OAAO,EAAE,CAAA;KACV;IACD,IAAI,OAAO,YAAY,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;QACvC,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAC,CAAA;KACzC;IACD,OAAO;QACL,YAAY,EAAE,YAAY,CAAC,GAAG,CAC5B,CAAC,CAAC,OAAO,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAClD;KACF,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,KAAK;IACvB,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACpB,OAAO,EAAE,CAAA;KACV;IACD,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;QAChC,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,CAAA;KAC5B;IACD,OAAO,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAC,CAAA;AAC1C,CAAC;AAOD,SAAgB,WAAW,CAAC,MAAc;IACxC,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAA;IACvD,OAAO,wBAAe,CACpB,MAAM,CAAC,MAAM,CACX;QACE,SAAS,EAAE,MAAM,CAAC,YAAY;QAC9B,SAAS,EAAE,4BAAmB,CAAC,MAAM,CAAC,UAAU,CAAC;QACjD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB;QACjD,UAAU,EAAE,MAAM,CAAC,WAAW;QAC9B,UAAU,EAAE,MAAM,CAAC,WAAW;QAC9B,aAAa,EAAE,aAAa;QAC5B,gBAAgB,EAAE,MAAM,CAAC,WAAW;QACpC,eAAe,EAAE,4BAAmB,CAAC,MAAM,CAAC,iBAAiB,CAAC;QAC9D,UAAU,EAAE,MAAM,CAAC,WAAW;QAC9B,eAAe,EAAE,MAAM,CAAC,gBAAgB;KACzC,EACD,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,EACrD,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAChC,CACF,CAAA;AACH,CAAC;AApBD,kCAoBC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/order.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,kCAAkC,CAAA;AAIzC,iBAAS,UAAU,CAAC,EAAE,EAAE,sBAAsB,GAAG,2BAA2B,CAmB3E;AAED,eAAe,UAAU,CAAA"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
const assert = __importStar(require("assert"));
|
26
|
+
const utils_1 = require("./utils");
|
27
|
+
const utils_2 = require("./utils");
|
28
|
+
const amount_1 = __importDefault(require("./amount"));
|
29
|
+
const common_1 = require("../../common");
|
30
|
+
const flags = common_1.txFlags.OfferCreate;
|
31
|
+
function parseOrder(tx) {
|
32
|
+
assert.ok(tx.TransactionType === 'OfferCreate');
|
33
|
+
const direction = (tx.Flags & flags.Sell) === 0 ? 'buy' : 'sell';
|
34
|
+
const takerGetsAmount = amount_1.default(tx.TakerGets);
|
35
|
+
const takerPaysAmount = amount_1.default(tx.TakerPays);
|
36
|
+
const quantity = direction === 'buy' ? takerPaysAmount : takerGetsAmount;
|
37
|
+
const totalPrice = direction === 'buy' ? takerGetsAmount : takerPaysAmount;
|
38
|
+
return common_1.removeUndefined({
|
39
|
+
memos: utils_2.parseMemos(tx),
|
40
|
+
direction: direction,
|
41
|
+
quantity: quantity,
|
42
|
+
totalPrice: totalPrice,
|
43
|
+
passive: (tx.Flags & flags.Passive) !== 0 || undefined,
|
44
|
+
immediateOrCancel: (tx.Flags & flags.ImmediateOrCancel) !== 0 || undefined,
|
45
|
+
fillOrKill: (tx.Flags & flags.FillOrKill) !== 0 || undefined,
|
46
|
+
expirationTime: utils_1.parseTimestamp(tx.Expiration)
|
47
|
+
});
|
48
|
+
}
|
49
|
+
exports.default = parseOrder;
|
50
|
+
//# sourceMappingURL=order.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/ledger/parse/order.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAsC;AACtC,mCAAkC;AAClC,sDAAkC;AAClC,yCAAqD;AAMrD,MAAM,KAAK,GAAG,gBAAO,CAAC,WAAW,CAAA;AAEjC,SAAS,UAAU,CAAC,EAA0B;IAC5C,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,aAAa,CAAC,CAAA;IAE/C,MAAM,SAAS,GAAG,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;IAChE,MAAM,eAAe,GAAG,gBAAW,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IACjD,MAAM,eAAe,GAAG,gBAAW,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IACjD,MAAM,QAAQ,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,MAAM,UAAU,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IAE1E,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,UAAU;QACtB,OAAO,EAAE,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,SAAS;QACtD,iBAAiB,EAAE,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,SAAS;QAC1E,UAAU,EAAE,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS;QAC5D,cAAc,EAAE,sBAAc,CAAC,EAAE,CAAC,UAAU,CAAC;KAC9C,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,UAAU,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BookOffer } from '../../common/types/commands';
|
2
|
+
import { Amount, FormattedOrderSpecification } from '../../common/types/objects';
|
3
|
+
export declare type FormattedOrderbookOrder = {
|
4
|
+
specification: FormattedOrderSpecification;
|
5
|
+
properties: {
|
6
|
+
maker: string;
|
7
|
+
sequence: number;
|
8
|
+
makerExchangeRate: string;
|
9
|
+
};
|
10
|
+
state?: {
|
11
|
+
fundedAmount: Amount;
|
12
|
+
priceOfFundedAmount: Amount;
|
13
|
+
};
|
14
|
+
data: BookOffer;
|
15
|
+
};
|
16
|
+
export declare function parseOrderbookOrder(data: BookOffer): FormattedOrderbookOrder;
|
17
|
+
//# sourceMappingURL=orderbook-order.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"orderbook-order.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/orderbook-order.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAC,MAAM,EAAE,2BAA2B,EAAC,MAAM,4BAA4B,CAAA;AAE9E,oBAAY,uBAAuB,GAAG;IACpC,aAAa,EAAE,2BAA2B,CAAA;IAC1C,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,iBAAiB,EAAE,MAAM,CAAA;KAC1B,CAAA;IACD,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAA;QACpB,mBAAmB,EAAE,MAAM,CAAA;KAC5B,CAAA;IACD,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,uBAAuB,CAuC5E"}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
exports.parseOrderbookOrder = void 0;
|
26
|
+
const _ = __importStar(require("lodash"));
|
27
|
+
const utils_1 = require("./utils");
|
28
|
+
const common_1 = require("../../common");
|
29
|
+
const flags_1 = require("./flags");
|
30
|
+
const amount_1 = __importDefault(require("./amount"));
|
31
|
+
function parseOrderbookOrder(data) {
|
32
|
+
const direction = (data.Flags & flags_1.orderFlags.Sell) === 0 ? 'buy' : 'sell';
|
33
|
+
const takerGetsAmount = amount_1.default(data.TakerGets);
|
34
|
+
const takerPaysAmount = amount_1.default(data.TakerPays);
|
35
|
+
const quantity = direction === 'buy' ? takerPaysAmount : takerGetsAmount;
|
36
|
+
const totalPrice = direction === 'buy' ? takerGetsAmount : takerPaysAmount;
|
37
|
+
const specification = common_1.removeUndefined({
|
38
|
+
direction: direction,
|
39
|
+
quantity: quantity,
|
40
|
+
totalPrice: totalPrice,
|
41
|
+
passive: (data.Flags & flags_1.orderFlags.Passive) !== 0 || undefined,
|
42
|
+
expirationTime: utils_1.parseTimestamp(data.Expiration)
|
43
|
+
});
|
44
|
+
const properties = {
|
45
|
+
maker: data.Account,
|
46
|
+
sequence: data.Sequence,
|
47
|
+
makerExchangeRate: utils_1.adjustQualityForXRP(data.quality, takerGetsAmount.currency, takerPaysAmount.currency)
|
48
|
+
};
|
49
|
+
const takerGetsFunded = data.taker_gets_funded
|
50
|
+
? amount_1.default(data.taker_gets_funded)
|
51
|
+
: undefined;
|
52
|
+
const takerPaysFunded = data.taker_pays_funded
|
53
|
+
? amount_1.default(data.taker_pays_funded)
|
54
|
+
: undefined;
|
55
|
+
const available = common_1.removeUndefined({
|
56
|
+
fundedAmount: takerGetsFunded,
|
57
|
+
priceOfFundedAmount: takerPaysFunded
|
58
|
+
});
|
59
|
+
const state = _.isEmpty(available) ? undefined : available;
|
60
|
+
return common_1.removeUndefined({ specification, properties, state, data });
|
61
|
+
}
|
62
|
+
exports.parseOrderbookOrder = parseOrderbookOrder;
|
63
|
+
//# sourceMappingURL=orderbook-order.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"orderbook-order.js","sourceRoot":"","sources":["../../../../src/ledger/parse/orderbook-order.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA2B;AAC3B,mCAA2D;AAC3D,yCAA4C;AAE5C,mCAAkC;AAClC,sDAAkC;AAkBlC,SAAgB,mBAAmB,CAAC,IAAe;IACjD,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,kBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;IACvE,MAAM,eAAe,GAAG,gBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACnD,MAAM,eAAe,GAAG,gBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACnD,MAAM,QAAQ,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,MAAM,UAAU,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IAI1E,MAAM,aAAa,GAAgC,wBAAe,CAAC;QACjE,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,UAAU;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,kBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,SAAS;QAC7D,cAAc,EAAE,sBAAc,CAAC,IAAI,CAAC,UAAU,CAAC;KAChD,CAAC,CAAA;IAEF,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,iBAAiB,EAAE,2BAAmB,CACpC,IAAI,CAAC,OAAO,EACZ,eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,QAAQ,CACzB;KACF,CAAA;IAED,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB;QAC5C,CAAC,CAAC,gBAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACrC,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB;QAC5C,CAAC,CAAC,gBAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACrC,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,SAAS,GAAG,wBAAe,CAAC;QAChC,YAAY,EAAE,eAAe;QAC7B,mBAAmB,EAAE,eAAe;KACrC,CAAC,CAAA;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAA;IAC1D,OAAO,wBAAe,CAAC,EAAC,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAClE,CAAC;AAvCD,kDAuCC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pathfind.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/pathfind.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,QAAQ,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAA;AAqDtE,iBAAS,aAAa,CAAC,cAAc,EAAE,oBAAoB,GAAG,QAAQ,CAOrE;AAED,eAAe,aAAa,CAAA"}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
const _ = __importStar(require("lodash"));
|
26
|
+
const amount_1 = __importDefault(require("./amount"));
|
27
|
+
function parsePaths(paths) {
|
28
|
+
return paths.map((steps) => steps.map((step) => _.omit(step, ['type', 'type_hex'])));
|
29
|
+
}
|
30
|
+
function removeAnyCounterpartyEncoding(address, amount) {
|
31
|
+
return amount.counterparty === address
|
32
|
+
? _.omit(amount, 'counterparty')
|
33
|
+
: amount;
|
34
|
+
}
|
35
|
+
function createAdjustment(address, adjustmentWithoutAddress) {
|
36
|
+
const amountKey = Object.keys(adjustmentWithoutAddress)[0];
|
37
|
+
const amount = adjustmentWithoutAddress[amountKey];
|
38
|
+
return _.set({ address: address }, amountKey, removeAnyCounterpartyEncoding(address, amount));
|
39
|
+
}
|
40
|
+
function parseAlternative(sourceAddress, destinationAddress, destinationAmount, alternative) {
|
41
|
+
const amounts = alternative.destination_amount != null
|
42
|
+
? {
|
43
|
+
source: { amount: amount_1.default(alternative.source_amount) },
|
44
|
+
destination: { minAmount: amount_1.default(alternative.destination_amount) }
|
45
|
+
}
|
46
|
+
: {
|
47
|
+
source: { maxAmount: amount_1.default(alternative.source_amount) },
|
48
|
+
destination: { amount: amount_1.default(destinationAmount) }
|
49
|
+
};
|
50
|
+
return {
|
51
|
+
source: createAdjustment(sourceAddress, amounts.source),
|
52
|
+
destination: createAdjustment(destinationAddress, amounts.destination),
|
53
|
+
paths: JSON.stringify(parsePaths(alternative.paths_computed))
|
54
|
+
};
|
55
|
+
}
|
56
|
+
function parsePathfind(pathfindResult) {
|
57
|
+
const sourceAddress = pathfindResult.source_account;
|
58
|
+
const destinationAddress = pathfindResult.destination_account;
|
59
|
+
const destinationAmount = pathfindResult.destination_amount;
|
60
|
+
return pathfindResult.alternatives.map((alt) => parseAlternative(sourceAddress, destinationAddress, destinationAmount, alt));
|
61
|
+
}
|
62
|
+
exports.default = parsePathfind;
|
63
|
+
//# sourceMappingURL=pathfind.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pathfind.js","sourceRoot":"","sources":["../../../../src/ledger/parse/pathfind.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA2B;AAC3B,sDAAkC;AAIlC,SAAS,UAAU,CAAC,KAAK;IACvB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACzB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CACxD,CAAA;AACH,CAAC;AAED,SAAS,6BAA6B,CAAC,OAAe,EAAE,MAAc;IACpE,OAAO,MAAM,CAAC,YAAY,KAAK,OAAO;QACpC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC;QAChC,CAAC,CAAC,MAAM,CAAA;AACZ,CAAC;AAED,SAAS,gBAAgB,CACvB,OAAe,EACf,wBAAgC;IAEhC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1D,MAAM,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAA;IAClD,OAAO,CAAC,CAAC,GAAG,CACV,EAAC,OAAO,EAAE,OAAO,EAAC,EAClB,SAAS,EACT,6BAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,CAC/C,CAAA;AACH,CAAC;AAED,SAAS,gBAAgB,CACvB,aAAqB,EACrB,kBAA0B,EAC1B,iBAAgC,EAChC,WAAgB;IAIhB,MAAM,OAAO,GACX,WAAW,CAAC,kBAAkB,IAAI,IAAI;QACpC,CAAC,CAAC;YACE,MAAM,EAAE,EAAC,MAAM,EAAE,gBAAW,CAAC,WAAW,CAAC,aAAa,CAAC,EAAC;YACxD,WAAW,EAAE,EAAC,SAAS,EAAE,gBAAW,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAC;SACtE;QACH,CAAC,CAAC;YACE,MAAM,EAAE,EAAC,SAAS,EAAE,gBAAW,CAAC,WAAW,CAAC,aAAa,CAAC,EAAC;YAC3D,WAAW,EAAE,EAAC,MAAM,EAAE,gBAAW,CAAC,iBAAiB,CAAC,EAAC;SACtD,CAAA;IAEP,OAAO;QACL,MAAM,EAAE,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC;QACvD,WAAW,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,CAAC,WAAW,CAAC;QACtE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;KAC9D,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CAAC,cAAoC;IACzD,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAA;IACnD,MAAM,kBAAkB,GAAG,cAAc,CAAC,mBAAmB,CAAA;IAC7D,MAAM,iBAAiB,GAAG,cAAc,CAAC,kBAAkB,CAAA;IAC3D,OAAO,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAC7C,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAC5E,CAAA;AACH,CAAC;AAED,kBAAe,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment-channel-claim.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/payment-channel-claim.ts"],"names":[],"mappings":"AAMA,iBAAS,wBAAwB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAajD;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
const assert = __importStar(require("assert"));
|
26
|
+
const common_1 = require("../../common");
|
27
|
+
const amount_1 = __importDefault(require("./amount"));
|
28
|
+
const utils_1 = require("./utils");
|
29
|
+
const claimFlags = common_1.txFlags.PaymentChannelClaim;
|
30
|
+
function parsePaymentChannelClaim(tx) {
|
31
|
+
assert.ok(tx.TransactionType === 'PaymentChannelClaim');
|
32
|
+
return common_1.removeUndefined({
|
33
|
+
memos: utils_1.parseMemos(tx),
|
34
|
+
channel: tx.Channel,
|
35
|
+
balance: tx.Balance && amount_1.default(tx.Balance).value,
|
36
|
+
amount: tx.Amount && amount_1.default(tx.Amount).value,
|
37
|
+
signature: tx.Signature,
|
38
|
+
publicKey: tx.PublicKey,
|
39
|
+
renew: Boolean(tx.Flags & claimFlags.Renew) || undefined,
|
40
|
+
close: Boolean(tx.Flags & claimFlags.Close) || undefined
|
41
|
+
});
|
42
|
+
}
|
43
|
+
exports.default = parsePaymentChannelClaim;
|
44
|
+
//# sourceMappingURL=payment-channel-claim.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment-channel-claim.js","sourceRoot":"","sources":["../../../../src/ledger/parse/payment-channel-claim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,yCAAqD;AACrD,sDAAkC;AAClC,mCAAkC;AAClC,MAAM,UAAU,GAAG,gBAAO,CAAC,mBAAmB,CAAA;AAE9C,SAAS,wBAAwB,CAAC,EAAO;IACvC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,qBAAqB,CAAC,CAAA;IAEvD,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,OAAO,EAAE,EAAE,CAAC,OAAO,IAAI,gBAAW,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK;QACpD,MAAM,EAAE,EAAE,CAAC,MAAM,IAAI,gBAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK;QACjD,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS;QACxD,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS;KACzD,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,wBAAwB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment-channel-create.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/payment-channel-create.ts"],"names":[],"mappings":"AAKA,iBAAS,yBAAyB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAalD;AAED,eAAe,yBAAyB,CAAA"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
const assert = __importStar(require("assert"));
|
26
|
+
const utils_1 = require("./utils");
|
27
|
+
const common_1 = require("../../common");
|
28
|
+
const amount_1 = __importDefault(require("./amount"));
|
29
|
+
function parsePaymentChannelCreate(tx) {
|
30
|
+
assert.ok(tx.TransactionType === 'PaymentChannelCreate');
|
31
|
+
return common_1.removeUndefined({
|
32
|
+
memos: utils_1.parseMemos(tx),
|
33
|
+
amount: amount_1.default(tx.Amount).value,
|
34
|
+
destination: tx.Destination,
|
35
|
+
settleDelay: tx.SettleDelay,
|
36
|
+
publicKey: tx.PublicKey,
|
37
|
+
cancelAfter: tx.CancelAfter && utils_1.parseTimestamp(tx.CancelAfter),
|
38
|
+
sourceTag: tx.SourceTag,
|
39
|
+
destinationTag: tx.DestinationTag
|
40
|
+
});
|
41
|
+
}
|
42
|
+
exports.default = parsePaymentChannelCreate;
|
43
|
+
//# sourceMappingURL=payment-channel-create.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment-channel-create.js","sourceRoot":"","sources":["../../../../src/ledger/parse/payment-channel-create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAiD;AACjD,yCAA4C;AAC5C,sDAAkC;AAElC,SAAS,yBAAyB,CAAC,EAAO;IACxC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,sBAAsB,CAAC,CAAA;IAExD,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,MAAM,EAAE,gBAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK;QACpC,WAAW,EAAE,EAAE,CAAC,WAAW;QAC3B,WAAW,EAAE,EAAE,CAAC,WAAW;QAC3B,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,WAAW,EAAE,EAAE,CAAC,WAAW,IAAI,sBAAc,CAAC,EAAE,CAAC,WAAW,CAAC;QAC7D,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,cAAc,EAAE,EAAE,CAAC,cAAc;KAClC,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,yBAAyB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment-channel-fund.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/payment-channel-fund.ts"],"names":[],"mappings":"AAKA,iBAAS,uBAAuB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAShD;AAED,eAAe,uBAAuB,CAAA"}
|