@acala-network/chopsticks-executor 0.8.5-6 → 0.9.0
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,20 +4,9 @@ const heap = new Array(128).fill(undefined);
|
|
|
4
4
|
|
|
5
5
|
heap.push(undefined, null, true, false);
|
|
6
6
|
|
|
7
|
-
|
|
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') } } );
|
|
7
|
+
function getObject(idx) { return heap[idx]; }
|
|
19
8
|
|
|
20
|
-
|
|
9
|
+
let WASM_VECTOR_LEN = 0;
|
|
21
10
|
|
|
22
11
|
let cachedUint8Memory0 = null;
|
|
23
12
|
|
|
@@ -28,49 +17,6 @@ function getUint8Memory0() {
|
|
|
28
17
|
return cachedUint8Memory0;
|
|
29
18
|
}
|
|
30
19
|
|
|
31
|
-
function getStringFromWasm0(ptr, len) {
|
|
32
|
-
ptr = ptr >>> 0;
|
|
33
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function getObject(idx) { return heap[idx]; }
|
|
37
|
-
|
|
38
|
-
function dropObject(idx) {
|
|
39
|
-
if (idx < 132) return;
|
|
40
|
-
heap[idx] = heap_next;
|
|
41
|
-
heap_next = idx;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function takeObject(idx) {
|
|
45
|
-
const ret = getObject(idx);
|
|
46
|
-
dropObject(idx);
|
|
47
|
-
return ret;
|
|
48
|
-
}
|
|
49
|
-
|
|
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
|
-
let WASM_VECTOR_LEN = 0;
|
|
73
|
-
|
|
74
20
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
75
21
|
|
|
76
22
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -124,6 +70,60 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
124
70
|
return ptr;
|
|
125
71
|
}
|
|
126
72
|
|
|
73
|
+
function isLikeNone(x) {
|
|
74
|
+
return x === undefined || x === null;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
let cachedInt32Memory0 = null;
|
|
78
|
+
|
|
79
|
+
function getInt32Memory0() {
|
|
80
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
81
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
82
|
+
}
|
|
83
|
+
return cachedInt32Memory0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let heap_next = heap.length;
|
|
87
|
+
|
|
88
|
+
function dropObject(idx) {
|
|
89
|
+
if (idx < 132) return;
|
|
90
|
+
heap[idx] = heap_next;
|
|
91
|
+
heap_next = idx;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function takeObject(idx) {
|
|
95
|
+
const ret = getObject(idx);
|
|
96
|
+
dropObject(idx);
|
|
97
|
+
return ret;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
101
|
+
|
|
102
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
103
|
+
|
|
104
|
+
function getStringFromWasm0(ptr, len) {
|
|
105
|
+
ptr = ptr >>> 0;
|
|
106
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
113
|
+
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let cachedFloat64Memory0 = null;
|
|
119
|
+
|
|
120
|
+
function getFloat64Memory0() {
|
|
121
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
122
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
123
|
+
}
|
|
124
|
+
return cachedFloat64Memory0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
127
|
let cachedBigInt64Memory0 = null;
|
|
128
128
|
|
|
129
129
|
function getBigInt64Memory0() {
|
|
@@ -324,24 +324,21 @@ async function __wbg_load(module, imports) {
|
|
|
324
324
|
function __wbg_get_imports() {
|
|
325
325
|
const imports = {};
|
|
326
326
|
imports.wbg = {};
|
|
327
|
-
imports.wbg.
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
327
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
328
|
+
const obj = getObject(arg1);
|
|
329
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
330
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
331
|
+
var len1 = WASM_VECTOR_LEN;
|
|
332
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
333
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
333
334
|
};
|
|
334
|
-
imports.wbg.
|
|
335
|
-
|
|
336
|
-
return addHeapObject(ret);
|
|
335
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
336
|
+
takeObject(arg0);
|
|
337
337
|
};
|
|
338
|
-
imports.wbg.
|
|
339
|
-
const ret = new
|
|
338
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
339
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
340
340
|
return addHeapObject(ret);
|
|
341
341
|
};
|
|
342
|
-
imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
343
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
344
|
-
};
|
|
345
342
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
346
343
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
347
344
|
return addHeapObject(ret);
|
|
@@ -350,9 +347,6 @@ function __wbg_get_imports() {
|
|
|
350
347
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
351
348
|
return addHeapObject(ret);
|
|
352
349
|
}, arguments) };
|
|
353
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
354
|
-
takeObject(arg0);
|
|
355
|
-
};
|
|
356
350
|
imports.wbg.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
357
351
|
const ret = Array.isArray(getObject(arg0));
|
|
358
352
|
return ret;
|
|
@@ -377,6 +371,13 @@ function __wbg_get_imports() {
|
|
|
377
371
|
const ret = getObject(arg0).value;
|
|
378
372
|
return addHeapObject(ret);
|
|
379
373
|
};
|
|
374
|
+
imports.wbg.__wbg_new_898a68150f225f2e = function() {
|
|
375
|
+
const ret = new Array();
|
|
376
|
+
return addHeapObject(ret);
|
|
377
|
+
};
|
|
378
|
+
imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
379
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
380
|
+
};
|
|
380
381
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
381
382
|
const obj = getObject(arg1);
|
|
382
383
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -387,18 +388,6 @@ function __wbg_get_imports() {
|
|
|
387
388
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
388
389
|
return ret;
|
|
389
390
|
};
|
|
390
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
391
|
-
const obj = getObject(arg1);
|
|
392
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
393
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
-
var len1 = WASM_VECTOR_LEN;
|
|
395
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
396
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
397
|
-
};
|
|
398
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
399
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
400
|
-
return addHeapObject(ret);
|
|
401
|
-
};
|
|
402
391
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
403
392
|
const val = getObject(arg0);
|
|
404
393
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -421,6 +410,17 @@ function __wbg_get_imports() {
|
|
|
421
410
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
422
411
|
return ret;
|
|
423
412
|
};
|
|
413
|
+
imports.wbg.__wbg_new_b51585de1b234aff = function() {
|
|
414
|
+
const ret = new Object();
|
|
415
|
+
return addHeapObject(ret);
|
|
416
|
+
};
|
|
417
|
+
imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
418
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
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_6974cdd7892263c1 = 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_a468c1d55c877d65 = function(arg0) {
|
|
453
453
|
const ret = getObject(arg0).getStateRoot();
|
|
454
454
|
return addHeapObject(ret);
|
|
455
455
|
};
|
|
456
|
-
imports.wbg.
|
|
456
|
+
imports.wbg.__wbg_getNextKey_92edc7fa30785932 = 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_1c2f03d5e5e9fa36 = 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_8118f1e9e0dd2341 = function(arg0) {
|
|
465
465
|
const ret = getObject(arg0).offchainTimestamp();
|
|
466
466
|
return addHeapObject(ret);
|
|
467
467
|
};
|
|
468
|
-
imports.wbg.
|
|
468
|
+
imports.wbg.__wbg_offchainRandomSeed_46c2079786567355 = function(arg0) {
|
|
469
469
|
const ret = getObject(arg0).offchainRandomSeed();
|
|
470
470
|
return addHeapObject(ret);
|
|
471
471
|
};
|
|
472
|
-
imports.wbg.
|
|
472
|
+
imports.wbg.__wbg_offchainSubmitTransaction_4f91031b0db383a7 = function(arg0, arg1) {
|
|
473
473
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
474
474
|
return addHeapObject(ret);
|
|
475
475
|
};
|