@acala-network/chopsticks-executor 0.9.2-5 → 0.9.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.
- package/dist/cjs/chopsticks_executor.js +86 -86
- package/dist/cjs/index.js +4 -20
- package/dist/esm/chopsticks_executor.js +87 -87
- package/dist/esm/index.js +4 -9
- package/package.json +1 -1
|
@@ -194,25 +194,10 @@ function _ts_generator(thisArg, body) {
|
|
|
194
194
|
var wasm;
|
|
195
195
|
var heap = new Array(128).fill(undefined);
|
|
196
196
|
heap.push(undefined, null, true, false);
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
200
|
-
var idx = heap_next;
|
|
201
|
-
heap_next = heap[idx];
|
|
202
|
-
heap[idx] = obj;
|
|
203
|
-
return idx;
|
|
204
|
-
}
|
|
205
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
|
|
206
|
-
ignoreBOM: true,
|
|
207
|
-
fatal: true
|
|
208
|
-
}) : {
|
|
209
|
-
decode: function() {
|
|
210
|
-
throw Error("TextDecoder not available");
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
if (typeof TextDecoder !== "undefined") {
|
|
214
|
-
cachedTextDecoder.decode();
|
|
197
|
+
function getObject(idx) {
|
|
198
|
+
return heap[idx];
|
|
215
199
|
}
|
|
200
|
+
var WASM_VECTOR_LEN = 0;
|
|
216
201
|
var cachedUint8Memory0 = null;
|
|
217
202
|
function getUint8Memory0() {
|
|
218
203
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
@@ -220,41 +205,6 @@ function getUint8Memory0() {
|
|
|
220
205
|
}
|
|
221
206
|
return cachedUint8Memory0;
|
|
222
207
|
}
|
|
223
|
-
function getStringFromWasm0(ptr, len) {
|
|
224
|
-
ptr = ptr >>> 0;
|
|
225
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
226
|
-
}
|
|
227
|
-
function getObject(idx) {
|
|
228
|
-
return heap[idx];
|
|
229
|
-
}
|
|
230
|
-
function dropObject(idx) {
|
|
231
|
-
if (idx < 132) return;
|
|
232
|
-
heap[idx] = heap_next;
|
|
233
|
-
heap_next = idx;
|
|
234
|
-
}
|
|
235
|
-
function takeObject(idx) {
|
|
236
|
-
var ret = getObject(idx);
|
|
237
|
-
dropObject(idx);
|
|
238
|
-
return ret;
|
|
239
|
-
}
|
|
240
|
-
function isLikeNone(x) {
|
|
241
|
-
return x === undefined || x === null;
|
|
242
|
-
}
|
|
243
|
-
var cachedFloat64Memory0 = null;
|
|
244
|
-
function getFloat64Memory0() {
|
|
245
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
246
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
247
|
-
}
|
|
248
|
-
return cachedFloat64Memory0;
|
|
249
|
-
}
|
|
250
|
-
var cachedInt32Memory0 = null;
|
|
251
|
-
function getInt32Memory0() {
|
|
252
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
253
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
254
|
-
}
|
|
255
|
-
return cachedInt32Memory0;
|
|
256
|
-
}
|
|
257
|
-
var WASM_VECTOR_LEN = 0;
|
|
258
208
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : {
|
|
259
209
|
encode: function() {
|
|
260
210
|
throw Error("TextEncoder not available");
|
|
@@ -299,6 +249,56 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
299
249
|
WASM_VECTOR_LEN = offset;
|
|
300
250
|
return ptr1;
|
|
301
251
|
}
|
|
252
|
+
function isLikeNone(x) {
|
|
253
|
+
return x === undefined || x === null;
|
|
254
|
+
}
|
|
255
|
+
var cachedInt32Memory0 = null;
|
|
256
|
+
function getInt32Memory0() {
|
|
257
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
258
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
259
|
+
}
|
|
260
|
+
return cachedInt32Memory0;
|
|
261
|
+
}
|
|
262
|
+
var heap_next = heap.length;
|
|
263
|
+
function dropObject(idx) {
|
|
264
|
+
if (idx < 132) return;
|
|
265
|
+
heap[idx] = heap_next;
|
|
266
|
+
heap_next = idx;
|
|
267
|
+
}
|
|
268
|
+
function takeObject(idx) {
|
|
269
|
+
var ret = getObject(idx);
|
|
270
|
+
dropObject(idx);
|
|
271
|
+
return ret;
|
|
272
|
+
}
|
|
273
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
|
|
274
|
+
ignoreBOM: true,
|
|
275
|
+
fatal: true
|
|
276
|
+
}) : {
|
|
277
|
+
decode: function() {
|
|
278
|
+
throw Error("TextDecoder not available");
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
if (typeof TextDecoder !== "undefined") {
|
|
282
|
+
cachedTextDecoder.decode();
|
|
283
|
+
}
|
|
284
|
+
function getStringFromWasm0(ptr, len) {
|
|
285
|
+
ptr = ptr >>> 0;
|
|
286
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
287
|
+
}
|
|
288
|
+
function addHeapObject(obj) {
|
|
289
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
290
|
+
var idx = heap_next;
|
|
291
|
+
heap_next = heap[idx];
|
|
292
|
+
heap[idx] = obj;
|
|
293
|
+
return idx;
|
|
294
|
+
}
|
|
295
|
+
var cachedFloat64Memory0 = null;
|
|
296
|
+
function getFloat64Memory0() {
|
|
297
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
298
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
299
|
+
}
|
|
300
|
+
return cachedFloat64Memory0;
|
|
301
|
+
}
|
|
302
302
|
var cachedBigInt64Memory0 = null;
|
|
303
303
|
function getBigInt64Memory0() {
|
|
304
304
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -533,24 +533,21 @@ function ___wbg_load() {
|
|
|
533
533
|
function __wbg_get_imports() {
|
|
534
534
|
var imports = {};
|
|
535
535
|
imports.wbg = {};
|
|
536
|
-
imports.wbg.
|
|
537
|
-
var
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
536
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
537
|
+
var obj = getObject(arg1);
|
|
538
|
+
var ret = typeof obj === "string" ? obj : undefined;
|
|
539
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
540
|
+
var len1 = WASM_VECTOR_LEN;
|
|
541
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
542
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
542
543
|
};
|
|
543
|
-
imports.wbg.
|
|
544
|
-
|
|
545
|
-
return addHeapObject(ret);
|
|
544
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
545
|
+
takeObject(arg0);
|
|
546
546
|
};
|
|
547
|
-
imports.wbg.
|
|
548
|
-
var ret = new
|
|
547
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
548
|
+
var ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
549
549
|
return addHeapObject(ret);
|
|
550
550
|
};
|
|
551
|
-
imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
552
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
553
|
-
};
|
|
554
551
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
555
552
|
var ret = getStringFromWasm0(arg0, arg1);
|
|
556
553
|
return addHeapObject(ret);
|
|
@@ -561,9 +558,6 @@ function __wbg_get_imports() {
|
|
|
561
558
|
return addHeapObject(ret);
|
|
562
559
|
}, arguments);
|
|
563
560
|
};
|
|
564
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
565
|
-
takeObject(arg0);
|
|
566
|
-
};
|
|
567
561
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
568
562
|
var val = getObject(arg0);
|
|
569
563
|
var ret = typeof val === "object" && val !== null;
|
|
@@ -622,18 +616,24 @@ function __wbg_get_imports() {
|
|
|
622
616
|
var ret = Number.isSafeInteger(getObject(arg0));
|
|
623
617
|
return ret;
|
|
624
618
|
};
|
|
625
|
-
imports.wbg.
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
629
|
-
var len1 = WASM_VECTOR_LEN;
|
|
630
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
631
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
619
|
+
imports.wbg.__wbg_new_c728d68b8b34487e = function() {
|
|
620
|
+
var ret = new Object();
|
|
621
|
+
return addHeapObject(ret);
|
|
632
622
|
};
|
|
633
|
-
imports.wbg.
|
|
634
|
-
|
|
623
|
+
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
624
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
625
|
+
};
|
|
626
|
+
imports.wbg.__wbg_new_08236689f0afb357 = function() {
|
|
627
|
+
var ret = new Array();
|
|
635
628
|
return addHeapObject(ret);
|
|
636
629
|
};
|
|
630
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
631
|
+
var ret = arg0;
|
|
632
|
+
return addHeapObject(ret);
|
|
633
|
+
};
|
|
634
|
+
imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
635
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
636
|
+
};
|
|
637
637
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
638
638
|
var obj = takeObject(arg0).original;
|
|
639
639
|
if (obj.cnt-- == 1) {
|
|
@@ -658,31 +658,31 @@ function __wbg_get_imports() {
|
|
|
658
658
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
659
659
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
660
660
|
};
|
|
661
|
-
imports.wbg.
|
|
661
|
+
imports.wbg.__wbg_getStorage_b3dfc127bb7cb52c = function(arg0, arg1) {
|
|
662
662
|
var ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
663
663
|
return addHeapObject(ret);
|
|
664
664
|
};
|
|
665
|
-
imports.wbg.
|
|
665
|
+
imports.wbg.__wbg_getStateRoot_bd9ab642bda5fd90 = function(arg0) {
|
|
666
666
|
var ret = getObject(arg0).getStateRoot();
|
|
667
667
|
return addHeapObject(ret);
|
|
668
668
|
};
|
|
669
|
-
imports.wbg.
|
|
669
|
+
imports.wbg.__wbg_getNextKey_5e93e323bd8971ba = function(arg0, arg1, arg2) {
|
|
670
670
|
var ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
|
|
671
671
|
return addHeapObject(ret);
|
|
672
672
|
};
|
|
673
|
-
imports.wbg.
|
|
673
|
+
imports.wbg.__wbg_offchainGetStorage_9932361b5f165cc5 = function(arg0, arg1) {
|
|
674
674
|
var ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
|
|
675
675
|
return addHeapObject(ret);
|
|
676
676
|
};
|
|
677
|
-
imports.wbg.
|
|
677
|
+
imports.wbg.__wbg_offchainTimestamp_a1694afbc025f171 = function(arg0) {
|
|
678
678
|
var ret = getObject(arg0).offchainTimestamp();
|
|
679
679
|
return addHeapObject(ret);
|
|
680
680
|
};
|
|
681
|
-
imports.wbg.
|
|
681
|
+
imports.wbg.__wbg_offchainRandomSeed_cd901cd7a7c4e4c0 = function(arg0) {
|
|
682
682
|
var ret = getObject(arg0).offchainRandomSeed();
|
|
683
683
|
return addHeapObject(ret);
|
|
684
684
|
};
|
|
685
|
-
imports.wbg.
|
|
685
|
+
imports.wbg.__wbg_offchainSubmitTransaction_89b76187f91f6f11 = function(arg0, arg1) {
|
|
686
686
|
var ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
687
687
|
return addHeapObject(ret);
|
|
688
688
|
};
|