@stellar/stellar-base 11.0.1 → 12.0.0-rc.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.
- package/CHANGELOG.md +13 -0
- package/dist/stellar-base.js +255 -19
- package/dist/stellar-base.min.js +1 -1
- package/lib/generated/curr_generated.js +242 -16
- package/lib/generated/next_generated.js +242 -16
- package/lib/index.js +8 -0
- package/lib/jsxdr.js +12 -0
- package/lib/strkey.js +1 -1
- package/package.json +12 -12
- package/types/curr.d.ts +371 -12
- package/types/index.d.ts +38 -0
- package/types/next.d.ts +371 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## [`v12.0.0-rc.1`](https://github.com/stellar/js-stellar-base/compare/v11.0.1...v12.0.0-rc.1)
|
|
7
|
+
|
|
8
|
+
### Breaking Changes
|
|
9
|
+
* The generated XDR has been upgraded to match the upcoming Protocol 21, namely [stellar/stellar-xdr@`1a04392`](https://github.com/stellar/stellar-xdr/commit/1a04392432dacc0092caaeae22a600ea1af3c6a5) ([#738](https://github.com/stellar/js-stellar-base/pull/738)).
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
* To facilitate serialization and deserialization for downstream systems, this package now exports `cereal.XdrWriter` and `cereal.XdrReader` which come directly from `@stellar/js-xdr` ([#744](https://github.com/stellar/js-stellar-base/pull/744)).
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
* Updated various dependencies ([#737](https://github.com/stellar/js-stellar-base/pull/737), [#739](https://github.com/stellar/js-stellar-base/pull/739)).
|
|
16
|
+
* `Buffer` and `Uint8Array` compatibility has improved in `StrKey` ([#746](https://github.com/stellar/js-stellar-base/pull/746)).
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [`v11.0.1`](https://github.com/stellar/js-stellar-base/compare/v11.0.0...v11.0.1)
|
|
7
20
|
|
|
8
21
|
### Fixed
|
package/dist/stellar-base.js
CHANGED
|
@@ -1845,7 +1845,7 @@ if (!(buffer__WEBPACK_IMPORTED_MODULE_0__.Buffer.alloc(1).subarray(0, 1) instanc
|
|
|
1845
1845
|
|
|
1846
1846
|
/***/ }),
|
|
1847
1847
|
|
|
1848
|
-
/***/
|
|
1848
|
+
/***/ 7957:
|
|
1849
1849
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1850
1850
|
|
|
1851
1851
|
"use strict";
|
|
@@ -1898,6 +1898,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1898
1898
|
authorizeEntry: () => (/* reexport */ authorizeEntry),
|
|
1899
1899
|
authorizeInvocation: () => (/* reexport */ authorizeInvocation),
|
|
1900
1900
|
buildInvocationTree: () => (/* reexport */ buildInvocationTree),
|
|
1901
|
+
cereal: () => (/* reexport */ jsxdr),
|
|
1901
1902
|
decodeAddressToMuxedAccount: () => (/* reexport */ decodeAddressToMuxedAccount),
|
|
1902
1903
|
"default": () => (/* binding */ src),
|
|
1903
1904
|
encodeMuxedAccount: () => (/* reexport */ encodeMuxedAccount),
|
|
@@ -2404,7 +2405,7 @@ var types = xdr.config(function (xdr) {
|
|
|
2404
2405
|
// const MASK_ACCOUNT_FLAGS_V17 = 0xF;
|
|
2405
2406
|
//
|
|
2406
2407
|
// ===========================================================================
|
|
2407
|
-
xdr["const"]("MASK_ACCOUNT_FLAGS_V17",
|
|
2408
|
+
xdr["const"]("MASK_ACCOUNT_FLAGS_V17", 0xF);
|
|
2408
2409
|
|
|
2409
2410
|
// === xdr source ============================================================
|
|
2410
2411
|
//
|
|
@@ -3246,15 +3247,79 @@ var types = xdr.config(function (xdr) {
|
|
|
3246
3247
|
|
|
3247
3248
|
// === xdr source ============================================================
|
|
3248
3249
|
//
|
|
3249
|
-
// struct
|
|
3250
|
+
// struct ContractCodeCostInputs {
|
|
3250
3251
|
// ExtensionPoint ext;
|
|
3252
|
+
// uint32 nInstructions;
|
|
3253
|
+
// uint32 nFunctions;
|
|
3254
|
+
// uint32 nGlobals;
|
|
3255
|
+
// uint32 nTableEntries;
|
|
3256
|
+
// uint32 nTypes;
|
|
3257
|
+
// uint32 nDataSegments;
|
|
3258
|
+
// uint32 nElemSegments;
|
|
3259
|
+
// uint32 nImports;
|
|
3260
|
+
// uint32 nExports;
|
|
3261
|
+
// uint32 nDataSegmentBytes;
|
|
3262
|
+
// };
|
|
3263
|
+
//
|
|
3264
|
+
// ===========================================================================
|
|
3265
|
+
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")]]);
|
|
3266
|
+
|
|
3267
|
+
// === xdr source ============================================================
|
|
3268
|
+
//
|
|
3269
|
+
// struct
|
|
3270
|
+
// {
|
|
3271
|
+
// ExtensionPoint ext;
|
|
3272
|
+
// ContractCodeCostInputs costInputs;
|
|
3273
|
+
// }
|
|
3274
|
+
//
|
|
3275
|
+
// ===========================================================================
|
|
3276
|
+
xdr.struct("ContractCodeEntryV1", [["ext", xdr.lookup("ExtensionPoint")], ["costInputs", xdr.lookup("ContractCodeCostInputs")]]);
|
|
3277
|
+
|
|
3278
|
+
// === xdr source ============================================================
|
|
3279
|
+
//
|
|
3280
|
+
// union switch (int v)
|
|
3281
|
+
// {
|
|
3282
|
+
// case 0:
|
|
3283
|
+
// void;
|
|
3284
|
+
// case 1:
|
|
3285
|
+
// struct
|
|
3286
|
+
// {
|
|
3287
|
+
// ExtensionPoint ext;
|
|
3288
|
+
// ContractCodeCostInputs costInputs;
|
|
3289
|
+
// } v1;
|
|
3290
|
+
// }
|
|
3291
|
+
//
|
|
3292
|
+
// ===========================================================================
|
|
3293
|
+
xdr.union("ContractCodeEntryExt", {
|
|
3294
|
+
switchOn: xdr["int"](),
|
|
3295
|
+
switchName: "v",
|
|
3296
|
+
switches: [[0, xdr["void"]()], [1, "v1"]],
|
|
3297
|
+
arms: {
|
|
3298
|
+
v1: xdr.lookup("ContractCodeEntryV1")
|
|
3299
|
+
}
|
|
3300
|
+
});
|
|
3301
|
+
|
|
3302
|
+
// === xdr source ============================================================
|
|
3303
|
+
//
|
|
3304
|
+
// struct ContractCodeEntry {
|
|
3305
|
+
// union switch (int v)
|
|
3306
|
+
// {
|
|
3307
|
+
// case 0:
|
|
3308
|
+
// void;
|
|
3309
|
+
// case 1:
|
|
3310
|
+
// struct
|
|
3311
|
+
// {
|
|
3312
|
+
// ExtensionPoint ext;
|
|
3313
|
+
// ContractCodeCostInputs costInputs;
|
|
3314
|
+
// } v1;
|
|
3315
|
+
// } ext;
|
|
3251
3316
|
//
|
|
3252
3317
|
// Hash hash;
|
|
3253
3318
|
// opaque code<>;
|
|
3254
3319
|
// };
|
|
3255
3320
|
//
|
|
3256
3321
|
// ===========================================================================
|
|
3257
|
-
xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("
|
|
3322
|
+
xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("ContractCodeEntryExt")], ["hash", xdr.lookup("Hash")], ["code", xdr.varOpaque()]]);
|
|
3258
3323
|
|
|
3259
3324
|
// === xdr source ============================================================
|
|
3260
3325
|
//
|
|
@@ -4449,10 +4514,69 @@ var types = xdr.config(function (xdr) {
|
|
|
4449
4514
|
|
|
4450
4515
|
// === xdr source ============================================================
|
|
4451
4516
|
//
|
|
4452
|
-
// struct
|
|
4517
|
+
// struct SorobanTransactionMetaExtV1
|
|
4453
4518
|
// {
|
|
4454
4519
|
// ExtensionPoint ext;
|
|
4455
4520
|
//
|
|
4521
|
+
// // The following are the components of the overall Soroban resource fee
|
|
4522
|
+
// // charged for the transaction.
|
|
4523
|
+
// // The following relation holds:
|
|
4524
|
+
// // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged`
|
|
4525
|
+
// // where `resourceFeeCharged` is the overall fee charged for the
|
|
4526
|
+
// // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee`
|
|
4527
|
+
// // i.e.we never charge more than the declared resource fee.
|
|
4528
|
+
// // The inclusion fee for charged the Soroban transaction can be found using
|
|
4529
|
+
// // the following equation:
|
|
4530
|
+
// // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`.
|
|
4531
|
+
//
|
|
4532
|
+
// // Total amount (in stroops) that has been charged for non-refundable
|
|
4533
|
+
// // Soroban resources.
|
|
4534
|
+
// // Non-refundable resources are charged based on the usage declared in
|
|
4535
|
+
// // the transaction envelope (such as `instructions`, `readBytes` etc.) and
|
|
4536
|
+
// // is charged regardless of the success of the transaction.
|
|
4537
|
+
// int64 totalNonRefundableResourceFeeCharged;
|
|
4538
|
+
// // Total amount (in stroops) that has been charged for refundable
|
|
4539
|
+
// // Soroban resource fees.
|
|
4540
|
+
// // Currently this comprises the rent fee (`rentFeeCharged`) and the
|
|
4541
|
+
// // fee for the events and return value.
|
|
4542
|
+
// // Refundable resources are charged based on the actual resources usage.
|
|
4543
|
+
// // Since currently refundable resources are only used for the successful
|
|
4544
|
+
// // transactions, this will be `0` for failed transactions.
|
|
4545
|
+
// int64 totalRefundableResourceFeeCharged;
|
|
4546
|
+
// // Amount (in stroops) that has been charged for rent.
|
|
4547
|
+
// // This is a part of `totalNonRefundableResourceFeeCharged`.
|
|
4548
|
+
// int64 rentFeeCharged;
|
|
4549
|
+
// };
|
|
4550
|
+
//
|
|
4551
|
+
// ===========================================================================
|
|
4552
|
+
xdr.struct("SorobanTransactionMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["totalNonRefundableResourceFeeCharged", xdr.lookup("Int64")], ["totalRefundableResourceFeeCharged", xdr.lookup("Int64")], ["rentFeeCharged", xdr.lookup("Int64")]]);
|
|
4553
|
+
|
|
4554
|
+
// === xdr source ============================================================
|
|
4555
|
+
//
|
|
4556
|
+
// union SorobanTransactionMetaExt switch (int v)
|
|
4557
|
+
// {
|
|
4558
|
+
// case 0:
|
|
4559
|
+
// void;
|
|
4560
|
+
// case 1:
|
|
4561
|
+
// SorobanTransactionMetaExtV1 v1;
|
|
4562
|
+
// };
|
|
4563
|
+
//
|
|
4564
|
+
// ===========================================================================
|
|
4565
|
+
xdr.union("SorobanTransactionMetaExt", {
|
|
4566
|
+
switchOn: xdr["int"](),
|
|
4567
|
+
switchName: "v",
|
|
4568
|
+
switches: [[0, xdr["void"]()], [1, "v1"]],
|
|
4569
|
+
arms: {
|
|
4570
|
+
v1: xdr.lookup("SorobanTransactionMetaExtV1")
|
|
4571
|
+
}
|
|
4572
|
+
});
|
|
4573
|
+
|
|
4574
|
+
// === xdr source ============================================================
|
|
4575
|
+
//
|
|
4576
|
+
// struct SorobanTransactionMeta
|
|
4577
|
+
// {
|
|
4578
|
+
// SorobanTransactionMetaExt ext;
|
|
4579
|
+
//
|
|
4456
4580
|
// ContractEvent events<>; // custom events populated by the
|
|
4457
4581
|
// // contracts themselves.
|
|
4458
4582
|
// SCVal returnValue; // return value of the host fn invocation
|
|
@@ -4464,7 +4588,7 @@ var types = xdr.config(function (xdr) {
|
|
|
4464
4588
|
// };
|
|
4465
4589
|
//
|
|
4466
4590
|
// ===========================================================================
|
|
4467
|
-
xdr.struct("SorobanTransactionMeta", [["ext", xdr.lookup("
|
|
4591
|
+
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)]]);
|
|
4468
4592
|
|
|
4469
4593
|
// === xdr source ============================================================
|
|
4470
4594
|
//
|
|
@@ -4570,11 +4694,40 @@ var types = xdr.config(function (xdr) {
|
|
|
4570
4694
|
|
|
4571
4695
|
// === xdr source ============================================================
|
|
4572
4696
|
//
|
|
4573
|
-
// struct
|
|
4697
|
+
// struct LedgerCloseMetaExtV1
|
|
4574
4698
|
// {
|
|
4575
|
-
// // We forgot to add an ExtensionPoint in v0 but at least
|
|
4576
|
-
// // we can add one now in v1.
|
|
4577
4699
|
// ExtensionPoint ext;
|
|
4700
|
+
// int64 sorobanFeeWrite1KB;
|
|
4701
|
+
// };
|
|
4702
|
+
//
|
|
4703
|
+
// ===========================================================================
|
|
4704
|
+
xdr.struct("LedgerCloseMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["sorobanFeeWrite1Kb", xdr.lookup("Int64")]]);
|
|
4705
|
+
|
|
4706
|
+
// === xdr source ============================================================
|
|
4707
|
+
//
|
|
4708
|
+
// union LedgerCloseMetaExt switch (int v)
|
|
4709
|
+
// {
|
|
4710
|
+
// case 0:
|
|
4711
|
+
// void;
|
|
4712
|
+
// case 1:
|
|
4713
|
+
// LedgerCloseMetaExtV1 v1;
|
|
4714
|
+
// };
|
|
4715
|
+
//
|
|
4716
|
+
// ===========================================================================
|
|
4717
|
+
xdr.union("LedgerCloseMetaExt", {
|
|
4718
|
+
switchOn: xdr["int"](),
|
|
4719
|
+
switchName: "v",
|
|
4720
|
+
switches: [[0, xdr["void"]()], [1, "v1"]],
|
|
4721
|
+
arms: {
|
|
4722
|
+
v1: xdr.lookup("LedgerCloseMetaExtV1")
|
|
4723
|
+
}
|
|
4724
|
+
});
|
|
4725
|
+
|
|
4726
|
+
// === xdr source ============================================================
|
|
4727
|
+
//
|
|
4728
|
+
// struct LedgerCloseMetaV1
|
|
4729
|
+
// {
|
|
4730
|
+
// LedgerCloseMetaExt ext;
|
|
4578
4731
|
//
|
|
4579
4732
|
// LedgerHeaderHistoryEntry ledgerHeader;
|
|
4580
4733
|
//
|
|
@@ -4604,7 +4757,7 @@ var types = xdr.config(function (xdr) {
|
|
|
4604
4757
|
// };
|
|
4605
4758
|
//
|
|
4606
4759
|
// ===========================================================================
|
|
4607
|
-
xdr.struct("LedgerCloseMetaV1", [["ext", xdr.lookup("
|
|
4760
|
+
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)]]);
|
|
4608
4761
|
|
|
4609
4762
|
// === xdr source ============================================================
|
|
4610
4763
|
//
|
|
@@ -10018,8 +10171,9 @@ var types = xdr.config(function (xdr) {
|
|
|
10018
10171
|
// InvokeVmFunction = 13,
|
|
10019
10172
|
// // Cost of computing a keccak256 hash from bytes.
|
|
10020
10173
|
// ComputeKeccak256Hash = 14,
|
|
10021
|
-
// // Cost of
|
|
10022
|
-
//
|
|
10174
|
+
// // Cost of decoding an ECDSA signature computed from a 256-bit prime modulus
|
|
10175
|
+
// // curve (e.g. secp256k1 and secp256r1)
|
|
10176
|
+
// DecodeEcdsaCurve256Sig = 15,
|
|
10023
10177
|
// // Cost of recovering an ECDSA secp256k1 key from a signature.
|
|
10024
10178
|
// RecoverEcdsaSecp256k1Key = 16,
|
|
10025
10179
|
// // Cost of int256 addition (`+`) and subtraction (`-`) operations
|
|
@@ -10033,7 +10187,55 @@ var types = xdr.config(function (xdr) {
|
|
|
10033
10187
|
// // Cost of int256 shift (`shl`, `shr`) operation
|
|
10034
10188
|
// Int256Shift = 21,
|
|
10035
10189
|
// // Cost of drawing random bytes using a ChaCha20 PRNG
|
|
10036
|
-
// ChaCha20DrawBytes = 22
|
|
10190
|
+
// ChaCha20DrawBytes = 22,
|
|
10191
|
+
//
|
|
10192
|
+
// // Cost of parsing wasm bytes that only encode instructions.
|
|
10193
|
+
// ParseWasmInstructions = 23,
|
|
10194
|
+
// // Cost of parsing a known number of wasm functions.
|
|
10195
|
+
// ParseWasmFunctions = 24,
|
|
10196
|
+
// // Cost of parsing a known number of wasm globals.
|
|
10197
|
+
// ParseWasmGlobals = 25,
|
|
10198
|
+
// // Cost of parsing a known number of wasm table entries.
|
|
10199
|
+
// ParseWasmTableEntries = 26,
|
|
10200
|
+
// // Cost of parsing a known number of wasm types.
|
|
10201
|
+
// ParseWasmTypes = 27,
|
|
10202
|
+
// // Cost of parsing a known number of wasm data segments.
|
|
10203
|
+
// ParseWasmDataSegments = 28,
|
|
10204
|
+
// // Cost of parsing a known number of wasm element segments.
|
|
10205
|
+
// ParseWasmElemSegments = 29,
|
|
10206
|
+
// // Cost of parsing a known number of wasm imports.
|
|
10207
|
+
// ParseWasmImports = 30,
|
|
10208
|
+
// // Cost of parsing a known number of wasm exports.
|
|
10209
|
+
// ParseWasmExports = 31,
|
|
10210
|
+
// // Cost of parsing a known number of data segment bytes.
|
|
10211
|
+
// ParseWasmDataSegmentBytes = 32,
|
|
10212
|
+
//
|
|
10213
|
+
// // Cost of instantiating wasm bytes that only encode instructions.
|
|
10214
|
+
// InstantiateWasmInstructions = 33,
|
|
10215
|
+
// // Cost of instantiating a known number of wasm functions.
|
|
10216
|
+
// InstantiateWasmFunctions = 34,
|
|
10217
|
+
// // Cost of instantiating a known number of wasm globals.
|
|
10218
|
+
// InstantiateWasmGlobals = 35,
|
|
10219
|
+
// // Cost of instantiating a known number of wasm table entries.
|
|
10220
|
+
// InstantiateWasmTableEntries = 36,
|
|
10221
|
+
// // Cost of instantiating a known number of wasm types.
|
|
10222
|
+
// InstantiateWasmTypes = 37,
|
|
10223
|
+
// // Cost of instantiating a known number of wasm data segments.
|
|
10224
|
+
// InstantiateWasmDataSegments = 38,
|
|
10225
|
+
// // Cost of instantiating a known number of wasm element segments.
|
|
10226
|
+
// InstantiateWasmElemSegments = 39,
|
|
10227
|
+
// // Cost of instantiating a known number of wasm imports.
|
|
10228
|
+
// InstantiateWasmImports = 40,
|
|
10229
|
+
// // Cost of instantiating a known number of wasm exports.
|
|
10230
|
+
// InstantiateWasmExports = 41,
|
|
10231
|
+
// // Cost of instantiating a known number of data segment bytes.
|
|
10232
|
+
// InstantiateWasmDataSegmentBytes = 42,
|
|
10233
|
+
//
|
|
10234
|
+
// // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded
|
|
10235
|
+
// // point on a 256-bit elliptic curve
|
|
10236
|
+
// Sec1DecodePointUncompressed = 43,
|
|
10237
|
+
// // Cost of verifying an ECDSA Secp256r1 signature
|
|
10238
|
+
// VerifyEcdsaSecp256r1Sig = 44
|
|
10037
10239
|
// };
|
|
10038
10240
|
//
|
|
10039
10241
|
// ===========================================================================
|
|
@@ -10053,14 +10255,36 @@ var types = xdr.config(function (xdr) {
|
|
|
10053
10255
|
vmCachedInstantiation: 12,
|
|
10054
10256
|
invokeVmFunction: 13,
|
|
10055
10257
|
computeKeccak256Hash: 14,
|
|
10056
|
-
|
|
10258
|
+
decodeEcdsaCurve256Sig: 15,
|
|
10057
10259
|
recoverEcdsaSecp256k1Key: 16,
|
|
10058
10260
|
int256AddSub: 17,
|
|
10059
10261
|
int256Mul: 18,
|
|
10060
10262
|
int256Div: 19,
|
|
10061
10263
|
int256Pow: 20,
|
|
10062
10264
|
int256Shift: 21,
|
|
10063
|
-
chaCha20DrawBytes: 22
|
|
10265
|
+
chaCha20DrawBytes: 22,
|
|
10266
|
+
parseWasmInstructions: 23,
|
|
10267
|
+
parseWasmFunctions: 24,
|
|
10268
|
+
parseWasmGlobals: 25,
|
|
10269
|
+
parseWasmTableEntries: 26,
|
|
10270
|
+
parseWasmTypes: 27,
|
|
10271
|
+
parseWasmDataSegments: 28,
|
|
10272
|
+
parseWasmElemSegments: 29,
|
|
10273
|
+
parseWasmImports: 30,
|
|
10274
|
+
parseWasmExports: 31,
|
|
10275
|
+
parseWasmDataSegmentBytes: 32,
|
|
10276
|
+
instantiateWasmInstructions: 33,
|
|
10277
|
+
instantiateWasmFunctions: 34,
|
|
10278
|
+
instantiateWasmGlobals: 35,
|
|
10279
|
+
instantiateWasmTableEntries: 36,
|
|
10280
|
+
instantiateWasmTypes: 37,
|
|
10281
|
+
instantiateWasmDataSegments: 38,
|
|
10282
|
+
instantiateWasmElemSegments: 39,
|
|
10283
|
+
instantiateWasmImports: 40,
|
|
10284
|
+
instantiateWasmExports: 41,
|
|
10285
|
+
instantiateWasmDataSegmentBytes: 42,
|
|
10286
|
+
sec1DecodePointUncompressed: 43,
|
|
10287
|
+
verifyEcdsaSecp256r1Sig: 44
|
|
10064
10288
|
});
|
|
10065
10289
|
|
|
10066
10290
|
// === xdr source ============================================================
|
|
@@ -10093,15 +10317,18 @@ var types = xdr.config(function (xdr) {
|
|
|
10093
10317
|
// // Number of snapshots to use when calculating average BucketList size
|
|
10094
10318
|
// uint32 bucketListSizeWindowSampleSize;
|
|
10095
10319
|
//
|
|
10320
|
+
// // How often to sample the BucketList size for the average, in ledgers
|
|
10321
|
+
// uint32 bucketListWindowSamplePeriod;
|
|
10322
|
+
//
|
|
10096
10323
|
// // Maximum number of bytes that we scan for eviction per ledger
|
|
10097
|
-
//
|
|
10324
|
+
// uint32 evictionScanSize;
|
|
10098
10325
|
//
|
|
10099
10326
|
// // Lowest BucketList level to be scanned to evict entries
|
|
10100
10327
|
// uint32 startingEvictionScanLevel;
|
|
10101
10328
|
// };
|
|
10102
10329
|
//
|
|
10103
10330
|
// ===========================================================================
|
|
10104
|
-
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("
|
|
10331
|
+
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")]]);
|
|
10105
10332
|
|
|
10106
10333
|
// === xdr source ============================================================
|
|
10107
10334
|
//
|
|
@@ -10227,6 +10454,13 @@ var types = xdr.config(function (xdr) {
|
|
|
10227
10454
|
;// CONCATENATED MODULE: ./src/xdr.js
|
|
10228
10455
|
|
|
10229
10456
|
/* harmony default export */ const src_xdr = (curr_generated);
|
|
10457
|
+
;// CONCATENATED MODULE: ./src/jsxdr.js
|
|
10458
|
+
|
|
10459
|
+
var cereal = {
|
|
10460
|
+
XdrWriter: xdr.XdrWriter,
|
|
10461
|
+
XdrReader: xdr.XdrReader
|
|
10462
|
+
};
|
|
10463
|
+
/* harmony default export */ const jsxdr = (cereal);
|
|
10230
10464
|
// EXTERNAL MODULE: ./node_modules/sha.js/index.js
|
|
10231
10465
|
var sha_js = __webpack_require__(2802);
|
|
10232
10466
|
;// CONCATENATED MODULE: ./src/hashing.js
|
|
@@ -10729,7 +10963,7 @@ function encodeCheck(versionByteName, data) {
|
|
|
10729
10963
|
data = strkey_Buffer.from(data);
|
|
10730
10964
|
var versionBuffer = strkey_Buffer.from([versionByte]);
|
|
10731
10965
|
var payload = strkey_Buffer.concat([versionBuffer, data]);
|
|
10732
|
-
var checksum = calculateChecksum(payload);
|
|
10966
|
+
var checksum = strkey_Buffer.from(calculateChecksum(payload));
|
|
10733
10967
|
var unencoded = strkey_Buffer.concat([payload, checksum]);
|
|
10734
10968
|
return base32.encode(unencoded);
|
|
10735
10969
|
}
|
|
@@ -21439,6 +21673,8 @@ function walkHelper(node, depth, callback, parent) {
|
|
|
21439
21673
|
|
|
21440
21674
|
|
|
21441
21675
|
|
|
21676
|
+
|
|
21677
|
+
|
|
21442
21678
|
|
|
21443
21679
|
|
|
21444
21680
|
|
|
@@ -30906,7 +31142,7 @@ module.exports = function availableTypedArrays() {
|
|
|
30906
31142
|
/******/ // startup
|
|
30907
31143
|
/******/ // Load entry module and return exports
|
|
30908
31144
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
30909
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
31145
|
+
/******/ var __webpack_exports__ = __webpack_require__(7957);
|
|
30910
31146
|
/******/ StellarBase = __webpack_exports__;
|
|
30911
31147
|
/******/
|
|
30912
31148
|
/******/ })()
|