@acala-network/chopsticks-executor 0.3.0 → 0.3.7
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 +51 -51
- package/chopsticks_executor_bg.wasm +0 -0
- package/package.json +1 -1
package/chopsticks_executor.js
CHANGED
|
@@ -9,6 +9,20 @@ 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
|
+
|
|
12
26
|
let WASM_VECTOR_LEN = 0;
|
|
13
27
|
|
|
14
28
|
let cachedUint8Memory0 = new Uint8Array();
|
|
@@ -86,20 +100,6 @@ function getInt32Memory0() {
|
|
|
86
100
|
return cachedInt32Memory0;
|
|
87
101
|
}
|
|
88
102
|
|
|
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();
|
|
@@ -216,7 +216,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
216
216
|
return real;
|
|
217
217
|
}
|
|
218
218
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
219
|
-
wasm.
|
|
219
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h57e8f38a95776fdb(arg0, arg1, addHeapObject(arg2));
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/**
|
|
@@ -277,27 +277,9 @@ function handleError(f, args) {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
function __wbg_adapter_88(arg0, arg1, arg2, arg3) {
|
|
280
|
-
wasm.
|
|
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
283
|
module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
302
284
|
const ret = Array.isArray(getObject(arg0));
|
|
303
285
|
return ret;
|
|
@@ -328,6 +310,24 @@ module.exports.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
|
328
310
|
return addHeapObject(ret);
|
|
329
311
|
};
|
|
330
312
|
|
|
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
331
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
332
332
|
const obj = takeObject(arg0).original;
|
|
333
333
|
if (obj.cnt-- == 1) {
|
|
@@ -362,20 +362,6 @@ 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
|
-
|
|
379
365
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
380
366
|
const val = getObject(arg0);
|
|
381
367
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -403,17 +389,31 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
|
403
389
|
return ret;
|
|
404
390
|
};
|
|
405
391
|
|
|
406
|
-
module.exports.
|
|
392
|
+
module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
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) {
|
|
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_baa995a636e065ed = 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_ef7af19c1cdc4f7a = function(arg0, arg1) {
|
|
417
417
|
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
418
418
|
return addHeapObject(ret);
|
|
419
419
|
};
|
|
Binary file
|