@acala-network/chopsticks-executor 0.9.1-3 → 0.9.1-4
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.
|
@@ -32,7 +32,7 @@ export function create_proof(nodes: any, entries: any): Promise<any>;
|
|
|
32
32
|
*/
|
|
33
33
|
export function run_task(task: any, js: JsCallback, log_level?: string): Promise<any>;
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
type HexString = `0x${string}`;
|
|
36
36
|
export interface JsCallback {
|
|
37
37
|
getStorage: (key: HexString) => Promise<string | undefined>
|
|
38
38
|
getStateRoot: () => Promise<string>
|
|
@@ -23,6 +23,28 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
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
|
+
|
|
26
48
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
27
49
|
|
|
28
50
|
cachedTextDecoder.decode();
|
|
@@ -50,28 +72,6 @@ function addHeapObject(obj) {
|
|
|
50
72
|
return idx;
|
|
51
73
|
}
|
|
52
74
|
|
|
53
|
-
function isLikeNone(x) {
|
|
54
|
-
return x === undefined || x === null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
let cachedFloat64Memory0 = null;
|
|
58
|
-
|
|
59
|
-
function getFloat64Memory0() {
|
|
60
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
61
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
62
|
-
}
|
|
63
|
-
return cachedFloat64Memory0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let cachedInt32Memory0 = null;
|
|
67
|
-
|
|
68
|
-
function getInt32Memory0() {
|
|
69
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
70
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
71
|
-
}
|
|
72
|
-
return cachedInt32Memory0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
let WASM_VECTOR_LEN = 0;
|
|
76
76
|
|
|
77
77
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -327,25 +327,6 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
327
327
|
takeObject(arg0);
|
|
328
328
|
};
|
|
329
329
|
|
|
330
|
-
module.exports.__wbg_new_08236689f0afb357 = function() {
|
|
331
|
-
const ret = new Array();
|
|
332
|
-
return addHeapObject(ret);
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
336
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
337
|
-
return addHeapObject(ret);
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
341
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
345
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
346
|
-
return addHeapObject(ret);
|
|
347
|
-
}, arguments) };
|
|
348
|
-
|
|
349
330
|
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
350
331
|
const obj = getObject(arg1);
|
|
351
332
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -358,19 +339,15 @@ module.exports.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
|
|
|
358
339
|
return ret;
|
|
359
340
|
};
|
|
360
341
|
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret =
|
|
342
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
343
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
363
344
|
return addHeapObject(ret);
|
|
364
345
|
};
|
|
365
346
|
|
|
366
|
-
module.exports.
|
|
367
|
-
getObject(arg0)
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
371
|
-
const ret = arg0;
|
|
347
|
+
module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
348
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
372
349
|
return addHeapObject(ret);
|
|
373
|
-
};
|
|
350
|
+
}, arguments) };
|
|
374
351
|
|
|
375
352
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
376
353
|
const obj = getObject(arg1);
|
|
@@ -386,6 +363,15 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
386
363
|
return addHeapObject(ret);
|
|
387
364
|
};
|
|
388
365
|
|
|
366
|
+
module.exports.__wbg_new_08236689f0afb357 = function() {
|
|
367
|
+
const ret = new Array();
|
|
368
|
+
return addHeapObject(ret);
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
372
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
373
|
+
};
|
|
374
|
+
|
|
389
375
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
390
376
|
const val = getObject(arg0);
|
|
391
377
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -413,6 +399,20 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
|
413
399
|
return ret;
|
|
414
400
|
};
|
|
415
401
|
|
|
402
|
+
module.exports.__wbg_new_c728d68b8b34487e = 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_38f461cd4d96f7d1 = 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_fc671ff707491162 = 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_f352f504a9c8782f = 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_4b8766ede1cae211 = 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_45ee8b247786d9ab = 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_676554dcb697cf70 = 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_a82409c564dd9903 = function(arg0, arg1) {
|
|
475
475
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
};
|
|
Binary file
|