@acala-network/chopsticks-executor 0.8.2 → 0.8.3
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.
|
@@ -20,6 +20,28 @@ function takeObject(idx) {
|
|
|
20
20
|
return ret;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
function isLikeNone(x) {
|
|
24
|
+
return x === undefined || x === null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let cachedFloat64Memory0 = null;
|
|
28
|
+
|
|
29
|
+
function getFloat64Memory0() {
|
|
30
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
31
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
32
|
+
}
|
|
33
|
+
return cachedFloat64Memory0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let cachedInt32Memory0 = null;
|
|
37
|
+
|
|
38
|
+
function getInt32Memory0() {
|
|
39
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
40
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
41
|
+
}
|
|
42
|
+
return cachedInt32Memory0;
|
|
43
|
+
}
|
|
44
|
+
|
|
23
45
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
24
46
|
|
|
25
47
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -47,28 +69,6 @@ function addHeapObject(obj) {
|
|
|
47
69
|
return idx;
|
|
48
70
|
}
|
|
49
71
|
|
|
50
|
-
function isLikeNone(x) {
|
|
51
|
-
return x === undefined || x === null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
let cachedFloat64Memory0 = null;
|
|
55
|
-
|
|
56
|
-
function getFloat64Memory0() {
|
|
57
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
58
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
59
|
-
}
|
|
60
|
-
return cachedFloat64Memory0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
let cachedInt32Memory0 = null;
|
|
64
|
-
|
|
65
|
-
function getInt32Memory0() {
|
|
66
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
67
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
68
|
-
}
|
|
69
|
-
return cachedInt32Memory0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
72
|
let WASM_VECTOR_LEN = 0;
|
|
73
73
|
|
|
74
74
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -324,6 +324,26 @@ async function __wbg_load(module, imports) {
|
|
|
324
324
|
function __wbg_get_imports() {
|
|
325
325
|
const imports = {};
|
|
326
326
|
imports.wbg = {};
|
|
327
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
328
|
+
const val = getObject(arg0);
|
|
329
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
330
|
+
return ret;
|
|
331
|
+
};
|
|
332
|
+
imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
333
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
334
|
+
return addHeapObject(ret);
|
|
335
|
+
};
|
|
336
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
337
|
+
const ret = getObject(arg0) === undefined;
|
|
338
|
+
return ret;
|
|
339
|
+
};
|
|
340
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
341
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
342
|
+
return ret;
|
|
343
|
+
};
|
|
344
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
345
|
+
takeObject(arg0);
|
|
346
|
+
};
|
|
327
347
|
imports.wbg.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
328
348
|
const ret = Array.isArray(getObject(arg0));
|
|
329
349
|
return ret;
|
|
@@ -348,8 +368,27 @@ function __wbg_get_imports() {
|
|
|
348
368
|
const ret = getObject(arg0).value;
|
|
349
369
|
return addHeapObject(ret);
|
|
350
370
|
};
|
|
351
|
-
imports.wbg.
|
|
352
|
-
|
|
371
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
372
|
+
const v = getObject(arg0);
|
|
373
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
374
|
+
return ret;
|
|
375
|
+
};
|
|
376
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
377
|
+
const obj = getObject(arg1);
|
|
378
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
379
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
380
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
381
|
+
};
|
|
382
|
+
imports.wbg.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
|
|
383
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
384
|
+
return ret;
|
|
385
|
+
};
|
|
386
|
+
imports.wbg.__wbg_new_b51585de1b234aff = function() {
|
|
387
|
+
const ret = new Object();
|
|
388
|
+
return addHeapObject(ret);
|
|
389
|
+
};
|
|
390
|
+
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
391
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
353
392
|
};
|
|
354
393
|
imports.wbg.__wbg_new_898a68150f225f2e = function() {
|
|
355
394
|
const ret = new Array();
|
|
@@ -366,49 +405,6 @@ function __wbg_get_imports() {
|
|
|
366
405
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
367
406
|
return addHeapObject(ret);
|
|
368
407
|
}, arguments) };
|
|
369
|
-
imports.wbg.__wbg_new_b51585de1b234aff = function() {
|
|
370
|
-
const ret = new Object();
|
|
371
|
-
return addHeapObject(ret);
|
|
372
|
-
};
|
|
373
|
-
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
374
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
375
|
-
};
|
|
376
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
377
|
-
const ret = arg0;
|
|
378
|
-
return addHeapObject(ret);
|
|
379
|
-
};
|
|
380
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
381
|
-
const val = getObject(arg0);
|
|
382
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
383
|
-
return ret;
|
|
384
|
-
};
|
|
385
|
-
imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
386
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
387
|
-
return addHeapObject(ret);
|
|
388
|
-
};
|
|
389
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
390
|
-
const ret = getObject(arg0) === undefined;
|
|
391
|
-
return ret;
|
|
392
|
-
};
|
|
393
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
394
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
395
|
-
return ret;
|
|
396
|
-
};
|
|
397
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
398
|
-
const v = getObject(arg0);
|
|
399
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
400
|
-
return ret;
|
|
401
|
-
};
|
|
402
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
403
|
-
const obj = getObject(arg1);
|
|
404
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
405
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
406
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
407
|
-
};
|
|
408
|
-
imports.wbg.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
|
|
409
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
410
|
-
return ret;
|
|
411
|
-
};
|
|
412
408
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
413
409
|
const obj = getObject(arg1);
|
|
414
410
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -421,6 +417,10 @@ function __wbg_get_imports() {
|
|
|
421
417
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
422
418
|
return addHeapObject(ret);
|
|
423
419
|
};
|
|
420
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
421
|
+
const ret = arg0;
|
|
422
|
+
return addHeapObject(ret);
|
|
423
|
+
};
|
|
424
424
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
425
425
|
const obj = takeObject(arg0).original;
|
|
426
426
|
if (obj.cnt-- == 1) {
|
|
@@ -631,7 +631,7 @@ function __wbg_get_imports() {
|
|
|
631
631
|
imports.wbg.__wbg_warn_d60e832f9882c1b2 = function(arg0) {
|
|
632
632
|
console.warn(getObject(arg0));
|
|
633
633
|
};
|
|
634
|
-
imports.wbg.
|
|
634
|
+
imports.wbg.__wbindgen_closure_wrapper1327 = function(arg0, arg1, arg2) {
|
|
635
635
|
const ret = makeMutClosure(arg0, arg1, 124, __wbg_adapter_46);
|
|
636
636
|
return addHeapObject(ret);
|
|
637
637
|
};
|
|
Binary file
|