@stellar/stellar-sdk 12.2.0 → 13.0.0-beta.1
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/CHANGELOG.md +57 -0
- package/README.md +30 -8
- package/dist/stellar-sdk-minimal.js +45947 -0
- package/dist/stellar-sdk-minimal.min.js +2 -0
- package/dist/stellar-sdk-minimal.min.js.LICENSE.txt +69 -0
- package/dist/stellar-sdk-no-axios.js +56586 -0
- package/dist/stellar-sdk-no-axios.min.js +2 -0
- package/dist/stellar-sdk-no-axios.min.js.LICENSE.txt +71 -0
- package/dist/stellar-sdk-no-eventsource.js +49760 -0
- package/dist/stellar-sdk-no-eventsource.min.js +2 -0
- package/dist/stellar-sdk-no-eventsource.min.js.LICENSE.txt +69 -0
- package/dist/stellar-sdk.js +28423 -27354
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/browser.d.ts +2 -2
- package/lib/browser.js +5 -7
- package/lib/config.d.ts +31 -19
- package/lib/contract/assembled_transaction.d.ts +23 -17
- package/lib/contract/assembled_transaction.js +177 -154
- package/lib/contract/basic_node_signer.d.ts +6 -1
- package/lib/contract/client.d.ts +24 -24
- package/lib/contract/rust_result.d.ts +22 -12
- package/lib/contract/sent_transaction.d.ts +7 -1
- package/lib/contract/sent_transaction.js +2 -2
- package/lib/contract/spec.d.ts +8 -14
- package/lib/contract/types.d.ts +81 -13
- package/lib/contract/utils.d.ts +8 -1
- package/lib/errors/account_requires_memo.d.ts +24 -0
- package/lib/errors/account_requires_memo.js +38 -0
- package/lib/errors/bad_request.d.ts +14 -0
- package/lib/errors/bad_request.js +34 -0
- package/lib/errors/bad_response.d.ts +17 -0
- package/lib/errors/bad_response.js +34 -0
- package/lib/errors/index.d.ts +5 -0
- package/lib/errors/index.js +60 -0
- package/lib/errors/network.d.ts +33 -0
- package/lib/{errors.js → errors/network.js} +1 -59
- package/lib/errors/not_found.d.ts +14 -0
- package/lib/errors/not_found.js +34 -0
- package/lib/federation/api.d.ts +21 -0
- package/lib/federation/index.d.ts +1 -1
- package/lib/federation/index.js +16 -6
- package/lib/federation/server.d.ts +36 -38
- package/lib/federation/server.js +2 -2
- package/lib/horizon/account_call_builder.d.ts +10 -8
- package/lib/horizon/account_response.d.ts +5 -2
- package/lib/horizon/assets_call_builder.d.ts +3 -2
- package/lib/horizon/call_builder.js +17 -10
- package/lib/horizon/claimable_balances_call_builder.d.ts +10 -8
- package/lib/horizon/effect_call_builder.d.ts +8 -7
- package/lib/horizon/horizon_axios_client.d.ts +13 -6
- package/lib/horizon/horizon_axios_client.js +16 -4
- package/lib/horizon/index.d.ts +2 -1
- package/lib/horizon/index.js +1 -1
- package/lib/horizon/ledger_call_builder.d.ts +6 -4
- package/lib/horizon/liquidity_pool_call_builder.d.ts +3 -2
- package/lib/horizon/offer_call_builder.d.ts +12 -10
- package/lib/horizon/operation_call_builder.d.ts +11 -9
- package/lib/horizon/orderbook_call_builder.d.ts +7 -2
- package/lib/horizon/path_call_builder.d.ts +7 -2
- package/lib/horizon/payment_call_builder.d.ts +10 -6
- package/lib/horizon/server.d.ts +64 -55
- package/lib/horizon/server.js +6 -5
- package/lib/horizon/strict_receive_path_call_builder.d.ts +7 -2
- package/lib/horizon/strict_send_path_call_builder.d.ts +7 -2
- package/lib/horizon/trade_aggregation_call_builder.d.ts +4 -2
- package/lib/horizon/trades_call_builder.d.ts +8 -5
- package/lib/horizon/transaction_call_builder.d.ts +10 -7
- package/lib/http-client/axios-client.d.ts +2 -0
- package/lib/http-client/axios-client.js +10 -0
- package/lib/http-client/fetch-client.d.ts +11 -0
- package/lib/http-client/fetch-client.js +229 -0
- package/lib/http-client/index.d.ts +5 -0
- package/lib/http-client/index.js +33 -0
- package/lib/http-client/types.d.ts +69 -0
- package/lib/http-client/types.js +34 -0
- package/lib/index.d.ts +3 -4
- package/lib/index.js +7 -1
- package/lib/minimal/browser.d.ts +6 -0
- package/lib/minimal/browser.js +35 -0
- package/lib/minimal/config.d.ts +64 -0
- package/lib/minimal/config.js +51 -0
- package/lib/minimal/contract/assembled_transaction.d.ts +555 -0
- package/lib/minimal/contract/assembled_transaction.js +752 -0
- package/lib/minimal/contract/basic_node_signer.d.ts +17 -0
- package/lib/minimal/contract/basic_node_signer.js +52 -0
- package/lib/minimal/contract/client.d.ts +52 -0
- package/lib/minimal/contract/client.js +180 -0
- package/lib/minimal/contract/index.d.ts +7 -0
- package/lib/minimal/contract/index.js +82 -0
- package/lib/minimal/contract/rust_result.d.ts +81 -0
- package/lib/minimal/contract/rust_result.js +66 -0
- package/lib/minimal/contract/sent_transaction.d.ts +85 -0
- package/lib/minimal/contract/sent_transaction.js +151 -0
- package/lib/minimal/contract/spec.d.ts +152 -0
- package/lib/minimal/contract/spec.js +1020 -0
- package/lib/minimal/contract/types.d.ts +180 -0
- package/lib/minimal/contract/types.js +8 -0
- package/lib/minimal/contract/utils.d.ts +46 -0
- package/lib/minimal/contract/utils.js +123 -0
- package/lib/minimal/errors/account_requires_memo.d.ts +24 -0
- package/lib/minimal/errors/account_requires_memo.js +38 -0
- package/lib/minimal/errors/bad_request.d.ts +14 -0
- package/lib/minimal/errors/bad_request.js +34 -0
- package/lib/minimal/errors/bad_response.d.ts +17 -0
- package/lib/minimal/errors/bad_response.js +34 -0
- package/lib/minimal/errors/index.d.ts +5 -0
- package/lib/minimal/errors/index.js +60 -0
- package/lib/minimal/errors/network.d.ts +33 -0
- package/lib/minimal/errors/network.js +41 -0
- package/lib/minimal/errors/not_found.d.ts +14 -0
- package/lib/minimal/errors/not_found.js +34 -0
- package/lib/minimal/federation/api.d.ts +32 -0
- package/lib/minimal/federation/api.js +7 -0
- package/lib/minimal/federation/index.d.ts +2 -0
- package/lib/minimal/federation/index.js +34 -0
- package/lib/minimal/federation/server.d.ts +116 -0
- package/lib/minimal/federation/server.js +252 -0
- package/lib/minimal/friendbot/index.d.ts +5 -0
- package/lib/minimal/friendbot/index.js +7 -0
- package/lib/minimal/horizon/account_call_builder.d.ts +56 -0
- package/lib/minimal/horizon/account_call_builder.js +62 -0
- package/lib/minimal/horizon/account_response.d.ts +61 -0
- package/lib/minimal/horizon/account_response.js +49 -0
- package/lib/minimal/horizon/assets_call_builder.d.ts +27 -0
- package/lib/minimal/horizon/assets_call_builder.js +43 -0
- package/lib/minimal/horizon/call_builder.d.ts +128 -0
- package/lib/minimal/horizon/call_builder.js +362 -0
- package/lib/minimal/horizon/claimable_balances_call_builder.d.ts +50 -0
- package/lib/minimal/horizon/claimable_balances_call_builder.js +56 -0
- package/lib/minimal/horizon/effect_call_builder.d.ts +53 -0
- package/lib/minimal/horizon/effect_call_builder.js +56 -0
- package/lib/minimal/horizon/friendbot_builder.d.ts +4 -0
- package/lib/minimal/horizon/friendbot_builder.js +32 -0
- package/lib/minimal/horizon/horizon_api.d.ts +527 -0
- package/lib/minimal/horizon/horizon_api.js +96 -0
- package/lib/minimal/horizon/horizon_axios_client.d.ts +37 -0
- package/lib/minimal/horizon/horizon_axios_client.js +60 -0
- package/lib/minimal/horizon/index.d.ts +8 -0
- package/lib/minimal/horizon/index.js +78 -0
- package/lib/minimal/horizon/ledger_call_builder.d.ts +23 -0
- package/lib/minimal/horizon/ledger_call_builder.js +37 -0
- package/lib/minimal/horizon/liquidity_pool_call_builder.d.ts +37 -0
- package/lib/minimal/horizon/liquidity_pool_call_builder.js +59 -0
- package/lib/minimal/horizon/offer_call_builder.d.ts +65 -0
- package/lib/minimal/horizon/offer_call_builder.js +79 -0
- package/lib/minimal/horizon/operation_call_builder.d.ts +69 -0
- package/lib/minimal/horizon/operation_call_builder.js +69 -0
- package/lib/minimal/horizon/orderbook_call_builder.d.ts +20 -0
- package/lib/minimal/horizon/orderbook_call_builder.js +45 -0
- package/lib/minimal/horizon/path_call_builder.d.ts +35 -0
- package/lib/minimal/horizon/path_call_builder.js +41 -0
- package/lib/minimal/horizon/payment_call_builder.d.ts +39 -0
- package/lib/minimal/horizon/payment_call_builder.js +46 -0
- package/lib/minimal/horizon/server.d.ts +389 -0
- package/lib/minimal/horizon/server.js +550 -0
- package/lib/minimal/horizon/server_api.d.ts +278 -0
- package/lib/minimal/horizon/server_api.js +19 -0
- package/lib/minimal/horizon/strict_receive_path_call_builder.d.ts +38 -0
- package/lib/minimal/horizon/strict_receive_path_call_builder.js +50 -0
- package/lib/minimal/horizon/strict_send_path_call_builder.d.ts +38 -0
- package/lib/minimal/horizon/strict_send_path_call_builder.js +50 -0
- package/lib/minimal/horizon/trade_aggregation_call_builder.d.ts +49 -0
- package/lib/minimal/horizon/trade_aggregation_call_builder.js +76 -0
- package/lib/minimal/horizon/trades_call_builder.d.ts +52 -0
- package/lib/minimal/horizon/trades_call_builder.js +72 -0
- package/lib/minimal/horizon/transaction_call_builder.d.ts +60 -0
- package/lib/minimal/horizon/transaction_call_builder.js +64 -0
- package/lib/minimal/horizon/types/account.d.ts +5 -0
- package/lib/minimal/horizon/types/account.js +5 -0
- package/lib/minimal/horizon/types/assets.d.ts +19 -0
- package/lib/minimal/horizon/types/assets.js +5 -0
- package/lib/minimal/horizon/types/effects.d.ts +285 -0
- package/lib/minimal/horizon/types/effects.js +62 -0
- package/lib/minimal/horizon/types/offer.d.ts +20 -0
- package/lib/minimal/horizon/types/offer.js +5 -0
- package/lib/minimal/horizon/types/trade.d.ts +13 -0
- package/lib/minimal/horizon/types/trade.js +5 -0
- package/lib/minimal/http-client/axios-client.d.ts +2 -0
- package/lib/minimal/http-client/axios-client.js +10 -0
- package/lib/minimal/http-client/fetch-client.d.ts +11 -0
- package/lib/minimal/http-client/fetch-client.js +229 -0
- package/lib/minimal/http-client/index.d.ts +5 -0
- package/lib/minimal/http-client/index.js +33 -0
- package/lib/minimal/http-client/types.d.ts +69 -0
- package/lib/minimal/http-client/types.js +34 -0
- package/lib/minimal/index.d.ts +36 -0
- package/lib/minimal/index.js +83 -0
- package/lib/minimal/rpc/api.d.ts +359 -0
- package/lib/minimal/rpc/api.js +32 -0
- package/lib/minimal/rpc/axios.d.ts +4 -0
- package/lib/minimal/rpc/axios.js +15 -0
- package/lib/minimal/rpc/browser.d.ts +4 -0
- package/lib/minimal/rpc/browser.js +27 -0
- package/lib/minimal/rpc/index.d.ts +8 -0
- package/lib/minimal/rpc/index.js +72 -0
- package/lib/minimal/rpc/jsonrpc.d.ts +35 -0
- package/lib/minimal/rpc/jsonrpc.js +52 -0
- package/lib/minimal/rpc/parsers.d.ts +39 -0
- package/lib/minimal/rpc/parsers.js +155 -0
- package/lib/minimal/rpc/server.d.ts +584 -0
- package/lib/minimal/rpc/server.js +823 -0
- package/lib/minimal/rpc/transaction.d.ts +21 -0
- package/lib/minimal/rpc/transaction.js +53 -0
- package/lib/minimal/rpc/utils.d.ts +1 -0
- package/lib/minimal/rpc/utils.js +9 -0
- package/lib/minimal/stellartoml/index.d.ts +131 -0
- package/lib/minimal/stellartoml/index.js +77 -0
- package/lib/minimal/utils.d.ts +19 -0
- package/lib/minimal/utils.js +31 -0
- package/lib/minimal/webauth/errors.d.ts +13 -0
- package/lib/minimal/webauth/errors.js +36 -0
- package/lib/minimal/webauth/index.d.ts +2 -0
- package/lib/minimal/webauth/index.js +27 -0
- package/lib/minimal/webauth/utils.d.ts +307 -0
- package/lib/minimal/webauth/utils.js +332 -0
- package/lib/no-axios/browser.d.ts +6 -0
- package/lib/no-axios/browser.js +35 -0
- package/lib/no-axios/config.d.ts +64 -0
- package/lib/no-axios/config.js +51 -0
- package/lib/no-axios/contract/assembled_transaction.d.ts +555 -0
- package/lib/no-axios/contract/assembled_transaction.js +752 -0
- package/lib/no-axios/contract/basic_node_signer.d.ts +17 -0
- package/lib/no-axios/contract/basic_node_signer.js +52 -0
- package/lib/no-axios/contract/client.d.ts +52 -0
- package/lib/no-axios/contract/client.js +180 -0
- package/lib/no-axios/contract/index.d.ts +7 -0
- package/lib/no-axios/contract/index.js +82 -0
- package/lib/no-axios/contract/rust_result.d.ts +81 -0
- package/lib/no-axios/contract/rust_result.js +66 -0
- package/lib/no-axios/contract/sent_transaction.d.ts +85 -0
- package/lib/no-axios/contract/sent_transaction.js +151 -0
- package/lib/no-axios/contract/spec.d.ts +152 -0
- package/lib/no-axios/contract/spec.js +1020 -0
- package/lib/no-axios/contract/types.d.ts +180 -0
- package/lib/no-axios/contract/types.js +8 -0
- package/lib/no-axios/contract/utils.d.ts +46 -0
- package/lib/no-axios/contract/utils.js +123 -0
- package/lib/no-axios/errors/account_requires_memo.d.ts +24 -0
- package/lib/no-axios/errors/account_requires_memo.js +38 -0
- package/lib/no-axios/errors/bad_request.d.ts +14 -0
- package/lib/no-axios/errors/bad_request.js +34 -0
- package/lib/no-axios/errors/bad_response.d.ts +17 -0
- package/lib/no-axios/errors/bad_response.js +34 -0
- package/lib/no-axios/errors/index.d.ts +5 -0
- package/lib/no-axios/errors/index.js +60 -0
- package/lib/no-axios/errors/network.d.ts +33 -0
- package/lib/no-axios/errors/network.js +41 -0
- package/lib/no-axios/errors/not_found.d.ts +14 -0
- package/lib/no-axios/errors/not_found.js +34 -0
- package/lib/no-axios/federation/api.d.ts +32 -0
- package/lib/no-axios/federation/api.js +7 -0
- package/lib/no-axios/federation/index.d.ts +2 -0
- package/lib/no-axios/federation/index.js +34 -0
- package/lib/no-axios/federation/server.d.ts +116 -0
- package/lib/no-axios/federation/server.js +252 -0
- package/lib/no-axios/friendbot/index.d.ts +5 -0
- package/lib/no-axios/friendbot/index.js +7 -0
- package/lib/no-axios/horizon/account_call_builder.d.ts +56 -0
- package/lib/no-axios/horizon/account_call_builder.js +62 -0
- package/lib/no-axios/horizon/account_response.d.ts +61 -0
- package/lib/no-axios/horizon/account_response.js +49 -0
- package/lib/no-axios/horizon/assets_call_builder.d.ts +27 -0
- package/lib/no-axios/horizon/assets_call_builder.js +43 -0
- package/lib/no-axios/horizon/call_builder.d.ts +128 -0
- package/lib/no-axios/horizon/call_builder.js +362 -0
- package/lib/no-axios/horizon/claimable_balances_call_builder.d.ts +50 -0
- package/lib/no-axios/horizon/claimable_balances_call_builder.js +56 -0
- package/lib/no-axios/horizon/effect_call_builder.d.ts +53 -0
- package/lib/no-axios/horizon/effect_call_builder.js +56 -0
- package/lib/no-axios/horizon/friendbot_builder.d.ts +4 -0
- package/lib/no-axios/horizon/friendbot_builder.js +32 -0
- package/lib/no-axios/horizon/horizon_api.d.ts +527 -0
- package/lib/no-axios/horizon/horizon_api.js +96 -0
- package/lib/no-axios/horizon/horizon_axios_client.d.ts +37 -0
- package/lib/no-axios/horizon/horizon_axios_client.js +60 -0
- package/lib/no-axios/horizon/index.d.ts +8 -0
- package/lib/no-axios/horizon/index.js +78 -0
- package/lib/no-axios/horizon/ledger_call_builder.d.ts +23 -0
- package/lib/no-axios/horizon/ledger_call_builder.js +37 -0
- package/lib/no-axios/horizon/liquidity_pool_call_builder.d.ts +37 -0
- package/lib/no-axios/horizon/liquidity_pool_call_builder.js +59 -0
- package/lib/no-axios/horizon/offer_call_builder.d.ts +65 -0
- package/lib/no-axios/horizon/offer_call_builder.js +79 -0
- package/lib/no-axios/horizon/operation_call_builder.d.ts +69 -0
- package/lib/no-axios/horizon/operation_call_builder.js +69 -0
- package/lib/no-axios/horizon/orderbook_call_builder.d.ts +20 -0
- package/lib/no-axios/horizon/orderbook_call_builder.js +45 -0
- package/lib/no-axios/horizon/path_call_builder.d.ts +35 -0
- package/lib/no-axios/horizon/path_call_builder.js +41 -0
- package/lib/no-axios/horizon/payment_call_builder.d.ts +39 -0
- package/lib/no-axios/horizon/payment_call_builder.js +46 -0
- package/lib/no-axios/horizon/server.d.ts +389 -0
- package/lib/no-axios/horizon/server.js +550 -0
- package/lib/no-axios/horizon/server_api.d.ts +278 -0
- package/lib/no-axios/horizon/server_api.js +19 -0
- package/lib/no-axios/horizon/strict_receive_path_call_builder.d.ts +38 -0
- package/lib/no-axios/horizon/strict_receive_path_call_builder.js +50 -0
- package/lib/no-axios/horizon/strict_send_path_call_builder.d.ts +38 -0
- package/lib/no-axios/horizon/strict_send_path_call_builder.js +50 -0
- package/lib/no-axios/horizon/trade_aggregation_call_builder.d.ts +49 -0
- package/lib/no-axios/horizon/trade_aggregation_call_builder.js +76 -0
- package/lib/no-axios/horizon/trades_call_builder.d.ts +52 -0
- package/lib/no-axios/horizon/trades_call_builder.js +72 -0
- package/lib/no-axios/horizon/transaction_call_builder.d.ts +60 -0
- package/lib/no-axios/horizon/transaction_call_builder.js +64 -0
- package/lib/no-axios/horizon/types/account.d.ts +5 -0
- package/lib/no-axios/horizon/types/account.js +5 -0
- package/lib/no-axios/horizon/types/assets.d.ts +19 -0
- package/lib/no-axios/horizon/types/assets.js +5 -0
- package/lib/no-axios/horizon/types/effects.d.ts +285 -0
- package/lib/no-axios/horizon/types/effects.js +62 -0
- package/lib/no-axios/horizon/types/offer.d.ts +20 -0
- package/lib/no-axios/horizon/types/offer.js +5 -0
- package/lib/no-axios/horizon/types/trade.d.ts +13 -0
- package/lib/no-axios/horizon/types/trade.js +5 -0
- package/lib/no-axios/http-client/axios-client.d.ts +2 -0
- package/lib/no-axios/http-client/axios-client.js +10 -0
- package/lib/no-axios/http-client/fetch-client.d.ts +11 -0
- package/lib/no-axios/http-client/fetch-client.js +229 -0
- package/lib/no-axios/http-client/index.d.ts +5 -0
- package/lib/no-axios/http-client/index.js +33 -0
- package/lib/no-axios/http-client/types.d.ts +69 -0
- package/lib/no-axios/http-client/types.js +34 -0
- package/lib/no-axios/index.d.ts +36 -0
- package/lib/no-axios/index.js +83 -0
- package/lib/no-axios/rpc/api.d.ts +359 -0
- package/lib/no-axios/rpc/api.js +32 -0
- package/lib/no-axios/rpc/axios.d.ts +4 -0
- package/lib/no-axios/rpc/axios.js +15 -0
- package/lib/no-axios/rpc/browser.d.ts +4 -0
- package/lib/no-axios/rpc/browser.js +27 -0
- package/lib/no-axios/rpc/index.d.ts +8 -0
- package/lib/no-axios/rpc/index.js +72 -0
- package/lib/no-axios/rpc/jsonrpc.d.ts +35 -0
- package/lib/no-axios/rpc/jsonrpc.js +52 -0
- package/lib/no-axios/rpc/parsers.d.ts +39 -0
- package/lib/no-axios/rpc/parsers.js +155 -0
- package/lib/no-axios/rpc/server.d.ts +584 -0
- package/lib/no-axios/rpc/server.js +823 -0
- package/lib/no-axios/rpc/transaction.d.ts +21 -0
- package/lib/no-axios/rpc/transaction.js +53 -0
- package/lib/no-axios/rpc/utils.d.ts +1 -0
- package/lib/no-axios/rpc/utils.js +9 -0
- package/lib/no-axios/stellartoml/index.d.ts +131 -0
- package/lib/no-axios/stellartoml/index.js +77 -0
- package/lib/no-axios/utils.d.ts +19 -0
- package/lib/no-axios/utils.js +31 -0
- package/lib/no-axios/webauth/errors.d.ts +13 -0
- package/lib/no-axios/webauth/errors.js +36 -0
- package/lib/no-axios/webauth/index.d.ts +2 -0
- package/lib/no-axios/webauth/index.js +27 -0
- package/lib/no-axios/webauth/utils.d.ts +307 -0
- package/lib/no-axios/webauth/utils.js +332 -0
- package/lib/no-eventsource/browser.d.ts +6 -0
- package/lib/no-eventsource/browser.js +35 -0
- package/lib/no-eventsource/config.d.ts +64 -0
- package/lib/no-eventsource/config.js +51 -0
- package/lib/no-eventsource/contract/assembled_transaction.d.ts +555 -0
- package/lib/no-eventsource/contract/assembled_transaction.js +752 -0
- package/lib/no-eventsource/contract/basic_node_signer.d.ts +17 -0
- package/lib/no-eventsource/contract/basic_node_signer.js +52 -0
- package/lib/no-eventsource/contract/client.d.ts +52 -0
- package/lib/no-eventsource/contract/client.js +180 -0
- package/lib/no-eventsource/contract/index.d.ts +7 -0
- package/lib/no-eventsource/contract/index.js +82 -0
- package/lib/no-eventsource/contract/rust_result.d.ts +81 -0
- package/lib/no-eventsource/contract/rust_result.js +66 -0
- package/lib/no-eventsource/contract/sent_transaction.d.ts +85 -0
- package/lib/no-eventsource/contract/sent_transaction.js +151 -0
- package/lib/no-eventsource/contract/spec.d.ts +152 -0
- package/lib/no-eventsource/contract/spec.js +1020 -0
- package/lib/no-eventsource/contract/types.d.ts +180 -0
- package/lib/no-eventsource/contract/types.js +8 -0
- package/lib/no-eventsource/contract/utils.d.ts +46 -0
- package/lib/no-eventsource/contract/utils.js +123 -0
- package/lib/no-eventsource/errors/account_requires_memo.d.ts +24 -0
- package/lib/no-eventsource/errors/account_requires_memo.js +38 -0
- package/lib/no-eventsource/errors/bad_request.d.ts +14 -0
- package/lib/no-eventsource/errors/bad_request.js +34 -0
- package/lib/no-eventsource/errors/bad_response.d.ts +17 -0
- package/lib/no-eventsource/errors/bad_response.js +34 -0
- package/lib/no-eventsource/errors/index.d.ts +5 -0
- package/lib/no-eventsource/errors/index.js +60 -0
- package/lib/no-eventsource/errors/network.d.ts +33 -0
- package/lib/no-eventsource/errors/network.js +41 -0
- package/lib/no-eventsource/errors/not_found.d.ts +14 -0
- package/lib/no-eventsource/errors/not_found.js +34 -0
- package/lib/no-eventsource/federation/api.d.ts +32 -0
- package/lib/no-eventsource/federation/api.js +7 -0
- package/lib/no-eventsource/federation/index.d.ts +2 -0
- package/lib/no-eventsource/federation/index.js +34 -0
- package/lib/no-eventsource/federation/server.d.ts +116 -0
- package/lib/no-eventsource/federation/server.js +252 -0
- package/lib/no-eventsource/friendbot/index.d.ts +5 -0
- package/lib/no-eventsource/friendbot/index.js +7 -0
- package/lib/no-eventsource/horizon/account_call_builder.d.ts +56 -0
- package/lib/no-eventsource/horizon/account_call_builder.js +62 -0
- package/lib/no-eventsource/horizon/account_response.d.ts +61 -0
- package/lib/no-eventsource/horizon/account_response.js +49 -0
- package/lib/no-eventsource/horizon/assets_call_builder.d.ts +27 -0
- package/lib/no-eventsource/horizon/assets_call_builder.js +43 -0
- package/lib/no-eventsource/horizon/call_builder.d.ts +128 -0
- package/lib/no-eventsource/horizon/call_builder.js +362 -0
- package/lib/no-eventsource/horizon/claimable_balances_call_builder.d.ts +50 -0
- package/lib/no-eventsource/horizon/claimable_balances_call_builder.js +56 -0
- package/lib/no-eventsource/horizon/effect_call_builder.d.ts +53 -0
- package/lib/no-eventsource/horizon/effect_call_builder.js +56 -0
- package/lib/no-eventsource/horizon/friendbot_builder.d.ts +4 -0
- package/lib/no-eventsource/horizon/friendbot_builder.js +32 -0
- package/lib/no-eventsource/horizon/horizon_api.d.ts +527 -0
- package/lib/no-eventsource/horizon/horizon_api.js +96 -0
- package/lib/no-eventsource/horizon/horizon_axios_client.d.ts +37 -0
- package/lib/no-eventsource/horizon/horizon_axios_client.js +60 -0
- package/lib/no-eventsource/horizon/index.d.ts +8 -0
- package/lib/no-eventsource/horizon/index.js +78 -0
- package/lib/no-eventsource/horizon/ledger_call_builder.d.ts +23 -0
- package/lib/no-eventsource/horizon/ledger_call_builder.js +37 -0
- package/lib/no-eventsource/horizon/liquidity_pool_call_builder.d.ts +37 -0
- package/lib/no-eventsource/horizon/liquidity_pool_call_builder.js +59 -0
- package/lib/no-eventsource/horizon/offer_call_builder.d.ts +65 -0
- package/lib/no-eventsource/horizon/offer_call_builder.js +79 -0
- package/lib/no-eventsource/horizon/operation_call_builder.d.ts +69 -0
- package/lib/no-eventsource/horizon/operation_call_builder.js +69 -0
- package/lib/no-eventsource/horizon/orderbook_call_builder.d.ts +20 -0
- package/lib/no-eventsource/horizon/orderbook_call_builder.js +45 -0
- package/lib/no-eventsource/horizon/path_call_builder.d.ts +35 -0
- package/lib/no-eventsource/horizon/path_call_builder.js +41 -0
- package/lib/no-eventsource/horizon/payment_call_builder.d.ts +39 -0
- package/lib/no-eventsource/horizon/payment_call_builder.js +46 -0
- package/lib/no-eventsource/horizon/server.d.ts +389 -0
- package/lib/no-eventsource/horizon/server.js +550 -0
- package/lib/no-eventsource/horizon/server_api.d.ts +278 -0
- package/lib/no-eventsource/horizon/server_api.js +19 -0
- package/lib/no-eventsource/horizon/strict_receive_path_call_builder.d.ts +38 -0
- package/lib/no-eventsource/horizon/strict_receive_path_call_builder.js +50 -0
- package/lib/no-eventsource/horizon/strict_send_path_call_builder.d.ts +38 -0
- package/lib/no-eventsource/horizon/strict_send_path_call_builder.js +50 -0
- package/lib/no-eventsource/horizon/trade_aggregation_call_builder.d.ts +49 -0
- package/lib/no-eventsource/horizon/trade_aggregation_call_builder.js +76 -0
- package/lib/no-eventsource/horizon/trades_call_builder.d.ts +52 -0
- package/lib/no-eventsource/horizon/trades_call_builder.js +72 -0
- package/lib/no-eventsource/horizon/transaction_call_builder.d.ts +60 -0
- package/lib/no-eventsource/horizon/transaction_call_builder.js +64 -0
- package/lib/no-eventsource/horizon/types/account.d.ts +5 -0
- package/lib/no-eventsource/horizon/types/account.js +5 -0
- package/lib/no-eventsource/horizon/types/assets.d.ts +19 -0
- package/lib/no-eventsource/horizon/types/assets.js +5 -0
- package/lib/no-eventsource/horizon/types/effects.d.ts +285 -0
- package/lib/no-eventsource/horizon/types/effects.js +62 -0
- package/lib/no-eventsource/horizon/types/offer.d.ts +20 -0
- package/lib/no-eventsource/horizon/types/offer.js +5 -0
- package/lib/no-eventsource/horizon/types/trade.d.ts +13 -0
- package/lib/no-eventsource/horizon/types/trade.js +5 -0
- package/lib/no-eventsource/http-client/axios-client.d.ts +2 -0
- package/lib/no-eventsource/http-client/axios-client.js +10 -0
- package/lib/no-eventsource/http-client/fetch-client.d.ts +11 -0
- package/lib/no-eventsource/http-client/fetch-client.js +229 -0
- package/lib/no-eventsource/http-client/index.d.ts +5 -0
- package/lib/no-eventsource/http-client/index.js +33 -0
- package/lib/no-eventsource/http-client/types.d.ts +69 -0
- package/lib/no-eventsource/http-client/types.js +34 -0
- package/lib/no-eventsource/index.d.ts +36 -0
- package/lib/no-eventsource/index.js +83 -0
- package/lib/no-eventsource/rpc/api.d.ts +359 -0
- package/lib/no-eventsource/rpc/api.js +32 -0
- package/lib/no-eventsource/rpc/axios.d.ts +4 -0
- package/lib/no-eventsource/rpc/axios.js +15 -0
- package/lib/no-eventsource/rpc/browser.d.ts +4 -0
- package/lib/no-eventsource/rpc/browser.js +27 -0
- package/lib/no-eventsource/rpc/index.d.ts +8 -0
- package/lib/no-eventsource/rpc/index.js +72 -0
- package/lib/no-eventsource/rpc/jsonrpc.d.ts +35 -0
- package/lib/no-eventsource/rpc/jsonrpc.js +52 -0
- package/lib/no-eventsource/rpc/parsers.d.ts +39 -0
- package/lib/no-eventsource/rpc/parsers.js +155 -0
- package/lib/no-eventsource/rpc/server.d.ts +584 -0
- package/lib/no-eventsource/rpc/server.js +823 -0
- package/lib/no-eventsource/rpc/transaction.d.ts +21 -0
- package/lib/no-eventsource/rpc/transaction.js +53 -0
- package/lib/no-eventsource/rpc/utils.d.ts +1 -0
- package/lib/no-eventsource/rpc/utils.js +9 -0
- package/lib/no-eventsource/stellartoml/index.d.ts +131 -0
- package/lib/no-eventsource/stellartoml/index.js +77 -0
- package/lib/no-eventsource/utils.d.ts +19 -0
- package/lib/no-eventsource/utils.js +31 -0
- package/lib/no-eventsource/webauth/errors.d.ts +13 -0
- package/lib/no-eventsource/webauth/errors.js +36 -0
- package/lib/no-eventsource/webauth/index.d.ts +2 -0
- package/lib/no-eventsource/webauth/index.js +27 -0
- package/lib/no-eventsource/webauth/utils.d.ts +307 -0
- package/lib/no-eventsource/webauth/utils.js +332 -0
- package/lib/rpc/api.d.ts +73 -8
- package/lib/rpc/axios.d.ts +3 -2
- package/lib/rpc/axios.js +3 -4
- package/lib/rpc/browser.d.ts +0 -2
- package/lib/rpc/browser.js +1 -11
- package/lib/rpc/index.d.ts +2 -1
- package/lib/rpc/index.js +1 -1
- package/lib/rpc/jsonrpc.d.ts +9 -1
- package/lib/rpc/parsers.d.ts +32 -10
- package/lib/rpc/parsers.js +40 -11
- package/lib/rpc/server.d.ts +197 -100
- package/lib/rpc/server.js +251 -110
- package/lib/rpc/transaction.d.ts +11 -9
- package/lib/stellartoml/index.d.ts +21 -11
- package/lib/stellartoml/index.js +3 -3
- package/lib/utils.d.ts +11 -4
- package/lib/webauth/errors.d.ts +9 -0
- package/lib/webauth/utils.d.ts +67 -54
- package/package.json +73 -21
- package/lib/errors.d.ts +0 -59
|
@@ -3,12 +3,14 @@ import { CallBuilder } from "./call_builder";
|
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new {@link ClaimableBalanceCallBuilder} pointed to server defined by serverUrl.
|
|
6
|
-
* Do not create this object directly, use {@link Server#claimableBalances}.
|
|
7
6
|
*
|
|
8
|
-
* @
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
7
|
+
* Do not create this object directly, use {@link Horizon.Server#claimableBalances}.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/claimablebalances|Claimable Balances}
|
|
10
|
+
*
|
|
11
11
|
* @augments CallBuilder
|
|
12
|
+
* @private
|
|
13
|
+
* @class
|
|
12
14
|
* @param {string} serverUrl Horizon server URL.
|
|
13
15
|
*/
|
|
14
16
|
export declare class ClaimableBalanceCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.ClaimableBalanceRecord>> {
|
|
@@ -16,7 +18,7 @@ export declare class ClaimableBalanceCallBuilder extends CallBuilder<ServerApi.C
|
|
|
16
18
|
/**
|
|
17
19
|
* The claimable balance details endpoint provides information on a single claimable balance.
|
|
18
20
|
*
|
|
19
|
-
* @see
|
|
21
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-claimable-balance|Claimable Balance Details}
|
|
20
22
|
* @param {string} claimableBalanceId Claimable balance ID
|
|
21
23
|
* @returns {CallBuilder<ServerApi.ClaimableBalanceRecord>} CallBuilder<ServerApi.ClaimableBalanceRecord> OperationCallBuilder instance
|
|
22
24
|
*/
|
|
@@ -24,7 +26,7 @@ export declare class ClaimableBalanceCallBuilder extends CallBuilder<ServerApi.C
|
|
|
24
26
|
/**
|
|
25
27
|
* Returns all claimable balances which are sponsored by the given account ID.
|
|
26
28
|
*
|
|
27
|
-
* @see
|
|
29
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-claimable-balances|Claimable Balances}
|
|
28
30
|
* @param {string} sponsor For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
29
31
|
* @returns {ClaimableBalanceCallBuilder} current ClaimableBalanceCallBuilder instance
|
|
30
32
|
*/
|
|
@@ -32,7 +34,7 @@ export declare class ClaimableBalanceCallBuilder extends CallBuilder<ServerApi.C
|
|
|
32
34
|
/**
|
|
33
35
|
* Returns all claimable balances which can be claimed by the given account ID.
|
|
34
36
|
*
|
|
35
|
-
* @see
|
|
37
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-claimable-balances|Claimable Balances}
|
|
36
38
|
* @param {string} claimant For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
37
39
|
* @returns {ClaimableBalanceCallBuilder} current ClaimableBalanceCallBuilder instance
|
|
38
40
|
*/
|
|
@@ -40,7 +42,7 @@ export declare class ClaimableBalanceCallBuilder extends CallBuilder<ServerApi.C
|
|
|
40
42
|
/**
|
|
41
43
|
* Returns all claimable balances which provide a balance for the given asset.
|
|
42
44
|
*
|
|
43
|
-
* @see
|
|
45
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-claimable-balances|Claimable Balances}
|
|
44
46
|
* @param {Asset} asset The Asset held by the claimable balance
|
|
45
47
|
* @returns {ClaimableBalanceCallBuilder} current ClaimableBalanceCallBuilder instance
|
|
46
48
|
*/
|
|
@@ -2,11 +2,12 @@ import { CallBuilder } from "./call_builder";
|
|
|
2
2
|
import { ServerApi } from "./server_api";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new {@link EffectCallBuilder} pointed to server defined by serverUrl.
|
|
5
|
-
* Do not create this object directly, use {@link Server#effects}.
|
|
5
|
+
* Do not create this object directly, use {@link Horizon.Server#effects}.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/effects|All Effects}
|
|
6
8
|
*
|
|
7
|
-
* @class EffectCallBuilder
|
|
8
9
|
* @augments CallBuilder
|
|
9
|
-
* @
|
|
10
|
+
* @private
|
|
10
11
|
* @class
|
|
11
12
|
* @param {string} serverUrl Horizon server URL.
|
|
12
13
|
*/
|
|
@@ -14,7 +15,7 @@ export declare class EffectCallBuilder extends CallBuilder<ServerApi.CollectionP
|
|
|
14
15
|
constructor(serverUrl: URI);
|
|
15
16
|
/**
|
|
16
17
|
* This endpoint represents all effects that changed a given account. It will return relevant effects from the creation of the account to the current ledger.
|
|
17
|
-
* @see
|
|
18
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-effects-by-account-id|Effects for Account}
|
|
18
19
|
* @param {string} accountId For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
19
20
|
* @returns {EffectCallBuilder} this EffectCallBuilder instance
|
|
20
21
|
*/
|
|
@@ -23,21 +24,21 @@ export declare class EffectCallBuilder extends CallBuilder<ServerApi.CollectionP
|
|
|
23
24
|
* Effects are the specific ways that the ledger was changed by any operation.
|
|
24
25
|
*
|
|
25
26
|
* This endpoint represents all effects that occurred in the given ledger.
|
|
26
|
-
* @see
|
|
27
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-ledgers-effects|Effects for Ledger}
|
|
27
28
|
* @param {number|string} sequence Ledger sequence
|
|
28
29
|
* @returns {EffectCallBuilder} this EffectCallBuilder instance
|
|
29
30
|
*/
|
|
30
31
|
forLedger(sequence: number | string): this;
|
|
31
32
|
/**
|
|
32
33
|
* This endpoint represents all effects that occurred as a result of a given transaction.
|
|
33
|
-
* @see
|
|
34
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-transactions-effects|Effects for Transaction}
|
|
34
35
|
* @param {string} transactionId Transaction ID
|
|
35
36
|
* @returns {EffectCallBuilder} this EffectCallBuilder instance
|
|
36
37
|
*/
|
|
37
38
|
forTransaction(transactionId: string): this;
|
|
38
39
|
/**
|
|
39
40
|
* This endpoint represents all effects that occurred as a result of a given operation.
|
|
40
|
-
* @see
|
|
41
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-operations-effects|Effects for Operation}
|
|
41
42
|
* @param {number} operationId Operation ID
|
|
42
43
|
* @returns {EffectCallBuilder} this EffectCallBuilder instance
|
|
43
44
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const version:
|
|
1
|
+
export declare const version: string;
|
|
2
2
|
export interface ServerTime {
|
|
3
3
|
serverTime: number;
|
|
4
4
|
localTimeRecorded: number;
|
|
@@ -10,18 +10,25 @@ export interface ServerTime {
|
|
|
10
10
|
* each entry will map the server domain to the last-known time and the local
|
|
11
11
|
* time it was recorded, ex:
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* @example
|
|
14
|
+
* "horizon-testnet.stellar.org": {
|
|
15
|
+
* serverTime: 1552513039,
|
|
16
|
+
* localTimeRecorded: 1552513052
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* @constant {Record.<string, ServerTime>}
|
|
20
|
+
* @default {}
|
|
21
|
+
* @memberof module:Horizon
|
|
17
22
|
*/
|
|
18
23
|
export declare const SERVER_TIME_MAP: Record<string, ServerTime>;
|
|
19
|
-
export declare const AxiosClient: import("
|
|
24
|
+
export declare const AxiosClient: import("../http-client").HttpClient;
|
|
20
25
|
export default AxiosClient;
|
|
21
26
|
/**
|
|
22
27
|
* Given a hostname, get the current time of that server (i.e., use the last-
|
|
23
28
|
* recorded server time and offset it by the time since then.) If there IS no
|
|
24
29
|
* recorded server time, or it's been 5 minutes since the last, return null.
|
|
30
|
+
* @memberof module:Horizon
|
|
31
|
+
*
|
|
25
32
|
* @param {string} hostname Hostname of a Horizon server.
|
|
26
33
|
* @returns {number} The UNIX timestamp (in seconds, not milliseconds)
|
|
27
34
|
* representing the current time on that server, or `null` if we don't have
|
|
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.SERVER_TIME_MAP = exports.AxiosClient = void 0;
|
|
7
7
|
exports.getCurrentServerTime = getCurrentServerTime;
|
|
8
8
|
exports.version = void 0;
|
|
9
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
10
9
|
var _urijs = _interopRequireDefault(require("urijs"));
|
|
10
|
+
var _httpClient = require("../http-client");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
var version = exports.version = "13.0.0-beta.1";
|
|
13
14
|
var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
|
|
14
|
-
var AxiosClient = exports.AxiosClient =
|
|
15
|
+
var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
|
|
15
16
|
headers: {
|
|
16
17
|
"X-Client-Name": "js-stellar-sdk",
|
|
17
18
|
"X-Client-Version": version
|
|
@@ -22,7 +23,18 @@ function toSeconds(ms) {
|
|
|
22
23
|
}
|
|
23
24
|
AxiosClient.interceptors.response.use(function (response) {
|
|
24
25
|
var hostname = (0, _urijs.default)(response.config.url).hostname();
|
|
25
|
-
var serverTime =
|
|
26
|
+
var serverTime = 0;
|
|
27
|
+
if (response.headers instanceof Headers) {
|
|
28
|
+
var dateHeader = response.headers.get('date');
|
|
29
|
+
if (dateHeader) {
|
|
30
|
+
serverTime = toSeconds(Date.parse(dateHeader));
|
|
31
|
+
}
|
|
32
|
+
} else if (_typeof(response.headers) === 'object' && 'date' in response.headers) {
|
|
33
|
+
var headers = response.headers;
|
|
34
|
+
if (typeof headers.date === 'string') {
|
|
35
|
+
serverTime = toSeconds(Date.parse(headers.date));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
26
38
|
var localTimeRecorded = toSeconds(new Date().getTime());
|
|
27
39
|
if (!Number.isNaN(serverTime)) {
|
|
28
40
|
SERVER_TIME_MAP[hostname] = {
|
package/lib/horizon/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** @module Horizon */
|
|
1
2
|
export * from "./horizon_api";
|
|
2
3
|
export * from "./server_api";
|
|
3
4
|
export * from "./account_response";
|
|
4
|
-
export { Server } from "./server";
|
|
5
|
+
export { HorizonServer as Server } from "./server";
|
|
5
6
|
export { default as AxiosClient, SERVER_TIME_MAP, getCurrentServerTime } from "./horizon_axios_client";
|
|
6
7
|
declare const _default: any;
|
|
7
8
|
export default _default;
|
package/lib/horizon/index.js
CHANGED
|
@@ -2,12 +2,14 @@ import { CallBuilder } from "./call_builder";
|
|
|
2
2
|
import { ServerApi } from "./server_api";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new {@link LedgerCallBuilder} pointed to server defined by serverUrl.
|
|
5
|
-
* Do not create this object directly, use {@link Server#ledgers}.
|
|
6
5
|
*
|
|
7
|
-
* @
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
6
|
+
* Do not create this object directly, use {@link Horizon.Server#ledgers}.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-ledgers|All Ledgers}
|
|
9
|
+
*
|
|
10
10
|
* @augments CallBuilder
|
|
11
|
+
* @private
|
|
12
|
+
* @class
|
|
11
13
|
* @param {string} serverUrl Horizon server URL.
|
|
12
14
|
*/
|
|
13
15
|
export declare class LedgerCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.LedgerRecord>> {
|
|
@@ -3,10 +3,11 @@ import { CallBuilder } from "./call_builder";
|
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new {@link LiquidityPoolCallBuilder} pointed to server defined by serverUrl.
|
|
6
|
-
* Do not create this object directly, use {@link Server#liquidityPools}.
|
|
7
6
|
*
|
|
8
|
-
* @
|
|
7
|
+
* Do not create this object directly, use {@link Horizon.Server#liquidityPools}.
|
|
8
|
+
*
|
|
9
9
|
* @augments CallBuilder
|
|
10
|
+
* @private
|
|
10
11
|
* @class
|
|
11
12
|
* @param {string} serverUrl Horizon server URL.
|
|
12
13
|
*/
|
|
@@ -3,12 +3,14 @@ import { CallBuilder } from "./call_builder";
|
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new {@link OfferCallBuilder} pointed to server defined by serverUrl.
|
|
6
|
-
* Do not create this object directly, use {@link Server#offers}.
|
|
7
6
|
*
|
|
8
|
-
* @
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
7
|
+
* Do not create this object directly, use {@link Horizon.Server#offers}.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/offers/|Offers}
|
|
10
|
+
*
|
|
11
11
|
* @augments CallBuilder
|
|
12
|
+
* @private
|
|
13
|
+
* @class
|
|
12
14
|
* @param {string} serverUrl Horizon server URL.
|
|
13
15
|
*/
|
|
14
16
|
export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.OfferRecord>> {
|
|
@@ -16,7 +18,7 @@ export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPa
|
|
|
16
18
|
/**
|
|
17
19
|
* The offer details endpoint provides information on a single offer. The offer ID provided in the id
|
|
18
20
|
* argument specifies which offer to load.
|
|
19
|
-
* @see
|
|
21
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/offers/single/|Offer Details}
|
|
20
22
|
* @param {string} offerId Offer ID
|
|
21
23
|
* @returns {CallBuilder<ServerApi.OfferRecord>} CallBuilder<ServerApi.OfferRecord> OperationCallBuilder instance
|
|
22
24
|
*/
|
|
@@ -24,14 +26,14 @@ export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPa
|
|
|
24
26
|
/**
|
|
25
27
|
* Returns all offers where the given account is involved.
|
|
26
28
|
*
|
|
27
|
-
* @see
|
|
29
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/accounts/offers/|Offers}
|
|
28
30
|
* @param {string} id For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
29
31
|
* @returns {OfferCallBuilder} current OfferCallBuilder instance
|
|
30
32
|
*/
|
|
31
33
|
forAccount(id: string): this;
|
|
32
34
|
/**
|
|
33
35
|
* Returns all offers buying an asset.
|
|
34
|
-
* @see
|
|
36
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/offers/list/|Offers}
|
|
35
37
|
* @see Asset
|
|
36
38
|
* @param {Asset} asset For example: `new Asset('USD','GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD')`
|
|
37
39
|
* @returns {OfferCallBuilder} current OfferCallBuilder instance
|
|
@@ -39,7 +41,7 @@ export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPa
|
|
|
39
41
|
buying(asset: Asset): this;
|
|
40
42
|
/**
|
|
41
43
|
* Returns all offers selling an asset.
|
|
42
|
-
* @see
|
|
44
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/offers/list/|Offers}
|
|
43
45
|
* @see Asset
|
|
44
46
|
* @param {Asset} asset For example: `new Asset('EUR','GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD')`
|
|
45
47
|
* @returns {OfferCallBuilder} current OfferCallBuilder instance
|
|
@@ -47,7 +49,7 @@ export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPa
|
|
|
47
49
|
selling(asset: Asset): this;
|
|
48
50
|
/**
|
|
49
51
|
* This endpoint filters offers where the given account is sponsoring the offer entry.
|
|
50
|
-
* @see
|
|
52
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-all-offers|Offers}
|
|
51
53
|
* @param {string} id For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
52
54
|
* @returns {OfferCallBuilder} current OfferCallBuilder instance
|
|
53
55
|
*/
|
|
@@ -55,7 +57,7 @@ export declare class OfferCallBuilder extends CallBuilder<ServerApi.CollectionPa
|
|
|
55
57
|
/**
|
|
56
58
|
* This endpoint filters offers where the given account is the seller.
|
|
57
59
|
*
|
|
58
|
-
* @see
|
|
60
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-all-offers|Offers}
|
|
59
61
|
* @param {string} seller For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
60
62
|
* @returns {OfferCallBuilder} current OfferCallBuilder instance
|
|
61
63
|
*/
|
|
@@ -2,12 +2,14 @@ import { CallBuilder } from "./call_builder";
|
|
|
2
2
|
import { ServerApi } from "./server_api";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new {@link OperationCallBuilder} pointed to server defined by serverUrl.
|
|
5
|
-
* Do not create this object directly, use {@link Server#operations}.
|
|
6
5
|
*
|
|
7
|
-
* @
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
6
|
+
* Do not create this object directly, use {@link Horizon.Server#operations}.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/operations|All Operations}
|
|
9
|
+
*
|
|
10
10
|
* @augments CallBuilder
|
|
11
|
+
* @private
|
|
12
|
+
* @class
|
|
11
13
|
* @param {string} serverUrl Horizon server URL.
|
|
12
14
|
*/
|
|
13
15
|
export declare class OperationCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.OperationRecord>> {
|
|
@@ -15,21 +17,21 @@ export declare class OperationCallBuilder extends CallBuilder<ServerApi.Collecti
|
|
|
15
17
|
/**
|
|
16
18
|
* The operation details endpoint provides information on a single operation. The operation ID provided in the id
|
|
17
19
|
* argument specifies which operation to load.
|
|
18
|
-
* @see
|
|
20
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-operation|Operation Details}
|
|
19
21
|
* @param {number} operationId Operation ID
|
|
20
22
|
* @returns {CallBuilder} this OperationCallBuilder instance
|
|
21
23
|
*/
|
|
22
24
|
operation(operationId: string): CallBuilder<ServerApi.OperationRecord>;
|
|
23
25
|
/**
|
|
24
26
|
* This endpoint represents all operations that were included in valid transactions that affected a particular account.
|
|
25
|
-
* @see
|
|
27
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-operations-by-account-id|Operations for Account}
|
|
26
28
|
* @param {string} accountId For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
27
29
|
* @returns {OperationCallBuilder} this OperationCallBuilder instance
|
|
28
30
|
*/
|
|
29
31
|
forAccount(accountId: string): this;
|
|
30
32
|
/**
|
|
31
33
|
* This endpoint represents all operations that reference a given claimable_balance.
|
|
32
|
-
* @see
|
|
34
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/cb-retrieve-related-operations|Operations for Claimable Balance}
|
|
33
35
|
* @param {string} claimableBalanceId Claimable Balance ID
|
|
34
36
|
* @returns {OperationCallBuilder} this OperationCallBuilder instance
|
|
35
37
|
*/
|
|
@@ -37,14 +39,14 @@ export declare class OperationCallBuilder extends CallBuilder<ServerApi.Collecti
|
|
|
37
39
|
/**
|
|
38
40
|
* This endpoint returns all operations that occurred in a given ledger.
|
|
39
41
|
*
|
|
40
|
-
* @see
|
|
42
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-ledgers-operations|Operations for Ledger}
|
|
41
43
|
* @param {number|string} sequence Ledger sequence
|
|
42
44
|
* @returns {OperationCallBuilder} this OperationCallBuilder instance
|
|
43
45
|
*/
|
|
44
46
|
forLedger(sequence: number | string): this;
|
|
45
47
|
/**
|
|
46
48
|
* This endpoint represents all operations that are part of a given transaction.
|
|
47
|
-
* @see
|
|
49
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-transactions-operations|Operations for Transaction}
|
|
48
50
|
* @param {string} transactionId Transaction ID
|
|
49
51
|
* @returns {OperationCallBuilder} this OperationCallBuilder instance
|
|
50
52
|
*/
|
|
@@ -4,8 +4,13 @@ import { ServerApi } from "./server_api";
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new {@link OrderbookCallBuilder} pointed to server defined by serverUrl.
|
|
6
6
|
*
|
|
7
|
-
* Do not create this object directly, use {@link Server#orderbook}.
|
|
8
|
-
*
|
|
7
|
+
* Do not create this object directly, use {@link Horizon.Server#orderbook}.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/order-books|Orderbook Details}
|
|
10
|
+
*
|
|
11
|
+
* @augments CallBuilder
|
|
12
|
+
* @private
|
|
13
|
+
* @class
|
|
9
14
|
* @param {string} serverUrl serverUrl Horizon server URL.
|
|
10
15
|
* @param {Asset} selling Asset being sold
|
|
11
16
|
* @param {Asset} buying Asset being bought
|
|
@@ -16,9 +16,14 @@ import { ServerApi } from "./server_api";
|
|
|
16
16
|
* payment paths from those source assets to the desired destination asset. The search's amount parameter will be
|
|
17
17
|
* used to determine if there a given path can satisfy a payment of the desired amount.
|
|
18
18
|
*
|
|
19
|
-
* Do not create this object directly, use {@link Server#paths}.
|
|
20
|
-
*
|
|
19
|
+
* Do not create this object directly, use {@link Horizon.Server#paths}.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths|Find Payment Paths}
|
|
22
|
+
*
|
|
21
23
|
* @augments CallBuilder
|
|
24
|
+
* @private
|
|
25
|
+
* @class
|
|
26
|
+
*
|
|
22
27
|
* @param {string} serverUrl Horizon server URL.
|
|
23
28
|
* @param {string} source The sender's account ID. Any returned path must use a source that the sender can hold.
|
|
24
29
|
* @param {string} destination The destination account ID that any returned path should use.
|
|
@@ -3,31 +3,35 @@ import { ServerApi } from "./server_api";
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new {@link PaymentCallBuilder} pointed to server defined by serverUrl.
|
|
5
5
|
*
|
|
6
|
-
* Do not create this object directly, use {@link Server#payments}.
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
6
|
+
* Do not create this object directly, use {@link Horizon.Server#payments}.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/horizon/resources/list-all-payments/|All Payments}
|
|
9
|
+
*
|
|
9
10
|
* @augments CallBuilder
|
|
11
|
+
* @private
|
|
12
|
+
* @class
|
|
13
|
+
*
|
|
10
14
|
* @param {string} serverUrl Horizon server URL.
|
|
11
15
|
*/
|
|
12
16
|
export declare class PaymentCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.PaymentOperationRecord | ServerApi.CreateAccountOperationRecord | ServerApi.AccountMergeOperationRecord | ServerApi.PathPaymentOperationRecord | ServerApi.PathPaymentStrictSendOperationRecord | ServerApi.InvokeHostFunctionOperationRecord>> {
|
|
13
17
|
constructor(serverUrl: URI);
|
|
14
18
|
/**
|
|
15
19
|
* This endpoint responds with a collection of Payment operations where the given account was either the sender or receiver.
|
|
16
|
-
* @see
|
|
20
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/horizon/resources/get-payments-by-account-id|Payments for Account}
|
|
17
21
|
* @param {string} accountId For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
|
|
18
22
|
* @returns {PaymentCallBuilder} this PaymentCallBuilder instance
|
|
19
23
|
*/
|
|
20
24
|
forAccount(accountId: string): this;
|
|
21
25
|
/**
|
|
22
26
|
* This endpoint represents all payment operations that are part of a valid transactions in a given ledger.
|
|
23
|
-
* @see
|
|
27
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/horizon/resources/retrieve-a-ledgers-payments|Payments for Ledger}
|
|
24
28
|
* @param {number|string} sequence Ledger sequence
|
|
25
29
|
* @returns {PaymentCallBuilder} this PaymentCallBuilder instance
|
|
26
30
|
*/
|
|
27
31
|
forLedger(sequence: number | string): this;
|
|
28
32
|
/**
|
|
29
33
|
* This endpoint represents all payment operations that are part of a given transaction.
|
|
30
|
-
* @see
|
|
34
|
+
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/transactions/payments/|Payments for Transaction}
|
|
31
35
|
* @param {string} transactionId Transaction ID
|
|
32
36
|
* @returns {PaymentCallBuilder} this PaymentCallBuilder instance
|
|
33
37
|
*/
|