@acala-network/chopsticks-executor 0.9.1 → 0.9.2-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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
5
|
|
|
6
6
|
const heap = new Array(128).fill(undefined);
|
|
7
7
|
|
|
@@ -9,7 +9,45 @@ heap.push(undefined, null, true, false);
|
|
|
9
9
|
|
|
10
10
|
function getObject(idx) { return heap[idx]; }
|
|
11
11
|
|
|
12
|
-
let
|
|
12
|
+
let heap_next = heap.length;
|
|
13
|
+
|
|
14
|
+
function dropObject(idx) {
|
|
15
|
+
if (idx < 132) return;
|
|
16
|
+
heap[idx] = heap_next;
|
|
17
|
+
heap_next = idx;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function takeObject(idx) {
|
|
21
|
+
const ret = getObject(idx);
|
|
22
|
+
dropObject(idx);
|
|
23
|
+
return ret;
|
|
24
|
+
}
|
|
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
|
+
|
|
48
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
49
|
+
|
|
50
|
+
cachedTextDecoder.decode();
|
|
13
51
|
|
|
14
52
|
let cachedUint8Memory0 = null;
|
|
15
53
|
|
|
@@ -20,6 +58,22 @@ function getUint8Memory0() {
|
|
|
20
58
|
return cachedUint8Memory0;
|
|
21
59
|
}
|
|
22
60
|
|
|
61
|
+
function getStringFromWasm0(ptr, len) {
|
|
62
|
+
ptr = ptr >>> 0;
|
|
63
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function addHeapObject(obj) {
|
|
67
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
68
|
+
const idx = heap_next;
|
|
69
|
+
heap_next = heap[idx];
|
|
70
|
+
|
|
71
|
+
heap[idx] = obj;
|
|
72
|
+
return idx;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let WASM_VECTOR_LEN = 0;
|
|
76
|
+
|
|
23
77
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
24
78
|
|
|
25
79
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -73,60 +127,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
73
127
|
return ptr;
|
|
74
128
|
}
|
|
75
129
|
|
|
76
|
-
function isLikeNone(x) {
|
|
77
|
-
return x === undefined || x === null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
let cachedInt32Memory0 = null;
|
|
81
|
-
|
|
82
|
-
function getInt32Memory0() {
|
|
83
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
84
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
85
|
-
}
|
|
86
|
-
return cachedInt32Memory0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
let heap_next = heap.length;
|
|
90
|
-
|
|
91
|
-
function dropObject(idx) {
|
|
92
|
-
if (idx < 132) return;
|
|
93
|
-
heap[idx] = heap_next;
|
|
94
|
-
heap_next = idx;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function takeObject(idx) {
|
|
98
|
-
const ret = getObject(idx);
|
|
99
|
-
dropObject(idx);
|
|
100
|
-
return ret;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
|
-
|
|
105
|
-
cachedTextDecoder.decode();
|
|
106
|
-
|
|
107
|
-
function getStringFromWasm0(ptr, len) {
|
|
108
|
-
ptr = ptr >>> 0;
|
|
109
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function addHeapObject(obj) {
|
|
113
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
114
|
-
const idx = heap_next;
|
|
115
|
-
heap_next = heap[idx];
|
|
116
|
-
|
|
117
|
-
heap[idx] = obj;
|
|
118
|
-
return idx;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
let cachedFloat64Memory0 = null;
|
|
122
|
-
|
|
123
|
-
function getFloat64Memory0() {
|
|
124
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
125
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
126
|
-
}
|
|
127
|
-
return cachedFloat64Memory0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
130
|
let cachedBigInt64Memory0 = null;
|
|
131
131
|
|
|
132
132
|
function getBigInt64Memory0() {
|
|
@@ -293,34 +293,6 @@ function __wbg_adapter_108(arg0, arg1, arg2, arg3) {
|
|
|
293
293
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h59e4ab6c95dba127(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
297
|
-
const obj = getObject(arg1);
|
|
298
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
299
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
-
var len1 = WASM_VECTOR_LEN;
|
|
301
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
302
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
306
|
-
takeObject(arg0);
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
310
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
311
|
-
return addHeapObject(ret);
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
315
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
316
|
-
return addHeapObject(ret);
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
320
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
321
|
-
return addHeapObject(ret);
|
|
322
|
-
}, arguments) };
|
|
323
|
-
|
|
324
296
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
325
297
|
const val = getObject(arg0);
|
|
326
298
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -342,6 +314,10 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
342
314
|
return ret;
|
|
343
315
|
};
|
|
344
316
|
|
|
317
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
318
|
+
takeObject(arg0);
|
|
319
|
+
};
|
|
320
|
+
|
|
345
321
|
module.exports.__wbg_isArray_38525be7442aa21e = function(arg0) {
|
|
346
322
|
const ret = Array.isArray(getObject(arg0));
|
|
347
323
|
return ret;
|
|
@@ -404,6 +380,11 @@ module.exports.__wbg_new_08236689f0afb357 = function() {
|
|
|
404
380
|
return addHeapObject(ret);
|
|
405
381
|
};
|
|
406
382
|
|
|
383
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
384
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
385
|
+
return addHeapObject(ret);
|
|
386
|
+
};
|
|
387
|
+
|
|
407
388
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
408
389
|
const ret = arg0;
|
|
409
390
|
return addHeapObject(ret);
|
|
@@ -413,6 +394,25 @@ module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
|
413
394
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
414
395
|
};
|
|
415
396
|
|
|
397
|
+
module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
398
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
399
|
+
return addHeapObject(ret);
|
|
400
|
+
}, arguments) };
|
|
401
|
+
|
|
402
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
403
|
+
const obj = getObject(arg1);
|
|
404
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
405
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
+
var len1 = WASM_VECTOR_LEN;
|
|
407
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
408
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
412
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
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) {
|
|
@@ -441,37 +441,37 @@ module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
|
|
|
441
441
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
442
442
|
};
|
|
443
443
|
|
|
444
|
-
module.exports.
|
|
444
|
+
module.exports.__wbg_getStorage_a6288f2d1cf44b30 = function(arg0, arg1) {
|
|
445
445
|
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
446
446
|
return addHeapObject(ret);
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
module.exports.
|
|
449
|
+
module.exports.__wbg_getStateRoot_1886a99c0e595965 = function(arg0) {
|
|
450
450
|
const ret = getObject(arg0).getStateRoot();
|
|
451
451
|
return addHeapObject(ret);
|
|
452
452
|
};
|
|
453
453
|
|
|
454
|
-
module.exports.
|
|
454
|
+
module.exports.__wbg_getNextKey_58d07904813566b3 = function(arg0, arg1, arg2) {
|
|
455
455
|
const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
|
|
456
456
|
return addHeapObject(ret);
|
|
457
457
|
};
|
|
458
458
|
|
|
459
|
-
module.exports.
|
|
459
|
+
module.exports.__wbg_offchainGetStorage_b65b7c7c29681cb4 = function(arg0, arg1) {
|
|
460
460
|
const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
|
|
461
461
|
return addHeapObject(ret);
|
|
462
462
|
};
|
|
463
463
|
|
|
464
|
-
module.exports.
|
|
464
|
+
module.exports.__wbg_offchainTimestamp_5e5d1148b29d8d14 = function(arg0) {
|
|
465
465
|
const ret = getObject(arg0).offchainTimestamp();
|
|
466
466
|
return addHeapObject(ret);
|
|
467
467
|
};
|
|
468
468
|
|
|
469
|
-
module.exports.
|
|
469
|
+
module.exports.__wbg_offchainRandomSeed_5aaf1373a007daa3 = function(arg0) {
|
|
470
470
|
const ret = getObject(arg0).offchainRandomSeed();
|
|
471
471
|
return addHeapObject(ret);
|
|
472
472
|
};
|
|
473
473
|
|
|
474
|
-
module.exports.
|
|
474
|
+
module.exports.__wbg_offchainSubmitTransaction_c7e4338aacfd781a = function(arg0, arg1) {
|
|
475
475
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
};
|
|
@@ -699,7 +699,7 @@ module.exports.__wbg_warn_4affe1093892a4ef = function(arg0) {
|
|
|
699
699
|
console.warn(getObject(arg0));
|
|
700
700
|
};
|
|
701
701
|
|
|
702
|
-
module.exports.
|
|
702
|
+
module.exports.__wbindgen_closure_wrapper1337 = function(arg0, arg1, arg2) {
|
|
703
703
|
const ret = makeMutClosure(arg0, arg1, 122, __wbg_adapter_46);
|
|
704
704
|
return addHeapObject(ret);
|
|
705
705
|
};
|
|
Binary file
|