@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.
|
@@ -23,6 +23,28 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
function isLikeNone(x) {
|
|
27
|
+
return x === undefined || x === null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
let cachedFloat64Memory0 = null;
|
|
31
|
+
|
|
32
|
+
function getFloat64Memory0() {
|
|
33
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
34
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
35
|
+
}
|
|
36
|
+
return cachedFloat64Memory0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let cachedInt32Memory0 = null;
|
|
40
|
+
|
|
41
|
+
function getInt32Memory0() {
|
|
42
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
43
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
44
|
+
}
|
|
45
|
+
return cachedInt32Memory0;
|
|
46
|
+
}
|
|
47
|
+
|
|
26
48
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
27
49
|
|
|
28
50
|
cachedTextDecoder.decode();
|
|
@@ -50,28 +72,6 @@ function addHeapObject(obj) {
|
|
|
50
72
|
return idx;
|
|
51
73
|
}
|
|
52
74
|
|
|
53
|
-
function isLikeNone(x) {
|
|
54
|
-
return x === undefined || x === null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
let cachedFloat64Memory0 = null;
|
|
58
|
-
|
|
59
|
-
function getFloat64Memory0() {
|
|
60
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
61
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
62
|
-
}
|
|
63
|
-
return cachedFloat64Memory0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let cachedInt32Memory0 = null;
|
|
67
|
-
|
|
68
|
-
function getInt32Memory0() {
|
|
69
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
70
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
71
|
-
}
|
|
72
|
-
return cachedInt32Memory0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
let WASM_VECTOR_LEN = 0;
|
|
76
76
|
|
|
77
77
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -293,6 +293,31 @@ function __wbg_adapter_106(arg0, arg1, arg2, arg3) {
|
|
|
293
293
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2cd630d2c4a26d29(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
297
|
+
const val = getObject(arg0);
|
|
298
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
299
|
+
return ret;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
303
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
304
|
+
return addHeapObject(ret);
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
308
|
+
const ret = getObject(arg0) === undefined;
|
|
309
|
+
return ret;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
313
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
314
|
+
return ret;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
318
|
+
takeObject(arg0);
|
|
319
|
+
};
|
|
320
|
+
|
|
296
321
|
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
297
322
|
const ret = Array.isArray(getObject(arg0));
|
|
298
323
|
return ret;
|
|
@@ -323,29 +348,24 @@ module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
|
|
|
323
348
|
return addHeapObject(ret);
|
|
324
349
|
};
|
|
325
350
|
|
|
326
|
-
module.exports.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
331
|
-
const ret = new Array();
|
|
332
|
-
return addHeapObject(ret);
|
|
351
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
352
|
+
const v = getObject(arg0);
|
|
353
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
354
|
+
return ret;
|
|
333
355
|
};
|
|
334
356
|
|
|
335
|
-
module.exports.
|
|
336
|
-
const
|
|
337
|
-
|
|
357
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
358
|
+
const obj = getObject(arg1);
|
|
359
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
360
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
361
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
338
362
|
};
|
|
339
363
|
|
|
340
|
-
module.exports.
|
|
341
|
-
|
|
364
|
+
module.exports.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
|
|
365
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
366
|
+
return ret;
|
|
342
367
|
};
|
|
343
368
|
|
|
344
|
-
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
345
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
346
|
-
return addHeapObject(ret);
|
|
347
|
-
}, arguments) };
|
|
348
|
-
|
|
349
369
|
module.exports.__wbg_new_b51585de1b234aff = function() {
|
|
350
370
|
const ret = new Object();
|
|
351
371
|
return addHeapObject(ret);
|
|
@@ -355,49 +375,24 @@ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
|
355
375
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
356
376
|
};
|
|
357
377
|
|
|
358
|
-
module.exports.
|
|
359
|
-
const ret =
|
|
378
|
+
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
379
|
+
const ret = new Array();
|
|
360
380
|
return addHeapObject(ret);
|
|
361
381
|
};
|
|
362
382
|
|
|
363
|
-
module.exports.
|
|
364
|
-
const
|
|
365
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
366
|
-
return ret;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
370
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
383
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
384
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
371
385
|
return addHeapObject(ret);
|
|
372
386
|
};
|
|
373
387
|
|
|
374
|
-
module.exports.
|
|
375
|
-
|
|
376
|
-
return ret;
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
380
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
381
|
-
return ret;
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
385
|
-
const v = getObject(arg0);
|
|
386
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
387
|
-
return ret;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
391
|
-
const obj = getObject(arg1);
|
|
392
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
393
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
394
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
388
|
+
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
389
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
395
390
|
};
|
|
396
391
|
|
|
397
|
-
module.exports.
|
|
398
|
-
const ret =
|
|
399
|
-
return ret;
|
|
400
|
-
};
|
|
392
|
+
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
393
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
394
|
+
return addHeapObject(ret);
|
|
395
|
+
}, arguments) };
|
|
401
396
|
|
|
402
397
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
403
398
|
const obj = getObject(arg1);
|
|
@@ -413,6 +408,11 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
413
408
|
return addHeapObject(ret);
|
|
414
409
|
};
|
|
415
410
|
|
|
411
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
412
|
+
const ret = arg0;
|
|
413
|
+
return addHeapObject(ret);
|
|
414
|
+
};
|
|
415
|
+
|
|
416
416
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
417
417
|
const obj = takeObject(arg0).original;
|
|
418
418
|
if (obj.cnt-- == 1) {
|
|
@@ -665,7 +665,7 @@ module.exports.__wbg_warn_d60e832f9882c1b2 = function(arg0) {
|
|
|
665
665
|
console.warn(getObject(arg0));
|
|
666
666
|
};
|
|
667
667
|
|
|
668
|
-
module.exports.
|
|
668
|
+
module.exports.__wbindgen_closure_wrapper1327 = function(arg0, arg1, arg2) {
|
|
669
669
|
const ret = makeMutClosure(arg0, arg1, 124, __wbg_adapter_46);
|
|
670
670
|
return addHeapObject(ret);
|
|
671
671
|
};
|
|
Binary file
|