@acala-network/chopsticks 0.3.4 → 0.3.6

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/chopsticks.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- require('./dist/index.js')
2
+ require('./dist/cli.js')
package/dist/api.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
2
2
  import { HexString } from '@polkadot/util/types';
3
3
  import { ProviderInterface } from '@polkadot/rpc-provider/types';
4
- import { WsProvider } from '@polkadot/rpc-provider';
5
4
  type ChainProperties = {
6
5
  ss58Format?: number;
7
6
  tokenDecimals?: number[];
@@ -28,7 +27,7 @@ export declare class Api {
28
27
  readonly signedExtensions: ExtDef;
29
28
  constructor(provider: ProviderInterface, signedExtensions?: ExtDef);
30
29
  disconnect(): Promise<void>;
31
- get isReady(): Promise<void> | Promise<WsProvider>;
30
+ get isReady(): Promise<void> | undefined;
32
31
  get chain(): Promise<string>;
33
32
  get chainProperties(): Promise<ChainProperties>;
34
33
  getSystemName(): Promise<string>;
package/dist/api.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Api = void 0;
4
- const rpc_provider_1 = require("@polkadot/rpc-provider");
5
4
  class Api {
6
5
  #provider;
7
6
  #ready;
@@ -16,11 +15,18 @@ class Api {
16
15
  return this.#provider.disconnect();
17
16
  }
18
17
  get isReady() {
19
- if (this.#provider instanceof rpc_provider_1.WsProvider) {
20
- return this.#provider.isReady;
21
- }
22
18
  if (!this.#ready) {
23
- this.#ready = this.#provider.connect();
19
+ if (this.#provider['isReady']) {
20
+ this.#ready = this.#provider['isReady'];
21
+ }
22
+ else {
23
+ this.#ready = new Promise((resolve) => {
24
+ this.#provider.on('connected', () => {
25
+ resolve();
26
+ });
27
+ this.#provider.connect();
28
+ });
29
+ }
24
30
  }
25
31
  return this.#ready;
26
32
  }
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/dist/cli.js ADDED
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const helpers_1 = require("yargs/helpers");
7
+ const node_fs_1 = require("node:fs");
8
+ const js_yaml_1 = __importDefault(require("js-yaml"));
9
+ const yargs_1 = __importDefault(require("yargs"));
10
+ const _1 = require(".");
11
+ const schema_1 = require("./schema");
12
+ const decoder_1 = require("./utils/decoder");
13
+ const dry_run_1 = require("./dry-run");
14
+ const run_block_1 = require("./run-block");
15
+ const processConfig = (path) => {
16
+ const configFile = (0, node_fs_1.readFileSync)(path, 'utf8');
17
+ const config = js_yaml_1.default.load(configFile);
18
+ return schema_1.configSchema.parse(config);
19
+ };
20
+ const processArgv = (argv) => {
21
+ if (argv.config) {
22
+ return { ...processConfig(argv.config), ...argv };
23
+ }
24
+ return argv;
25
+ };
26
+ const defaultOptions = {
27
+ endpoint: {
28
+ desc: 'Endpoint to connect to',
29
+ string: true,
30
+ },
31
+ block: {
32
+ desc: 'Block hash or block number. Default to latest block',
33
+ },
34
+ 'wasm-override': {
35
+ desc: 'Path to wasm override',
36
+ string: true,
37
+ },
38
+ db: {
39
+ desc: 'Path to database',
40
+ string: true,
41
+ },
42
+ config: {
43
+ desc: 'Path to config file',
44
+ string: true,
45
+ },
46
+ };
47
+ (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
48
+ .scriptName('chopsticks')
49
+ .command('run-block', 'Replay a block', (yargs) => yargs.options({
50
+ ...defaultOptions,
51
+ port: {
52
+ desc: 'Port to listen on',
53
+ number: true,
54
+ },
55
+ 'output-path': {
56
+ desc: 'File path to print output',
57
+ string: true,
58
+ },
59
+ html: {
60
+ desc: 'Generate html with storage diff',
61
+ },
62
+ open: {
63
+ desc: 'Open generated html',
64
+ },
65
+ }), async (argv) => {
66
+ await (0, run_block_1.runBlock)(processArgv(argv));
67
+ })
68
+ .command('dry-run', 'Dry run an extrinsic', (yargs) => yargs.options({
69
+ ...defaultOptions,
70
+ extrinsic: {
71
+ desc: 'Extrinsic or call to dry run. If you pass call here then address is required to fake signature',
72
+ string: true,
73
+ required: true,
74
+ },
75
+ address: {
76
+ desc: 'Address to fake sign extrinsic',
77
+ string: true,
78
+ },
79
+ at: {
80
+ desc: 'Block hash to dry run',
81
+ string: true,
82
+ },
83
+ 'output-path': {
84
+ desc: 'File path to print output',
85
+ string: true,
86
+ },
87
+ html: {
88
+ desc: 'Generate html with storage diff',
89
+ },
90
+ open: {
91
+ desc: 'Open generated html',
92
+ },
93
+ }), async (argv) => {
94
+ await (0, dry_run_1.dryRun)(processArgv(argv));
95
+ })
96
+ .command('dev', 'Dev mode', (yargs) => yargs.options({
97
+ ...defaultOptions,
98
+ port: {
99
+ desc: 'Port to listen on',
100
+ number: true,
101
+ },
102
+ 'build-block-mode': {
103
+ desc: 'Build block mode. Default to Batch',
104
+ enum: [_1.BuildBlockMode.Batch, _1.BuildBlockMode.Manual, _1.BuildBlockMode.Instant],
105
+ },
106
+ 'import-storage': {
107
+ desc: 'Pre-defined JSON/YAML storage file path',
108
+ string: true,
109
+ },
110
+ 'mock-signature-host': {
111
+ desc: 'Mock signature host so any signature starts with 0xdeadbeef and filled by 0xcd is considered valid',
112
+ boolean: true,
113
+ },
114
+ 'allow-unresolved-imports': {
115
+ desc: 'Allow wasm unresolved imports',
116
+ boolean: true,
117
+ },
118
+ }), async (argv) => {
119
+ await (0, _1.setupWithServer)(processArgv(argv));
120
+ })
121
+ .command('decode-key <key>', 'Deocde a key', (yargs) => yargs
122
+ .positional('key', {
123
+ desc: 'Key to decode',
124
+ type: 'string',
125
+ })
126
+ .options({
127
+ ...defaultOptions,
128
+ }), async (argv) => {
129
+ const context = await (0, _1.setup)(processArgv(argv));
130
+ const { storage, decodedKey } = await (0, decoder_1.decodeKey)(context.chain.head, argv.key);
131
+ if (storage && decodedKey) {
132
+ console.log(`${storage.section}.${storage.method}`, decodedKey.args.map((x) => JSON.stringify(x.toHuman())).join(', '));
133
+ }
134
+ else {
135
+ console.log('Unknown');
136
+ }
137
+ process.exit(0);
138
+ })
139
+ .command('xcm', 'XCM setup with relaychain and parachains', (yargs) => yargs.options({
140
+ relaychain: {
141
+ desc: 'Relaychain config file path',
142
+ string: true,
143
+ },
144
+ parachain: {
145
+ desc: 'Parachain config file path',
146
+ type: 'array',
147
+ string: true,
148
+ required: true,
149
+ },
150
+ }), async (argv) => {
151
+ const parachains = [];
152
+ for (const config of argv.parachain) {
153
+ const { chain } = await (0, _1.setupWithServer)(processConfig(config));
154
+ parachains.push(chain);
155
+ }
156
+ if (parachains.length > 1) {
157
+ await (0, _1.connectParachains)(parachains);
158
+ }
159
+ if (argv.relaychain) {
160
+ const { chain: relaychain } = await (0, _1.setupWithServer)(processConfig(argv.relaychain));
161
+ for (const parachain of parachains) {
162
+ await (0, _1.connectVertical)(relaychain, parachain);
163
+ }
164
+ }
165
+ })
166
+ .strict()
167
+ .help()
168
+ .alias('help', 'h').argv;
@@ -10,7 +10,7 @@ export declare class GenesisProvider implements ProviderInterface {
10
10
  clone: () => ProviderInterface;
11
11
  get hasSubscriptions(): boolean;
12
12
  get isConnected(): boolean;
13
- get isReady(): Promise<GenesisProvider>;
13
+ get isReady(): Promise<void>;
14
14
  connect: () => Promise<void>;
15
15
  disconnect: () => Promise<void>;
16
16
  on: (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb) => (() => void);
@@ -26,7 +26,7 @@ class GenesisProvider {
26
26
  this.#eventemitter = new node_events_1.EventEmitter();
27
27
  this.#isReadyPromise = new Promise((resolve, reject) => {
28
28
  this.#eventemitter.once('connected', () => {
29
- resolve(this);
29
+ resolve();
30
30
  });
31
31
  this.#eventemitter.once('error', reject);
32
32
  });
@@ -65,6 +65,7 @@ class GenesisProvider {
65
65
  return this.#isConnected;
66
66
  }
67
67
  get isReady() {
68
+ this.connect();
68
69
  return this.#isReadyPromise;
69
70
  }
70
71
  connect = async () => {
package/dist/index.d.ts CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ export { Api } from './api';
2
+ export { Blockchain } from './blockchain';
3
+ export { BuildBlockMode } from './blockchain/txpool';
4
+ export { connectParachains, connectVertical } from './xcm';
5
+ export { setup } from './setup';
6
+ export { setupWithServer } from './setup-with-server';
7
+ export * from './blockchain/inherent';
package/dist/index.js CHANGED
@@ -1,171 +1,31 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const helpers_1 = require("yargs/helpers");
7
- const node_fs_1 = require("node:fs");
8
- const js_yaml_1 = __importDefault(require("js-yaml"));
9
- const yargs_1 = __importDefault(require("yargs"));
10
- const txpool_1 = require("./blockchain/txpool");
11
- const schema_1 = require("./schema");
12
- const xcm_1 = require("./xcm");
13
- const decoder_1 = require("./utils/decoder");
14
- const dry_run_1 = require("./dry-run");
15
- const run_block_1 = require("./run-block");
16
- const setup_1 = require("./setup");
17
- const setup_with_server_1 = require("./setup-with-server");
18
- const processConfig = (path) => {
19
- const configFile = (0, node_fs_1.readFileSync)(path, 'utf8');
20
- const config = js_yaml_1.default.load(configFile);
21
- return schema_1.configSchema.parse(config);
22
- };
23
- const processArgv = (argv) => {
24
- if (argv.config) {
25
- return { ...processConfig(argv.config), ...argv };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
26
7
  }
27
- return argv;
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
15
  };
29
- const defaultOptions = {
30
- endpoint: {
31
- desc: 'Endpoint to connect to',
32
- string: true,
33
- },
34
- block: {
35
- desc: 'Block hash or block number. Default to latest block',
36
- },
37
- 'wasm-override': {
38
- desc: 'Path to wasm override',
39
- string: true,
40
- },
41
- db: {
42
- desc: 'Path to database',
43
- string: true,
44
- },
45
- config: {
46
- desc: 'Path to config file',
47
- string: true,
48
- },
49
- };
50
- (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
51
- .scriptName('chopsticks')
52
- .command('run-block', 'Replay a block', (yargs) => yargs.options({
53
- ...defaultOptions,
54
- port: {
55
- desc: 'Port to listen on',
56
- number: true,
57
- },
58
- 'output-path': {
59
- desc: 'File path to print output',
60
- string: true,
61
- },
62
- html: {
63
- desc: 'Generate html with storage diff',
64
- },
65
- open: {
66
- desc: 'Open generated html',
67
- },
68
- }), async (argv) => {
69
- await (0, run_block_1.runBlock)(processArgv(argv));
70
- })
71
- .command('dry-run', 'Dry run an extrinsic', (yargs) => yargs.options({
72
- ...defaultOptions,
73
- extrinsic: {
74
- desc: 'Extrinsic or call to dry run. If you pass call here then address is required to fake signature',
75
- string: true,
76
- required: true,
77
- },
78
- address: {
79
- desc: 'Address to fake sign extrinsic',
80
- string: true,
81
- },
82
- at: {
83
- desc: 'Block hash to dry run',
84
- string: true,
85
- },
86
- 'output-path': {
87
- desc: 'File path to print output',
88
- string: true,
89
- },
90
- html: {
91
- desc: 'Generate html with storage diff',
92
- },
93
- open: {
94
- desc: 'Open generated html',
95
- },
96
- }), async (argv) => {
97
- await (0, dry_run_1.dryRun)(processArgv(argv));
98
- })
99
- .command('dev', 'Dev mode', (yargs) => yargs.options({
100
- ...defaultOptions,
101
- port: {
102
- desc: 'Port to listen on',
103
- number: true,
104
- },
105
- 'build-block-mode': {
106
- desc: 'Build block mode. Default to Batch',
107
- enum: [txpool_1.BuildBlockMode.Batch, txpool_1.BuildBlockMode.Manual, txpool_1.BuildBlockMode.Instant],
108
- },
109
- 'import-storage': {
110
- desc: 'Pre-defined JSON/YAML storage file path',
111
- string: true,
112
- },
113
- 'mock-signature-host': {
114
- desc: 'Mock signature host so any signature starts with 0xdeadbeef and filled by 0xcd is considered valid',
115
- boolean: true,
116
- },
117
- 'allow-unresolved-imports': {
118
- desc: 'Allow wasm unresolved imports',
119
- boolean: true,
120
- },
121
- }), async (argv) => {
122
- await (0, setup_with_server_1.setupWithServer)(processArgv(argv));
123
- })
124
- .command('decode-key <key>', 'Deocde a key', (yargs) => yargs
125
- .positional('key', {
126
- desc: 'Key to decode',
127
- type: 'string',
128
- })
129
- .options({
130
- ...defaultOptions,
131
- }), async (argv) => {
132
- const context = await (0, setup_1.setup)(processArgv(argv));
133
- const { storage, decodedKey } = await (0, decoder_1.decodeKey)(context.chain.head, argv.key);
134
- if (storage && decodedKey) {
135
- console.log(`${storage.section}.${storage.method}`, decodedKey.args.map((x) => JSON.stringify(x.toHuman())).join(', '));
136
- }
137
- else {
138
- console.log('Unknown');
139
- }
140
- process.exit(0);
141
- })
142
- .command('xcm', 'XCM setup with relaychain and parachains', (yargs) => yargs.options({
143
- relaychain: {
144
- desc: 'Relaychain config file path',
145
- string: true,
146
- },
147
- parachain: {
148
- desc: 'Parachain config file path',
149
- type: 'array',
150
- string: true,
151
- required: true,
152
- },
153
- }), async (argv) => {
154
- const parachains = [];
155
- for (const config of argv.parachain) {
156
- const { chain } = await (0, setup_with_server_1.setupWithServer)(processConfig(config));
157
- parachains.push(chain);
158
- }
159
- if (parachains.length > 1) {
160
- await (0, xcm_1.connectParachains)(parachains);
161
- }
162
- if (argv.relaychain) {
163
- const { chain: relaychain } = await (0, setup_with_server_1.setupWithServer)(processConfig(argv.relaychain));
164
- for (const parachain of parachains) {
165
- await (0, xcm_1.connectVertical)(relaychain, parachain);
166
- }
167
- }
168
- })
169
- .strict()
170
- .help()
171
- .alias('help', 'h').argv;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.setupWithServer = exports.setup = exports.connectVertical = exports.connectParachains = exports.BuildBlockMode = exports.Blockchain = exports.Api = void 0;
18
+ var api_1 = require("./api");
19
+ Object.defineProperty(exports, "Api", { enumerable: true, get: function () { return api_1.Api; } });
20
+ var blockchain_1 = require("./blockchain");
21
+ Object.defineProperty(exports, "Blockchain", { enumerable: true, get: function () { return blockchain_1.Blockchain; } });
22
+ var txpool_1 = require("./blockchain/txpool");
23
+ Object.defineProperty(exports, "BuildBlockMode", { enumerable: true, get: function () { return txpool_1.BuildBlockMode; } });
24
+ var xcm_1 = require("./xcm");
25
+ Object.defineProperty(exports, "connectParachains", { enumerable: true, get: function () { return xcm_1.connectParachains; } });
26
+ Object.defineProperty(exports, "connectVertical", { enumerable: true, get: function () { return xcm_1.connectVertical; } });
27
+ var setup_1 = require("./setup");
28
+ Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return setup_1.setup; } });
29
+ var setup_with_server_1 = require("./setup-with-server");
30
+ Object.defineProperty(exports, "setupWithServer", { enumerable: true, get: function () { return setup_with_server_1.setupWithServer; } });
31
+ __exportStar(require("./blockchain/inherent"), exports);
package/dist/rpc/dev.js CHANGED
@@ -23,7 +23,7 @@ const handlers = {
23
23
  }
24
24
  return finalHash;
25
25
  },
26
- dev_setStorages: async (context, params) => {
26
+ dev_setStorage: async (context, params) => {
27
27
  const [values, blockHash] = params;
28
28
  const hash = await (0, set_storage_1.setStorage)(context.chain, values, blockHash).catch((error) => {
29
29
  throw new shared_1.ResponseError(1, error.toString());
@@ -31,7 +31,7 @@ const handlers = {
31
31
  logger.debug({
32
32
  hash,
33
33
  values,
34
- }, 'dev_setStorages');
34
+ }, 'dev_setStorage');
35
35
  return hash;
36
36
  },
37
37
  dev_timeTravel: async (context, [date]) => {
@@ -27,7 +27,7 @@ const handlers = {
27
27
  return {
28
28
  peers: 0,
29
29
  isSyncing: false,
30
- shouldhVePeers: false,
30
+ shouldHavePeers: false,
31
31
  };
32
32
  },
33
33
  system_dryRun: async (context, [extrinsic, at]) => {
@@ -35,12 +35,12 @@ export declare const genesisSchema: z.ZodObject<{
35
35
  }>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  name: string;
38
- id: string;
39
38
  properties: {
40
39
  ss58Format?: number | undefined;
41
40
  tokenDecimals?: number | number[] | undefined;
42
41
  tokenSymbol?: string | string[] | undefined;
43
42
  };
43
+ id: string;
44
44
  genesis: {
45
45
  raw: {
46
46
  top: Record<string, string>;
@@ -48,12 +48,12 @@ export declare const genesisSchema: z.ZodObject<{
48
48
  };
49
49
  }, {
50
50
  name: string;
51
- id: string;
52
51
  properties: {
53
52
  ss58Format?: number | undefined;
54
53
  tokenDecimals?: number | number[] | undefined;
55
54
  tokenSymbol?: string | string[] | undefined;
56
55
  };
56
+ id: string;
57
57
  genesis: {
58
58
  raw: {
59
59
  top: Record<string, string>;
@@ -105,12 +105,12 @@ export declare const configSchema: z.ZodObject<{
105
105
  }>;
106
106
  }, "strip", z.ZodTypeAny, {
107
107
  name: string;
108
- id: string;
109
108
  properties: {
110
109
  ss58Format?: number | undefined;
111
110
  tokenDecimals?: number | number[] | undefined;
112
111
  tokenSymbol?: string | string[] | undefined;
113
112
  };
113
+ id: string;
114
114
  genesis: {
115
115
  raw: {
116
116
  top: Record<string, string>;
@@ -118,12 +118,12 @@ export declare const configSchema: z.ZodObject<{
118
118
  };
119
119
  }, {
120
120
  name: string;
121
- id: string;
122
121
  properties: {
123
122
  ss58Format?: number | undefined;
124
123
  tokenDecimals?: number | number[] | undefined;
125
124
  tokenSymbol?: string | string[] | undefined;
126
125
  };
126
+ id: string;
127
127
  genesis: {
128
128
  raw: {
129
129
  top: Record<string, string>;
@@ -136,12 +136,12 @@ export declare const configSchema: z.ZodObject<{
136
136
  db?: string | undefined;
137
137
  genesis?: string | {
138
138
  name: string;
139
- id: string;
140
139
  properties: {
141
140
  ss58Format?: number | undefined;
142
141
  tokenDecimals?: number | number[] | undefined;
143
142
  tokenSymbol?: string | string[] | undefined;
144
143
  };
144
+ id: string;
145
145
  genesis: {
146
146
  raw: {
147
147
  top: Record<string, string>;
@@ -160,12 +160,12 @@ export declare const configSchema: z.ZodObject<{
160
160
  db?: string | undefined;
161
161
  genesis?: string | {
162
162
  name: string;
163
- id: string;
164
163
  properties: {
165
164
  ss58Format?: number | undefined;
166
165
  tokenDecimals?: number | number[] | undefined;
167
166
  tokenSymbol?: string | string[] | undefined;
168
167
  };
168
+ id: string;
169
169
  genesis: {
170
170
  raw: {
171
171
  top: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Bryan Chen <xlchen1291@gmail.com>",
@@ -15,19 +15,18 @@
15
15
  "lint": "tsc --noEmit --project tsconfig.json && eslint . --ext .js,.ts && prettier --check .",
16
16
  "fix": "eslint . --ext .js,.ts --fix && prettier -w .",
17
17
  "prepare": "husky install",
18
- "start": "ts-node --transpile-only src/index.ts",
19
- "build": "rm -rf dist && tsc -p tsconfig.prod.json && yarn postbuild",
20
- "postbuild": "cp -r template ./dist",
18
+ "start": "ts-node --transpile-only src/cli.ts",
19
+ "build": "rm -rf dist && tsc -p tsconfig.prod.json",
21
20
  "build-wasm": "wasm-pack build executor --target nodejs --scope acala-network",
22
21
  "build-wasm-logging": "yarn build-wasm --features=logging",
23
22
  "check": "cd executor && cargo check --locked",
24
23
  "test": "vitest --silent",
25
24
  "test:dev": "LOG_LEVEL=trace vitest --inspect",
26
- "dev": "LOG_LEVEL=trace ts-node-dev --transpile-only --inspect --notify=false src/index.ts -- dev --config=configs/dev.yml",
27
- "dev:karura": "ts-node-dev --transpile-only --inspect --notify=false src/index.ts -- dev --config=configs/karura.yml",
28
- "dev:acala": "ts-node-dev --transpile-only --inspect --notify=false src/index.ts -- dev --config=configs/acala.yml",
29
- "dev:moonriver": "ts-node-dev --transpile-only --inspect --notify=false src/index.ts -- dev --config=configs/moonriver.yml",
30
- "dev:moonbeam": "ts-node-dev --transpile-only --inspect --notify=false src/index.ts -- dev --config=configs/moonbeam.yml"
25
+ "dev": "LOG_LEVEL=trace ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=configs/dev.yml",
26
+ "dev:karura": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=configs/karura.yml",
27
+ "dev:acala": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=configs/acala.yml",
28
+ "dev:moonriver": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=configs/moonriver.yml",
29
+ "dev:moonbeam": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=configs/moonbeam.yml"
31
30
  },
32
31
  "dependencies": {
33
32
  "@acala-network/chopsticks-executor": "0.3.0",
@@ -75,7 +74,7 @@
75
74
  "files": [
76
75
  "dist",
77
76
  "bin",
78
- "chopsticks.mjs"
77
+ "template"
79
78
  ],
80
79
  "engines": {
81
80
  "node": ">=v14"
File without changes