@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.
|
@@ -7,37 +7,10 @@ const heap = new Array(128).fill(undefined);
|
|
|
7
7
|
|
|
8
8
|
heap.push(undefined, null, true, false);
|
|
9
9
|
|
|
10
|
-
let heap_next = heap.length;
|
|
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 });
|
|
22
|
-
|
|
23
|
-
cachedTextDecoder.decode();
|
|
24
|
-
|
|
25
|
-
let cachedUint8Memory0 = null;
|
|
26
|
-
|
|
27
|
-
function getUint8Memory0() {
|
|
28
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
29
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
30
|
-
}
|
|
31
|
-
return cachedUint8Memory0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function getStringFromWasm0(ptr, len) {
|
|
35
|
-
ptr = ptr >>> 0;
|
|
36
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
10
|
function getObject(idx) { return heap[idx]; }
|
|
40
11
|
|
|
12
|
+
let heap_next = heap.length;
|
|
13
|
+
|
|
41
14
|
function dropObject(idx) {
|
|
42
15
|
if (idx < 132) return;
|
|
43
16
|
heap[idx] = heap_next;
|
|
@@ -72,6 +45,33 @@ function getInt32Memory0() {
|
|
|
72
45
|
return cachedInt32Memory0;
|
|
73
46
|
}
|
|
74
47
|
|
|
48
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
49
|
+
|
|
50
|
+
cachedTextDecoder.decode();
|
|
51
|
+
|
|
52
|
+
let cachedUint8Memory0 = null;
|
|
53
|
+
|
|
54
|
+
function getUint8Memory0() {
|
|
55
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
56
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
57
|
+
}
|
|
58
|
+
return cachedUint8Memory0;
|
|
59
|
+
}
|
|
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
75
|
let WASM_VECTOR_LEN = 0;
|
|
76
76
|
|
|
77
77
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -226,7 +226,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
226
226
|
return real;
|
|
227
227
|
}
|
|
228
228
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
229
|
-
wasm.
|
|
229
|
+
wasm.wasm_bindgen__convert__closures__invoke1_mut__hc4c3186ceda303d2(arg0, arg1, addHeapObject(arg2));
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/**
|
|
@@ -290,46 +290,9 @@ function handleError(f, args) {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
function __wbg_adapter_106(arg0, arg1, arg2, arg3) {
|
|
293
|
-
wasm.
|
|
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_is_object = function(arg0) {
|
|
334
297
|
const val = getObject(arg0);
|
|
335
298
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -351,6 +314,10 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
351
314
|
return ret;
|
|
352
315
|
};
|
|
353
316
|
|
|
317
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
318
|
+
takeObject(arg0);
|
|
319
|
+
};
|
|
320
|
+
|
|
354
321
|
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
355
322
|
const ret = Array.isArray(getObject(arg0));
|
|
356
323
|
return ret;
|
|
@@ -399,6 +366,34 @@ module.exports.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
|
|
|
399
366
|
return ret;
|
|
400
367
|
};
|
|
401
368
|
|
|
369
|
+
module.exports.__wbg_new_b51585de1b234aff = function() {
|
|
370
|
+
const ret = new Object();
|
|
371
|
+
return addHeapObject(ret);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
375
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
379
|
+
const ret = new Array();
|
|
380
|
+
return addHeapObject(ret);
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
384
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
385
|
+
return addHeapObject(ret);
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
389
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
390
|
+
};
|
|
391
|
+
|
|
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) };
|
|
396
|
+
|
|
402
397
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
403
398
|
const obj = getObject(arg1);
|
|
404
399
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -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) {
|
|
@@ -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_0caa9fff1ec93d2c = 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_d883db6c9e7723c4 = 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_b142e3a045ec19f7 = 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_04d971d8d9be4555 = 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_56adb994773c3d84 = 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_00d96b9f7a7d6171 = 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_0afd1bebc089ab44 = function(arg0, arg1) {
|
|
475
475
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
};
|
|
@@ -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
|
|
@@ -9,7 +9,7 @@ export function run_task(a: number, b: number, c: number, d: number): number;
|
|
|
9
9
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
10
10
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
11
11
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
12
|
-
export function
|
|
12
|
+
export function wasm_bindgen__convert__closures__invoke1_mut__hc4c3186ceda303d2(a: number, b: number, c: number): void;
|
|
13
13
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
14
14
|
export function __wbindgen_exn_store(a: number): void;
|
|
15
|
-
export function
|
|
15
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h2cd630d2c4a26d29(a: number, b: number, c: number, d: number): void;
|