@acala-network/chopsticks-executor 1.2.5 → 1.2.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/dist/cjs/chopsticks_executor.d.js +1 -4
- package/dist/cjs/chopsticks_executor.js +550 -552
- package/dist/cjs/chopsticks_executor_bg.wasm.d.js +63 -3
- package/dist/cjs/index.d.ts +52 -71
- package/dist/cjs/index.js +4 -4
- package/dist/esm/chopsticks_executor.d.js +7 -10
- package/dist/esm/chopsticks_executor.js +568 -575
- package/dist/esm/chopsticks_executor_bg.wasm.d.js +16 -1
- package/dist/esm/index.d.ts +52 -71
- package/dist/esm/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
/* tslint:disable */ /* eslint-disable */ export var memory;
|
|
2
|
-
export var
|
|
2
|
+
export var calculate_state_root;
|
|
3
|
+
export var create_proof;
|
|
4
|
+
export var decode_proof;
|
|
5
|
+
export var get_runtime_version;
|
|
6
|
+
export var run_task;
|
|
7
|
+
export var testing;
|
|
8
|
+
export var wasm_bindgen__closure__destroy__hb454d70b27c07de9;
|
|
9
|
+
export var wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52;
|
|
10
|
+
export var wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8;
|
|
11
|
+
export var __wbindgen_malloc;
|
|
12
|
+
export var __wbindgen_realloc;
|
|
13
|
+
export var __wbindgen_exn_store;
|
|
14
|
+
export var __externref_table_alloc;
|
|
15
|
+
export var __wbindgen_externrefs;
|
|
16
|
+
export var __wbindgen_free;
|
|
17
|
+
export var __wbindgen_start;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,89 +1,70 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {any} code
|
|
5
|
-
* @returns {Promise<any>}
|
|
6
|
-
*/
|
|
7
|
-
export function get_runtime_version(code: any): Promise<any>;
|
|
8
|
-
/**
|
|
9
|
-
* @param {any} entries
|
|
10
|
-
* @param {any} trie_version
|
|
11
|
-
* @returns {Promise<any>}
|
|
12
|
-
*/
|
|
13
|
-
export function calculate_state_root(entries: any, trie_version: any): Promise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* @param {any} trie_root_hash
|
|
16
|
-
* @param {any} nodes
|
|
17
|
-
* @returns {Promise<any>}
|
|
18
|
-
*/
|
|
19
|
-
export function decode_proof(trie_root_hash: any, nodes: any): Promise<any>;
|
|
20
|
-
/**
|
|
21
|
-
* @param {any} nodes
|
|
22
|
-
* @param {any} updates
|
|
23
|
-
* @returns {Promise<any>}
|
|
24
|
-
*/
|
|
25
|
-
export function create_proof(nodes: any, updates: any): Promise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* @param {any} task
|
|
28
|
-
* @param {JsCallback} js
|
|
29
|
-
* @returns {Promise<any>}
|
|
30
|
-
*/
|
|
31
|
-
export function run_task(task: any, js: JsCallback): Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* @param {JsCallback} js
|
|
34
|
-
* @param {any} key
|
|
35
|
-
* @returns {Promise<any>}
|
|
36
|
-
*/
|
|
37
|
-
export function testing(js: JsCallback, key: any): Promise<any>;
|
|
38
3
|
|
|
39
4
|
type HexString = `0x${string}`;
|
|
40
5
|
export interface JsCallback {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
6
|
+
getStorage: (key: HexString) => Promise<string | undefined>
|
|
7
|
+
getNextKey: (prefix: HexString, key: HexString) => Promise<string | undefined>
|
|
8
|
+
offchainGetStorage: (key: HexString) => Promise<string | undefined>
|
|
9
|
+
offchainTimestamp: () => Promise<number>
|
|
10
|
+
offchainRandomSeed: () => Promise<HexString>
|
|
11
|
+
offchainSubmitTransaction: (tx: HexString) => Promise<boolean>
|
|
47
12
|
}
|
|
48
13
|
|
|
49
14
|
|
|
50
15
|
|
|
16
|
+
export function calculate_state_root(entries: any, trie_version: any): Promise<any>;
|
|
17
|
+
|
|
18
|
+
export function create_proof(nodes: any, updates: any): Promise<any>;
|
|
19
|
+
|
|
20
|
+
export function decode_proof(trie_root_hash: any, nodes: any): Promise<any>;
|
|
21
|
+
|
|
22
|
+
export function get_runtime_version(code: any): Promise<any>;
|
|
23
|
+
|
|
24
|
+
export function run_task(task: any, js: JsCallback): Promise<any>;
|
|
25
|
+
|
|
26
|
+
export function testing(js: JsCallback, key: any): Promise<any>;
|
|
27
|
+
|
|
51
28
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
52
29
|
|
|
53
30
|
export interface InitOutput {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
31
|
+
readonly memory: WebAssembly.Memory;
|
|
32
|
+
readonly calculate_state_root: (a: any, b: any) => any;
|
|
33
|
+
readonly create_proof: (a: any, b: any) => any;
|
|
34
|
+
readonly decode_proof: (a: any, b: any) => any;
|
|
35
|
+
readonly get_runtime_version: (a: any) => any;
|
|
36
|
+
readonly run_task: (a: any, b: any) => any;
|
|
37
|
+
readonly testing: (a: any, b: any) => any;
|
|
38
|
+
readonly wasm_bindgen__closure__destroy__hb454d70b27c07de9: (a: number, b: number) => void;
|
|
39
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52: (a: number, b: number, c: any, d: any) => void;
|
|
40
|
+
readonly wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8: (a: number, b: number, c: any) => void;
|
|
41
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
42
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
43
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
44
|
+
readonly __externref_table_alloc: () => number;
|
|
45
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
46
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
47
|
+
readonly __wbindgen_start: () => void;
|
|
68
48
|
}
|
|
69
49
|
|
|
70
50
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
51
|
+
|
|
71
52
|
/**
|
|
72
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
73
|
-
* a precompiled `WebAssembly.Module`.
|
|
74
|
-
*
|
|
75
|
-
* @param {SyncInitInput} module
|
|
76
|
-
*
|
|
77
|
-
* @returns {InitOutput}
|
|
78
|
-
*/
|
|
79
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
|
53
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
54
|
+
* a precompiled `WebAssembly.Module`.
|
|
55
|
+
*
|
|
56
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
57
|
+
*
|
|
58
|
+
* @returns {InitOutput}
|
|
59
|
+
*/
|
|
60
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
80
61
|
|
|
81
62
|
/**
|
|
82
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
83
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
84
|
-
*
|
|
85
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
86
|
-
*
|
|
87
|
-
* @returns {Promise<InitOutput>}
|
|
88
|
-
*/
|
|
89
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
63
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
64
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
65
|
+
*
|
|
66
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
67
|
+
*
|
|
68
|
+
* @returns {Promise<InitOutput>}
|
|
69
|
+
*/
|
|
70
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|