@stellar/stellar-sdk 11.2.2 → 11.3.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 (60) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/stellar-sdk.js +1276 -1202
  3. package/dist/stellar-sdk.min.js +1 -1
  4. package/lib/browser.js +1 -1
  5. package/lib/config.js +2 -3
  6. package/lib/contract_client/assembled_transaction.d.ts +456 -0
  7. package/lib/contract_client/assembled_transaction.js +502 -0
  8. package/lib/contract_client/basic_node_signer.d.ts +12 -0
  9. package/lib/contract_client/basic_node_signer.js +52 -0
  10. package/lib/contract_client/client.d.ts +17 -0
  11. package/lib/contract_client/client.js +89 -0
  12. package/lib/contract_client/index.d.ts +6 -0
  13. package/lib/contract_client/index.js +71 -0
  14. package/lib/contract_client/sent_transaction.d.ts +72 -0
  15. package/lib/contract_client/sent_transaction.js +147 -0
  16. package/lib/contract_client/types.d.ts +100 -0
  17. package/lib/contract_client/types.js +3 -0
  18. package/lib/contract_client/utils.d.ts +23 -0
  19. package/lib/contract_client/utils.js +95 -0
  20. package/lib/contract_spec.d.ts +7 -0
  21. package/lib/contract_spec.js +13 -4
  22. package/lib/errors.js +7 -8
  23. package/lib/federation/index.js +1 -1
  24. package/lib/federation/server.js +3 -4
  25. package/lib/horizon/account_call_builder.js +3 -4
  26. package/lib/horizon/account_response.js +2 -3
  27. package/lib/horizon/assets_call_builder.js +3 -4
  28. package/lib/horizon/call_builder.js +3 -4
  29. package/lib/horizon/claimable_balances_call_builder.js +3 -4
  30. package/lib/horizon/effect_call_builder.js +3 -4
  31. package/lib/horizon/friendbot_builder.js +2 -2
  32. package/lib/horizon/index.js +1 -1
  33. package/lib/horizon/ledger_call_builder.js +3 -4
  34. package/lib/horizon/liquidity_pool_call_builder.js +3 -4
  35. package/lib/horizon/offer_call_builder.js +3 -4
  36. package/lib/horizon/operation_call_builder.js +3 -4
  37. package/lib/horizon/orderbook_call_builder.js +2 -2
  38. package/lib/horizon/path_call_builder.js +2 -2
  39. package/lib/horizon/payment_call_builder.js +3 -4
  40. package/lib/horizon/server.js +4 -5
  41. package/lib/horizon/strict_receive_path_call_builder.js +2 -2
  42. package/lib/horizon/strict_send_path_call_builder.js +2 -2
  43. package/lib/horizon/trade_aggregation_call_builder.js +3 -4
  44. package/lib/horizon/trades_call_builder.js +3 -4
  45. package/lib/horizon/transaction_call_builder.js +3 -4
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +13 -9
  48. package/lib/rust_types/index.d.ts +1 -0
  49. package/lib/rust_types/index.js +16 -0
  50. package/lib/rust_types/result.d.ts +71 -0
  51. package/lib/rust_types/result.js +66 -0
  52. package/lib/soroban/browser.js +1 -1
  53. package/lib/soroban/jsonrpc.d.ts +2 -8
  54. package/lib/soroban/jsonrpc.js +13 -54
  55. package/lib/soroban/parsers.js +1 -1
  56. package/lib/soroban/server.js +18 -13
  57. package/lib/stellartoml/index.js +3 -4
  58. package/lib/utils.js +2 -3
  59. package/lib/webauth/errors.js +2 -2
  60. package/package.json +32 -20
package/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ A breaking change will get clearly marked in this log.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [v11.3.0](https://github.com/stellar/js-stellar-sdk/compare/v11.2.2...v11.3.0)
10
+
11
+ ### Added
12
+ * Introduces an entire suite of helpers to assist with interacting with smart contracts ([#929](https://github.com/stellar/js-stellar-sdk/pull/929)):
13
+ - `ContractClient`: generate a class from the contract specification where each Rust contract method gets a matching method in this class. Each method returns an `AssembledTransaction` that can be used to modify, simulate, decode results, and possibly sign, & submit the transaction.
14
+ - `AssembledTransaction`: used to wrap a transaction-under-construction and provide high-level interfaces to the most common workflows, while still providing access to low-level transaction manipulation.
15
+ - `SentTransaction`: transaction sent to the Soroban network, in two steps - initial submission and waiting for it to finalize to get the result (retried with exponential backoff)
16
+
17
+ ### Fixed
18
+ * Upgrade underlying dependencies, including `@stellar/js-xdr` which should broaden compatibility to pre-ES2016 environments ([#932](https://github.com/stellar/js-stellar-sdk/pull/932), [#930](https://github.com/stellar/js-stellar-sdk/pull/930)).
19
+
20
+
21
+ ### Fixed
22
+ * `SorobanRpc`: remove all instances of array-based parsing to conform to future breaking changes in Soroban RPC ([#924](https://github.com/stellar/js-stellar-sdk/pull/924)).
23
+
9
24
 
10
25
  ## [v11.2.2](https://github.com/stellar/js-stellar-sdk/compare/v11.2.1...v11.2.2)
11
26