@stellar/stellar-sdk 11.3.0 → 12.0.0-rc.2

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 (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/stellar-sdk.js +292 -53
  4. package/dist/stellar-sdk.min.js +1 -1
  5. package/lib/contract_client/assembled_transaction.d.ts +19 -19
  6. package/lib/contract_client/assembled_transaction.js +19 -8
  7. package/lib/contract_client/client.d.ts +3 -3
  8. package/lib/contract_client/client.js +21 -53
  9. package/lib/contract_client/sent_transaction.d.ts +4 -5
  10. package/lib/contract_client/sent_transaction.js +18 -12
  11. package/lib/contract_client/types.d.ts +1 -1
  12. package/lib/contract_client/types.js +3 -1
  13. package/lib/contract_client/utils.d.ts +1 -1
  14. package/lib/contract_client/utils.js +1 -1
  15. package/lib/contract_spec.js +2 -2
  16. package/lib/horizon/account_call_builder.d.ts +0 -1
  17. package/lib/horizon/assets_call_builder.d.ts +0 -1
  18. package/lib/horizon/claimable_balances_call_builder.d.ts +0 -1
  19. package/lib/horizon/effect_call_builder.d.ts +0 -1
  20. package/lib/horizon/friendbot_builder.d.ts +0 -1
  21. package/lib/horizon/horizon_api.d.ts +0 -1
  22. package/lib/horizon/ledger_call_builder.d.ts +0 -1
  23. package/lib/horizon/liquidity_pool_call_builder.d.ts +0 -1
  24. package/lib/horizon/offer_call_builder.d.ts +0 -1
  25. package/lib/horizon/operation_call_builder.d.ts +0 -1
  26. package/lib/horizon/orderbook_call_builder.d.ts +0 -1
  27. package/lib/horizon/path_call_builder.d.ts +0 -1
  28. package/lib/horizon/payment_call_builder.d.ts +0 -1
  29. package/lib/horizon/strict_receive_path_call_builder.d.ts +0 -1
  30. package/lib/horizon/strict_send_path_call_builder.d.ts +0 -1
  31. package/lib/horizon/trade_aggregation_call_builder.d.ts +0 -1
  32. package/lib/horizon/trades_call_builder.d.ts +0 -1
  33. package/lib/horizon/transaction_call_builder.d.ts +0 -1
  34. package/lib/index.d.ts +0 -1
  35. package/lib/soroban/api.d.ts +1 -0
  36. package/lib/soroban/index.d.ts +0 -1
  37. package/package.json +5 -6
package/CHANGELOG.md CHANGED
@@ -6,6 +6,30 @@ A breaking change will get clearly marked in this log.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+
10
+ ## [v12.0.0-rc.2](https://github.com/stellar/js-stellar-sdk/compare/v11.3.0...v12.0.0-rc.2)
11
+
12
+ **This update supports Protocol 21**. It is an additive change to the protocol so there are no true backwards incompatibilities, but your software may break if you encounter new unexpected fields from this Protocol ([#949](https://github.com/stellar/js-stellar-sdk/pull/949)).
13
+
14
+ ### Breaking Changes
15
+ * The **default timeout for transaction calls is now set to 300 seconds (5 minutes)** from the previous default of 10 seconds. 10 seconds is often not enough time to review transactions before signing, especially in Freighter or using a hardware wallet like a Ledger, which would cause a `txTooLate` error response from the server. Five minutes is also the value used by the CLI, so this brings the two into alignment ([#956](https://github.com/stellar/js-stellar-sdk/pull/956)).
16
+
17
+ ### Fixed
18
+ * Dependencies have been properly updated to pull in Protocol 21 XDR ([#959](https://github.com/stellar/js-stellar-sdk/pull/959)).
19
+
20
+
21
+ ## [v12.0.0-rc.1](https://github.com/stellar/js-stellar-sdk/compare/v11.3.0...v12.0.0-rc.1)
22
+
23
+ ### Breaking Changes
24
+ * **This update supports Protocol 21**. It is an additive change to the protocol so there are no true backwards incompatibilities, but your software may break if you encounter new unexpected fields from this Protocol ([#949](https://github.com/stellar/js-stellar-sdk/pull/949)).
25
+
26
+ ### Fixed
27
+ * Each item in the `GetEventsResponse.events` list will now have a `txHash` item corresponding to the transaction hash that triggered a particular event ([#939](https://github.com/stellar/js-stellar-sdk/pull/939)).
28
+ * `ContractClient` now properly handles methods that take no arguments by making `MethodOptions` the only parameter, bringing it inline with the types generated by Soroban CLI's `soroban contract bindings typescript` ([#940](https://github.com/stellar/js-stellar-sdk/pull/940)).
29
+ * `ContractClient` now allows `publicKey` to be undefined ([#941](https://github.com/stellar/js-stellar-sdk/pull/941)).
30
+ * `SentTransaction` will only pass `allowHttp` if (and only if) its corresponding `AssembledTransaction#options` config allowed it ([#952](https://github.com/stellar/js-stellar-sdk/pull/952)).
31
+ * `SentTransaction` will now modify the time bounds of the transaction to be `timeoutInSeconds` seconds after the transaction has been simulated. Previously this was set when the transaction is built, before the simulation. This makes the time bounds line up with the timeout retry logic in `SentTransaction`.
32
+
9
33
  ## [v11.3.0](https://github.com/stellar/js-stellar-sdk/compare/v11.2.2...v11.3.0)
10
34
 
11
35
  ### Added
package/README.md CHANGED
@@ -95,7 +95,7 @@ The usage documentation for this library lives in a handful of places:
95
95
 
96
96
  You can also refer to:
97
97
 
98
- * the [documentation](https://developers.stellar.org/api/introduction/) for the Horizon REST API (if using the `Horizon` module) and
98
+ * the [documentation](https://developers.stellar.org/network/horizon) for the Horizon REST API (if using the `Horizon` module) and
99
99
  * the [documentation](https://soroban.stellar.org/docs/reference/rpc) for Soroban RPC's API (if using the `SorobanRpc` module)
100
100
 
101
101
  ### Usage with React-Native
@@ -1890,7 +1890,7 @@ var types = XDR.config(function (xdr) {
1890
1890
  // const MASK_ACCOUNT_FLAGS_V17 = 0xF;
1891
1891
  //
1892
1892
  // ===========================================================================
1893
- xdr["const"]("MASK_ACCOUNT_FLAGS_V17", 0xf);
1893
+ xdr["const"]("MASK_ACCOUNT_FLAGS_V17", 0xF);
1894
1894
 
1895
1895
  // === xdr source ============================================================
1896
1896
  //
@@ -2732,15 +2732,79 @@ var types = XDR.config(function (xdr) {
2732
2732
 
2733
2733
  // === xdr source ============================================================
2734
2734
  //
2735
- // struct ContractCodeEntry {
2735
+ // struct ContractCodeCostInputs {
2736
2736
  // ExtensionPoint ext;
2737
+ // uint32 nInstructions;
2738
+ // uint32 nFunctions;
2739
+ // uint32 nGlobals;
2740
+ // uint32 nTableEntries;
2741
+ // uint32 nTypes;
2742
+ // uint32 nDataSegments;
2743
+ // uint32 nElemSegments;
2744
+ // uint32 nImports;
2745
+ // uint32 nExports;
2746
+ // uint32 nDataSegmentBytes;
2747
+ // };
2748
+ //
2749
+ // ===========================================================================
2750
+ xdr.struct("ContractCodeCostInputs", [["ext", xdr.lookup("ExtensionPoint")], ["nInstructions", xdr.lookup("Uint32")], ["nFunctions", xdr.lookup("Uint32")], ["nGlobals", xdr.lookup("Uint32")], ["nTableEntries", xdr.lookup("Uint32")], ["nTypes", xdr.lookup("Uint32")], ["nDataSegments", xdr.lookup("Uint32")], ["nElemSegments", xdr.lookup("Uint32")], ["nImports", xdr.lookup("Uint32")], ["nExports", xdr.lookup("Uint32")], ["nDataSegmentBytes", xdr.lookup("Uint32")]]);
2751
+
2752
+ // === xdr source ============================================================
2753
+ //
2754
+ // struct
2755
+ // {
2756
+ // ExtensionPoint ext;
2757
+ // ContractCodeCostInputs costInputs;
2758
+ // }
2759
+ //
2760
+ // ===========================================================================
2761
+ xdr.struct("ContractCodeEntryV1", [["ext", xdr.lookup("ExtensionPoint")], ["costInputs", xdr.lookup("ContractCodeCostInputs")]]);
2762
+
2763
+ // === xdr source ============================================================
2764
+ //
2765
+ // union switch (int v)
2766
+ // {
2767
+ // case 0:
2768
+ // void;
2769
+ // case 1:
2770
+ // struct
2771
+ // {
2772
+ // ExtensionPoint ext;
2773
+ // ContractCodeCostInputs costInputs;
2774
+ // } v1;
2775
+ // }
2776
+ //
2777
+ // ===========================================================================
2778
+ xdr.union("ContractCodeEntryExt", {
2779
+ switchOn: xdr["int"](),
2780
+ switchName: "v",
2781
+ switches: [[0, xdr["void"]()], [1, "v1"]],
2782
+ arms: {
2783
+ v1: xdr.lookup("ContractCodeEntryV1")
2784
+ }
2785
+ });
2786
+
2787
+ // === xdr source ============================================================
2788
+ //
2789
+ // struct ContractCodeEntry {
2790
+ // union switch (int v)
2791
+ // {
2792
+ // case 0:
2793
+ // void;
2794
+ // case 1:
2795
+ // struct
2796
+ // {
2797
+ // ExtensionPoint ext;
2798
+ // ContractCodeCostInputs costInputs;
2799
+ // } v1;
2800
+ // } ext;
2737
2801
  //
2738
2802
  // Hash hash;
2739
2803
  // opaque code<>;
2740
2804
  // };
2741
2805
  //
2742
2806
  // ===========================================================================
2743
- xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("ExtensionPoint")], ["hash", xdr.lookup("Hash")], ["code", xdr.varOpaque()]]);
2807
+ xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("ContractCodeEntryExt")], ["hash", xdr.lookup("Hash")], ["code", xdr.varOpaque()]]);
2744
2808
 
2745
2809
  // === xdr source ============================================================
2746
2810
  //
@@ -3935,10 +3999,69 @@ var types = XDR.config(function (xdr) {
3935
3999
 
3936
4000
  // === xdr source ============================================================
3937
4001
  //
3938
- // struct SorobanTransactionMeta
4002
+ // struct SorobanTransactionMetaExtV1
3939
4003
  // {
3940
4004
  // ExtensionPoint ext;
3941
4005
  //
4006
+ // // The following are the components of the overall Soroban resource fee
4007
+ // // charged for the transaction.
4008
+ // // The following relation holds:
4009
+ // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged`
4010
+ // // where `resourceFeeCharged` is the overall fee charged for the
4011
+ // // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee`
4012
+ // // i.e.we never charge more than the declared resource fee.
4013
+ // // The inclusion fee for charged the Soroban transaction can be found using
4014
+ // // the following equation:
4015
+ // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`.
4016
+ //
4017
+ // // Total amount (in stroops) that has been charged for non-refundable
4018
+ // // Soroban resources.
4019
+ // // Non-refundable resources are charged based on the usage declared in
4020
+ // // the transaction envelope (such as `instructions`, `readBytes` etc.) and
4021
+ // // is charged regardless of the success of the transaction.
4022
+ // int64 totalNonRefundableResourceFeeCharged;
4023
+ // // Total amount (in stroops) that has been charged for refundable
4024
+ // // Soroban resource fees.
4025
+ // // Currently this comprises the rent fee (`rentFeeCharged`) and the
4026
+ // // fee for the events and return value.
4027
+ // // Refundable resources are charged based on the actual resources usage.
4028
+ // // Since currently refundable resources are only used for the successful
4029
+ // // transactions, this will be `0` for failed transactions.
4030
+ // int64 totalRefundableResourceFeeCharged;
4031
+ // // Amount (in stroops) that has been charged for rent.
4032
+ // // This is a part of `totalNonRefundableResourceFeeCharged`.
4033
+ // int64 rentFeeCharged;
4034
+ // };
4035
+ //
4036
+ // ===========================================================================
4037
+ xdr.struct("SorobanTransactionMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["totalNonRefundableResourceFeeCharged", xdr.lookup("Int64")], ["totalRefundableResourceFeeCharged", xdr.lookup("Int64")], ["rentFeeCharged", xdr.lookup("Int64")]]);
4038
+
4039
+ // === xdr source ============================================================
4040
+ //
4041
+ // union SorobanTransactionMetaExt switch (int v)
4042
+ // {
4043
+ // case 0:
4044
+ // void;
4045
+ // case 1:
4046
+ // SorobanTransactionMetaExtV1 v1;
4047
+ // };
4048
+ //
4049
+ // ===========================================================================
4050
+ xdr.union("SorobanTransactionMetaExt", {
4051
+ switchOn: xdr["int"](),
4052
+ switchName: "v",
4053
+ switches: [[0, xdr["void"]()], [1, "v1"]],
4054
+ arms: {
4055
+ v1: xdr.lookup("SorobanTransactionMetaExtV1")
4056
+ }
4057
+ });
4058
+
4059
+ // === xdr source ============================================================
4060
+ //
4061
+ // struct SorobanTransactionMeta
4062
+ // {
4063
+ // SorobanTransactionMetaExt ext;
4064
+ //
3942
4065
  // ContractEvent events<>; // custom events populated by the
3943
4066
  // // contracts themselves.
3944
4067
  // SCVal returnValue; // return value of the host fn invocation
@@ -3950,7 +4073,7 @@ var types = XDR.config(function (xdr) {
3950
4073
  // };
3951
4074
  //
3952
4075
  // ===========================================================================
3953
- xdr.struct("SorobanTransactionMeta", [["ext", xdr.lookup("ExtensionPoint")], ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], ["returnValue", xdr.lookup("ScVal")], ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)]]);
4076
+ xdr.struct("SorobanTransactionMeta", [["ext", xdr.lookup("SorobanTransactionMetaExt")], ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], ["returnValue", xdr.lookup("ScVal")], ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)]]);
3954
4077
 
3955
4078
  // === xdr source ============================================================
3956
4079
  //
@@ -4056,11 +4179,40 @@ var types = XDR.config(function (xdr) {
4056
4179
 
4057
4180
  // === xdr source ============================================================
4058
4181
  //
4059
- // struct LedgerCloseMetaV1
4182
+ // struct LedgerCloseMetaExtV1
4060
4183
  // {
4061
- // // We forgot to add an ExtensionPoint in v0 but at least
4062
- // // we can add one now in v1.
4063
4184
  // ExtensionPoint ext;
4185
+ // int64 sorobanFeeWrite1KB;
4186
+ // };
4187
+ //
4188
+ // ===========================================================================
4189
+ xdr.struct("LedgerCloseMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["sorobanFeeWrite1Kb", xdr.lookup("Int64")]]);
4190
+
4191
+ // === xdr source ============================================================
4192
+ //
4193
+ // union LedgerCloseMetaExt switch (int v)
4194
+ // {
4195
+ // case 0:
4196
+ // void;
4197
+ // case 1:
4198
+ // LedgerCloseMetaExtV1 v1;
4199
+ // };
4200
+ //
4201
+ // ===========================================================================
4202
+ xdr.union("LedgerCloseMetaExt", {
4203
+ switchOn: xdr["int"](),
4204
+ switchName: "v",
4205
+ switches: [[0, xdr["void"]()], [1, "v1"]],
4206
+ arms: {
4207
+ v1: xdr.lookup("LedgerCloseMetaExtV1")
4208
+ }
4209
+ });
4210
+
4211
+ // === xdr source ============================================================
4212
+ //
4213
+ // struct LedgerCloseMetaV1
4214
+ // {
4215
+ // LedgerCloseMetaExt ext;
4064
4216
  //
4065
4217
  // LedgerHeaderHistoryEntry ledgerHeader;
4066
4218
  //
@@ -4090,7 +4242,7 @@ var types = XDR.config(function (xdr) {
4090
4242
  // };
4091
4243
  //
4092
4244
  // ===========================================================================
4093
- xdr.struct("LedgerCloseMetaV1", [["ext", xdr.lookup("ExtensionPoint")], ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], ["txSet", xdr.lookup("GeneralizedTransactionSet")], ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)]]);
4245
+ xdr.struct("LedgerCloseMetaV1", [["ext", xdr.lookup("LedgerCloseMetaExt")], ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], ["txSet", xdr.lookup("GeneralizedTransactionSet")], ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)]]);
4094
4246
 
4095
4247
  // === xdr source ============================================================
4096
4248
  //
@@ -9504,8 +9656,9 @@ var types = XDR.config(function (xdr) {
9504
9656
  // InvokeVmFunction = 13,
9505
9657
  // // Cost of computing a keccak256 hash from bytes.
9506
9658
  // ComputeKeccak256Hash = 14,
9507
- // // Cost of computing an ECDSA secp256k1 signature from bytes.
9508
- // ComputeEcdsaSecp256k1Sig = 15,
9659
+ // // Cost of decoding an ECDSA signature computed from a 256-bit prime modulus
9660
+ // // curve (e.g. secp256k1 and secp256r1)
9661
+ // DecodeEcdsaCurve256Sig = 15,
9509
9662
  // // Cost of recovering an ECDSA secp256k1 key from a signature.
9510
9663
  // RecoverEcdsaSecp256k1Key = 16,
9511
9664
  // // Cost of int256 addition (`+`) and subtraction (`-`) operations
@@ -9519,7 +9672,55 @@ var types = XDR.config(function (xdr) {
9519
9672
  // // Cost of int256 shift (`shl`, `shr`) operation
9520
9673
  // Int256Shift = 21,
9521
9674
  // // Cost of drawing random bytes using a ChaCha20 PRNG
9522
- // ChaCha20DrawBytes = 22
9675
+ // ChaCha20DrawBytes = 22,
9676
+ //
9677
+ // // Cost of parsing wasm bytes that only encode instructions.
9678
+ // ParseWasmInstructions = 23,
9679
+ // // Cost of parsing a known number of wasm functions.
9680
+ // ParseWasmFunctions = 24,
9681
+ // // Cost of parsing a known number of wasm globals.
9682
+ // ParseWasmGlobals = 25,
9683
+ // // Cost of parsing a known number of wasm table entries.
9684
+ // ParseWasmTableEntries = 26,
9685
+ // // Cost of parsing a known number of wasm types.
9686
+ // ParseWasmTypes = 27,
9687
+ // // Cost of parsing a known number of wasm data segments.
9688
+ // ParseWasmDataSegments = 28,
9689
+ // // Cost of parsing a known number of wasm element segments.
9690
+ // ParseWasmElemSegments = 29,
9691
+ // // Cost of parsing a known number of wasm imports.
9692
+ // ParseWasmImports = 30,
9693
+ // // Cost of parsing a known number of wasm exports.
9694
+ // ParseWasmExports = 31,
9695
+ // // Cost of parsing a known number of data segment bytes.
9696
+ // ParseWasmDataSegmentBytes = 32,
9697
+ //
9698
+ // // Cost of instantiating wasm bytes that only encode instructions.
9699
+ // InstantiateWasmInstructions = 33,
9700
+ // // Cost of instantiating a known number of wasm functions.
9701
+ // InstantiateWasmFunctions = 34,
9702
+ // // Cost of instantiating a known number of wasm globals.
9703
+ // InstantiateWasmGlobals = 35,
9704
+ // // Cost of instantiating a known number of wasm table entries.
9705
+ // InstantiateWasmTableEntries = 36,
9706
+ // // Cost of instantiating a known number of wasm types.
9707
+ // InstantiateWasmTypes = 37,
9708
+ // // Cost of instantiating a known number of wasm data segments.
9709
+ // InstantiateWasmDataSegments = 38,
9710
+ // // Cost of instantiating a known number of wasm element segments.
9711
+ // InstantiateWasmElemSegments = 39,
9712
+ // // Cost of instantiating a known number of wasm imports.
9713
+ // InstantiateWasmImports = 40,
9714
+ // // Cost of instantiating a known number of wasm exports.
9715
+ // InstantiateWasmExports = 41,
9716
+ // // Cost of instantiating a known number of data segment bytes.
9717
+ // InstantiateWasmDataSegmentBytes = 42,
9718
+ //
9719
+ // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded
9720
+ // // point on a 256-bit elliptic curve
9721
+ // Sec1DecodePointUncompressed = 43,
9722
+ // // Cost of verifying an ECDSA Secp256r1 signature
9723
+ // VerifyEcdsaSecp256r1Sig = 44
9523
9724
  // };
9524
9725
  //
9525
9726
  // ===========================================================================
@@ -9539,14 +9740,36 @@ var types = XDR.config(function (xdr) {
9539
9740
  vmCachedInstantiation: 12,
9540
9741
  invokeVmFunction: 13,
9541
9742
  computeKeccak256Hash: 14,
9542
- computeEcdsaSecp256k1Sig: 15,
9743
+ decodeEcdsaCurve256Sig: 15,
9543
9744
  recoverEcdsaSecp256k1Key: 16,
9544
9745
  int256AddSub: 17,
9545
9746
  int256Mul: 18,
9546
9747
  int256Div: 19,
9547
9748
  int256Pow: 20,
9548
9749
  int256Shift: 21,
9549
- chaCha20DrawBytes: 22
9750
+ chaCha20DrawBytes: 22,
9751
+ parseWasmInstructions: 23,
9752
+ parseWasmFunctions: 24,
9753
+ parseWasmGlobals: 25,
9754
+ parseWasmTableEntries: 26,
9755
+ parseWasmTypes: 27,
9756
+ parseWasmDataSegments: 28,
9757
+ parseWasmElemSegments: 29,
9758
+ parseWasmImports: 30,
9759
+ parseWasmExports: 31,
9760
+ parseWasmDataSegmentBytes: 32,
9761
+ instantiateWasmInstructions: 33,
9762
+ instantiateWasmFunctions: 34,
9763
+ instantiateWasmGlobals: 35,
9764
+ instantiateWasmTableEntries: 36,
9765
+ instantiateWasmTypes: 37,
9766
+ instantiateWasmDataSegments: 38,
9767
+ instantiateWasmElemSegments: 39,
9768
+ instantiateWasmImports: 40,
9769
+ instantiateWasmExports: 41,
9770
+ instantiateWasmDataSegmentBytes: 42,
9771
+ sec1DecodePointUncompressed: 43,
9772
+ verifyEcdsaSecp256r1Sig: 44
9550
9773
  });
9551
9774
 
9552
9775
  // === xdr source ============================================================
@@ -9579,15 +9802,18 @@ var types = XDR.config(function (xdr) {
9579
9802
  // // Number of snapshots to use when calculating average BucketList size
9580
9803
  // uint32 bucketListSizeWindowSampleSize;
9581
9804
  //
9805
+ // // How often to sample the BucketList size for the average, in ledgers
9806
+ // uint32 bucketListWindowSamplePeriod;
9807
+ //
9582
9808
  // // Maximum number of bytes that we scan for eviction per ledger
9583
- // uint64 evictionScanSize;
9809
+ // uint32 evictionScanSize;
9584
9810
  //
9585
9811
  // // Lowest BucketList level to be scanned to evict entries
9586
9812
  // uint32 startingEvictionScanLevel;
9587
9813
  // };
9588
9814
  //
9589
9815
  // ===========================================================================
9590
- xdr.struct("StateArchivalSettings", [["maxEntryTtl", xdr.lookup("Uint32")], ["minTemporaryTtl", xdr.lookup("Uint32")], ["minPersistentTtl", xdr.lookup("Uint32")], ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint64")], ["startingEvictionScanLevel", xdr.lookup("Uint32")]]);
9816
+ xdr.struct("StateArchivalSettings", [["maxEntryTtl", xdr.lookup("Uint32")], ["minTemporaryTtl", xdr.lookup("Uint32")], ["minPersistentTtl", xdr.lookup("Uint32")], ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], ["bucketListWindowSamplePeriod", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint32")], ["startingEvictionScanLevel", xdr.lookup("Uint32")]]);
9591
9817
 
9592
9818
  // === xdr source ============================================================
9593
9819
  //
@@ -20869,10 +21095,10 @@ var ContractSpec = function () {
20869
21095
  var _res$value = _slicedToArray(res.value, 2),
20870
21096
  k = _res$value[0],
20871
21097
  v = _res$value[1];
20872
- var _key = this.nativeToScVal(k, scMap.keyType());
21098
+ var key = this.nativeToScVal(k, scMap.keyType());
20873
21099
  var _val = this.nativeToScVal(v, scMap.valueType());
20874
21100
  entries.push(new src.xdr.ScMapEntry({
20875
- key: _key,
21101
+ key: key,
20876
21102
  val: _val
20877
21103
  }));
20878
21104
  res = values.next();
@@ -36919,7 +37145,7 @@ var defaults = {
36919
37145
  charset: 'utf-8',
36920
37146
  charsetSentinel: false,
36921
37147
  comma: false,
36922
- decodeDotInKeys: true,
37148
+ decodeDotInKeys: false,
36923
37149
  decoder: utils.decode,
36924
37150
  delimiter: '&',
36925
37151
  depth: 5,
@@ -37682,6 +37908,10 @@ var decode = function (str, decoder, charset) {
37682
37908
  }
37683
37909
  };
37684
37910
 
37911
+ var limit = 1024;
37912
+
37913
+ /* eslint operator-linebreak: [2, "before"] */
37914
+
37685
37915
  var encode = function encode(str, defaultEncoder, charset, kind, format) {
37686
37916
  // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
37687
37917
  // It has been adapted here for stricter adherence to RFC 3986
@@ -37703,45 +37933,54 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
37703
37933
  }
37704
37934
 
37705
37935
  var out = '';
37706
- for (var i = 0; i < string.length; ++i) {
37707
- var c = string.charCodeAt(i);
37936
+ for (var j = 0; j < string.length; j += limit) {
37937
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
37938
+ var arr = [];
37939
+
37940
+ for (var i = 0; i < segment.length; ++i) {
37941
+ var c = segment.charCodeAt(i);
37942
+ if (
37943
+ c === 0x2D // -
37944
+ || c === 0x2E // .
37945
+ || c === 0x5F // _
37946
+ || c === 0x7E // ~
37947
+ || (c >= 0x30 && c <= 0x39) // 0-9
37948
+ || (c >= 0x41 && c <= 0x5A) // a-z
37949
+ || (c >= 0x61 && c <= 0x7A) // A-Z
37950
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
37951
+ ) {
37952
+ arr[arr.length] = segment.charAt(i);
37953
+ continue;
37954
+ }
37708
37955
 
37709
- if (
37710
- c === 0x2D // -
37711
- || c === 0x2E // .
37712
- || c === 0x5F // _
37713
- || c === 0x7E // ~
37714
- || (c >= 0x30 && c <= 0x39) // 0-9
37715
- || (c >= 0x41 && c <= 0x5A) // a-z
37716
- || (c >= 0x61 && c <= 0x7A) // A-Z
37717
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
37718
- ) {
37719
- out += string.charAt(i);
37720
- continue;
37721
- }
37956
+ if (c < 0x80) {
37957
+ arr[arr.length] = hexTable[c];
37958
+ continue;
37959
+ }
37722
37960
 
37723
- if (c < 0x80) {
37724
- out = out + hexTable[c];
37725
- continue;
37726
- }
37961
+ if (c < 0x800) {
37962
+ arr[arr.length] = hexTable[0xC0 | (c >> 6)]
37963
+ + hexTable[0x80 | (c & 0x3F)];
37964
+ continue;
37965
+ }
37727
37966
 
37728
- if (c < 0x800) {
37729
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
37730
- continue;
37731
- }
37967
+ if (c < 0xD800 || c >= 0xE000) {
37968
+ arr[arr.length] = hexTable[0xE0 | (c >> 12)]
37969
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
37970
+ + hexTable[0x80 | (c & 0x3F)];
37971
+ continue;
37972
+ }
37732
37973
 
37733
- if (c < 0xD800 || c >= 0xE000) {
37734
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
37735
- continue;
37974
+ i += 1;
37975
+ c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
37976
+
37977
+ arr[arr.length] = hexTable[0xF0 | (c >> 18)]
37978
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
37979
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
37980
+ + hexTable[0x80 | (c & 0x3F)];
37736
37981
  }
37737
37982
 
37738
- i += 1;
37739
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
37740
- /* eslint operator-linebreak: [2, "before"] */
37741
- out += hexTable[0xF0 | (c >> 18)]
37742
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
37743
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
37744
- + hexTable[0x80 | (c & 0x3F)];
37983
+ out += arr.join('');
37745
37984
  }
37746
37985
 
37747
37986
  return out;
@@ -57065,7 +57304,7 @@ axios.default = axios;
57065
57304
  /***/ ((module) => {
57066
57305
 
57067
57306
  "use strict";
57068
- module.exports = {"rE":"11.3.0"};
57307
+ module.exports = {"rE":"12.0.0-rc.2"};
57069
57308
 
57070
57309
  /***/ })
57071
57310