@acala-network/chopsticks-executor 0.9.2-3 → 0.9.2-5

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.
@@ -1,46 +0,0 @@
1
- /* tslint:disable */
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} root_trie_hash
16
- * @param {any} keys
17
- * @param {any} nodes
18
- * @returns {Promise<any>}
19
- */
20
- export function decode_proof(root_trie_hash: any, keys: any, nodes: any): Promise<any>;
21
- /**
22
- * @param {any} nodes
23
- * @param {any} entries
24
- * @returns {Promise<any>}
25
- */
26
- export function create_proof(nodes: any, entries: any): Promise<any>;
27
- /**
28
- * @param {any} task
29
- * @param {JsCallback} js
30
- * @param {string | undefined} [log_level]
31
- * @returns {Promise<any>}
32
- */
33
- export function run_task(task: any, js: JsCallback, log_level?: string): Promise<any>;
34
-
35
- type HexString = `0x${string}`;
36
- export interface JsCallback {
37
- getStorage: (key: HexString) => Promise<string | undefined>
38
- getStateRoot: () => Promise<string>
39
- getNextKey: (prefix: HexString, key: HexString) => Promise<string | undefined>
40
- offchainGetStorage: (key: HexString) => Promise<string | undefined>
41
- offchainTimestamp: () => Promise<number>
42
- offchainRandomSeed: () => Promise<HexString>
43
- offchainSubmitTransaction: (tx: HexString) => Promise<boolean>
44
- }
45
-
46
-