wapi-client 0.9.6 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/base-client.browser.cjs +69 -60
- package/dist/api/base-client.browser.js +69 -60
- package/dist/api/base-client.cjs +69 -60
- package/dist/api/base-client.d.ts +67 -58
- package/dist/api/base-client.js +70 -61
- package/dist/api/connection/connection.enums.d.ts +0 -12
- package/dist/api/http-client.d.ts +1 -1
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +1 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.browser.cjs +623 -441
- package/dist/client.browser.js +623 -441
- package/dist/client.cjs +624 -442
- package/dist/client.d.ts +851 -547
- package/dist/client.js +624 -442
- package/dist/db/consts.schema.json +3 -2
- package/dist/db/index.browser.cjs +5 -1
- package/dist/db/index.browser.js +5 -1
- package/dist/db/index.cjs +8 -2
- package/dist/db/index.d.ts +3 -0
- package/dist/db/index.js +5 -1
- package/dist/db/token/token.schema.input.json +5 -16
- package/dist/db/token/token.schema.json +8 -32
- package/dist/db/token/token.schema.optional.json +5 -16
- package/dist/db/transfer/transfer.schema.input.json +6 -21
- package/dist/db/transfer/transfer.schema.json +8 -28
- package/dist/db/transfer/transfer.schema.optional.json +7 -24
- package/dist/db/transfer-group/transfer-group.schema.input.json +6 -20
- package/dist/db/transfer-group/transfer-group.schema.json +8 -27
- package/dist/db/transfer-group/transfer-group.schema.optional.json +6 -20
- package/dist/db/transfer-log/transfer-log.schema.input.json +1 -1
- package/dist/db/transfer-log/transfer-log.schema.json +7 -29
- package/dist/db/transfer-log/transfer-log.schema.optional.json +6 -20
- package/dist/db/wallet/wallet.schema.input.json +4 -12
- package/dist/db/wallet/wallet.schema.json +8 -35
- package/dist/db/wallet/wallet.schema.optional.json +4 -12
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.input.json +1 -1
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.json +5 -17
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.optional.json +2 -4
- package/dist/db/wapi-setting/wapi-setting.schema.input.json +2 -5
- package/dist/db/wapi-setting/wapi-setting.schema.json +5 -21
- package/dist/db/wapi-setting/wapi-setting.schema.optional.json +2 -4
- package/dist/{txs/export-database/export-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.cjs} +3 -3
- package/dist/db/wapi-statistic/wapi-statistic.enums.d.ts +96 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.input.json +29 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.json +81 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.optional.json +43 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.cjs +51 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.cjs +55 -0
- package/dist/fns/export-balance-history/export-balance-history.d.ts +8 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.d.ts +29 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.cjs +36 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.cjs +41 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.d.ts +4 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.input.json +33 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.output.json +8 -0
- package/dist/fns/export-tokens/export-tokens.browser.cjs +91 -0
- package/dist/fns/export-tokens/export-tokens.browser.js +77 -0
- package/dist/fns/export-tokens/export-tokens.cjs +95 -0
- package/dist/fns/export-tokens/export-tokens.d.ts +19 -0
- package/dist/fns/export-tokens/export-tokens.enums.browser.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.d.ts +39 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.cjs +36 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.js +16 -0
- package/dist/fns/export-tokens/export-tokens.guards.cjs +41 -0
- package/dist/fns/export-tokens/export-tokens.guards.d.ts +4 -0
- package/dist/fns/export-tokens/export-tokens.guards.js +16 -0
- package/dist/fns/export-tokens/export-tokens.js +77 -0
- package/dist/fns/export-tokens/export-tokens.schema.input.json +43 -0
- package/dist/fns/export-tokens/export-tokens.schema.output.json +8 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +94 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +98 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.d.ts +19 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.browser.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.d.ts +47 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.cjs +36 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.cjs +41 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.d.ts +4 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.input.json +49 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.output.json +8 -0
- package/dist/fns/export-transfers/export-transfers.browser.cjs +140 -0
- package/dist/fns/export-transfers/export-transfers.browser.js +127 -0
- package/dist/fns/export-transfers/export-transfers.cjs +144 -0
- package/dist/fns/export-transfers/export-transfers.d.ts +19 -0
- package/dist/{txs/export-database/export-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.cjs} +3 -3
- package/dist/fns/export-transfers/export-transfers.enums.d.ts +54 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.cjs +36 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.js +16 -0
- package/dist/fns/export-transfers/export-transfers.guards.cjs +41 -0
- package/dist/fns/export-transfers/export-transfers.guards.d.ts +4 -0
- package/dist/fns/export-transfers/export-transfers.guards.js +16 -0
- package/dist/fns/export-transfers/export-transfers.js +127 -0
- package/dist/fns/export-transfers/export-transfers.schema.input.json +73 -0
- package/dist/fns/export-transfers/export-transfers.schema.output.json +8 -0
- package/dist/fns/export-wallets/export-wallets.browser.cjs +86 -0
- package/dist/fns/export-wallets/export-wallets.browser.js +72 -0
- package/dist/fns/export-wallets/export-wallets.cjs +90 -0
- package/dist/fns/export-wallets/export-wallets.d.ts +18 -0
- package/dist/fns/export-wallets/export-wallets.enums.browser.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.d.ts +45 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.cjs +36 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.js +16 -0
- package/dist/fns/export-wallets/export-wallets.guards.cjs +41 -0
- package/dist/fns/export-wallets/export-wallets.guards.d.ts +4 -0
- package/dist/fns/export-wallets/export-wallets.guards.js +16 -0
- package/dist/fns/export-wallets/export-wallets.js +72 -0
- package/dist/fns/export-wallets/export-wallets.schema.input.json +54 -0
- package/dist/fns/export-wallets/export-wallets.schema.output.json +8 -0
- package/dist/fns/get-export/get-export.browser.cjs +45 -0
- package/dist/fns/get-export/get-export.browser.js +24 -0
- package/dist/fns/get-export/get-export.cjs +49 -0
- package/dist/fns/get-export/get-export.d.ts +9 -0
- package/dist/{txs/query/query.enums.browser.cjs → fns/get-export/get-export.enums.browser.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.browser.js +0 -0
- package/dist/{txs/query/query.enums.cjs → fns/get-export/get-export.enums.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.d.ts +22 -0
- package/dist/fns/get-export/get-export.enums.js +0 -0
- package/dist/fns/get-export/get-export.guards.browser.cjs +36 -0
- package/dist/fns/get-export/get-export.guards.browser.js +16 -0
- package/dist/fns/get-export/get-export.guards.cjs +41 -0
- package/dist/fns/get-export/get-export.guards.d.ts +4 -0
- package/dist/fns/get-export/get-export.guards.js +16 -0
- package/dist/fns/get-export/get-export.js +24 -0
- package/dist/fns/get-export/get-export.schema.input.json +27 -0
- package/dist/fns/get-export/get-export.schema.output.json +8 -0
- package/dist/fns/index.browser.cjs +65 -0
- package/dist/fns/index.browser.js +65 -0
- package/dist/fns/index.cjs +86 -0
- package/dist/fns/index.d.ts +45 -1
- package/dist/fns/index.js +65 -0
- package/dist/fns/list-exports/list-exports.browser.cjs +51 -0
- package/dist/fns/list-exports/list-exports.browser.js +30 -0
- package/dist/fns/list-exports/list-exports.cjs +55 -0
- package/dist/fns/list-exports/list-exports.d.ts +10 -0
- package/dist/fns/list-exports/list-exports.enums.browser.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.browser.js +0 -0
- package/dist/fns/list-exports/list-exports.enums.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.d.ts +24 -0
- package/dist/fns/list-exports/list-exports.enums.js +0 -0
- package/dist/fns/list-exports/list-exports.guards.browser.cjs +36 -0
- package/dist/fns/list-exports/list-exports.guards.browser.js +16 -0
- package/dist/fns/list-exports/list-exports.guards.cjs +41 -0
- package/dist/fns/list-exports/list-exports.guards.d.ts +4 -0
- package/dist/fns/list-exports/list-exports.guards.js +16 -0
- package/dist/fns/list-exports/list-exports.js +30 -0
- package/dist/fns/list-exports/list-exports.schema.input.json +22 -0
- package/dist/fns/list-exports/list-exports.schema.output.json +8 -0
- package/dist/lib/validator.browser.cjs +286 -90
- package/dist/lib/validator.browser.js +286 -90
- package/dist/lib/validator.cjs +286 -90
- package/dist/lib/validator.d.ts +32 -13
- package/dist/lib/validator.js +286 -90
- package/dist/txs/aggregate-transfer-many/aggregate-transfer-many.schema.input.json +1 -0
- package/dist/txs/create-access-token/create-access-token.schema.input.json +1 -0
- package/dist/txs/create-transfer-group/create-transfer-group.schema.input.json +0 -1
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.d.ts +22 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.input.json +38 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.output.json +14 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.js +0 -0
- package/dist/txs/export-token-many/export-token-many.enums.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.d.ts +9 -0
- package/dist/txs/export-token-many/export-token-many.enums.js +0 -0
- package/dist/txs/export-token-many/export-token-many.schema.input.json +21 -0
- package/dist/txs/export-token-many/export-token-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.d.ts +9 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.input.json +21 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.d.ts +11 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.input.json +40 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.output.json +14 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.d.ts +9 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.input.json +21 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.output.json +14 -0
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +0 -1
- package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-many/find-transfer-many.schema.input.json +0 -1
- package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +1 -1
- package/dist/txs/get-balance-history/get-balance-history.schema.input.json +1 -0
- package/dist/txs/get-export/get-export.enums.browser.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.browser.js +0 -0
- package/dist/txs/get-export/get-export.enums.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.d.ts +82 -0
- package/dist/txs/get-export/get-export.enums.js +0 -0
- package/dist/txs/get-export/get-export.schema.input.json +51 -0
- package/dist/txs/get-export/get-export.schema.output.json +70 -0
- package/dist/txs/get-wallet-many/get-wallet-many.enums.d.ts +1 -1
- package/dist/txs/get-wallet-many/get-wallet-many.schema.input.json +1 -0
- package/dist/txs/healthcheck/healthcheck.schema.input.json +0 -1
- package/dist/txs/index.browser.cjs +63 -58
- package/dist/txs/index.browser.js +61 -62
- package/dist/txs/index.cjs +77 -75
- package/dist/txs/index.d.ts +37 -33
- package/dist/txs/index.js +61 -62
- package/dist/txs/list-export-many/list-export-many.enums.browser.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.browser.js +0 -0
- package/dist/txs/list-export-many/list-export-many.enums.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.d.ts +23 -0
- package/dist/txs/list-export-many/list-export-many.enums.js +0 -0
- package/dist/txs/list-export-many/list-export-many.schema.input.json +76 -0
- package/dist/txs/list-export-many/list-export-many.schema.output.json +18 -0
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.input.json +1 -0
- package/dist/txs/update-token/update-token.enums.d.ts +1 -1
- package/dist/txs/update-token/update-token.schema.input.json +1 -1
- package/dist/txs/update-transfer/update-transfer.enums.d.ts +1 -1
- package/dist/txs/update-transfer/update-transfer.schema.input.json +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.schema.input.json +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.schema.input.json +1 -1
- package/dist/txs/update-wallet/update-wallet.enums.d.ts +1 -1
- package/dist/txs/update-wallet/update-wallet.schema.input.json +1 -1
- package/dist/types/index.d.ts +2254 -1327
- package/dist/wapi-client-web.iife.js +6 -6
- package/dist/wapi-client.iife.js +6 -6
- package/package.json +1 -1
- package/dist/txs/export-database/export-database.enums.d.ts +0 -20
- package/dist/txs/export-database/export-database.schema.input.json +0 -15
- package/dist/txs/export-database/export-database.schema.output.json +0 -13
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +0 -38
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.input.json +0 -31
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.output.json +0 -27
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +0 -33
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.input.json +0 -22
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.output.json +0 -27
- package/dist/txs/import-database/import-database.enums.d.ts +0 -17
- package/dist/txs/import-database/import-database.schema.input.json +0 -14
- package/dist/txs/import-database/import-database.schema.output.json +0 -13
- package/dist/txs/list-database-exports/list-database-exports.enums.browser.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +0 -26
- package/dist/txs/list-database-exports/list-database-exports.schema.input.json +0 -10
- package/dist/txs/list-database-exports/list-database-exports.schema.output.json +0 -33
- package/dist/txs/query/query.enums.d.ts +0 -30
- package/dist/txs/query/query.schema.input.json +0 -31
- package/dist/txs/query/query.schema.output.json +0 -15
- /package/dist/{txs/export-database/export-database.enums.browser.js → db/wapi-statistic/wapi-statistic.enums.browser.js} +0 -0
- /package/dist/{txs/export-database/export-database.enums.js → db/wapi-statistic/wapi-statistic.enums.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.browser.js → fns/export-balance-history/export-balance-history.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.js → fns/export-balance-history/export-balance-history.enums.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.browser.js → fns/export-tokens/export-tokens.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.js → fns/export-tokens/export-tokens.enums.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.browser.js → fns/export-transfer-groups/export-transfer-groups.enums.browser.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.js → fns/export-transfer-groups/export-transfer-groups.enums.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.browser.js → fns/export-transfers/export-transfers.enums.browser.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.js → fns/export-transfers/export-transfers.enums.js} +0 -0
- /package/dist/{txs/query/query.enums.browser.js → fns/export-wallets/export-wallets.enums.browser.js} +0 -0
- /package/dist/{txs/query/query.enums.js → fns/export-wallets/export-wallets.enums.js} +0 -0
|
@@ -208,10 +208,13 @@ var BaseClient = class {
|
|
|
208
208
|
if (!isValid) {
|
|
209
209
|
throw error;
|
|
210
210
|
}
|
|
211
|
+
return this._sendRaw(name, inputCopy);
|
|
212
|
+
}
|
|
213
|
+
_sendRaw(method, params) {
|
|
211
214
|
const jsonRpcMessage = {
|
|
212
215
|
jsonrpc: import_jsonrpc.JSONRPC.version,
|
|
213
|
-
method
|
|
214
|
-
params
|
|
216
|
+
method,
|
|
217
|
+
params,
|
|
215
218
|
id: (0, import_utils.getRandomHex)()
|
|
216
219
|
};
|
|
217
220
|
if (this.hooks.preflight && this.hooks.preflight(jsonRpcMessage) === false) {
|
|
@@ -394,7 +397,7 @@ var BaseClient = class {
|
|
|
394
397
|
*
|
|
395
398
|
*/
|
|
396
399
|
authenticationCheck(input) {
|
|
397
|
-
return this._sendTransaction(import_txs.APIFunctions.authenticationCheck, input);
|
|
400
|
+
return this._sendTransaction(import_txs.APIFunctions.authenticationCheck, input != null ? input : {});
|
|
398
401
|
}
|
|
399
402
|
/**
|
|
400
403
|
*
|
|
@@ -469,7 +472,7 @@ var BaseClient = class {
|
|
|
469
472
|
*
|
|
470
473
|
*/
|
|
471
474
|
createTransferGroup(input) {
|
|
472
|
-
return this._sendTransaction(import_txs.APIFunctions.createTransferGroup, input);
|
|
475
|
+
return this._sendTransaction(import_txs.APIFunctions.createTransferGroup, input != null ? input : {});
|
|
473
476
|
}
|
|
474
477
|
/**
|
|
475
478
|
*
|
|
@@ -503,15 +506,48 @@ var BaseClient = class {
|
|
|
503
506
|
}
|
|
504
507
|
/**
|
|
505
508
|
*
|
|
506
|
-
* @param {
|
|
507
|
-
* @returns {StreamPromise<
|
|
509
|
+
* @param {ExportBalanceHistoryTxInput} input
|
|
510
|
+
* @returns {StreamPromise<ExportBalanceHistoryTxOutput>}
|
|
508
511
|
*
|
|
509
512
|
*/
|
|
510
|
-
|
|
511
|
-
return this._sendTransaction(
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
exportBalanceHistory(input) {
|
|
514
|
+
return this._sendTransaction(import_txs.APIFunctions.exportBalanceHistory, input);
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @param {ExportTokenManyTxInput} input
|
|
519
|
+
* @returns {StreamPromise<ExportTokenManyTxOutput>}
|
|
520
|
+
*
|
|
521
|
+
*/
|
|
522
|
+
exportTokenMany(input) {
|
|
523
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTokenMany, input != null ? input : {});
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @param {ExportTransferGroupManyTxInput} input
|
|
528
|
+
* @returns {StreamPromise<ExportTransferGroupManyTxOutput>}
|
|
529
|
+
*
|
|
530
|
+
*/
|
|
531
|
+
exportTransferGroupMany(input) {
|
|
532
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTransferGroupMany, input != null ? input : {});
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @param {ExportTransferManyTxInput} input
|
|
537
|
+
* @returns {StreamPromise<ExportTransferManyTxOutput>}
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
exportTransferMany(input) {
|
|
541
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTransferMany, input != null ? input : {});
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @param {ExportWalletManyTxInput} input
|
|
546
|
+
* @returns {StreamPromise<ExportWalletManyTxOutput>}
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
exportWalletMany(input) {
|
|
550
|
+
return this._sendTransaction(import_txs.APIFunctions.exportWalletMany, input != null ? input : {});
|
|
515
551
|
}
|
|
516
552
|
/**
|
|
517
553
|
*
|
|
@@ -520,7 +556,7 @@ var BaseClient = class {
|
|
|
520
556
|
*
|
|
521
557
|
*/
|
|
522
558
|
findBalanceMany(input) {
|
|
523
|
-
return this._sendTransaction(import_txs.APIFunctions.findBalanceMany, input);
|
|
559
|
+
return this._sendTransaction(import_txs.APIFunctions.findBalanceMany, input != null ? input : {});
|
|
524
560
|
}
|
|
525
561
|
/**
|
|
526
562
|
*
|
|
@@ -531,7 +567,7 @@ var BaseClient = class {
|
|
|
531
567
|
findTokenMany(input) {
|
|
532
568
|
return this._sendTransaction(
|
|
533
569
|
import_txs.APIFunctions.findTokenMany,
|
|
534
|
-
input
|
|
570
|
+
input != null ? input : {}
|
|
535
571
|
);
|
|
536
572
|
}
|
|
537
573
|
/**
|
|
@@ -541,7 +577,7 @@ var BaseClient = class {
|
|
|
541
577
|
*
|
|
542
578
|
*/
|
|
543
579
|
findTransferGroupMany(input) {
|
|
544
|
-
return this._sendTransaction(import_txs.APIFunctions.findTransferGroupMany, input);
|
|
580
|
+
return this._sendTransaction(import_txs.APIFunctions.findTransferGroupMany, input != null ? input : {});
|
|
545
581
|
}
|
|
546
582
|
/**
|
|
547
583
|
*
|
|
@@ -550,7 +586,7 @@ var BaseClient = class {
|
|
|
550
586
|
*
|
|
551
587
|
*/
|
|
552
588
|
findTransferMany(input) {
|
|
553
|
-
return this._sendTransaction(import_txs.APIFunctions.findTransferMany, input);
|
|
589
|
+
return this._sendTransaction(import_txs.APIFunctions.findTransferMany, input != null ? input : {});
|
|
554
590
|
}
|
|
555
591
|
/**
|
|
556
592
|
*
|
|
@@ -561,7 +597,7 @@ var BaseClient = class {
|
|
|
561
597
|
findWalletMany(input) {
|
|
562
598
|
return this._sendTransaction(
|
|
563
599
|
import_txs.APIFunctions.findWalletMany,
|
|
564
|
-
input
|
|
600
|
+
input != null ? input : {}
|
|
565
601
|
);
|
|
566
602
|
}
|
|
567
603
|
/**
|
|
@@ -596,21 +632,15 @@ var BaseClient = class {
|
|
|
596
632
|
}
|
|
597
633
|
/**
|
|
598
634
|
*
|
|
599
|
-
* @param {
|
|
600
|
-
* @returns {StreamPromise<
|
|
601
|
-
*
|
|
602
|
-
*/
|
|
603
|
-
getDatabaseExportProgress(input) {
|
|
604
|
-
return this._sendTransaction(import_txs.APIFunctions.getDatabaseExportProgress, input);
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
*
|
|
608
|
-
* @param {GetDatabaseImportProgressTxInput} input
|
|
609
|
-
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
635
|
+
* @param {GetExportTxInput} input
|
|
636
|
+
* @returns {StreamPromise<GetExportTxOutput>}
|
|
610
637
|
*
|
|
611
638
|
*/
|
|
612
|
-
|
|
613
|
-
return this._sendTransaction(
|
|
639
|
+
getExport(input) {
|
|
640
|
+
return this._sendTransaction(
|
|
641
|
+
import_txs.APIFunctions.getExport,
|
|
642
|
+
input
|
|
643
|
+
);
|
|
614
644
|
}
|
|
615
645
|
/**
|
|
616
646
|
*
|
|
@@ -621,7 +651,7 @@ var BaseClient = class {
|
|
|
621
651
|
getFlags(input) {
|
|
622
652
|
return this._sendTransaction(
|
|
623
653
|
import_txs.APIFunctions.getFlags,
|
|
624
|
-
input
|
|
654
|
+
input != null ? input : {}
|
|
625
655
|
);
|
|
626
656
|
}
|
|
627
657
|
/**
|
|
@@ -633,7 +663,7 @@ var BaseClient = class {
|
|
|
633
663
|
getStatistics(input) {
|
|
634
664
|
return this._sendTransaction(
|
|
635
665
|
import_txs.APIFunctions.getStatistics,
|
|
636
|
-
input
|
|
666
|
+
input != null ? input : {}
|
|
637
667
|
);
|
|
638
668
|
}
|
|
639
669
|
/**
|
|
@@ -746,35 +776,14 @@ var BaseClient = class {
|
|
|
746
776
|
}
|
|
747
777
|
/**
|
|
748
778
|
*
|
|
749
|
-
* @param {
|
|
750
|
-
* @returns {StreamPromise<
|
|
751
|
-
*
|
|
752
|
-
*/
|
|
753
|
-
importDatabase(input) {
|
|
754
|
-
return this._sendTransaction(
|
|
755
|
-
import_txs.APIFunctions.importDatabase,
|
|
756
|
-
input
|
|
757
|
-
);
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
*
|
|
761
|
-
* @param {ListDatabaseExportsTxInput} input
|
|
762
|
-
* @returns {StreamPromise<ListDatabaseExportsTxOutput>}
|
|
779
|
+
* @param {ListExportManyTxInput} input
|
|
780
|
+
* @returns {StreamPromise<ListExportManyTxOutput>}
|
|
763
781
|
*
|
|
764
782
|
*/
|
|
765
|
-
|
|
766
|
-
return this._sendTransaction(import_txs.APIFunctions.listDatabaseExports, input);
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
*
|
|
770
|
-
* @param {QueryTxInput} input
|
|
771
|
-
* @returns {StreamPromise<QueryTxOutput>}
|
|
772
|
-
*
|
|
773
|
-
*/
|
|
774
|
-
query(input) {
|
|
783
|
+
listExportMany(input) {
|
|
775
784
|
return this._sendTransaction(
|
|
776
|
-
import_txs.APIFunctions.
|
|
777
|
-
input
|
|
785
|
+
import_txs.APIFunctions.listExportMany,
|
|
786
|
+
input != null ? input : {}
|
|
778
787
|
);
|
|
779
788
|
}
|
|
780
789
|
/**
|
|
@@ -786,7 +795,7 @@ var BaseClient = class {
|
|
|
786
795
|
queryLogs(input) {
|
|
787
796
|
return this._sendTransaction(
|
|
788
797
|
import_txs.APIFunctions.queryLogs,
|
|
789
|
-
input
|
|
798
|
+
input != null ? input : {}
|
|
790
799
|
);
|
|
791
800
|
}
|
|
792
801
|
/**
|
|
@@ -798,7 +807,7 @@ var BaseClient = class {
|
|
|
798
807
|
resetDatabase(input) {
|
|
799
808
|
return this._sendTransaction(
|
|
800
809
|
import_txs.APIFunctions.resetDatabase,
|
|
801
|
-
input
|
|
810
|
+
input != null ? input : {}
|
|
802
811
|
);
|
|
803
812
|
}
|
|
804
813
|
/**
|
|
@@ -856,7 +865,7 @@ var BaseClient = class {
|
|
|
856
865
|
*
|
|
857
866
|
*/
|
|
858
867
|
startTransaction(input) {
|
|
859
|
-
return this._sendTransaction(import_txs.APIFunctions.startTransaction, input);
|
|
868
|
+
return this._sendTransaction(import_txs.APIFunctions.startTransaction, input != null ? input : {});
|
|
860
869
|
}
|
|
861
870
|
/**
|
|
862
871
|
*
|
|
@@ -195,10 +195,13 @@ var BaseClient = class {
|
|
|
195
195
|
if (!isValid) {
|
|
196
196
|
throw error;
|
|
197
197
|
}
|
|
198
|
+
return this._sendRaw(name, inputCopy);
|
|
199
|
+
}
|
|
200
|
+
_sendRaw(method, params) {
|
|
198
201
|
const jsonRpcMessage = {
|
|
199
202
|
jsonrpc: JSONRPC.version,
|
|
200
|
-
method
|
|
201
|
-
params
|
|
203
|
+
method,
|
|
204
|
+
params,
|
|
202
205
|
id: getRandomHex()
|
|
203
206
|
};
|
|
204
207
|
if (this.hooks.preflight && this.hooks.preflight(jsonRpcMessage) === false) {
|
|
@@ -381,7 +384,7 @@ var BaseClient = class {
|
|
|
381
384
|
*
|
|
382
385
|
*/
|
|
383
386
|
authenticationCheck(input) {
|
|
384
|
-
return this._sendTransaction(APIFunctions.authenticationCheck, input);
|
|
387
|
+
return this._sendTransaction(APIFunctions.authenticationCheck, input != null ? input : {});
|
|
385
388
|
}
|
|
386
389
|
/**
|
|
387
390
|
*
|
|
@@ -456,7 +459,7 @@ var BaseClient = class {
|
|
|
456
459
|
*
|
|
457
460
|
*/
|
|
458
461
|
createTransferGroup(input) {
|
|
459
|
-
return this._sendTransaction(APIFunctions.createTransferGroup, input);
|
|
462
|
+
return this._sendTransaction(APIFunctions.createTransferGroup, input != null ? input : {});
|
|
460
463
|
}
|
|
461
464
|
/**
|
|
462
465
|
*
|
|
@@ -490,15 +493,48 @@ var BaseClient = class {
|
|
|
490
493
|
}
|
|
491
494
|
/**
|
|
492
495
|
*
|
|
493
|
-
* @param {
|
|
494
|
-
* @returns {StreamPromise<
|
|
496
|
+
* @param {ExportBalanceHistoryTxInput} input
|
|
497
|
+
* @returns {StreamPromise<ExportBalanceHistoryTxOutput>}
|
|
495
498
|
*
|
|
496
499
|
*/
|
|
497
|
-
|
|
498
|
-
return this._sendTransaction(
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
exportBalanceHistory(input) {
|
|
501
|
+
return this._sendTransaction(APIFunctions.exportBalanceHistory, input);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @param {ExportTokenManyTxInput} input
|
|
506
|
+
* @returns {StreamPromise<ExportTokenManyTxOutput>}
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
exportTokenMany(input) {
|
|
510
|
+
return this._sendTransaction(APIFunctions.exportTokenMany, input != null ? input : {});
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @param {ExportTransferGroupManyTxInput} input
|
|
515
|
+
* @returns {StreamPromise<ExportTransferGroupManyTxOutput>}
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
exportTransferGroupMany(input) {
|
|
519
|
+
return this._sendTransaction(APIFunctions.exportTransferGroupMany, input != null ? input : {});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @param {ExportTransferManyTxInput} input
|
|
524
|
+
* @returns {StreamPromise<ExportTransferManyTxOutput>}
|
|
525
|
+
*
|
|
526
|
+
*/
|
|
527
|
+
exportTransferMany(input) {
|
|
528
|
+
return this._sendTransaction(APIFunctions.exportTransferMany, input != null ? input : {});
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @param {ExportWalletManyTxInput} input
|
|
533
|
+
* @returns {StreamPromise<ExportWalletManyTxOutput>}
|
|
534
|
+
*
|
|
535
|
+
*/
|
|
536
|
+
exportWalletMany(input) {
|
|
537
|
+
return this._sendTransaction(APIFunctions.exportWalletMany, input != null ? input : {});
|
|
502
538
|
}
|
|
503
539
|
/**
|
|
504
540
|
*
|
|
@@ -507,7 +543,7 @@ var BaseClient = class {
|
|
|
507
543
|
*
|
|
508
544
|
*/
|
|
509
545
|
findBalanceMany(input) {
|
|
510
|
-
return this._sendTransaction(APIFunctions.findBalanceMany, input);
|
|
546
|
+
return this._sendTransaction(APIFunctions.findBalanceMany, input != null ? input : {});
|
|
511
547
|
}
|
|
512
548
|
/**
|
|
513
549
|
*
|
|
@@ -518,7 +554,7 @@ var BaseClient = class {
|
|
|
518
554
|
findTokenMany(input) {
|
|
519
555
|
return this._sendTransaction(
|
|
520
556
|
APIFunctions.findTokenMany,
|
|
521
|
-
input
|
|
557
|
+
input != null ? input : {}
|
|
522
558
|
);
|
|
523
559
|
}
|
|
524
560
|
/**
|
|
@@ -528,7 +564,7 @@ var BaseClient = class {
|
|
|
528
564
|
*
|
|
529
565
|
*/
|
|
530
566
|
findTransferGroupMany(input) {
|
|
531
|
-
return this._sendTransaction(APIFunctions.findTransferGroupMany, input);
|
|
567
|
+
return this._sendTransaction(APIFunctions.findTransferGroupMany, input != null ? input : {});
|
|
532
568
|
}
|
|
533
569
|
/**
|
|
534
570
|
*
|
|
@@ -537,7 +573,7 @@ var BaseClient = class {
|
|
|
537
573
|
*
|
|
538
574
|
*/
|
|
539
575
|
findTransferMany(input) {
|
|
540
|
-
return this._sendTransaction(APIFunctions.findTransferMany, input);
|
|
576
|
+
return this._sendTransaction(APIFunctions.findTransferMany, input != null ? input : {});
|
|
541
577
|
}
|
|
542
578
|
/**
|
|
543
579
|
*
|
|
@@ -548,7 +584,7 @@ var BaseClient = class {
|
|
|
548
584
|
findWalletMany(input) {
|
|
549
585
|
return this._sendTransaction(
|
|
550
586
|
APIFunctions.findWalletMany,
|
|
551
|
-
input
|
|
587
|
+
input != null ? input : {}
|
|
552
588
|
);
|
|
553
589
|
}
|
|
554
590
|
/**
|
|
@@ -583,21 +619,15 @@ var BaseClient = class {
|
|
|
583
619
|
}
|
|
584
620
|
/**
|
|
585
621
|
*
|
|
586
|
-
* @param {
|
|
587
|
-
* @returns {StreamPromise<
|
|
588
|
-
*
|
|
589
|
-
*/
|
|
590
|
-
getDatabaseExportProgress(input) {
|
|
591
|
-
return this._sendTransaction(APIFunctions.getDatabaseExportProgress, input);
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @param {GetDatabaseImportProgressTxInput} input
|
|
596
|
-
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
622
|
+
* @param {GetExportTxInput} input
|
|
623
|
+
* @returns {StreamPromise<GetExportTxOutput>}
|
|
597
624
|
*
|
|
598
625
|
*/
|
|
599
|
-
|
|
600
|
-
return this._sendTransaction(
|
|
626
|
+
getExport(input) {
|
|
627
|
+
return this._sendTransaction(
|
|
628
|
+
APIFunctions.getExport,
|
|
629
|
+
input
|
|
630
|
+
);
|
|
601
631
|
}
|
|
602
632
|
/**
|
|
603
633
|
*
|
|
@@ -608,7 +638,7 @@ var BaseClient = class {
|
|
|
608
638
|
getFlags(input) {
|
|
609
639
|
return this._sendTransaction(
|
|
610
640
|
APIFunctions.getFlags,
|
|
611
|
-
input
|
|
641
|
+
input != null ? input : {}
|
|
612
642
|
);
|
|
613
643
|
}
|
|
614
644
|
/**
|
|
@@ -620,7 +650,7 @@ var BaseClient = class {
|
|
|
620
650
|
getStatistics(input) {
|
|
621
651
|
return this._sendTransaction(
|
|
622
652
|
APIFunctions.getStatistics,
|
|
623
|
-
input
|
|
653
|
+
input != null ? input : {}
|
|
624
654
|
);
|
|
625
655
|
}
|
|
626
656
|
/**
|
|
@@ -733,35 +763,14 @@ var BaseClient = class {
|
|
|
733
763
|
}
|
|
734
764
|
/**
|
|
735
765
|
*
|
|
736
|
-
* @param {
|
|
737
|
-
* @returns {StreamPromise<
|
|
738
|
-
*
|
|
739
|
-
*/
|
|
740
|
-
importDatabase(input) {
|
|
741
|
-
return this._sendTransaction(
|
|
742
|
-
APIFunctions.importDatabase,
|
|
743
|
-
input
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
*
|
|
748
|
-
* @param {ListDatabaseExportsTxInput} input
|
|
749
|
-
* @returns {StreamPromise<ListDatabaseExportsTxOutput>}
|
|
766
|
+
* @param {ListExportManyTxInput} input
|
|
767
|
+
* @returns {StreamPromise<ListExportManyTxOutput>}
|
|
750
768
|
*
|
|
751
769
|
*/
|
|
752
|
-
|
|
753
|
-
return this._sendTransaction(APIFunctions.listDatabaseExports, input);
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
*
|
|
757
|
-
* @param {QueryTxInput} input
|
|
758
|
-
* @returns {StreamPromise<QueryTxOutput>}
|
|
759
|
-
*
|
|
760
|
-
*/
|
|
761
|
-
query(input) {
|
|
770
|
+
listExportMany(input) {
|
|
762
771
|
return this._sendTransaction(
|
|
763
|
-
APIFunctions.
|
|
764
|
-
input
|
|
772
|
+
APIFunctions.listExportMany,
|
|
773
|
+
input != null ? input : {}
|
|
765
774
|
);
|
|
766
775
|
}
|
|
767
776
|
/**
|
|
@@ -773,7 +782,7 @@ var BaseClient = class {
|
|
|
773
782
|
queryLogs(input) {
|
|
774
783
|
return this._sendTransaction(
|
|
775
784
|
APIFunctions.queryLogs,
|
|
776
|
-
input
|
|
785
|
+
input != null ? input : {}
|
|
777
786
|
);
|
|
778
787
|
}
|
|
779
788
|
/**
|
|
@@ -785,7 +794,7 @@ var BaseClient = class {
|
|
|
785
794
|
resetDatabase(input) {
|
|
786
795
|
return this._sendTransaction(
|
|
787
796
|
APIFunctions.resetDatabase,
|
|
788
|
-
input
|
|
797
|
+
input != null ? input : {}
|
|
789
798
|
);
|
|
790
799
|
}
|
|
791
800
|
/**
|
|
@@ -843,7 +852,7 @@ var BaseClient = class {
|
|
|
843
852
|
*
|
|
844
853
|
*/
|
|
845
854
|
startTransaction(input) {
|
|
846
|
-
return this._sendTransaction(APIFunctions.startTransaction, input);
|
|
855
|
+
return this._sendTransaction(APIFunctions.startTransaction, input != null ? input : {});
|
|
847
856
|
}
|
|
848
857
|
/**
|
|
849
858
|
*
|