@digitalworld/digital-world-sdk 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1704) hide show
  1. package/LICENSE +228 -0
  2. package/README.md +479 -0
  3. package/bin/digital-world-js +5 -0
  4. package/dist/digital-world-sdk-axios.js +50568 -0
  5. package/dist/digital-world-sdk-axios.js.map +1 -0
  6. package/dist/digital-world-sdk-axios.min.js +199 -0
  7. package/dist/digital-world-sdk-axios.min.js.map +1 -0
  8. package/dist/digital-world-sdk.js +27737 -0
  9. package/dist/digital-world-sdk.js.map +1 -0
  10. package/dist/digital-world-sdk.min.js +200 -0
  11. package/dist/digital-world-sdk.min.js.map +1 -0
  12. package/lib/axios/cjs/base/account.js +60 -0
  13. package/lib/axios/cjs/base/account.js.map +1 -0
  14. package/lib/axios/cjs/base/address.js +195 -0
  15. package/lib/axios/cjs/base/address.js.map +1 -0
  16. package/lib/axios/cjs/base/asset.js +261 -0
  17. package/lib/axios/cjs/base/asset.js.map +1 -0
  18. package/lib/axios/cjs/base/auth.js +244 -0
  19. package/lib/axios/cjs/base/auth.js.map +1 -0
  20. package/lib/axios/cjs/base/claimant.js +147 -0
  21. package/lib/axios/cjs/base/claimant.js.map +1 -0
  22. package/lib/axios/cjs/base/contract.js +72 -0
  23. package/lib/axios/cjs/base/contract.js.map +1 -0
  24. package/lib/axios/cjs/base/events.js +27 -0
  25. package/lib/axios/cjs/base/events.js.map +1 -0
  26. package/lib/axios/cjs/base/fee_bump_transaction.js +94 -0
  27. package/lib/axios/cjs/base/fee_bump_transaction.js.map +1 -0
  28. package/lib/axios/cjs/base/generated/curr_generated.js +3792 -0
  29. package/lib/axios/cjs/base/generated/curr_generated.js.map +1 -0
  30. package/lib/axios/cjs/base/get_liquidity_pool_id.js +37 -0
  31. package/lib/axios/cjs/base/get_liquidity_pool_id.js.map +1 -0
  32. package/lib/axios/cjs/base/hashing.js +12 -0
  33. package/lib/axios/cjs/base/hashing.js.map +1 -0
  34. package/lib/axios/cjs/base/invocation.js +94 -0
  35. package/lib/axios/cjs/base/invocation.js.map +1 -0
  36. package/lib/axios/cjs/base/jsxdr.js +19 -0
  37. package/lib/axios/cjs/base/jsxdr.js.map +1 -0
  38. package/lib/axios/cjs/base/keypair.js +270 -0
  39. package/lib/axios/cjs/base/keypair.js.map +1 -0
  40. package/lib/axios/cjs/base/liquidity_pool_asset.js +107 -0
  41. package/lib/axios/cjs/base/liquidity_pool_asset.js.map +1 -0
  42. package/lib/axios/cjs/base/liquidity_pool_id.js +77 -0
  43. package/lib/axios/cjs/base/liquidity_pool_id.js.map +1 -0
  44. package/lib/axios/cjs/base/memo.js +237 -0
  45. package/lib/axios/cjs/base/memo.js.map +1 -0
  46. package/lib/axios/cjs/base/muxed_account.js +123 -0
  47. package/lib/axios/cjs/base/muxed_account.js.map +1 -0
  48. package/lib/axios/cjs/base/network.js +10 -0
  49. package/lib/axios/cjs/base/network.js.map +1 -0
  50. package/lib/axios/cjs/base/numbers/index.js +66 -0
  51. package/lib/axios/cjs/base/numbers/index.js.map +1 -0
  52. package/lib/axios/cjs/base/numbers/int128.js +31 -0
  53. package/lib/axios/cjs/base/numbers/int128.js.map +1 -0
  54. package/lib/axios/cjs/base/numbers/int256.js +31 -0
  55. package/lib/axios/cjs/base/numbers/int256.js.map +1 -0
  56. package/lib/axios/cjs/base/numbers/sc_int.js +54 -0
  57. package/lib/axios/cjs/base/numbers/sc_int.js.map +1 -0
  58. package/lib/axios/cjs/base/numbers/uint128.js +31 -0
  59. package/lib/axios/cjs/base/numbers/uint128.js.map +1 -0
  60. package/lib/axios/cjs/base/numbers/uint256.js +31 -0
  61. package/lib/axios/cjs/base/numbers/uint256.js.map +1 -0
  62. package/lib/axios/cjs/base/numbers/xdr_large_int.js +273 -0
  63. package/lib/axios/cjs/base/numbers/xdr_large_int.js.map +1 -0
  64. package/lib/axios/cjs/base/operation.js +455 -0
  65. package/lib/axios/cjs/base/operation.js.map +1 -0
  66. package/lib/axios/cjs/base/operations/account_merge.js +25 -0
  67. package/lib/axios/cjs/base/operations/account_merge.js.map +1 -0
  68. package/lib/axios/cjs/base/operations/allow_trust.js +50 -0
  69. package/lib/axios/cjs/base/operations/allow_trust.js.map +1 -0
  70. package/lib/axios/cjs/base/operations/begin_sponsoring_future_reserves.js +24 -0
  71. package/lib/axios/cjs/base/operations/begin_sponsoring_future_reserves.js.map +1 -0
  72. package/lib/axios/cjs/base/operations/bump_sequence.js +27 -0
  73. package/lib/axios/cjs/base/operations/bump_sequence.js.map +1 -0
  74. package/lib/axios/cjs/base/operations/change_trust.js +33 -0
  75. package/lib/axios/cjs/base/operations/change_trust.js.map +1 -0
  76. package/lib/axios/cjs/base/operations/claim_claimable_balance.js +30 -0
  77. package/lib/axios/cjs/base/operations/claim_claimable_balance.js.map +1 -0
  78. package/lib/axios/cjs/base/operations/clawback.js +31 -0
  79. package/lib/axios/cjs/base/operations/clawback.js.map +1 -0
  80. package/lib/axios/cjs/base/operations/clawback_claimable_balance.js +24 -0
  81. package/lib/axios/cjs/base/operations/clawback_claimable_balance.js.map +1 -0
  82. package/lib/axios/cjs/base/operations/create_account.js +28 -0
  83. package/lib/axios/cjs/base/operations/create_account.js.map +1 -0
  84. package/lib/axios/cjs/base/operations/create_claimable_balance.js +36 -0
  85. package/lib/axios/cjs/base/operations/create_claimable_balance.js.map +1 -0
  86. package/lib/axios/cjs/base/operations/create_passive_sell_offer.js +32 -0
  87. package/lib/axios/cjs/base/operations/create_passive_sell_offer.js.map +1 -0
  88. package/lib/axios/cjs/base/operations/end_sponsoring_future_reserves.js +16 -0
  89. package/lib/axios/cjs/base/operations/end_sponsoring_future_reserves.js.map +1 -0
  90. package/lib/axios/cjs/base/operations/extend_footprint_ttl.js +23 -0
  91. package/lib/axios/cjs/base/operations/extend_footprint_ttl.js.map +1 -0
  92. package/lib/axios/cjs/base/operations/inflation.js +16 -0
  93. package/lib/axios/cjs/base/operations/inflation.js.map +1 -0
  94. package/lib/axios/cjs/base/operations/invoke_host_function.js +143 -0
  95. package/lib/axios/cjs/base/operations/invoke_host_function.js.map +1 -0
  96. package/lib/axios/cjs/base/operations/liquidity_pool_deposit.js +48 -0
  97. package/lib/axios/cjs/base/operations/liquidity_pool_deposit.js.map +1 -0
  98. package/lib/axios/cjs/base/operations/liquidity_pool_withdraw.js +42 -0
  99. package/lib/axios/cjs/base/operations/liquidity_pool_withdraw.js.map +1 -0
  100. package/lib/axios/cjs/base/operations/manage_buy_offer.js +35 -0
  101. package/lib/axios/cjs/base/operations/manage_buy_offer.js.map +1 -0
  102. package/lib/axios/cjs/base/operations/manage_data.js +38 -0
  103. package/lib/axios/cjs/base/operations/manage_data.js.map +1 -0
  104. package/lib/axios/cjs/base/operations/manage_sell_offer.js +35 -0
  105. package/lib/axios/cjs/base/operations/manage_sell_offer.js.map +1 -0
  106. package/lib/axios/cjs/base/operations/path_payment_strict_receive.js +44 -0
  107. package/lib/axios/cjs/base/operations/path_payment_strict_receive.js.map +1 -0
  108. package/lib/axios/cjs/base/operations/path_payment_strict_send.js +48 -0
  109. package/lib/axios/cjs/base/operations/path_payment_strict_send.js.map +1 -0
  110. package/lib/axios/cjs/base/operations/payment.js +34 -0
  111. package/lib/axios/cjs/base/operations/payment.js.map +1 -0
  112. package/lib/axios/cjs/base/operations/restore_footprint.js +19 -0
  113. package/lib/axios/cjs/base/operations/restore_footprint.js.map +1 -0
  114. package/lib/axios/cjs/base/operations/revoke_sponsorship.js +198 -0
  115. package/lib/axios/cjs/base/operations/revoke_sponsorship.js.map +1 -0
  116. package/lib/axios/cjs/base/operations/set_options.js +138 -0
  117. package/lib/axios/cjs/base/operations/set_options.js.map +1 -0
  118. package/lib/axios/cjs/base/operations/set_trustline_flags.js +56 -0
  119. package/lib/axios/cjs/base/operations/set_trustline_flags.js.map +1 -0
  120. package/lib/axios/cjs/base/scval.js +253 -0
  121. package/lib/axios/cjs/base/scval.js.map +1 -0
  122. package/lib/axios/cjs/base/signerkey.js +72 -0
  123. package/lib/axios/cjs/base/signerkey.js.map +1 -0
  124. package/lib/axios/cjs/base/signing.js +48 -0
  125. package/lib/axios/cjs/base/signing.js.map +1 -0
  126. package/lib/axios/cjs/base/soroban.js +91 -0
  127. package/lib/axios/cjs/base/soroban.js.map +1 -0
  128. package/lib/axios/cjs/base/sorobandata_builder.js +148 -0
  129. package/lib/axios/cjs/base/sorobandata_builder.js.map +1 -0
  130. package/lib/axios/cjs/base/strkey.js +660 -0
  131. package/lib/axios/cjs/base/strkey.js.map +1 -0
  132. package/lib/axios/cjs/base/transaction.js +291 -0
  133. package/lib/axios/cjs/base/transaction.js.map +1 -0
  134. package/lib/axios/cjs/base/transaction_base.js +205 -0
  135. package/lib/axios/cjs/base/transaction_base.js.map +1 -0
  136. package/lib/axios/cjs/base/transaction_builder.js +887 -0
  137. package/lib/axios/cjs/base/transaction_builder.js.map +1 -0
  138. package/lib/axios/cjs/base/util/bignumber.js +14 -0
  139. package/lib/axios/cjs/base/util/bignumber.js.map +1 -0
  140. package/lib/axios/cjs/base/util/checksum.js +19 -0
  141. package/lib/axios/cjs/base/util/checksum.js.map +1 -0
  142. package/lib/axios/cjs/base/util/continued_fraction.js +83 -0
  143. package/lib/axios/cjs/base/util/continued_fraction.js.map +1 -0
  144. package/lib/axios/cjs/base/util/decode_encode_muxed_account.js +68 -0
  145. package/lib/axios/cjs/base/util/decode_encode_muxed_account.js.map +1 -0
  146. package/lib/axios/cjs/base/util/operations.js +101 -0
  147. package/lib/axios/cjs/base/util/operations.js.map +1 -0
  148. package/lib/axios/cjs/base/util/util.js +13 -0
  149. package/lib/axios/cjs/base/util/util.js.map +1 -0
  150. package/lib/axios/cjs/base/xdr.js +10 -0
  151. package/lib/axios/cjs/base/xdr.js.map +1 -0
  152. package/lib/axios/cjs/bindings/client.js +140 -0
  153. package/lib/axios/cjs/bindings/client.js.map +1 -0
  154. package/lib/axios/cjs/bindings/config.js +139 -0
  155. package/lib/axios/cjs/bindings/config.js.map +1 -0
  156. package/lib/axios/cjs/bindings/generator.js +204 -0
  157. package/lib/axios/cjs/bindings/generator.js.map +1 -0
  158. package/lib/axios/cjs/bindings/sac-spec.js +6 -0
  159. package/lib/axios/cjs/bindings/sac-spec.js.map +1 -0
  160. package/lib/axios/cjs/bindings/types.js +209 -0
  161. package/lib/axios/cjs/bindings/types.js.map +1 -0
  162. package/lib/axios/cjs/bindings/utils.js +322 -0
  163. package/lib/axios/cjs/bindings/utils.js.map +1 -0
  164. package/lib/axios/cjs/bindings/wasm_fetcher.js +125 -0
  165. package/lib/axios/cjs/bindings/wasm_fetcher.js.map +1 -0
  166. package/lib/axios/cjs/cli/index.js +187 -0
  167. package/lib/axios/cjs/cli/index.js.map +1 -0
  168. package/lib/axios/cjs/cli/util.js +182 -0
  169. package/lib/axios/cjs/cli/util.js.map +1 -0
  170. package/lib/axios/cjs/config.js +49 -0
  171. package/lib/axios/cjs/config.js.map +1 -0
  172. package/lib/axios/cjs/contract/assembled_transaction.js +711 -0
  173. package/lib/axios/cjs/contract/assembled_transaction.js.map +1 -0
  174. package/lib/axios/cjs/contract/basic_node_signer.js +48 -0
  175. package/lib/axios/cjs/contract/basic_node_signer.js.map +1 -0
  176. package/lib/axios/cjs/contract/client.js +174 -0
  177. package/lib/axios/cjs/contract/client.js.map +1 -0
  178. package/lib/axios/cjs/contract/errors.js +43 -0
  179. package/lib/axios/cjs/contract/errors.js.map +1 -0
  180. package/lib/axios/cjs/contract/index.js +23 -0
  181. package/lib/axios/cjs/contract/index.js.map +1 -0
  182. package/lib/axios/cjs/contract/rust_result.js +42 -0
  183. package/lib/axios/cjs/contract/rust_result.js.map +1 -0
  184. package/lib/axios/cjs/contract/sent_transaction.js +144 -0
  185. package/lib/axios/cjs/contract/sent_transaction.js.map +1 -0
  186. package/lib/axios/cjs/contract/spec.js +1118 -0
  187. package/lib/axios/cjs/contract/spec.js.map +1 -0
  188. package/lib/axios/cjs/contract/types.js +8 -0
  189. package/lib/axios/cjs/contract/types.js.map +1 -0
  190. package/lib/axios/cjs/contract/utils.js +138 -0
  191. package/lib/axios/cjs/contract/utils.js.map +1 -0
  192. package/lib/axios/cjs/contract/wasm_spec_parser.js +16 -0
  193. package/lib/axios/cjs/contract/wasm_spec_parser.js.map +1 -0
  194. package/lib/axios/cjs/dwtoml/index.js +70 -0
  195. package/lib/axios/cjs/dwtoml/index.js.map +1 -0
  196. package/lib/axios/cjs/errors/account_requires_memo.js +14 -0
  197. package/lib/axios/cjs/errors/account_requires_memo.js.map +1 -0
  198. package/lib/axios/cjs/errors/bad_request.js +9 -0
  199. package/lib/axios/cjs/errors/bad_request.js.map +1 -0
  200. package/lib/axios/cjs/errors/bad_response.js +9 -0
  201. package/lib/axios/cjs/errors/bad_response.js.map +1 -0
  202. package/lib/axios/cjs/errors/network.js +20 -0
  203. package/lib/axios/cjs/errors/network.js.map +1 -0
  204. package/lib/axios/cjs/errors/not_found.js +9 -0
  205. package/lib/axios/cjs/errors/not_found.js.map +1 -0
  206. package/lib/axios/cjs/faucet/index.js +3 -0
  207. package/lib/axios/cjs/faucet/index.js.map +1 -0
  208. package/lib/axios/cjs/federation/index.js +9 -0
  209. package/lib/axios/cjs/federation/index.js.map +1 -0
  210. package/lib/axios/cjs/federation/server.js +229 -0
  211. package/lib/axios/cjs/federation/server.js.map +1 -0
  212. package/lib/axios/cjs/federation/utils.js +14 -0
  213. package/lib/axios/cjs/federation/utils.js.map +1 -0
  214. package/lib/axios/cjs/gateway/account_call_builder.js +70 -0
  215. package/lib/axios/cjs/gateway/account_call_builder.js.map +1 -0
  216. package/lib/axios/cjs/gateway/account_response.js +106 -0
  217. package/lib/axios/cjs/gateway/account_response.js.map +1 -0
  218. package/lib/axios/cjs/gateway/assets_call_builder.js +31 -0
  219. package/lib/axios/cjs/gateway/assets_call_builder.js.map +1 -0
  220. package/lib/axios/cjs/gateway/call_builder.js +356 -0
  221. package/lib/axios/cjs/gateway/call_builder.js.map +1 -0
  222. package/lib/axios/cjs/gateway/claimable_balances_call_builder.js +61 -0
  223. package/lib/axios/cjs/gateway/claimable_balances_call_builder.js.map +1 -0
  224. package/lib/axios/cjs/gateway/effect_call_builder.js +60 -0
  225. package/lib/axios/cjs/gateway/effect_call_builder.js.map +1 -0
  226. package/lib/axios/cjs/gateway/faucet.js +14 -0
  227. package/lib/axios/cjs/gateway/faucet.js.map +1 -0
  228. package/lib/axios/cjs/gateway/gateway_api.js +84 -0
  229. package/lib/axios/cjs/gateway/gateway_api.js.map +1 -0
  230. package/lib/axios/cjs/gateway/gateway_axios_client.js +66 -0
  231. package/lib/axios/cjs/gateway/gateway_axios_client.js.map +1 -0
  232. package/lib/axios/cjs/gateway/index.js +23 -0
  233. package/lib/axios/cjs/gateway/index.js.map +1 -0
  234. package/lib/axios/cjs/gateway/ledger_call_builder.js +22 -0
  235. package/lib/axios/cjs/gateway/ledger_call_builder.js.map +1 -0
  236. package/lib/axios/cjs/gateway/liquidity_pool_call_builder.js +51 -0
  237. package/lib/axios/cjs/gateway/liquidity_pool_call_builder.js.map +1 -0
  238. package/lib/axios/cjs/gateway/offer_call_builder.js +95 -0
  239. package/lib/axios/cjs/gateway/offer_call_builder.js.map +1 -0
  240. package/lib/axios/cjs/gateway/operation_call_builder.js +85 -0
  241. package/lib/axios/cjs/gateway/operation_call_builder.js.map +1 -0
  242. package/lib/axios/cjs/gateway/orderbook_call_builder.js +29 -0
  243. package/lib/axios/cjs/gateway/orderbook_call_builder.js.map +1 -0
  244. package/lib/axios/cjs/gateway/payment_call_builder.js +51 -0
  245. package/lib/axios/cjs/gateway/payment_call_builder.js.map +1 -0
  246. package/lib/axios/cjs/gateway/server.js +746 -0
  247. package/lib/axios/cjs/gateway/server.js.map +1 -0
  248. package/lib/axios/cjs/gateway/server_api.js +17 -0
  249. package/lib/axios/cjs/gateway/server_api.js.map +1 -0
  250. package/lib/axios/cjs/gateway/strict_receive_path_call_builder.js +39 -0
  251. package/lib/axios/cjs/gateway/strict_receive_path_call_builder.js.map +1 -0
  252. package/lib/axios/cjs/gateway/strict_send_path_call_builder.js +36 -0
  253. package/lib/axios/cjs/gateway/strict_send_path_call_builder.js.map +1 -0
  254. package/lib/axios/cjs/gateway/trade_aggregation_call_builder.js +72 -0
  255. package/lib/axios/cjs/gateway/trade_aggregation_call_builder.js.map +1 -0
  256. package/lib/axios/cjs/gateway/trades_call_builder.js +74 -0
  257. package/lib/axios/cjs/gateway/trades_call_builder.js.map +1 -0
  258. package/lib/axios/cjs/gateway/transaction_call_builder.js +73 -0
  259. package/lib/axios/cjs/gateway/transaction_call_builder.js.map +1 -0
  260. package/lib/axios/cjs/gateway/types/effects.js +61 -0
  261. package/lib/axios/cjs/gateway/types/effects.js.map +1 -0
  262. package/lib/axios/cjs/http-client/axios-client.js +14 -0
  263. package/lib/axios/cjs/http-client/axios-client.js.map +1 -0
  264. package/lib/axios/cjs/http-client/axios.js +11 -0
  265. package/lib/axios/cjs/http-client/axios.js.map +1 -0
  266. package/lib/axios/cjs/http-client/fetch-client.js +474 -0
  267. package/lib/axios/cjs/http-client/fetch-client.js.map +1 -0
  268. package/lib/axios/cjs/http-client/index.js +11 -0
  269. package/lib/axios/cjs/http-client/index.js.map +1 -0
  270. package/lib/axios/cjs/http-client/types.js +24 -0
  271. package/lib/axios/cjs/http-client/types.js.map +1 -0
  272. package/lib/axios/cjs/index.js +141 -0
  273. package/lib/axios/cjs/index.js.map +1 -0
  274. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js +68 -0
  275. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js.map +1 -0
  276. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js +179 -0
  277. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js.map +1 -0
  278. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js +41 -0
  279. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js.map +1 -0
  280. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js +262 -0
  281. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js.map +1 -0
  282. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js +32 -0
  283. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js.map +1 -0
  284. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js +99 -0
  285. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js.map +1 -0
  286. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js +33 -0
  287. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js.map +1 -0
  288. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js +32 -0
  289. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js.map +1 -0
  290. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js +43 -0
  291. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js.map +1 -0
  292. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js +44 -0
  293. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js.map +1 -0
  294. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js +144 -0
  295. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js.map +1 -0
  296. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js +41 -0
  297. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js.map +1 -0
  298. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js +49 -0
  299. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js.map +1 -0
  300. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js +21 -0
  301. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js.map +1 -0
  302. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js +16 -0
  303. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js.map +1 -0
  304. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js +171 -0
  305. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js.map +1 -0
  306. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js +186 -0
  307. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js.map +1 -0
  308. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js +64 -0
  309. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js.map +1 -0
  310. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js +96 -0
  311. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js.map +1 -0
  312. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js +184 -0
  313. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js.map +1 -0
  314. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js +43 -0
  315. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js.map +1 -0
  316. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js +47 -0
  317. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js.map +1 -0
  318. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js +77 -0
  319. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js.map +1 -0
  320. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js +49 -0
  321. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js.map +1 -0
  322. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js +24 -0
  323. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js.map +1 -0
  324. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js +262 -0
  325. package/lib/axios/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js.map +1 -0
  326. package/lib/axios/cjs/package.json +3 -0
  327. package/lib/axios/cjs/rpc/api.js +27 -0
  328. package/lib/axios/cjs/rpc/api.js.map +1 -0
  329. package/lib/axios/cjs/rpc/axios.js +18 -0
  330. package/lib/axios/cjs/rpc/axios.js.map +1 -0
  331. package/lib/axios/cjs/rpc/index.js +21 -0
  332. package/lib/axios/cjs/rpc/index.js.map +1 -0
  333. package/lib/axios/cjs/rpc/jsonrpc.js +22 -0
  334. package/lib/axios/cjs/rpc/jsonrpc.js.map +1 -0
  335. package/lib/axios/cjs/rpc/parsers.js +245 -0
  336. package/lib/axios/cjs/rpc/parsers.js.map +1 -0
  337. package/lib/axios/cjs/rpc/server.js +1304 -0
  338. package/lib/axios/cjs/rpc/server.js.map +1 -0
  339. package/lib/axios/cjs/rpc/transaction.js +99 -0
  340. package/lib/axios/cjs/rpc/transaction.js.map +1 -0
  341. package/lib/axios/cjs/utils/url.js +33 -0
  342. package/lib/axios/cjs/utils/url.js.map +1 -0
  343. package/lib/axios/cjs/utils.js +27 -0
  344. package/lib/axios/cjs/utils.js.map +1 -0
  345. package/lib/axios/cjs/webauth/challenge_transaction.js +334 -0
  346. package/lib/axios/cjs/webauth/challenge_transaction.js.map +1 -0
  347. package/lib/axios/cjs/webauth/errors.js +7 -0
  348. package/lib/axios/cjs/webauth/errors.js.map +1 -0
  349. package/lib/axios/cjs/webauth/index.js +16 -0
  350. package/lib/axios/cjs/webauth/index.js.map +1 -0
  351. package/lib/axios/cjs/webauth/utils.js +61 -0
  352. package/lib/axios/cjs/webauth/utils.js.map +1 -0
  353. package/lib/axios/esm/base/account.d.ts +35 -0
  354. package/lib/axios/esm/base/account.js +58 -0
  355. package/lib/axios/esm/base/account.js.map +1 -0
  356. package/lib/axios/esm/base/address.d.ts +87 -0
  357. package/lib/axios/esm/base/address.js +193 -0
  358. package/lib/axios/esm/base/address.js.map +1 -0
  359. package/lib/axios/esm/base/asset.d.ts +118 -0
  360. package/lib/axios/esm/base/asset.js +258 -0
  361. package/lib/axios/esm/base/asset.js.map +1 -0
  362. package/lib/axios/esm/base/auth.d.ts +273 -0
  363. package/lib/axios/esm/base/auth.js +238 -0
  364. package/lib/axios/esm/base/auth.js.map +1 -0
  365. package/lib/axios/esm/base/claimant.d.ts +75 -0
  366. package/lib/axios/esm/base/claimant.js +145 -0
  367. package/lib/axios/esm/base/claimant.js.map +1 -0
  368. package/lib/axios/esm/base/contract.d.ts +47 -0
  369. package/lib/axios/esm/base/contract.js +70 -0
  370. package/lib/axios/esm/base/contract.js.map +1 -0
  371. package/lib/axios/esm/base/events.d.ts +22 -0
  372. package/lib/axios/esm/base/events.js +25 -0
  373. package/lib/axios/esm/base/events.js.map +1 -0
  374. package/lib/axios/esm/base/fee_bump_transaction.d.ts +47 -0
  375. package/lib/axios/esm/base/fee_bump_transaction.js +92 -0
  376. package/lib/axios/esm/base/fee_bump_transaction.js.map +1 -0
  377. package/lib/axios/esm/base/generated/curr.d.ts +16280 -0
  378. package/lib/axios/esm/base/generated/curr_generated.d.ts +4 -0
  379. package/lib/axios/esm/base/generated/curr_generated.js +3788 -0
  380. package/lib/axios/esm/base/generated/curr_generated.js.map +1 -0
  381. package/lib/axios/esm/base/generated/next.d.ts +16280 -0
  382. package/lib/axios/esm/base/generated/next_generated.d.ts +4 -0
  383. package/lib/axios/esm/base/get_liquidity_pool_id.d.ts +29 -0
  384. package/lib/axios/esm/base/get_liquidity_pool_id.js +34 -0
  385. package/lib/axios/esm/base/get_liquidity_pool_id.js.map +1 -0
  386. package/lib/axios/esm/base/hashing.d.ts +6 -0
  387. package/lib/axios/esm/base/hashing.js +10 -0
  388. package/lib/axios/esm/base/hashing.js.map +1 -0
  389. package/lib/axios/esm/base/index.d.ts +39 -0
  390. package/lib/axios/esm/base/invocation.d.ts +116 -0
  391. package/lib/axios/esm/base/invocation.js +91 -0
  392. package/lib/axios/esm/base/invocation.js.map +1 -0
  393. package/lib/axios/esm/base/jsxdr.d.ts +7 -0
  394. package/lib/axios/esm/base/jsxdr.js +13 -0
  395. package/lib/axios/esm/base/jsxdr.js.map +1 -0
  396. package/lib/axios/esm/base/keypair.d.ts +139 -0
  397. package/lib/axios/esm/base/keypair.js +248 -0
  398. package/lib/axios/esm/base/keypair.js.map +1 -0
  399. package/lib/axios/esm/base/liquidity_pool_asset.d.ts +50 -0
  400. package/lib/axios/esm/base/liquidity_pool_asset.js +105 -0
  401. package/lib/axios/esm/base/liquidity_pool_asset.js.map +1 -0
  402. package/lib/axios/esm/base/liquidity_pool_id.d.ts +45 -0
  403. package/lib/axios/esm/base/liquidity_pool_id.js +75 -0
  404. package/lib/axios/esm/base/liquidity_pool_id.js.map +1 -0
  405. package/lib/axios/esm/base/memo.d.ts +112 -0
  406. package/lib/axios/esm/base/memo.js +230 -0
  407. package/lib/axios/esm/base/memo.js.map +1 -0
  408. package/lib/axios/esm/base/muxed_account.d.ts +94 -0
  409. package/lib/axios/esm/base/muxed_account.js +121 -0
  410. package/lib/axios/esm/base/muxed_account.js.map +1 -0
  411. package/lib/axios/esm/base/network.d.ts +9 -0
  412. package/lib/axios/esm/base/network.js +8 -0
  413. package/lib/axios/esm/base/network.js.map +1 -0
  414. package/lib/axios/esm/base/numbers/index.d.ts +29 -0
  415. package/lib/axios/esm/base/numbers/index.js +59 -0
  416. package/lib/axios/esm/base/numbers/index.js.map +1 -0
  417. package/lib/axios/esm/base/numbers/int128.d.ts +12 -0
  418. package/lib/axios/esm/base/numbers/int128.js +29 -0
  419. package/lib/axios/esm/base/numbers/int128.js.map +1 -0
  420. package/lib/axios/esm/base/numbers/int256.d.ts +12 -0
  421. package/lib/axios/esm/base/numbers/int256.js +29 -0
  422. package/lib/axios/esm/base/numbers/int256.js.map +1 -0
  423. package/lib/axios/esm/base/numbers/sc_int.d.ts +79 -0
  424. package/lib/axios/esm/base/numbers/sc_int.js +52 -0
  425. package/lib/axios/esm/base/numbers/sc_int.js.map +1 -0
  426. package/lib/axios/esm/base/numbers/uint128.d.ts +12 -0
  427. package/lib/axios/esm/base/numbers/uint128.js +29 -0
  428. package/lib/axios/esm/base/numbers/uint128.js.map +1 -0
  429. package/lib/axios/esm/base/numbers/uint256.d.ts +12 -0
  430. package/lib/axios/esm/base/numbers/uint256.js +29 -0
  431. package/lib/axios/esm/base/numbers/uint256.js.map +1 -0
  432. package/lib/axios/esm/base/numbers/xdr_large_int.d.ts +93 -0
  433. package/lib/axios/esm/base/numbers/xdr_large_int.js +271 -0
  434. package/lib/axios/esm/base/numbers/xdr_large_int.js.map +1 -0
  435. package/lib/axios/esm/base/operation.d.ts +161 -0
  436. package/lib/axios/esm/base/operation.js +449 -0
  437. package/lib/axios/esm/base/operation.js.map +1 -0
  438. package/lib/axios/esm/base/operations/account_merge.d.ts +11 -0
  439. package/lib/axios/esm/base/operations/account_merge.js +23 -0
  440. package/lib/axios/esm/base/operations/account_merge.js.map +1 -0
  441. package/lib/axios/esm/base/operations/allow_trust.d.ts +15 -0
  442. package/lib/axios/esm/base/operations/allow_trust.js +48 -0
  443. package/lib/axios/esm/base/operations/allow_trust.js.map +1 -0
  444. package/lib/axios/esm/base/operations/begin_sponsoring_future_reserves.d.ts +17 -0
  445. package/lib/axios/esm/base/operations/begin_sponsoring_future_reserves.js +22 -0
  446. package/lib/axios/esm/base/operations/begin_sponsoring_future_reserves.js.map +1 -0
  447. package/lib/axios/esm/base/operations/bump_sequence.d.ts +9 -0
  448. package/lib/axios/esm/base/operations/bump_sequence.js +25 -0
  449. package/lib/axios/esm/base/operations/bump_sequence.js.map +1 -0
  450. package/lib/axios/esm/base/operations/change_trust.d.ts +13 -0
  451. package/lib/axios/esm/base/operations/change_trust.js +31 -0
  452. package/lib/axios/esm/base/operations/change_trust.js.map +1 -0
  453. package/lib/axios/esm/base/operations/claim_claimable_balance.d.ts +22 -0
  454. package/lib/axios/esm/base/operations/claim_claimable_balance.js +27 -0
  455. package/lib/axios/esm/base/operations/claim_claimable_balance.js.map +1 -0
  456. package/lib/axios/esm/base/operations/clawback.d.ts +17 -0
  457. package/lib/axios/esm/base/operations/clawback.js +29 -0
  458. package/lib/axios/esm/base/operations/clawback.js.map +1 -0
  459. package/lib/axios/esm/base/operations/clawback_claimable_balance.d.ts +19 -0
  460. package/lib/axios/esm/base/operations/clawback_claimable_balance.js +22 -0
  461. package/lib/axios/esm/base/operations/clawback_claimable_balance.js.map +1 -0
  462. package/lib/axios/esm/base/operations/create_account.d.ts +12 -0
  463. package/lib/axios/esm/base/operations/create_account.js +26 -0
  464. package/lib/axios/esm/base/operations/create_account.js.map +1 -0
  465. package/lib/axios/esm/base/operations/create_claimable_balance.d.ts +34 -0
  466. package/lib/axios/esm/base/operations/create_claimable_balance.js +34 -0
  467. package/lib/axios/esm/base/operations/create_claimable_balance.js.map +1 -0
  468. package/lib/axios/esm/base/operations/create_passive_sell_offer.d.ts +18 -0
  469. package/lib/axios/esm/base/operations/create_passive_sell_offer.js +30 -0
  470. package/lib/axios/esm/base/operations/create_passive_sell_offer.js.map +1 -0
  471. package/lib/axios/esm/base/operations/end_sponsoring_future_reserves.d.ts +14 -0
  472. package/lib/axios/esm/base/operations/end_sponsoring_future_reserves.js +14 -0
  473. package/lib/axios/esm/base/operations/end_sponsoring_future_reserves.js.map +1 -0
  474. package/lib/axios/esm/base/operations/extend_footprint_ttl.d.ts +28 -0
  475. package/lib/axios/esm/base/operations/extend_footprint_ttl.js +21 -0
  476. package/lib/axios/esm/base/operations/extend_footprint_ttl.js.map +1 -0
  477. package/lib/axios/esm/base/operations/index.d.ts +28 -0
  478. package/lib/axios/esm/base/operations/inflation.d.ts +8 -0
  479. package/lib/axios/esm/base/operations/inflation.js +14 -0
  480. package/lib/axios/esm/base/operations/inflation.js.map +1 -0
  481. package/lib/axios/esm/base/operations/invoke_host_function.d.ts +78 -0
  482. package/lib/axios/esm/base/operations/invoke_host_function.js +137 -0
  483. package/lib/axios/esm/base/operations/invoke_host_function.js.map +1 -0
  484. package/lib/axios/esm/base/operations/liquidity_pool_deposit.d.ts +20 -0
  485. package/lib/axios/esm/base/operations/liquidity_pool_deposit.js +46 -0
  486. package/lib/axios/esm/base/operations/liquidity_pool_deposit.js.map +1 -0
  487. package/lib/axios/esm/base/operations/liquidity_pool_withdraw.d.ts +15 -0
  488. package/lib/axios/esm/base/operations/liquidity_pool_withdraw.js +40 -0
  489. package/lib/axios/esm/base/operations/liquidity_pool_withdraw.js.map +1 -0
  490. package/lib/axios/esm/base/operations/manage_buy_offer.d.ts +17 -0
  491. package/lib/axios/esm/base/operations/manage_buy_offer.js +33 -0
  492. package/lib/axios/esm/base/operations/manage_buy_offer.js.map +1 -0
  493. package/lib/axios/esm/base/operations/manage_data.d.ts +10 -0
  494. package/lib/axios/esm/base/operations/manage_data.js +36 -0
  495. package/lib/axios/esm/base/operations/manage_data.js.map +1 -0
  496. package/lib/axios/esm/base/operations/manage_sell_offer.d.ts +17 -0
  497. package/lib/axios/esm/base/operations/manage_sell_offer.js +33 -0
  498. package/lib/axios/esm/base/operations/manage_sell_offer.js.map +1 -0
  499. package/lib/axios/esm/base/operations/path_payment_strict_receive.d.ts +24 -0
  500. package/lib/axios/esm/base/operations/path_payment_strict_receive.js +42 -0
  501. package/lib/axios/esm/base/operations/path_payment_strict_receive.js.map +1 -0
  502. package/lib/axios/esm/base/operations/path_payment_strict_send.d.ts +22 -0
  503. package/lib/axios/esm/base/operations/path_payment_strict_send.js +46 -0
  504. package/lib/axios/esm/base/operations/path_payment_strict_send.js.map +1 -0
  505. package/lib/axios/esm/base/operations/payment.d.ts +15 -0
  506. package/lib/axios/esm/base/operations/payment.js +32 -0
  507. package/lib/axios/esm/base/operations/payment.js.map +1 -0
  508. package/lib/axios/esm/base/operations/restore_footprint.d.ts +20 -0
  509. package/lib/axios/esm/base/operations/restore_footprint.js +17 -0
  510. package/lib/axios/esm/base/operations/restore_footprint.js.map +1 -0
  511. package/lib/axios/esm/base/operations/revoke_sponsorship.d.ts +124 -0
  512. package/lib/axios/esm/base/operations/revoke_sponsorship.js +190 -0
  513. package/lib/axios/esm/base/operations/revoke_sponsorship.js.map +1 -0
  514. package/lib/axios/esm/base/operations/set_options.d.ts +34 -0
  515. package/lib/axios/esm/base/operations/set_options.js +136 -0
  516. package/lib/axios/esm/base/operations/set_options.js.map +1 -0
  517. package/lib/axios/esm/base/operations/set_trustline_flags.d.ts +31 -0
  518. package/lib/axios/esm/base/operations/set_trustline_flags.js +54 -0
  519. package/lib/axios/esm/base/operations/set_trustline_flags.js.map +1 -0
  520. package/lib/axios/esm/base/operations/types.d.ts +508 -0
  521. package/lib/axios/esm/base/scval.d.ts +184 -0
  522. package/lib/axios/esm/base/scval.js +249 -0
  523. package/lib/axios/esm/base/scval.js.map +1 -0
  524. package/lib/axios/esm/base/signerkey.d.ts +27 -0
  525. package/lib/axios/esm/base/signerkey.js +70 -0
  526. package/lib/axios/esm/base/signerkey.js.map +1 -0
  527. package/lib/axios/esm/base/signing.d.ts +21 -0
  528. package/lib/axios/esm/base/signing.js +24 -0
  529. package/lib/axios/esm/base/signing.js.map +1 -0
  530. package/lib/axios/esm/base/soroban.d.ts +45 -0
  531. package/lib/axios/esm/base/soroban.js +89 -0
  532. package/lib/axios/esm/base/soroban.js.map +1 -0
  533. package/lib/axios/esm/base/sorobandata_builder.d.ts +103 -0
  534. package/lib/axios/esm/base/sorobandata_builder.js +146 -0
  535. package/lib/axios/esm/base/sorobandata_builder.js.map +1 -0
  536. package/lib/axios/esm/base/strkey.d.ts +186 -0
  537. package/lib/axios/esm/base/strkey.js +652 -0
  538. package/lib/axios/esm/base/strkey.js.map +1 -0
  539. package/lib/axios/esm/base/transaction.d.ts +110 -0
  540. package/lib/axios/esm/base/transaction.js +289 -0
  541. package/lib/axios/esm/base/transaction.js.map +1 -0
  542. package/lib/axios/esm/base/transaction_base.d.ts +110 -0
  543. package/lib/axios/esm/base/transaction_base.js +203 -0
  544. package/lib/axios/esm/base/transaction_base.js.map +1 -0
  545. package/lib/axios/esm/base/transaction_builder.d.ts +394 -0
  546. package/lib/axios/esm/base/transaction_builder.js +882 -0
  547. package/lib/axios/esm/base/transaction_builder.js.map +1 -0
  548. package/lib/axios/esm/base/transaction_source.d.ts +31 -0
  549. package/lib/axios/esm/base/util/bignumber.d.ts +5 -0
  550. package/lib/axios/esm/base/util/bignumber.js +6 -0
  551. package/lib/axios/esm/base/util/bignumber.js.map +1 -0
  552. package/lib/axios/esm/base/util/checksum.d.ts +7 -0
  553. package/lib/axios/esm/base/util/checksum.js +17 -0
  554. package/lib/axios/esm/base/util/checksum.js.map +1 -0
  555. package/lib/axios/esm/base/util/continued_fraction.d.ts +9 -0
  556. package/lib/axios/esm/base/util/continued_fraction.js +81 -0
  557. package/lib/axios/esm/base/util/continued_fraction.js.map +1 -0
  558. package/lib/axios/esm/base/util/decode_encode_muxed_account.d.ts +34 -0
  559. package/lib/axios/esm/base/util/decode_encode_muxed_account.js +63 -0
  560. package/lib/axios/esm/base/util/decode_encode_muxed_account.js.map +1 -0
  561. package/lib/axios/esm/base/util/operations.d.ts +61 -0
  562. package/lib/axios/esm/base/util/operations.js +91 -0
  563. package/lib/axios/esm/base/util/operations.js.map +1 -0
  564. package/lib/axios/esm/base/util/util.d.ts +7 -0
  565. package/lib/axios/esm/base/util/util.js +11 -0
  566. package/lib/axios/esm/base/util/util.js.map +1 -0
  567. package/lib/axios/esm/base/xdr.d.ts +2 -0
  568. package/lib/axios/esm/base/xdr.js +6 -0
  569. package/lib/axios/esm/base/xdr.js.map +1 -0
  570. package/lib/axios/esm/bindings/client.d.ts +30 -0
  571. package/lib/axios/esm/bindings/client.js +138 -0
  572. package/lib/axios/esm/bindings/client.js.map +1 -0
  573. package/lib/axios/esm/bindings/config.d.ts +34 -0
  574. package/lib/axios/esm/bindings/config.js +137 -0
  575. package/lib/axios/esm/bindings/config.js.map +1 -0
  576. package/lib/axios/esm/bindings/generator.d.ts +192 -0
  577. package/lib/axios/esm/bindings/generator.js +202 -0
  578. package/lib/axios/esm/bindings/generator.js.map +1 -0
  579. package/lib/axios/esm/bindings/index.d.ts +6 -0
  580. package/lib/axios/esm/bindings/sac-spec.d.ts +1 -0
  581. package/lib/axios/esm/bindings/sac-spec.js +4 -0
  582. package/lib/axios/esm/bindings/sac-spec.js.map +1 -0
  583. package/lib/axios/esm/bindings/types.d.ts +66 -0
  584. package/lib/axios/esm/bindings/types.js +207 -0
  585. package/lib/axios/esm/bindings/types.js.map +1 -0
  586. package/lib/axios/esm/bindings/utils.d.ts +53 -0
  587. package/lib/axios/esm/bindings/utils.js +313 -0
  588. package/lib/axios/esm/bindings/utils.js.map +1 -0
  589. package/lib/axios/esm/bindings/wasm_fetcher.d.ts +25 -0
  590. package/lib/axios/esm/bindings/wasm_fetcher.js +121 -0
  591. package/lib/axios/esm/bindings/wasm_fetcher.js.map +1 -0
  592. package/lib/axios/esm/browser-axios.d.ts +4 -0
  593. package/lib/axios/esm/browser.d.ts +4 -0
  594. package/lib/axios/esm/cli/index.d.ts +2 -0
  595. package/lib/axios/esm/cli/index.js +165 -0
  596. package/lib/axios/esm/cli/index.js.map +1 -0
  597. package/lib/axios/esm/cli/util.d.ts +55 -0
  598. package/lib/axios/esm/cli/util.js +155 -0
  599. package/lib/axios/esm/cli/util.js.map +1 -0
  600. package/lib/axios/esm/config.d.ts +60 -0
  601. package/lib/axios/esm/config.js +47 -0
  602. package/lib/axios/esm/config.js.map +1 -0
  603. package/lib/axios/esm/contract/assembled_transaction.d.ts +533 -0
  604. package/lib/axios/esm/contract/assembled_transaction.js +709 -0
  605. package/lib/axios/esm/contract/assembled_transaction.js.map +1 -0
  606. package/lib/axios/esm/contract/basic_node_signer.d.ts +17 -0
  607. package/lib/axios/esm/contract/basic_node_signer.js +46 -0
  608. package/lib/axios/esm/contract/basic_node_signer.js.map +1 -0
  609. package/lib/axios/esm/contract/client.d.ts +64 -0
  610. package/lib/axios/esm/contract/client.js +172 -0
  611. package/lib/axios/esm/contract/client.js.map +1 -0
  612. package/lib/axios/esm/contract/errors.d.ts +26 -0
  613. package/lib/axios/esm/contract/errors.js +29 -0
  614. package/lib/axios/esm/contract/errors.js.map +1 -0
  615. package/lib/axios/esm/contract/index.d.ts +7 -0
  616. package/lib/axios/esm/contract/index.js +8 -0
  617. package/lib/axios/esm/contract/index.js.map +1 -0
  618. package/lib/axios/esm/contract/rust_result.d.ts +79 -0
  619. package/lib/axios/esm/contract/rust_result.js +39 -0
  620. package/lib/axios/esm/contract/rust_result.js.map +1 -0
  621. package/lib/axios/esm/contract/sent_transaction.d.ts +118 -0
  622. package/lib/axios/esm/contract/sent_transaction.js +141 -0
  623. package/lib/axios/esm/contract/sent_transaction.js.map +1 -0
  624. package/lib/axios/esm/contract/spec.d.ts +176 -0
  625. package/lib/axios/esm/contract/spec.js +1116 -0
  626. package/lib/axios/esm/contract/spec.js.map +1 -0
  627. package/lib/axios/esm/contract/types.d.ts +272 -0
  628. package/lib/axios/esm/contract/types.js +5 -0
  629. package/lib/axios/esm/contract/types.js.map +1 -0
  630. package/lib/axios/esm/contract/utils.d.ts +45 -0
  631. package/lib/axios/esm/contract/utils.js +131 -0
  632. package/lib/axios/esm/contract/utils.js.map +1 -0
  633. package/lib/axios/esm/contract/wasm_spec_parser.d.ts +7 -0
  634. package/lib/axios/esm/contract/wasm_spec_parser.js +14 -0
  635. package/lib/axios/esm/contract/wasm_spec_parser.js.map +1 -0
  636. package/lib/axios/esm/dwtoml/index.d.ts +133 -0
  637. package/lib/axios/esm/dwtoml/index.js +67 -0
  638. package/lib/axios/esm/dwtoml/index.js.map +1 -0
  639. package/lib/axios/esm/errors/account_requires_memo.d.ts +24 -0
  640. package/lib/axios/esm/errors/account_requires_memo.js +12 -0
  641. package/lib/axios/esm/errors/account_requires_memo.js.map +1 -0
  642. package/lib/axios/esm/errors/bad_request.d.ts +10 -0
  643. package/lib/axios/esm/errors/bad_request.js +7 -0
  644. package/lib/axios/esm/errors/bad_request.js.map +1 -0
  645. package/lib/axios/esm/errors/bad_response.d.ts +13 -0
  646. package/lib/axios/esm/errors/bad_response.js +7 -0
  647. package/lib/axios/esm/errors/bad_response.js.map +1 -0
  648. package/lib/axios/esm/errors/index.d.ts +5 -0
  649. package/lib/axios/esm/errors/network.d.ts +40 -0
  650. package/lib/axios/esm/errors/network.js +18 -0
  651. package/lib/axios/esm/errors/network.js.map +1 -0
  652. package/lib/axios/esm/errors/not_found.d.ts +10 -0
  653. package/lib/axios/esm/errors/not_found.js +7 -0
  654. package/lib/axios/esm/errors/not_found.js.map +1 -0
  655. package/lib/axios/esm/faucet/index.d.ts +6 -0
  656. package/lib/axios/esm/faucet/index.js +2 -0
  657. package/lib/axios/esm/faucet/index.js.map +1 -0
  658. package/lib/axios/esm/federation/api.d.ts +32 -0
  659. package/lib/axios/esm/federation/index.d.ts +2 -0
  660. package/lib/axios/esm/federation/index.js +2 -0
  661. package/lib/axios/esm/federation/index.js.map +1 -0
  662. package/lib/axios/esm/federation/server.d.ts +116 -0
  663. package/lib/axios/esm/federation/server.js +226 -0
  664. package/lib/axios/esm/federation/server.js.map +1 -0
  665. package/lib/axios/esm/federation/utils.d.ts +1 -0
  666. package/lib/axios/esm/federation/utils.js +12 -0
  667. package/lib/axios/esm/federation/utils.js.map +1 -0
  668. package/lib/axios/esm/gateway/account_call_builder.d.ts +54 -0
  669. package/lib/axios/esm/gateway/account_call_builder.js +68 -0
  670. package/lib/axios/esm/gateway/account_call_builder.js.map +1 -0
  671. package/lib/axios/esm/gateway/account_response.d.ts +62 -0
  672. package/lib/axios/esm/gateway/account_response.js +104 -0
  673. package/lib/axios/esm/gateway/account_response.js.map +1 -0
  674. package/lib/axios/esm/gateway/assets_call_builder.d.ts +25 -0
  675. package/lib/axios/esm/gateway/assets_call_builder.js +29 -0
  676. package/lib/axios/esm/gateway/assets_call_builder.js.map +1 -0
  677. package/lib/axios/esm/gateway/call_builder.d.ts +128 -0
  678. package/lib/axios/esm/gateway/call_builder.js +354 -0
  679. package/lib/axios/esm/gateway/call_builder.js.map +1 -0
  680. package/lib/axios/esm/gateway/claimable_balances_call_builder.d.ts +48 -0
  681. package/lib/axios/esm/gateway/claimable_balances_call_builder.js +59 -0
  682. package/lib/axios/esm/gateway/claimable_balances_call_builder.js.map +1 -0
  683. package/lib/axios/esm/gateway/effect_call_builder.d.ts +51 -0
  684. package/lib/axios/esm/gateway/effect_call_builder.js +58 -0
  685. package/lib/axios/esm/gateway/effect_call_builder.js.map +1 -0
  686. package/lib/axios/esm/gateway/faucet.d.ts +5 -0
  687. package/lib/axios/esm/gateway/faucet.js +12 -0
  688. package/lib/axios/esm/gateway/faucet.js.map +1 -0
  689. package/lib/axios/esm/gateway/gateway_api.d.ts +543 -0
  690. package/lib/axios/esm/gateway/gateway_api.js +84 -0
  691. package/lib/axios/esm/gateway/gateway_api.js.map +1 -0
  692. package/lib/axios/esm/gateway/gateway_axios_client.d.ts +36 -0
  693. package/lib/axios/esm/gateway/gateway_axios_client.js +61 -0
  694. package/lib/axios/esm/gateway/gateway_axios_client.js.map +1 -0
  695. package/lib/axios/esm/gateway/index.d.ts +5 -0
  696. package/lib/axios/esm/gateway/index.js +6 -0
  697. package/lib/axios/esm/gateway/index.js.map +1 -0
  698. package/lib/axios/esm/gateway/ledger_call_builder.d.ts +21 -0
  699. package/lib/axios/esm/gateway/ledger_call_builder.js +20 -0
  700. package/lib/axios/esm/gateway/ledger_call_builder.js.map +1 -0
  701. package/lib/axios/esm/gateway/liquidity_pool_call_builder.d.ts +35 -0
  702. package/lib/axios/esm/gateway/liquidity_pool_call_builder.js +49 -0
  703. package/lib/axios/esm/gateway/liquidity_pool_call_builder.js.map +1 -0
  704. package/lib/axios/esm/gateway/offer_call_builder.d.ts +63 -0
  705. package/lib/axios/esm/gateway/offer_call_builder.js +93 -0
  706. package/lib/axios/esm/gateway/offer_call_builder.js.map +1 -0
  707. package/lib/axios/esm/gateway/operation_call_builder.d.ts +67 -0
  708. package/lib/axios/esm/gateway/operation_call_builder.js +83 -0
  709. package/lib/axios/esm/gateway/operation_call_builder.js.map +1 -0
  710. package/lib/axios/esm/gateway/orderbook_call_builder.d.ts +18 -0
  711. package/lib/axios/esm/gateway/orderbook_call_builder.js +27 -0
  712. package/lib/axios/esm/gateway/orderbook_call_builder.js.map +1 -0
  713. package/lib/axios/esm/gateway/path_call_builder.d.ts +32 -0
  714. package/lib/axios/esm/gateway/payment_call_builder.d.ts +44 -0
  715. package/lib/axios/esm/gateway/payment_call_builder.js +49 -0
  716. package/lib/axios/esm/gateway/payment_call_builder.js.map +1 -0
  717. package/lib/axios/esm/gateway/server.d.ts +408 -0
  718. package/lib/axios/esm/gateway/server.js +743 -0
  719. package/lib/axios/esm/gateway/server.js.map +1 -0
  720. package/lib/axios/esm/gateway/server_api.d.ts +265 -0
  721. package/lib/axios/esm/gateway/server_api.js +17 -0
  722. package/lib/axios/esm/gateway/server_api.js.map +1 -0
  723. package/lib/axios/esm/gateway/strict_receive_path_call_builder.d.ts +35 -0
  724. package/lib/axios/esm/gateway/strict_receive_path_call_builder.js +37 -0
  725. package/lib/axios/esm/gateway/strict_receive_path_call_builder.js.map +1 -0
  726. package/lib/axios/esm/gateway/strict_send_path_call_builder.d.ts +35 -0
  727. package/lib/axios/esm/gateway/strict_send_path_call_builder.js +34 -0
  728. package/lib/axios/esm/gateway/strict_send_path_call_builder.js.map +1 -0
  729. package/lib/axios/esm/gateway/trade_aggregation_call_builder.d.ts +46 -0
  730. package/lib/axios/esm/gateway/trade_aggregation_call_builder.js +70 -0
  731. package/lib/axios/esm/gateway/trade_aggregation_call_builder.js.map +1 -0
  732. package/lib/axios/esm/gateway/trades_call_builder.d.ts +49 -0
  733. package/lib/axios/esm/gateway/trades_call_builder.js +72 -0
  734. package/lib/axios/esm/gateway/trades_call_builder.js.map +1 -0
  735. package/lib/axios/esm/gateway/transaction_call_builder.d.ts +57 -0
  736. package/lib/axios/esm/gateway/transaction_call_builder.js +71 -0
  737. package/lib/axios/esm/gateway/transaction_call_builder.js.map +1 -0
  738. package/lib/axios/esm/gateway/types/account.d.ts +5 -0
  739. package/lib/axios/esm/gateway/types/assets.d.ts +17 -0
  740. package/lib/axios/esm/gateway/types/effects.d.ts +285 -0
  741. package/lib/axios/esm/gateway/types/effects.js +59 -0
  742. package/lib/axios/esm/gateway/types/effects.js.map +1 -0
  743. package/lib/axios/esm/gateway/types/offer.d.ts +20 -0
  744. package/lib/axios/esm/gateway/types/trade.d.ts +14 -0
  745. package/lib/axios/esm/http-client/axios-client.d.ts +2 -0
  746. package/lib/axios/esm/http-client/axios-client.js +7 -0
  747. package/lib/axios/esm/http-client/axios-client.js.map +1 -0
  748. package/lib/axios/esm/http-client/axios.d.ts +2 -0
  749. package/lib/axios/esm/http-client/axios.js +3 -0
  750. package/lib/axios/esm/http-client/axios.js.map +1 -0
  751. package/lib/axios/esm/http-client/fetch-client.d.ts +11 -0
  752. package/lib/axios/esm/http-client/fetch-client.js +467 -0
  753. package/lib/axios/esm/http-client/fetch-client.js.map +1 -0
  754. package/lib/axios/esm/http-client/index.d.ts +2 -0
  755. package/lib/axios/esm/http-client/index.js +3 -0
  756. package/lib/axios/esm/http-client/index.js.map +1 -0
  757. package/lib/axios/esm/http-client/types.d.ts +70 -0
  758. package/lib/axios/esm/http-client/types.js +22 -0
  759. package/lib/axios/esm/http-client/types.js.map +1 -0
  760. package/lib/axios/esm/index.d.ts +32 -0
  761. package/lib/axios/esm/index.js +66 -0
  762. package/lib/axios/esm/index.js.map +1 -0
  763. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/package.json +3 -0
  764. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js +66 -0
  765. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js.map +1 -0
  766. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js +174 -0
  767. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js.map +1 -0
  768. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js +39 -0
  769. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js.map +1 -0
  770. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js +259 -0
  771. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js.map +1 -0
  772. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js +30 -0
  773. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js.map +1 -0
  774. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js +97 -0
  775. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js.map +1 -0
  776. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js +28 -0
  777. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js.map +1 -0
  778. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js +30 -0
  779. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js.map +1 -0
  780. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js +41 -0
  781. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js.map +1 -0
  782. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js +42 -0
  783. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js.map +1 -0
  784. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js +142 -0
  785. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js.map +1 -0
  786. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js +39 -0
  787. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js.map +1 -0
  788. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js +47 -0
  789. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js.map +1 -0
  790. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js +19 -0
  791. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js.map +1 -0
  792. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js +14 -0
  793. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js.map +1 -0
  794. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js +169 -0
  795. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js.map +1 -0
  796. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js +184 -0
  797. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js.map +1 -0
  798. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js +62 -0
  799. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js.map +1 -0
  800. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js +94 -0
  801. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js.map +1 -0
  802. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js +182 -0
  803. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js.map +1 -0
  804. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js +41 -0
  805. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js.map +1 -0
  806. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js +45 -0
  807. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js.map +1 -0
  808. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js +75 -0
  809. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js.map +1 -0
  810. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js +47 -0
  811. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js.map +1 -0
  812. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js +22 -0
  813. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js.map +1 -0
  814. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js +256 -0
  815. package/lib/axios/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js.map +1 -0
  816. package/lib/axios/esm/rpc/api.d.ts +580 -0
  817. package/lib/axios/esm/rpc/api.js +27 -0
  818. package/lib/axios/esm/rpc/api.js.map +1 -0
  819. package/lib/axios/esm/rpc/axios.d.ts +3 -0
  820. package/lib/axios/esm/rpc/axios.js +15 -0
  821. package/lib/axios/esm/rpc/axios.js.map +1 -0
  822. package/lib/axios/esm/rpc/browser.d.ts +2 -0
  823. package/lib/axios/esm/rpc/index.d.ts +4 -0
  824. package/lib/axios/esm/rpc/index.js +5 -0
  825. package/lib/axios/esm/rpc/index.js.map +1 -0
  826. package/lib/axios/esm/rpc/jsonrpc.d.ts +37 -0
  827. package/lib/axios/esm/rpc/jsonrpc.js +20 -0
  828. package/lib/axios/esm/rpc/jsonrpc.js.map +1 -0
  829. package/lib/axios/esm/rpc/parsers.d.ts +44 -0
  830. package/lib/axios/esm/rpc/parsers.js +236 -0
  831. package/lib/axios/esm/rpc/parsers.js.map +1 -0
  832. package/lib/axios/esm/rpc/server.d.ts +855 -0
  833. package/lib/axios/esm/rpc/server.js +1299 -0
  834. package/lib/axios/esm/rpc/server.js.map +1 -0
  835. package/lib/axios/esm/rpc/transaction.d.ts +20 -0
  836. package/lib/axios/esm/rpc/transaction.js +97 -0
  837. package/lib/axios/esm/rpc/transaction.js.map +1 -0
  838. package/lib/axios/esm/rpc/utils.d.ts +1 -0
  839. package/lib/axios/esm/utils/url.d.ts +2 -0
  840. package/lib/axios/esm/utils/url.js +31 -0
  841. package/lib/axios/esm/utils/url.js.map +1 -0
  842. package/lib/axios/esm/utils.d.ts +18 -0
  843. package/lib/axios/esm/utils.js +25 -0
  844. package/lib/axios/esm/utils.js.map +1 -0
  845. package/lib/axios/esm/webauth/challenge_transaction.d.ts +241 -0
  846. package/lib/axios/esm/webauth/challenge_transaction.js +329 -0
  847. package/lib/axios/esm/webauth/challenge_transaction.js.map +1 -0
  848. package/lib/axios/esm/webauth/errors.d.ts +9 -0
  849. package/lib/axios/esm/webauth/errors.js +5 -0
  850. package/lib/axios/esm/webauth/errors.js.map +1 -0
  851. package/lib/axios/esm/webauth/index.d.ts +3 -0
  852. package/lib/axios/esm/webauth/index.js +4 -0
  853. package/lib/axios/esm/webauth/index.js.map +1 -0
  854. package/lib/axios/esm/webauth/utils.d.ts +65 -0
  855. package/lib/axios/esm/webauth/utils.js +58 -0
  856. package/lib/axios/esm/webauth/utils.js.map +1 -0
  857. package/lib/cjs/base/account.js +60 -0
  858. package/lib/cjs/base/account.js.map +1 -0
  859. package/lib/cjs/base/address.js +195 -0
  860. package/lib/cjs/base/address.js.map +1 -0
  861. package/lib/cjs/base/asset.js +261 -0
  862. package/lib/cjs/base/asset.js.map +1 -0
  863. package/lib/cjs/base/auth.js +244 -0
  864. package/lib/cjs/base/auth.js.map +1 -0
  865. package/lib/cjs/base/claimant.js +147 -0
  866. package/lib/cjs/base/claimant.js.map +1 -0
  867. package/lib/cjs/base/contract.js +72 -0
  868. package/lib/cjs/base/contract.js.map +1 -0
  869. package/lib/cjs/base/events.js +27 -0
  870. package/lib/cjs/base/events.js.map +1 -0
  871. package/lib/cjs/base/fee_bump_transaction.js +94 -0
  872. package/lib/cjs/base/fee_bump_transaction.js.map +1 -0
  873. package/lib/cjs/base/generated/curr_generated.js +3792 -0
  874. package/lib/cjs/base/generated/curr_generated.js.map +1 -0
  875. package/lib/cjs/base/get_liquidity_pool_id.js +37 -0
  876. package/lib/cjs/base/get_liquidity_pool_id.js.map +1 -0
  877. package/lib/cjs/base/hashing.js +12 -0
  878. package/lib/cjs/base/hashing.js.map +1 -0
  879. package/lib/cjs/base/invocation.js +94 -0
  880. package/lib/cjs/base/invocation.js.map +1 -0
  881. package/lib/cjs/base/jsxdr.js +19 -0
  882. package/lib/cjs/base/jsxdr.js.map +1 -0
  883. package/lib/cjs/base/keypair.js +270 -0
  884. package/lib/cjs/base/keypair.js.map +1 -0
  885. package/lib/cjs/base/liquidity_pool_asset.js +107 -0
  886. package/lib/cjs/base/liquidity_pool_asset.js.map +1 -0
  887. package/lib/cjs/base/liquidity_pool_id.js +77 -0
  888. package/lib/cjs/base/liquidity_pool_id.js.map +1 -0
  889. package/lib/cjs/base/memo.js +237 -0
  890. package/lib/cjs/base/memo.js.map +1 -0
  891. package/lib/cjs/base/muxed_account.js +123 -0
  892. package/lib/cjs/base/muxed_account.js.map +1 -0
  893. package/lib/cjs/base/network.js +10 -0
  894. package/lib/cjs/base/network.js.map +1 -0
  895. package/lib/cjs/base/numbers/index.js +66 -0
  896. package/lib/cjs/base/numbers/index.js.map +1 -0
  897. package/lib/cjs/base/numbers/int128.js +31 -0
  898. package/lib/cjs/base/numbers/int128.js.map +1 -0
  899. package/lib/cjs/base/numbers/int256.js +31 -0
  900. package/lib/cjs/base/numbers/int256.js.map +1 -0
  901. package/lib/cjs/base/numbers/sc_int.js +54 -0
  902. package/lib/cjs/base/numbers/sc_int.js.map +1 -0
  903. package/lib/cjs/base/numbers/uint128.js +31 -0
  904. package/lib/cjs/base/numbers/uint128.js.map +1 -0
  905. package/lib/cjs/base/numbers/uint256.js +31 -0
  906. package/lib/cjs/base/numbers/uint256.js.map +1 -0
  907. package/lib/cjs/base/numbers/xdr_large_int.js +273 -0
  908. package/lib/cjs/base/numbers/xdr_large_int.js.map +1 -0
  909. package/lib/cjs/base/operation.js +455 -0
  910. package/lib/cjs/base/operation.js.map +1 -0
  911. package/lib/cjs/base/operations/account_merge.js +25 -0
  912. package/lib/cjs/base/operations/account_merge.js.map +1 -0
  913. package/lib/cjs/base/operations/allow_trust.js +50 -0
  914. package/lib/cjs/base/operations/allow_trust.js.map +1 -0
  915. package/lib/cjs/base/operations/begin_sponsoring_future_reserves.js +24 -0
  916. package/lib/cjs/base/operations/begin_sponsoring_future_reserves.js.map +1 -0
  917. package/lib/cjs/base/operations/bump_sequence.js +27 -0
  918. package/lib/cjs/base/operations/bump_sequence.js.map +1 -0
  919. package/lib/cjs/base/operations/change_trust.js +33 -0
  920. package/lib/cjs/base/operations/change_trust.js.map +1 -0
  921. package/lib/cjs/base/operations/claim_claimable_balance.js +30 -0
  922. package/lib/cjs/base/operations/claim_claimable_balance.js.map +1 -0
  923. package/lib/cjs/base/operations/clawback.js +31 -0
  924. package/lib/cjs/base/operations/clawback.js.map +1 -0
  925. package/lib/cjs/base/operations/clawback_claimable_balance.js +24 -0
  926. package/lib/cjs/base/operations/clawback_claimable_balance.js.map +1 -0
  927. package/lib/cjs/base/operations/create_account.js +28 -0
  928. package/lib/cjs/base/operations/create_account.js.map +1 -0
  929. package/lib/cjs/base/operations/create_claimable_balance.js +36 -0
  930. package/lib/cjs/base/operations/create_claimable_balance.js.map +1 -0
  931. package/lib/cjs/base/operations/create_passive_sell_offer.js +32 -0
  932. package/lib/cjs/base/operations/create_passive_sell_offer.js.map +1 -0
  933. package/lib/cjs/base/operations/end_sponsoring_future_reserves.js +16 -0
  934. package/lib/cjs/base/operations/end_sponsoring_future_reserves.js.map +1 -0
  935. package/lib/cjs/base/operations/extend_footprint_ttl.js +23 -0
  936. package/lib/cjs/base/operations/extend_footprint_ttl.js.map +1 -0
  937. package/lib/cjs/base/operations/inflation.js +16 -0
  938. package/lib/cjs/base/operations/inflation.js.map +1 -0
  939. package/lib/cjs/base/operations/invoke_host_function.js +143 -0
  940. package/lib/cjs/base/operations/invoke_host_function.js.map +1 -0
  941. package/lib/cjs/base/operations/liquidity_pool_deposit.js +48 -0
  942. package/lib/cjs/base/operations/liquidity_pool_deposit.js.map +1 -0
  943. package/lib/cjs/base/operations/liquidity_pool_withdraw.js +42 -0
  944. package/lib/cjs/base/operations/liquidity_pool_withdraw.js.map +1 -0
  945. package/lib/cjs/base/operations/manage_buy_offer.js +35 -0
  946. package/lib/cjs/base/operations/manage_buy_offer.js.map +1 -0
  947. package/lib/cjs/base/operations/manage_data.js +38 -0
  948. package/lib/cjs/base/operations/manage_data.js.map +1 -0
  949. package/lib/cjs/base/operations/manage_sell_offer.js +35 -0
  950. package/lib/cjs/base/operations/manage_sell_offer.js.map +1 -0
  951. package/lib/cjs/base/operations/path_payment_strict_receive.js +44 -0
  952. package/lib/cjs/base/operations/path_payment_strict_receive.js.map +1 -0
  953. package/lib/cjs/base/operations/path_payment_strict_send.js +48 -0
  954. package/lib/cjs/base/operations/path_payment_strict_send.js.map +1 -0
  955. package/lib/cjs/base/operations/payment.js +34 -0
  956. package/lib/cjs/base/operations/payment.js.map +1 -0
  957. package/lib/cjs/base/operations/restore_footprint.js +19 -0
  958. package/lib/cjs/base/operations/restore_footprint.js.map +1 -0
  959. package/lib/cjs/base/operations/revoke_sponsorship.js +198 -0
  960. package/lib/cjs/base/operations/revoke_sponsorship.js.map +1 -0
  961. package/lib/cjs/base/operations/set_options.js +138 -0
  962. package/lib/cjs/base/operations/set_options.js.map +1 -0
  963. package/lib/cjs/base/operations/set_trustline_flags.js +56 -0
  964. package/lib/cjs/base/operations/set_trustline_flags.js.map +1 -0
  965. package/lib/cjs/base/scval.js +253 -0
  966. package/lib/cjs/base/scval.js.map +1 -0
  967. package/lib/cjs/base/signerkey.js +72 -0
  968. package/lib/cjs/base/signerkey.js.map +1 -0
  969. package/lib/cjs/base/signing.js +48 -0
  970. package/lib/cjs/base/signing.js.map +1 -0
  971. package/lib/cjs/base/soroban.js +91 -0
  972. package/lib/cjs/base/soroban.js.map +1 -0
  973. package/lib/cjs/base/sorobandata_builder.js +148 -0
  974. package/lib/cjs/base/sorobandata_builder.js.map +1 -0
  975. package/lib/cjs/base/strkey.js +660 -0
  976. package/lib/cjs/base/strkey.js.map +1 -0
  977. package/lib/cjs/base/transaction.js +291 -0
  978. package/lib/cjs/base/transaction.js.map +1 -0
  979. package/lib/cjs/base/transaction_base.js +205 -0
  980. package/lib/cjs/base/transaction_base.js.map +1 -0
  981. package/lib/cjs/base/transaction_builder.js +887 -0
  982. package/lib/cjs/base/transaction_builder.js.map +1 -0
  983. package/lib/cjs/base/util/bignumber.js +14 -0
  984. package/lib/cjs/base/util/bignumber.js.map +1 -0
  985. package/lib/cjs/base/util/checksum.js +19 -0
  986. package/lib/cjs/base/util/checksum.js.map +1 -0
  987. package/lib/cjs/base/util/continued_fraction.js +83 -0
  988. package/lib/cjs/base/util/continued_fraction.js.map +1 -0
  989. package/lib/cjs/base/util/decode_encode_muxed_account.js +68 -0
  990. package/lib/cjs/base/util/decode_encode_muxed_account.js.map +1 -0
  991. package/lib/cjs/base/util/operations.js +101 -0
  992. package/lib/cjs/base/util/operations.js.map +1 -0
  993. package/lib/cjs/base/util/util.js +13 -0
  994. package/lib/cjs/base/util/util.js.map +1 -0
  995. package/lib/cjs/base/xdr.js +10 -0
  996. package/lib/cjs/base/xdr.js.map +1 -0
  997. package/lib/cjs/bindings/client.js +140 -0
  998. package/lib/cjs/bindings/client.js.map +1 -0
  999. package/lib/cjs/bindings/config.js +139 -0
  1000. package/lib/cjs/bindings/config.js.map +1 -0
  1001. package/lib/cjs/bindings/generator.js +204 -0
  1002. package/lib/cjs/bindings/generator.js.map +1 -0
  1003. package/lib/cjs/bindings/sac-spec.js +6 -0
  1004. package/lib/cjs/bindings/sac-spec.js.map +1 -0
  1005. package/lib/cjs/bindings/types.js +209 -0
  1006. package/lib/cjs/bindings/types.js.map +1 -0
  1007. package/lib/cjs/bindings/utils.js +322 -0
  1008. package/lib/cjs/bindings/utils.js.map +1 -0
  1009. package/lib/cjs/bindings/wasm_fetcher.js +125 -0
  1010. package/lib/cjs/bindings/wasm_fetcher.js.map +1 -0
  1011. package/lib/cjs/cli/index.js +187 -0
  1012. package/lib/cjs/cli/index.js.map +1 -0
  1013. package/lib/cjs/cli/util.js +182 -0
  1014. package/lib/cjs/cli/util.js.map +1 -0
  1015. package/lib/cjs/config.js +49 -0
  1016. package/lib/cjs/config.js.map +1 -0
  1017. package/lib/cjs/contract/assembled_transaction.js +711 -0
  1018. package/lib/cjs/contract/assembled_transaction.js.map +1 -0
  1019. package/lib/cjs/contract/basic_node_signer.js +48 -0
  1020. package/lib/cjs/contract/basic_node_signer.js.map +1 -0
  1021. package/lib/cjs/contract/client.js +174 -0
  1022. package/lib/cjs/contract/client.js.map +1 -0
  1023. package/lib/cjs/contract/errors.js +43 -0
  1024. package/lib/cjs/contract/errors.js.map +1 -0
  1025. package/lib/cjs/contract/index.js +23 -0
  1026. package/lib/cjs/contract/index.js.map +1 -0
  1027. package/lib/cjs/contract/rust_result.js +42 -0
  1028. package/lib/cjs/contract/rust_result.js.map +1 -0
  1029. package/lib/cjs/contract/sent_transaction.js +144 -0
  1030. package/lib/cjs/contract/sent_transaction.js.map +1 -0
  1031. package/lib/cjs/contract/spec.js +1118 -0
  1032. package/lib/cjs/contract/spec.js.map +1 -0
  1033. package/lib/cjs/contract/types.js +8 -0
  1034. package/lib/cjs/contract/types.js.map +1 -0
  1035. package/lib/cjs/contract/utils.js +138 -0
  1036. package/lib/cjs/contract/utils.js.map +1 -0
  1037. package/lib/cjs/contract/wasm_spec_parser.js +16 -0
  1038. package/lib/cjs/contract/wasm_spec_parser.js.map +1 -0
  1039. package/lib/cjs/dwtoml/index.js +70 -0
  1040. package/lib/cjs/dwtoml/index.js.map +1 -0
  1041. package/lib/cjs/errors/account_requires_memo.js +14 -0
  1042. package/lib/cjs/errors/account_requires_memo.js.map +1 -0
  1043. package/lib/cjs/errors/bad_request.js +9 -0
  1044. package/lib/cjs/errors/bad_request.js.map +1 -0
  1045. package/lib/cjs/errors/bad_response.js +9 -0
  1046. package/lib/cjs/errors/bad_response.js.map +1 -0
  1047. package/lib/cjs/errors/network.js +20 -0
  1048. package/lib/cjs/errors/network.js.map +1 -0
  1049. package/lib/cjs/errors/not_found.js +9 -0
  1050. package/lib/cjs/errors/not_found.js.map +1 -0
  1051. package/lib/cjs/faucet/index.js +3 -0
  1052. package/lib/cjs/faucet/index.js.map +1 -0
  1053. package/lib/cjs/federation/index.js +9 -0
  1054. package/lib/cjs/federation/index.js.map +1 -0
  1055. package/lib/cjs/federation/server.js +229 -0
  1056. package/lib/cjs/federation/server.js.map +1 -0
  1057. package/lib/cjs/federation/utils.js +14 -0
  1058. package/lib/cjs/federation/utils.js.map +1 -0
  1059. package/lib/cjs/gateway/account_call_builder.js +70 -0
  1060. package/lib/cjs/gateway/account_call_builder.js.map +1 -0
  1061. package/lib/cjs/gateway/account_response.js +106 -0
  1062. package/lib/cjs/gateway/account_response.js.map +1 -0
  1063. package/lib/cjs/gateway/assets_call_builder.js +31 -0
  1064. package/lib/cjs/gateway/assets_call_builder.js.map +1 -0
  1065. package/lib/cjs/gateway/call_builder.js +356 -0
  1066. package/lib/cjs/gateway/call_builder.js.map +1 -0
  1067. package/lib/cjs/gateway/claimable_balances_call_builder.js +61 -0
  1068. package/lib/cjs/gateway/claimable_balances_call_builder.js.map +1 -0
  1069. package/lib/cjs/gateway/effect_call_builder.js +60 -0
  1070. package/lib/cjs/gateway/effect_call_builder.js.map +1 -0
  1071. package/lib/cjs/gateway/faucet.js +14 -0
  1072. package/lib/cjs/gateway/faucet.js.map +1 -0
  1073. package/lib/cjs/gateway/gateway_api.js +84 -0
  1074. package/lib/cjs/gateway/gateway_api.js.map +1 -0
  1075. package/lib/cjs/gateway/gateway_axios_client.js +66 -0
  1076. package/lib/cjs/gateway/gateway_axios_client.js.map +1 -0
  1077. package/lib/cjs/gateway/index.js +23 -0
  1078. package/lib/cjs/gateway/index.js.map +1 -0
  1079. package/lib/cjs/gateway/ledger_call_builder.js +22 -0
  1080. package/lib/cjs/gateway/ledger_call_builder.js.map +1 -0
  1081. package/lib/cjs/gateway/liquidity_pool_call_builder.js +51 -0
  1082. package/lib/cjs/gateway/liquidity_pool_call_builder.js.map +1 -0
  1083. package/lib/cjs/gateway/offer_call_builder.js +95 -0
  1084. package/lib/cjs/gateway/offer_call_builder.js.map +1 -0
  1085. package/lib/cjs/gateway/operation_call_builder.js +85 -0
  1086. package/lib/cjs/gateway/operation_call_builder.js.map +1 -0
  1087. package/lib/cjs/gateway/orderbook_call_builder.js +29 -0
  1088. package/lib/cjs/gateway/orderbook_call_builder.js.map +1 -0
  1089. package/lib/cjs/gateway/payment_call_builder.js +51 -0
  1090. package/lib/cjs/gateway/payment_call_builder.js.map +1 -0
  1091. package/lib/cjs/gateway/server.js +746 -0
  1092. package/lib/cjs/gateway/server.js.map +1 -0
  1093. package/lib/cjs/gateway/server_api.js +17 -0
  1094. package/lib/cjs/gateway/server_api.js.map +1 -0
  1095. package/lib/cjs/gateway/strict_receive_path_call_builder.js +39 -0
  1096. package/lib/cjs/gateway/strict_receive_path_call_builder.js.map +1 -0
  1097. package/lib/cjs/gateway/strict_send_path_call_builder.js +36 -0
  1098. package/lib/cjs/gateway/strict_send_path_call_builder.js.map +1 -0
  1099. package/lib/cjs/gateway/trade_aggregation_call_builder.js +72 -0
  1100. package/lib/cjs/gateway/trade_aggregation_call_builder.js.map +1 -0
  1101. package/lib/cjs/gateway/trades_call_builder.js +74 -0
  1102. package/lib/cjs/gateway/trades_call_builder.js.map +1 -0
  1103. package/lib/cjs/gateway/transaction_call_builder.js +73 -0
  1104. package/lib/cjs/gateway/transaction_call_builder.js.map +1 -0
  1105. package/lib/cjs/gateway/types/effects.js +61 -0
  1106. package/lib/cjs/gateway/types/effects.js.map +1 -0
  1107. package/lib/cjs/http-client/axios-client.js +14 -0
  1108. package/lib/cjs/http-client/axios-client.js.map +1 -0
  1109. package/lib/cjs/http-client/axios.js +11 -0
  1110. package/lib/cjs/http-client/axios.js.map +1 -0
  1111. package/lib/cjs/http-client/fetch-client.js +474 -0
  1112. package/lib/cjs/http-client/fetch-client.js.map +1 -0
  1113. package/lib/cjs/http-client/index.js +11 -0
  1114. package/lib/cjs/http-client/index.js.map +1 -0
  1115. package/lib/cjs/http-client/types.js +24 -0
  1116. package/lib/cjs/http-client/types.js.map +1 -0
  1117. package/lib/cjs/index.js +141 -0
  1118. package/lib/cjs/index.js.map +1 -0
  1119. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js +68 -0
  1120. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js.map +1 -0
  1121. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js +179 -0
  1122. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js.map +1 -0
  1123. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js +41 -0
  1124. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js.map +1 -0
  1125. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js +262 -0
  1126. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js.map +1 -0
  1127. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js +32 -0
  1128. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js.map +1 -0
  1129. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js +99 -0
  1130. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js.map +1 -0
  1131. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js +33 -0
  1132. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js.map +1 -0
  1133. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js +32 -0
  1134. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js.map +1 -0
  1135. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js +43 -0
  1136. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js.map +1 -0
  1137. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js +44 -0
  1138. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js.map +1 -0
  1139. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js +144 -0
  1140. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js.map +1 -0
  1141. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js +41 -0
  1142. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js.map +1 -0
  1143. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js +49 -0
  1144. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js.map +1 -0
  1145. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js +21 -0
  1146. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js.map +1 -0
  1147. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js +16 -0
  1148. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js.map +1 -0
  1149. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js +171 -0
  1150. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js.map +1 -0
  1151. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js +186 -0
  1152. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js.map +1 -0
  1153. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js +64 -0
  1154. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js.map +1 -0
  1155. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js +96 -0
  1156. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js.map +1 -0
  1157. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js +184 -0
  1158. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js.map +1 -0
  1159. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js +43 -0
  1160. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js.map +1 -0
  1161. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js +47 -0
  1162. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js.map +1 -0
  1163. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js +77 -0
  1164. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js.map +1 -0
  1165. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js +49 -0
  1166. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js.map +1 -0
  1167. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js +24 -0
  1168. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js.map +1 -0
  1169. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js +262 -0
  1170. package/lib/cjs/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js.map +1 -0
  1171. package/lib/cjs/package.json +3 -0
  1172. package/lib/cjs/rpc/api.js +27 -0
  1173. package/lib/cjs/rpc/api.js.map +1 -0
  1174. package/lib/cjs/rpc/axios.js +18 -0
  1175. package/lib/cjs/rpc/axios.js.map +1 -0
  1176. package/lib/cjs/rpc/index.js +21 -0
  1177. package/lib/cjs/rpc/index.js.map +1 -0
  1178. package/lib/cjs/rpc/jsonrpc.js +22 -0
  1179. package/lib/cjs/rpc/jsonrpc.js.map +1 -0
  1180. package/lib/cjs/rpc/parsers.js +245 -0
  1181. package/lib/cjs/rpc/parsers.js.map +1 -0
  1182. package/lib/cjs/rpc/server.js +1304 -0
  1183. package/lib/cjs/rpc/server.js.map +1 -0
  1184. package/lib/cjs/rpc/transaction.js +99 -0
  1185. package/lib/cjs/rpc/transaction.js.map +1 -0
  1186. package/lib/cjs/utils/url.js +33 -0
  1187. package/lib/cjs/utils/url.js.map +1 -0
  1188. package/lib/cjs/utils.js +27 -0
  1189. package/lib/cjs/utils.js.map +1 -0
  1190. package/lib/cjs/webauth/challenge_transaction.js +334 -0
  1191. package/lib/cjs/webauth/challenge_transaction.js.map +1 -0
  1192. package/lib/cjs/webauth/errors.js +7 -0
  1193. package/lib/cjs/webauth/errors.js.map +1 -0
  1194. package/lib/cjs/webauth/index.js +16 -0
  1195. package/lib/cjs/webauth/index.js.map +1 -0
  1196. package/lib/cjs/webauth/utils.js +61 -0
  1197. package/lib/cjs/webauth/utils.js.map +1 -0
  1198. package/lib/esm/base/account.d.ts +35 -0
  1199. package/lib/esm/base/account.js +58 -0
  1200. package/lib/esm/base/account.js.map +1 -0
  1201. package/lib/esm/base/address.d.ts +87 -0
  1202. package/lib/esm/base/address.js +193 -0
  1203. package/lib/esm/base/address.js.map +1 -0
  1204. package/lib/esm/base/asset.d.ts +118 -0
  1205. package/lib/esm/base/asset.js +258 -0
  1206. package/lib/esm/base/asset.js.map +1 -0
  1207. package/lib/esm/base/auth.d.ts +273 -0
  1208. package/lib/esm/base/auth.js +238 -0
  1209. package/lib/esm/base/auth.js.map +1 -0
  1210. package/lib/esm/base/claimant.d.ts +75 -0
  1211. package/lib/esm/base/claimant.js +145 -0
  1212. package/lib/esm/base/claimant.js.map +1 -0
  1213. package/lib/esm/base/contract.d.ts +47 -0
  1214. package/lib/esm/base/contract.js +70 -0
  1215. package/lib/esm/base/contract.js.map +1 -0
  1216. package/lib/esm/base/events.d.ts +22 -0
  1217. package/lib/esm/base/events.js +25 -0
  1218. package/lib/esm/base/events.js.map +1 -0
  1219. package/lib/esm/base/fee_bump_transaction.d.ts +47 -0
  1220. package/lib/esm/base/fee_bump_transaction.js +92 -0
  1221. package/lib/esm/base/fee_bump_transaction.js.map +1 -0
  1222. package/lib/esm/base/generated/curr.d.ts +16280 -0
  1223. package/lib/esm/base/generated/curr_generated.d.ts +4 -0
  1224. package/lib/esm/base/generated/curr_generated.js +3788 -0
  1225. package/lib/esm/base/generated/curr_generated.js.map +1 -0
  1226. package/lib/esm/base/generated/next.d.ts +16280 -0
  1227. package/lib/esm/base/generated/next_generated.d.ts +4 -0
  1228. package/lib/esm/base/get_liquidity_pool_id.d.ts +29 -0
  1229. package/lib/esm/base/get_liquidity_pool_id.js +34 -0
  1230. package/lib/esm/base/get_liquidity_pool_id.js.map +1 -0
  1231. package/lib/esm/base/hashing.d.ts +6 -0
  1232. package/lib/esm/base/hashing.js +10 -0
  1233. package/lib/esm/base/hashing.js.map +1 -0
  1234. package/lib/esm/base/index.d.ts +39 -0
  1235. package/lib/esm/base/invocation.d.ts +116 -0
  1236. package/lib/esm/base/invocation.js +91 -0
  1237. package/lib/esm/base/invocation.js.map +1 -0
  1238. package/lib/esm/base/jsxdr.d.ts +7 -0
  1239. package/lib/esm/base/jsxdr.js +13 -0
  1240. package/lib/esm/base/jsxdr.js.map +1 -0
  1241. package/lib/esm/base/keypair.d.ts +139 -0
  1242. package/lib/esm/base/keypair.js +248 -0
  1243. package/lib/esm/base/keypair.js.map +1 -0
  1244. package/lib/esm/base/liquidity_pool_asset.d.ts +50 -0
  1245. package/lib/esm/base/liquidity_pool_asset.js +105 -0
  1246. package/lib/esm/base/liquidity_pool_asset.js.map +1 -0
  1247. package/lib/esm/base/liquidity_pool_id.d.ts +45 -0
  1248. package/lib/esm/base/liquidity_pool_id.js +75 -0
  1249. package/lib/esm/base/liquidity_pool_id.js.map +1 -0
  1250. package/lib/esm/base/memo.d.ts +112 -0
  1251. package/lib/esm/base/memo.js +230 -0
  1252. package/lib/esm/base/memo.js.map +1 -0
  1253. package/lib/esm/base/muxed_account.d.ts +94 -0
  1254. package/lib/esm/base/muxed_account.js +121 -0
  1255. package/lib/esm/base/muxed_account.js.map +1 -0
  1256. package/lib/esm/base/network.d.ts +9 -0
  1257. package/lib/esm/base/network.js +8 -0
  1258. package/lib/esm/base/network.js.map +1 -0
  1259. package/lib/esm/base/numbers/index.d.ts +29 -0
  1260. package/lib/esm/base/numbers/index.js +59 -0
  1261. package/lib/esm/base/numbers/index.js.map +1 -0
  1262. package/lib/esm/base/numbers/int128.d.ts +12 -0
  1263. package/lib/esm/base/numbers/int128.js +29 -0
  1264. package/lib/esm/base/numbers/int128.js.map +1 -0
  1265. package/lib/esm/base/numbers/int256.d.ts +12 -0
  1266. package/lib/esm/base/numbers/int256.js +29 -0
  1267. package/lib/esm/base/numbers/int256.js.map +1 -0
  1268. package/lib/esm/base/numbers/sc_int.d.ts +79 -0
  1269. package/lib/esm/base/numbers/sc_int.js +52 -0
  1270. package/lib/esm/base/numbers/sc_int.js.map +1 -0
  1271. package/lib/esm/base/numbers/uint128.d.ts +12 -0
  1272. package/lib/esm/base/numbers/uint128.js +29 -0
  1273. package/lib/esm/base/numbers/uint128.js.map +1 -0
  1274. package/lib/esm/base/numbers/uint256.d.ts +12 -0
  1275. package/lib/esm/base/numbers/uint256.js +29 -0
  1276. package/lib/esm/base/numbers/uint256.js.map +1 -0
  1277. package/lib/esm/base/numbers/xdr_large_int.d.ts +93 -0
  1278. package/lib/esm/base/numbers/xdr_large_int.js +271 -0
  1279. package/lib/esm/base/numbers/xdr_large_int.js.map +1 -0
  1280. package/lib/esm/base/operation.d.ts +161 -0
  1281. package/lib/esm/base/operation.js +449 -0
  1282. package/lib/esm/base/operation.js.map +1 -0
  1283. package/lib/esm/base/operations/account_merge.d.ts +11 -0
  1284. package/lib/esm/base/operations/account_merge.js +23 -0
  1285. package/lib/esm/base/operations/account_merge.js.map +1 -0
  1286. package/lib/esm/base/operations/allow_trust.d.ts +15 -0
  1287. package/lib/esm/base/operations/allow_trust.js +48 -0
  1288. package/lib/esm/base/operations/allow_trust.js.map +1 -0
  1289. package/lib/esm/base/operations/begin_sponsoring_future_reserves.d.ts +17 -0
  1290. package/lib/esm/base/operations/begin_sponsoring_future_reserves.js +22 -0
  1291. package/lib/esm/base/operations/begin_sponsoring_future_reserves.js.map +1 -0
  1292. package/lib/esm/base/operations/bump_sequence.d.ts +9 -0
  1293. package/lib/esm/base/operations/bump_sequence.js +25 -0
  1294. package/lib/esm/base/operations/bump_sequence.js.map +1 -0
  1295. package/lib/esm/base/operations/change_trust.d.ts +13 -0
  1296. package/lib/esm/base/operations/change_trust.js +31 -0
  1297. package/lib/esm/base/operations/change_trust.js.map +1 -0
  1298. package/lib/esm/base/operations/claim_claimable_balance.d.ts +22 -0
  1299. package/lib/esm/base/operations/claim_claimable_balance.js +27 -0
  1300. package/lib/esm/base/operations/claim_claimable_balance.js.map +1 -0
  1301. package/lib/esm/base/operations/clawback.d.ts +17 -0
  1302. package/lib/esm/base/operations/clawback.js +29 -0
  1303. package/lib/esm/base/operations/clawback.js.map +1 -0
  1304. package/lib/esm/base/operations/clawback_claimable_balance.d.ts +19 -0
  1305. package/lib/esm/base/operations/clawback_claimable_balance.js +22 -0
  1306. package/lib/esm/base/operations/clawback_claimable_balance.js.map +1 -0
  1307. package/lib/esm/base/operations/create_account.d.ts +12 -0
  1308. package/lib/esm/base/operations/create_account.js +26 -0
  1309. package/lib/esm/base/operations/create_account.js.map +1 -0
  1310. package/lib/esm/base/operations/create_claimable_balance.d.ts +34 -0
  1311. package/lib/esm/base/operations/create_claimable_balance.js +34 -0
  1312. package/lib/esm/base/operations/create_claimable_balance.js.map +1 -0
  1313. package/lib/esm/base/operations/create_passive_sell_offer.d.ts +18 -0
  1314. package/lib/esm/base/operations/create_passive_sell_offer.js +30 -0
  1315. package/lib/esm/base/operations/create_passive_sell_offer.js.map +1 -0
  1316. package/lib/esm/base/operations/end_sponsoring_future_reserves.d.ts +14 -0
  1317. package/lib/esm/base/operations/end_sponsoring_future_reserves.js +14 -0
  1318. package/lib/esm/base/operations/end_sponsoring_future_reserves.js.map +1 -0
  1319. package/lib/esm/base/operations/extend_footprint_ttl.d.ts +28 -0
  1320. package/lib/esm/base/operations/extend_footprint_ttl.js +21 -0
  1321. package/lib/esm/base/operations/extend_footprint_ttl.js.map +1 -0
  1322. package/lib/esm/base/operations/index.d.ts +28 -0
  1323. package/lib/esm/base/operations/inflation.d.ts +8 -0
  1324. package/lib/esm/base/operations/inflation.js +14 -0
  1325. package/lib/esm/base/operations/inflation.js.map +1 -0
  1326. package/lib/esm/base/operations/invoke_host_function.d.ts +78 -0
  1327. package/lib/esm/base/operations/invoke_host_function.js +137 -0
  1328. package/lib/esm/base/operations/invoke_host_function.js.map +1 -0
  1329. package/lib/esm/base/operations/liquidity_pool_deposit.d.ts +20 -0
  1330. package/lib/esm/base/operations/liquidity_pool_deposit.js +46 -0
  1331. package/lib/esm/base/operations/liquidity_pool_deposit.js.map +1 -0
  1332. package/lib/esm/base/operations/liquidity_pool_withdraw.d.ts +15 -0
  1333. package/lib/esm/base/operations/liquidity_pool_withdraw.js +40 -0
  1334. package/lib/esm/base/operations/liquidity_pool_withdraw.js.map +1 -0
  1335. package/lib/esm/base/operations/manage_buy_offer.d.ts +17 -0
  1336. package/lib/esm/base/operations/manage_buy_offer.js +33 -0
  1337. package/lib/esm/base/operations/manage_buy_offer.js.map +1 -0
  1338. package/lib/esm/base/operations/manage_data.d.ts +10 -0
  1339. package/lib/esm/base/operations/manage_data.js +36 -0
  1340. package/lib/esm/base/operations/manage_data.js.map +1 -0
  1341. package/lib/esm/base/operations/manage_sell_offer.d.ts +17 -0
  1342. package/lib/esm/base/operations/manage_sell_offer.js +33 -0
  1343. package/lib/esm/base/operations/manage_sell_offer.js.map +1 -0
  1344. package/lib/esm/base/operations/path_payment_strict_receive.d.ts +24 -0
  1345. package/lib/esm/base/operations/path_payment_strict_receive.js +42 -0
  1346. package/lib/esm/base/operations/path_payment_strict_receive.js.map +1 -0
  1347. package/lib/esm/base/operations/path_payment_strict_send.d.ts +22 -0
  1348. package/lib/esm/base/operations/path_payment_strict_send.js +46 -0
  1349. package/lib/esm/base/operations/path_payment_strict_send.js.map +1 -0
  1350. package/lib/esm/base/operations/payment.d.ts +15 -0
  1351. package/lib/esm/base/operations/payment.js +32 -0
  1352. package/lib/esm/base/operations/payment.js.map +1 -0
  1353. package/lib/esm/base/operations/restore_footprint.d.ts +20 -0
  1354. package/lib/esm/base/operations/restore_footprint.js +17 -0
  1355. package/lib/esm/base/operations/restore_footprint.js.map +1 -0
  1356. package/lib/esm/base/operations/revoke_sponsorship.d.ts +124 -0
  1357. package/lib/esm/base/operations/revoke_sponsorship.js +190 -0
  1358. package/lib/esm/base/operations/revoke_sponsorship.js.map +1 -0
  1359. package/lib/esm/base/operations/set_options.d.ts +34 -0
  1360. package/lib/esm/base/operations/set_options.js +136 -0
  1361. package/lib/esm/base/operations/set_options.js.map +1 -0
  1362. package/lib/esm/base/operations/set_trustline_flags.d.ts +31 -0
  1363. package/lib/esm/base/operations/set_trustline_flags.js +54 -0
  1364. package/lib/esm/base/operations/set_trustline_flags.js.map +1 -0
  1365. package/lib/esm/base/operations/types.d.ts +508 -0
  1366. package/lib/esm/base/scval.d.ts +184 -0
  1367. package/lib/esm/base/scval.js +249 -0
  1368. package/lib/esm/base/scval.js.map +1 -0
  1369. package/lib/esm/base/signerkey.d.ts +27 -0
  1370. package/lib/esm/base/signerkey.js +70 -0
  1371. package/lib/esm/base/signerkey.js.map +1 -0
  1372. package/lib/esm/base/signing.d.ts +21 -0
  1373. package/lib/esm/base/signing.js +24 -0
  1374. package/lib/esm/base/signing.js.map +1 -0
  1375. package/lib/esm/base/soroban.d.ts +45 -0
  1376. package/lib/esm/base/soroban.js +89 -0
  1377. package/lib/esm/base/soroban.js.map +1 -0
  1378. package/lib/esm/base/sorobandata_builder.d.ts +103 -0
  1379. package/lib/esm/base/sorobandata_builder.js +146 -0
  1380. package/lib/esm/base/sorobandata_builder.js.map +1 -0
  1381. package/lib/esm/base/strkey.d.ts +186 -0
  1382. package/lib/esm/base/strkey.js +652 -0
  1383. package/lib/esm/base/strkey.js.map +1 -0
  1384. package/lib/esm/base/transaction.d.ts +110 -0
  1385. package/lib/esm/base/transaction.js +289 -0
  1386. package/lib/esm/base/transaction.js.map +1 -0
  1387. package/lib/esm/base/transaction_base.d.ts +110 -0
  1388. package/lib/esm/base/transaction_base.js +203 -0
  1389. package/lib/esm/base/transaction_base.js.map +1 -0
  1390. package/lib/esm/base/transaction_builder.d.ts +394 -0
  1391. package/lib/esm/base/transaction_builder.js +882 -0
  1392. package/lib/esm/base/transaction_builder.js.map +1 -0
  1393. package/lib/esm/base/transaction_source.d.ts +31 -0
  1394. package/lib/esm/base/util/bignumber.d.ts +5 -0
  1395. package/lib/esm/base/util/bignumber.js +6 -0
  1396. package/lib/esm/base/util/bignumber.js.map +1 -0
  1397. package/lib/esm/base/util/checksum.d.ts +7 -0
  1398. package/lib/esm/base/util/checksum.js +17 -0
  1399. package/lib/esm/base/util/checksum.js.map +1 -0
  1400. package/lib/esm/base/util/continued_fraction.d.ts +9 -0
  1401. package/lib/esm/base/util/continued_fraction.js +81 -0
  1402. package/lib/esm/base/util/continued_fraction.js.map +1 -0
  1403. package/lib/esm/base/util/decode_encode_muxed_account.d.ts +34 -0
  1404. package/lib/esm/base/util/decode_encode_muxed_account.js +63 -0
  1405. package/lib/esm/base/util/decode_encode_muxed_account.js.map +1 -0
  1406. package/lib/esm/base/util/operations.d.ts +61 -0
  1407. package/lib/esm/base/util/operations.js +91 -0
  1408. package/lib/esm/base/util/operations.js.map +1 -0
  1409. package/lib/esm/base/util/util.d.ts +7 -0
  1410. package/lib/esm/base/util/util.js +11 -0
  1411. package/lib/esm/base/util/util.js.map +1 -0
  1412. package/lib/esm/base/xdr.d.ts +2 -0
  1413. package/lib/esm/base/xdr.js +6 -0
  1414. package/lib/esm/base/xdr.js.map +1 -0
  1415. package/lib/esm/bindings/client.d.ts +30 -0
  1416. package/lib/esm/bindings/client.js +138 -0
  1417. package/lib/esm/bindings/client.js.map +1 -0
  1418. package/lib/esm/bindings/config.d.ts +34 -0
  1419. package/lib/esm/bindings/config.js +137 -0
  1420. package/lib/esm/bindings/config.js.map +1 -0
  1421. package/lib/esm/bindings/generator.d.ts +192 -0
  1422. package/lib/esm/bindings/generator.js +202 -0
  1423. package/lib/esm/bindings/generator.js.map +1 -0
  1424. package/lib/esm/bindings/index.d.ts +6 -0
  1425. package/lib/esm/bindings/sac-spec.d.ts +1 -0
  1426. package/lib/esm/bindings/sac-spec.js +4 -0
  1427. package/lib/esm/bindings/sac-spec.js.map +1 -0
  1428. package/lib/esm/bindings/types.d.ts +66 -0
  1429. package/lib/esm/bindings/types.js +207 -0
  1430. package/lib/esm/bindings/types.js.map +1 -0
  1431. package/lib/esm/bindings/utils.d.ts +53 -0
  1432. package/lib/esm/bindings/utils.js +313 -0
  1433. package/lib/esm/bindings/utils.js.map +1 -0
  1434. package/lib/esm/bindings/wasm_fetcher.d.ts +25 -0
  1435. package/lib/esm/bindings/wasm_fetcher.js +121 -0
  1436. package/lib/esm/bindings/wasm_fetcher.js.map +1 -0
  1437. package/lib/esm/browser-axios.d.ts +4 -0
  1438. package/lib/esm/browser.d.ts +4 -0
  1439. package/lib/esm/cli/index.d.ts +2 -0
  1440. package/lib/esm/cli/index.js +165 -0
  1441. package/lib/esm/cli/index.js.map +1 -0
  1442. package/lib/esm/cli/util.d.ts +55 -0
  1443. package/lib/esm/cli/util.js +155 -0
  1444. package/lib/esm/cli/util.js.map +1 -0
  1445. package/lib/esm/config.d.ts +60 -0
  1446. package/lib/esm/config.js +47 -0
  1447. package/lib/esm/config.js.map +1 -0
  1448. package/lib/esm/contract/assembled_transaction.d.ts +533 -0
  1449. package/lib/esm/contract/assembled_transaction.js +709 -0
  1450. package/lib/esm/contract/assembled_transaction.js.map +1 -0
  1451. package/lib/esm/contract/basic_node_signer.d.ts +17 -0
  1452. package/lib/esm/contract/basic_node_signer.js +46 -0
  1453. package/lib/esm/contract/basic_node_signer.js.map +1 -0
  1454. package/lib/esm/contract/client.d.ts +64 -0
  1455. package/lib/esm/contract/client.js +172 -0
  1456. package/lib/esm/contract/client.js.map +1 -0
  1457. package/lib/esm/contract/errors.d.ts +26 -0
  1458. package/lib/esm/contract/errors.js +29 -0
  1459. package/lib/esm/contract/errors.js.map +1 -0
  1460. package/lib/esm/contract/index.d.ts +7 -0
  1461. package/lib/esm/contract/index.js +8 -0
  1462. package/lib/esm/contract/index.js.map +1 -0
  1463. package/lib/esm/contract/rust_result.d.ts +79 -0
  1464. package/lib/esm/contract/rust_result.js +39 -0
  1465. package/lib/esm/contract/rust_result.js.map +1 -0
  1466. package/lib/esm/contract/sent_transaction.d.ts +118 -0
  1467. package/lib/esm/contract/sent_transaction.js +141 -0
  1468. package/lib/esm/contract/sent_transaction.js.map +1 -0
  1469. package/lib/esm/contract/spec.d.ts +176 -0
  1470. package/lib/esm/contract/spec.js +1116 -0
  1471. package/lib/esm/contract/spec.js.map +1 -0
  1472. package/lib/esm/contract/types.d.ts +272 -0
  1473. package/lib/esm/contract/types.js +5 -0
  1474. package/lib/esm/contract/types.js.map +1 -0
  1475. package/lib/esm/contract/utils.d.ts +45 -0
  1476. package/lib/esm/contract/utils.js +131 -0
  1477. package/lib/esm/contract/utils.js.map +1 -0
  1478. package/lib/esm/contract/wasm_spec_parser.d.ts +7 -0
  1479. package/lib/esm/contract/wasm_spec_parser.js +14 -0
  1480. package/lib/esm/contract/wasm_spec_parser.js.map +1 -0
  1481. package/lib/esm/dwtoml/index.d.ts +133 -0
  1482. package/lib/esm/dwtoml/index.js +67 -0
  1483. package/lib/esm/dwtoml/index.js.map +1 -0
  1484. package/lib/esm/errors/account_requires_memo.d.ts +24 -0
  1485. package/lib/esm/errors/account_requires_memo.js +12 -0
  1486. package/lib/esm/errors/account_requires_memo.js.map +1 -0
  1487. package/lib/esm/errors/bad_request.d.ts +10 -0
  1488. package/lib/esm/errors/bad_request.js +7 -0
  1489. package/lib/esm/errors/bad_request.js.map +1 -0
  1490. package/lib/esm/errors/bad_response.d.ts +13 -0
  1491. package/lib/esm/errors/bad_response.js +7 -0
  1492. package/lib/esm/errors/bad_response.js.map +1 -0
  1493. package/lib/esm/errors/index.d.ts +5 -0
  1494. package/lib/esm/errors/network.d.ts +40 -0
  1495. package/lib/esm/errors/network.js +18 -0
  1496. package/lib/esm/errors/network.js.map +1 -0
  1497. package/lib/esm/errors/not_found.d.ts +10 -0
  1498. package/lib/esm/errors/not_found.js +7 -0
  1499. package/lib/esm/errors/not_found.js.map +1 -0
  1500. package/lib/esm/faucet/index.d.ts +6 -0
  1501. package/lib/esm/faucet/index.js +2 -0
  1502. package/lib/esm/faucet/index.js.map +1 -0
  1503. package/lib/esm/federation/api.d.ts +32 -0
  1504. package/lib/esm/federation/index.d.ts +2 -0
  1505. package/lib/esm/federation/index.js +2 -0
  1506. package/lib/esm/federation/index.js.map +1 -0
  1507. package/lib/esm/federation/server.d.ts +116 -0
  1508. package/lib/esm/federation/server.js +226 -0
  1509. package/lib/esm/federation/server.js.map +1 -0
  1510. package/lib/esm/federation/utils.d.ts +1 -0
  1511. package/lib/esm/federation/utils.js +12 -0
  1512. package/lib/esm/federation/utils.js.map +1 -0
  1513. package/lib/esm/gateway/account_call_builder.d.ts +54 -0
  1514. package/lib/esm/gateway/account_call_builder.js +68 -0
  1515. package/lib/esm/gateway/account_call_builder.js.map +1 -0
  1516. package/lib/esm/gateway/account_response.d.ts +62 -0
  1517. package/lib/esm/gateway/account_response.js +104 -0
  1518. package/lib/esm/gateway/account_response.js.map +1 -0
  1519. package/lib/esm/gateway/assets_call_builder.d.ts +25 -0
  1520. package/lib/esm/gateway/assets_call_builder.js +29 -0
  1521. package/lib/esm/gateway/assets_call_builder.js.map +1 -0
  1522. package/lib/esm/gateway/call_builder.d.ts +128 -0
  1523. package/lib/esm/gateway/call_builder.js +354 -0
  1524. package/lib/esm/gateway/call_builder.js.map +1 -0
  1525. package/lib/esm/gateway/claimable_balances_call_builder.d.ts +48 -0
  1526. package/lib/esm/gateway/claimable_balances_call_builder.js +59 -0
  1527. package/lib/esm/gateway/claimable_balances_call_builder.js.map +1 -0
  1528. package/lib/esm/gateway/effect_call_builder.d.ts +51 -0
  1529. package/lib/esm/gateway/effect_call_builder.js +58 -0
  1530. package/lib/esm/gateway/effect_call_builder.js.map +1 -0
  1531. package/lib/esm/gateway/faucet.d.ts +5 -0
  1532. package/lib/esm/gateway/faucet.js +12 -0
  1533. package/lib/esm/gateway/faucet.js.map +1 -0
  1534. package/lib/esm/gateway/gateway_api.d.ts +543 -0
  1535. package/lib/esm/gateway/gateway_api.js +84 -0
  1536. package/lib/esm/gateway/gateway_api.js.map +1 -0
  1537. package/lib/esm/gateway/gateway_axios_client.d.ts +36 -0
  1538. package/lib/esm/gateway/gateway_axios_client.js +61 -0
  1539. package/lib/esm/gateway/gateway_axios_client.js.map +1 -0
  1540. package/lib/esm/gateway/index.d.ts +5 -0
  1541. package/lib/esm/gateway/index.js +6 -0
  1542. package/lib/esm/gateway/index.js.map +1 -0
  1543. package/lib/esm/gateway/ledger_call_builder.d.ts +21 -0
  1544. package/lib/esm/gateway/ledger_call_builder.js +20 -0
  1545. package/lib/esm/gateway/ledger_call_builder.js.map +1 -0
  1546. package/lib/esm/gateway/liquidity_pool_call_builder.d.ts +35 -0
  1547. package/lib/esm/gateway/liquidity_pool_call_builder.js +49 -0
  1548. package/lib/esm/gateway/liquidity_pool_call_builder.js.map +1 -0
  1549. package/lib/esm/gateway/offer_call_builder.d.ts +63 -0
  1550. package/lib/esm/gateway/offer_call_builder.js +93 -0
  1551. package/lib/esm/gateway/offer_call_builder.js.map +1 -0
  1552. package/lib/esm/gateway/operation_call_builder.d.ts +67 -0
  1553. package/lib/esm/gateway/operation_call_builder.js +83 -0
  1554. package/lib/esm/gateway/operation_call_builder.js.map +1 -0
  1555. package/lib/esm/gateway/orderbook_call_builder.d.ts +18 -0
  1556. package/lib/esm/gateway/orderbook_call_builder.js +27 -0
  1557. package/lib/esm/gateway/orderbook_call_builder.js.map +1 -0
  1558. package/lib/esm/gateway/path_call_builder.d.ts +32 -0
  1559. package/lib/esm/gateway/payment_call_builder.d.ts +44 -0
  1560. package/lib/esm/gateway/payment_call_builder.js +49 -0
  1561. package/lib/esm/gateway/payment_call_builder.js.map +1 -0
  1562. package/lib/esm/gateway/server.d.ts +408 -0
  1563. package/lib/esm/gateway/server.js +743 -0
  1564. package/lib/esm/gateway/server.js.map +1 -0
  1565. package/lib/esm/gateway/server_api.d.ts +265 -0
  1566. package/lib/esm/gateway/server_api.js +17 -0
  1567. package/lib/esm/gateway/server_api.js.map +1 -0
  1568. package/lib/esm/gateway/strict_receive_path_call_builder.d.ts +35 -0
  1569. package/lib/esm/gateway/strict_receive_path_call_builder.js +37 -0
  1570. package/lib/esm/gateway/strict_receive_path_call_builder.js.map +1 -0
  1571. package/lib/esm/gateway/strict_send_path_call_builder.d.ts +35 -0
  1572. package/lib/esm/gateway/strict_send_path_call_builder.js +34 -0
  1573. package/lib/esm/gateway/strict_send_path_call_builder.js.map +1 -0
  1574. package/lib/esm/gateway/trade_aggregation_call_builder.d.ts +46 -0
  1575. package/lib/esm/gateway/trade_aggregation_call_builder.js +70 -0
  1576. package/lib/esm/gateway/trade_aggregation_call_builder.js.map +1 -0
  1577. package/lib/esm/gateway/trades_call_builder.d.ts +49 -0
  1578. package/lib/esm/gateway/trades_call_builder.js +72 -0
  1579. package/lib/esm/gateway/trades_call_builder.js.map +1 -0
  1580. package/lib/esm/gateway/transaction_call_builder.d.ts +57 -0
  1581. package/lib/esm/gateway/transaction_call_builder.js +71 -0
  1582. package/lib/esm/gateway/transaction_call_builder.js.map +1 -0
  1583. package/lib/esm/gateway/types/account.d.ts +5 -0
  1584. package/lib/esm/gateway/types/assets.d.ts +17 -0
  1585. package/lib/esm/gateway/types/effects.d.ts +285 -0
  1586. package/lib/esm/gateway/types/effects.js +59 -0
  1587. package/lib/esm/gateway/types/effects.js.map +1 -0
  1588. package/lib/esm/gateway/types/offer.d.ts +20 -0
  1589. package/lib/esm/gateway/types/trade.d.ts +14 -0
  1590. package/lib/esm/http-client/axios-client.d.ts +2 -0
  1591. package/lib/esm/http-client/axios-client.js +7 -0
  1592. package/lib/esm/http-client/axios-client.js.map +1 -0
  1593. package/lib/esm/http-client/axios.d.ts +2 -0
  1594. package/lib/esm/http-client/axios.js +3 -0
  1595. package/lib/esm/http-client/axios.js.map +1 -0
  1596. package/lib/esm/http-client/fetch-client.d.ts +11 -0
  1597. package/lib/esm/http-client/fetch-client.js +467 -0
  1598. package/lib/esm/http-client/fetch-client.js.map +1 -0
  1599. package/lib/esm/http-client/index.d.ts +2 -0
  1600. package/lib/esm/http-client/index.js +3 -0
  1601. package/lib/esm/http-client/index.js.map +1 -0
  1602. package/lib/esm/http-client/types.d.ts +70 -0
  1603. package/lib/esm/http-client/types.js +22 -0
  1604. package/lib/esm/http-client/types.js.map +1 -0
  1605. package/lib/esm/index.d.ts +32 -0
  1606. package/lib/esm/index.js +66 -0
  1607. package/lib/esm/index.js.map +1 -0
  1608. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/package.json +3 -0
  1609. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js +66 -0
  1610. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/array.js.map +1 -0
  1611. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js +174 -0
  1612. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bigint-encoder.js.map +1 -0
  1613. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js +39 -0
  1614. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/bool.js.map +1 -0
  1615. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js +259 -0
  1616. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/config.js.map +1 -0
  1617. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js +30 -0
  1618. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/double.js.map +1 -0
  1619. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js +97 -0
  1620. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/enum.js.map +1 -0
  1621. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js +28 -0
  1622. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/errors.js.map +1 -0
  1623. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js +30 -0
  1624. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/float.js.map +1 -0
  1625. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js +41 -0
  1626. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js.map +1 -0
  1627. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js +42 -0
  1628. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js.map +1 -0
  1629. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js +142 -0
  1630. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/large-int.js.map +1 -0
  1631. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js +39 -0
  1632. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/opaque.js.map +1 -0
  1633. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js +47 -0
  1634. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/option.js.map +1 -0
  1635. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js +19 -0
  1636. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/quadruple.js.map +1 -0
  1637. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js +14 -0
  1638. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/reference.js.map +1 -0
  1639. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js +169 -0
  1640. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-reader.js.map +1 -0
  1641. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js +184 -0
  1642. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/serialization/xdr-writer.js.map +1 -0
  1643. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js +62 -0
  1644. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/string.js.map +1 -0
  1645. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js +94 -0
  1646. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/struct.js.map +1 -0
  1647. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js +182 -0
  1648. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/union.js.map +1 -0
  1649. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js +41 -0
  1650. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js.map +1 -0
  1651. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js +45 -0
  1652. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js.map +1 -0
  1653. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js +75 -0
  1654. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-array.js.map +1 -0
  1655. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js +47 -0
  1656. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/var-opaque.js.map +1 -0
  1657. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js +22 -0
  1658. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/void.js.map +1 -0
  1659. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js +256 -0
  1660. package/lib/esm/node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js.map +1 -0
  1661. package/lib/esm/rpc/api.d.ts +580 -0
  1662. package/lib/esm/rpc/api.js +27 -0
  1663. package/lib/esm/rpc/api.js.map +1 -0
  1664. package/lib/esm/rpc/axios.d.ts +3 -0
  1665. package/lib/esm/rpc/axios.js +15 -0
  1666. package/lib/esm/rpc/axios.js.map +1 -0
  1667. package/lib/esm/rpc/browser.d.ts +2 -0
  1668. package/lib/esm/rpc/index.d.ts +4 -0
  1669. package/lib/esm/rpc/index.js +5 -0
  1670. package/lib/esm/rpc/index.js.map +1 -0
  1671. package/lib/esm/rpc/jsonrpc.d.ts +37 -0
  1672. package/lib/esm/rpc/jsonrpc.js +20 -0
  1673. package/lib/esm/rpc/jsonrpc.js.map +1 -0
  1674. package/lib/esm/rpc/parsers.d.ts +44 -0
  1675. package/lib/esm/rpc/parsers.js +236 -0
  1676. package/lib/esm/rpc/parsers.js.map +1 -0
  1677. package/lib/esm/rpc/server.d.ts +855 -0
  1678. package/lib/esm/rpc/server.js +1299 -0
  1679. package/lib/esm/rpc/server.js.map +1 -0
  1680. package/lib/esm/rpc/transaction.d.ts +20 -0
  1681. package/lib/esm/rpc/transaction.js +97 -0
  1682. package/lib/esm/rpc/transaction.js.map +1 -0
  1683. package/lib/esm/rpc/utils.d.ts +1 -0
  1684. package/lib/esm/utils/url.d.ts +2 -0
  1685. package/lib/esm/utils/url.js +31 -0
  1686. package/lib/esm/utils/url.js.map +1 -0
  1687. package/lib/esm/utils.d.ts +18 -0
  1688. package/lib/esm/utils.js +25 -0
  1689. package/lib/esm/utils.js.map +1 -0
  1690. package/lib/esm/webauth/challenge_transaction.d.ts +241 -0
  1691. package/lib/esm/webauth/challenge_transaction.js +329 -0
  1692. package/lib/esm/webauth/challenge_transaction.js.map +1 -0
  1693. package/lib/esm/webauth/errors.d.ts +9 -0
  1694. package/lib/esm/webauth/errors.js +5 -0
  1695. package/lib/esm/webauth/errors.js.map +1 -0
  1696. package/lib/esm/webauth/index.d.ts +3 -0
  1697. package/lib/esm/webauth/index.js +4 -0
  1698. package/lib/esm/webauth/index.js.map +1 -0
  1699. package/lib/esm/webauth/utils.d.ts +65 -0
  1700. package/lib/esm/webauth/utils.js +58 -0
  1701. package/lib/esm/webauth/utils.js.map +1 -0
  1702. package/package.json +196 -0
  1703. package/types/base32.js/index.d.ts +9 -0
  1704. package/types/stellar__js-xdr/index.d.ts +66 -0
@@ -0,0 +1,1299 @@
1
+ import { Buffer } from 'buffer';
2
+ import '../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js';
3
+ import '../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js';
4
+ import '../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js';
5
+ import '../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js';
6
+ import '../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js';
7
+ import types from '../base/generated/curr_generated.js';
8
+ import '@noble/hashes/sha2.js';
9
+ import '../base/signing.js';
10
+ import { Keypair } from '../base/keypair.js';
11
+ import { StrKey } from '../base/strkey.js';
12
+ import '../base/util/continued_fraction.js';
13
+ import '../base/util/bignumber.js';
14
+ import { Address } from '../base/address.js';
15
+ import '../base/transaction_builder.js';
16
+ import { Account } from '../base/account.js';
17
+ import '../base/muxed_account.js';
18
+ import { Contract } from '../base/contract.js';
19
+ import { nativeToScVal, scValToNative } from '../base/scval.js';
20
+ import '../base/numbers/uint128.js';
21
+ import '../base/numbers/uint256.js';
22
+ import '../base/numbers/int128.js';
23
+ import '../base/numbers/int256.js';
24
+ import { createHttpClient } from './axios.js';
25
+ import { postObject } from './jsonrpc.js';
26
+ import { Api } from './api.js';
27
+ import { assembleTransaction } from './transaction.js';
28
+ import { parseRawLedgerEntries, parseTransactionInfo, parseRawTransactions, parseRawEvents, parseRawLatestLedger, parseRawSimulation, parseRawSendTransaction, parseRawLedger } from './parsers.js';
29
+ import { Utils } from '../utils.js';
30
+
31
+ var Durability = /* @__PURE__ */ ((Durability2) => {
32
+ Durability2["Temporary"] = "temporary";
33
+ Durability2["Persistent"] = "persistent";
34
+ return Durability2;
35
+ })(Durability || {});
36
+ const DEFAULT_GET_TRANSACTION_TIMEOUT = 30;
37
+ const BasicSleepStrategy = (_iter) => 1e3;
38
+ const LinearSleepStrategy = (iter) => 1e3 * iter;
39
+ function findCreatedAccountSequenceInTransactionMeta(meta) {
40
+ let operations = [];
41
+ switch (meta.switch()) {
42
+ case 0:
43
+ operations = meta.operations();
44
+ break;
45
+ case 1:
46
+ case 2:
47
+ case 3:
48
+ case 4:
49
+ operations = meta.value().operations();
50
+ break;
51
+ default:
52
+ throw new Error("Unexpected transaction meta switch value");
53
+ }
54
+ const sequenceNumber = operations.flatMap((op) => op.changes()).find(
55
+ (c) => c.switch() === types.LedgerEntryChangeType.ledgerEntryCreated() && c.created().data().switch() === types.LedgerEntryType.account()
56
+ )?.created()?.data()?.account()?.seqNum()?.toString();
57
+ if (sequenceNumber) {
58
+ return sequenceNumber;
59
+ }
60
+ throw new Error("No account created in transaction");
61
+ }
62
+ class RpcServer {
63
+ serverURL;
64
+ /**
65
+ * HTTP client instance for making requests to Horizon.
66
+ * Exposes interceptors, defaults, and other configuration options.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * // Add authentication header
71
+ * server.httpClient.defaults.headers['Authorization'] = 'Bearer token';
72
+ *
73
+ * // Add request interceptor
74
+ * server.httpClient.interceptors.request.use((config) => {
75
+ * console.log('Request:', config.url);
76
+ * return config;
77
+ * });
78
+ * ```
79
+ */
80
+ httpClient;
81
+ constructor(serverURL, opts = {}) {
82
+ this.serverURL = new URL(serverURL);
83
+ this.httpClient = createHttpClient(opts.headers);
84
+ if (this.serverURL.protocol !== "https:" && !opts.allowHttp) {
85
+ throw new Error(
86
+ "Cannot connect to insecure Soroban RPC server if `allowHttp` isn't set"
87
+ );
88
+ }
89
+ }
90
+ /**
91
+ * Fetch a minimal set of current info about a Stellar account.
92
+ *
93
+ * Needed to get the current sequence number for the account so you can build
94
+ * a successful transaction with {@link TransactionBuilder}.
95
+ *
96
+ * @param address - The public address of the account to load.
97
+ * @returns A promise which resolves to the {@link Account}
98
+ * object with a populated sequence number
99
+ *
100
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
105
+ * server.getAccount(accountId).then((account) => {
106
+ * console.log("sequence:", account.sequence);
107
+ * });
108
+ * ```
109
+ */
110
+ async getAccount(address) {
111
+ const entry = await this.getAccountEntry(address);
112
+ return new Account(address, entry.seqNum().toString());
113
+ }
114
+ /**
115
+ * Fetch the full account entry for a Stellar account.
116
+ *
117
+ * @param address - The public address of the account to load.
118
+ * @returns Resolves to the full on-chain account
119
+ * entry
120
+ *
121
+ * @see
122
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
123
+ *
124
+ * @example
125
+ * ```ts
126
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
127
+ * server.getAccountEntry(accountId).then((account) => {
128
+ * console.log("sequence:", account.balance().toString());
129
+ * });
130
+ * ```
131
+ */
132
+ async getAccountEntry(address) {
133
+ const ledgerKey = types.LedgerKey.account(
134
+ new types.LedgerKeyAccount({
135
+ accountId: Keypair.fromPublicKey(address).xdrPublicKey()
136
+ })
137
+ );
138
+ try {
139
+ const resp = await this.getLedgerEntry(ledgerKey);
140
+ return resp.val.account();
141
+ } catch {
142
+ throw new Error(`Account not found: ${address}`);
143
+ }
144
+ }
145
+ /**
146
+ * Fetch the full trustline entry for a Stellar account.
147
+ *
148
+ * @param account - The public address of the account whose trustline it is
149
+ * @param asset - The trustline's asset
150
+ * @returns Resolves to the full on-chain trustline
151
+ * entry
152
+ *
153
+ * @see
154
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
155
+ *
156
+ * @deprecated Use {@link getAssetBalance}, instead
157
+ * @example
158
+ * ```ts
159
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
160
+ * const asset = new Asset(
161
+ * "USDC",
162
+ * "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5"
163
+ * );
164
+ * server.getTrustline(accountId, asset).then((entry) => {
165
+ * console.log(`{asset.toString()} balance for ${accountId}:", entry.balance().toString());
166
+ * });
167
+ * ```
168
+ */
169
+ async getTrustline(account, asset) {
170
+ const trustlineLedgerKey = types.LedgerKey.trustline(
171
+ new types.LedgerKeyTrustLine({
172
+ accountId: Keypair.fromPublicKey(account).xdrAccountId(),
173
+ asset: asset.toTrustLineXDRObject()
174
+ })
175
+ );
176
+ try {
177
+ const entry = await this.getLedgerEntry(trustlineLedgerKey);
178
+ return entry.val.trustLine();
179
+ } catch {
180
+ throw new Error(
181
+ `Trustline for ${asset.getCode()}:${asset.getIssuer()} not found for ${account}`
182
+ );
183
+ }
184
+ }
185
+ /**
186
+ * Fetch the full claimable balance entry for a Stellar account.
187
+ *
188
+ * @param id - The strkey (`B...`) or hex (`00000000abcde...`) (both
189
+ * IDs with and without the 000... version prefix are accepted) of the
190
+ * claimable balance to load
191
+ * @returns Resolves to the full on-chain
192
+ * claimable balance entry
193
+ *
194
+ * @see
195
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
196
+ *
197
+ * @example
198
+ * ```ts
199
+ * const id = "00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9";
200
+ * server.getClaimableBalance(id).then((entry) => {
201
+ * console.log(`Claimable balance {id.substr(0, 12)} has:`);
202
+ * console.log(` asset: ${Asset.fromXDRObject(entry.asset()).toString()}`;
203
+ * console.log(` amount: ${entry.amount().toString()}`;
204
+ * });
205
+ * ```
206
+ */
207
+ async getClaimableBalance(id) {
208
+ let balanceId;
209
+ if (StrKey.isValidClaimableBalance(id)) {
210
+ const buffer = StrKey.decodeClaimableBalance(id);
211
+ const v = Buffer.concat([
212
+ Buffer.from("\0\0\0"),
213
+ buffer.subarray(0, 1)
214
+ ]);
215
+ balanceId = types.ClaimableBalanceId.fromXDR(
216
+ Buffer.concat([v, buffer.subarray(1)])
217
+ );
218
+ } else if (id.match(/[a-f0-9]{72}/i)) {
219
+ balanceId = types.ClaimableBalanceId.fromXDR(id, "hex");
220
+ } else if (id.match(/[a-f0-9]{64}/i)) {
221
+ balanceId = types.ClaimableBalanceId.fromXDR(id.padStart(72, "0"), "hex");
222
+ } else {
223
+ throw new TypeError(`expected 72-char hex ID or strkey, not ${id}`);
224
+ }
225
+ const trustlineLedgerKey = types.LedgerKey.claimableBalance(
226
+ new types.LedgerKeyClaimableBalance({ balanceId })
227
+ );
228
+ try {
229
+ const entry = await this.getLedgerEntry(trustlineLedgerKey);
230
+ return entry.val.claimableBalance();
231
+ } catch {
232
+ throw new Error(`Claimable balance ${id} not found`);
233
+ }
234
+ }
235
+ /**
236
+ * Fetch the balance of an asset held by an account or contract.
237
+ *
238
+ * The `address` argument may be provided as a string (as a {@link StrKey}),
239
+ * {@link Address}, or {@link Contract}.
240
+ *
241
+ * @param address - The account or contract whose
242
+ * balance should be fetched.
243
+ * @param asset - The asset whose balance you want to inspect.
244
+ * @param networkPassphrase - (optional) optionally, when requesting the
245
+ * balance of a contract, the network passphrase to which this token
246
+ * applies. If omitted and necessary, a request about network information
247
+ * will be made (see {@link getNetwork}), since contract IDs for assets are
248
+ * specific to a network. You can refer to {@link Networks} for a list of
249
+ * built-in passphrases, e.g., `Networks.TESTNET`.
250
+ * @returns Resolves with balance entry details
251
+ * when available.
252
+ *
253
+ * @throws If the supplied `address` is not a valid account or
254
+ * contract strkey.
255
+ *
256
+ * @example
257
+ * ```ts
258
+ * const usdc = new Asset(
259
+ * "USDC",
260
+ * "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5"
261
+ * );
262
+ * const balance = await server.getAssetBalance("GD...", usdc);
263
+ * console.log(balance.balanceEntry?.amount);
264
+ * ```
265
+ */
266
+ async getAssetBalance(address, asset, networkPassphrase) {
267
+ let addr = address;
268
+ if (typeof address === "string") {
269
+ addr = address;
270
+ } else if (address instanceof Address) {
271
+ addr = address.toString();
272
+ } else if (address instanceof Contract) {
273
+ addr = address.toString();
274
+ } else {
275
+ throw new TypeError(`invalid address: ${address}`);
276
+ }
277
+ if (StrKey.isValidEd25519PublicKey(addr)) {
278
+ const [tl, ll] = await Promise.all([
279
+ this.getTrustline(addr, asset),
280
+ this.getLatestLedger()
281
+ ]);
282
+ return {
283
+ latestLedger: ll.sequence,
284
+ balanceEntry: {
285
+ amount: tl.balance().toString(),
286
+ // Extract actual flags from the coalesced value.
287
+ authorized: Boolean(tl.flags() & 1),
288
+ // AUTHORIZED_FLAG
289
+ clawback: Boolean(tl.flags() & 4),
290
+ // TRUSTLINE_CLAWBACK_ENABLED_FLAG
291
+ authorizedToMaintainLiabilities: Boolean(tl.flags() & 2),
292
+ // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
293
+ revocable: Boolean(tl.flags() & 2)
294
+ // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG (deprecated, will be removed in a future major release)
295
+ }
296
+ };
297
+ } else if (StrKey.isValidContract(addr)) {
298
+ return this.getSACBalance(addr, asset, networkPassphrase);
299
+ }
300
+ throw new Error(`invalid address: ${address}`);
301
+ }
302
+ /**
303
+ * General node health check.
304
+ *
305
+ * @returns A promise which resolves to the
306
+ * {@link Api.GetHealthResponse} object with the status of the
307
+ * server (e.g. "healthy").
308
+ *
309
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getHealth | getLedgerEntries docs}
310
+ *
311
+ * @example
312
+ * ```ts
313
+ * server.getHealth().then((health) => {
314
+ * console.log("status:", health.status);
315
+ * });
316
+ * ```
317
+ */
318
+ async getHealth() {
319
+ return postObject(
320
+ this.httpClient,
321
+ this.serverURL.toString(),
322
+ "getHealth"
323
+ );
324
+ }
325
+ /**
326
+ * Reads the current value of contract data ledger entries directly.
327
+ *
328
+ * Allows you to directly inspect the current state of a contract. This is a
329
+ * backup way to access your contract data which may not be available via
330
+ * events or {@link rpc.Server.simulateTransaction}.
331
+ *
332
+ * @param contract - The contract ID containing the
333
+ * data to load as a strkey (`C...` form), a {@link Contract}, or an
334
+ * {@link Address} instance
335
+ * @param key - The key of the contract data to load
336
+ * @param durability - (optional) The "durability
337
+ * keyspace" that this ledger key belongs to, which is either 'temporary'
338
+ * or 'persistent' (the default), see {@link rpc.Durability}.
339
+ * @returns The current data value
340
+ *
341
+ * **Warning:** If the data entry in question is a 'temporary' entry, it's
342
+ * entirely possible that it has expired out of existence.
343
+ *
344
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
345
+ *
346
+ * @example
347
+ * ```ts
348
+ * const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
349
+ * const key = xdr.ScVal.scvSymbol("counter");
350
+ * server.getContractData(contractId, key, Durability.Temporary).then(data => {
351
+ * console.log("value:", data.val);
352
+ * console.log("liveUntilLedgerSeq:", data.liveUntilLedgerSeq);
353
+ * console.log("lastModified:", data.lastModifiedLedgerSeq);
354
+ * console.log("latestLedger:", data.latestLedger);
355
+ * });
356
+ * ```
357
+ */
358
+ async getContractData(contract, key, durability = "persistent" /* Persistent */) {
359
+ let scAddress;
360
+ if (typeof contract === "string") {
361
+ scAddress = new Contract(contract).address().toScAddress();
362
+ } else if (contract instanceof Address) {
363
+ scAddress = contract.toScAddress();
364
+ } else if (contract instanceof Contract) {
365
+ scAddress = contract.address().toScAddress();
366
+ } else {
367
+ throw new TypeError(`unknown contract type: ${contract}`);
368
+ }
369
+ let xdrDurability;
370
+ switch (durability) {
371
+ case "temporary" /* Temporary */:
372
+ xdrDurability = types.ContractDataDurability.temporary();
373
+ break;
374
+ case "persistent" /* Persistent */:
375
+ xdrDurability = types.ContractDataDurability.persistent();
376
+ break;
377
+ default:
378
+ throw new TypeError(`invalid durability: ${durability}`);
379
+ }
380
+ const contractKey = types.LedgerKey.contractData(
381
+ new types.LedgerKeyContractData({
382
+ key,
383
+ contract: scAddress,
384
+ durability: xdrDurability
385
+ })
386
+ );
387
+ try {
388
+ return await this.getLedgerEntry(contractKey);
389
+ } catch {
390
+ throw {
391
+ code: 404,
392
+ message: `Contract data not found for ${Address.fromScAddress(
393
+ scAddress
394
+ ).toString()} with key ${key.toXDR("base64")} and durability: ${durability}`
395
+ };
396
+ }
397
+ }
398
+ /**
399
+ * Retrieves the WASM bytecode for a given contract.
400
+ *
401
+ * This method allows you to fetch the WASM bytecode associated with a contract
402
+ * deployed on the Soroban network. The WASM bytecode represents the executable
403
+ * code of the contract.
404
+ *
405
+ * @param contractId - The contract ID containing the WASM bytecode to retrieve
406
+ * @returns A Buffer containing the WASM bytecode
407
+ * @throws If the contract or its associated WASM bytecode cannot be
408
+ * found on the network.
409
+ *
410
+ * @example
411
+ * ```ts
412
+ * const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
413
+ * server.getContractWasmByContractId(contractId).then(wasmBuffer => {
414
+ * console.log("WASM bytecode length:", wasmBuffer.length);
415
+ * // ... do something with the WASM bytecode ...
416
+ * }).catch(err => {
417
+ * console.error("Error fetching WASM bytecode:", err);
418
+ * });
419
+ * ```
420
+ */
421
+ async getContractWasmByContractId(contractId) {
422
+ const contractLedgerKey = new Contract(contractId).getFootprint();
423
+ const response = await this.getLedgerEntries(contractLedgerKey);
424
+ if (!response.entries.length || !response.entries[0]?.val) {
425
+ return Promise.reject({
426
+ code: 404,
427
+ message: `Could not obtain contract hash from server`
428
+ });
429
+ }
430
+ const wasmHash = response.entries[0].val.contractData().val().instance().executable().wasmHash();
431
+ return this.getContractWasmByHash(wasmHash);
432
+ }
433
+ /**
434
+ * Retrieves the WASM bytecode for a given contract hash.
435
+ *
436
+ * This method allows you to fetch the WASM bytecode associated with a contract
437
+ * deployed on the Soroban network using the contract's WASM hash. The WASM bytecode
438
+ * represents the executable code of the contract.
439
+ *
440
+ * @param wasmHash - The WASM hash of the contract
441
+ * @returns A Buffer containing the WASM bytecode
442
+ * @throws If the contract or its associated WASM bytecode cannot be
443
+ * found on the network.
444
+ *
445
+ * @example
446
+ * ```ts
447
+ * const wasmHash = Buffer.from("...");
448
+ * server.getContractWasmByHash(wasmHash).then(wasmBuffer => {
449
+ * console.log("WASM bytecode length:", wasmBuffer.length);
450
+ * // ... do something with the WASM bytecode ...
451
+ * }).catch(err => {
452
+ * console.error("Error fetching WASM bytecode:", err);
453
+ * });
454
+ * ```
455
+ */
456
+ async getContractWasmByHash(wasmHash, format = void 0) {
457
+ const wasmHashBuffer = typeof wasmHash === "string" ? Buffer.from(wasmHash, format) : wasmHash;
458
+ const ledgerKeyWasmHash = types.LedgerKey.contractCode(
459
+ new types.LedgerKeyContractCode({
460
+ hash: wasmHashBuffer
461
+ })
462
+ );
463
+ const responseWasm = await this.getLedgerEntries(ledgerKeyWasmHash);
464
+ if (!responseWasm.entries.length || !responseWasm.entries[0]?.val) {
465
+ return Promise.reject({
466
+ code: 404,
467
+ message: "Could not obtain contract wasm from server"
468
+ });
469
+ }
470
+ const wasmBuffer = responseWasm.entries[0].val.contractCode().code();
471
+ return wasmBuffer;
472
+ }
473
+ /**
474
+ * Reads the current value of arbitrary ledger entries directly.
475
+ *
476
+ * Allows you to directly inspect the current state of contracts, contract's
477
+ * code, accounts, or any other ledger entries.
478
+ *
479
+ * To fetch a contract's WASM byte-code, built the appropriate
480
+ * {@link xdr.LedgerKeyContractCode} ledger entry key (or see
481
+ * {@link Contract.getFootprint}).
482
+ *
483
+ * @param keys - One or more ledger entry keys to load
484
+ * @returns The current on-chain
485
+ * values for the given ledger keys
486
+ *
487
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
488
+ * @see RpcServer._getLedgerEntries
489
+ * @example
490
+ * ```ts
491
+ * const contractId = "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM";
492
+ * const key = xdr.LedgerKey.contractData(new xdr.LedgerKeyContractData({
493
+ * contractId: StrKey.decodeContract(contractId),
494
+ * key: xdr.ScVal.scvSymbol("counter"),
495
+ * }));
496
+ *
497
+ * server.getLedgerEntries([key]).then(response => {
498
+ * const ledgerData = response.entries[0];
499
+ * console.log("key:", ledgerData.key);
500
+ * console.log("value:", ledgerData.val);
501
+ * console.log("liveUntilLedgerSeq:", ledgerData.liveUntilLedgerSeq);
502
+ * console.log("lastModified:", ledgerData.lastModifiedLedgerSeq);
503
+ * console.log("latestLedger:", response.latestLedger);
504
+ * });
505
+ * ```
506
+ */
507
+ getLedgerEntries(...keys) {
508
+ return this._getLedgerEntries(...keys).then(parseRawLedgerEntries);
509
+ }
510
+ _getLedgerEntries(...keys) {
511
+ return postObject(
512
+ this.httpClient,
513
+ this.serverURL.toString(),
514
+ "getLedgerEntries",
515
+ {
516
+ keys: keys.map((k) => k.toXDR("base64"))
517
+ }
518
+ );
519
+ }
520
+ async getLedgerEntry(key) {
521
+ const results = await this._getLedgerEntries(key).then(
522
+ parseRawLedgerEntries
523
+ );
524
+ if (results.entries.length !== 1) {
525
+ throw new Error(`failed to find an entry for key ${key.toXDR("base64")}`);
526
+ }
527
+ return results.entries[0];
528
+ }
529
+ /**
530
+ * Poll for a particular transaction with certain parameters.
531
+ *
532
+ * After submitting a transaction, clients can use this to poll for
533
+ * transaction completion and return a definitive state of success or failure.
534
+ *
535
+ * @param hash - the transaction you're polling for
536
+ * @param opts - (optional) polling options
537
+ * - `attempts` (optional): (optional) the number of attempts to make
538
+ * before returning the last-seen status. By default or on invalid inputs,
539
+ * try 5 times.
540
+ * - `sleepStrategy` (optional): (optional) the amount of time
541
+ * to wait for between each attempt. By default, sleep for 1 second between
542
+ * each attempt.
543
+ *
544
+ * @returns the response after a "found"
545
+ * response (which may be success or failure) or the last response obtained
546
+ * after polling the maximum number of specified attempts.
547
+ *
548
+ * @example
549
+ * ```ts
550
+ * const h = "c4515e3bdc0897f21cc5dbec8c82cf0a936d4741cb74a8e158eb51b9fb00411a";
551
+ * const txStatus = await server.pollTransaction(h, {
552
+ * attempts: 100, // I'm a maniac
553
+ * sleepStrategy: rpc.LinearSleepStrategy
554
+ * }); // this will take 5,050 seconds to complete
555
+ * ```
556
+ */
557
+ async pollTransaction(hash, opts) {
558
+ const maxAttempts = (opts?.attempts ?? 0) < 1 ? DEFAULT_GET_TRANSACTION_TIMEOUT : opts?.attempts ?? DEFAULT_GET_TRANSACTION_TIMEOUT;
559
+ let foundInfo;
560
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
561
+ foundInfo = await this.getTransaction(hash);
562
+ if (foundInfo.status !== Api.GetTransactionStatus.NOT_FOUND) {
563
+ return foundInfo;
564
+ }
565
+ await Utils.sleep((opts?.sleepStrategy ?? BasicSleepStrategy)(attempt));
566
+ }
567
+ return foundInfo;
568
+ }
569
+ /**
570
+ * Fetch the details of a submitted transaction.
571
+ *
572
+ * After submitting a transaction, clients should poll this to tell when the
573
+ * transaction has completed.
574
+ *
575
+ * @param hash - Hex-encoded hash of the transaction to check
576
+ * @returns The status, result, and
577
+ * other details about the transaction
578
+ *
579
+ * @see
580
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction | getTransaction docs}
581
+ *
582
+ * @example
583
+ * ```ts
584
+ * const transactionHash = "c4515e3bdc0897f21cc5dbec8c82cf0a936d4741cb74a8e158eb51b9fb00411a";
585
+ * server.getTransaction(transactionHash).then((tx) => {
586
+ * console.log("status:", tx.status);
587
+ * console.log("envelopeXdr:", tx.envelopeXdr);
588
+ * console.log("resultMetaXdr:", tx.resultMetaXdr);
589
+ * console.log("resultXdr:", tx.resultXdr);
590
+ * });
591
+ * ```
592
+ */
593
+ async getTransaction(hash) {
594
+ return this._getTransaction(hash).then((raw) => {
595
+ const foundInfo = {};
596
+ if (raw.status !== Api.GetTransactionStatus.NOT_FOUND) {
597
+ Object.assign(foundInfo, parseTransactionInfo(raw));
598
+ }
599
+ const result = {
600
+ status: raw.status,
601
+ txHash: hash,
602
+ latestLedger: raw.latestLedger,
603
+ latestLedgerCloseTime: raw.latestLedgerCloseTime,
604
+ oldestLedger: raw.oldestLedger,
605
+ oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
606
+ ...foundInfo
607
+ };
608
+ return result;
609
+ });
610
+ }
611
+ async _getTransaction(hash) {
612
+ return postObject(
613
+ this.httpClient,
614
+ this.serverURL.toString(),
615
+ "getTransaction",
616
+ {
617
+ hash
618
+ }
619
+ );
620
+ }
621
+ /**
622
+ * Fetch transactions starting from a given start ledger or a cursor. The end ledger is the latest ledger
623
+ * in that RPC instance.
624
+ *
625
+ * @param request - The request parameters.
626
+ * @returns - A promise that resolves to the transactions response.
627
+ *
628
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransactions
629
+ * @example
630
+ * ```ts
631
+ * server.getTransactions({
632
+ * startLedger: 10000,
633
+ * limit: 10,
634
+ * }).then((response) => {
635
+ * console.log("Transactions:", response.transactions);
636
+ * console.log("Latest Ledger:", response.latestLedger);
637
+ * console.log("Cursor:", response.cursor);
638
+ * });
639
+ * ```
640
+ */
641
+ async getTransactions(request) {
642
+ return this._getTransactions(request).then(
643
+ (raw) => {
644
+ const result = {
645
+ transactions: (raw.transactions || []).map(parseRawTransactions),
646
+ latestLedger: raw.latestLedger,
647
+ latestLedgerCloseTimestamp: raw.latestLedgerCloseTimestamp,
648
+ oldestLedger: raw.oldestLedger,
649
+ oldestLedgerCloseTimestamp: raw.oldestLedgerCloseTimestamp,
650
+ cursor: raw.cursor
651
+ };
652
+ return result;
653
+ }
654
+ );
655
+ }
656
+ async _getTransactions(request) {
657
+ return postObject(
658
+ this.httpClient,
659
+ this.serverURL.toString(),
660
+ "getTransactions",
661
+ request
662
+ );
663
+ }
664
+ /**
665
+ * Fetch all events that match a given set of filters.
666
+ *
667
+ * The given filters (see {@link Api.EventFilter}
668
+ * for detailed fields) are combined only in a logical OR fashion, and all of
669
+ * the fields in each filter are optional.
670
+ *
671
+ * To page through events, use the `pagingToken` field on the relevant
672
+ * {@link Api.EventResponse} object to set the `cursor` parameter.
673
+ *
674
+ * @param request - Event filters {@link Api.GetEventsRequest},
675
+ * @returns A paginatable set of the events
676
+ * matching the given event filters
677
+ *
678
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getEvents | getEvents docs}
679
+ *
680
+ * @example
681
+ * ```ts
682
+ *
683
+ * server.getEvents({
684
+ * startLedger: 1000,
685
+ * endLedger: 2000,
686
+ * filters: [
687
+ * {
688
+ * type: "contract",
689
+ * contractIds: [ "deadb33f..." ],
690
+ * topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=", "*" ]]
691
+ * }, {
692
+ * type: "system",
693
+ * contractIds: [ "...c4f3b4b3..." ],
694
+ * topics: [[ "*" ], [ "*", "AAAAAQB6Mcc=" ]]
695
+ * }, {
696
+ * contractIds: [ "...c4f3b4b3..." ],
697
+ * topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==" ]]
698
+ * }, {
699
+ * type: "diagnostic",
700
+ * topics: [[ "AAAAAQB6Mcc=" ]]
701
+ * }
702
+ * ],
703
+ * limit: 10,
704
+ * });
705
+ * ```
706
+ */
707
+ async getEvents(request) {
708
+ return this._getEvents(request).then(parseRawEvents);
709
+ }
710
+ async _getEvents(request) {
711
+ return postObject(
712
+ this.httpClient,
713
+ this.serverURL.toString(),
714
+ "getEvents",
715
+ {
716
+ filters: request.filters ?? [],
717
+ pagination: {
718
+ ...request.cursor && { cursor: request.cursor },
719
+ // add if defined
720
+ ...request.limit && { limit: request.limit }
721
+ },
722
+ ...request.startLedger && {
723
+ startLedger: request.startLedger
724
+ },
725
+ ...request.endLedger && {
726
+ endLedger: request.endLedger
727
+ }
728
+ }
729
+ );
730
+ }
731
+ /**
732
+ * Fetch metadata about the network this Soroban RPC server is connected to.
733
+ *
734
+ * @returns Metadata about the current
735
+ * network this RPC server is connected to
736
+ *
737
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getNetwork | getNetwork docs}
738
+ *
739
+ * @example
740
+ * ```ts
741
+ * server.getNetwork().then((network) => {
742
+ * console.log("faucetUrl:", network.friendbotUrl);
743
+ * console.log("passphrase:", network.passphrase);
744
+ * console.log("protocolVersion:", network.protocolVersion);
745
+ * });
746
+ * ```
747
+ */
748
+ async getNetwork() {
749
+ return postObject(
750
+ this.httpClient,
751
+ this.serverURL.toString(),
752
+ "getNetwork"
753
+ );
754
+ }
755
+ /**
756
+ * Fetch the latest ledger meta info from network which this Soroban RPC
757
+ * server is connected to.
758
+ *
759
+ * @returns metadata about the
760
+ * latest ledger on the network that this RPC server is connected to
761
+ *
762
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLatestLedger | getLatestLedger docs}
763
+ *
764
+ * @example
765
+ * ```ts
766
+ * server.getLatestLedger().then((response) => {
767
+ * console.log("hash:", response.id);
768
+ * console.log("sequence:", response.sequence);
769
+ * console.log("protocolVersion:", response.protocolVersion);
770
+ * });
771
+ * ```
772
+ */
773
+ async getLatestLedger() {
774
+ return this._getLatestLedger().then(parseRawLatestLedger);
775
+ }
776
+ async _getLatestLedger() {
777
+ return postObject(
778
+ this.httpClient,
779
+ this.serverURL.toString(),
780
+ "getLatestLedger"
781
+ );
782
+ }
783
+ /**
784
+ * Submit a trial contract invocation to get back return values, expected
785
+ * ledger footprint, expected authorizations, and expected costs.
786
+ *
787
+ * @param tx - the transaction to simulate,
788
+ * which should include exactly one operation (one of
789
+ * {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTtlOp}, or
790
+ * {@link xdr.RestoreFootprintOp}). Any provided footprint or auth
791
+ * information will be ignored.
792
+ * @param addlResources - (optional) any additional resources
793
+ * to add to the simulation-provided ones, for example if you know you will
794
+ * need extra CPU instructions
795
+ * @param authMode - (optional) optionally, specify the type of
796
+ * auth mode to use for simulation: `enforce` for enforcement mode,
797
+ * `record` for recording mode, or `record_allow_nonroot` for recording
798
+ * mode that allows non-root authorization
799
+ *
800
+ * @returns An object with the
801
+ * cost, footprint, result/auth requirements (if applicable), and error of
802
+ * the transaction
803
+ *
804
+ * @see
805
+ * {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
806
+ * @see
807
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
808
+ * @see
809
+ * {@link https://developers.stellar.org/docs/learn/fundamentals/contract-development/contract-interactions/transaction-simulation#authorization | authorization modes}
810
+ * @see module:rpc.Server#prepareTransaction
811
+ * @see module:rpc.assembleTransaction
812
+ *
813
+ * @example
814
+ * ```ts
815
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
816
+ * const contract = new StellarSdk.Contract(contractId);
817
+ *
818
+ * // Right now, this is just the default fee for this example.
819
+ * const fee = StellarSdk.BASE_FEE;
820
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
821
+ * // Uncomment the following line to build transactions for the live network. Be
822
+ * // sure to also change the horizon hostname.
823
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
824
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
825
+ * .setTimeout(30) // valid for the next 30s
826
+ * // Add an operation to call increment() on the contract
827
+ * .addOperation(contract.call("increment"))
828
+ * .build();
829
+ *
830
+ * server.simulateTransaction(transaction).then((sim) => {
831
+ * console.log("cost:", sim.cost);
832
+ * console.log("result:", sim.result);
833
+ * console.log("error:", sim.error);
834
+ * console.log("latestLedger:", sim.latestLedger);
835
+ * });
836
+ * ```
837
+ */
838
+ async simulateTransaction(tx, addlResources, authMode) {
839
+ return this._simulateTransaction(tx, addlResources, authMode).then(
840
+ parseRawSimulation
841
+ );
842
+ }
843
+ async _simulateTransaction(transaction, addlResources, authMode) {
844
+ return postObject(
845
+ this.httpClient,
846
+ this.serverURL.toString(),
847
+ "simulateTransaction",
848
+ {
849
+ transaction: transaction.toXDR(),
850
+ authMode,
851
+ ...addlResources !== void 0 && {
852
+ resourceConfig: {
853
+ instructionLeeway: addlResources.cpuInstructions
854
+ }
855
+ }
856
+ }
857
+ );
858
+ }
859
+ /**
860
+ * Submit a trial contract invocation, first run a simulation of the contract
861
+ * invocation as defined on the incoming transaction, and apply the results to
862
+ * a new copy of the transaction which is then returned. Setting the ledger
863
+ * footprint and authorization, so the resulting transaction is ready for
864
+ * signing & sending.
865
+ *
866
+ * The returned transaction will also have an updated fee that is the sum of
867
+ * fee set on incoming transaction with the contract resource fees estimated
868
+ * from simulation. It is advisable to check the fee on returned transaction
869
+ * and validate or take appropriate measures for interaction with user to
870
+ * confirm it is acceptable.
871
+ *
872
+ * You can call the {@link rpc.Server.simulateTransaction} method
873
+ * directly first if you want to inspect estimated fees for a given
874
+ * transaction in detail first, then re-assemble it manually or via
875
+ * {@link rpc.assembleTransaction}.
876
+ *
877
+ * @param tx - the transaction to
878
+ * prepare. It should include exactly one operation, which must be one of
879
+ * {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTtlOp},
880
+ * or {@link xdr.RestoreFootprintOp}.
881
+ *
882
+ * Any provided footprint will be overwritten. However, if your operation
883
+ * has existing auth entries, they will be preferred over ALL auth entries
884
+ * from the simulation. In other words, if you include auth entries, you
885
+ * don't care about the auth returned from the simulation. Other fields
886
+ * (footprint, etc.) will be filled as normal.
887
+ * @returns A copy of the
888
+ * transaction with the expected authorizations (in the case of
889
+ * invocation), resources, and ledger footprints added. The transaction fee
890
+ * will also automatically be padded with the contract's minimum resource
891
+ * fees discovered from the simulation.
892
+ * @throws * If simulation fails
893
+ *
894
+ * @see module:rpc.assembleTransaction
895
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
896
+ *
897
+ * @example
898
+ * ```ts
899
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
900
+ * const contract = new StellarSdk.Contract(contractId);
901
+ *
902
+ * // Right now, this is just the default fee for this example.
903
+ * const fee = StellarSdk.BASE_FEE;
904
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
905
+ * // Uncomment the following line to build transactions for the live network. Be
906
+ * // sure to also change the horizon hostname.
907
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
908
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
909
+ * .setTimeout(30) // valid for the next 30s
910
+ * // Add an operation to call increment() on the contract
911
+ * .addOperation(contract.call("increment"))
912
+ * .build();
913
+ *
914
+ * const preparedTransaction = await server.prepareTransaction(transaction);
915
+ *
916
+ * // Sign this transaction with the secret key
917
+ * // NOTE: signing is transaction is network specific. Test network transactions
918
+ * // won't work in the public network. To switch networks, use the Network object
919
+ * // as explained above (look for StellarSdk.Network).
920
+ * const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
921
+ * preparedTransaction.sign(sourceKeypair);
922
+ *
923
+ * server.sendTransaction(transaction).then(result => {
924
+ * console.log("hash:", result.hash);
925
+ * console.log("status:", result.status);
926
+ * console.log("errorResultXdr:", result.errorResultXdr);
927
+ * });
928
+ * ```
929
+ */
930
+ async prepareTransaction(tx) {
931
+ const simResponse = await this.simulateTransaction(tx);
932
+ if (Api.isSimulationError(simResponse)) {
933
+ throw new Error(simResponse.error);
934
+ }
935
+ return assembleTransaction(tx, simResponse).build();
936
+ }
937
+ /**
938
+ * Submit a real transaction to the Stellar network.
939
+ *
940
+ * Unlike Horizon, RPC does not wait for transaction completion. It
941
+ * simply validates the transaction and enqueues it. Clients should call
942
+ * {@link rpc.Server.getTransaction} to learn about transaction
943
+ * success/failure.
944
+ *
945
+ * @param transaction - to submit
946
+ * @returns the
947
+ * transaction id, status, and any error if available
948
+ *
949
+ * @see {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
950
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/sendTransaction | sendTransaction docs}
951
+ *
952
+ * @example
953
+ * ```ts
954
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
955
+ * const contract = new StellarSdk.Contract(contractId);
956
+ *
957
+ * // Right now, this is just the default fee for this example.
958
+ * const fee = StellarSdk.BASE_FEE;
959
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
960
+ * // Uncomment the following line to build transactions for the live network. Be
961
+ * // sure to also change the horizon hostname.
962
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
963
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
964
+ * .setTimeout(30) // valid for the next 30s
965
+ * // Add an operation to call increment() on the contract
966
+ * .addOperation(contract.call("increment"))
967
+ * .build();
968
+ *
969
+ * // Sign this transaction with the secret key
970
+ * // NOTE: signing is transaction is network specific. Test network transactions
971
+ * // won't work in the public network. To switch networks, use the Network object
972
+ * // as explained above (look for StellarSdk.Network).
973
+ * const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
974
+ * transaction.sign(sourceKeypair);
975
+ *
976
+ * server.sendTransaction(transaction).then((result) => {
977
+ * console.log("hash:", result.hash);
978
+ * console.log("status:", result.status);
979
+ * console.log("errorResultXdr:", result.errorResultXdr);
980
+ * });
981
+ * ```
982
+ */
983
+ async sendTransaction(transaction) {
984
+ return this._sendTransaction(transaction).then(parseRawSendTransaction);
985
+ }
986
+ async _sendTransaction(transaction) {
987
+ return postObject(
988
+ this.httpClient,
989
+ this.serverURL.toString(),
990
+ "sendTransaction",
991
+ {
992
+ transaction: transaction.toXDR()
993
+ }
994
+ );
995
+ }
996
+ /**
997
+ * Fund a new account using the network's Faucet, if any.
998
+ *
999
+ * @param address - The address or account instance that we
1000
+ * want to create and fund with the Faucet
1001
+ * @param faucetUrl - (optional) Optionally, an explicit address for
1002
+ * the faucet (by default: this calls the Soroban RPC
1003
+ * {@link rpc.Server.getNetwork | getNetwork} method to try to
1004
+ * discover this network's faucet url).
1005
+ * @returns An {@link Account} object for the created
1006
+ * account, or the existing account if it's already funded with the
1007
+ * populated sequence number (note that the account will not be "topped
1008
+ * off" if it already exists)
1009
+ * @throws If the faucet is not configured on this network or request failure
1010
+ *
1011
+ * @see {@link Faucet.Api.Response}
1012
+ *
1013
+ * @deprecated Use {@link Server.fundAddress} instead, which supports both
1014
+ * account (G...) and contract (C...) addresses.
1015
+ *
1016
+ * @example
1017
+ * ```ts
1018
+ * server
1019
+ * .requestAirdrop("GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4")
1020
+ * .then((accountCreated) => {
1021
+ * console.log("accountCreated:", accountCreated);
1022
+ * }).catch((error) => {
1023
+ * console.error("error:", error);
1024
+ * });
1025
+ * ```
1026
+ */
1027
+ async requestAirdrop(address, faucetUrl) {
1028
+ const account = typeof address === "string" ? address : address.accountId();
1029
+ faucetUrl = faucetUrl || (await this.getNetwork()).friendbotUrl;
1030
+ if (!faucetUrl) {
1031
+ throw new Error("No faucet URL configured for current network");
1032
+ }
1033
+ try {
1034
+ const response = await this.httpClient.post(
1035
+ `${faucetUrl}?addr=${encodeURIComponent(account)}`
1036
+ );
1037
+ let meta;
1038
+ if (!response.data.result_meta_xdr) {
1039
+ const txMeta = await this.getTransaction(response.data.hash);
1040
+ if (txMeta.status !== Api.GetTransactionStatus.SUCCESS) {
1041
+ throw new Error(`Funding account ${address} failed`);
1042
+ }
1043
+ meta = txMeta.resultMetaXdr;
1044
+ } else {
1045
+ meta = types.TransactionMeta.fromXDR(
1046
+ response.data.result_meta_xdr,
1047
+ "base64"
1048
+ );
1049
+ }
1050
+ const sequence = findCreatedAccountSequenceInTransactionMeta(meta);
1051
+ return new Account(account, sequence);
1052
+ } catch (error) {
1053
+ if (error.response?.status === 400) {
1054
+ if (error.response.data?.detail?.includes("createAccountAlreadyExist")) {
1055
+ return this.getAccount(account);
1056
+ }
1057
+ }
1058
+ throw error;
1059
+ }
1060
+ }
1061
+ /**
1062
+ * Fund an address using the network's Faucet, if any.
1063
+ *
1064
+ * This method supports both account (G...) and contract (C...) addresses.
1065
+ *
1066
+ * @param address - The address to fund. Can be either a Stellar
1067
+ * account (G...) or contract (C...) address.
1068
+ * @param faucetUrl - (optional) Optionally, an explicit faucet URL
1069
+ * (by default: this calls the Stellar RPC
1070
+ * {@link rpc.Server.getNetwork | getNetwork} method to try to
1071
+ * discover this network's faucet url).
1072
+ * @returns The transaction
1073
+ * response from the faucet funding transaction.
1074
+ * @throws If the faucet is not configured on this network or the
1075
+ * funding transaction fails.
1076
+ *
1077
+ * @example
1078
+ * ```ts
1079
+ * // Funding an account (G... address)
1080
+ * const tx = await server.fundAddress("GBZC6Y2Y7...");
1081
+ * console.log("Funded! Hash:", tx.txHash);
1082
+ * // If you need the Account object:
1083
+ * const account = await server.getAccount("GBZC6Y2Y7...");
1084
+ * ```
1085
+ *
1086
+ * @example
1087
+ * ```ts
1088
+ * // Funding a contract (C... address)
1089
+ * const tx = await server.fundAddress("CBZC6Y2Y7...");
1090
+ * console.log("Contract funded! Hash:", tx.txHash);
1091
+ * ```
1092
+ */
1093
+ async fundAddress(address, faucetUrl) {
1094
+ if (!StrKey.isValidEd25519PublicKey(address) && !StrKey.isValidContract(address)) {
1095
+ throw new Error(
1096
+ `Invalid address: ${address}. Expected a Stellar account (G...) or contract (C...) address.`
1097
+ );
1098
+ }
1099
+ faucetUrl = faucetUrl || (await this.getNetwork()).friendbotUrl;
1100
+ if (!faucetUrl) {
1101
+ throw new Error("No faucet URL configured for current network");
1102
+ }
1103
+ try {
1104
+ const response = await this.httpClient.post(
1105
+ `${faucetUrl}?addr=${encodeURIComponent(address)}`
1106
+ );
1107
+ const txResponse = await this.getTransaction(response.data.hash);
1108
+ if (txResponse.status !== Api.GetTransactionStatus.SUCCESS) {
1109
+ throw new Error(
1110
+ `Funding address ${address} failed: transaction status ${txResponse.status}`
1111
+ );
1112
+ }
1113
+ return txResponse;
1114
+ } catch (error) {
1115
+ if (error.response?.status === 400) {
1116
+ throw new Error(error.response.data?.detail ?? "Bad Request");
1117
+ }
1118
+ throw error;
1119
+ }
1120
+ }
1121
+ /**
1122
+ * Provides an analysis of the recent fee stats for regular and smart
1123
+ * contract operations.
1124
+ *
1125
+ * @returns the fee stats
1126
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getFeeStats
1127
+ */
1128
+ async getFeeStats() {
1129
+ return postObject(
1130
+ this.httpClient,
1131
+ this.serverURL.toString(),
1132
+ "getFeeStats"
1133
+ );
1134
+ }
1135
+ /**
1136
+ * Provides information about the current version details of the Soroban RPC and captive-core
1137
+ *
1138
+ * @returns the version info
1139
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getVersionInfo
1140
+ */
1141
+ async getVersionInfo() {
1142
+ return postObject(
1143
+ this.httpClient,
1144
+ this.serverURL.toString(),
1145
+ "getVersionInfo"
1146
+ );
1147
+ }
1148
+ /**
1149
+ * Returns a contract's balance of a particular SAC asset, if any.
1150
+ *
1151
+ * This is a convenience wrapper around {@link Server.getLedgerEntries}.
1152
+ *
1153
+ * @param address - the contract (string `C...`) whose balance of
1154
+ * `sac` you want to know
1155
+ * @param sac - the built-in SAC token (e.g. `USDC:GABC...`) that
1156
+ * you are querying from the given `contract`.
1157
+ * @param networkPassphrase - (optional) optionally, the network passphrase to
1158
+ * which this token applies. If omitted, a request about network
1159
+ * information will be made (see {@link getNetwork}), since contract IDs
1160
+ * for assets are specific to a network. You can refer to {@link Networks}
1161
+ * for a list of built-in passphrases, e.g., `Networks.TESTNET`.
1162
+ *
1163
+ * @returns , which will contain the balance
1164
+ * entry details if and only if the request returned a valid balance ledger
1165
+ * entry. If it doesn't, the `balanceEntry` field will not exist.
1166
+ *
1167
+ * @throws If `address` is not a valid contract ID (C...).
1168
+ *
1169
+ * @see getLedgerEntries
1170
+ * @see https://developers.stellar.org/docs/tokens/stellar-asset-contract
1171
+ *
1172
+ * @deprecated Use {@link getAssetBalance}, instead
1173
+ * @example
1174
+ * ```ts
1175
+ * // assume `address` is some contract or account with an XLM balance
1176
+ * // assume server is an instantiated `Server` instance.
1177
+ * const entry = (await server.getSACBalance(
1178
+ * new Address(address),
1179
+ * Asset.native(),
1180
+ * Networks.PUBLIC
1181
+ * ));
1182
+ *
1183
+ * // assumes BigInt support:
1184
+ * console.log(
1185
+ * entry.balanceEntry ?
1186
+ * BigInt(entry.balanceEntry.amount) :
1187
+ * "Address has no XLM");
1188
+ * ```
1189
+ */
1190
+ async getSACBalance(address, sac, networkPassphrase) {
1191
+ const addressString = address instanceof Address ? address.toString() : address;
1192
+ if (!StrKey.isValidContract(addressString)) {
1193
+ throw new TypeError(`expected contract ID, got ${addressString}`);
1194
+ }
1195
+ const passphrase = networkPassphrase ?? await this.getNetwork().then((n) => n.passphrase);
1196
+ const sacId = sac.contractId(passphrase);
1197
+ const key = nativeToScVal(["Balance", addressString], {
1198
+ type: ["symbol", "address"]
1199
+ });
1200
+ const ledgerKey = types.LedgerKey.contractData(
1201
+ new types.LedgerKeyContractData({
1202
+ contract: new Address(sacId).toScAddress(),
1203
+ durability: types.ContractDataDurability.persistent(),
1204
+ key
1205
+ })
1206
+ );
1207
+ const response = await this.getLedgerEntries(ledgerKey);
1208
+ if (response.entries.length === 0) {
1209
+ return { latestLedger: response.latestLedger };
1210
+ }
1211
+ const { lastModifiedLedgerSeq, liveUntilLedgerSeq, val } = response.entries[0];
1212
+ if (val.switch().value !== types.LedgerEntryType.contractData().value) {
1213
+ return { latestLedger: response.latestLedger };
1214
+ }
1215
+ const entry = scValToNative(val.contractData().val());
1216
+ return {
1217
+ latestLedger: response.latestLedger,
1218
+ balanceEntry: {
1219
+ liveUntilLedgerSeq,
1220
+ lastModifiedLedgerSeq,
1221
+ amount: entry.amount.toString(),
1222
+ authorized: entry.authorized,
1223
+ clawback: entry.clawback
1224
+ }
1225
+ };
1226
+ }
1227
+ /**
1228
+ * Fetch a detailed list of ledgers starting from a specified point.
1229
+ *
1230
+ * Returns ledger data with support for pagination as long as the requested
1231
+ * pages fall within the history retention of the RPC provider.
1232
+ *
1233
+ * @param request - The request parameters for fetching ledgers. {@link Api.GetLedgersRequest}
1234
+ * @returns A promise that resolves to the
1235
+ * ledgers response containing an array of ledger data and pagination info. {@link Api.GetLedgersResponse}
1236
+ *
1237
+ * @throws If startLedger is less than the oldest ledger stored in this
1238
+ * node, or greater than the latest ledger seen by this node.
1239
+ *
1240
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgers | getLedgers docs}
1241
+ *
1242
+ * @example
1243
+ * ```ts
1244
+ * // Fetch ledgers starting from a specific sequence number
1245
+ * server.getLedgers({
1246
+ * startLedger: 36233,
1247
+ * pagination: {
1248
+ * limit: 10
1249
+ * }
1250
+ * }).then((response) => {
1251
+ * console.log("Ledgers:", response.ledgers);
1252
+ * console.log("Latest Ledger:", response.latestLedger);
1253
+ * console.log("Cursor:", response.cursor);
1254
+ * });
1255
+ * ```
1256
+ *
1257
+ * @example
1258
+ * ```ts
1259
+ * // Paginate through ledgers using cursor
1260
+ * const firstPage = await server.getLedgers({
1261
+ * startLedger: 36233,
1262
+ * pagination: {
1263
+ * limit: 5
1264
+ * }
1265
+ * });
1266
+ *
1267
+ * const nextPage = await server.getLedgers({
1268
+ * pagination: {
1269
+ * cursor: firstPage.cursor,
1270
+ * limit: 5
1271
+ * }
1272
+ * });
1273
+ * ```
1274
+ */
1275
+ async getLedgers(request) {
1276
+ return this._getLedgers(request).then((raw) => {
1277
+ const result = {
1278
+ ledgers: (raw.ledgers || []).map(parseRawLedger),
1279
+ latestLedger: raw.latestLedger,
1280
+ latestLedgerCloseTime: raw.latestLedgerCloseTime,
1281
+ oldestLedger: raw.oldestLedger,
1282
+ oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
1283
+ cursor: raw.cursor
1284
+ };
1285
+ return result;
1286
+ });
1287
+ }
1288
+ async _getLedgers(request) {
1289
+ return postObject(
1290
+ this.httpClient,
1291
+ this.serverURL.toString(),
1292
+ "getLedgers",
1293
+ request
1294
+ );
1295
+ }
1296
+ }
1297
+
1298
+ export { BasicSleepStrategy, Durability, LinearSleepStrategy, RpcServer };
1299
+ //# sourceMappingURL=server.js.map