@acala-network/chopsticks 0.9.6 → 0.9.8-1

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.
@@ -9,7 +9,7 @@ export declare const dryRunSchema: z.ZodObject<{
9
9
  open: z.ZodOptional<z.ZodBoolean>;
10
10
  port: z.ZodDefault<z.ZodNumber>;
11
11
  endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12
- block: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodNull]>>;
12
+ block: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
13
13
  'build-block-mode': z.ZodDefault<z.ZodNativeEnum<typeof import("@acala-network/chopsticks-core").BuildBlockMode>>;
14
14
  'import-storage': z.ZodOptional<z.ZodAny>;
15
15
  'allow-unresolved-imports': z.ZodOptional<z.ZodBoolean>;
@@ -93,7 +93,7 @@ export declare const dryRunSchema: z.ZodObject<{
93
93
  html?: boolean | undefined;
94
94
  open?: boolean | undefined;
95
95
  endpoint?: string | string[] | undefined;
96
- block?: number | `0x${string}` | null | undefined;
96
+ block?: string | number | null | undefined;
97
97
  'import-storage'?: any;
98
98
  'allow-unresolved-imports'?: boolean | undefined;
99
99
  'mock-signature-host'?: boolean | undefined;
@@ -129,7 +129,7 @@ export declare const dryRunSchema: z.ZodObject<{
129
129
  open?: boolean | undefined;
130
130
  port?: number | undefined;
131
131
  endpoint?: string | string[] | undefined;
132
- block?: number | `0x${string}` | null | undefined;
132
+ block?: string | number | null | undefined;
133
133
  'build-block-mode'?: import("@acala-network/chopsticks-core").BuildBlockMode | undefined;
134
134
  'import-storage'?: any;
135
135
  'allow-unresolved-imports'?: boolean | undefined;
@@ -134,6 +134,6 @@ export interface DryRunParams {
134
134
  export declare const rpc: (context: Context, [params]: [DryRunParams]) => Promise<string | [`0x${string}`, `0x${string}` | null][] | {
135
135
  old: {};
136
136
  new: {};
137
- delta: import("jsondiffpatch").Delta | undefined;
137
+ delta: import("jsondiffpatch").Delta;
138
138
  }>;
139
139
  export {};
@@ -5,7 +5,7 @@ export declare const zHash: z.ZodIntersection<z.ZodString, z.ZodType<`0x${string
5
5
  export declare const configSchema: z.ZodObject<{
6
6
  port: z.ZodDefault<z.ZodNumber>;
7
7
  endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
8
- block: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodNull]>>;
8
+ block: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
9
9
  'build-block-mode': z.ZodDefault<ZodNativeEnum<typeof BuildBlockMode>>;
10
10
  'import-storage': z.ZodOptional<z.ZodAny>;
11
11
  'allow-unresolved-imports': z.ZodOptional<z.ZodBoolean>;
@@ -82,7 +82,7 @@ export declare const configSchema: z.ZodObject<{
82
82
  port: number;
83
83
  'build-block-mode': BuildBlockMode;
84
84
  endpoint?: string | string[] | undefined;
85
- block?: number | `0x${string}` | null | undefined;
85
+ block?: string | number | null | undefined;
86
86
  'import-storage'?: any;
87
87
  'allow-unresolved-imports'?: boolean | undefined;
88
88
  'mock-signature-host'?: boolean | undefined;
@@ -111,7 +111,7 @@ export declare const configSchema: z.ZodObject<{
111
111
  }, {
112
112
  port?: number | undefined;
113
113
  endpoint?: string | string[] | undefined;
114
- block?: number | `0x${string}` | null | undefined;
114
+ block?: string | number | null | undefined;
115
115
  'build-block-mode'?: BuildBlockMode | undefined;
116
116
  'import-storage'?: any;
117
117
  'allow-unresolved-imports'?: boolean | undefined;
@@ -50,8 +50,8 @@ const configSchema = _zod.z.object({
50
50
  description: 'Endpoint to connect to'
51
51
  }).optional(),
52
52
  block: _zod.z.union([
53
- zHash,
54
- _zod.z.coerce.number(),
53
+ _zod.z.string(),
54
+ _zod.z.number(),
55
55
  _zod.z.null()
56
56
  ], {
57
57
  description: 'Block hash or block number. Default to latest block'
@@ -3,5 +3,5 @@ import { HexString } from '@polkadot/util/types';
3
3
  export declare const decodeStorageDiff: (block: Block, diff: [HexString, HexString | null][]) => Promise<{
4
4
  oldState: {};
5
5
  newState: {};
6
- delta: import("jsondiffpatch").Delta | undefined;
6
+ delta: import("jsondiffpatch").Delta;
7
7
  }>;
@@ -17,7 +17,7 @@ function _interop_require_default(obj) {
17
17
  };
18
18
  }
19
19
  const diffPatcher = (0, _jsondiffpatch.create)({
20
- array: {
20
+ arrays: {
21
21
  detectMove: false
22
22
  },
23
23
  textDiff: {
@@ -9,7 +9,7 @@ export declare const dryRunSchema: z.ZodObject<{
9
9
  open: z.ZodOptional<z.ZodBoolean>;
10
10
  port: z.ZodDefault<z.ZodNumber>;
11
11
  endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12
- block: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodNull]>>;
12
+ block: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
13
13
  'build-block-mode': z.ZodDefault<z.ZodNativeEnum<typeof import("@acala-network/chopsticks-core").BuildBlockMode>>;
14
14
  'import-storage': z.ZodOptional<z.ZodAny>;
15
15
  'allow-unresolved-imports': z.ZodOptional<z.ZodBoolean>;
@@ -93,7 +93,7 @@ export declare const dryRunSchema: z.ZodObject<{
93
93
  html?: boolean | undefined;
94
94
  open?: boolean | undefined;
95
95
  endpoint?: string | string[] | undefined;
96
- block?: number | `0x${string}` | null | undefined;
96
+ block?: string | number | null | undefined;
97
97
  'import-storage'?: any;
98
98
  'allow-unresolved-imports'?: boolean | undefined;
99
99
  'mock-signature-host'?: boolean | undefined;
@@ -129,7 +129,7 @@ export declare const dryRunSchema: z.ZodObject<{
129
129
  open?: boolean | undefined;
130
130
  port?: number | undefined;
131
131
  endpoint?: string | string[] | undefined;
132
- block?: number | `0x${string}` | null | undefined;
132
+ block?: string | number | null | undefined;
133
133
  'build-block-mode'?: import("@acala-network/chopsticks-core").BuildBlockMode | undefined;
134
134
  'import-storage'?: any;
135
135
  'allow-unresolved-imports'?: boolean | undefined;
@@ -134,6 +134,6 @@ export interface DryRunParams {
134
134
  export declare const rpc: (context: Context, [params]: [DryRunParams]) => Promise<string | [`0x${string}`, `0x${string}` | null][] | {
135
135
  old: {};
136
136
  new: {};
137
- delta: import("jsondiffpatch").Delta | undefined;
137
+ delta: import("jsondiffpatch").Delta;
138
138
  }>;
139
139
  export {};
@@ -5,7 +5,7 @@ export declare const zHash: z.ZodIntersection<z.ZodString, z.ZodType<`0x${string
5
5
  export declare const configSchema: z.ZodObject<{
6
6
  port: z.ZodDefault<z.ZodNumber>;
7
7
  endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
8
- block: z.ZodOptional<z.ZodUnion<[z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>, z.ZodNumber, z.ZodNull]>>;
8
+ block: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
9
9
  'build-block-mode': z.ZodDefault<ZodNativeEnum<typeof BuildBlockMode>>;
10
10
  'import-storage': z.ZodOptional<z.ZodAny>;
11
11
  'allow-unresolved-imports': z.ZodOptional<z.ZodBoolean>;
@@ -82,7 +82,7 @@ export declare const configSchema: z.ZodObject<{
82
82
  port: number;
83
83
  'build-block-mode': BuildBlockMode;
84
84
  endpoint?: string | string[] | undefined;
85
- block?: number | `0x${string}` | null | undefined;
85
+ block?: string | number | null | undefined;
86
86
  'import-storage'?: any;
87
87
  'allow-unresolved-imports'?: boolean | undefined;
88
88
  'mock-signature-host'?: boolean | undefined;
@@ -111,7 +111,7 @@ export declare const configSchema: z.ZodObject<{
111
111
  }, {
112
112
  port?: number | undefined;
113
113
  endpoint?: string | string[] | undefined;
114
- block?: number | `0x${string}` | null | undefined;
114
+ block?: string | number | null | undefined;
115
115
  'build-block-mode'?: BuildBlockMode | undefined;
116
116
  'import-storage'?: any;
117
117
  'allow-unresolved-imports'?: boolean | undefined;
@@ -18,8 +18,8 @@ export const configSchema = z.object({
18
18
  description: 'Endpoint to connect to'
19
19
  }).optional(),
20
20
  block: z.union([
21
- zHash,
22
- z.coerce.number(),
21
+ z.string(),
22
+ z.number(),
23
23
  z.null()
24
24
  ], {
25
25
  description: 'Block hash or block number. Default to latest block'
@@ -3,5 +3,5 @@ import { HexString } from '@polkadot/util/types';
3
3
  export declare const decodeStorageDiff: (block: Block, diff: [HexString, HexString | null][]) => Promise<{
4
4
  oldState: {};
5
5
  newState: {};
6
- delta: import("jsondiffpatch").Delta | undefined;
6
+ delta: import("jsondiffpatch").Delta;
7
7
  }>;
@@ -2,7 +2,7 @@ import { decodeBlockStorageDiff } from '@acala-network/chopsticks-core';
2
2
  import { create } from 'jsondiffpatch';
3
3
  import _ from 'lodash';
4
4
  const diffPatcher = create({
5
- array: {
5
+ arrays: {
6
6
  detectMove: false
7
7
  },
8
8
  textDiff: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "0.9.6",
3
+ "version": "0.9.8-1",
4
4
  "author": "Acala Developers <hello@acala.network>",
5
5
  "license": "Apache-2.0",
6
6
  "bin": "./chopsticks.cjs",
@@ -13,34 +13,34 @@
13
13
  "docs:prep": "typedoc"
14
14
  },
15
15
  "dependencies": {
16
- "@acala-network/chopsticks-core": "0.9.6",
17
- "@acala-network/chopsticks-db": "0.9.6",
16
+ "@acala-network/chopsticks-core": "0.9.8-1",
17
+ "@acala-network/chopsticks-db": "0.9.8-1",
18
18
  "@pnpm/npm-conf": "^2.2.2",
19
- "@polkadot/api-augment": "^10.10.1",
20
- "@polkadot/types": "^10.10.1",
21
- "@polkadot/util": "^12.5.1",
22
- "@polkadot/util-crypto": "^12.5.1",
23
- "axios": "^1.6.3",
24
- "dotenv": "^16.3.1",
19
+ "@polkadot/api-augment": "^10.11.2",
20
+ "@polkadot/types": "^10.11.2",
21
+ "@polkadot/util": "^12.6.2",
22
+ "@polkadot/util-crypto": "^12.6.2",
23
+ "axios": "^1.6.5",
24
+ "dotenv": "^16.4.0",
25
25
  "global-agent": "^3.0.0",
26
26
  "js-yaml": "^4.1.0",
27
- "jsondiffpatch": "^0.5.0",
27
+ "jsondiffpatch": "^0.6.0",
28
28
  "lodash": "^4.17.21",
29
- "ws": "^8.15.0",
29
+ "ws": "^8.16.0",
30
30
  "yargs": "^17.7.2",
31
31
  "zod": "^3.22.4"
32
32
  },
33
33
  "devDependencies": {
34
- "@swc/cli": "0.1.63",
35
- "@swc/core": "^1.3.100",
34
+ "@swc/cli": "0.1.65",
35
+ "@swc/core": "^1.3.105",
36
36
  "@types/global-agent": "^2.1.3",
37
37
  "@types/js-yaml": "^4.0.9",
38
38
  "@types/lodash": "^4.14.202",
39
- "@types/node": "^20.10.4",
39
+ "@types/node": "^20.11.5",
40
40
  "@types/ws": "^8.5.10",
41
41
  "@types/yargs": "^17.0.32",
42
42
  "typescript": "^5.3.3",
43
- "vitest": "^1.0.4"
43
+ "vitest": "^1.2.1"
44
44
  },
45
45
  "files": [
46
46
  "dist/esm/**",