@stellar/stellar-sdk 11.2.1 → 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.
- package/CHANGELOG.md +22 -0
- package/README.md +2 -0
- package/dist/stellar-sdk.js +1440 -1221
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/browser.js +1 -1
- package/lib/config.js +2 -3
- package/lib/contract_client/assembled_transaction.d.ts +456 -0
- package/lib/contract_client/assembled_transaction.js +502 -0
- package/lib/contract_client/basic_node_signer.d.ts +12 -0
- package/lib/contract_client/basic_node_signer.js +52 -0
- package/lib/contract_client/client.d.ts +17 -0
- package/lib/contract_client/client.js +89 -0
- package/lib/contract_client/index.d.ts +6 -0
- package/lib/contract_client/index.js +71 -0
- package/lib/contract_client/sent_transaction.d.ts +72 -0
- package/lib/contract_client/sent_transaction.js +147 -0
- package/lib/contract_client/types.d.ts +100 -0
- package/lib/contract_client/types.js +3 -0
- package/lib/contract_client/utils.d.ts +23 -0
- package/lib/contract_client/utils.js +95 -0
- package/lib/contract_spec.d.ts +7 -0
- package/lib/contract_spec.js +13 -4
- package/lib/errors.js +7 -8
- package/lib/federation/index.js +1 -1
- package/lib/federation/server.js +3 -4
- package/lib/horizon/account_call_builder.js +3 -4
- package/lib/horizon/account_response.js +2 -3
- package/lib/horizon/assets_call_builder.js +3 -4
- package/lib/horizon/call_builder.js +3 -4
- package/lib/horizon/claimable_balances_call_builder.js +3 -4
- package/lib/horizon/effect_call_builder.js +3 -4
- package/lib/horizon/friendbot_builder.js +2 -2
- package/lib/horizon/index.js +1 -1
- package/lib/horizon/ledger_call_builder.js +3 -4
- package/lib/horizon/liquidity_pool_call_builder.js +3 -4
- package/lib/horizon/offer_call_builder.js +3 -4
- package/lib/horizon/operation_call_builder.js +3 -4
- package/lib/horizon/orderbook_call_builder.js +2 -2
- package/lib/horizon/path_call_builder.js +2 -2
- package/lib/horizon/payment_call_builder.js +3 -4
- package/lib/horizon/server.js +4 -5
- package/lib/horizon/strict_receive_path_call_builder.js +2 -2
- package/lib/horizon/strict_send_path_call_builder.js +2 -2
- package/lib/horizon/trade_aggregation_call_builder.js +3 -4
- package/lib/horizon/trades_call_builder.js +3 -4
- package/lib/horizon/transaction_call_builder.js +3 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +13 -9
- package/lib/rust_types/index.d.ts +1 -0
- package/lib/rust_types/index.js +16 -0
- package/lib/rust_types/result.d.ts +71 -0
- package/lib/rust_types/result.js +66 -0
- package/lib/soroban/browser.js +1 -1
- package/lib/soroban/jsonrpc.d.ts +2 -8
- package/lib/soroban/jsonrpc.js +13 -54
- package/lib/soroban/parsers.js +1 -1
- package/lib/soroban/server.js +18 -13
- package/lib/stellartoml/index.js +3 -4
- package/lib/utils.js +2 -3
- package/lib/webauth/errors.js +2 -2
- package/package.json +37 -25
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ 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
|
+
|
|
24
|
+
|
|
25
|
+
## [v11.2.2](https://github.com/stellar/js-stellar-sdk/compare/v11.2.1...v11.2.2)
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
* Event streaming tests now pass on Node 20, which seems to have tighter conformance to the spec ([#917](https://github.com/stellar/js-stellar-sdk/pull/917)).
|
|
29
|
+
* `@stellar/stellar-base` has been upgraded to its latest major version ([#918](https://github.com/stellar/js-stellar-sdk/pull/918), see [v11.0.0](https://github.com/stellar/js-stellar-base/releases/tag/v11.0.0) for release notes).
|
|
30
|
+
|
|
9
31
|
|
|
10
32
|
## [v11.2.1](https://github.com/stellar/js-stellar-sdk/compare/v11.2.0...v11.2.1)
|
|
11
33
|
|
package/README.md
CHANGED
|
@@ -120,6 +120,8 @@ module.exports = {
|
|
|
120
120
|
|
|
121
121
|
There is also a [sample](https://github.com/fnando/rn-stellar-sdk-sample) that you can follow.
|
|
122
122
|
|
|
123
|
+
**Note**: Only the V8 compiler (on Android) and JSC (on iOS) have proper support for `Buffer` and `Uint8Array` as is needed by this library. Otherwise, you may see bizarre errors when doing XDR encoding/decoding such as `source not specified`.
|
|
124
|
+
|
|
123
125
|
#### Usage with Expo managed workflows
|
|
124
126
|
|
|
125
127
|
1. Install `yarn add --dev rn-nodeify`
|