@acala-network/chopsticks-executor 0.9.2-4 → 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.
- package/dist/cjs/LICENSE +201 -0
- package/dist/cjs/README.md +1 -0
- package/dist/cjs/chopsticks_executor.d.js +7 -0
- package/dist/cjs/chopsticks_executor.js +959 -0
- package/dist/cjs/chopsticks_executor_bg.wasm.d.js +20 -0
- package/dist/cjs/index.js +41 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/LICENSE +201 -0
- package/dist/esm/README.md +1 -0
- package/dist/esm/chopsticks_executor.d.js +11 -0
- package/dist/esm/chopsticks_executor.js +949 -0
- package/dist/esm/chopsticks_executor_bg.wasm +0 -0
- package/dist/esm/chopsticks_executor_bg.wasm.d.js +2 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/package.json +1 -0
- package/package.json +25 -10
- package/pkg/chopsticks_executor.d.ts +85 -0
- package/browser/chopsticks_executor.js +0 -721
- package/browser/index.js +0 -13
- package/node/chopsticks_executor.d.ts +0 -46
- package/node/chopsticks_executor.js +0 -714
- package/node/chopsticks_executor_bg.wasm +0 -0
- package/node/chopsticks_executor_bg.wasm.d.ts +0 -15
- /package/{browser → dist/cjs}/chopsticks_executor_bg.wasm +0 -0
|
@@ -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
|
-
|