@acala-network/chopsticks 1.0.3 → 1.0.4

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.
@@ -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
+ rpcTimeout: argv['rpc-timeout'],
113
114
  hooks: {
114
115
  apiFetching: _logger.apiFetching
115
116
  }
@@ -146,6 +146,7 @@ export declare const dryRunSchema: z.ZodObject<{
146
146
  resume: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodBoolean]>>;
147
147
  'process-queued-messages': z.ZodOptional<z.ZodBoolean>;
148
148
  'prefetch-storages': z.ZodOptional<z.ZodAny>;
149
+ 'rpc-timeout': z.ZodOptional<z.ZodNumber>;
149
150
  }, "strip", z.ZodTypeAny, {
150
151
  port: number;
151
152
  'build-block-mode': import("@acala-network/chopsticks-core").BuildBlockMode;
@@ -195,6 +196,7 @@ export declare const dryRunSchema: z.ZodObject<{
195
196
  resume?: number | boolean | `0x${string}` | undefined;
196
197
  'process-queued-messages'?: boolean | undefined;
197
198
  'prefetch-storages'?: any;
199
+ 'rpc-timeout'?: number | undefined;
198
200
  open?: boolean | undefined;
199
201
  extrinsic?: string | undefined;
200
202
  address?: string | undefined;
@@ -250,6 +252,7 @@ export declare const dryRunSchema: z.ZodObject<{
250
252
  resume?: number | boolean | `0x${string}` | undefined;
251
253
  'process-queued-messages'?: boolean | undefined;
252
254
  'prefetch-storages'?: any;
255
+ 'rpc-timeout'?: number | undefined;
253
256
  open?: boolean | undefined;
254
257
  extrinsic?: string | undefined;
255
258
  address?: string | undefined;
@@ -143,6 +143,7 @@ export declare const configSchema: z.ZodObject<{
143
143
  resume: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodBoolean]>>;
144
144
  'process-queued-messages': z.ZodOptional<z.ZodBoolean>;
145
145
  'prefetch-storages': z.ZodOptional<z.ZodAny>;
146
+ 'rpc-timeout': z.ZodOptional<z.ZodNumber>;
146
147
  }, "strip", ZodTypeAny, {
147
148
  port: number;
148
149
  'build-block-mode': BuildBlockMode;
@@ -191,6 +192,7 @@ export declare const configSchema: z.ZodObject<{
191
192
  resume?: number | boolean | `0x${string}` | undefined;
192
193
  'process-queued-messages'?: boolean | undefined;
193
194
  'prefetch-storages'?: any;
195
+ 'rpc-timeout'?: number | undefined;
194
196
  }, {
195
197
  addr?: string | undefined;
196
198
  host?: string | undefined;
@@ -239,6 +241,7 @@ export declare const configSchema: z.ZodObject<{
239
241
  resume?: number | boolean | `0x${string}` | undefined;
240
242
  'process-queued-messages'?: boolean | undefined;
241
243
  'prefetch-storages'?: any;
244
+ 'rpc-timeout'?: number | undefined;
242
245
  }>;
243
246
  export type Config = z.infer<typeof configSchema>;
244
247
  export declare const getYargsOptions: (zodShape: ZodRawShape) => {
@@ -113,6 +113,9 @@ const configSchema = _zod.z.object({
113
113
  }).optional(),
114
114
  'prefetch-storages': _zod.z.any({
115
115
  description: 'Storage key prefixes config for fetching storage, useful for testing big migrations, see README for examples'
116
+ }).optional(),
117
+ 'rpc-timeout': _zod.z.number({
118
+ description: 'RPC timeout in milliseconds'
116
119
  }).optional()
117
120
  });
118
121
  const getZodType = (option)=>{
@@ -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
+ rpcTimeout: argv['rpc-timeout'],
49
50
  hooks: {
50
51
  apiFetching
51
52
  }
@@ -146,6 +146,7 @@ export declare const dryRunSchema: z.ZodObject<{
146
146
  resume: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodBoolean]>>;
147
147
  'process-queued-messages': z.ZodOptional<z.ZodBoolean>;
148
148
  'prefetch-storages': z.ZodOptional<z.ZodAny>;
149
+ 'rpc-timeout': z.ZodOptional<z.ZodNumber>;
149
150
  }, "strip", z.ZodTypeAny, {
150
151
  port: number;
151
152
  'build-block-mode': import("@acala-network/chopsticks-core").BuildBlockMode;
@@ -195,6 +196,7 @@ export declare const dryRunSchema: z.ZodObject<{
195
196
  resume?: number | boolean | `0x${string}` | undefined;
196
197
  'process-queued-messages'?: boolean | undefined;
197
198
  'prefetch-storages'?: any;
199
+ 'rpc-timeout'?: number | undefined;
198
200
  open?: boolean | undefined;
199
201
  extrinsic?: string | undefined;
200
202
  address?: string | undefined;
@@ -250,6 +252,7 @@ export declare const dryRunSchema: z.ZodObject<{
250
252
  resume?: number | boolean | `0x${string}` | undefined;
251
253
  'process-queued-messages'?: boolean | undefined;
252
254
  'prefetch-storages'?: any;
255
+ 'rpc-timeout'?: number | undefined;
253
256
  open?: boolean | undefined;
254
257
  extrinsic?: string | undefined;
255
258
  address?: string | undefined;
@@ -143,6 +143,7 @@ export declare const configSchema: z.ZodObject<{
143
143
  resume: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodBoolean]>>;
144
144
  'process-queued-messages': z.ZodOptional<z.ZodBoolean>;
145
145
  'prefetch-storages': z.ZodOptional<z.ZodAny>;
146
+ 'rpc-timeout': z.ZodOptional<z.ZodNumber>;
146
147
  }, "strip", ZodTypeAny, {
147
148
  port: number;
148
149
  'build-block-mode': BuildBlockMode;
@@ -191,6 +192,7 @@ export declare const configSchema: z.ZodObject<{
191
192
  resume?: number | boolean | `0x${string}` | undefined;
192
193
  'process-queued-messages'?: boolean | undefined;
193
194
  'prefetch-storages'?: any;
195
+ 'rpc-timeout'?: number | undefined;
194
196
  }, {
195
197
  addr?: string | undefined;
196
198
  host?: string | undefined;
@@ -239,6 +241,7 @@ export declare const configSchema: z.ZodObject<{
239
241
  resume?: number | boolean | `0x${string}` | undefined;
240
242
  'process-queued-messages'?: boolean | undefined;
241
243
  'prefetch-storages'?: any;
244
+ 'rpc-timeout'?: number | undefined;
242
245
  }>;
243
246
  export type Config = z.infer<typeof configSchema>;
244
247
  export declare const getYargsOptions: (zodShape: ZodRawShape) => {
@@ -81,6 +81,9 @@ export const configSchema = z.object({
81
81
  }).optional(),
82
82
  'prefetch-storages': z.any({
83
83
  description: 'Storage key prefixes config for fetching storage, useful for testing big migrations, see README for examples'
84
+ }).optional(),
85
+ 'rpc-timeout': z.number({
86
+ description: 'RPC timeout in milliseconds'
84
87
  }).optional()
85
88
  });
86
89
  const getZodType = (option)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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.3",
19
- "@acala-network/chopsticks-db": "1.0.3",
18
+ "@acala-network/chopsticks-core": "1.0.4",
19
+ "@acala-network/chopsticks-db": "1.0.4",
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.1",
27
+ "axios": "^1.8.2",
28
28
  "comlink": "^4.4.2",
29
29
  "dotenv": "^16.4.7",
30
30
  "global-agent": "^3.0.0",