@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,1304 @@
1
+ 'use strict';
2
+
3
+ var buffer = require('buffer');
4
+ require('../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/int.js');
5
+ require('../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/hyper.js');
6
+ require('../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-int.js');
7
+ require('../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/unsigned-hyper.js');
8
+ require('../node_modules/.pnpm/@stellar_js-xdr@4.0.0/node_modules/@stellar/js-xdr/src/xdr-type.js');
9
+ var curr_generated = require('../base/generated/curr_generated.js');
10
+ require('@noble/hashes/sha2.js');
11
+ require('../base/signing.js');
12
+ var keypair = require('../base/keypair.js');
13
+ var strkey = require('../base/strkey.js');
14
+ require('../base/util/continued_fraction.js');
15
+ require('../base/util/bignumber.js');
16
+ var address = require('../base/address.js');
17
+ require('../base/transaction_builder.js');
18
+ var account = require('../base/account.js');
19
+ require('../base/muxed_account.js');
20
+ var contract = require('../base/contract.js');
21
+ var scval = require('../base/scval.js');
22
+ require('../base/numbers/uint128.js');
23
+ require('../base/numbers/uint256.js');
24
+ require('../base/numbers/int128.js');
25
+ require('../base/numbers/int256.js');
26
+ var axios = require('./axios.js');
27
+ var jsonrpc = require('./jsonrpc.js');
28
+ var api = require('./api.js');
29
+ var transaction = require('./transaction.js');
30
+ var parsers = require('./parsers.js');
31
+ var utils = require('../utils.js');
32
+
33
+ var Durability = /* @__PURE__ */ ((Durability2) => {
34
+ Durability2["Temporary"] = "temporary";
35
+ Durability2["Persistent"] = "persistent";
36
+ return Durability2;
37
+ })(Durability || {});
38
+ const DEFAULT_GET_TRANSACTION_TIMEOUT = 30;
39
+ const BasicSleepStrategy = (_iter) => 1e3;
40
+ const LinearSleepStrategy = (iter) => 1e3 * iter;
41
+ function findCreatedAccountSequenceInTransactionMeta(meta) {
42
+ let operations = [];
43
+ switch (meta.switch()) {
44
+ case 0:
45
+ operations = meta.operations();
46
+ break;
47
+ case 1:
48
+ case 2:
49
+ case 3:
50
+ case 4:
51
+ operations = meta.value().operations();
52
+ break;
53
+ default:
54
+ throw new Error("Unexpected transaction meta switch value");
55
+ }
56
+ const sequenceNumber = operations.flatMap((op) => op.changes()).find(
57
+ (c) => c.switch() === curr_generated.default.LedgerEntryChangeType.ledgerEntryCreated() && c.created().data().switch() === curr_generated.default.LedgerEntryType.account()
58
+ )?.created()?.data()?.account()?.seqNum()?.toString();
59
+ if (sequenceNumber) {
60
+ return sequenceNumber;
61
+ }
62
+ throw new Error("No account created in transaction");
63
+ }
64
+ class RpcServer {
65
+ serverURL;
66
+ /**
67
+ * HTTP client instance for making requests to Horizon.
68
+ * Exposes interceptors, defaults, and other configuration options.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * // Add authentication header
73
+ * server.httpClient.defaults.headers['Authorization'] = 'Bearer token';
74
+ *
75
+ * // Add request interceptor
76
+ * server.httpClient.interceptors.request.use((config) => {
77
+ * console.log('Request:', config.url);
78
+ * return config;
79
+ * });
80
+ * ```
81
+ */
82
+ httpClient;
83
+ constructor(serverURL, opts = {}) {
84
+ this.serverURL = new URL(serverURL);
85
+ this.httpClient = axios.createHttpClient(opts.headers);
86
+ if (this.serverURL.protocol !== "https:" && !opts.allowHttp) {
87
+ throw new Error(
88
+ "Cannot connect to insecure Soroban RPC server if `allowHttp` isn't set"
89
+ );
90
+ }
91
+ }
92
+ /**
93
+ * Fetch a minimal set of current info about a Stellar account.
94
+ *
95
+ * Needed to get the current sequence number for the account so you can build
96
+ * a successful transaction with {@link TransactionBuilder}.
97
+ *
98
+ * @param address - The public address of the account to load.
99
+ * @returns A promise which resolves to the {@link Account}
100
+ * object with a populated sequence number
101
+ *
102
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
107
+ * server.getAccount(accountId).then((account) => {
108
+ * console.log("sequence:", account.sequence);
109
+ * });
110
+ * ```
111
+ */
112
+ async getAccount(address) {
113
+ const entry = await this.getAccountEntry(address);
114
+ return new account.Account(address, entry.seqNum().toString());
115
+ }
116
+ /**
117
+ * Fetch the full account entry for a Stellar account.
118
+ *
119
+ * @param address - The public address of the account to load.
120
+ * @returns Resolves to the full on-chain account
121
+ * entry
122
+ *
123
+ * @see
124
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
125
+ *
126
+ * @example
127
+ * ```ts
128
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
129
+ * server.getAccountEntry(accountId).then((account) => {
130
+ * console.log("sequence:", account.balance().toString());
131
+ * });
132
+ * ```
133
+ */
134
+ async getAccountEntry(address) {
135
+ const ledgerKey = curr_generated.default.LedgerKey.account(
136
+ new curr_generated.default.LedgerKeyAccount({
137
+ accountId: keypair.Keypair.fromPublicKey(address).xdrPublicKey()
138
+ })
139
+ );
140
+ try {
141
+ const resp = await this.getLedgerEntry(ledgerKey);
142
+ return resp.val.account();
143
+ } catch {
144
+ throw new Error(`Account not found: ${address}`);
145
+ }
146
+ }
147
+ /**
148
+ * Fetch the full trustline entry for a Stellar account.
149
+ *
150
+ * @param account - The public address of the account whose trustline it is
151
+ * @param asset - The trustline's asset
152
+ * @returns Resolves to the full on-chain trustline
153
+ * entry
154
+ *
155
+ * @see
156
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
157
+ *
158
+ * @deprecated Use {@link getAssetBalance}, instead
159
+ * @example
160
+ * ```ts
161
+ * const accountId = "GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4";
162
+ * const asset = new Asset(
163
+ * "USDC",
164
+ * "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5"
165
+ * );
166
+ * server.getTrustline(accountId, asset).then((entry) => {
167
+ * console.log(`{asset.toString()} balance for ${accountId}:", entry.balance().toString());
168
+ * });
169
+ * ```
170
+ */
171
+ async getTrustline(account, asset) {
172
+ const trustlineLedgerKey = curr_generated.default.LedgerKey.trustline(
173
+ new curr_generated.default.LedgerKeyTrustLine({
174
+ accountId: keypair.Keypair.fromPublicKey(account).xdrAccountId(),
175
+ asset: asset.toTrustLineXDRObject()
176
+ })
177
+ );
178
+ try {
179
+ const entry = await this.getLedgerEntry(trustlineLedgerKey);
180
+ return entry.val.trustLine();
181
+ } catch {
182
+ throw new Error(
183
+ `Trustline for ${asset.getCode()}:${asset.getIssuer()} not found for ${account}`
184
+ );
185
+ }
186
+ }
187
+ /**
188
+ * Fetch the full claimable balance entry for a Stellar account.
189
+ *
190
+ * @param id - The strkey (`B...`) or hex (`00000000abcde...`) (both
191
+ * IDs with and without the 000... version prefix are accepted) of the
192
+ * claimable balance to load
193
+ * @returns Resolves to the full on-chain
194
+ * claimable balance entry
195
+ *
196
+ * @see
197
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
198
+ *
199
+ * @example
200
+ * ```ts
201
+ * const id = "00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9";
202
+ * server.getClaimableBalance(id).then((entry) => {
203
+ * console.log(`Claimable balance {id.substr(0, 12)} has:`);
204
+ * console.log(` asset: ${Asset.fromXDRObject(entry.asset()).toString()}`;
205
+ * console.log(` amount: ${entry.amount().toString()}`;
206
+ * });
207
+ * ```
208
+ */
209
+ async getClaimableBalance(id) {
210
+ let balanceId;
211
+ if (strkey.StrKey.isValidClaimableBalance(id)) {
212
+ const buffer$1 = strkey.StrKey.decodeClaimableBalance(id);
213
+ const v = buffer.Buffer.concat([
214
+ buffer.Buffer.from("\0\0\0"),
215
+ buffer$1.subarray(0, 1)
216
+ ]);
217
+ balanceId = curr_generated.default.ClaimableBalanceId.fromXDR(
218
+ buffer.Buffer.concat([v, buffer$1.subarray(1)])
219
+ );
220
+ } else if (id.match(/[a-f0-9]{72}/i)) {
221
+ balanceId = curr_generated.default.ClaimableBalanceId.fromXDR(id, "hex");
222
+ } else if (id.match(/[a-f0-9]{64}/i)) {
223
+ balanceId = curr_generated.default.ClaimableBalanceId.fromXDR(id.padStart(72, "0"), "hex");
224
+ } else {
225
+ throw new TypeError(`expected 72-char hex ID or strkey, not ${id}`);
226
+ }
227
+ const trustlineLedgerKey = curr_generated.default.LedgerKey.claimableBalance(
228
+ new curr_generated.default.LedgerKeyClaimableBalance({ balanceId })
229
+ );
230
+ try {
231
+ const entry = await this.getLedgerEntry(trustlineLedgerKey);
232
+ return entry.val.claimableBalance();
233
+ } catch {
234
+ throw new Error(`Claimable balance ${id} not found`);
235
+ }
236
+ }
237
+ /**
238
+ * Fetch the balance of an asset held by an account or contract.
239
+ *
240
+ * The `address` argument may be provided as a string (as a {@link StrKey}),
241
+ * {@link Address}, or {@link Contract}.
242
+ *
243
+ * @param address - The account or contract whose
244
+ * balance should be fetched.
245
+ * @param asset - The asset whose balance you want to inspect.
246
+ * @param networkPassphrase - (optional) optionally, when requesting the
247
+ * balance of a contract, the network passphrase to which this token
248
+ * applies. If omitted and necessary, a request about network information
249
+ * will be made (see {@link getNetwork}), since contract IDs for assets are
250
+ * specific to a network. You can refer to {@link Networks} for a list of
251
+ * built-in passphrases, e.g., `Networks.TESTNET`.
252
+ * @returns Resolves with balance entry details
253
+ * when available.
254
+ *
255
+ * @throws If the supplied `address` is not a valid account or
256
+ * contract strkey.
257
+ *
258
+ * @example
259
+ * ```ts
260
+ * const usdc = new Asset(
261
+ * "USDC",
262
+ * "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5"
263
+ * );
264
+ * const balance = await server.getAssetBalance("GD...", usdc);
265
+ * console.log(balance.balanceEntry?.amount);
266
+ * ```
267
+ */
268
+ async getAssetBalance(address$1, asset, networkPassphrase) {
269
+ let addr = address$1;
270
+ if (typeof address$1 === "string") {
271
+ addr = address$1;
272
+ } else if (address$1 instanceof address.Address) {
273
+ addr = address$1.toString();
274
+ } else if (address$1 instanceof contract.Contract) {
275
+ addr = address$1.toString();
276
+ } else {
277
+ throw new TypeError(`invalid address: ${address$1}`);
278
+ }
279
+ if (strkey.StrKey.isValidEd25519PublicKey(addr)) {
280
+ const [tl, ll] = await Promise.all([
281
+ this.getTrustline(addr, asset),
282
+ this.getLatestLedger()
283
+ ]);
284
+ return {
285
+ latestLedger: ll.sequence,
286
+ balanceEntry: {
287
+ amount: tl.balance().toString(),
288
+ // Extract actual flags from the coalesced value.
289
+ authorized: Boolean(tl.flags() & 1),
290
+ // AUTHORIZED_FLAG
291
+ clawback: Boolean(tl.flags() & 4),
292
+ // TRUSTLINE_CLAWBACK_ENABLED_FLAG
293
+ authorizedToMaintainLiabilities: Boolean(tl.flags() & 2),
294
+ // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
295
+ revocable: Boolean(tl.flags() & 2)
296
+ // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG (deprecated, will be removed in a future major release)
297
+ }
298
+ };
299
+ } else if (strkey.StrKey.isValidContract(addr)) {
300
+ return this.getSACBalance(addr, asset, networkPassphrase);
301
+ }
302
+ throw new Error(`invalid address: ${address$1}`);
303
+ }
304
+ /**
305
+ * General node health check.
306
+ *
307
+ * @returns A promise which resolves to the
308
+ * {@link Api.GetHealthResponse} object with the status of the
309
+ * server (e.g. "healthy").
310
+ *
311
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getHealth | getLedgerEntries docs}
312
+ *
313
+ * @example
314
+ * ```ts
315
+ * server.getHealth().then((health) => {
316
+ * console.log("status:", health.status);
317
+ * });
318
+ * ```
319
+ */
320
+ async getHealth() {
321
+ return jsonrpc.postObject(
322
+ this.httpClient,
323
+ this.serverURL.toString(),
324
+ "getHealth"
325
+ );
326
+ }
327
+ /**
328
+ * Reads the current value of contract data ledger entries directly.
329
+ *
330
+ * Allows you to directly inspect the current state of a contract. This is a
331
+ * backup way to access your contract data which may not be available via
332
+ * events or {@link rpc.Server.simulateTransaction}.
333
+ *
334
+ * @param contract - The contract ID containing the
335
+ * data to load as a strkey (`C...` form), a {@link Contract}, or an
336
+ * {@link Address} instance
337
+ * @param key - The key of the contract data to load
338
+ * @param durability - (optional) The "durability
339
+ * keyspace" that this ledger key belongs to, which is either 'temporary'
340
+ * or 'persistent' (the default), see {@link rpc.Durability}.
341
+ * @returns The current data value
342
+ *
343
+ * **Warning:** If the data entry in question is a 'temporary' entry, it's
344
+ * entirely possible that it has expired out of existence.
345
+ *
346
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
347
+ *
348
+ * @example
349
+ * ```ts
350
+ * const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
351
+ * const key = xdr.ScVal.scvSymbol("counter");
352
+ * server.getContractData(contractId, key, Durability.Temporary).then(data => {
353
+ * console.log("value:", data.val);
354
+ * console.log("liveUntilLedgerSeq:", data.liveUntilLedgerSeq);
355
+ * console.log("lastModified:", data.lastModifiedLedgerSeq);
356
+ * console.log("latestLedger:", data.latestLedger);
357
+ * });
358
+ * ```
359
+ */
360
+ async getContractData(contract$1, key, durability = "persistent" /* Persistent */) {
361
+ let scAddress;
362
+ if (typeof contract$1 === "string") {
363
+ scAddress = new contract.Contract(contract$1).address().toScAddress();
364
+ } else if (contract$1 instanceof address.Address) {
365
+ scAddress = contract$1.toScAddress();
366
+ } else if (contract$1 instanceof contract.Contract) {
367
+ scAddress = contract$1.address().toScAddress();
368
+ } else {
369
+ throw new TypeError(`unknown contract type: ${contract$1}`);
370
+ }
371
+ let xdrDurability;
372
+ switch (durability) {
373
+ case "temporary" /* Temporary */:
374
+ xdrDurability = curr_generated.default.ContractDataDurability.temporary();
375
+ break;
376
+ case "persistent" /* Persistent */:
377
+ xdrDurability = curr_generated.default.ContractDataDurability.persistent();
378
+ break;
379
+ default:
380
+ throw new TypeError(`invalid durability: ${durability}`);
381
+ }
382
+ const contractKey = curr_generated.default.LedgerKey.contractData(
383
+ new curr_generated.default.LedgerKeyContractData({
384
+ key,
385
+ contract: scAddress,
386
+ durability: xdrDurability
387
+ })
388
+ );
389
+ try {
390
+ return await this.getLedgerEntry(contractKey);
391
+ } catch {
392
+ throw {
393
+ code: 404,
394
+ message: `Contract data not found for ${address.Address.fromScAddress(
395
+ scAddress
396
+ ).toString()} with key ${key.toXDR("base64")} and durability: ${durability}`
397
+ };
398
+ }
399
+ }
400
+ /**
401
+ * Retrieves the WASM bytecode for a given contract.
402
+ *
403
+ * This method allows you to fetch the WASM bytecode associated with a contract
404
+ * deployed on the Soroban network. The WASM bytecode represents the executable
405
+ * code of the contract.
406
+ *
407
+ * @param contractId - The contract ID containing the WASM bytecode to retrieve
408
+ * @returns A Buffer containing the WASM bytecode
409
+ * @throws If the contract or its associated WASM bytecode cannot be
410
+ * found on the network.
411
+ *
412
+ * @example
413
+ * ```ts
414
+ * const contractId = "CCJZ5DGASBWQXR5MPFCJXMBI333XE5U3FSJTNQU7RIKE3P5GN2K2WYD5";
415
+ * server.getContractWasmByContractId(contractId).then(wasmBuffer => {
416
+ * console.log("WASM bytecode length:", wasmBuffer.length);
417
+ * // ... do something with the WASM bytecode ...
418
+ * }).catch(err => {
419
+ * console.error("Error fetching WASM bytecode:", err);
420
+ * });
421
+ * ```
422
+ */
423
+ async getContractWasmByContractId(contractId) {
424
+ const contractLedgerKey = new contract.Contract(contractId).getFootprint();
425
+ const response = await this.getLedgerEntries(contractLedgerKey);
426
+ if (!response.entries.length || !response.entries[0]?.val) {
427
+ return Promise.reject({
428
+ code: 404,
429
+ message: `Could not obtain contract hash from server`
430
+ });
431
+ }
432
+ const wasmHash = response.entries[0].val.contractData().val().instance().executable().wasmHash();
433
+ return this.getContractWasmByHash(wasmHash);
434
+ }
435
+ /**
436
+ * Retrieves the WASM bytecode for a given contract hash.
437
+ *
438
+ * This method allows you to fetch the WASM bytecode associated with a contract
439
+ * deployed on the Soroban network using the contract's WASM hash. The WASM bytecode
440
+ * represents the executable code of the contract.
441
+ *
442
+ * @param wasmHash - The WASM hash of the contract
443
+ * @returns A Buffer containing the WASM bytecode
444
+ * @throws If the contract or its associated WASM bytecode cannot be
445
+ * found on the network.
446
+ *
447
+ * @example
448
+ * ```ts
449
+ * const wasmHash = Buffer.from("...");
450
+ * server.getContractWasmByHash(wasmHash).then(wasmBuffer => {
451
+ * console.log("WASM bytecode length:", wasmBuffer.length);
452
+ * // ... do something with the WASM bytecode ...
453
+ * }).catch(err => {
454
+ * console.error("Error fetching WASM bytecode:", err);
455
+ * });
456
+ * ```
457
+ */
458
+ async getContractWasmByHash(wasmHash, format = void 0) {
459
+ const wasmHashBuffer = typeof wasmHash === "string" ? buffer.Buffer.from(wasmHash, format) : wasmHash;
460
+ const ledgerKeyWasmHash = curr_generated.default.LedgerKey.contractCode(
461
+ new curr_generated.default.LedgerKeyContractCode({
462
+ hash: wasmHashBuffer
463
+ })
464
+ );
465
+ const responseWasm = await this.getLedgerEntries(ledgerKeyWasmHash);
466
+ if (!responseWasm.entries.length || !responseWasm.entries[0]?.val) {
467
+ return Promise.reject({
468
+ code: 404,
469
+ message: "Could not obtain contract wasm from server"
470
+ });
471
+ }
472
+ const wasmBuffer = responseWasm.entries[0].val.contractCode().code();
473
+ return wasmBuffer;
474
+ }
475
+ /**
476
+ * Reads the current value of arbitrary ledger entries directly.
477
+ *
478
+ * Allows you to directly inspect the current state of contracts, contract's
479
+ * code, accounts, or any other ledger entries.
480
+ *
481
+ * To fetch a contract's WASM byte-code, built the appropriate
482
+ * {@link xdr.LedgerKeyContractCode} ledger entry key (or see
483
+ * {@link Contract.getFootprint}).
484
+ *
485
+ * @param keys - One or more ledger entry keys to load
486
+ * @returns The current on-chain
487
+ * values for the given ledger keys
488
+ *
489
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgerEntries | getLedgerEntries docs}
490
+ * @see RpcServer._getLedgerEntries
491
+ * @example
492
+ * ```ts
493
+ * const contractId = "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM";
494
+ * const key = xdr.LedgerKey.contractData(new xdr.LedgerKeyContractData({
495
+ * contractId: StrKey.decodeContract(contractId),
496
+ * key: xdr.ScVal.scvSymbol("counter"),
497
+ * }));
498
+ *
499
+ * server.getLedgerEntries([key]).then(response => {
500
+ * const ledgerData = response.entries[0];
501
+ * console.log("key:", ledgerData.key);
502
+ * console.log("value:", ledgerData.val);
503
+ * console.log("liveUntilLedgerSeq:", ledgerData.liveUntilLedgerSeq);
504
+ * console.log("lastModified:", ledgerData.lastModifiedLedgerSeq);
505
+ * console.log("latestLedger:", response.latestLedger);
506
+ * });
507
+ * ```
508
+ */
509
+ getLedgerEntries(...keys) {
510
+ return this._getLedgerEntries(...keys).then(parsers.parseRawLedgerEntries);
511
+ }
512
+ _getLedgerEntries(...keys) {
513
+ return jsonrpc.postObject(
514
+ this.httpClient,
515
+ this.serverURL.toString(),
516
+ "getLedgerEntries",
517
+ {
518
+ keys: keys.map((k) => k.toXDR("base64"))
519
+ }
520
+ );
521
+ }
522
+ async getLedgerEntry(key) {
523
+ const results = await this._getLedgerEntries(key).then(
524
+ parsers.parseRawLedgerEntries
525
+ );
526
+ if (results.entries.length !== 1) {
527
+ throw new Error(`failed to find an entry for key ${key.toXDR("base64")}`);
528
+ }
529
+ return results.entries[0];
530
+ }
531
+ /**
532
+ * Poll for a particular transaction with certain parameters.
533
+ *
534
+ * After submitting a transaction, clients can use this to poll for
535
+ * transaction completion and return a definitive state of success or failure.
536
+ *
537
+ * @param hash - the transaction you're polling for
538
+ * @param opts - (optional) polling options
539
+ * - `attempts` (optional): (optional) the number of attempts to make
540
+ * before returning the last-seen status. By default or on invalid inputs,
541
+ * try 5 times.
542
+ * - `sleepStrategy` (optional): (optional) the amount of time
543
+ * to wait for between each attempt. By default, sleep for 1 second between
544
+ * each attempt.
545
+ *
546
+ * @returns the response after a "found"
547
+ * response (which may be success or failure) or the last response obtained
548
+ * after polling the maximum number of specified attempts.
549
+ *
550
+ * @example
551
+ * ```ts
552
+ * const h = "c4515e3bdc0897f21cc5dbec8c82cf0a936d4741cb74a8e158eb51b9fb00411a";
553
+ * const txStatus = await server.pollTransaction(h, {
554
+ * attempts: 100, // I'm a maniac
555
+ * sleepStrategy: rpc.LinearSleepStrategy
556
+ * }); // this will take 5,050 seconds to complete
557
+ * ```
558
+ */
559
+ async pollTransaction(hash, opts) {
560
+ const maxAttempts = (opts?.attempts ?? 0) < 1 ? DEFAULT_GET_TRANSACTION_TIMEOUT : opts?.attempts ?? DEFAULT_GET_TRANSACTION_TIMEOUT;
561
+ let foundInfo;
562
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
563
+ foundInfo = await this.getTransaction(hash);
564
+ if (foundInfo.status !== api.Api.GetTransactionStatus.NOT_FOUND) {
565
+ return foundInfo;
566
+ }
567
+ await utils.Utils.sleep((opts?.sleepStrategy ?? BasicSleepStrategy)(attempt));
568
+ }
569
+ return foundInfo;
570
+ }
571
+ /**
572
+ * Fetch the details of a submitted transaction.
573
+ *
574
+ * After submitting a transaction, clients should poll this to tell when the
575
+ * transaction has completed.
576
+ *
577
+ * @param hash - Hex-encoded hash of the transaction to check
578
+ * @returns The status, result, and
579
+ * other details about the transaction
580
+ *
581
+ * @see
582
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction | getTransaction docs}
583
+ *
584
+ * @example
585
+ * ```ts
586
+ * const transactionHash = "c4515e3bdc0897f21cc5dbec8c82cf0a936d4741cb74a8e158eb51b9fb00411a";
587
+ * server.getTransaction(transactionHash).then((tx) => {
588
+ * console.log("status:", tx.status);
589
+ * console.log("envelopeXdr:", tx.envelopeXdr);
590
+ * console.log("resultMetaXdr:", tx.resultMetaXdr);
591
+ * console.log("resultXdr:", tx.resultXdr);
592
+ * });
593
+ * ```
594
+ */
595
+ async getTransaction(hash) {
596
+ return this._getTransaction(hash).then((raw) => {
597
+ const foundInfo = {};
598
+ if (raw.status !== api.Api.GetTransactionStatus.NOT_FOUND) {
599
+ Object.assign(foundInfo, parsers.parseTransactionInfo(raw));
600
+ }
601
+ const result = {
602
+ status: raw.status,
603
+ txHash: hash,
604
+ latestLedger: raw.latestLedger,
605
+ latestLedgerCloseTime: raw.latestLedgerCloseTime,
606
+ oldestLedger: raw.oldestLedger,
607
+ oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
608
+ ...foundInfo
609
+ };
610
+ return result;
611
+ });
612
+ }
613
+ async _getTransaction(hash) {
614
+ return jsonrpc.postObject(
615
+ this.httpClient,
616
+ this.serverURL.toString(),
617
+ "getTransaction",
618
+ {
619
+ hash
620
+ }
621
+ );
622
+ }
623
+ /**
624
+ * Fetch transactions starting from a given start ledger or a cursor. The end ledger is the latest ledger
625
+ * in that RPC instance.
626
+ *
627
+ * @param request - The request parameters.
628
+ * @returns - A promise that resolves to the transactions response.
629
+ *
630
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransactions
631
+ * @example
632
+ * ```ts
633
+ * server.getTransactions({
634
+ * startLedger: 10000,
635
+ * limit: 10,
636
+ * }).then((response) => {
637
+ * console.log("Transactions:", response.transactions);
638
+ * console.log("Latest Ledger:", response.latestLedger);
639
+ * console.log("Cursor:", response.cursor);
640
+ * });
641
+ * ```
642
+ */
643
+ async getTransactions(request) {
644
+ return this._getTransactions(request).then(
645
+ (raw) => {
646
+ const result = {
647
+ transactions: (raw.transactions || []).map(parsers.parseRawTransactions),
648
+ latestLedger: raw.latestLedger,
649
+ latestLedgerCloseTimestamp: raw.latestLedgerCloseTimestamp,
650
+ oldestLedger: raw.oldestLedger,
651
+ oldestLedgerCloseTimestamp: raw.oldestLedgerCloseTimestamp,
652
+ cursor: raw.cursor
653
+ };
654
+ return result;
655
+ }
656
+ );
657
+ }
658
+ async _getTransactions(request) {
659
+ return jsonrpc.postObject(
660
+ this.httpClient,
661
+ this.serverURL.toString(),
662
+ "getTransactions",
663
+ request
664
+ );
665
+ }
666
+ /**
667
+ * Fetch all events that match a given set of filters.
668
+ *
669
+ * The given filters (see {@link Api.EventFilter}
670
+ * for detailed fields) are combined only in a logical OR fashion, and all of
671
+ * the fields in each filter are optional.
672
+ *
673
+ * To page through events, use the `pagingToken` field on the relevant
674
+ * {@link Api.EventResponse} object to set the `cursor` parameter.
675
+ *
676
+ * @param request - Event filters {@link Api.GetEventsRequest},
677
+ * @returns A paginatable set of the events
678
+ * matching the given event filters
679
+ *
680
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getEvents | getEvents docs}
681
+ *
682
+ * @example
683
+ * ```ts
684
+ *
685
+ * server.getEvents({
686
+ * startLedger: 1000,
687
+ * endLedger: 2000,
688
+ * filters: [
689
+ * {
690
+ * type: "contract",
691
+ * contractIds: [ "deadb33f..." ],
692
+ * topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=", "*" ]]
693
+ * }, {
694
+ * type: "system",
695
+ * contractIds: [ "...c4f3b4b3..." ],
696
+ * topics: [[ "*" ], [ "*", "AAAAAQB6Mcc=" ]]
697
+ * }, {
698
+ * contractIds: [ "...c4f3b4b3..." ],
699
+ * topics: [[ "AAAABQAAAAh0cmFuc2Zlcg==" ]]
700
+ * }, {
701
+ * type: "diagnostic",
702
+ * topics: [[ "AAAAAQB6Mcc=" ]]
703
+ * }
704
+ * ],
705
+ * limit: 10,
706
+ * });
707
+ * ```
708
+ */
709
+ async getEvents(request) {
710
+ return this._getEvents(request).then(parsers.parseRawEvents);
711
+ }
712
+ async _getEvents(request) {
713
+ return jsonrpc.postObject(
714
+ this.httpClient,
715
+ this.serverURL.toString(),
716
+ "getEvents",
717
+ {
718
+ filters: request.filters ?? [],
719
+ pagination: {
720
+ ...request.cursor && { cursor: request.cursor },
721
+ // add if defined
722
+ ...request.limit && { limit: request.limit }
723
+ },
724
+ ...request.startLedger && {
725
+ startLedger: request.startLedger
726
+ },
727
+ ...request.endLedger && {
728
+ endLedger: request.endLedger
729
+ }
730
+ }
731
+ );
732
+ }
733
+ /**
734
+ * Fetch metadata about the network this Soroban RPC server is connected to.
735
+ *
736
+ * @returns Metadata about the current
737
+ * network this RPC server is connected to
738
+ *
739
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getNetwork | getNetwork docs}
740
+ *
741
+ * @example
742
+ * ```ts
743
+ * server.getNetwork().then((network) => {
744
+ * console.log("faucetUrl:", network.friendbotUrl);
745
+ * console.log("passphrase:", network.passphrase);
746
+ * console.log("protocolVersion:", network.protocolVersion);
747
+ * });
748
+ * ```
749
+ */
750
+ async getNetwork() {
751
+ return jsonrpc.postObject(
752
+ this.httpClient,
753
+ this.serverURL.toString(),
754
+ "getNetwork"
755
+ );
756
+ }
757
+ /**
758
+ * Fetch the latest ledger meta info from network which this Soroban RPC
759
+ * server is connected to.
760
+ *
761
+ * @returns metadata about the
762
+ * latest ledger on the network that this RPC server is connected to
763
+ *
764
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLatestLedger | getLatestLedger docs}
765
+ *
766
+ * @example
767
+ * ```ts
768
+ * server.getLatestLedger().then((response) => {
769
+ * console.log("hash:", response.id);
770
+ * console.log("sequence:", response.sequence);
771
+ * console.log("protocolVersion:", response.protocolVersion);
772
+ * });
773
+ * ```
774
+ */
775
+ async getLatestLedger() {
776
+ return this._getLatestLedger().then(parsers.parseRawLatestLedger);
777
+ }
778
+ async _getLatestLedger() {
779
+ return jsonrpc.postObject(
780
+ this.httpClient,
781
+ this.serverURL.toString(),
782
+ "getLatestLedger"
783
+ );
784
+ }
785
+ /**
786
+ * Submit a trial contract invocation to get back return values, expected
787
+ * ledger footprint, expected authorizations, and expected costs.
788
+ *
789
+ * @param tx - the transaction to simulate,
790
+ * which should include exactly one operation (one of
791
+ * {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTtlOp}, or
792
+ * {@link xdr.RestoreFootprintOp}). Any provided footprint or auth
793
+ * information will be ignored.
794
+ * @param addlResources - (optional) any additional resources
795
+ * to add to the simulation-provided ones, for example if you know you will
796
+ * need extra CPU instructions
797
+ * @param authMode - (optional) optionally, specify the type of
798
+ * auth mode to use for simulation: `enforce` for enforcement mode,
799
+ * `record` for recording mode, or `record_allow_nonroot` for recording
800
+ * mode that allows non-root authorization
801
+ *
802
+ * @returns An object with the
803
+ * cost, footprint, result/auth requirements (if applicable), and error of
804
+ * the transaction
805
+ *
806
+ * @see
807
+ * {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
808
+ * @see
809
+ * {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
810
+ * @see
811
+ * {@link https://developers.stellar.org/docs/learn/fundamentals/contract-development/contract-interactions/transaction-simulation#authorization | authorization modes}
812
+ * @see module:rpc.Server#prepareTransaction
813
+ * @see module:rpc.assembleTransaction
814
+ *
815
+ * @example
816
+ * ```ts
817
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
818
+ * const contract = new StellarSdk.Contract(contractId);
819
+ *
820
+ * // Right now, this is just the default fee for this example.
821
+ * const fee = StellarSdk.BASE_FEE;
822
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
823
+ * // Uncomment the following line to build transactions for the live network. Be
824
+ * // sure to also change the horizon hostname.
825
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
826
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
827
+ * .setTimeout(30) // valid for the next 30s
828
+ * // Add an operation to call increment() on the contract
829
+ * .addOperation(contract.call("increment"))
830
+ * .build();
831
+ *
832
+ * server.simulateTransaction(transaction).then((sim) => {
833
+ * console.log("cost:", sim.cost);
834
+ * console.log("result:", sim.result);
835
+ * console.log("error:", sim.error);
836
+ * console.log("latestLedger:", sim.latestLedger);
837
+ * });
838
+ * ```
839
+ */
840
+ async simulateTransaction(tx, addlResources, authMode) {
841
+ return this._simulateTransaction(tx, addlResources, authMode).then(
842
+ parsers.parseRawSimulation
843
+ );
844
+ }
845
+ async _simulateTransaction(transaction, addlResources, authMode) {
846
+ return jsonrpc.postObject(
847
+ this.httpClient,
848
+ this.serverURL.toString(),
849
+ "simulateTransaction",
850
+ {
851
+ transaction: transaction.toXDR(),
852
+ authMode,
853
+ ...addlResources !== void 0 && {
854
+ resourceConfig: {
855
+ instructionLeeway: addlResources.cpuInstructions
856
+ }
857
+ }
858
+ }
859
+ );
860
+ }
861
+ /**
862
+ * Submit a trial contract invocation, first run a simulation of the contract
863
+ * invocation as defined on the incoming transaction, and apply the results to
864
+ * a new copy of the transaction which is then returned. Setting the ledger
865
+ * footprint and authorization, so the resulting transaction is ready for
866
+ * signing & sending.
867
+ *
868
+ * The returned transaction will also have an updated fee that is the sum of
869
+ * fee set on incoming transaction with the contract resource fees estimated
870
+ * from simulation. It is advisable to check the fee on returned transaction
871
+ * and validate or take appropriate measures for interaction with user to
872
+ * confirm it is acceptable.
873
+ *
874
+ * You can call the {@link rpc.Server.simulateTransaction} method
875
+ * directly first if you want to inspect estimated fees for a given
876
+ * transaction in detail first, then re-assemble it manually or via
877
+ * {@link rpc.assembleTransaction}.
878
+ *
879
+ * @param tx - the transaction to
880
+ * prepare. It should include exactly one operation, which must be one of
881
+ * {@link xdr.InvokeHostFunctionOp}, {@link xdr.ExtendFootprintTtlOp},
882
+ * or {@link xdr.RestoreFootprintOp}.
883
+ *
884
+ * Any provided footprint will be overwritten. However, if your operation
885
+ * has existing auth entries, they will be preferred over ALL auth entries
886
+ * from the simulation. In other words, if you include auth entries, you
887
+ * don't care about the auth returned from the simulation. Other fields
888
+ * (footprint, etc.) will be filled as normal.
889
+ * @returns A copy of the
890
+ * transaction with the expected authorizations (in the case of
891
+ * invocation), resources, and ledger footprints added. The transaction fee
892
+ * will also automatically be padded with the contract's minimum resource
893
+ * fees discovered from the simulation.
894
+ * @throws * If simulation fails
895
+ *
896
+ * @see module:rpc.assembleTransaction
897
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/simulateTransaction | simulateTransaction docs}
898
+ *
899
+ * @example
900
+ * ```ts
901
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
902
+ * const contract = new StellarSdk.Contract(contractId);
903
+ *
904
+ * // Right now, this is just the default fee for this example.
905
+ * const fee = StellarSdk.BASE_FEE;
906
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
907
+ * // Uncomment the following line to build transactions for the live network. Be
908
+ * // sure to also change the horizon hostname.
909
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
910
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
911
+ * .setTimeout(30) // valid for the next 30s
912
+ * // Add an operation to call increment() on the contract
913
+ * .addOperation(contract.call("increment"))
914
+ * .build();
915
+ *
916
+ * const preparedTransaction = await server.prepareTransaction(transaction);
917
+ *
918
+ * // Sign this transaction with the secret key
919
+ * // NOTE: signing is transaction is network specific. Test network transactions
920
+ * // won't work in the public network. To switch networks, use the Network object
921
+ * // as explained above (look for StellarSdk.Network).
922
+ * const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
923
+ * preparedTransaction.sign(sourceKeypair);
924
+ *
925
+ * server.sendTransaction(transaction).then(result => {
926
+ * console.log("hash:", result.hash);
927
+ * console.log("status:", result.status);
928
+ * console.log("errorResultXdr:", result.errorResultXdr);
929
+ * });
930
+ * ```
931
+ */
932
+ async prepareTransaction(tx) {
933
+ const simResponse = await this.simulateTransaction(tx);
934
+ if (api.Api.isSimulationError(simResponse)) {
935
+ throw new Error(simResponse.error);
936
+ }
937
+ return transaction.assembleTransaction(tx, simResponse).build();
938
+ }
939
+ /**
940
+ * Submit a real transaction to the Stellar network.
941
+ *
942
+ * Unlike Horizon, RPC does not wait for transaction completion. It
943
+ * simply validates the transaction and enqueues it. Clients should call
944
+ * {@link rpc.Server.getTransaction} to learn about transaction
945
+ * success/failure.
946
+ *
947
+ * @param transaction - to submit
948
+ * @returns the
949
+ * transaction id, status, and any error if available
950
+ *
951
+ * @see {@link https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/operations-and-transactions | transaction docs}
952
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/sendTransaction | sendTransaction docs}
953
+ *
954
+ * @example
955
+ * ```ts
956
+ * const contractId = 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE';
957
+ * const contract = new StellarSdk.Contract(contractId);
958
+ *
959
+ * // Right now, this is just the default fee for this example.
960
+ * const fee = StellarSdk.BASE_FEE;
961
+ * const transaction = new StellarSdk.TransactionBuilder(account, { fee })
962
+ * // Uncomment the following line to build transactions for the live network. Be
963
+ * // sure to also change the horizon hostname.
964
+ * //.setNetworkPassphrase(StellarSdk.Networks.PUBLIC)
965
+ * .setNetworkPassphrase(StellarSdk.Networks.FUTURENET)
966
+ * .setTimeout(30) // valid for the next 30s
967
+ * // Add an operation to call increment() on the contract
968
+ * .addOperation(contract.call("increment"))
969
+ * .build();
970
+ *
971
+ * // Sign this transaction with the secret key
972
+ * // NOTE: signing is transaction is network specific. Test network transactions
973
+ * // won't work in the public network. To switch networks, use the Network object
974
+ * // as explained above (look for StellarSdk.Network).
975
+ * const sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
976
+ * transaction.sign(sourceKeypair);
977
+ *
978
+ * server.sendTransaction(transaction).then((result) => {
979
+ * console.log("hash:", result.hash);
980
+ * console.log("status:", result.status);
981
+ * console.log("errorResultXdr:", result.errorResultXdr);
982
+ * });
983
+ * ```
984
+ */
985
+ async sendTransaction(transaction) {
986
+ return this._sendTransaction(transaction).then(parsers.parseRawSendTransaction);
987
+ }
988
+ async _sendTransaction(transaction) {
989
+ return jsonrpc.postObject(
990
+ this.httpClient,
991
+ this.serverURL.toString(),
992
+ "sendTransaction",
993
+ {
994
+ transaction: transaction.toXDR()
995
+ }
996
+ );
997
+ }
998
+ /**
999
+ * Fund a new account using the network's Faucet, if any.
1000
+ *
1001
+ * @param address - The address or account instance that we
1002
+ * want to create and fund with the Faucet
1003
+ * @param faucetUrl - (optional) Optionally, an explicit address for
1004
+ * the faucet (by default: this calls the Soroban RPC
1005
+ * {@link rpc.Server.getNetwork | getNetwork} method to try to
1006
+ * discover this network's faucet url).
1007
+ * @returns An {@link Account} object for the created
1008
+ * account, or the existing account if it's already funded with the
1009
+ * populated sequence number (note that the account will not be "topped
1010
+ * off" if it already exists)
1011
+ * @throws If the faucet is not configured on this network or request failure
1012
+ *
1013
+ * @see {@link Faucet.Api.Response}
1014
+ *
1015
+ * @deprecated Use {@link Server.fundAddress} instead, which supports both
1016
+ * account (G...) and contract (C...) addresses.
1017
+ *
1018
+ * @example
1019
+ * ```ts
1020
+ * server
1021
+ * .requestAirdrop("GBZC6Y2Y7Q3ZQ2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4QZJ2XZ3Z5YXZ6Z7Z2Y4")
1022
+ * .then((accountCreated) => {
1023
+ * console.log("accountCreated:", accountCreated);
1024
+ * }).catch((error) => {
1025
+ * console.error("error:", error);
1026
+ * });
1027
+ * ```
1028
+ */
1029
+ async requestAirdrop(address, faucetUrl) {
1030
+ const account$1 = typeof address === "string" ? address : address.accountId();
1031
+ faucetUrl = faucetUrl || (await this.getNetwork()).friendbotUrl;
1032
+ if (!faucetUrl) {
1033
+ throw new Error("No faucet URL configured for current network");
1034
+ }
1035
+ try {
1036
+ const response = await this.httpClient.post(
1037
+ `${faucetUrl}?addr=${encodeURIComponent(account$1)}`
1038
+ );
1039
+ let meta;
1040
+ if (!response.data.result_meta_xdr) {
1041
+ const txMeta = await this.getTransaction(response.data.hash);
1042
+ if (txMeta.status !== api.Api.GetTransactionStatus.SUCCESS) {
1043
+ throw new Error(`Funding account ${address} failed`);
1044
+ }
1045
+ meta = txMeta.resultMetaXdr;
1046
+ } else {
1047
+ meta = curr_generated.default.TransactionMeta.fromXDR(
1048
+ response.data.result_meta_xdr,
1049
+ "base64"
1050
+ );
1051
+ }
1052
+ const sequence = findCreatedAccountSequenceInTransactionMeta(meta);
1053
+ return new account.Account(account$1, sequence);
1054
+ } catch (error) {
1055
+ if (error.response?.status === 400) {
1056
+ if (error.response.data?.detail?.includes("createAccountAlreadyExist")) {
1057
+ return this.getAccount(account$1);
1058
+ }
1059
+ }
1060
+ throw error;
1061
+ }
1062
+ }
1063
+ /**
1064
+ * Fund an address using the network's Faucet, if any.
1065
+ *
1066
+ * This method supports both account (G...) and contract (C...) addresses.
1067
+ *
1068
+ * @param address - The address to fund. Can be either a Stellar
1069
+ * account (G...) or contract (C...) address.
1070
+ * @param faucetUrl - (optional) Optionally, an explicit faucet URL
1071
+ * (by default: this calls the Stellar RPC
1072
+ * {@link rpc.Server.getNetwork | getNetwork} method to try to
1073
+ * discover this network's faucet url).
1074
+ * @returns The transaction
1075
+ * response from the faucet funding transaction.
1076
+ * @throws If the faucet is not configured on this network or the
1077
+ * funding transaction fails.
1078
+ *
1079
+ * @example
1080
+ * ```ts
1081
+ * // Funding an account (G... address)
1082
+ * const tx = await server.fundAddress("GBZC6Y2Y7...");
1083
+ * console.log("Funded! Hash:", tx.txHash);
1084
+ * // If you need the Account object:
1085
+ * const account = await server.getAccount("GBZC6Y2Y7...");
1086
+ * ```
1087
+ *
1088
+ * @example
1089
+ * ```ts
1090
+ * // Funding a contract (C... address)
1091
+ * const tx = await server.fundAddress("CBZC6Y2Y7...");
1092
+ * console.log("Contract funded! Hash:", tx.txHash);
1093
+ * ```
1094
+ */
1095
+ async fundAddress(address, faucetUrl) {
1096
+ if (!strkey.StrKey.isValidEd25519PublicKey(address) && !strkey.StrKey.isValidContract(address)) {
1097
+ throw new Error(
1098
+ `Invalid address: ${address}. Expected a Stellar account (G...) or contract (C...) address.`
1099
+ );
1100
+ }
1101
+ faucetUrl = faucetUrl || (await this.getNetwork()).friendbotUrl;
1102
+ if (!faucetUrl) {
1103
+ throw new Error("No faucet URL configured for current network");
1104
+ }
1105
+ try {
1106
+ const response = await this.httpClient.post(
1107
+ `${faucetUrl}?addr=${encodeURIComponent(address)}`
1108
+ );
1109
+ const txResponse = await this.getTransaction(response.data.hash);
1110
+ if (txResponse.status !== api.Api.GetTransactionStatus.SUCCESS) {
1111
+ throw new Error(
1112
+ `Funding address ${address} failed: transaction status ${txResponse.status}`
1113
+ );
1114
+ }
1115
+ return txResponse;
1116
+ } catch (error) {
1117
+ if (error.response?.status === 400) {
1118
+ throw new Error(error.response.data?.detail ?? "Bad Request");
1119
+ }
1120
+ throw error;
1121
+ }
1122
+ }
1123
+ /**
1124
+ * Provides an analysis of the recent fee stats for regular and smart
1125
+ * contract operations.
1126
+ *
1127
+ * @returns the fee stats
1128
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getFeeStats
1129
+ */
1130
+ async getFeeStats() {
1131
+ return jsonrpc.postObject(
1132
+ this.httpClient,
1133
+ this.serverURL.toString(),
1134
+ "getFeeStats"
1135
+ );
1136
+ }
1137
+ /**
1138
+ * Provides information about the current version details of the Soroban RPC and captive-core
1139
+ *
1140
+ * @returns the version info
1141
+ * @see https://developers.stellar.org/docs/data/rpc/api-reference/methods/getVersionInfo
1142
+ */
1143
+ async getVersionInfo() {
1144
+ return jsonrpc.postObject(
1145
+ this.httpClient,
1146
+ this.serverURL.toString(),
1147
+ "getVersionInfo"
1148
+ );
1149
+ }
1150
+ /**
1151
+ * Returns a contract's balance of a particular SAC asset, if any.
1152
+ *
1153
+ * This is a convenience wrapper around {@link Server.getLedgerEntries}.
1154
+ *
1155
+ * @param address - the contract (string `C...`) whose balance of
1156
+ * `sac` you want to know
1157
+ * @param sac - the built-in SAC token (e.g. `USDC:GABC...`) that
1158
+ * you are querying from the given `contract`.
1159
+ * @param networkPassphrase - (optional) optionally, the network passphrase to
1160
+ * which this token applies. If omitted, a request about network
1161
+ * information will be made (see {@link getNetwork}), since contract IDs
1162
+ * for assets are specific to a network. You can refer to {@link Networks}
1163
+ * for a list of built-in passphrases, e.g., `Networks.TESTNET`.
1164
+ *
1165
+ * @returns , which will contain the balance
1166
+ * entry details if and only if the request returned a valid balance ledger
1167
+ * entry. If it doesn't, the `balanceEntry` field will not exist.
1168
+ *
1169
+ * @throws If `address` is not a valid contract ID (C...).
1170
+ *
1171
+ * @see getLedgerEntries
1172
+ * @see https://developers.stellar.org/docs/tokens/stellar-asset-contract
1173
+ *
1174
+ * @deprecated Use {@link getAssetBalance}, instead
1175
+ * @example
1176
+ * ```ts
1177
+ * // assume `address` is some contract or account with an XLM balance
1178
+ * // assume server is an instantiated `Server` instance.
1179
+ * const entry = (await server.getSACBalance(
1180
+ * new Address(address),
1181
+ * Asset.native(),
1182
+ * Networks.PUBLIC
1183
+ * ));
1184
+ *
1185
+ * // assumes BigInt support:
1186
+ * console.log(
1187
+ * entry.balanceEntry ?
1188
+ * BigInt(entry.balanceEntry.amount) :
1189
+ * "Address has no XLM");
1190
+ * ```
1191
+ */
1192
+ async getSACBalance(address$1, sac, networkPassphrase) {
1193
+ const addressString = address$1 instanceof address.Address ? address$1.toString() : address$1;
1194
+ if (!strkey.StrKey.isValidContract(addressString)) {
1195
+ throw new TypeError(`expected contract ID, got ${addressString}`);
1196
+ }
1197
+ const passphrase = networkPassphrase ?? await this.getNetwork().then((n) => n.passphrase);
1198
+ const sacId = sac.contractId(passphrase);
1199
+ const key = scval.nativeToScVal(["Balance", addressString], {
1200
+ type: ["symbol", "address"]
1201
+ });
1202
+ const ledgerKey = curr_generated.default.LedgerKey.contractData(
1203
+ new curr_generated.default.LedgerKeyContractData({
1204
+ contract: new address.Address(sacId).toScAddress(),
1205
+ durability: curr_generated.default.ContractDataDurability.persistent(),
1206
+ key
1207
+ })
1208
+ );
1209
+ const response = await this.getLedgerEntries(ledgerKey);
1210
+ if (response.entries.length === 0) {
1211
+ return { latestLedger: response.latestLedger };
1212
+ }
1213
+ const { lastModifiedLedgerSeq, liveUntilLedgerSeq, val } = response.entries[0];
1214
+ if (val.switch().value !== curr_generated.default.LedgerEntryType.contractData().value) {
1215
+ return { latestLedger: response.latestLedger };
1216
+ }
1217
+ const entry = scval.scValToNative(val.contractData().val());
1218
+ return {
1219
+ latestLedger: response.latestLedger,
1220
+ balanceEntry: {
1221
+ liveUntilLedgerSeq,
1222
+ lastModifiedLedgerSeq,
1223
+ amount: entry.amount.toString(),
1224
+ authorized: entry.authorized,
1225
+ clawback: entry.clawback
1226
+ }
1227
+ };
1228
+ }
1229
+ /**
1230
+ * Fetch a detailed list of ledgers starting from a specified point.
1231
+ *
1232
+ * Returns ledger data with support for pagination as long as the requested
1233
+ * pages fall within the history retention of the RPC provider.
1234
+ *
1235
+ * @param request - The request parameters for fetching ledgers. {@link Api.GetLedgersRequest}
1236
+ * @returns A promise that resolves to the
1237
+ * ledgers response containing an array of ledger data and pagination info. {@link Api.GetLedgersResponse}
1238
+ *
1239
+ * @throws If startLedger is less than the oldest ledger stored in this
1240
+ * node, or greater than the latest ledger seen by this node.
1241
+ *
1242
+ * @see {@link https://developers.stellar.org/docs/data/rpc/api-reference/methods/getLedgers | getLedgers docs}
1243
+ *
1244
+ * @example
1245
+ * ```ts
1246
+ * // Fetch ledgers starting from a specific sequence number
1247
+ * server.getLedgers({
1248
+ * startLedger: 36233,
1249
+ * pagination: {
1250
+ * limit: 10
1251
+ * }
1252
+ * }).then((response) => {
1253
+ * console.log("Ledgers:", response.ledgers);
1254
+ * console.log("Latest Ledger:", response.latestLedger);
1255
+ * console.log("Cursor:", response.cursor);
1256
+ * });
1257
+ * ```
1258
+ *
1259
+ * @example
1260
+ * ```ts
1261
+ * // Paginate through ledgers using cursor
1262
+ * const firstPage = await server.getLedgers({
1263
+ * startLedger: 36233,
1264
+ * pagination: {
1265
+ * limit: 5
1266
+ * }
1267
+ * });
1268
+ *
1269
+ * const nextPage = await server.getLedgers({
1270
+ * pagination: {
1271
+ * cursor: firstPage.cursor,
1272
+ * limit: 5
1273
+ * }
1274
+ * });
1275
+ * ```
1276
+ */
1277
+ async getLedgers(request) {
1278
+ return this._getLedgers(request).then((raw) => {
1279
+ const result = {
1280
+ ledgers: (raw.ledgers || []).map(parsers.parseRawLedger),
1281
+ latestLedger: raw.latestLedger,
1282
+ latestLedgerCloseTime: raw.latestLedgerCloseTime,
1283
+ oldestLedger: raw.oldestLedger,
1284
+ oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
1285
+ cursor: raw.cursor
1286
+ };
1287
+ return result;
1288
+ });
1289
+ }
1290
+ async _getLedgers(request) {
1291
+ return jsonrpc.postObject(
1292
+ this.httpClient,
1293
+ this.serverURL.toString(),
1294
+ "getLedgers",
1295
+ request
1296
+ );
1297
+ }
1298
+ }
1299
+
1300
+ exports.BasicSleepStrategy = BasicSleepStrategy;
1301
+ exports.Durability = Durability;
1302
+ exports.LinearSleepStrategy = LinearSleepStrategy;
1303
+ exports.RpcServer = RpcServer;
1304
+ //# sourceMappingURL=server.js.map