@acala-network/chopsticks-executor 0.9.1-4 → 0.9.1-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.
|
@@ -7,10 +7,37 @@ const heap = new Array(128).fill(undefined);
|
|
|
7
7
|
|
|
8
8
|
heap.push(undefined, null, true, false);
|
|
9
9
|
|
|
10
|
-
function getObject(idx) { return heap[idx]; }
|
|
11
|
-
|
|
12
10
|
let heap_next = heap.length;
|
|
13
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
|
+
function getObject(idx) { return heap[idx]; }
|
|
40
|
+
|
|
14
41
|
function dropObject(idx) {
|
|
15
42
|
if (idx < 132) return;
|
|
16
43
|
heap[idx] = heap_next;
|
|
@@ -45,33 +72,6 @@ function getInt32Memory0() {
|
|
|
45
72
|
return cachedInt32Memory0;
|
|
46
73
|
}
|
|
47
74
|
|
|
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');
|
|
@@ -293,50 +293,27 @@ 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.
|
|
297
|
-
const ret =
|
|
298
|
-
return ret;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
module.exports.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
|
|
302
|
-
const ret = getObject(arg0).length;
|
|
303
|
-
return ret;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
module.exports.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
|
|
307
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
296
|
+
module.exports.__wbg_new_c728d68b8b34487e = function() {
|
|
297
|
+
const ret = new Object();
|
|
308
298
|
return addHeapObject(ret);
|
|
309
299
|
};
|
|
310
300
|
|
|
311
|
-
module.exports.
|
|
312
|
-
|
|
313
|
-
return addHeapObject(ret);
|
|
314
|
-
}, arguments) };
|
|
315
|
-
|
|
316
|
-
module.exports.__wbg_done_bc26bf4ada718266 = function(arg0) {
|
|
317
|
-
const ret = getObject(arg0).done;
|
|
318
|
-
return ret;
|
|
301
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
302
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
319
303
|
};
|
|
320
304
|
|
|
321
|
-
module.exports.
|
|
322
|
-
const ret =
|
|
305
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
306
|
+
const ret = arg0;
|
|
323
307
|
return addHeapObject(ret);
|
|
324
308
|
};
|
|
325
309
|
|
|
326
|
-
module.exports.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
331
|
-
const obj = getObject(arg1);
|
|
332
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
333
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
334
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
310
|
+
module.exports.__wbg_new_08236689f0afb357 = function() {
|
|
311
|
+
const ret = new Array();
|
|
312
|
+
return addHeapObject(ret);
|
|
335
313
|
};
|
|
336
314
|
|
|
337
|
-
module.exports.
|
|
338
|
-
|
|
339
|
-
return ret;
|
|
315
|
+
module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
|
|
316
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
340
317
|
};
|
|
341
318
|
|
|
342
319
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -349,27 +326,8 @@ module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(fun
|
|
|
349
326
|
return addHeapObject(ret);
|
|
350
327
|
}, arguments) };
|
|
351
328
|
|
|
352
|
-
module.exports.
|
|
353
|
-
|
|
354
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
355
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
|
-
var len1 = WASM_VECTOR_LEN;
|
|
357
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
358
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
362
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
363
|
-
return addHeapObject(ret);
|
|
364
|
-
};
|
|
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);
|
|
329
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
330
|
+
takeObject(arg0);
|
|
373
331
|
};
|
|
374
332
|
|
|
375
333
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
@@ -393,23 +351,65 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
393
351
|
return ret;
|
|
394
352
|
};
|
|
395
353
|
|
|
354
|
+
module.exports.__wbg_isArray_38525be7442aa21e = function(arg0) {
|
|
355
|
+
const ret = Array.isArray(getObject(arg0));
|
|
356
|
+
return ret;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
module.exports.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
|
|
360
|
+
const ret = getObject(arg0).length;
|
|
361
|
+
return ret;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
module.exports.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
|
|
365
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
366
|
+
return addHeapObject(ret);
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
module.exports.__wbg_next_1989a20442400aaa = function() { return handleError(function (arg0) {
|
|
370
|
+
const ret = getObject(arg0).next();
|
|
371
|
+
return addHeapObject(ret);
|
|
372
|
+
}, arguments) };
|
|
373
|
+
|
|
374
|
+
module.exports.__wbg_done_bc26bf4ada718266 = function(arg0) {
|
|
375
|
+
const ret = getObject(arg0).done;
|
|
376
|
+
return ret;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
module.exports.__wbg_value_0570714ff7d75f35 = function(arg0) {
|
|
380
|
+
const ret = getObject(arg0).value;
|
|
381
|
+
return addHeapObject(ret);
|
|
382
|
+
};
|
|
383
|
+
|
|
396
384
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
397
385
|
const v = getObject(arg0);
|
|
398
386
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
399
387
|
return ret;
|
|
400
388
|
};
|
|
401
389
|
|
|
402
|
-
module.exports.
|
|
403
|
-
const
|
|
404
|
-
|
|
390
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
391
|
+
const obj = getObject(arg1);
|
|
392
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
393
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
394
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
405
395
|
};
|
|
406
396
|
|
|
407
|
-
module.exports.
|
|
408
|
-
getObject(arg0)
|
|
397
|
+
module.exports.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
|
|
398
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
399
|
+
return ret;
|
|
409
400
|
};
|
|
410
401
|
|
|
411
|
-
module.exports.
|
|
412
|
-
const
|
|
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
413
|
return addHeapObject(ret);
|
|
414
414
|
};
|
|
415
415
|
|
|
@@ -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_96697e11c56b79c4 = 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_d9cce7707839676f = 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_ebb14ba19e806c29 = 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_9008dade145767af = 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_5ee9ae90800cd2f7 = 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_be8daaa3095ab839 = 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_c50602f39032740b = function(arg0, arg1) {
|
|
475
475
|
const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
};
|
|
Binary file
|