@stellar/stellar-sdk 12.3.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 +35 -0
- package/README.md +29 -7
- 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 +28203 -27336
- 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 +22 -14
- package/lib/contract/assembled_transaction.js +158 -127
- 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 +9 -3
- 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 +13 -2
- 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 +30 -10
- package/lib/rpc/parsers.js +11 -11
- package/lib/rpc/server.d.ts +169 -99
- package/lib/rpc/server.js +92 -6
- 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 +59 -7
- package/lib/errors.d.ts +0 -59
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import URI from 'urijs';
|
|
2
|
+
import { Account, Address, Asset, Contract, FeeBumpTransaction, Transaction, xdr } from '@stellar/stellar-base';
|
|
3
|
+
import { Api } from './api';
|
|
4
|
+
/**
|
|
5
|
+
* Default transaction submission timeout for RPC requests, in milliseconds
|
|
6
|
+
* @constant {number}
|
|
7
|
+
* @default 60000
|
|
8
|
+
* @memberof module:rpc.Server
|
|
9
|
+
*/
|
|
10
|
+
export declare const SUBMIT_TRANSACTION_TIMEOUT: number;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the durability namespace of contract-related ledger entries.
|
|
13
|
+
* @enum {('temporary' | 'persistent')}
|
|
14
|
+
* @memberof module:rpc
|
|
15
|
+
*
|
|
16
|
+
* @see {@link https://developers.stellar.org/docs/learn/smart-contract-internals/state-archival | State Archival docs}
|
|
17
|
+
* @see {@link https://docs.rs/soroban-sdk/latest/soroban_sdk/storage/struct.Storage.html | Rust SDK Storage docs}
|
|
18
|
+
*/
|
|
19
|
+
export declare enum Durability {
|
|
20
|
+
Temporary = "temporary",
|
|
21
|
+
Persistent = "persistent"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {object} GetEventsRequest Describes the complex filter combinations available for event queries.
|
|
25
|
+
* @property {Array.<module:rpc.Api.EventFilter>} filters Filters to use when querying events from the RPC server.
|
|
26
|
+
* @property {number} [startLedger] Ledger number (inclusive) to begin querying events.
|
|
27
|
+
* @property {string} [cursor] Page cursor (exclusive) to begin querying events.
|
|
28
|
+
* @property {number} [limit=100] The maximum number of events that should be returned in the RPC response.
|
|
29
|
+
* @memberof module:rpc.Server
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {object} ResourceLeeway Describes additional resource leeways for transaction simulation.
|
|
33
|
+
* @property {number} cpuInstructions Simulate the transaction with more CPU instructions available.
|
|
34
|
+
* @memberof module:rpc.Server
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* @typedef {object} Options Options for configuring connections to RPC servers.
|
|
38
|
+
* @property {boolean} [allowHttp=false] Allow connecting to http servers, default: `false`. This must be set to false in production deployments!
|
|
39
|
+
* @property {number} [timeout=0] Allow a timeout, default: 0. Allows user to avoid nasty lag. You can also use {@link Config} class to set this globally.
|
|
40
|
+
* @property {Record<string, string>} [headers] Additional headers that should be added to any requests to the RPC server.
|
|
41
|
+
* @memberof module:rpc.Server
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace RpcServer {
|
|
44
|
+
interface GetEventsRequest {
|
|
45
|
+
filters: Api.EventFilter[];
|
|
46
|
+
startLedger?: number;
|
|
47
|
+
endLedger?: number;
|
|
48
|
+
cursor?: string;
|
|
49
|
+
limit?: number;
|
|
50
|
+
}
|
|
51
|
+
interface ResourceLeeway {
|
|
52
|
+
cpuInstructions: number;
|
|
53
|
+
}
|
|
54
|
+
interface Options {
|
|
55
|
+
allowHttp?: boolean;
|
|
56
|
+
timeout?: number;
|
|
57
|
+
headers?: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Handles the network connection to a Soroban RPC instance, exposing an
|
|
62
|
+
* interface for requests to that instance.
|
|
63
|
+
*
|
|
64
|
+
* @alias module:rpc.Server
|
|
65
|
+
* @memberof module:rpc
|
|
66
|
+
*
|
|
67
|
+
* @param {string} serverURL Soroban-RPC Server URL (ex. `http://localhost:8000/soroban/rpc`).
|
|
68
|
+
* @param {module:rpc.Server.Options} [opts] Options object
|
|
69
|
+
* @param {boolean} [opts.allowHttp] Allows connecting to insecure http servers
|
|
70
|
+
* (default: `false`). This must be set to false in production deployments!
|
|
71
|
+
* You can also use {@link Config} class to set this globally.
|
|
72
|
+
* @param {Record<string, string>} [opts.headers] Allows setting custom headers
|
|
73
|
+
*
|
|
74
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods | API reference docs}
|
|
75
|
+
*/
|
|
76
|
+
export declare class RpcServer {
|
|
77
|
+
readonly serverURL: URI;
|
|
78
|
+
constructor(serverURL: string, opts?: RpcServer.Options);
|
|
79
|
+
/**
|
|
80
|
+
* Fetch a minimal set of current info about a Stellar account.
|
|
81
|
+
*
|
|
82
|
+
* Needed to get the current sequence number for the account so you can build
|
|
83
|
+
* a successful transaction with {@link TransactionBuilder}.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} address The public address of the account to load.
|
|
86
|
+
* @returns {Promise<Account>} A promise which resolves to the {@link Account}
|
|
87
|
+
* object with a populated sequence number
|
|
88
|
+
*
|
|
89
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
|
|
93
|
+
* server.getAccount(accountId).then((account) => {
|
|
94
|
+
* console.log("sequence:", account.sequence);
|
|
95
|
+
* });
|
|
96
|
+
*/
|
|
97
|
+
getAccount(address: string): Promise<Account>;
|
|
98
|
+
/**
|
|
99
|
+
* General node health check.
|
|
100
|
+
*
|
|
101
|
+
* @returns {Promise<Api.GetHealthResponse>} A promise which resolves to the
|
|
102
|
+
* {@link Api.GetHealthResponse} object with the status of the
|
|
103
|
+
* server (e.g. "healthy").
|
|
104
|
+
*
|
|
105
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getHealth | getLedgerEntries docs}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* server.getHealth().then((health) => {
|
|
109
|
+
* console.log("status:", health.status);
|
|
110
|
+
* });
|
|
111
|
+
*/
|
|
112
|
+
getHealth(): Promise<Api.GetHealthResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Reads the current value of contract data ledger entries directly.
|
|
115
|
+
*
|
|
116
|
+
* Allows you to directly inspect the current state of a contract. This is a
|
|
117
|
+
* backup way to access your contract data which may not be available via
|
|
118
|
+
* events or {@link module:rpc.Server#simulateTransaction}.
|
|
119
|
+
*
|
|
120
|
+
* @param {string|Address|Contract} contract The contract ID containing the
|
|
121
|
+
* data to load as a strkey (`C...` form), a {@link Contract}, or an
|
|
122
|
+
* {@link Address} instance
|
|
123
|
+
* @param {xdr.ScVal} key The key of the contract data to load
|
|
124
|
+
* @param {module:rpc.Durability} [durability=Durability.Persistent] The "durability
|
|
125
|
+
* keyspace" that this ledger key belongs to, which is either 'temporary'
|
|
126
|
+
* or 'persistent' (the default), see {@link module:rpc.Durability}.
|
|
127
|
+
* @returns {Promise<Api.LedgerEntryResult>} The current data value
|
|
128
|
+
*
|
|
129
|
+
* @warning If the data entry in question is a 'temporary' entry, it's
|
|
130
|
+
* entirely possible that it has expired out of existence.
|
|
131
|
+
*
|
|
132
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
|
|
136
|
+
* const key = xdr.ScVal.scvSymbol("counter");
|
|
137
|
+
* server.getContractData(contractId, key, Durability.Temporary).then(data => {
|
|
138
|
+
* console.log("value:", data.val);
|
|
139
|
+
* console.log("liveUntilLedgerSeq:", data.liveUntilLedgerSeq);
|
|
140
|
+
* console.log("lastModified:", data.lastModifiedLedgerSeq);
|
|
141
|
+
* console.log("latestLedger:", data.latestLedger);
|
|
142
|
+
* });
|
|
143
|
+
*/
|
|
144
|
+
getContractData(contract: string | Address | Contract, key: xdr.ScVal, durability?: Durability): Promise<Api.LedgerEntryResult>;
|
|
145
|
+
/**
|
|
146
|
+
* Retrieves the WASM bytecode for a given contract.
|
|
147
|
+
*
|
|
148
|
+
* This method allows you to fetch the WASM bytecode associated with a contract
|
|
149
|
+
* deployed on the Soroban network. The WASM bytecode represents the executable
|
|
150
|
+
* code of the contract.
|
|
151
|
+
*
|
|
152
|
+
* @param {string} contractId The contract ID containing the WASM bytecode to retrieve
|
|
153
|
+
* @returns {Promise<Buffer>} A Buffer containing the WASM bytecode
|
|
154
|
+
* @throws {Error} If the contract or its associated WASM bytecode cannot be
|
|
155
|
+
* found on the network.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
|
|
159
|
+
* server.getContractWasmByContractId(contractId).then(wasmBuffer => {
|
|
160
|
+
* console.log("WASM bytecode length:", wasmBuffer.length);
|
|
161
|
+
* // ... do something with the WASM bytecode ...
|
|
162
|
+
* }).catch(err => {
|
|
163
|
+
* console.error("Error fetching WASM bytecode:", err);
|
|
164
|
+
* });
|
|
165
|
+
*/
|
|
166
|
+
getContractWasmByContractId(contractId: string): Promise<Buffer>;
|
|
167
|
+
/**
|
|
168
|
+
* Retrieves the WASM bytecode for a given contract hash.
|
|
169
|
+
*
|
|
170
|
+
* This method allows you to fetch the WASM bytecode associated with a contract
|
|
171
|
+
* deployed on the Soroban network using the contract's WASM hash. The WASM bytecode
|
|
172
|
+
* represents the executable code of the contract.
|
|
173
|
+
*
|
|
174
|
+
* @param {Buffer} wasmHash The WASM hash of the contract
|
|
175
|
+
* @returns {Promise<Buffer>} A Buffer containing the WASM bytecode
|
|
176
|
+
* @throws {Error} If the contract or its associated WASM bytecode cannot be
|
|
177
|
+
* found on the network.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const wasmHash = Buffer.from("...");
|
|
181
|
+
* server.getContractWasmByHash(wasmHash).then(wasmBuffer => {
|
|
182
|
+
* console.log("WASM bytecode length:", wasmBuffer.length);
|
|
183
|
+
* // ... do something with the WASM bytecode ...
|
|
184
|
+
* }).catch(err => {
|
|
185
|
+
* console.error("Error fetching WASM bytecode:", err);
|
|
186
|
+
* });
|
|
187
|
+
*/
|
|
188
|
+
getContractWasmByHash(wasmHash: Buffer | string, format?: undefined | "hex" | "base64"): Promise<Buffer>;
|
|
189
|
+
/**
|
|
190
|
+
* Reads the current value of arbitrary ledger entries directly.
|
|
191
|
+
*
|
|
192
|
+
* Allows you to directly inspect the current state of contracts, contract's
|
|
193
|
+
* code, accounts, or any other ledger entries.
|
|
194
|
+
*
|
|
195
|
+
* To fetch a contract's WASM byte-code, built the appropriate
|
|
196
|
+
* {@link xdr.LedgerKeyContractCode} ledger entry key (or see
|
|
197
|
+
* {@link Contract.getFootprint}).
|
|
198
|
+
*
|
|
199
|
+
* @param {xdr.ScVal[]} keys One or more ledger entry keys to load
|
|
200
|
+
* @returns {Promise<Api.GetLedgerEntriesResponse>} The current on-chain
|
|
201
|
+
* values for the given ledger keys
|
|
202
|
+
*
|
|
203
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
|
|
204
|
+
* @see RpcServer._getLedgerEntries
|
|
205
|
+
* @example
|
|
206
|
+
* const contractId = "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM";
|
|
207
|
+
* const key = xdr.LedgerKey.contractData(new xdr.LedgerKeyContractData({
|
|
208
|
+
* contractId: StrKey.decodeContract(contractId),
|
|
209
|
+
* key: xdr.ScVal.scvSymbol("counter"),
|
|
210
|
+
* }));
|
|
211
|
+
*
|
|
212
|
+
* server.getLedgerEntries([key]).then(response => {
|
|
213
|
+
* const ledgerData = response.entries[0];
|
|
214
|
+
* console.log("key:", ledgerData.key);
|
|
215
|
+
* console.log("value:", ledgerData.val);
|
|
216
|
+
* console.log("liveUntilLedgerSeq:", ledgerData.liveUntilLedgerSeq);
|
|
217
|
+
* console.log("lastModified:", ledgerData.lastModifiedLedgerSeq);
|
|
218
|
+
* console.log("latestLedger:", response.latestLedger);
|
|
219
|
+
* });
|
|
220
|
+
*/
|
|
221
|
+
getLedgerEntries(...keys: xdr.LedgerKey[]): Promise<Api.GetLedgerEntriesResponse>;
|
|
222
|
+
_getLedgerEntries(...keys: xdr.LedgerKey[]): Promise<Api.RawGetLedgerEntriesResponse>;
|
|
223
|
+
/**
|
|
224
|
+
* Fetch the details of a submitted transaction.
|
|
225
|
+
*
|
|
226
|
+
* After submitting a transaction, clients should poll this to tell when the
|
|
227
|
+
* transaction has completed.
|
|
228
|
+
*
|
|
229
|
+
* @param {string} hash Hex-encoded hash of the transaction to check
|
|
230
|
+
* @returns {Promise<Api.GetTransactionResponse>} The status,
|
|
231
|
+
* result, and other details about the transaction
|
|
232
|
+
*
|
|
233
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction | getTransaction docs}
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* const transactionHash = "c4515e3bdc0897f21cc5dbec8c82cf0a936d4741cb74a8e158eb51b9fb00411a";
|
|
237
|
+
* server.getTransaction(transactionHash).then((tx) => {
|
|
238
|
+
* console.log("status:", tx.status);
|
|
239
|
+
* console.log("envelopeXdr:", tx.envelopeXdr);
|
|
240
|
+
* console.log("resultMetaXdr:", tx.resultMetaXdr);
|
|
241
|
+
* console.log("resultXdr:", tx.resultXdr);
|
|
242
|
+
* });
|
|
243
|
+
*/
|
|
244
|
+
getTransaction(hash: string): Promise<Api.GetTransactionResponse>;
|
|
245
|
+
_getTransaction(hash: string): Promise<Api.RawGetTransactionResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* Fetch transactions starting from a given start ledger or a cursor. The end ledger is the latest ledger
|
|
248
|
+
* in that RPC instance.
|
|
249
|
+
*
|
|
250
|
+
* @param {Api.GetTransactionsRequest} request - The request parameters.
|
|
251
|
+
* @returns {Promise<Api.GetTransactionsResponse>} - A promise that resolves to the transactions response.
|
|
252
|
+
*
|
|
253
|
+
* @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransactions
|
|
254
|
+
* @example
|
|
255
|
+
* server.getTransactions({
|
|
256
|
+
* startLedger: 10000,
|
|
257
|
+
* limit: 10,
|
|
258
|
+
* }).then((response) => {
|
|
259
|
+
* console.log("Transactions:", response.transactions);
|
|
260
|
+
* console.log("Latest Ledger:", response.latestLedger);
|
|
261
|
+
* console.log("Cursor:", response.cursor);
|
|
262
|
+
* });
|
|
263
|
+
*/
|
|
264
|
+
getTransactions(request: Api.GetTransactionsRequest): Promise<Api.GetTransactionsResponse>;
|
|
265
|
+
private _getTransactions;
|
|
266
|
+
/**
|
|
267
|
+
* Fetch all events that match a given set of filters.
|
|
268
|
+
*
|
|
269
|
+
* The given filters (see {@link module:rpc.Api.EventFilter | Api.EventFilter}
|
|
270
|
+
* for detailed fields) are combined only in a logical OR fashion, and all of
|
|
271
|
+
* the fields in each filter are optional.
|
|
272
|
+
*
|
|
273
|
+
* To page through events, use the `pagingToken` field on the relevant
|
|
274
|
+
* {@link Api.EventResponse} object to set the `cursor` parameter.
|
|
275
|
+
*
|
|
276
|
+
* @param {module:rpc.Server.GetEventsRequest} request Event filters
|
|
277
|
+
* @returns {Promise<Api.GetEventsResponse>} A paginatable set of the events
|
|
278
|
+
* matching the given event filters
|
|
279
|
+
*
|
|
280
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getEvents | getEvents docs}
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* server.getEvents({
|
|
284
|
+
* startLedger: 1000,
|
|
285
|
+
* endLedger: 2000,
|
|
286
|
+
* filters: [
|
|
287
|
+
* {
|
|
288
|
+
* type: "contract",
|
|
289
|
+
* contractIds: [ "deadb33f..." ],
|
|
290
|
+
* topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=", "*" ]]
|
|
291
|
+
* }, {
|
|
292
|
+
* type: "system",
|
|
293
|
+
* contractIds: [ "...c4f3b4b3..." ],
|
|
294
|
+
* topics: [[ "*" ], [ "*", "AAAAAQB6Mcc=" ]]
|
|
295
|
+
* }, {
|
|
296
|
+
* contractIds: [ "...c4f3b4b3..." ],
|
|
297
|
+
* topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==" ]]
|
|
298
|
+
* }, {
|
|
299
|
+
* type: "diagnostic",
|
|
300
|
+
* topics: [[ "AAAAAQB6Mcc=" ]]
|
|
301
|
+
* }
|
|
302
|
+
* ],
|
|
303
|
+
* limit: 10,
|
|
304
|
+
* });
|
|
305
|
+
*/
|
|
306
|
+
getEvents(request: RpcServer.GetEventsRequest): Promise<Api.GetEventsResponse>;
|
|
307
|
+
_getEvents(request: RpcServer.GetEventsRequest): Promise<Api.RawGetEventsResponse>;
|
|
308
|
+
/**
|
|
309
|
+
* Fetch metadata about the network this Soroban RPC server is connected to.
|
|
310
|
+
*
|
|
311
|
+
* @returns {Promise<Api.GetNetworkResponse>} Metadata about the current
|
|
312
|
+
* network this RPC server is connected to
|
|
313
|
+
*
|
|
314
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getNetwork | getNetwork docs}
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* server.getNetwork().then((network) => {
|
|
318
|
+
* console.log("friendbotUrl:", network.friendbotUrl);
|
|
319
|
+
* console.log("passphrase:", network.passphrase);
|
|
320
|
+
* console.log("protocolVersion:", network.protocolVersion);
|
|
321
|
+
* });
|
|
322
|
+
*/
|
|
323
|
+
getNetwork(): Promise<Api.GetNetworkResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Fetch the latest ledger meta info from network which this Soroban RPC
|
|
326
|
+
* server is connected to.
|
|
327
|
+
*
|
|
328
|
+
* @returns {Promise<Api.GetLatestLedgerResponse>} metadata about the
|
|
329
|
+
* latest ledger on the network that this RPC server is connected to
|
|
330
|
+
*
|
|
331
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLatestLedger | getLatestLedger docs}
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* server.getLatestLedger().then((response) => {
|
|
335
|
+
* console.log("hash:", response.id);
|
|
336
|
+
* console.log("sequence:", response.sequence);
|
|
337
|
+
* console.log("protocolVersion:", response.protocolVersion);
|
|
338
|
+
* });
|
|
339
|
+
*/
|
|
340
|
+
getLatestLedger(): Promise<Api.GetLatestLedgerResponse>;
|
|
341
|
+
/**
|
|
342
|
+
* Submit a trial contract invocation to get back return values, expected
|
|
343
|
+
* ledger footprint, expected authorizations, and expected costs.
|
|
344
|
+
*
|
|
345
|
+
* @param {Transaction | FeeBumpTransaction} tx the transaction to
|
|
346
|
+
* simulate, which should include exactly one operation (one of
|
|
347
|
+
* {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTTLOp}, or
|
|
348
|
+
* {@link xdr.RestoreFootprintOp}). Any provided footprint or auth
|
|
349
|
+
* information will be ignored.
|
|
350
|
+
* @returns {Promise<Api.SimulateTransactionResponse>} An object with the
|
|
351
|
+
* cost, footprint, result/auth requirements (if applicable), and error of
|
|
352
|
+
* the transaction
|
|
353
|
+
*
|
|
354
|
+
* @see {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
|
|
355
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
|
|
356
|
+
* @see module:rpc.Server#prepareTransaction
|
|
357
|
+
* @see module:rpc.assembleTransaction
|
|
358
|
+
*
|
|
359
|
+
* @example
|
|
360
|
+
* const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
|
|
361
|
+
* const contract = new StellarSdk.Contract(contractId);
|
|
362
|
+
*
|
|
363
|
+
* // Right now, this is just the default fee for this example.
|
|
364
|
+
* const fee = StellarSdk.BASE_FEE;
|
|
365
|
+
* const transaction = new StellarSdk.TransactionBuilder(account, { fee })
|
|
366
|
+
* // Uncomment the following line to build transactions for the live network. Be
|
|
367
|
+
* // sure to also change the horizon hostname.
|
|
368
|
+
* //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
|
|
369
|
+
* .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
|
|
370
|
+
* .setTimeout(30) // valid for the next 30s
|
|
371
|
+
* // Add an operation to call increment() on the contract
|
|
372
|
+
* .addOperation(contract.call("increment"))
|
|
373
|
+
* .build();
|
|
374
|
+
*
|
|
375
|
+
* server.simulateTransaction(transaction).then((sim) => {
|
|
376
|
+
* console.log("cost:", sim.cost);
|
|
377
|
+
* console.log("result:", sim.result);
|
|
378
|
+
* console.log("error:", sim.error);
|
|
379
|
+
* console.log("latestLedger:", sim.latestLedger);
|
|
380
|
+
* });
|
|
381
|
+
*/
|
|
382
|
+
simulateTransaction(tx: Transaction | FeeBumpTransaction, addlResources?: RpcServer.ResourceLeeway): Promise<Api.SimulateTransactionResponse>;
|
|
383
|
+
_simulateTransaction(transaction: Transaction | FeeBumpTransaction, addlResources?: RpcServer.ResourceLeeway): Promise<Api.RawSimulateTransactionResponse>;
|
|
384
|
+
/**
|
|
385
|
+
* Submit a trial contract invocation, first run a simulation of the contract
|
|
386
|
+
* invocation as defined on the incoming transaction, and apply the results to
|
|
387
|
+
* a new copy of the transaction which is then returned. Setting the ledger
|
|
388
|
+
* footprint and authorization, so the resulting transaction is ready for
|
|
389
|
+
* signing & sending.
|
|
390
|
+
*
|
|
391
|
+
* The returned transaction will also have an updated fee that is the sum of
|
|
392
|
+
* fee set on incoming transaction with the contract resource fees estimated
|
|
393
|
+
* from simulation. It is advisable to check the fee on returned transaction
|
|
394
|
+
* and validate or take appropriate measures for interaction with user to
|
|
395
|
+
* confirm it is acceptable.
|
|
396
|
+
*
|
|
397
|
+
* You can call the {@link module:rpc.Server#simulateTransaction} method
|
|
398
|
+
* directly first if you want to inspect estimated fees for a given
|
|
399
|
+
* transaction in detail first, then re-assemble it manually or via
|
|
400
|
+
* {@link module:rpc.assembleTransaction}.
|
|
401
|
+
*
|
|
402
|
+
* @param {Transaction | FeeBumpTransaction} tx the transaction to
|
|
403
|
+
* prepare. It should include exactly one operation, which must be one of
|
|
404
|
+
* {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTTLOp},
|
|
405
|
+
* or {@link xdr.RestoreFootprintOp}.
|
|
406
|
+
*
|
|
407
|
+
* Any provided footprint will be overwritten. However, if your operation
|
|
408
|
+
* has existing auth entries, they will be preferred over ALL auth entries
|
|
409
|
+
* from the simulation. In other words, if you include auth entries, you
|
|
410
|
+
* don't care about the auth returned from the simulation. Other fields
|
|
411
|
+
* (footprint, etc.) will be filled as normal.
|
|
412
|
+
* @returns {Promise<Transaction | FeeBumpTransaction>} A copy of the
|
|
413
|
+
* transaction with the expected authorizations (in the case of
|
|
414
|
+
* invocation), resources, and ledger footprints added. The transaction fee
|
|
415
|
+
* will also automatically be padded with the contract's minimum resource
|
|
416
|
+
* fees discovered from the simulation.
|
|
417
|
+
* @throws {jsonrpc.Error<any>|Error|Api.SimulateTransactionErrorResponse}
|
|
418
|
+
* If simulation fails
|
|
419
|
+
*
|
|
420
|
+
* @see module:rpc.assembleTransaction
|
|
421
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
|
|
425
|
+
* const contract = new StellarSdk.Contract(contractId);
|
|
426
|
+
*
|
|
427
|
+
* // Right now, this is just the default fee for this example.
|
|
428
|
+
* const fee = StellarSdk.BASE_FEE;
|
|
429
|
+
* const transaction = new StellarSdk.TransactionBuilder(account, { fee })
|
|
430
|
+
* // Uncomment the following line to build transactions for the live network. Be
|
|
431
|
+
* // sure to also change the horizon hostname.
|
|
432
|
+
* //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
|
|
433
|
+
* .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
|
|
434
|
+
* .setTimeout(30) // valid for the next 30s
|
|
435
|
+
* // Add an operation to call increment() on the contract
|
|
436
|
+
* .addOperation(contract.call("increment"))
|
|
437
|
+
* .build();
|
|
438
|
+
*
|
|
439
|
+
* const preparedTransaction = await server.prepareTransaction(transaction);
|
|
440
|
+
*
|
|
441
|
+
* // Sign this transaction with the secret key
|
|
442
|
+
* // NOTE: signing is transaction is network specific. Test network transactions
|
|
443
|
+
* // won't work in the public network. To switch networks, use the Network object
|
|
444
|
+
* // as explained above (look for StellarSdk.Network).
|
|
445
|
+
* const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
|
|
446
|
+
* preparedTransaction.sign(sourceKeypair);
|
|
447
|
+
*
|
|
448
|
+
* server.sendTransaction(transaction).then(result => {
|
|
449
|
+
* console.log("hash:", result.hash);
|
|
450
|
+
* console.log("status:", result.status);
|
|
451
|
+
* console.log("errorResultXdr:", result.errorResultXdr);
|
|
452
|
+
* });
|
|
453
|
+
*/
|
|
454
|
+
prepareTransaction(tx: Transaction | FeeBumpTransaction): Promise<Transaction<import("@stellar/stellar-base").Memo<import("@stellar/stellar-base").MemoType>, import("@stellar/stellar-base").Operation[]>>;
|
|
455
|
+
/**
|
|
456
|
+
* Submit a real transaction to the Stellar network.
|
|
457
|
+
*
|
|
458
|
+
* Unlike Horizon, Soroban RPC does not wait for transaction completion. It
|
|
459
|
+
* simply validates the transaction and enqueues it. Clients should call
|
|
460
|
+
* {@link module:rpc.Server#getTransaction} to learn about transaction
|
|
461
|
+
* success/failure.
|
|
462
|
+
*
|
|
463
|
+
* @param {Transaction | FeeBumpTransaction} transaction to submit
|
|
464
|
+
* @returns {Promise<Api.SendTransactionResponse>} the
|
|
465
|
+
* transaction id, status, and any error if available
|
|
466
|
+
*
|
|
467
|
+
* @see {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
|
|
468
|
+
* @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/sendTransaction | sendTransaction docs}
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
|
|
472
|
+
* const contract = new StellarSdk.Contract(contractId);
|
|
473
|
+
*
|
|
474
|
+
* // Right now, this is just the default fee for this example.
|
|
475
|
+
* const fee = StellarSdk.BASE_FEE;
|
|
476
|
+
* const transaction = new StellarSdk.TransactionBuilder(account, { fee })
|
|
477
|
+
* // Uncomment the following line to build transactions for the live network. Be
|
|
478
|
+
* // sure to also change the horizon hostname.
|
|
479
|
+
* //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
|
|
480
|
+
* .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
|
|
481
|
+
* .setTimeout(30) // valid for the next 30s
|
|
482
|
+
* // Add an operation to call increment() on the contract
|
|
483
|
+
* .addOperation(contract.call("increment"))
|
|
484
|
+
* .build();
|
|
485
|
+
*
|
|
486
|
+
* // Sign this transaction with the secret key
|
|
487
|
+
* // NOTE: signing is transaction is network specific. Test network transactions
|
|
488
|
+
* // won't work in the public network. To switch networks, use the Network object
|
|
489
|
+
* // as explained above (look for StellarSdk.Network).
|
|
490
|
+
* const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
|
|
491
|
+
* transaction.sign(sourceKeypair);
|
|
492
|
+
*
|
|
493
|
+
* server.sendTransaction(transaction).then((result) => {
|
|
494
|
+
* console.log("hash:", result.hash);
|
|
495
|
+
* console.log("status:", result.status);
|
|
496
|
+
* console.log("errorResultXdr:", result.errorResultXdr);
|
|
497
|
+
* });
|
|
498
|
+
*/
|
|
499
|
+
sendTransaction(transaction: Transaction | FeeBumpTransaction): Promise<Api.SendTransactionResponse>;
|
|
500
|
+
_sendTransaction(transaction: Transaction | FeeBumpTransaction): Promise<Api.RawSendTransactionResponse>;
|
|
501
|
+
/**
|
|
502
|
+
* Fund a new account using the network's Friendbot faucet, if any.
|
|
503
|
+
*
|
|
504
|
+
* @param {string | Account} address The address or account instance that we
|
|
505
|
+
* want to create and fund with Friendbot
|
|
506
|
+
* @param {string} [friendbotUrl] Optionally, an explicit address for
|
|
507
|
+
* friendbot (by default: this calls the Soroban RPC
|
|
508
|
+
* {@link module:rpc.Server#getNetwork | getNetwork} method to try to
|
|
509
|
+
* discover this network's Friendbot url).
|
|
510
|
+
* @returns {Promise<Account>} An {@link Account} object for the created
|
|
511
|
+
* account, or the existing account if it's already funded with the
|
|
512
|
+
* populated sequence number (note that the account will not be "topped
|
|
513
|
+
* off" if it already exists)
|
|
514
|
+
* @throws If Friendbot is not configured on this network or request failure
|
|
515
|
+
*
|
|
516
|
+
* @see {@link https://developers.stellar.org/docs/learn/networks#friendbot | Friendbot docs}
|
|
517
|
+
* @see {@link module:Friendbot.Api.Response}
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* server
|
|
521
|
+
* .requestAirdrop("GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4")
|
|
522
|
+
* .then((accountCreated) => {
|
|
523
|
+
* console.log("accountCreated:", accountCreated);
|
|
524
|
+
* }).catch((error) => {
|
|
525
|
+
* console.error("error:", error);
|
|
526
|
+
* });
|
|
527
|
+
*/
|
|
528
|
+
requestAirdrop(address: string | Pick<Account, 'accountId'>, friendbotUrl?: string): Promise<Account>;
|
|
529
|
+
/**
|
|
530
|
+
* Provides an analysis of the recent fee stats for regular and smart
|
|
531
|
+
* contract operations.
|
|
532
|
+
*
|
|
533
|
+
* @returns {Promise<Api.GetFeeStatsResponse>} the fee stats
|
|
534
|
+
* @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getFeeStats
|
|
535
|
+
*/
|
|
536
|
+
getFeeStats(): Promise<Api.GetFeeStatsResponse>;
|
|
537
|
+
/**
|
|
538
|
+
* Provides information about the current version details of the Soroban RPC and captive-core
|
|
539
|
+
*
|
|
540
|
+
* @returns {Promise<Api.GetVersionInfoResponse>} the version info
|
|
541
|
+
* @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getVersionInfo
|
|
542
|
+
*/
|
|
543
|
+
getVersionInfo(): Promise<Api.GetVersionInfoResponse>;
|
|
544
|
+
/**
|
|
545
|
+
* Returns a contract's balance of a particular SAC asset, if any.
|
|
546
|
+
*
|
|
547
|
+
* This is a convenience wrapper around {@link Server.getLedgerEntries}.
|
|
548
|
+
*
|
|
549
|
+
* @param {string} contractId the contract ID (string `C...`) whose
|
|
550
|
+
* balance of `sac` you want to know
|
|
551
|
+
* @param {Asset} sac the built-in SAC token (e.g. `USDC:GABC...`) that
|
|
552
|
+
* you are querying from the given `contract`.
|
|
553
|
+
* @param {string} [networkPassphrase] optionally, the network passphrase to
|
|
554
|
+
* which this token applies. If omitted, a request about network
|
|
555
|
+
* information will be made (see {@link getNetwork}), since contract IDs
|
|
556
|
+
* for assets are specific to a network. You can refer to {@link Networks}
|
|
557
|
+
* for a list of built-in passphrases, e.g., `Networks.TESTNET`.
|
|
558
|
+
*
|
|
559
|
+
* @returns {Promise<Api.BalanceResponse>}, which will contain the balance
|
|
560
|
+
* entry details if and only if the request returned a valid balance ledger
|
|
561
|
+
* entry. If it doesn't, the `balanceEntry` field will not exist.
|
|
562
|
+
*
|
|
563
|
+
* @throws {TypeError} If `contractId` is not a valid contract strkey (C...).
|
|
564
|
+
*
|
|
565
|
+
* @see getLedgerEntries
|
|
566
|
+
* @see https://developers.stellar.org/docs/tokens/stellar-asset-contract
|
|
567
|
+
*
|
|
568
|
+
* @example
|
|
569
|
+
* // assume `contractId` is some contract with an XLM balance
|
|
570
|
+
* // assume server is an instantiated `Server` instance.
|
|
571
|
+
* const entry = (await server.getSACBalance(
|
|
572
|
+
* new Address(contractId),
|
|
573
|
+
* Asset.native(),
|
|
574
|
+
* Networks.PUBLIC
|
|
575
|
+
* ));
|
|
576
|
+
*
|
|
577
|
+
* // assumes BigInt support:
|
|
578
|
+
* console.log(
|
|
579
|
+
* entry.balanceEntry ?
|
|
580
|
+
* BigInt(entry.balanceEntry.amount) :
|
|
581
|
+
* "Contract has no XLM");
|
|
582
|
+
*/
|
|
583
|
+
getSACBalance(contractId: string, sac: Asset, networkPassphrase?: string): Promise<Api.BalanceResponse>;
|
|
584
|
+
}
|