@acala-network/chopsticks-executor 0.8.1 → 0.8.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.
|
@@ -7,15 +7,20 @@ 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
|
+
|
|
10
12
|
let heap_next = heap.length;
|
|
11
13
|
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
heap_next =
|
|
14
|
+
function dropObject(idx) {
|
|
15
|
+
if (idx < 132) return;
|
|
16
|
+
heap[idx] = heap_next;
|
|
17
|
+
heap_next = idx;
|
|
18
|
+
}
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
function takeObject(idx) {
|
|
21
|
+
const ret = getObject(idx);
|
|
22
|
+
dropObject(idx);
|
|
23
|
+
return ret;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -36,18 +41,13 @@ function getStringFromWasm0(ptr, len) {
|
|
|
36
41
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
37
42
|
}
|
|
38
43
|
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
heap[idx] = heap_next;
|
|
44
|
-
heap_next = idx;
|
|
45
|
-
}
|
|
44
|
+
function addHeapObject(obj) {
|
|
45
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
46
|
+
const idx = heap_next;
|
|
47
|
+
heap_next = heap[idx];
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
dropObject(idx);
|
|
50
|
-
return ret;
|
|
49
|
+
heap[idx] = obj;
|
|
50
|
+
return idx;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function isLikeNone(x) {
|
|
@@ -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,44 +290,74 @@ 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.
|
|
297
|
-
const ret =
|
|
296
|
+
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
297
|
+
const ret = Array.isArray(getObject(arg0));
|
|
298
|
+
return ret;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) {
|
|
302
|
+
const ret = getObject(arg0).length;
|
|
303
|
+
return ret;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
|
|
307
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
298
308
|
return addHeapObject(ret);
|
|
299
309
|
};
|
|
300
310
|
|
|
301
|
-
module.exports.
|
|
302
|
-
getObject(arg0)
|
|
311
|
+
module.exports.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) {
|
|
312
|
+
const ret = getObject(arg0).next();
|
|
313
|
+
return addHeapObject(ret);
|
|
314
|
+
}, arguments) };
|
|
315
|
+
|
|
316
|
+
module.exports.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
|
|
317
|
+
const ret = getObject(arg0).done;
|
|
318
|
+
return ret;
|
|
303
319
|
};
|
|
304
320
|
|
|
305
|
-
module.exports.
|
|
306
|
-
const ret = arg0;
|
|
321
|
+
module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
|
|
322
|
+
const ret = getObject(arg0).value;
|
|
307
323
|
return addHeapObject(ret);
|
|
308
324
|
};
|
|
309
325
|
|
|
326
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
327
|
+
takeObject(arg0);
|
|
328
|
+
};
|
|
329
|
+
|
|
310
330
|
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
311
331
|
const ret = new Array();
|
|
312
332
|
return addHeapObject(ret);
|
|
313
333
|
};
|
|
314
334
|
|
|
315
|
-
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
316
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
317
|
-
};
|
|
318
|
-
|
|
319
335
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
320
336
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
321
337
|
return addHeapObject(ret);
|
|
322
338
|
};
|
|
323
339
|
|
|
340
|
+
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
341
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
342
|
+
};
|
|
343
|
+
|
|
324
344
|
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
325
345
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
326
346
|
return addHeapObject(ret);
|
|
327
347
|
}, arguments) };
|
|
328
348
|
|
|
329
|
-
module.exports.
|
|
330
|
-
|
|
349
|
+
module.exports.__wbg_new_b51585de1b234aff = function() {
|
|
350
|
+
const ret = new Object();
|
|
351
|
+
return addHeapObject(ret);
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
355
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
359
|
+
const ret = arg0;
|
|
360
|
+
return addHeapObject(ret);
|
|
331
361
|
};
|
|
332
362
|
|
|
333
363
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
@@ -351,36 +381,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
351
381
|
return ret;
|
|
352
382
|
};
|
|
353
383
|
|
|
354
|
-
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
355
|
-
const ret = Array.isArray(getObject(arg0));
|
|
356
|
-
return ret;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) {
|
|
360
|
-
const ret = getObject(arg0).length;
|
|
361
|
-
return ret;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
|
|
365
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
366
|
-
return addHeapObject(ret);
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
module.exports.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) {
|
|
370
|
-
const ret = getObject(arg0).next();
|
|
371
|
-
return addHeapObject(ret);
|
|
372
|
-
}, arguments) };
|
|
373
|
-
|
|
374
|
-
module.exports.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
|
|
375
|
-
const ret = getObject(arg0).done;
|
|
376
|
-
return ret;
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
|
|
380
|
-
const ret = getObject(arg0).value;
|
|
381
|
-
return addHeapObject(ret);
|
|
382
|
-
};
|
|
383
|
-
|
|
384
384
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
385
385
|
const v = getObject(arg0);
|
|
386
386
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -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_wrapper1332 = 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;
|