@acala-network/chopsticks 0.9.5-2 → 0.9.5-3

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.
@@ -14,7 +14,7 @@ declare const schema: z.ZodObject<{
14
14
  msg: `0x${string}`;
15
15
  }>, "many">>;
16
16
  ump: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, "many">>>;
17
- hrmp: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodObject<{
17
+ hrmp: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodArray<z.ZodObject<{
18
18
  sentAt: z.ZodNumber;
19
19
  data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
20
20
  }, "strip", z.ZodTypeAny, {
@@ -34,7 +34,7 @@ declare const schema: z.ZodObject<{
34
34
  msg: `0x${string}`;
35
35
  }[] | undefined;
36
36
  ump?: Record<number, `0x${string}`[]> | undefined;
37
- hrmp?: Record<number, {
37
+ hrmp?: Record<string | number, {
38
38
  data: `0x${string}`;
39
39
  sentAt: number;
40
40
  }[]> | undefined;
@@ -48,7 +48,7 @@ declare const schema: z.ZodObject<{
48
48
  msg: `0x${string}`;
49
49
  }[] | undefined;
50
50
  ump?: Record<number, `0x${string}`[]> | undefined;
51
- hrmp?: Record<number, {
51
+ hrmp?: Record<string | number, {
52
52
  data: `0x${string}`;
53
53
  sentAt: number;
54
54
  }[]> | undefined;
@@ -20,7 +20,10 @@ const schema = _zod.z.object({
20
20
  msg: _index.zHex
21
21
  })).min(1).optional(),
22
22
  ump: _zod.z.record(_zod.z.number(), _zod.z.array(_index.zHex).min(1)).optional(),
23
- hrmp: _zod.z.record(_zod.z.number(), _zod.z.array(_zod.z.object({
23
+ hrmp: _zod.z.record(_zod.z.union([
24
+ _zod.z.number(),
25
+ _zod.z.string()
26
+ ]), _zod.z.array(_zod.z.object({
24
27
  sentAt: _zod.z.number(),
25
28
  data: _index.zHex
26
29
  })).min(1)).optional(),
@@ -14,7 +14,7 @@ declare const schema: z.ZodObject<{
14
14
  msg: `0x${string}`;
15
15
  }>, "many">>;
16
16
  ump: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, "many">>>;
17
- hrmp: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodObject<{
17
+ hrmp: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodArray<z.ZodObject<{
18
18
  sentAt: z.ZodNumber;
19
19
  data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
20
20
  }, "strip", z.ZodTypeAny, {
@@ -34,7 +34,7 @@ declare const schema: z.ZodObject<{
34
34
  msg: `0x${string}`;
35
35
  }[] | undefined;
36
36
  ump?: Record<number, `0x${string}`[]> | undefined;
37
- hrmp?: Record<number, {
37
+ hrmp?: Record<string | number, {
38
38
  data: `0x${string}`;
39
39
  sentAt: number;
40
40
  }[]> | undefined;
@@ -48,7 +48,7 @@ declare const schema: z.ZodObject<{
48
48
  msg: `0x${string}`;
49
49
  }[] | undefined;
50
50
  ump?: Record<number, `0x${string}`[]> | undefined;
51
- hrmp?: Record<number, {
51
+ hrmp?: Record<string | number, {
52
52
  data: `0x${string}`;
53
53
  sentAt: number;
54
54
  }[]> | undefined;
@@ -10,7 +10,10 @@ const schema = z.object({
10
10
  msg: zHex
11
11
  })).min(1).optional(),
12
12
  ump: z.record(z.number(), z.array(zHex).min(1)).optional(),
13
- hrmp: z.record(z.number(), z.array(z.object({
13
+ hrmp: z.record(z.union([
14
+ z.number(),
15
+ z.string()
16
+ ]), z.array(z.object({
14
17
  sentAt: z.number(),
15
18
  data: zHex
16
19
  })).min(1)).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "0.9.5-2",
3
+ "version": "0.9.5-3",
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.5-2",
17
- "@acala-network/chopsticks-db": "0.9.5-2",
16
+ "@acala-network/chopsticks-core": "0.9.5-3",
17
+ "@acala-network/chopsticks-db": "0.9.5-3",
18
18
  "@pnpm/npm-conf": "^2.2.2",
19
19
  "@polkadot/api-augment": "^10.10.1",
20
20
  "@polkadot/types": "^10.10.1",