@acala-network/chopsticks-executor 0.8.1 → 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.
|
@@ -4,37 +4,10 @@ const heap = new Array(128).fill(undefined);
|
|
|
4
4
|
|
|
5
5
|
heap.push(undefined, null, true, false);
|
|
6
6
|
|
|
7
|
-
let heap_next = heap.length;
|
|
8
|
-
|
|
9
|
-
function addHeapObject(obj) {
|
|
10
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
11
|
-
const idx = heap_next;
|
|
12
|
-
heap_next = heap[idx];
|
|
13
|
-
|
|
14
|
-
heap[idx] = obj;
|
|
15
|
-
return idx;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
19
|
-
|
|
20
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
21
|
-
|
|
22
|
-
let cachedUint8Memory0 = null;
|
|
23
|
-
|
|
24
|
-
function getUint8Memory0() {
|
|
25
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
26
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
27
|
-
}
|
|
28
|
-
return cachedUint8Memory0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function getStringFromWasm0(ptr, len) {
|
|
32
|
-
ptr = ptr >>> 0;
|
|
33
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
7
|
function getObject(idx) { return heap[idx]; }
|
|
37
8
|
|
|
9
|
+
let heap_next = heap.length;
|
|
10
|
+
|
|
38
11
|
function dropObject(idx) {
|
|
39
12
|
if (idx < 132) return;
|
|
40
13
|
heap[idx] = heap_next;
|
|
@@ -69,6 +42,33 @@ function getInt32Memory0() {
|
|
|
69
42
|
return cachedInt32Memory0;
|
|
70
43
|
}
|
|
71
44
|
|
|
45
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
46
|
+
|
|
47
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
48
|
+
|
|
49
|
+
let cachedUint8Memory0 = null;
|
|
50
|
+
|
|
51
|
+
function getUint8Memory0() {
|
|
52
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
53
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
54
|
+
}
|
|
55
|
+
return cachedUint8Memory0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function getStringFromWasm0(ptr, len) {
|
|
59
|
+
ptr = ptr >>> 0;
|
|
60
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function addHeapObject(obj) {
|
|
64
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
65
|
+
const idx = heap_next;
|
|
66
|
+
heap_next = heap[idx];
|
|
67
|
+
|
|
68
|
+
heap[idx] = obj;
|
|
69
|
+
return idx;
|
|
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') } } );
|
|
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
223
223
|
return real;
|
|
224
224
|
}
|
|
225
225
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
226
|
-
wasm.
|
|
226
|
+
wasm.wasm_bindgen__convert__closures__invoke1_mut__hc4c3186ceda303d2(arg0, arg1, addHeapObject(arg2));
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
@@ -287,7 +287,7 @@ function handleError(f, args) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function __wbg_adapter_106(arg0, arg1, arg2, arg3) {
|
|
290
|
-
wasm.
|
|
290
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2cd630d2c4a26d29(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
async function __wbg_load(module, imports) {
|
|
@@ -324,35 +324,6 @@ async function __wbg_load(module, imports) {
|
|
|
324
324
|
function __wbg_get_imports() {
|
|
325
325
|
const imports = {};
|
|
326
326
|
imports.wbg = {};
|
|
327
|
-
imports.wbg.__wbg_new_b51585de1b234aff = function() {
|
|
328
|
-
const ret = new Object();
|
|
329
|
-
return addHeapObject(ret);
|
|
330
|
-
};
|
|
331
|
-
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
332
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
333
|
-
};
|
|
334
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
335
|
-
const ret = arg0;
|
|
336
|
-
return addHeapObject(ret);
|
|
337
|
-
};
|
|
338
|
-
imports.wbg.__wbg_new_898a68150f225f2e = function() {
|
|
339
|
-
const ret = new Array();
|
|
340
|
-
return addHeapObject(ret);
|
|
341
|
-
};
|
|
342
|
-
imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
343
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
344
|
-
};
|
|
345
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
346
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
347
|
-
return addHeapObject(ret);
|
|
348
|
-
};
|
|
349
|
-
imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
350
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
351
|
-
return addHeapObject(ret);
|
|
352
|
-
}, arguments) };
|
|
353
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
354
|
-
takeObject(arg0);
|
|
355
|
-
};
|
|
356
327
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
357
328
|
const val = getObject(arg0);
|
|
358
329
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -370,6 +341,9 @@ function __wbg_get_imports() {
|
|
|
370
341
|
const ret = getObject(arg0) in getObject(arg1);
|
|
371
342
|
return ret;
|
|
372
343
|
};
|
|
344
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
345
|
+
takeObject(arg0);
|
|
346
|
+
};
|
|
373
347
|
imports.wbg.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
374
348
|
const ret = Array.isArray(getObject(arg0));
|
|
375
349
|
return ret;
|
|
@@ -409,6 +383,28 @@ function __wbg_get_imports() {
|
|
|
409
383
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
410
384
|
return ret;
|
|
411
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);
|
|
392
|
+
};
|
|
393
|
+
imports.wbg.__wbg_new_898a68150f225f2e = function() {
|
|
394
|
+
const ret = new Array();
|
|
395
|
+
return addHeapObject(ret);
|
|
396
|
+
};
|
|
397
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
398
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
399
|
+
return addHeapObject(ret);
|
|
400
|
+
};
|
|
401
|
+
imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
402
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
403
|
+
};
|
|
404
|
+
imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
405
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
406
|
+
return addHeapObject(ret);
|
|
407
|
+
}, arguments) };
|
|
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) {
|
|
@@ -445,31 +445,31 @@ function __wbg_get_imports() {
|
|
|
445
445
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
446
446
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
447
447
|
};
|
|
448
|
-
imports.wbg.
|
|
448
|
+
imports.wbg.__wbg_getStorage_0caa9fff1ec93d2c = function(arg0, arg1) {
|
|
449
449
|
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
450
450
|
return addHeapObject(ret);
|
|
451
451
|
};
|
|
452
|
-
imports.wbg.
|
|
452
|
+
imports.wbg.__wbg_getStateRoot_d883db6c9e7723c4 = function(arg0) {
|
|
453
453
|
const ret = getObject(arg0).getStateRoot();
|
|
454
454
|
return addHeapObject(ret);
|
|
455
455
|
};
|
|
456
|
-
imports.wbg.
|
|
456
|
+
imports.wbg.__wbg_getNextKey_b142e3a045ec19f7 = function(arg0, arg1, arg2) {
|
|
457
457
|
const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
|
|
458
458
|
return addHeapObject(ret);
|
|
459
459
|
};
|
|
460
|
-
imports.wbg.
|
|
460
|
+
imports.wbg.__wbg_offchainGetStorage_04d971d8d9be4555 = function(arg0, arg1) {
|
|
461
461
|
const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
|
|
462
462
|
return addHeapObject(ret);
|
|
463
463
|
};
|
|
464
|
-
imports.wbg.
|
|
464
|
+
imports.wbg.__wbg_offchainTimestamp_56adb994773c3d84 = function(arg0) {
|
|
465
465
|
const ret = getObject(arg0).offchainTimestamp();
|
|
466
466
|
return addHeapObject(ret);
|
|
467
467
|
};
|
|
468
|
-
imports.wbg.
|
|
468
|
+
imports.wbg.__wbg_offchainRandomSeed_00d96b9f7a7d6171 = function(arg0) {
|
|
469
469
|
const ret = getObject(arg0).offchainRandomSeed();
|
|
470
470
|
return addHeapObject(ret);
|
|
471
471
|
};
|
|
472
|
-
imports.wbg.
|
|
472
|
+
imports.wbg.__wbg_offchainSubmitTransaction_0afd1bebc089ab44 = function(arg0, arg1) {
|
|
473
473
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
474
474
|
return addHeapObject(ret);
|
|
475
475
|
};
|
|
@@ -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
|