@sentio/sdk 2.40.0-rc.10 → 2.40.0-rc.11

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 (54) hide show
  1. package/lib/aptos/builtin/0x1.js +10 -10
  2. package/lib/aptos/builtin/0x3.js +11 -11
  3. package/lib/aptos/builtin/index.js +11 -11
  4. package/lib/aptos/codegen/index.js +3 -3
  5. package/lib/aptos/ext/index.js +10 -10
  6. package/lib/aptos/index.js +10 -10
  7. package/lib/{chunk-KO4GSZCM.js → chunk-4NEOYBMR.js} +3 -3
  8. package/lib/{chunk-QKJ5SWA2.js → chunk-6MWPVXKG.js} +2 -4
  9. package/lib/{chunk-P6T5WFAZ.js → chunk-76RU4SYB.js} +4 -4
  10. package/lib/{chunk-7NFMED3E.js → chunk-BPZPKTSR.js} +2 -2
  11. package/lib/{chunk-KTAUVRJN.js → chunk-CX7EM7K7.js} +2 -4
  12. package/lib/{chunk-KVB555XD.js → chunk-F6SF2R55.js} +3 -9
  13. package/lib/{chunk-7NWX3CH7.js → chunk-FAUMHTLU.js} +21 -13
  14. package/lib/{chunk-QTWMU7GQ.js → chunk-FGR6EXCC.js} +1 -1
  15. package/lib/{chunk-K5OSTLHI.js → chunk-HBNWV2O3.js} +2 -4
  16. package/lib/{chunk-YOLIZKGZ.js → chunk-JML6KQ7M.js} +2 -2
  17. package/lib/{chunk-EMF4HXFG.js → chunk-K43KAJR6.js} +5 -7
  18. package/lib/chunk-MT6A22NI.js +263 -0
  19. package/lib/{chunk-YNJXNOVA.js → chunk-PCGXGGIB.js} +7 -12
  20. package/lib/{chunk-RXO7SOTL.js → chunk-RRRPPU6O.js} +11 -15
  21. package/lib/{chunk-SYEQKTIU.js → chunk-SA6PAUUL.js} +1 -1
  22. package/lib/{chunk-MWZAET2D.js → chunk-UF3TSY2F.js} +15 -20
  23. package/lib/{chunk-2NGFZ42P.js → chunk-UJ3VXEAG.js} +3 -3
  24. package/lib/{chunk-5XM56ENY.js → chunk-UQGPSCJM.js} +14 -18
  25. package/lib/{chunk-2QEQTKQY.js → chunk-URJTLNFN.js} +2 -4
  26. package/lib/{chunk-Q7BI45Z7.js → chunk-VKWWSRWE.js} +2 -2
  27. package/lib/{chunk-LICAL3XW.js → chunk-VPHR7P3P.js} +2 -2
  28. package/lib/core/index.js +3 -3
  29. package/lib/eth/builtin/eacaggregatorproxy.js +5 -5
  30. package/lib/eth/builtin/erc1155.js +5 -5
  31. package/lib/eth/builtin/erc20.js +4 -4
  32. package/lib/eth/builtin/erc721.js +4 -4
  33. package/lib/eth/builtin/index.js +8 -8
  34. package/lib/eth/builtin/weth9.js +5 -5
  35. package/lib/eth/codegen/index.js +4 -4
  36. package/lib/eth/index.js +5 -6
  37. package/lib/fuel/index.js +4 -4
  38. package/lib/index.js +3 -3
  39. package/lib/move/index.js +4 -4
  40. package/lib/solana/builtin/index.js +4 -4
  41. package/lib/solana/index.js +4 -4
  42. package/lib/store/index.js +6 -5
  43. package/lib/sui/builtin/0x1.js +12 -12
  44. package/lib/sui/builtin/0x2.js +13 -13
  45. package/lib/sui/builtin/0x3.js +14 -14
  46. package/lib/sui/builtin/index.js +14 -14
  47. package/lib/sui/codegen/index.js +2 -2
  48. package/lib/sui/ext/index.js +10 -10
  49. package/lib/sui/index.js +11 -11
  50. package/lib/testing/index.js +17 -19
  51. package/lib/utils/index.js +7 -7
  52. package/package.json +2 -33
  53. package/src/bundle.config.ts +1 -1
  54. package/lib/chunk-Z5PQR6UE.js +0 -77834
@@ -0,0 +1,263 @@
1
+ import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
+
3
+ // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/cryptoNode.js
4
+ import * as nc from "crypto";
5
+ var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : void 0;
6
+
7
+ // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_assert.js
8
+ function number(n) {
9
+ if (!Number.isSafeInteger(n) || n < 0)
10
+ throw new Error(`positive integer expected, not ${n}`);
11
+ }
12
+ function isBytes(a) {
13
+ return a instanceof Uint8Array || a != null && typeof a === "object" && a.constructor.name === "Uint8Array";
14
+ }
15
+ function bytes(b, ...lengths) {
16
+ if (!isBytes(b))
17
+ throw new Error("Uint8Array expected");
18
+ if (lengths.length > 0 && !lengths.includes(b.length))
19
+ throw new Error(`Uint8Array expected of length ${lengths}, not of length=${b.length}`);
20
+ }
21
+ function hash(h) {
22
+ if (typeof h !== "function" || typeof h.create !== "function")
23
+ throw new Error("Hash should be wrapped by utils.wrapConstructor");
24
+ number(h.outputLen);
25
+ number(h.blockLen);
26
+ }
27
+ function exists(instance, checkFinished = true) {
28
+ if (instance.destroyed)
29
+ throw new Error("Hash instance has been destroyed");
30
+ if (checkFinished && instance.finished)
31
+ throw new Error("Hash#digest() has already been called");
32
+ }
33
+ function output(out, instance) {
34
+ bytes(out);
35
+ const min = instance.outputLen;
36
+ if (out.length < min) {
37
+ throw new Error(`digestInto() expects output buffer of length at least ${min}`);
38
+ }
39
+ }
40
+
41
+ // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/utils.js
42
+ var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
43
+ var createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
44
+ var rotr = (word, shift) => word << 32 - shift | word >>> shift;
45
+ var rotl = (word, shift) => word << shift | word >>> 32 - shift >>> 0;
46
+ var isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
47
+ var byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
48
+ var byteSwapIfBE = isLE ? (n) => n : (n) => byteSwap(n);
49
+ function byteSwap32(arr) {
50
+ for (let i = 0; i < arr.length; i++) {
51
+ arr[i] = byteSwap(arr[i]);
52
+ }
53
+ }
54
+ var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
55
+ function bytesToHex(bytes2) {
56
+ bytes(bytes2);
57
+ let hex = "";
58
+ for (let i = 0; i < bytes2.length; i++) {
59
+ hex += hexes[bytes2[i]];
60
+ }
61
+ return hex;
62
+ }
63
+ var asciis = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
64
+ function asciiToBase16(char) {
65
+ if (char >= asciis._0 && char <= asciis._9)
66
+ return char - asciis._0;
67
+ if (char >= asciis._A && char <= asciis._F)
68
+ return char - (asciis._A - 10);
69
+ if (char >= asciis._a && char <= asciis._f)
70
+ return char - (asciis._a - 10);
71
+ return;
72
+ }
73
+ function hexToBytes(hex) {
74
+ if (typeof hex !== "string")
75
+ throw new Error("hex string expected, got " + typeof hex);
76
+ const hl = hex.length;
77
+ const al = hl / 2;
78
+ if (hl % 2)
79
+ throw new Error("padded hex string expected, got unpadded hex of length " + hl);
80
+ const array = new Uint8Array(al);
81
+ for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
82
+ const n1 = asciiToBase16(hex.charCodeAt(hi));
83
+ const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
84
+ if (n1 === void 0 || n2 === void 0) {
85
+ const char = hex[hi] + hex[hi + 1];
86
+ throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi);
87
+ }
88
+ array[ai] = n1 * 16 + n2;
89
+ }
90
+ return array;
91
+ }
92
+ function utf8ToBytes(str) {
93
+ if (typeof str !== "string")
94
+ throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
95
+ return new Uint8Array(new TextEncoder().encode(str));
96
+ }
97
+ function toBytes(data) {
98
+ if (typeof data === "string")
99
+ data = utf8ToBytes(data);
100
+ bytes(data);
101
+ return data;
102
+ }
103
+ function concatBytes(...arrays) {
104
+ let sum = 0;
105
+ for (let i = 0; i < arrays.length; i++) {
106
+ const a = arrays[i];
107
+ bytes(a);
108
+ sum += a.length;
109
+ }
110
+ const res = new Uint8Array(sum);
111
+ for (let i = 0, pad = 0; i < arrays.length; i++) {
112
+ const a = arrays[i];
113
+ res.set(a, pad);
114
+ pad += a.length;
115
+ }
116
+ return res;
117
+ }
118
+ var Hash = class {
119
+ // Safe version that clones internal state
120
+ clone() {
121
+ return this._cloneInto();
122
+ }
123
+ };
124
+ var toStr = {}.toString;
125
+ function checkOpts(defaults, opts) {
126
+ if (opts !== void 0 && toStr.call(opts) !== "[object Object]")
127
+ throw new Error("Options should be object or undefined");
128
+ const merged = Object.assign(defaults, opts);
129
+ return merged;
130
+ }
131
+ function wrapConstructor(hashCons) {
132
+ const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
133
+ const tmp = hashCons();
134
+ hashC.outputLen = tmp.outputLen;
135
+ hashC.blockLen = tmp.blockLen;
136
+ hashC.create = () => hashCons();
137
+ return hashC;
138
+ }
139
+ function wrapConstructorWithOpts(hashCons) {
140
+ const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
141
+ const tmp = hashCons({});
142
+ hashC.outputLen = tmp.outputLen;
143
+ hashC.blockLen = tmp.blockLen;
144
+ hashC.create = (opts) => hashCons(opts);
145
+ return hashC;
146
+ }
147
+ function wrapXOFConstructorWithOpts(hashCons) {
148
+ const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
149
+ const tmp = hashCons({});
150
+ hashC.outputLen = tmp.outputLen;
151
+ hashC.blockLen = tmp.blockLen;
152
+ hashC.create = (opts) => hashCons(opts);
153
+ return hashC;
154
+ }
155
+ function randomBytes(bytesLength = 32) {
156
+ if (crypto && typeof crypto.getRandomValues === "function") {
157
+ return crypto.getRandomValues(new Uint8Array(bytesLength));
158
+ }
159
+ throw new Error("crypto.getRandomValues must be defined");
160
+ }
161
+
162
+ // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_u64.js
163
+ var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
164
+ var _32n = /* @__PURE__ */ BigInt(32);
165
+ function fromBig(n, le = false) {
166
+ if (le)
167
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
168
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
169
+ }
170
+ function split(lst, le = false) {
171
+ let Ah = new Uint32Array(lst.length);
172
+ let Al = new Uint32Array(lst.length);
173
+ for (let i = 0; i < lst.length; i++) {
174
+ const { h, l } = fromBig(lst[i], le);
175
+ [Ah[i], Al[i]] = [h, l];
176
+ }
177
+ return [Ah, Al];
178
+ }
179
+ var toBig = (h, l) => BigInt(h >>> 0) << _32n | BigInt(l >>> 0);
180
+ var shrSH = (h, _l, s) => h >>> s;
181
+ var shrSL = (h, l, s) => h << 32 - s | l >>> s;
182
+ var rotrSH = (h, l, s) => h >>> s | l << 32 - s;
183
+ var rotrSL = (h, l, s) => h << 32 - s | l >>> s;
184
+ var rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
185
+ var rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
186
+ var rotr32H = (_h, l) => l;
187
+ var rotr32L = (h, _l) => h;
188
+ var rotlSH = (h, l, s) => h << s | l >>> 32 - s;
189
+ var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
190
+ var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
191
+ var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
192
+ function add(Ah, Al, Bh, Bl) {
193
+ const l = (Al >>> 0) + (Bl >>> 0);
194
+ return { h: Ah + Bh + (l / 2 ** 32 | 0) | 0, l: l | 0 };
195
+ }
196
+ var add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
197
+ var add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
198
+ var add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
199
+ var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
200
+ var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
201
+ var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
202
+ var u64 = {
203
+ fromBig,
204
+ split,
205
+ toBig,
206
+ shrSH,
207
+ shrSL,
208
+ rotrSH,
209
+ rotrSL,
210
+ rotrBH,
211
+ rotrBL,
212
+ rotr32H,
213
+ rotr32L,
214
+ rotlSH,
215
+ rotlSL,
216
+ rotlBH,
217
+ rotlBL,
218
+ add,
219
+ add3L,
220
+ add3H,
221
+ add4L,
222
+ add4H,
223
+ add5H,
224
+ add5L
225
+ };
226
+ var u64_default = u64;
227
+
228
+ export {
229
+ number,
230
+ bytes,
231
+ hash,
232
+ exists,
233
+ output,
234
+ u32,
235
+ createView,
236
+ rotr,
237
+ rotl,
238
+ isLE,
239
+ byteSwapIfBE,
240
+ byteSwap32,
241
+ bytesToHex,
242
+ hexToBytes,
243
+ utf8ToBytes,
244
+ toBytes,
245
+ concatBytes,
246
+ Hash,
247
+ checkOpts,
248
+ wrapConstructor,
249
+ wrapConstructorWithOpts,
250
+ wrapXOFConstructorWithOpts,
251
+ randomBytes,
252
+ split,
253
+ rotlSH,
254
+ rotlSL,
255
+ rotlBH,
256
+ rotlBL,
257
+ u64_default
258
+ };
259
+ /*! Bundled license information:
260
+
261
+ @noble/hashes/esm/utils.js:
262
+ (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
263
+ */
@@ -22,29 +22,22 @@ import {
22
22
  normalizeLabels,
23
23
  processGqlReceipt,
24
24
  require_lib2 as require_lib
25
- } from "./chunk-7NWX3CH7.js";
25
+ } from "./chunk-FAUMHTLU.js";
26
26
  import {
27
27
  arrayify,
28
28
  bn
29
29
  } from "./chunk-BQH37WZR.js";
30
- import {
31
- GLOBAL_CONFIG,
32
- ListStateStorage,
33
- Plugin,
34
- PluginManager,
35
- USER_PROCESSOR,
36
- errorString,
37
- mergeProcessResults
38
- } from "./chunk-Z5PQR6UE.js";
39
30
  import {
40
31
  __publicField,
41
32
  __toESM
42
33
  } from "./chunk-AXRHIURD.js";
43
34
 
44
35
  // src/fuel/fuel-plugin.ts
36
+ import { errorString, GLOBAL_CONFIG, mergeProcessResults as mergeProcessResults3, Plugin, PluginManager, USER_PROCESSOR } from "@sentio/runtime";
45
37
  var import_nice_grpc = __toESM(require_lib(), 1);
46
38
 
47
39
  // src/fuel/types.ts
40
+ import { ListStateStorage } from "@sentio/runtime";
48
41
  var _FuelProcessorState = class extends ListStateStorage {
49
42
  };
50
43
  var FuelProcessorState = _FuelProcessorState;
@@ -279,6 +272,7 @@ function arrayify2(value) {
279
272
  }
280
273
 
281
274
  // src/fuel/fuel-processor.ts
275
+ import { mergeProcessResults } from "@sentio/runtime";
282
276
  var FuelProcessor = class {
283
277
  constructor(config) {
284
278
  this.config = config;
@@ -440,6 +434,7 @@ var FuelProcessor = class {
440
434
  };
441
435
 
442
436
  // src/fuel/global-processor.ts
437
+ import { mergeProcessResults as mergeProcessResults2 } from "@sentio/runtime";
443
438
  var FuelGlobalProcessor = class {
444
439
  constructor(config) {
445
440
  this.config = config;
@@ -463,7 +458,7 @@ var FuelGlobalProcessor = class {
463
458
  tx = decodeFuelTransaction(call.transaction, this.provider);
464
459
  } catch (e) {
465
460
  console.error("error decoding transaction", e);
466
- return mergeProcessResults([]);
461
+ return mergeProcessResults2([]);
467
462
  }
468
463
  const ctx = new FuelContext(this.config.chainId, "*", this.config.name ?? "*", tx);
469
464
  await handler(tx, ctx);
@@ -568,7 +563,7 @@ var FuelPlugin = class extends Plugin {
568
563
  }
569
564
  promises.push(promise);
570
565
  }
571
- return mergeProcessResults(await Promise.all(promises));
566
+ return mergeProcessResults3(await Promise.all(promises));
572
567
  }
573
568
  };
574
569
  PluginManager.INSTANCE.register(new FuelPlugin());
@@ -20,19 +20,7 @@ import {
20
20
  TemplateInstanceState,
21
21
  normalizeLabels,
22
22
  require_lib2 as require_lib
23
- } from "./chunk-7NWX3CH7.js";
24
- import {
25
- Endpoints,
26
- GLOBAL_CONFIG,
27
- ListStateStorage,
28
- MapStateStorage,
29
- Plugin,
30
- PluginManager,
31
- USER_PROCESSOR,
32
- errorString,
33
- makeEthCallKey,
34
- mergeProcessResults
35
- } from "./chunk-Z5PQR6UE.js";
23
+ } from "./chunk-FAUMHTLU.js";
36
24
  import {
37
25
  __esm,
38
26
  __export,
@@ -18872,6 +18860,7 @@ function validateAndNormalizeAddress(address) {
18872
18860
  // src/eth/base-processor.ts
18873
18861
  var import_js_sha3 = __toESM(require_sha3(), 1);
18874
18862
  var import_chain = __toESM(require_dist(), 1);
18863
+ import { ListStateStorage } from "@sentio/runtime";
18875
18864
  var defaultPreprocessHandler = () => ({ ethCallParams: [] });
18876
18865
  var _GlobalProcessorState = class extends ListStateStorage {
18877
18866
  };
@@ -19780,6 +19769,7 @@ var PQueue = class extends import_index.default {
19780
19769
 
19781
19770
  // src/eth/provider.ts
19782
19771
  var import_chain2 = __toESM(require_dist(), 1);
19772
+ import { Endpoints } from "@sentio/runtime";
19783
19773
 
19784
19774
  // ../../node_modules/.pnpm/lru-cache@10.2.2/node_modules/lru-cache/dist/esm/index.js
19785
19775
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
@@ -21217,6 +21207,7 @@ var AccountBindOptions = class {
21217
21207
  };
21218
21208
 
21219
21209
  // src/eth/binds.ts
21210
+ import { MapStateStorage } from "@sentio/runtime";
21220
21211
  var _EthProcessorState = class extends MapStateStorage {
21221
21212
  };
21222
21213
  var EthProcessorState = _EthProcessorState;
@@ -21267,7 +21258,8 @@ var GenericProcessor = class extends BaseProcessor {
21267
21258
  };
21268
21259
 
21269
21260
  // src/eth/base-processor-template.ts
21270
- var _ProcessorTemplateProcessorState = class extends ListStateStorage {
21261
+ import { ListStateStorage as ListStateStorage2 } from "@sentio/runtime";
21262
+ var _ProcessorTemplateProcessorState = class extends ListStateStorage2 {
21271
21263
  };
21272
21264
  var ProcessorTemplateProcessorState = _ProcessorTemplateProcessorState;
21273
21265
  __publicField(ProcessorTemplateProcessorState, "INSTANCE", new _ProcessorTemplateProcessorState());
@@ -25020,7 +25012,8 @@ function mockTransferLog(contractAddress, event) {
25020
25012
  }
25021
25013
 
25022
25014
  // src/eth/account-processor-state.ts
25023
- var _AccountProcessorState = class extends ListStateStorage {
25015
+ import { ListStateStorage as ListStateStorage3 } from "@sentio/runtime";
25016
+ var _AccountProcessorState = class extends ListStateStorage3 {
25024
25017
  };
25025
25018
  var AccountProcessorState = _AccountProcessorState;
25026
25019
  __publicField(AccountProcessorState, "INSTANCE", new _AccountProcessorState());
@@ -25229,6 +25222,7 @@ var AccountProcessor = class {
25229
25222
  };
25230
25223
 
25231
25224
  // src/eth/eth-plugin.ts
25225
+ import { errorString, mergeProcessResults, Plugin, PluginManager, USER_PROCESSOR, GLOBAL_CONFIG } from "@sentio/runtime";
25232
25226
  var import_nice_grpc3 = __toESM(require_lib(), 1);
25233
25227
  var import_chain5 = __toESM(require_dist(), 1);
25234
25228
  var EthPlugin = class extends Plugin {
@@ -25639,6 +25633,7 @@ function mergePreprocessResults(results) {
25639
25633
 
25640
25634
  // src/eth/index.ts
25641
25635
  var import_chain6 = __toESM(require_dist(), 1);
25636
+ import { makeEthCallKey } from "@sentio/runtime";
25642
25637
 
25643
25638
  // src/eth/builtin/internal/erc721-processor.ts
25644
25639
  var templateContract2 = ERC721__factory.connect("0x0", DummyProvider);
@@ -26948,6 +26943,7 @@ export {
26948
26943
  AccountProcessor,
26949
26944
  EthPlugin,
26950
26945
  import_chain6 as import_chain,
26946
+ makeEthCallKey,
26951
26947
  ERC20ContractView,
26952
26948
  ERC20BoundContractView,
26953
26949
  ERC20Processor,
@@ -23,7 +23,7 @@ import {
23
23
  u32,
24
24
  wrapConstructor,
25
25
  wrapXOFConstructorWithOpts
26
- } from "./chunk-Z5PQR6UE.js";
26
+ } from "./chunk-MT6A22NI.js";
27
27
  import {
28
28
  __export
29
29
  } from "./chunk-AXRHIURD.js";
@@ -6,7 +6,7 @@ import {
6
6
  t,
7
7
  t2,
8
8
  toInternalModule
9
- } from "./chunk-2NGFZ42P.js";
9
+ } from "./chunk-UJ3VXEAG.js";
10
10
  import {
11
11
  fetch
12
12
  } from "./chunk-FDUS22B3.js";
@@ -14,11 +14,11 @@ import {
14
14
  getPriceByType,
15
15
  require_lib as require_lib2,
16
16
  require_lib2 as require_lib3
17
- } from "./chunk-EMF4HXFG.js";
17
+ } from "./chunk-K43KAJR6.js";
18
18
  import {
19
19
  MoveAccountContext,
20
20
  MoveContext
21
- } from "./chunk-QTWMU7GQ.js";
21
+ } from "./chunk-FGR6EXCC.js";
22
22
  import {
23
23
  ANY_TYPE,
24
24
  AbstractMoveCoder,
@@ -41,17 +41,7 @@ import {
41
41
  normalizeLabels,
42
42
  require_lib2 as require_lib,
43
43
  require_minimal
44
- } from "./chunk-7NWX3CH7.js";
45
- import {
46
- Endpoints,
47
- GLOBAL_CONFIG,
48
- ListStateStorage,
49
- Plugin,
50
- PluginManager,
51
- USER_PROCESSOR,
52
- errorString,
53
- mergeProcessResults
54
- } from "./chunk-Z5PQR6UE.js";
44
+ } from "./chunk-FAUMHTLU.js";
55
45
  import {
56
46
  __export,
57
47
  __publicField,
@@ -194,6 +184,7 @@ function defaultMoveCoder2(network = AptosNetwork.MAIN_NET) {
194
184
 
195
185
  // src/aptos/context.ts
196
186
  var import_nice_grpc = __toESM(require_lib(), 1);
187
+ import { Endpoints } from "@sentio/runtime";
197
188
  var AptosContext = class extends MoveContext {
198
189
  moduleName;
199
190
  version;
@@ -283,6 +274,7 @@ var AptosResourcesContext = class extends MoveAccountContext {
283
274
  };
284
275
 
285
276
  // src/aptos/aptos-processor.ts
277
+ import { ListStateStorage, mergeProcessResults } from "@sentio/runtime";
286
278
  var import_nice_grpc2 = __toESM(require_lib(), 1);
287
279
  var DEFAULT_FETCH_CONFIG = {
288
280
  resourceChanges: false,
@@ -514,7 +506,8 @@ function configure(options) {
514
506
  }
515
507
 
516
508
  // src/aptos/aptos-resource-processor-template.ts
517
- var _AptosResourceProcessorTemplateState = class extends ListStateStorage {
509
+ import { ListStateStorage as ListStateStorage2 } from "@sentio/runtime";
510
+ var _AptosResourceProcessorTemplateState = class extends ListStateStorage2 {
518
511
  };
519
512
  var AptosResourceProcessorTemplateState = _AptosResourceProcessorTemplateState;
520
513
  __publicField(AptosResourceProcessorTemplateState, "INSTANCE", new _AptosResourceProcessorTemplateState());
@@ -1642,15 +1635,16 @@ function isSet(value) {
1642
1635
  var import_nice_grpc3 = __toESM(require_lib(), 1);
1643
1636
  var import_nice_grpc_client_middleware_retry = __toESM(require_lib2(), 1);
1644
1637
  var import_nice_grpc_prometheus = __toESM(require_lib3(), 1);
1638
+ import { Endpoints as Endpoints2 } from "@sentio/runtime";
1645
1639
  function getChainQueryClient(address) {
1646
1640
  if (!address) {
1647
- address = Endpoints.INSTANCE.chainQueryAPI;
1641
+ address = Endpoints2.INSTANCE.chainQueryAPI;
1648
1642
  }
1649
1643
  const channel = (0, import_nice_grpc3.createChannel)(address);
1650
1644
  return (0, import_nice_grpc3.createClientFactory)().use((0, import_nice_grpc_prometheus.prometheusClientMiddleware)()).use(import_nice_grpc_client_middleware_retry.retryMiddleware).create(AptosQueryDefinition, channel);
1651
1645
  }
1652
1646
  function getAptosClient(network = AptosNetwork.MAIN_NET) {
1653
- const chainServer = Endpoints.INSTANCE.chainServer.get(network);
1647
+ const chainServer = Endpoints2.INSTANCE.chainServer.get(network);
1654
1648
  if (chainServer) {
1655
1649
  return new t2(new t({ fullnode: chainServer + "/v1" }));
1656
1650
  }
@@ -1658,6 +1652,7 @@ function getAptosClient(network = AptosNetwork.MAIN_NET) {
1658
1652
  }
1659
1653
 
1660
1654
  // src/aptos/aptos-plugin.ts
1655
+ import { errorString, GLOBAL_CONFIG, mergeProcessResults as mergeProcessResults2, Plugin, PluginManager, USER_PROCESSOR } from "@sentio/runtime";
1661
1656
  var import_nice_grpc4 = __toESM(require_lib(), 1);
1662
1657
 
1663
1658
  // src/aptos/ext/coin.ts
@@ -3343,7 +3338,7 @@ var AptosPlugin = class extends Plugin {
3343
3338
  }
3344
3339
  promises.push(promise);
3345
3340
  }
3346
- return mergeProcessResults(await Promise.all(promises));
3341
+ return mergeProcessResults2(await Promise.all(promises));
3347
3342
  }
3348
3343
  async processAptosResource(binding) {
3349
3344
  if (!binding.data?.aptResource) {
@@ -3363,7 +3358,7 @@ var AptosPlugin = class extends Plugin {
3363
3358
  }
3364
3359
  promises.push(promise);
3365
3360
  }
3366
- return mergeProcessResults(await Promise.all(promises));
3361
+ return mergeProcessResults2(await Promise.all(promises));
3367
3362
  }
3368
3363
  async processAptosFunctionCall(binding) {
3369
3364
  if (!binding.data?.aptCall) {
@@ -3380,7 +3375,7 @@ var AptosPlugin = class extends Plugin {
3380
3375
  }
3381
3376
  promises.push(promise);
3382
3377
  }
3383
- return mergeProcessResults(await Promise.all(promises));
3378
+ return mergeProcessResults2(await Promise.all(promises));
3384
3379
  }
3385
3380
  };
3386
3381
  PluginManager.INSTANCE.register(new AptosPlugin());
@@ -33,9 +33,8 @@ import {
33
33
  validateBasic,
34
34
  validateObject,
35
35
  wNAF
36
- } from "./chunk-SYEQKTIU.js";
36
+ } from "./chunk-SA6PAUUL.js";
37
37
  import {
38
- Endpoints,
39
38
  bytes,
40
39
  bytesToHex,
41
40
  concatBytes,
@@ -45,7 +44,7 @@ import {
45
44
  u64_default,
46
45
  utf8ToBytes,
47
46
  wrapConstructor
48
- } from "./chunk-Z5PQR6UE.js";
47
+ } from "./chunk-MT6A22NI.js";
49
48
  import {
50
49
  __commonJS,
51
50
  __require,
@@ -12380,6 +12379,7 @@ var b12 = ((r25) => (r25[r25.Ed25519 = 0] = "Ed25519", r25[r25.Secp256k1Ecdsa =
12380
12379
  var S6 = ((s6) => (s6[s6.DeriveAuid = 251] = "DeriveAuid", s6[s6.DeriveObjectAddressFromObject = 252] = "DeriveObjectAddressFromObject", s6[s6.DeriveObjectAddressFromGuid = 253] = "DeriveObjectAddressFromGuid", s6[s6.DeriveObjectAddressFromSeed = 254] = "DeriveObjectAddressFromSeed", s6[s6.DeriveResourceAccountAddress = 255] = "DeriveResourceAccountAddress", s6))(S6 || {});
12381
12380
 
12382
12381
  // src/aptos/network.ts
12382
+ import { Endpoints } from "@sentio/runtime";
12383
12383
  var AptosNetwork = {
12384
12384
  MAIN_NET: import_chain.AptosChainId.APTOS_MAINNET,
12385
12385
  TEST_NET: import_chain.AptosChainId.APTOS_TESTNET,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
2
2
  import {
3
3
  initCoinList
4
- } from "./chunk-7NFMED3E.js";
4
+ } from "./chunk-BPZPKTSR.js";
5
5
  import {
6
6
  SuiChainAdapter,
7
7
  toInternalModule
@@ -13,11 +13,11 @@ import {
13
13
  getSuiMoveConfig,
14
14
  normalizeSuiAddress,
15
15
  normalizeSuiObjectId
16
- } from "./chunk-YOLIZKGZ.js";
16
+ } from "./chunk-JML6KQ7M.js";
17
17
  import {
18
18
  MoveAccountContext,
19
19
  MoveContext
20
- } from "./chunk-QTWMU7GQ.js";
20
+ } from "./chunk-FGR6EXCC.js";
21
21
  import {
22
22
  ANY_TYPE,
23
23
  AbstractMoveCoder,
@@ -39,21 +39,14 @@ import {
39
39
  TemplateInstanceState,
40
40
  normalizeLabels,
41
41
  require_lib2 as require_lib
42
- } from "./chunk-7NWX3CH7.js";
43
- import {
44
- ListStateStorage,
45
- Plugin,
46
- PluginManager,
47
- USER_PROCESSOR,
48
- errorString,
49
- mergeProcessResults
50
- } from "./chunk-Z5PQR6UE.js";
42
+ } from "./chunk-FAUMHTLU.js";
51
43
  import {
52
44
  __publicField,
53
45
  __toESM
54
46
  } from "./chunk-AXRHIURD.js";
55
47
 
56
48
  // src/sui/sui-processor.ts
49
+ import { ListStateStorage, mergeProcessResults } from "@sentio/runtime";
57
50
  var import_nice_grpc = __toESM(require_lib(), 1);
58
51
 
59
52
  // ../../node_modules/.pnpm/@typemove+sui@1.6.1_svelte@4.2.18_typescript@5.5.3/node_modules/@typemove/sui/dist/esm/move-coder.js
@@ -593,11 +586,12 @@ var SuiGlobalProcessor = class extends SuiBaseProcessor {
593
586
  };
594
587
 
595
588
  // src/sui/sui-object-processor.ts
589
+ import { ListStateStorage as ListStateStorage2 } from "@sentio/runtime";
596
590
  var import_nice_grpc2 = __toESM(require_lib(), 1);
597
591
  var DEFAULT_ACCOUNT_FETCH_CONFIG = {
598
592
  owned: false
599
593
  };
600
- var _SuiAccountProcessorState = class extends ListStateStorage {
594
+ var _SuiAccountProcessorState = class extends ListStateStorage2 {
601
595
  };
602
596
  var SuiAccountProcessorState = _SuiAccountProcessorState;
603
597
  __publicField(SuiAccountProcessorState, "INSTANCE", new _SuiAccountProcessorState());
@@ -738,7 +732,8 @@ var SuiWrappedObjectProcessor = class extends SuiBaseObjectOrAddressProcessor {
738
732
  };
739
733
 
740
734
  // src/sui/sui-object-processor-template.ts
741
- var _SuiAccountProcessorTemplateState = class extends ListStateStorage {
735
+ import { ListStateStorage as ListStateStorage3 } from "@sentio/runtime";
736
+ var _SuiAccountProcessorTemplateState = class extends ListStateStorage3 {
742
737
  };
743
738
  var SuiAccountProcessorTemplateState = _SuiAccountProcessorTemplateState;
744
739
  __publicField(SuiAccountProcessorTemplateState, "INSTANCE", new _SuiAccountProcessorTemplateState());
@@ -845,6 +840,7 @@ var SuiWrappedObjectProcessorTemplate = class extends SuiObjectOrAddressProcesso
845
840
  };
846
841
 
847
842
  // src/sui/sui-plugin.ts
843
+ import { errorString, mergeProcessResults as mergeProcessResults2, Plugin, PluginManager, USER_PROCESSOR } from "@sentio/runtime";
848
844
  var import_nice_grpc3 = __toESM(require_lib(), 1);
849
845
  var import_chain = __toESM(require_dist(), 1);
850
846
  var SuiPlugin = class extends Plugin {
@@ -1001,7 +997,7 @@ var SuiPlugin = class extends Plugin {
1001
997
  })
1002
998
  );
1003
999
  }
1004
- return mergeProcessResults(await Promise.all(promises));
1000
+ return mergeProcessResults2(await Promise.all(promises));
1005
1001
  }
1006
1002
  async processSuiFunctionCall(binding) {
1007
1003
  if (!binding.data?.suiCall) {
@@ -1015,7 +1011,7 @@ var SuiPlugin = class extends Plugin {
1015
1011
  });
1016
1012
  promises.push(promise);
1017
1013
  }
1018
- return mergeProcessResults(await Promise.all(promises));
1014
+ return mergeProcessResults2(await Promise.all(promises));
1019
1015
  }
1020
1016
  async processSuiObject(binding) {
1021
1017
  if (!binding.data?.suiObject) {
@@ -1033,7 +1029,7 @@ var SuiPlugin = class extends Plugin {
1033
1029
  })
1034
1030
  );
1035
1031
  }
1036
- return mergeProcessResults(await Promise.all(promises));
1032
+ return mergeProcessResults2(await Promise.all(promises));
1037
1033
  }
1038
1034
  async processSuiObjectChange(binding) {
1039
1035
  if (!binding.data?.suiObjectChange) {
@@ -1051,7 +1047,7 @@ var SuiPlugin = class extends Plugin {
1051
1047
  })
1052
1048
  );
1053
1049
  }
1054
- return mergeProcessResults(await Promise.all(promises));
1050
+ return mergeProcessResults2(await Promise.all(promises));
1055
1051
  }
1056
1052
  supportedHandlers = [
1057
1053
  HandlerType.SUI_EVENT,