@acala-network/chopsticks-executor 0.9.8-1 → 0.9.8-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 +94 -90
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/esm/chopsticks_executor.js +95 -91
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/package.json +1 -1
|
@@ -200,52 +200,7 @@ heap.push(undefined, null, true, false);
|
|
|
200
200
|
function getObject(idx) {
|
|
201
201
|
return heap[idx];
|
|
202
202
|
}
|
|
203
|
-
var
|
|
204
|
-
function dropObject(idx) {
|
|
205
|
-
if (idx < 132) return;
|
|
206
|
-
heap[idx] = heap_next;
|
|
207
|
-
heap_next = idx;
|
|
208
|
-
}
|
|
209
|
-
function takeObject(idx) {
|
|
210
|
-
var ret = getObject(idx);
|
|
211
|
-
dropObject(idx);
|
|
212
|
-
return ret;
|
|
213
|
-
}
|
|
214
|
-
function addHeapObject(obj) {
|
|
215
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
216
|
-
var idx = heap_next;
|
|
217
|
-
heap_next = heap[idx];
|
|
218
|
-
heap[idx] = obj;
|
|
219
|
-
return idx;
|
|
220
|
-
}
|
|
221
|
-
function isLikeNone(x) {
|
|
222
|
-
return x === undefined || x === null;
|
|
223
|
-
}
|
|
224
|
-
var cachedFloat64Memory0 = null;
|
|
225
|
-
function getFloat64Memory0() {
|
|
226
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
227
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
228
|
-
}
|
|
229
|
-
return cachedFloat64Memory0;
|
|
230
|
-
}
|
|
231
|
-
var cachedInt32Memory0 = null;
|
|
232
|
-
function getInt32Memory0() {
|
|
233
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
234
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
235
|
-
}
|
|
236
|
-
return cachedInt32Memory0;
|
|
237
|
-
}
|
|
238
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
|
|
239
|
-
ignoreBOM: true,
|
|
240
|
-
fatal: true
|
|
241
|
-
}) : {
|
|
242
|
-
decode: function() {
|
|
243
|
-
throw Error("TextDecoder not available");
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
if (typeof TextDecoder !== "undefined") {
|
|
247
|
-
cachedTextDecoder.decode();
|
|
248
|
-
}
|
|
203
|
+
var WASM_VECTOR_LEN = 0;
|
|
249
204
|
var cachedUint8Memory0 = null;
|
|
250
205
|
function getUint8Memory0() {
|
|
251
206
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
@@ -253,11 +208,6 @@ function getUint8Memory0() {
|
|
|
253
208
|
}
|
|
254
209
|
return cachedUint8Memory0;
|
|
255
210
|
}
|
|
256
|
-
function getStringFromWasm0(ptr, len) {
|
|
257
|
-
ptr = ptr >>> 0;
|
|
258
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
259
|
-
}
|
|
260
|
-
var WASM_VECTOR_LEN = 0;
|
|
261
211
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : {
|
|
262
212
|
encode: function() {
|
|
263
213
|
throw Error("TextEncoder not available");
|
|
@@ -302,6 +252,49 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
302
252
|
WASM_VECTOR_LEN = offset;
|
|
303
253
|
return ptr1;
|
|
304
254
|
}
|
|
255
|
+
function isLikeNone(x) {
|
|
256
|
+
return x === undefined || x === null;
|
|
257
|
+
}
|
|
258
|
+
var cachedInt32Memory0 = null;
|
|
259
|
+
function getInt32Memory0() {
|
|
260
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
261
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
262
|
+
}
|
|
263
|
+
return cachedInt32Memory0;
|
|
264
|
+
}
|
|
265
|
+
var heap_next = heap.length;
|
|
266
|
+
function dropObject(idx) {
|
|
267
|
+
if (idx < 132) return;
|
|
268
|
+
heap[idx] = heap_next;
|
|
269
|
+
heap_next = idx;
|
|
270
|
+
}
|
|
271
|
+
function takeObject(idx) {
|
|
272
|
+
var ret = getObject(idx);
|
|
273
|
+
dropObject(idx);
|
|
274
|
+
return ret;
|
|
275
|
+
}
|
|
276
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
|
|
277
|
+
ignoreBOM: true,
|
|
278
|
+
fatal: true
|
|
279
|
+
}) : {
|
|
280
|
+
decode: function() {
|
|
281
|
+
throw Error("TextDecoder not available");
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
if (typeof TextDecoder !== "undefined") {
|
|
285
|
+
cachedTextDecoder.decode();
|
|
286
|
+
}
|
|
287
|
+
function getStringFromWasm0(ptr, len) {
|
|
288
|
+
ptr = ptr >>> 0;
|
|
289
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
290
|
+
}
|
|
291
|
+
function addHeapObject(obj) {
|
|
292
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
293
|
+
var idx = heap_next;
|
|
294
|
+
heap_next = heap[idx];
|
|
295
|
+
heap[idx] = obj;
|
|
296
|
+
return idx;
|
|
297
|
+
}
|
|
305
298
|
var cachedBigInt64Memory0 = null;
|
|
306
299
|
function getBigInt64Memory0() {
|
|
307
300
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -309,6 +302,13 @@ function getBigInt64Memory0() {
|
|
|
309
302
|
}
|
|
310
303
|
return cachedBigInt64Memory0;
|
|
311
304
|
}
|
|
305
|
+
var cachedFloat64Memory0 = null;
|
|
306
|
+
function getFloat64Memory0() {
|
|
307
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
308
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
309
|
+
}
|
|
310
|
+
return cachedFloat64Memory0;
|
|
311
|
+
}
|
|
312
312
|
function debugString(val) {
|
|
313
313
|
// primitive types
|
|
314
314
|
var type = typeof val === "undefined" ? "undefined" : _type_of(val);
|
|
@@ -406,8 +406,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
406
406
|
real.original = state;
|
|
407
407
|
return real;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
wasm.
|
|
409
|
+
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
410
|
+
wasm.wasm_bindgen__convert__closures__invoke1_mut__h7a5e866c0a397d34(arg0, arg1, addHeapObject(arg2));
|
|
411
411
|
}
|
|
412
412
|
function handleError(f, args) {
|
|
413
413
|
try {
|
|
@@ -442,8 +442,8 @@ function testing(js, key) {
|
|
|
442
442
|
var ret = wasm.testing(addHeapObject(js), addHeapObject(key));
|
|
443
443
|
return takeObject(ret);
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
wasm.
|
|
445
|
+
function __wbg_adapter_111(arg0, arg1, arg2, arg3) {
|
|
446
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h26b9ddb6e7e04f97(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
447
447
|
}
|
|
448
448
|
function __wbg_load(module, imports) {
|
|
449
449
|
return ___wbg_load.apply(this, arguments);
|
|
@@ -540,24 +540,19 @@ function ___wbg_load() {
|
|
|
540
540
|
function __wbg_get_imports() {
|
|
541
541
|
var imports = {};
|
|
542
542
|
imports.wbg = {};
|
|
543
|
-
imports.wbg.
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
543
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
544
|
+
var obj = getObject(arg1);
|
|
545
|
+
var ret = typeof obj === "string" ? obj : undefined;
|
|
546
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
547
|
+
var len1 = WASM_VECTOR_LEN;
|
|
548
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
549
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
548
550
|
};
|
|
549
551
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
550
552
|
takeObject(arg0);
|
|
551
553
|
};
|
|
552
|
-
imports.wbg.
|
|
553
|
-
var ret = new
|
|
554
|
-
return addHeapObject(ret);
|
|
555
|
-
};
|
|
556
|
-
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
557
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
558
|
-
};
|
|
559
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
560
|
-
var ret = arg0;
|
|
554
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
555
|
+
var ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
561
556
|
return addHeapObject(ret);
|
|
562
557
|
};
|
|
563
558
|
imports.wbg.__wbg_new_08236689f0afb357 = function() {
|
|
@@ -567,12 +562,18 @@ function __wbg_get_imports() {
|
|
|
567
562
|
imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
568
563
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
569
564
|
};
|
|
565
|
+
imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() {
|
|
566
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
567
|
+
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
568
|
+
return addHeapObject(ret);
|
|
569
|
+
}, arguments);
|
|
570
|
+
};
|
|
570
571
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
571
572
|
var val = getObject(arg0);
|
|
572
573
|
var ret = typeof val === "object" && val !== null;
|
|
573
574
|
return ret;
|
|
574
575
|
};
|
|
575
|
-
imports.wbg.
|
|
576
|
+
imports.wbg.__wbg_getwithrefkey_4a92a5eca60879b9 = function(arg0, arg1) {
|
|
576
577
|
var ret = getObject(arg0)[getObject(arg1)];
|
|
577
578
|
return addHeapObject(ret);
|
|
578
579
|
};
|
|
@@ -615,22 +616,27 @@ function __wbg_get_imports() {
|
|
|
615
616
|
var ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
616
617
|
return ret;
|
|
617
618
|
};
|
|
618
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
619
|
-
var obj = getObject(arg1);
|
|
620
|
-
var ret = typeof obj === "number" ? obj : undefined;
|
|
621
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
622
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
623
|
-
};
|
|
624
619
|
imports.wbg.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
|
|
625
620
|
var ret = Number.isSafeInteger(getObject(arg0));
|
|
626
621
|
return ret;
|
|
627
622
|
};
|
|
623
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
624
|
+
var ret = +getObject(arg0);
|
|
625
|
+
return ret;
|
|
626
|
+
};
|
|
627
|
+
imports.wbg.__wbg_new_c728d68b8b34487e = function() {
|
|
628
|
+
var ret = new Object();
|
|
629
|
+
return addHeapObject(ret);
|
|
630
|
+
};
|
|
631
|
+
imports.wbg.__wbg_set_9182712abebf82ef = function(arg0, arg1, arg2) {
|
|
632
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
633
|
+
};
|
|
628
634
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
629
635
|
var ret = getStringFromWasm0(arg0, arg1);
|
|
630
636
|
return addHeapObject(ret);
|
|
631
637
|
};
|
|
632
|
-
imports.wbg.
|
|
633
|
-
var ret =
|
|
638
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
639
|
+
var ret = arg0;
|
|
634
640
|
return addHeapObject(ret);
|
|
635
641
|
};
|
|
636
642
|
imports.wbg.__wbg_getStorage_22c97034e37920e0 = function() {
|
|
@@ -639,14 +645,6 @@ function __wbg_get_imports() {
|
|
|
639
645
|
return addHeapObject(ret);
|
|
640
646
|
}, arguments);
|
|
641
647
|
};
|
|
642
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
643
|
-
var obj = getObject(arg1);
|
|
644
|
-
var ret = typeof obj === "string" ? obj : undefined;
|
|
645
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
646
|
-
var len1 = WASM_VECTOR_LEN;
|
|
647
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
648
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
649
|
-
};
|
|
650
648
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
651
649
|
var obj = takeObject(arg0).original;
|
|
652
650
|
if (obj.cnt-- == 1) {
|
|
@@ -656,7 +654,7 @@ function __wbg_get_imports() {
|
|
|
656
654
|
var ret = false;
|
|
657
655
|
return ret;
|
|
658
656
|
};
|
|
659
|
-
imports.wbg.
|
|
657
|
+
imports.wbg.__wbg_String_389b54bd9d25375f = function(arg0, arg1) {
|
|
660
658
|
var ret = String(getObject(arg1));
|
|
661
659
|
var ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
662
660
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -735,7 +733,7 @@ function __wbg_get_imports() {
|
|
|
735
733
|
var a = state0.a;
|
|
736
734
|
state0.a = 0;
|
|
737
735
|
try {
|
|
738
|
-
return
|
|
736
|
+
return __wbg_adapter_111(a, state0.b, arg0, arg1);
|
|
739
737
|
} finally{
|
|
740
738
|
state0.a = a;
|
|
741
739
|
}
|
|
@@ -811,6 +809,12 @@ function __wbg_get_imports() {
|
|
|
811
809
|
imports.wbg.__wbg_set_dcfd613a3420f908 = function(arg0, arg1, arg2) {
|
|
812
810
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
813
811
|
};
|
|
812
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
813
|
+
var obj = getObject(arg1);
|
|
814
|
+
var ret = typeof obj === "number" ? obj : undefined;
|
|
815
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
816
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
817
|
+
};
|
|
814
818
|
imports.wbg.__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1 = function(arg0) {
|
|
815
819
|
var result;
|
|
816
820
|
try {
|
|
@@ -907,8 +911,8 @@ function __wbg_get_imports() {
|
|
|
907
911
|
imports.wbg.__wbg_warn_4affe1093892a4ef = function(arg0) {
|
|
908
912
|
console.warn(getObject(arg0));
|
|
909
913
|
};
|
|
910
|
-
imports.wbg.
|
|
911
|
-
var ret = makeMutClosure(arg0, arg1,
|
|
914
|
+
imports.wbg.__wbindgen_closure_wrapper1435 = function(arg0, arg1, arg2) {
|
|
915
|
+
var ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_48);
|
|
912
916
|
return addHeapObject(ret);
|
|
913
917
|
};
|
|
914
918
|
return imports;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -63,10 +63,10 @@ export interface InitOutput {
|
|
|
63
63
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
64
64
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
65
65
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
66
|
-
readonly
|
|
66
|
+
readonly wasm_bindgen__convert__closures__invoke1_mut__h7a5e866c0a397d34: (a: number, b: number, c: number) => void;
|
|
67
67
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
68
68
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
69
|
-
readonly
|
|
69
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h26b9ddb6e7e04f97: (a: number, b: number, c: number, d: number) => void;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|