@acala-network/chopsticks-executor 0.6.1 → 0.6.3
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.d.ts
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
export function get_runtime_version(code: any): Promise<any>;
|
|
8
8
|
/**
|
|
9
9
|
* @param {any} entries
|
|
10
|
+
* @param {any} trie_version
|
|
10
11
|
* @returns {Promise<any>}
|
|
11
12
|
*/
|
|
12
|
-
export function calculate_state_root(entries: any): Promise<any>;
|
|
13
|
+
export function calculate_state_root(entries: any, trie_version: any): Promise<any>;
|
|
13
14
|
/**
|
|
14
15
|
* @param {any} root_trie_hash
|
|
15
16
|
* @param {any} keys
|
package/chopsticks_executor.js
CHANGED
|
@@ -230,10 +230,11 @@ module.exports.get_runtime_version = function(code) {
|
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* @param {any} entries
|
|
233
|
+
* @param {any} trie_version
|
|
233
234
|
* @returns {Promise<any>}
|
|
234
235
|
*/
|
|
235
|
-
module.exports.calculate_state_root = function(entries) {
|
|
236
|
-
const ret = wasm.calculate_state_root(addHeapObject(entries));
|
|
236
|
+
module.exports.calculate_state_root = function(entries, trie_version) {
|
|
237
|
+
const ret = wasm.calculate_state_root(addHeapObject(entries), addHeapObject(trie_version));
|
|
237
238
|
return takeObject(ret);
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -362,20 +363,6 @@ module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(fun
|
|
|
362
363
|
return addHeapObject(ret);
|
|
363
364
|
}, arguments) };
|
|
364
365
|
|
|
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
366
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
380
367
|
const val = getObject(arg0);
|
|
381
368
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -415,17 +402,31 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
|
415
402
|
return ret;
|
|
416
403
|
};
|
|
417
404
|
|
|
418
|
-
module.exports.
|
|
405
|
+
module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
406
|
+
const ret = new Object();
|
|
407
|
+
return addHeapObject(ret);
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
411
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
415
|
+
const ret = arg0;
|
|
416
|
+
return addHeapObject(ret);
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
module.exports.__wbg_getNextKey_2b786cb772d12520 = function(arg0, arg1) {
|
|
419
420
|
const ret = getObject(arg0).getNextKey(takeObject(arg1));
|
|
420
421
|
return addHeapObject(ret);
|
|
421
422
|
};
|
|
422
423
|
|
|
423
|
-
module.exports.
|
|
424
|
+
module.exports.__wbg_getPrefixKeys_6a5e5c0457abf605 = function(arg0, arg1) {
|
|
424
425
|
const ret = getObject(arg0).getPrefixKeys(takeObject(arg1));
|
|
425
426
|
return addHeapObject(ret);
|
|
426
427
|
};
|
|
427
428
|
|
|
428
|
-
module.exports.
|
|
429
|
+
module.exports.__wbg_getStorage_d18487cbcb2992e1 = function(arg0, arg1) {
|
|
429
430
|
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
430
431
|
return addHeapObject(ret);
|
|
431
432
|
};
|
|
@@ -586,7 +587,7 @@ module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
|
586
587
|
return addHeapObject(ret);
|
|
587
588
|
};
|
|
588
589
|
|
|
589
|
-
module.exports.
|
|
590
|
+
module.exports.__wbindgen_closure_wrapper1300 = function(arg0, arg1, arg2) {
|
|
590
591
|
const ret = makeMutClosure(arg0, arg1, 132, __wbg_adapter_38);
|
|
591
592
|
return addHeapObject(ret);
|
|
592
593
|
};
|
|
Binary file
|