@acala-network/chopsticks-executor 1.0.2-1 → 1.0.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
|
@@ -159,12 +159,18 @@ function _ts_generator(thisArg, body) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
var wasm;
|
|
162
|
-
var
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
|
|
163
|
+
ignoreBOM: true,
|
|
164
|
+
fatal: true
|
|
165
|
+
}) : {
|
|
166
|
+
decode: function() {
|
|
167
|
+
throw Error('TextDecoder not available');
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
if (typeof TextDecoder !== 'undefined') {
|
|
171
|
+
cachedTextDecoder.decode();
|
|
166
172
|
}
|
|
167
|
-
|
|
173
|
+
;
|
|
168
174
|
var cachedUint8Memory0 = null;
|
|
169
175
|
function getUint8Memory0() {
|
|
170
176
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
@@ -172,6 +178,34 @@ function getUint8Memory0() {
|
|
|
172
178
|
}
|
|
173
179
|
return cachedUint8Memory0;
|
|
174
180
|
}
|
|
181
|
+
function getStringFromWasm0(ptr, len) {
|
|
182
|
+
ptr = ptr >>> 0;
|
|
183
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
184
|
+
}
|
|
185
|
+
var heap = new Array(128).fill(undefined);
|
|
186
|
+
heap.push(undefined, null, true, false);
|
|
187
|
+
var heap_next = heap.length;
|
|
188
|
+
function addHeapObject(obj) {
|
|
189
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
190
|
+
var idx = heap_next;
|
|
191
|
+
heap_next = heap[idx];
|
|
192
|
+
heap[idx] = obj;
|
|
193
|
+
return idx;
|
|
194
|
+
}
|
|
195
|
+
function getObject(idx) {
|
|
196
|
+
return heap[idx];
|
|
197
|
+
}
|
|
198
|
+
function dropObject(idx) {
|
|
199
|
+
if (idx < 132) return;
|
|
200
|
+
heap[idx] = heap_next;
|
|
201
|
+
heap_next = idx;
|
|
202
|
+
}
|
|
203
|
+
function takeObject(idx) {
|
|
204
|
+
var ret = getObject(idx);
|
|
205
|
+
dropObject(idx);
|
|
206
|
+
return ret;
|
|
207
|
+
}
|
|
208
|
+
var WASM_VECTOR_LEN = 0;
|
|
175
209
|
var cachedTextEncoder = typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : {
|
|
176
210
|
encode: function() {
|
|
177
211
|
throw Error('TextEncoder not available');
|
|
@@ -227,40 +261,6 @@ function getInt32Memory0() {
|
|
|
227
261
|
}
|
|
228
262
|
return cachedInt32Memory0;
|
|
229
263
|
}
|
|
230
|
-
var heap_next = heap.length;
|
|
231
|
-
function dropObject(idx) {
|
|
232
|
-
if (idx < 132) return;
|
|
233
|
-
heap[idx] = heap_next;
|
|
234
|
-
heap_next = idx;
|
|
235
|
-
}
|
|
236
|
-
function takeObject(idx) {
|
|
237
|
-
var ret = getObject(idx);
|
|
238
|
-
dropObject(idx);
|
|
239
|
-
return ret;
|
|
240
|
-
}
|
|
241
|
-
var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
|
|
242
|
-
ignoreBOM: true,
|
|
243
|
-
fatal: true
|
|
244
|
-
}) : {
|
|
245
|
-
decode: function() {
|
|
246
|
-
throw Error('TextDecoder not available');
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
if (typeof TextDecoder !== 'undefined') {
|
|
250
|
-
cachedTextDecoder.decode();
|
|
251
|
-
}
|
|
252
|
-
;
|
|
253
|
-
function getStringFromWasm0(ptr, len) {
|
|
254
|
-
ptr = ptr >>> 0;
|
|
255
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
256
|
-
}
|
|
257
|
-
function addHeapObject(obj) {
|
|
258
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
259
|
-
var idx = heap_next;
|
|
260
|
-
heap_next = heap[idx];
|
|
261
|
-
heap[idx] = obj;
|
|
262
|
-
return idx;
|
|
263
|
-
}
|
|
264
264
|
var cachedBigInt64Memory0 = null;
|
|
265
265
|
function getBigInt64Memory0() {
|
|
266
266
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -381,7 +381,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
381
381
|
return real;
|
|
382
382
|
}
|
|
383
383
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
384
|
-
wasm.
|
|
384
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebe5263e426c3ae5(arg0, arg1, addHeapObject(arg2));
|
|
385
385
|
}
|
|
386
386
|
function handleError(f, args) {
|
|
387
387
|
try {
|
|
@@ -438,7 +438,7 @@ function handleError(f, args) {
|
|
|
438
438
|
return takeObject(ret);
|
|
439
439
|
}
|
|
440
440
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
441
|
-
wasm.
|
|
441
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
442
442
|
}
|
|
443
443
|
function __wbg_load(module, imports) {
|
|
444
444
|
return ___wbg_load.apply(this, arguments);
|
|
@@ -535,21 +535,25 @@ function ___wbg_load() {
|
|
|
535
535
|
function __wbg_get_imports() {
|
|
536
536
|
var imports = {};
|
|
537
537
|
imports.wbg = {};
|
|
538
|
-
imports.wbg.
|
|
539
|
-
var
|
|
540
|
-
|
|
541
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
542
|
-
var len1 = WASM_VECTOR_LEN;
|
|
543
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
544
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
545
|
-
};
|
|
546
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
547
|
-
takeObject(arg0);
|
|
538
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
539
|
+
var ret = getStringFromWasm0(arg0, arg1);
|
|
540
|
+
return addHeapObject(ret);
|
|
548
541
|
};
|
|
549
542
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
550
543
|
var ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
551
544
|
return addHeapObject(ret);
|
|
552
545
|
};
|
|
546
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
547
|
+
var ret = new Object();
|
|
548
|
+
return addHeapObject(ret);
|
|
549
|
+
};
|
|
550
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
551
|
+
var ret = arg0;
|
|
552
|
+
return addHeapObject(ret);
|
|
553
|
+
};
|
|
554
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
555
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
556
|
+
};
|
|
553
557
|
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
554
558
|
var ret = new Array();
|
|
555
559
|
return addHeapObject(ret);
|
|
@@ -563,22 +567,8 @@ function __wbg_get_imports() {
|
|
|
563
567
|
return addHeapObject(ret);
|
|
564
568
|
}, arguments);
|
|
565
569
|
};
|
|
566
|
-
imports.wbg.
|
|
567
|
-
|
|
568
|
-
var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
|
|
569
|
-
return ret;
|
|
570
|
-
};
|
|
571
|
-
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
572
|
-
var ret = getObject(arg0)[getObject(arg1)];
|
|
573
|
-
return addHeapObject(ret);
|
|
574
|
-
};
|
|
575
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
576
|
-
var ret = getObject(arg0) === undefined;
|
|
577
|
-
return ret;
|
|
578
|
-
};
|
|
579
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
580
|
-
var ret = getObject(arg0) in getObject(arg1);
|
|
581
|
-
return ret;
|
|
570
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
571
|
+
takeObject(arg0);
|
|
582
572
|
};
|
|
583
573
|
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
584
574
|
var ret = Array.isArray(getObject(arg0));
|
|
@@ -606,6 +596,23 @@ function __wbg_get_imports() {
|
|
|
606
596
|
var ret = getObject(arg0).value;
|
|
607
597
|
return addHeapObject(ret);
|
|
608
598
|
};
|
|
599
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
600
|
+
var val = getObject(arg0);
|
|
601
|
+
var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
|
|
602
|
+
return ret;
|
|
603
|
+
};
|
|
604
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
605
|
+
var ret = getObject(arg0)[getObject(arg1)];
|
|
606
|
+
return addHeapObject(ret);
|
|
607
|
+
};
|
|
608
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
609
|
+
var ret = getObject(arg0) === undefined;
|
|
610
|
+
return ret;
|
|
611
|
+
};
|
|
612
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
613
|
+
var ret = getObject(arg0) in getObject(arg1);
|
|
614
|
+
return ret;
|
|
615
|
+
};
|
|
609
616
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
610
617
|
var v = getObject(arg0);
|
|
611
618
|
var ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
|
|
@@ -619,20 +626,13 @@ function __wbg_get_imports() {
|
|
|
619
626
|
var ret = +getObject(arg0);
|
|
620
627
|
return ret;
|
|
621
628
|
};
|
|
622
|
-
imports.wbg.
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
};
|
|
630
|
-
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
631
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
632
|
-
};
|
|
633
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
634
|
-
var ret = arg0;
|
|
635
|
-
return addHeapObject(ret);
|
|
629
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
630
|
+
var obj = getObject(arg1);
|
|
631
|
+
var ret = typeof obj === 'string' ? obj : undefined;
|
|
632
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
633
|
+
var len1 = WASM_VECTOR_LEN;
|
|
634
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
635
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
636
636
|
};
|
|
637
637
|
imports.wbg.__wbg_getStorage_22c97034e37920e0 = function() {
|
|
638
638
|
return handleError(function(arg0, arg1) {
|
|
@@ -779,6 +779,34 @@ function __wbg_get_imports() {
|
|
|
779
779
|
var ret = getObject(arg0).next;
|
|
780
780
|
return addHeapObject(ret);
|
|
781
781
|
};
|
|
782
|
+
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() {
|
|
783
|
+
return handleError(function() {
|
|
784
|
+
var ret = self.self;
|
|
785
|
+
return addHeapObject(ret);
|
|
786
|
+
}, arguments);
|
|
787
|
+
};
|
|
788
|
+
imports.wbg.__wbg_window_c6fb939a7f436783 = function() {
|
|
789
|
+
return handleError(function() {
|
|
790
|
+
var ret = window.window;
|
|
791
|
+
return addHeapObject(ret);
|
|
792
|
+
}, arguments);
|
|
793
|
+
};
|
|
794
|
+
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() {
|
|
795
|
+
return handleError(function() {
|
|
796
|
+
var ret = globalThis.globalThis;
|
|
797
|
+
return addHeapObject(ret);
|
|
798
|
+
}, arguments);
|
|
799
|
+
};
|
|
800
|
+
imports.wbg.__wbg_global_207b558942527489 = function() {
|
|
801
|
+
return handleError(function() {
|
|
802
|
+
var ret = global.global;
|
|
803
|
+
return addHeapObject(ret);
|
|
804
|
+
}, arguments);
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
807
|
+
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
808
|
+
return addHeapObject(ret);
|
|
809
|
+
};
|
|
782
810
|
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
783
811
|
var ret = getObject(arg0).length;
|
|
784
812
|
return ret;
|
|
@@ -842,34 +870,6 @@ function __wbg_get_imports() {
|
|
|
842
870
|
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
843
871
|
return addHeapObject(ret);
|
|
844
872
|
};
|
|
845
|
-
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() {
|
|
846
|
-
return handleError(function() {
|
|
847
|
-
var ret = self.self;
|
|
848
|
-
return addHeapObject(ret);
|
|
849
|
-
}, arguments);
|
|
850
|
-
};
|
|
851
|
-
imports.wbg.__wbg_window_c6fb939a7f436783 = function() {
|
|
852
|
-
return handleError(function() {
|
|
853
|
-
var ret = window.window;
|
|
854
|
-
return addHeapObject(ret);
|
|
855
|
-
}, arguments);
|
|
856
|
-
};
|
|
857
|
-
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() {
|
|
858
|
-
return handleError(function() {
|
|
859
|
-
var ret = globalThis.globalThis;
|
|
860
|
-
return addHeapObject(ret);
|
|
861
|
-
}, arguments);
|
|
862
|
-
};
|
|
863
|
-
imports.wbg.__wbg_global_207b558942527489 = function() {
|
|
864
|
-
return handleError(function() {
|
|
865
|
-
var ret = global.global;
|
|
866
|
-
return addHeapObject(ret);
|
|
867
|
-
}, arguments);
|
|
868
|
-
};
|
|
869
|
-
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
870
|
-
var ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
871
|
-
return addHeapObject(ret);
|
|
872
|
-
};
|
|
873
873
|
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
874
874
|
var ret = getObject(arg0).queueMicrotask;
|
|
875
875
|
return addHeapObject(ret);
|
|
@@ -900,8 +900,8 @@ function __wbg_get_imports() {
|
|
|
900
900
|
imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) {
|
|
901
901
|
console.warn(getObject(arg0));
|
|
902
902
|
};
|
|
903
|
-
imports.wbg.
|
|
904
|
-
var ret = makeMutClosure(arg0, arg1,
|
|
903
|
+
imports.wbg.__wbindgen_closure_wrapper1423 = function(arg0, arg1, arg2) {
|
|
904
|
+
var ret = makeMutClosure(arg0, arg1, 145, __wbg_adapter_48);
|
|
905
905
|
return addHeapObject(ret);
|
|
906
906
|
};
|
|
907
907
|
return imports;
|
package/dist/esm/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;
|