@acala-network/chopsticks 1.0.4 → 1.0.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/context.js +1 -0
- package/dist/cjs/plugins/dry-run/index.d.ts +3 -0
- package/dist/cjs/schema/index.d.ts +3 -0
- package/dist/cjs/schema/index.js +3 -0
- package/dist/esm/context.js +1 -0
- package/dist/esm/plugins/dry-run/index.d.ts +3 -0
- package/dist/esm/schema/index.d.ts +3 -0
- package/dist/esm/schema/index.js +3 -0
- package/package.json +4 -4
package/dist/cjs/context.js
CHANGED
|
@@ -110,6 +110,7 @@ const setupContext = async (argv, overrideParent = false)=>{
|
|
|
110
110
|
offchainWorker: argv['offchain-worker'],
|
|
111
111
|
maxMemoryBlockCount: argv['max-memory-block-count'],
|
|
112
112
|
processQueuedMessages: argv['process-queued-messages'],
|
|
113
|
+
saveBlocks: argv['save-blocks'],
|
|
113
114
|
rpcTimeout: argv['rpc-timeout'],
|
|
114
115
|
hooks: {
|
|
115
116
|
apiFetching: _logger.apiFetching
|
|
@@ -18,6 +18,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
18
18
|
'mock-signature-host': z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
'max-memory-block-count': z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
db: z.ZodOptional<z.ZodString>;
|
|
21
|
+
'save-blocks': z.ZodOptional<z.ZodBoolean>;
|
|
21
22
|
'wasm-override': z.ZodOptional<z.ZodString>;
|
|
22
23
|
genesis: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
23
24
|
id: z.ZodString;
|
|
@@ -160,6 +161,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
160
161
|
'mock-signature-host'?: boolean | undefined;
|
|
161
162
|
'max-memory-block-count'?: number | undefined;
|
|
162
163
|
db?: string | undefined;
|
|
164
|
+
'save-blocks'?: boolean | undefined;
|
|
163
165
|
'wasm-override'?: string | undefined;
|
|
164
166
|
genesis?: string | {
|
|
165
167
|
name: string;
|
|
@@ -216,6 +218,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
216
218
|
'mock-signature-host'?: boolean | undefined;
|
|
217
219
|
'max-memory-block-count'?: number | undefined;
|
|
218
220
|
db?: string | undefined;
|
|
221
|
+
'save-blocks'?: boolean | undefined;
|
|
219
222
|
'wasm-override'?: string | undefined;
|
|
220
223
|
genesis?: string | {
|
|
221
224
|
name: string;
|
|
@@ -15,6 +15,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
15
15
|
'mock-signature-host': z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
'max-memory-block-count': z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
db: z.ZodOptional<z.ZodString>;
|
|
18
|
+
'save-blocks': z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
'wasm-override': z.ZodOptional<z.ZodString>;
|
|
19
20
|
genesis: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
20
21
|
id: z.ZodString;
|
|
@@ -156,6 +157,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
156
157
|
'mock-signature-host'?: boolean | undefined;
|
|
157
158
|
'max-memory-block-count'?: number | undefined;
|
|
158
159
|
db?: string | undefined;
|
|
160
|
+
'save-blocks'?: boolean | undefined;
|
|
159
161
|
'wasm-override'?: string | undefined;
|
|
160
162
|
genesis?: string | {
|
|
161
163
|
name: string;
|
|
@@ -205,6 +207,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
205
207
|
'mock-signature-host'?: boolean | undefined;
|
|
206
208
|
'max-memory-block-count'?: number | undefined;
|
|
207
209
|
db?: string | undefined;
|
|
210
|
+
'save-blocks'?: boolean | undefined;
|
|
208
211
|
'wasm-override'?: string | undefined;
|
|
209
212
|
genesis?: string | {
|
|
210
213
|
name: string;
|
package/dist/cjs/schema/index.js
CHANGED
|
@@ -78,6 +78,9 @@ const configSchema = _zod.z.object({
|
|
|
78
78
|
db: _zod.z.string({
|
|
79
79
|
description: 'Path to database'
|
|
80
80
|
}).optional(),
|
|
81
|
+
'save-blocks': _zod.z.boolean({
|
|
82
|
+
description: 'Save blocks to database. Default to true.'
|
|
83
|
+
}).optional(),
|
|
81
84
|
'wasm-override': _zod.z.string({
|
|
82
85
|
description: 'Path to wasm override'
|
|
83
86
|
}).optional(),
|
package/dist/esm/context.js
CHANGED
|
@@ -46,6 +46,7 @@ export const setupContext = async (argv, overrideParent = false)=>{
|
|
|
46
46
|
offchainWorker: argv['offchain-worker'],
|
|
47
47
|
maxMemoryBlockCount: argv['max-memory-block-count'],
|
|
48
48
|
processQueuedMessages: argv['process-queued-messages'],
|
|
49
|
+
saveBlocks: argv['save-blocks'],
|
|
49
50
|
rpcTimeout: argv['rpc-timeout'],
|
|
50
51
|
hooks: {
|
|
51
52
|
apiFetching
|
|
@@ -18,6 +18,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
18
18
|
'mock-signature-host': z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
'max-memory-block-count': z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
db: z.ZodOptional<z.ZodString>;
|
|
21
|
+
'save-blocks': z.ZodOptional<z.ZodBoolean>;
|
|
21
22
|
'wasm-override': z.ZodOptional<z.ZodString>;
|
|
22
23
|
genesis: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
23
24
|
id: z.ZodString;
|
|
@@ -160,6 +161,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
160
161
|
'mock-signature-host'?: boolean | undefined;
|
|
161
162
|
'max-memory-block-count'?: number | undefined;
|
|
162
163
|
db?: string | undefined;
|
|
164
|
+
'save-blocks'?: boolean | undefined;
|
|
163
165
|
'wasm-override'?: string | undefined;
|
|
164
166
|
genesis?: string | {
|
|
165
167
|
name: string;
|
|
@@ -216,6 +218,7 @@ export declare const dryRunSchema: z.ZodObject<{
|
|
|
216
218
|
'mock-signature-host'?: boolean | undefined;
|
|
217
219
|
'max-memory-block-count'?: number | undefined;
|
|
218
220
|
db?: string | undefined;
|
|
221
|
+
'save-blocks'?: boolean | undefined;
|
|
219
222
|
'wasm-override'?: string | undefined;
|
|
220
223
|
genesis?: string | {
|
|
221
224
|
name: string;
|
|
@@ -15,6 +15,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
15
15
|
'mock-signature-host': z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
'max-memory-block-count': z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
db: z.ZodOptional<z.ZodString>;
|
|
18
|
+
'save-blocks': z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
'wasm-override': z.ZodOptional<z.ZodString>;
|
|
19
20
|
genesis: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
20
21
|
id: z.ZodString;
|
|
@@ -156,6 +157,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
156
157
|
'mock-signature-host'?: boolean | undefined;
|
|
157
158
|
'max-memory-block-count'?: number | undefined;
|
|
158
159
|
db?: string | undefined;
|
|
160
|
+
'save-blocks'?: boolean | undefined;
|
|
159
161
|
'wasm-override'?: string | undefined;
|
|
160
162
|
genesis?: string | {
|
|
161
163
|
name: string;
|
|
@@ -205,6 +207,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
205
207
|
'mock-signature-host'?: boolean | undefined;
|
|
206
208
|
'max-memory-block-count'?: number | undefined;
|
|
207
209
|
db?: string | undefined;
|
|
210
|
+
'save-blocks'?: boolean | undefined;
|
|
208
211
|
'wasm-override'?: string | undefined;
|
|
209
212
|
genesis?: string | {
|
|
210
213
|
name: string;
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -46,6 +46,9 @@ export const configSchema = z.object({
|
|
|
46
46
|
db: z.string({
|
|
47
47
|
description: 'Path to database'
|
|
48
48
|
}).optional(),
|
|
49
|
+
'save-blocks': z.boolean({
|
|
50
|
+
description: 'Save blocks to database. Default to true.'
|
|
51
|
+
}).optional(),
|
|
49
52
|
'wasm-override': z.string({
|
|
50
53
|
description: 'Path to wasm override'
|
|
51
54
|
}).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": "./chopsticks.cjs",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"depcheck": "npx depcheck --ignore-patterns='*.test.ts'"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@acala-network/chopsticks-core": "1.0.
|
|
19
|
-
"@acala-network/chopsticks-db": "1.0.
|
|
18
|
+
"@acala-network/chopsticks-core": "1.0.5",
|
|
19
|
+
"@acala-network/chopsticks-db": "1.0.5",
|
|
20
20
|
"@pnpm/npm-conf": "^3.0.0",
|
|
21
21
|
"@polkadot/api": "^15.7.1",
|
|
22
22
|
"@polkadot/api-augment": "^15.7.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@polkadot/types": "^15.7.1",
|
|
25
25
|
"@polkadot/util": "^13.4.3",
|
|
26
26
|
"@polkadot/util-crypto": "^13.4.3",
|
|
27
|
-
"axios": "^1.8.
|
|
27
|
+
"axios": "^1.8.4",
|
|
28
28
|
"comlink": "^4.4.2",
|
|
29
29
|
"dotenv": "^16.4.7",
|
|
30
30
|
"global-agent": "^3.0.0",
|