@stellar/stellar-base 12.0.0-rc.1 → 12.0.1

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 (66) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/stellar-base.js +179 -164
  3. package/dist/stellar-base.min.js +1 -1
  4. package/lib/account.js +4 -4
  5. package/lib/address.js +4 -4
  6. package/lib/asset.js +4 -4
  7. package/lib/auth.js +3 -3
  8. package/lib/claimant.js +4 -4
  9. package/lib/contract.js +4 -4
  10. package/lib/events.js +2 -2
  11. package/lib/fee_bump_transaction.js +9 -9
  12. package/lib/get_liquidity_pool_id.js +1 -1
  13. package/lib/index.js +1 -1
  14. package/lib/keypair.js +4 -4
  15. package/lib/liquidity_pool_asset.js +5 -5
  16. package/lib/liquidity_pool_id.js +4 -4
  17. package/lib/memo.js +4 -4
  18. package/lib/muxed_account.js +4 -4
  19. package/lib/numbers/int128.js +8 -8
  20. package/lib/numbers/int256.js +8 -8
  21. package/lib/numbers/sc_int.js +8 -8
  22. package/lib/numbers/uint128.js +8 -8
  23. package/lib/numbers/uint256.js +8 -8
  24. package/lib/numbers/xdr_large_int.js +5 -5
  25. package/lib/operation.js +4 -4
  26. package/lib/operations/account_merge.js +1 -1
  27. package/lib/operations/allow_trust.js +1 -1
  28. package/lib/operations/begin_sponsoring_future_reserves.js +1 -1
  29. package/lib/operations/bump_sequence.js +1 -1
  30. package/lib/operations/change_trust.js +1 -1
  31. package/lib/operations/claim_claimable_balance.js +1 -1
  32. package/lib/operations/clawback.js +1 -1
  33. package/lib/operations/clawback_claimable_balance.js +1 -1
  34. package/lib/operations/create_account.js +1 -1
  35. package/lib/operations/create_claimable_balance.js +1 -1
  36. package/lib/operations/create_passive_sell_offer.js +1 -1
  37. package/lib/operations/end_sponsoring_future_reserves.js +1 -1
  38. package/lib/operations/extend_footprint_ttl.js +18 -9
  39. package/lib/operations/inflation.js +1 -1
  40. package/lib/operations/invoke_host_function.js +5 -5
  41. package/lib/operations/liquidity_pool_deposit.js +1 -1
  42. package/lib/operations/liquidity_pool_withdraw.js +1 -1
  43. package/lib/operations/manage_buy_offer.js +1 -1
  44. package/lib/operations/manage_data.js +1 -1
  45. package/lib/operations/manage_sell_offer.js +1 -1
  46. package/lib/operations/path_payment_strict_receive.js +1 -1
  47. package/lib/operations/path_payment_strict_send.js +1 -1
  48. package/lib/operations/payment.js +1 -1
  49. package/lib/operations/restore_footprint.js +8 -4
  50. package/lib/operations/revoke_sponsorship.js +1 -1
  51. package/lib/operations/set_options.js +1 -1
  52. package/lib/operations/set_trustline_flags.js +1 -1
  53. package/lib/scval.js +21 -19
  54. package/lib/signerkey.js +4 -4
  55. package/lib/soroban.js +8 -8
  56. package/lib/sorobandata_builder.js +5 -5
  57. package/lib/strkey.js +4 -4
  58. package/lib/transaction.js +9 -9
  59. package/lib/transaction_base.js +4 -4
  60. package/lib/transaction_builder.js +10 -10
  61. package/lib/util/bignumber.js +1 -1
  62. package/lib/util/continued_fraction.js +5 -5
  63. package/lib/util/decode_encode_muxed_account.js +1 -1
  64. package/lib/xdr.js +1 -1
  65. package/package.json +12 -12
  66. package/types/index.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,27 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## [`v12.0.1`](https://github.com/stellar/js-stellar-base/compare/v12.0.0...v12.0.1)
7
+
8
+ ### Fixed
9
+ * `scValToNative` would fail when the values contained error codes because the parsing routine hadn't been updated to the new error schemas. Errors are now converted to the following format:
10
+
11
+ ```typescript
12
+ interface Error {
13
+ type: "contract" | "soroban";
14
+ code: number;
15
+ value?: string; // only present for type === 'soroban'
16
+ }
17
+ ```
18
+
19
+ You can refer to the [XDR documentation](https://github.com/stellar/stellar-xdr/blob/70180d5e8d9caee9e8645ed8a38c36a8cf403cd9/Stellar-contract.x#L76-L115) for additional explanations for each error code.
20
+
21
+
22
+ ## [`v12.0.0`](https://github.com/stellar/js-stellar-base/compare/v11.0.1...v12.0.0)
23
+
24
+ This is a re-tag of v12.0.0-rc.1 with only developer dependency updates in-between.
25
+
26
+
6
27
  ## [`v12.0.0-rc.1`](https://github.com/stellar/js-stellar-base/compare/v11.0.1...v12.0.0-rc.1)
7
28
 
8
29
  ### Breaking Changes