@acala-network/chopsticks 0.9.12 → 0.9.13
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.
|
@@ -29,7 +29,8 @@ const schema = _zod.z.object({
|
|
|
29
29
|
});
|
|
30
30
|
const cli = (y)=>{
|
|
31
31
|
y.command('run-block', 'Replay a block', (yargs)=>yargs.options((0, _index.getYargsOptions)(schema.shape)), async (argv)=>{
|
|
32
|
-
const
|
|
32
|
+
const parsedArgv = schema.parse(argv);
|
|
33
|
+
const context = await (0, _context.setupContext)(parsedArgv, true);
|
|
33
34
|
const header = await context.chain.head.header;
|
|
34
35
|
const block = context.chain.head;
|
|
35
36
|
const parent = await block.parentBlock;
|
|
@@ -60,7 +61,7 @@ const cli = (y)=>{
|
|
|
60
61
|
calls,
|
|
61
62
|
mockSignatureHost: false,
|
|
62
63
|
allowUnresolvedImports: false,
|
|
63
|
-
runtimeLogLevel:
|
|
64
|
+
runtimeLogLevel: parsedArgv['runtime-log-level'] || 0
|
|
64
65
|
}, (0, _chopstickscore.taskHandler)(parent));
|
|
65
66
|
if ('Error' in result) {
|
|
66
67
|
throw new Error(result.Error);
|
|
@@ -19,7 +19,8 @@ const schema = z.object({
|
|
|
19
19
|
});
|
|
20
20
|
export const cli = (y)=>{
|
|
21
21
|
y.command('run-block', 'Replay a block', (yargs)=>yargs.options(getYargsOptions(schema.shape)), async (argv)=>{
|
|
22
|
-
const
|
|
22
|
+
const parsedArgv = schema.parse(argv);
|
|
23
|
+
const context = await setupContext(parsedArgv, true);
|
|
23
24
|
const header = await context.chain.head.header;
|
|
24
25
|
const block = context.chain.head;
|
|
25
26
|
const parent = await block.parentBlock;
|
|
@@ -50,7 +51,7 @@ export const cli = (y)=>{
|
|
|
50
51
|
calls,
|
|
51
52
|
mockSignatureHost: false,
|
|
52
53
|
allowUnresolvedImports: false,
|
|
53
|
-
runtimeLogLevel:
|
|
54
|
+
runtimeLogLevel: parsedArgv['runtime-log-level'] || 0
|
|
54
55
|
}, taskHandler(parent));
|
|
55
56
|
if ('Error' in result) {
|
|
56
57
|
throw new Error(result.Error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": "./chopsticks.cjs",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"docs:prep": "typedoc"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@acala-network/chopsticks-core": "0.9.
|
|
17
|
-
"@acala-network/chopsticks-db": "0.9.
|
|
16
|
+
"@acala-network/chopsticks-core": "0.9.13",
|
|
17
|
+
"@acala-network/chopsticks-db": "0.9.13",
|
|
18
18
|
"@pnpm/npm-conf": "^2.2.2",
|
|
19
19
|
"@polkadot/api-augment": "^10.11.2",
|
|
20
20
|
"@polkadot/types": "^10.11.2",
|