@stellar/stellar-sdk 12.0.1 → 12.1.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 +18 -0
- package/dist/stellar-sdk.js +454 -186
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/contract/assembled_transaction.d.ts +81 -6
- package/lib/contract/assembled_transaction.js +358 -124
- package/lib/contract/client.d.ts +1 -0
- package/lib/contract/client.js +3 -0
- package/lib/contract/index.d.ts +1 -0
- package/lib/contract/index.js +18 -1
- package/lib/contract/sent_transaction.d.ts +5 -8
- package/lib/contract/sent_transaction.js +16 -33
- package/lib/contract/types.d.ts +5 -0
- package/lib/contract/utils.d.ts +4 -1
- package/lib/contract/utils.js +32 -0
- package/package.json +18 -27
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ A breaking change will get clearly marked in this log.
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
## [v12.1.0](https://github.com/stellar/js-stellar-sdk/compare/v12.0.1...v12.1.0)
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `contract` now exports the `DEFAULT_TIMEOUT` ([#984](https://github.com/stellar/js-stellar-sdk/pull/984)).
|
|
14
|
+
- `contract.AssembledTransaction` now has:
|
|
15
|
+
- `toXDR` and `fromXDR` methods for serializing the transaction to and from XDR. These methods should be used in place of `AssembledTransaction.toJSON` and `AssembledTransaction.fromJSON`for multi-auth signing. The JSON methods are now deprecated. **Note:** you must now call `simulate` on the transaction before the final `signAndSend` call after all required signatures are gathered when using the XDR methods ([#977](https://github.com/stellar/js-stellar-sdk/pull/977)).
|
|
16
|
+
- a `restoreFootprint` method which accepts the `restorePreamble` returned when a simulation call fails due to some contract state that has expired. When invoking a contract function, one can now set `restore` to `true` in the `MethodOptions`. When enabled, a `restoreFootprint` transaction will be created and await signing when required ([#991](https://github.com/stellar/js-stellar-sdk/pull/991)).
|
|
17
|
+
- separate `sign` and `send` methods so that you can sign a transaction without sending it (`signAndSend` still works as before; [#922](https://github.com/stellar/js-stellar-sdk/pull/992)).
|
|
18
|
+
- `contract.Client` now has a `txFromXDR` method which should be used in place of `txFromJSON` for multi-auth signing ([#977](https://github.com/stellar/js-stellar-sdk/pull/977)).
|
|
19
|
+
|
|
20
|
+
### Deprecated
|
|
21
|
+
- In `contract.AssembledTransaction`, `toJSON` and `fromJSON` should be replaced with `toXDR` and `fromXDR`.
|
|
22
|
+
- In `contract.Client`, `txFromJSON` should be replaced with `txFromXDR`.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- If you edit an `AssembledTransaction` with `tx.raw = cloneFrom(tx.build)`, the `tx.simulationData` will now be updated correctly ([#985](https://github.com/stellar/js-stellar-sdk/pull/985)).
|
|
26
|
+
|
|
27
|
+
|
|
10
28
|
## [v12.0.1](https://github.com/stellar/js-stellar-sdk/compare/v11.3.0...v12.0.1)
|
|
11
29
|
|
|
12
30
|
- This is a re-tag of `v12.0.0-rc.3` with dependency updates and a single new feature.
|