@acala-network/chopsticks-executor 1.2.4 → 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.
@@ -9,12 +9,72 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get __wbindgen_export_2 () {
13
- return __wbindgen_export_2;
12
+ get __externref_table_alloc () {
13
+ return __externref_table_alloc;
14
+ },
15
+ get __wbindgen_exn_store () {
16
+ return __wbindgen_exn_store;
17
+ },
18
+ get __wbindgen_externrefs () {
19
+ return __wbindgen_externrefs;
20
+ },
21
+ get __wbindgen_free () {
22
+ return __wbindgen_free;
23
+ },
24
+ get __wbindgen_malloc () {
25
+ return __wbindgen_malloc;
26
+ },
27
+ get __wbindgen_realloc () {
28
+ return __wbindgen_realloc;
29
+ },
30
+ get __wbindgen_start () {
31
+ return __wbindgen_start;
32
+ },
33
+ get calculate_state_root () {
34
+ return calculate_state_root;
35
+ },
36
+ get create_proof () {
37
+ return create_proof;
38
+ },
39
+ get decode_proof () {
40
+ return decode_proof;
41
+ },
42
+ get get_runtime_version () {
43
+ return get_runtime_version;
14
44
  },
15
45
  get memory () {
16
46
  return memory;
47
+ },
48
+ get run_task () {
49
+ return run_task;
50
+ },
51
+ get testing () {
52
+ return testing;
53
+ },
54
+ get wasm_bindgen__closure__destroy__hb454d70b27c07de9 () {
55
+ return wasm_bindgen__closure__destroy__hb454d70b27c07de9;
56
+ },
57
+ get wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52 () {
58
+ return wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52;
59
+ },
60
+ get wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8 () {
61
+ return wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8;
17
62
  }
18
63
  });
19
64
  var memory;
20
- var __wbindgen_export_2;
65
+ var calculate_state_root;
66
+ var create_proof;
67
+ var decode_proof;
68
+ var get_runtime_version;
69
+ var run_task;
70
+ var testing;
71
+ var wasm_bindgen__closure__destroy__hb454d70b27c07de9;
72
+ var wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52;
73
+ var wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8;
74
+ var __wbindgen_malloc;
75
+ var __wbindgen_realloc;
76
+ var __wbindgen_exn_store;
77
+ var __externref_table_alloc;
78
+ var __wbindgen_externrefs;
79
+ var __wbindgen_free;
80
+ var __wbindgen_start;
@@ -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
- getStorage: (key: HexString) => Promise<string | undefined>
42
- getNextKey: (prefix: HexString, key: HexString) => Promise<string | undefined>
43
- offchainGetStorage: (key: HexString) => Promise<string | undefined>
44
- offchainTimestamp: () => Promise<number>
45
- offchainRandomSeed: () => Promise<HexString>
46
- offchainSubmitTransaction: (tx: HexString) => Promise<boolean>
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
- readonly memory: WebAssembly.Memory;
55
- readonly get_runtime_version: (a: number) => number;
56
- readonly calculate_state_root: (a: number, b: number) => number;
57
- readonly decode_proof: (a: number, b: number) => number;
58
- readonly create_proof: (a: number, b: number) => number;
59
- readonly run_task: (a: number, b: number) => number;
60
- readonly testing: (a: number, b: number) => number;
61
- readonly __wbindgen_malloc: (a: number, b: number) => number;
62
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
63
- readonly __wbindgen_export_2: WebAssembly.Table;
64
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebe5263e426c3ae5: (a: number, b: number, c: number) => void;
65
- readonly __wbindgen_exn_store: (a: number) => void;
66
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
67
- readonly wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d: (a: number, b: number, c: number, d: number) => void;
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>;