@sentio/sdk-bundle 2.62.0-rc.4 → 2.62.0-rc.6
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/lib/aptos/builtin/0x1.js +4 -4
- package/lib/aptos/builtin/0x3.js +5 -5
- package/lib/aptos/builtin/0x4.js +5 -5
- package/lib/aptos/builtin/index.js +6 -6
- package/lib/aptos/ext/index.js +4 -4
- package/lib/aptos/index.js +4 -4
- package/lib/btc/index.js +2 -2
- package/lib/{chunk-TZZNYOP5.js → chunk-264SL7AZ.js} +8 -8
- package/lib/{chunk-TZZNYOP5.js.map → chunk-264SL7AZ.js.map} +1 -1
- package/lib/{chunk-5VSYP2OL.js → chunk-3I7QRROE.js} +6 -6
- package/lib/{chunk-UBN4AIBN.js → chunk-4IAG3OPB.js} +17 -17
- package/lib/chunk-4IAG3OPB.js.map +1 -0
- package/lib/{chunk-HUXLOSVG.js → chunk-7VLYXLQQ.js} +4 -4
- package/lib/{chunk-LS4KFTOX.js → chunk-7ZV3DAAO.js} +2 -2
- package/lib/{chunk-QKKV6J7I.js → chunk-CQSHL3XU.js} +3 -3
- package/lib/{chunk-SBBS65BV.js → chunk-CYZSY3BD.js} +85 -90
- package/lib/chunk-CYZSY3BD.js.map +1 -0
- package/lib/{chunk-OFJCWAK7.js → chunk-DH2Q7NZC.js} +4 -4
- package/lib/{chunk-K6JIQCSG.js → chunk-FOHTW6RT.js} +6 -6
- package/lib/{chunk-QFM54LFL.js → chunk-HEWGWMBC.js} +2 -2
- package/lib/{chunk-LO2IM2FK.js → chunk-HIGFJU7A.js} +28 -28
- package/lib/{chunk-LO2IM2FK.js.map → chunk-HIGFJU7A.js.map} +1 -1
- package/lib/{chunk-BEVZCTIQ.js → chunk-IIFJ2BBO.js} +44 -13
- package/lib/chunk-IIFJ2BBO.js.map +1 -0
- package/lib/{chunk-EIPZIEG7.js → chunk-NTLTKNCZ.js} +5 -5
- package/lib/{chunk-3OOAO77B.js → chunk-Q6CXMNB5.js} +8 -8
- package/lib/{chunk-3OOAO77B.js.map → chunk-Q6CXMNB5.js.map} +1 -1
- package/lib/{chunk-RWT5NZJU.js → chunk-QXKBOTZF.js} +2 -2
- package/lib/{chunk-B5XC7SMT.js → chunk-TETKQJS3.js} +2 -2
- package/lib/{chunk-2PTEHZZN.js → chunk-TTNIGDUS.js} +20 -20
- package/lib/chunk-TTNIGDUS.js.map +1 -0
- package/lib/{chunk-E63L72TO.js → chunk-VB7NRL7X.js} +5 -5
- package/lib/{chunk-C7F36NXO.js → chunk-XFJPJ6U5.js} +3 -3
- package/lib/{chunk-GZNNL6XM.js → chunk-Y6SBQRZL.js} +2 -2
- package/lib/core/index.js +1 -1
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
- package/lib/eth/builtin/erc1155.js +3 -3
- package/lib/eth/builtin/erc20.js +2 -2
- package/lib/eth/builtin/erc721.js +2 -2
- package/lib/eth/builtin/index.js +4 -4
- package/lib/eth/builtin/weth9.js +3 -3
- package/lib/eth/index.js +2 -2
- package/lib/fuel/index.js +2 -2
- package/lib/index.js +1 -1
- package/lib/iota/builtin/0x1.js +7 -7
- package/lib/iota/builtin/0x2.js +8 -8
- package/lib/iota/builtin/0x3.js +9 -9
- package/lib/iota/builtin/index.js +9 -9
- package/lib/iota/ext/index.js +4 -4
- package/lib/iota/index.js +6 -6
- package/lib/move/index.js +2 -2
- package/lib/solana/builtin/index.js +2 -2
- package/lib/solana/index.js +2 -2
- package/lib/stark/index.js +1 -1
- package/lib/store/index.js +1 -1
- package/lib/sui/builtin/0x1.js +7 -7
- package/lib/sui/builtin/0x2.js +8 -8
- package/lib/sui/builtin/0x3.js +9 -9
- package/lib/sui/builtin/index.js +9 -9
- package/lib/sui/ext/index.js +4 -4
- package/lib/sui/index.js +6 -6
- package/lib/testing/index.js +9 -9
- package/lib/utils/index.js +2 -2
- package/package.json +2 -2
- package/lib/chunk-2PTEHZZN.js.map +0 -1
- package/lib/chunk-BEVZCTIQ.js.map +0 -1
- package/lib/chunk-SBBS65BV.js.map +0 -1
- package/lib/chunk-UBN4AIBN.js.map +0 -1
- /package/lib/{chunk-5VSYP2OL.js.map → chunk-3I7QRROE.js.map} +0 -0
- /package/lib/{chunk-HUXLOSVG.js.map → chunk-7VLYXLQQ.js.map} +0 -0
- /package/lib/{chunk-LS4KFTOX.js.map → chunk-7ZV3DAAO.js.map} +0 -0
- /package/lib/{chunk-QKKV6J7I.js.map → chunk-CQSHL3XU.js.map} +0 -0
- /package/lib/{chunk-OFJCWAK7.js.map → chunk-DH2Q7NZC.js.map} +0 -0
- /package/lib/{chunk-K6JIQCSG.js.map → chunk-FOHTW6RT.js.map} +0 -0
- /package/lib/{chunk-QFM54LFL.js.map → chunk-HEWGWMBC.js.map} +0 -0
- /package/lib/{chunk-EIPZIEG7.js.map → chunk-NTLTKNCZ.js.map} +0 -0
- /package/lib/{chunk-RWT5NZJU.js.map → chunk-QXKBOTZF.js.map} +0 -0
- /package/lib/{chunk-B5XC7SMT.js.map → chunk-TETKQJS3.js.map} +0 -0
- /package/lib/{chunk-E63L72TO.js.map → chunk-VB7NRL7X.js.map} +0 -0
- /package/lib/{chunk-C7F36NXO.js.map → chunk-XFJPJ6U5.js.map} +0 -0
- /package/lib/{chunk-GZNNL6XM.js.map → chunk-Y6SBQRZL.js.map} +0 -0
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
TemplateInstanceState,
|
|
40
40
|
normalizeLabels,
|
|
41
41
|
scaleDown
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TTNIGDUS.js";
|
|
43
43
|
import {
|
|
44
44
|
require_lib
|
|
45
45
|
} from "./chunk-6B74I6XD.js";
|
|
@@ -8125,8 +8125,8 @@ import("node:process").then((p) => p.stdout.write(""));
|
|
|
8125
8125
|
// src/eth/builtin/erc20bytes.ts
|
|
8126
8126
|
import("node:process").then((p) => p.stdout.write(""));
|
|
8127
8127
|
|
|
8128
|
-
// ../../node_modules/.pnpm/lru-cache@11.
|
|
8129
|
-
var
|
|
8128
|
+
// ../../node_modules/.pnpm/lru-cache@11.2.1/node_modules/lru-cache/dist/esm/index.js
|
|
8129
|
+
var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
8130
8130
|
var warned = /* @__PURE__ */ new Set();
|
|
8131
8131
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
8132
8132
|
var emitWarning = /* @__PURE__ */ __name((msg, type, code, fn) => {
|
|
@@ -8226,9 +8226,17 @@ var LRUCache = class _LRUCache {
|
|
|
8226
8226
|
#max;
|
|
8227
8227
|
#maxSize;
|
|
8228
8228
|
#dispose;
|
|
8229
|
+
#onInsert;
|
|
8229
8230
|
#disposeAfter;
|
|
8230
8231
|
#fetchMethod;
|
|
8231
8232
|
#memoMethod;
|
|
8233
|
+
#perf;
|
|
8234
|
+
/**
|
|
8235
|
+
* {@link LRUCache.OptionsBase.perf}
|
|
8236
|
+
*/
|
|
8237
|
+
get perf() {
|
|
8238
|
+
return this.#perf;
|
|
8239
|
+
}
|
|
8232
8240
|
/**
|
|
8233
8241
|
* {@link LRUCache.OptionsBase.ttl}
|
|
8234
8242
|
*/
|
|
@@ -8307,6 +8315,7 @@ var LRUCache = class _LRUCache {
|
|
|
8307
8315
|
#hasDispose;
|
|
8308
8316
|
#hasFetchMethod;
|
|
8309
8317
|
#hasDisposeAfter;
|
|
8318
|
+
#hasOnInsert;
|
|
8310
8319
|
/**
|
|
8311
8320
|
* Do not call this method unless you need to inspect the
|
|
8312
8321
|
* inner workings of the cache. If anything returned by this
|
|
@@ -8383,6 +8392,12 @@ var LRUCache = class _LRUCache {
|
|
|
8383
8392
|
get dispose() {
|
|
8384
8393
|
return this.#dispose;
|
|
8385
8394
|
}
|
|
8395
|
+
/**
|
|
8396
|
+
* {@link LRUCache.OptionsBase.onInsert} (read-only)
|
|
8397
|
+
*/
|
|
8398
|
+
get onInsert() {
|
|
8399
|
+
return this.#onInsert;
|
|
8400
|
+
}
|
|
8386
8401
|
/**
|
|
8387
8402
|
* {@link LRUCache.OptionsBase.disposeAfter} (read-only)
|
|
8388
8403
|
*/
|
|
@@ -8390,7 +8405,13 @@ var LRUCache = class _LRUCache {
|
|
|
8390
8405
|
return this.#disposeAfter;
|
|
8391
8406
|
}
|
|
8392
8407
|
constructor(options) {
|
|
8393
|
-
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
|
|
8408
|
+
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, perf } = options;
|
|
8409
|
+
if (perf !== void 0) {
|
|
8410
|
+
if (typeof perf?.now !== "function") {
|
|
8411
|
+
throw new TypeError("perf option must have a now() method if specified");
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
this.#perf = perf ?? defaultPerf;
|
|
8394
8415
|
if (max !== 0 && !isPosInt(max)) {
|
|
8395
8416
|
throw new TypeError("max option must be a nonnegative integer");
|
|
8396
8417
|
}
|
|
@@ -8432,6 +8453,9 @@ var LRUCache = class _LRUCache {
|
|
|
8432
8453
|
if (typeof dispose === "function") {
|
|
8433
8454
|
this.#dispose = dispose;
|
|
8434
8455
|
}
|
|
8456
|
+
if (typeof onInsert === "function") {
|
|
8457
|
+
this.#onInsert = onInsert;
|
|
8458
|
+
}
|
|
8435
8459
|
if (typeof disposeAfter === "function") {
|
|
8436
8460
|
this.#disposeAfter = disposeAfter;
|
|
8437
8461
|
this.#disposed = [];
|
|
@@ -8440,6 +8464,7 @@ var LRUCache = class _LRUCache {
|
|
|
8440
8464
|
this.#disposed = void 0;
|
|
8441
8465
|
}
|
|
8442
8466
|
this.#hasDispose = !!this.#dispose;
|
|
8467
|
+
this.#hasOnInsert = !!this.#onInsert;
|
|
8443
8468
|
this.#hasDisposeAfter = !!this.#disposeAfter;
|
|
8444
8469
|
this.noDisposeOnSet = !!noDisposeOnSet;
|
|
8445
8470
|
this.noUpdateTTL = !!noUpdateTTL;
|
|
@@ -8495,7 +8520,7 @@ var LRUCache = class _LRUCache {
|
|
|
8495
8520
|
const starts = new ZeroArray(this.#max);
|
|
8496
8521
|
this.#ttls = ttls;
|
|
8497
8522
|
this.#starts = starts;
|
|
8498
|
-
this.#setItemTTL = (index, ttl, start = perf.now()) => {
|
|
8523
|
+
this.#setItemTTL = (index, ttl, start = this.#perf.now()) => {
|
|
8499
8524
|
starts[index] = ttl !== 0 ? start : 0;
|
|
8500
8525
|
ttls[index] = ttl;
|
|
8501
8526
|
if (ttl !== 0 && this.ttlAutopurge) {
|
|
@@ -8510,7 +8535,7 @@ var LRUCache = class _LRUCache {
|
|
|
8510
8535
|
}
|
|
8511
8536
|
};
|
|
8512
8537
|
this.#updateItemAge = (index) => {
|
|
8513
|
-
starts[index] = ttls[index] !== 0 ? perf.now() : 0;
|
|
8538
|
+
starts[index] = ttls[index] !== 0 ? this.#perf.now() : 0;
|
|
8514
8539
|
};
|
|
8515
8540
|
this.#statusTTL = (status, index) => {
|
|
8516
8541
|
if (ttls[index]) {
|
|
@@ -8527,7 +8552,7 @@ var LRUCache = class _LRUCache {
|
|
|
8527
8552
|
};
|
|
8528
8553
|
let cachedNow = 0;
|
|
8529
8554
|
const getNow = /* @__PURE__ */ __name(() => {
|
|
8530
|
-
const n = perf.now();
|
|
8555
|
+
const n = this.#perf.now();
|
|
8531
8556
|
if (this.ttlResolution > 0) {
|
|
8532
8557
|
cachedNow = n;
|
|
8533
8558
|
const t = setTimeout(() => cachedNow = 0, this.ttlResolution);
|
|
@@ -8830,7 +8855,7 @@ var LRUCache = class _LRUCache {
|
|
|
8830
8855
|
const ttl = this.#ttls[i];
|
|
8831
8856
|
const start = this.#starts[i];
|
|
8832
8857
|
if (ttl && start) {
|
|
8833
|
-
const remain = ttl - (perf.now() - start);
|
|
8858
|
+
const remain = ttl - (this.#perf.now() - start);
|
|
8834
8859
|
entry.ttl = remain;
|
|
8835
8860
|
entry.start = Date.now();
|
|
8836
8861
|
}
|
|
@@ -8842,7 +8867,7 @@ var LRUCache = class _LRUCache {
|
|
|
8842
8867
|
}
|
|
8843
8868
|
/**
|
|
8844
8869
|
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
8845
|
-
* passed to {@link
|
|
8870
|
+
* passed to {@link LRUCache#load}.
|
|
8846
8871
|
*
|
|
8847
8872
|
* The `start` fields are calculated relative to a portable `Date.now()`
|
|
8848
8873
|
* timestamp, even if `performance.now()` is available.
|
|
@@ -8864,7 +8889,7 @@ var LRUCache = class _LRUCache {
|
|
|
8864
8889
|
const entry = { value };
|
|
8865
8890
|
if (this.#ttls && this.#starts) {
|
|
8866
8891
|
entry.ttl = this.#ttls[i];
|
|
8867
|
-
const age = perf.now() - this.#starts[i];
|
|
8892
|
+
const age = this.#perf.now() - this.#starts[i];
|
|
8868
8893
|
entry.start = Math.floor(Date.now() - age);
|
|
8869
8894
|
}
|
|
8870
8895
|
if (this.#sizes) {
|
|
@@ -8888,7 +8913,7 @@ var LRUCache = class _LRUCache {
|
|
|
8888
8913
|
for (const [key, entry] of arr) {
|
|
8889
8914
|
if (entry.start) {
|
|
8890
8915
|
const age = Date.now() - entry.start;
|
|
8891
|
-
entry.start = perf.now() - age;
|
|
8916
|
+
entry.start = this.#perf.now() - age;
|
|
8892
8917
|
}
|
|
8893
8918
|
this.set(key, entry.value, entry);
|
|
8894
8919
|
}
|
|
@@ -8953,6 +8978,9 @@ var LRUCache = class _LRUCache {
|
|
|
8953
8978
|
if (status)
|
|
8954
8979
|
status.set = "add";
|
|
8955
8980
|
noUpdateTTL = false;
|
|
8981
|
+
if (this.#hasOnInsert) {
|
|
8982
|
+
this.#onInsert?.(v, k, "add");
|
|
8983
|
+
}
|
|
8956
8984
|
} else {
|
|
8957
8985
|
this.#moveToTail(index);
|
|
8958
8986
|
const oldVal = this.#valList[index];
|
|
@@ -8988,6 +9016,9 @@ var LRUCache = class _LRUCache {
|
|
|
8988
9016
|
} else if (status) {
|
|
8989
9017
|
status.set = "update";
|
|
8990
9018
|
}
|
|
9019
|
+
if (this.#hasOnInsert) {
|
|
9020
|
+
this.onInsert?.(v, k, v === oldVal ? "update" : "replace");
|
|
9021
|
+
}
|
|
8991
9022
|
}
|
|
8992
9023
|
if (ttl !== 0 && !this.#ttls) {
|
|
8993
9024
|
this.#initializeTTLTracking();
|
|
@@ -9157,7 +9188,7 @@ var LRUCache = class _LRUCache {
|
|
|
9157
9188
|
const bf2 = p;
|
|
9158
9189
|
if (this.#valList[index] === p) {
|
|
9159
9190
|
if (v2 === void 0) {
|
|
9160
|
-
if (bf2.__staleWhileFetching) {
|
|
9191
|
+
if (bf2.__staleWhileFetching !== void 0) {
|
|
9161
9192
|
this.#valList[index] = bf2.__staleWhileFetching;
|
|
9162
9193
|
} else {
|
|
9163
9194
|
this.#delete(k, "fetch");
|
|
@@ -13790,4 +13821,4 @@ js-sha3/src/sha3.js:
|
|
|
13790
13821
|
* @license MIT
|
|
13791
13822
|
*)
|
|
13792
13823
|
*/
|
|
13793
|
-
//# sourceMappingURL=chunk-
|
|
13824
|
+
//# sourceMappingURL=chunk-IIFJ2BBO.js.map
|