@acala-network/chopsticks-executor 0.8.5-3 → 0.8.5-5
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,26 +1,15 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
5
5
|
|
|
6
6
|
const heap = new Array(128).fill(undefined);
|
|
7
7
|
|
|
8
8
|
heap.push(undefined, null, true, false);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function addHeapObject(obj) {
|
|
13
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
14
|
-
const idx = heap_next;
|
|
15
|
-
heap_next = heap[idx];
|
|
16
|
-
|
|
17
|
-
heap[idx] = obj;
|
|
18
|
-
return idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
|
+
function getObject(idx) { return heap[idx]; }
|
|
22
11
|
|
|
23
|
-
|
|
12
|
+
let WASM_VECTOR_LEN = 0;
|
|
24
13
|
|
|
25
14
|
let cachedUint8Memory0 = null;
|
|
26
15
|
|
|
@@ -31,27 +20,6 @@ function getUint8Memory0() {
|
|
|
31
20
|
return cachedUint8Memory0;
|
|
32
21
|
}
|
|
33
22
|
|
|
34
|
-
function getStringFromWasm0(ptr, len) {
|
|
35
|
-
ptr = ptr >>> 0;
|
|
36
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function getObject(idx) { return heap[idx]; }
|
|
40
|
-
|
|
41
|
-
function dropObject(idx) {
|
|
42
|
-
if (idx < 132) return;
|
|
43
|
-
heap[idx] = heap_next;
|
|
44
|
-
heap_next = idx;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function takeObject(idx) {
|
|
48
|
-
const ret = getObject(idx);
|
|
49
|
-
dropObject(idx);
|
|
50
|
-
return ret;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let WASM_VECTOR_LEN = 0;
|
|
54
|
-
|
|
55
23
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
56
24
|
|
|
57
25
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -118,6 +86,38 @@ function getInt32Memory0() {
|
|
|
118
86
|
return cachedInt32Memory0;
|
|
119
87
|
}
|
|
120
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
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -293,43 +293,6 @@ 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.__wbg_new_b51585de1b234aff = function() {
|
|
297
|
-
const ret = new Object();
|
|
298
|
-
return addHeapObject(ret);
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
302
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
306
|
-
const ret = arg0;
|
|
307
|
-
return addHeapObject(ret);
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
311
|
-
const ret = new Array();
|
|
312
|
-
return addHeapObject(ret);
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
316
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
320
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
321
|
-
return addHeapObject(ret);
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
325
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
326
|
-
return addHeapObject(ret);
|
|
327
|
-
}, arguments) };
|
|
328
|
-
|
|
329
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
330
|
-
takeObject(arg0);
|
|
331
|
-
};
|
|
332
|
-
|
|
333
296
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
334
297
|
const obj = getObject(arg1);
|
|
335
298
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -339,31 +302,24 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
339
302
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
340
303
|
};
|
|
341
304
|
|
|
305
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
306
|
+
takeObject(arg0);
|
|
307
|
+
};
|
|
308
|
+
|
|
342
309
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
343
310
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
344
311
|
return addHeapObject(ret);
|
|
345
312
|
};
|
|
346
313
|
|
|
347
|
-
module.exports.
|
|
348
|
-
const
|
|
349
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
350
|
-
return ret;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
354
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
314
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
315
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
355
316
|
return addHeapObject(ret);
|
|
356
317
|
};
|
|
357
318
|
|
|
358
|
-
module.exports.
|
|
359
|
-
const ret = getObject(arg0)
|
|
360
|
-
return ret;
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
364
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
365
|
-
return ret;
|
|
366
|
-
};
|
|
319
|
+
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
320
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
321
|
+
return addHeapObject(ret);
|
|
322
|
+
}, arguments) };
|
|
367
323
|
|
|
368
324
|
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
369
325
|
const ret = Array.isArray(getObject(arg0));
|
|
@@ -395,6 +351,36 @@ module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
|
|
|
395
351
|
return addHeapObject(ret);
|
|
396
352
|
};
|
|
397
353
|
|
|
354
|
+
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
355
|
+
const ret = new Array();
|
|
356
|
+
return addHeapObject(ret);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
360
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
364
|
+
const val = getObject(arg0);
|
|
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)];
|
|
371
|
+
return addHeapObject(ret);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
375
|
+
const ret = getObject(arg0) === undefined;
|
|
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
|
+
|
|
398
384
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
399
385
|
const v = getObject(arg0);
|
|
400
386
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -413,6 +399,20 @@ module.exports.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
|
|
|
413
399
|
return ret;
|
|
414
400
|
};
|
|
415
401
|
|
|
402
|
+
module.exports.__wbg_new_b51585de1b234aff = function() {
|
|
403
|
+
const ret = new Object();
|
|
404
|
+
return addHeapObject(ret);
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
408
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
409
|
+
};
|
|
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) {
|
|
@@ -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_f22ae175ad2fd542 = 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_ade71ce2210711ce = 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_7e065d238c600746 = 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_eaa6dd52944fa13c = 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_b3661814b959d349 = 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_8671488d352a017e = 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_75b3df662d4665c7 = function(arg0, arg1) {
|
|
475
475
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
};
|
|
Binary file
|