@acala-network/chopsticks-executor 1.0.2-1 → 1.0.2-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 +110 -110
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/esm/chopsticks_executor.js +111 -111
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/package.json +5 -5
|
@@ -195,12 +195,17 @@ function _ts_generator(thisArg, body) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var wasm;
|
|
198
|
-
var
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
|
|
199
|
+
ignoreBOM: true,
|
|
200
|
+
fatal: true
|
|
201
|
+
}) : {
|
|
202
|
+
decode: function() {
|
|
203
|
+
throw Error('TextDecoder not available');
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
if (typeof TextDecoder !== 'undefined') {
|
|
207
|
+
cachedTextDecoder.decode();
|
|
202
208
|
}
|
|
203
|
-
var WASM_VECTOR_LEN = 0;
|
|
204
209
|
var cachedUint8Memory0 = null;
|
|
205
210
|
function getUint8Memory0() {
|
|
206
211
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
@@ -208,6 +213,34 @@ function getUint8Memory0() {
|
|
|
208
213
|
}
|
|
209
214
|
return cachedUint8Memory0;
|
|
210
215
|
}
|
|
216
|
+
function getStringFromWasm0(ptr, len) {
|
|
217
|
+
ptr = ptr >>> 0;
|
|
218
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
219
|
+
}
|
|
220
|
+
var heap = new Array(128).fill(undefined);
|
|
221
|
+
heap.push(undefined, null, true, false);
|
|
222
|
+
var heap_next = heap.length;
|
|
223
|
+
function addHeapObject(obj) {
|
|
224
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
225
|
+
var idx = heap_next;
|
|
226
|
+
heap_next = heap[idx];
|
|
227
|
+
heap[idx] = obj;
|
|
228
|
+
return idx;
|
|
229
|
+
}
|
|
230
|
+
function getObject(idx) {
|
|
231
|
+
return heap[idx];
|
|
232
|
+
}
|
|
233
|
+
function dropObject(idx) {
|
|
234
|
+
if (idx < 132) return;
|
|
235
|
+
heap[idx] = heap_next;
|
|
236
|
+
heap_next = idx;
|
|
237
|
+
}
|
|
238
|
+
function takeObject(idx) {
|
|
239
|
+
var ret = getObject(idx);
|
|
240
|
+
dropObject(idx);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
243
|
+
var WASM_VECTOR_LEN = 0;
|
|
211
244
|
var cachedTextEncoder = typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : {
|
|
212
245
|
encode: function() {
|
|
213
246
|
throw Error('TextEncoder not available');
|
|
@@ -263,39 +296,6 @@ function getInt32Memory0() {
|
|
|
263
296
|
}
|
|
264
297
|
return cachedInt32Memory0;
|
|
265
298
|
}
|
|
266
|
-
var heap_next = heap.length;
|
|
267
|
-
function dropObject(idx) {
|
|
268
|
-
if (idx < 132) return;
|
|
269
|
-
heap[idx] = heap_next;
|
|
270
|
-
heap_next = idx;
|
|
271
|
-
}
|
|
272
|
-
function takeObject(idx) {
|
|
273
|
-
var ret = getObject(idx);
|
|
274
|
-
dropObject(idx);
|
|
275
|
-
return ret;
|
|
276
|
-
}
|
|
277
|
-
var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
|
|
278
|
-
ignoreBOM: true,
|
|
279
|
-
fatal: true
|
|
280
|
-
}) : {
|
|
281
|
-
decode: function() {
|
|
282
|
-
throw Error('TextDecoder not available');
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
if (typeof TextDecoder !== 'undefined') {
|
|
286
|
-
cachedTextDecoder.decode();
|
|
287
|
-
}
|
|
288
|
-
function getStringFromWasm0(ptr, len) {
|
|
289
|
-
ptr = ptr >>> 0;
|
|
290
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
291
|
-
}
|
|
292
|
-
function addHeapObject(obj) {
|
|
293
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
294
|
-
var idx = heap_next;
|
|
295
|
-
heap_next = heap[idx];
|
|
296
|
-
heap[idx] = obj;
|
|
297
|
-
return idx;
|
|
298
|
-
}
|
|
299
299
|
var cachedBigInt64Memory0 = null;
|
|
300
300
|
function getBigInt64Memory0() {
|
|
301
301
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -416,7 +416,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
416
416
|
return real;
|
|
417
417
|
}
|
|
418
418
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
419
|
-
wasm.
|
|
419
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebe5263e426c3ae5(arg0, arg1, addHeapObject(arg2));
|
|
420
420
|
}
|
|
421
421
|
function handleError(f, args) {
|
|
422
422
|
try {
|
|
@@ -450,7 +450,7 @@ function testing(js, key) {
|
|
|
450
450
|
return takeObject(ret);
|
|
451
451
|
}
|
|
452
452
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
453
|
-
wasm.
|
|
453
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
454
454
|
}
|
|
455
455
|
function __wbg_load(module, imports) {
|
|
456
456
|
return ___wbg_load.apply(this, arguments);
|
|
@@ -547,21 +547,25 @@ function ___wbg_load() {
|
|
|
547
547
|
function __wbg_get_imports() {
|
|
548
548
|
var imports = {};
|
|
549
549
|
imports.wbg = {};
|
|
550
|
-
imports.wbg.
|
|
551
|
-
var
|
|
552
|
-
|
|
553
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
|
-
var len1 = WASM_VECTOR_LEN;
|
|
555
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
556
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
557
|
-
};
|
|
558
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
559
|
-
takeObject(arg0);
|
|
550
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
551
|
+
var ret = getStringFromWasm0(arg0, arg1);
|
|
552
|
+
return addHeapObject(ret);
|
|
560
553
|
};
|
|
561
554
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
562
555
|
var ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
563
556
|
return addHeapObject(ret);
|
|
564
557
|
};
|
|
558
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
559
|
+
var ret = new Object();
|
|
560
|
+
return addHeapObject(ret);
|
|
561
|
+
};
|
|
562
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
563
|
+
var ret = arg0;
|
|
564
|
+
return addHeapObject(ret);
|
|
565
|
+
};
|
|
566
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
567
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
568
|
+
};
|
|
565
569
|
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
566
570
|
var ret = new Array();
|
|
567
571
|
return addHeapObject(ret);
|
|
@@ -575,22 +579,8 @@ function __wbg_get_imports() {
|
|
|
575
579
|
return addHeapObject(ret);
|
|
576
580
|
}, arguments);
|
|
577
581
|
};
|
|
578
|
-
imports.wbg.
|
|
579
|
-
|
|
580
|
-
var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
|
|
581
|
-
return ret;
|
|
582
|
-
};
|
|
583
|
-
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
584
|
-
var ret = getObject(arg0)[getObject(arg1)];
|
|
585
|
-
return addHeapObject(ret);
|
|
586
|
-
};
|
|
587
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
588
|
-
var ret = getObject(arg0) === undefined;
|
|
589
|
-
return ret;
|
|
590
|
-
};
|
|
591
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
592
|
-
var ret = getObject(arg0) in getObject(arg1);
|
|
593
|
-
return ret;
|
|
582
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
583
|
+
takeObject(arg0);
|
|
594
584
|
};
|
|
595
585
|
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
596
586
|
var ret = Array.isArray(getObject(arg0));
|
|
@@ -618,6 +608,23 @@ function __wbg_get_imports() {
|
|
|
618
608
|
var ret = getObject(arg0).value;
|
|
619
609
|
return addHeapObject(ret);
|
|
620
610
|
};
|
|
611
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
612
|
+
var val = getObject(arg0);
|
|
613
|
+
var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
|
|
614
|
+
return ret;
|
|
615
|
+
};
|
|
616
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
617
|
+
var ret = getObject(arg0)[getObject(arg1)];
|
|
618
|
+
return addHeapObject(ret);
|
|
619
|
+
};
|
|
620
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
621
|
+
var ret = getObject(arg0) === undefined;
|
|
622
|
+
return ret;
|
|
623
|
+
};
|
|
624
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
625
|
+
var ret = getObject(arg0) in getObject(arg1);
|
|
626
|
+
return ret;
|
|
627
|
+
};
|
|
621
628
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
622
629
|
var v = getObject(arg0);
|
|
623
630
|
var ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
|
|
@@ -631,20 +638,13 @@ function __wbg_get_imports() {
|
|
|
631
638
|
var ret = +getObject(arg0);
|
|
632
639
|
return ret;
|
|
633
640
|
};
|
|
634
|
-
imports.wbg.
|
|
635
|
-
var
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
};
|
|
642
|
-
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
643
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
644
|
-
};
|
|
645
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
646
|
-
var ret = arg0;
|
|
647
|
-
return addHeapObject(ret);
|
|
641
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
642
|
+
var obj = getObject(arg1);
|
|
643
|
+
var ret = typeof obj === 'string' ? obj : undefined;
|
|
644
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
645
|
+
var len1 = WASM_VECTOR_LEN;
|
|
646
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
647
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
648
648
|
};
|
|
649
649
|
imports.wbg.__wbg_getStorage_22c97034e37920e0 = function() {
|
|
650
650
|
return handleError(function(arg0, arg1) {
|
|
@@ -791,6 +791,34 @@ function __wbg_get_imports() {
|
|
|
791
791
|
var ret = getObject(arg0).next;
|
|
792
792
|
return addHeapObject(ret);
|
|
793
793
|
};
|
|
794
|
+
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() {
|
|
795
|
+
return handleError(function() {
|
|
796
|
+
var ret = self.self;
|
|
797
|
+
return addHeapObject(ret);
|
|
798
|
+
}, arguments);
|
|
799
|
+
};
|
|
800
|
+
imports.wbg.__wbg_window_c6fb939a7f436783 = function() {
|
|
801
|
+
return handleError(function() {
|
|
802
|
+
var ret = window.window;
|
|
803
|
+
return addHeapObject(ret);
|
|
804
|
+
}, arguments);
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() {
|
|
807
|
+
return handleError(function() {
|
|
808
|
+
var ret = globalThis.globalThis;
|
|
809
|
+
return addHeapObject(ret);
|
|
810
|
+
}, arguments);
|
|
811
|
+
};
|
|
812
|
+
imports.wbg.__wbg_global_207b558942527489 = function() {
|
|
813
|
+
return handleError(function() {
|
|
814
|
+
var ret = global.global;
|
|
815
|
+
return addHeapObject(ret);
|
|
816
|
+
}, arguments);
|
|
817
|
+
};
|
|
818
|
+
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
819
|
+
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
820
|
+
return addHeapObject(ret);
|
|
821
|
+
};
|
|
794
822
|
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
795
823
|
var ret = getObject(arg0).length;
|
|
796
824
|
return ret;
|
|
@@ -854,34 +882,6 @@ function __wbg_get_imports() {
|
|
|
854
882
|
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
855
883
|
return addHeapObject(ret);
|
|
856
884
|
};
|
|
857
|
-
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() {
|
|
858
|
-
return handleError(function() {
|
|
859
|
-
var ret = self.self;
|
|
860
|
-
return addHeapObject(ret);
|
|
861
|
-
}, arguments);
|
|
862
|
-
};
|
|
863
|
-
imports.wbg.__wbg_window_c6fb939a7f436783 = function() {
|
|
864
|
-
return handleError(function() {
|
|
865
|
-
var ret = window.window;
|
|
866
|
-
return addHeapObject(ret);
|
|
867
|
-
}, arguments);
|
|
868
|
-
};
|
|
869
|
-
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() {
|
|
870
|
-
return handleError(function() {
|
|
871
|
-
var ret = globalThis.globalThis;
|
|
872
|
-
return addHeapObject(ret);
|
|
873
|
-
}, arguments);
|
|
874
|
-
};
|
|
875
|
-
imports.wbg.__wbg_global_207b558942527489 = function() {
|
|
876
|
-
return handleError(function() {
|
|
877
|
-
var ret = global.global;
|
|
878
|
-
return addHeapObject(ret);
|
|
879
|
-
}, arguments);
|
|
880
|
-
};
|
|
881
|
-
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
882
|
-
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
883
|
-
return addHeapObject(ret);
|
|
884
|
-
};
|
|
885
885
|
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
886
886
|
var ret = getObject(arg0).queueMicrotask;
|
|
887
887
|
return addHeapObject(ret);
|
|
@@ -912,8 +912,8 @@ function __wbg_get_imports() {
|
|
|
912
912
|
imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) {
|
|
913
913
|
console.warn(getObject(arg0));
|
|
914
914
|
};
|
|
915
|
-
imports.wbg.
|
|
916
|
-
var ret = makeMutClosure(arg0, arg1,
|
|
915
|
+
imports.wbg.__wbindgen_closure_wrapper1423 = function(arg0, arg1, arg2) {
|
|
916
|
+
var ret = makeMutClosure(arg0, arg1, 145, __wbg_adapter_48);
|
|
917
917
|
return addHeapObject(ret);
|
|
918
918
|
};
|
|
919
919
|
return imports;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -61,10 +61,10 @@ export interface InitOutput {
|
|
|
61
61
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
62
62
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
63
63
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
64
|
-
readonly
|
|
64
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebe5263e426c3ae5: (a: number, b: number, c: number) => void;
|
|
65
65
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
66
66
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
67
|
-
readonly
|
|
67
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d: (a: number, b: number, c: number, d: number) => void;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|