@acala-network/chopsticks-executor 0.3.7 → 0.3.11
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.
- package/chopsticks_executor.js +60 -60
- package/chopsticks_executor_bg.wasm +0 -0
- package/package.json +1 -1
package/chopsticks_executor.js
CHANGED
|
@@ -9,20 +9,6 @@ heap.push(undefined, null, true, false);
|
|
|
9
9
|
|
|
10
10
|
function getObject(idx) { return heap[idx]; }
|
|
11
11
|
|
|
12
|
-
let heap_next = heap.length;
|
|
13
|
-
|
|
14
|
-
function dropObject(idx) {
|
|
15
|
-
if (idx < 36) return;
|
|
16
|
-
heap[idx] = heap_next;
|
|
17
|
-
heap_next = idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function takeObject(idx) {
|
|
21
|
-
const ret = getObject(idx);
|
|
22
|
-
dropObject(idx);
|
|
23
|
-
return ret;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
12
|
let WASM_VECTOR_LEN = 0;
|
|
27
13
|
|
|
28
14
|
let cachedUint8Memory0 = new Uint8Array();
|
|
@@ -100,6 +86,20 @@ function getInt32Memory0() {
|
|
|
100
86
|
return cachedInt32Memory0;
|
|
101
87
|
}
|
|
102
88
|
|
|
89
|
+
let heap_next = heap.length;
|
|
90
|
+
|
|
91
|
+
function dropObject(idx) {
|
|
92
|
+
if (idx < 36) 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
103
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
104
|
|
|
105
105
|
cachedTextDecoder.decode();
|
|
@@ -280,6 +280,34 @@ function __wbg_adapter_88(arg0, arg1, arg2, arg3) {
|
|
|
280
280
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4831fdb5a8179a77(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
284
|
+
const obj = getObject(arg1);
|
|
285
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
286
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
287
|
+
var len0 = WASM_VECTOR_LEN;
|
|
288
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
289
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
293
|
+
takeObject(arg0);
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
297
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
298
|
+
return addHeapObject(ret);
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
302
|
+
const obj = takeObject(arg0).original;
|
|
303
|
+
if (obj.cnt-- == 1) {
|
|
304
|
+
obj.a = 0;
|
|
305
|
+
return true;
|
|
306
|
+
}
|
|
307
|
+
const ret = false;
|
|
308
|
+
return ret;
|
|
309
|
+
};
|
|
310
|
+
|
|
283
311
|
module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
284
312
|
const ret = Array.isArray(getObject(arg0));
|
|
285
313
|
return ret;
|
|
@@ -310,34 +338,6 @@ module.exports.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
|
310
338
|
return addHeapObject(ret);
|
|
311
339
|
};
|
|
312
340
|
|
|
313
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
314
|
-
takeObject(arg0);
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
318
|
-
const obj = getObject(arg1);
|
|
319
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
320
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
|
-
var len0 = WASM_VECTOR_LEN;
|
|
322
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
323
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
327
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
328
|
-
return addHeapObject(ret);
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
332
|
-
const obj = takeObject(arg0).original;
|
|
333
|
-
if (obj.cnt-- == 1) {
|
|
334
|
-
obj.a = 0;
|
|
335
|
-
return true;
|
|
336
|
-
}
|
|
337
|
-
const ret = false;
|
|
338
|
-
return ret;
|
|
339
|
-
};
|
|
340
|
-
|
|
341
341
|
module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
342
342
|
const ret = new Array();
|
|
343
343
|
return addHeapObject(ret);
|
|
@@ -362,6 +362,20 @@ module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(fun
|
|
|
362
362
|
return addHeapObject(ret);
|
|
363
363
|
}, arguments) };
|
|
364
364
|
|
|
365
|
+
module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
366
|
+
const ret = new Object();
|
|
367
|
+
return addHeapObject(ret);
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
371
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
375
|
+
const ret = arg0;
|
|
376
|
+
return addHeapObject(ret);
|
|
377
|
+
};
|
|
378
|
+
|
|
365
379
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
366
380
|
const val = getObject(arg0);
|
|
367
381
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -389,31 +403,17 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
|
389
403
|
return ret;
|
|
390
404
|
};
|
|
391
405
|
|
|
392
|
-
module.exports.
|
|
393
|
-
const ret = new Object();
|
|
394
|
-
return addHeapObject(ret);
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
398
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
402
|
-
const ret = arg0;
|
|
403
|
-
return addHeapObject(ret);
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
module.exports.__wbg_getNextKey_e272341ffe1ecd6c = function(arg0, arg1) {
|
|
406
|
+
module.exports.__wbg_getNextKey_922e2602e3d8a4a9 = function(arg0, arg1) {
|
|
407
407
|
const ret = getObject(arg0).getNextKey(takeObject(arg1));
|
|
408
408
|
return addHeapObject(ret);
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
-
module.exports.
|
|
411
|
+
module.exports.__wbg_getPrefixKeys_2f74629c4293471d = function(arg0, arg1) {
|
|
412
412
|
const ret = getObject(arg0).getPrefixKeys(takeObject(arg1));
|
|
413
413
|
return addHeapObject(ret);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
module.exports.
|
|
416
|
+
module.exports.__wbg_getStorage_5ae7903b2be3c3eb = function(arg0, arg1) {
|
|
417
417
|
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
418
418
|
return addHeapObject(ret);
|
|
419
419
|
};
|
|
@@ -581,7 +581,7 @@ module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
|
581
581
|
return addHeapObject(ret);
|
|
582
582
|
};
|
|
583
583
|
|
|
584
|
-
module.exports.
|
|
584
|
+
module.exports.__wbindgen_closure_wrapper1232 = function(arg0, arg1, arg2) {
|
|
585
585
|
const ret = makeMutClosure(arg0, arg1, 75, __wbg_adapter_38);
|
|
586
586
|
return addHeapObject(ret);
|
|
587
587
|
};
|
|
Binary file
|