@xyo-network/xl1-protocol 1.14.17 → 1.18.2

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.
Files changed (110) hide show
  1. package/dist/neutral/block/AllowedBlockPayload.d.ts +4 -12
  2. package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +29 -29
  4. package/dist/neutral/index.mjs.map +1 -1
  5. package/dist/neutral/model/BlockNumber/BlockNumber.d.ts +1 -1
  6. package/dist/neutral/model/BlockNumber/BlockNumber.d.ts.map +1 -1
  7. package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts +1 -1
  8. package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts.map +1 -1
  9. package/dist/neutral/model/BlockNumber/Numberish.d.ts +1 -1
  10. package/dist/neutral/model/BlockNumber/Numberish.d.ts.map +1 -1
  11. package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts +1 -1
  12. package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts.map +1 -1
  13. package/dist/neutral/model/BlockRange/BlockRange.d.ts +1 -1
  14. package/dist/neutral/model/BlockRange/BlockRange.d.ts.map +1 -1
  15. package/dist/neutral/model/BlockRange/EthBlockRange.d.ts +1 -1
  16. package/dist/neutral/model/BlockRange/EthBlockRange.d.ts.map +1 -1
  17. package/dist/neutral/model/BlockRange/Numberish.d.ts +1 -1
  18. package/dist/neutral/model/BlockRange/Numberish.d.ts.map +1 -1
  19. package/dist/neutral/model/BlockRange/Range.d.ts +1 -1
  20. package/dist/neutral/model/BlockRange/Range.d.ts.map +1 -1
  21. package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts +1 -1
  22. package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts.map +1 -1
  23. package/dist/neutral/model/StepIdentity.d.ts +1 -1
  24. package/dist/neutral/model/StepIdentity.d.ts.map +1 -1
  25. package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +11 -11
  26. package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -1
  27. package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts +20 -20
  28. package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts.map +1 -1
  29. package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts +10 -10
  30. package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -1
  31. package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +11 -11
  32. package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -1
  33. package/dist/neutral/payload/elevatable/Time.d.ts +16 -16
  34. package/dist/neutral/payload/elevatable/Time.d.ts.map +1 -1
  35. package/dist/neutral/payload/elevatable/TransferPayload.d.ts +45 -13
  36. package/dist/neutral/payload/elevatable/TransferPayload.d.ts.map +1 -1
  37. package/dist/neutral/xl1/isXL1Factory.d.ts +1 -1
  38. package/dist/neutral/xl1/isXL1Factory.d.ts.map +1 -1
  39. package/dist/neutral/zod/ArrayBuffer.d.ts +1 -1
  40. package/dist/neutral/zod/ArrayBuffer.d.ts.map +1 -1
  41. package/dist/neutral/zod/Chain.d.ts +2 -2
  42. package/dist/neutral/zod/Chain.d.ts.map +1 -1
  43. package/dist/neutral/zod/HydratedBlock.d.ts +853 -501
  44. package/dist/neutral/zod/HydratedBlock.d.ts.map +1 -1
  45. package/dist/neutral/zod/HydratedTransaction.d.ts +1471 -823
  46. package/dist/neutral/zod/HydratedTransaction.d.ts.map +1 -1
  47. package/dist/neutral/zod/RewardsRangeOptions.d.ts +5 -1
  48. package/dist/neutral/zod/RewardsRangeOptions.d.ts.map +1 -1
  49. package/dist/neutral/zod/Sequence.d.ts +1 -1
  50. package/dist/neutral/zod/Sequence.d.ts.map +1 -1
  51. package/dist/neutral/zod/Stake.d.ts +74 -18
  52. package/dist/neutral/zod/Stake.d.ts.map +1 -1
  53. package/dist/neutral/zod/TimeDomain.d.ts +1 -1
  54. package/dist/neutral/zod/TimeDomain.d.ts.map +1 -1
  55. package/dist/neutral/zod/TransactionBoundWitness.d.ts +1407 -751
  56. package/dist/neutral/zod/TransactionBoundWitness.d.ts.map +1 -1
  57. package/dist/neutral/zod/TransactionFees.d.ts +39 -39
  58. package/dist/neutral/zod/TransactionFees.d.ts.map +1 -1
  59. package/dist/neutral/zod/TransferPair.d.ts +10 -2
  60. package/dist/neutral/zod/TransferPair.d.ts.map +1 -1
  61. package/dist/neutral/zod/block/BlockBoundWitness.d.ts +334 -190
  62. package/dist/neutral/zod/block/BlockBoundWitness.d.ts.map +1 -1
  63. package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts +103 -55
  64. package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts.map +1 -1
  65. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +185 -105
  66. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -1
  67. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +219 -123
  68. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
  69. package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts +97 -49
  70. package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -1
  71. package/dist/neutral/zod/payload/WithHashMetaish.d.ts +8 -8
  72. package/dist/neutral/zod/payload/WithHashMetaish.d.ts.map +1 -1
  73. package/dist/neutral/zod/payload/WithStorageMetaish.d.ts +8 -8
  74. package/dist/neutral/zod/payload/WithStorageMetaish.d.ts.map +1 -1
  75. package/package.json +31 -31
  76. package/src/block/AllowedBlockPayload.ts +3 -3
  77. package/src/model/BlockNumber/BlockNumber.ts +1 -1
  78. package/src/model/BlockNumber/EthBlockNumber.ts +1 -1
  79. package/src/model/BlockNumber/Numberish.ts +1 -1
  80. package/src/model/BlockNumber/XL1BlockNumber.ts +1 -1
  81. package/src/model/BlockRange/BlockRange.ts +1 -1
  82. package/src/model/BlockRange/EthBlockRange.ts +1 -1
  83. package/src/model/BlockRange/Numberish.ts +1 -1
  84. package/src/model/BlockRange/Range.ts +1 -1
  85. package/src/model/BlockRange/XL1BlockRange.ts +1 -1
  86. package/src/model/StepIdentity.ts +1 -1
  87. package/src/payload/elevatable/Bridge/BridgeDestinationObservation.ts +1 -1
  88. package/src/payload/elevatable/Bridge/BridgeDetails.ts +1 -1
  89. package/src/payload/elevatable/Bridge/BridgeIntent.ts +1 -1
  90. package/src/payload/elevatable/Bridge/BridgeSourceObservation.ts +1 -1
  91. package/src/payload/elevatable/Time.ts +1 -1
  92. package/src/payload/elevatable/TransferPayload.ts +1 -1
  93. package/src/xl1/isXL1Factory.ts +1 -1
  94. package/src/zod/ArrayBuffer.ts +1 -1
  95. package/src/zod/Chain.ts +1 -1
  96. package/src/zod/HydratedBlock.ts +1 -1
  97. package/src/zod/HydratedTransaction.ts +3 -3
  98. package/src/zod/Sequence.ts +1 -1
  99. package/src/zod/Stake.ts +1 -1
  100. package/src/zod/TimeDomain.ts +1 -1
  101. package/src/zod/TransactionBoundWitness.ts +1 -1
  102. package/src/zod/TransactionFees.ts +1 -1
  103. package/src/zod/TransferPair.ts +1 -1
  104. package/src/zod/block/BlockBoundWitness.ts +1 -1
  105. package/src/zod/block/signed/SignedBlockBoundWitness.ts +1 -1
  106. package/src/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.ts +1 -1
  107. package/src/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts +1 -1
  108. package/src/zod/block/unsigned/UnsignedBlockBoundWitness.ts +1 -1
  109. package/src/zod/payload/WithHashMetaish.ts +1 -1
  110. package/src/zod/payload/WithStorageMetaish.ts +1 -1
@@ -1,103 +1,151 @@
1
- import type * as z from 'zod';
1
+ import type { z } from 'zod';
2
2
  export declare const UnsignedBlockBoundWitnessZod: z.ZodObject<{
3
3
  schema: z.ZodLiteral<"network.xyo.boundwitness">;
4
- addresses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Address, string>>>;
5
- payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
4
+ addresses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
5
+ readonly __hex: true;
6
+ } & {
7
+ readonly __address: true;
8
+ }, string>>>;
9
+ payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>;
6
10
  payload_schemas: z.ZodArray<z.ZodString>;
7
- previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>>;
8
- $destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Address, string>>>;
9
- $sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
11
+ previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>>;
12
+ $destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Lowercase<string> & {
13
+ readonly __hex: true;
14
+ } & {
15
+ readonly __address: true;
16
+ }, string>>>;
17
+ $sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>;
10
18
  $signatures: z.ZodArray<z.ZodNull>;
11
19
  block: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../../../index.ts").XL1BlockNumber, number>>;
12
- chain: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>;
13
- previous: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
20
+ chain: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHex, string>>;
21
+ previous: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>;
14
22
  protocol: z.ZodOptional<z.ZodNumber>;
15
- step_hashes: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>>;
23
+ step_hashes: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").BrandedHash, string>>>>;
16
24
  $epoch: z.ZodNumber;
17
25
  }, z.core.$strip>;
18
26
  export type UnsignedBlockBoundWitness = z.infer<typeof UnsignedBlockBoundWitnessZod>;
19
27
  export declare const isUnsignedBlockBoundWitness: <T>(value: T) => value is T & {
20
28
  schema: "network.xyo.boundwitness";
21
- addresses: import("@xylabs/hex").Address[];
22
- payload_hashes: import("@xylabs/hex").Hash[];
29
+ addresses: (Lowercase<string> & {
30
+ readonly __hex: true;
31
+ } & {
32
+ readonly __address: true;
33
+ })[];
34
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
23
35
  payload_schemas: string[];
24
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
36
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
25
37
  $signatures: null[];
26
38
  block: import("../../../index.ts").XL1BlockNumber;
27
- chain: import("@xylabs/hex").Hex;
28
- previous: import("@xylabs/hex").Hash | null;
39
+ chain: import("@xylabs/hex").BrandedHex;
40
+ previous: import("@xylabs/hex").BrandedHash | null;
29
41
  $epoch: number;
30
- $destination?: import("@xylabs/hex").Address | undefined;
31
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
42
+ $destination?: (Lowercase<string> & {
43
+ readonly __hex: true;
44
+ } & {
45
+ readonly __address: true;
46
+ }) | undefined;
47
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
32
48
  protocol?: number | undefined;
33
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
49
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
34
50
  };
35
51
  export declare const asUnsignedBlockBoundWitness: {
36
52
  <T>(value: T): (T & {
37
53
  schema: "network.xyo.boundwitness";
38
- addresses: import("@xylabs/hex").Address[];
39
- payload_hashes: import("@xylabs/hex").Hash[];
54
+ addresses: (Lowercase<string> & {
55
+ readonly __hex: true;
56
+ } & {
57
+ readonly __address: true;
58
+ })[];
59
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
40
60
  payload_schemas: string[];
41
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
61
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
42
62
  $signatures: null[];
43
63
  block: import("../../../index.ts").XL1BlockNumber;
44
- chain: import("@xylabs/hex").Hex;
45
- previous: import("@xylabs/hex").Hash | null;
64
+ chain: import("@xylabs/hex").BrandedHex;
65
+ previous: import("@xylabs/hex").BrandedHash | null;
46
66
  $epoch: number;
47
- $destination?: import("@xylabs/hex").Address | undefined;
48
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
67
+ $destination?: (Lowercase<string> & {
68
+ readonly __hex: true;
69
+ } & {
70
+ readonly __address: true;
71
+ }) | undefined;
72
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
49
73
  protocol?: number | undefined;
50
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
74
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
51
75
  }) | undefined;
52
76
  <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
53
77
  schema: "network.xyo.boundwitness";
54
- addresses: import("@xylabs/hex").Address[];
55
- payload_hashes: import("@xylabs/hex").Hash[];
78
+ addresses: (Lowercase<string> & {
79
+ readonly __hex: true;
80
+ } & {
81
+ readonly __address: true;
82
+ })[];
83
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
56
84
  payload_schemas: string[];
57
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
85
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
58
86
  $signatures: null[];
59
87
  block: import("../../../index.ts").XL1BlockNumber;
60
- chain: import("@xylabs/hex").Hex;
61
- previous: import("@xylabs/hex").Hash | null;
88
+ chain: import("@xylabs/hex").BrandedHex;
89
+ previous: import("@xylabs/hex").BrandedHash | null;
62
90
  $epoch: number;
63
- $destination?: import("@xylabs/hex").Address | undefined;
64
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
91
+ $destination?: (Lowercase<string> & {
92
+ readonly __hex: true;
93
+ } & {
94
+ readonly __address: true;
95
+ }) | undefined;
96
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
65
97
  protocol?: number | undefined;
66
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
98
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
67
99
  };
68
100
  };
69
101
  export declare const toUnsignedBlockBoundWitness: {
70
102
  <T>(value: T): (T & {
71
103
  schema: "network.xyo.boundwitness";
72
- addresses: import("@xylabs/hex").Address[];
73
- payload_hashes: import("@xylabs/hex").Hash[];
104
+ addresses: (Lowercase<string> & {
105
+ readonly __hex: true;
106
+ } & {
107
+ readonly __address: true;
108
+ })[];
109
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
74
110
  payload_schemas: string[];
75
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
111
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
76
112
  $signatures: null[];
77
113
  block: import("../../../index.ts").XL1BlockNumber;
78
- chain: import("@xylabs/hex").Hex;
79
- previous: import("@xylabs/hex").Hash | null;
114
+ chain: import("@xylabs/hex").BrandedHex;
115
+ previous: import("@xylabs/hex").BrandedHash | null;
80
116
  $epoch: number;
81
- $destination?: import("@xylabs/hex").Address | undefined;
82
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
117
+ $destination?: (Lowercase<string> & {
118
+ readonly __hex: true;
119
+ } & {
120
+ readonly __address: true;
121
+ }) | undefined;
122
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
83
123
  protocol?: number | undefined;
84
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
124
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
85
125
  }) | undefined;
86
126
  <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): T & {
87
127
  schema: "network.xyo.boundwitness";
88
- addresses: import("@xylabs/hex").Address[];
89
- payload_hashes: import("@xylabs/hex").Hash[];
128
+ addresses: (Lowercase<string> & {
129
+ readonly __hex: true;
130
+ } & {
131
+ readonly __address: true;
132
+ })[];
133
+ payload_hashes: import("@xylabs/hex").BrandedHash[];
90
134
  payload_schemas: string[];
91
- previous_hashes: (import("@xylabs/hex").Hash | null)[];
135
+ previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
92
136
  $signatures: null[];
93
137
  block: import("../../../index.ts").XL1BlockNumber;
94
- chain: import("@xylabs/hex").Hex;
95
- previous: import("@xylabs/hex").Hash | null;
138
+ chain: import("@xylabs/hex").BrandedHex;
139
+ previous: import("@xylabs/hex").BrandedHash | null;
96
140
  $epoch: number;
97
- $destination?: import("@xylabs/hex").Address | undefined;
98
- $sourceQuery?: import("@xylabs/hex").Hash | undefined;
141
+ $destination?: (Lowercase<string> & {
142
+ readonly __hex: true;
143
+ } & {
144
+ readonly __address: true;
145
+ }) | undefined;
146
+ $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
99
147
  protocol?: number | undefined;
100
- step_hashes?: import("@xylabs/hex").Hash[] | undefined;
148
+ step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
101
149
  };
102
150
  };
103
151
  //# sourceMappingURL=UnsignedBlockBoundWitness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsignedBlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../../../src/zod/block/unsigned/UnsignedBlockBoundWitness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAA;AAI7B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;iBAEI,CAAA;AAE7C,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;CAA6C,CAAA;AACrF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4E,CAAA;AACpH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4E,CAAA"}
1
+ {"version":3,"file":"UnsignedBlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../../../src/zod/block/unsigned/UnsignedBlockBoundWitness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAI5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;iBAEI,CAAA;AAE7C,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAA;AACrF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4E,CAAA;AACpH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4E,CAAA"}
@@ -1,11 +1,11 @@
1
- import type z from 'zod';
1
+ import type { z } from 'zod';
2
2
  export declare const WithHashMetaishZod: z.ZodPipe<z.ZodObject<{
3
3
  schema: z.ZodString;
4
- }, z.z.core.$strict>, z.ZodTransform<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
+ }, z.core.$strict>, z.ZodTransform<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
5
  schema: string;
6
6
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
7
- _hash: import("@xylabs/hex").Hash;
8
- _dataHash: import("@xylabs/hex").Hash;
7
+ _hash: import("@xylabs/hex").BrandedHash;
8
+ _dataHash: import("@xylabs/hex").BrandedHash;
9
9
  }, {
10
10
  schema: string;
11
11
  }>>;
@@ -14,14 +14,14 @@ export declare const toWithHashMeta: {
14
14
  <T>(value: T): Promise<(T & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
15
  schema: string;
16
16
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
17
- _hash: import("@xylabs/hex").Hash;
18
- _dataHash: import("@xylabs/hex").Hash;
17
+ _hash: import("@xylabs/hex").BrandedHash;
18
+ _dataHash: import("@xylabs/hex").BrandedHash;
19
19
  }) | undefined>;
20
20
  <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): Promise<T & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
21
21
  schema: string;
22
22
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
23
- _hash: import("@xylabs/hex").Hash;
24
- _dataHash: import("@xylabs/hex").Hash;
23
+ _hash: import("@xylabs/hex").BrandedHash;
24
+ _dataHash: import("@xylabs/hex").BrandedHash;
25
25
  }>;
26
26
  };
27
27
  //# sourceMappingURL=WithHashMetaish.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WithHashMetaish.d.ts","sourceRoot":"","sources":["../../../../src/zod/payload/WithHashMetaish.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;GAQ7B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAG1B,CAAA"}
1
+ {"version":3,"file":"WithHashMetaish.d.ts","sourceRoot":"","sources":["../../../../src/zod/payload/WithHashMetaish.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,eAAO,MAAM,kBAAkB;;;;;;;;;GAQ7B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAG1B,CAAA"}
@@ -1,11 +1,11 @@
1
- import type z from 'zod';
1
+ import type { z } from 'zod';
2
2
  export declare const WithStorageMetaishZod: z.ZodPipe<z.ZodObject<{
3
3
  schema: z.ZodString;
4
- }, z.z.core.$strict>, z.ZodTransform<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
+ }, z.core.$strict>, z.ZodTransform<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
5
  schema: string;
6
6
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
7
- _hash: import("@xylabs/hex").Hash;
8
- _dataHash: import("@xylabs/hex").Hash;
7
+ _hash: import("@xylabs/hex").BrandedHash;
8
+ _dataHash: import("@xylabs/hex").BrandedHash;
9
9
  _sequence: import("@xyo-network/payload-model").LocalSequence | import("@xyo-network/payload-model").QualifiedSequence;
10
10
  }, {
11
11
  schema: string;
@@ -15,15 +15,15 @@ export declare const toWithStorageMeta: {
15
15
  <T>(value: T): Promise<(T & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
16
  schema: string;
17
17
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
18
- _hash: import("@xylabs/hex").Hash;
19
- _dataHash: import("@xylabs/hex").Hash;
18
+ _hash: import("@xylabs/hex").BrandedHash;
19
+ _dataHash: import("@xylabs/hex").BrandedHash;
20
20
  _sequence: import("@xyo-network/payload-model").LocalSequence | import("@xyo-network/payload-model").QualifiedSequence;
21
21
  }) | undefined>;
22
22
  <T>(value: T, assert: import("@xylabs/zod").ZodFactoryConfig): Promise<T & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
23
23
  schema: string;
24
24
  } & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & {
25
- _hash: import("@xylabs/hex").Hash;
26
- _dataHash: import("@xylabs/hex").Hash;
25
+ _hash: import("@xylabs/hex").BrandedHash;
26
+ _dataHash: import("@xylabs/hex").BrandedHash;
27
27
  _sequence: import("@xyo-network/payload-model").LocalSequence | import("@xyo-network/payload-model").QualifiedSequence;
28
28
  }>;
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WithStorageMetaish.d.ts","sourceRoot":"","sources":["../../../../src/zod/payload/WithStorageMetaish.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;GAQhC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAG7B,CAAA"}
1
+ {"version":3,"file":"WithStorageMetaish.d.ts","sourceRoot":"","sources":["../../../../src/zod/payload/WithStorageMetaish.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,eAAO,MAAM,qBAAqB;;;;;;;;;;GAQhC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAG7B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-protocol",
4
- "version": "1.14.17",
4
+ "version": "1.18.2",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -39,41 +39,41 @@
39
39
  "!**/*.test.*"
40
40
  ],
41
41
  "dependencies": {
42
- "@opentelemetry/api": "~1.9.0",
43
- "@xylabs/assert": "~5.0.47",
44
- "@xylabs/error": "~5.0.47",
45
- "@xylabs/hex": "~5.0.47",
46
- "@xylabs/logger": "~5.0.47",
47
- "@xylabs/object": "~5.0.47",
48
- "@xylabs/promise": "~5.0.47",
49
- "@xylabs/sdk-js": "~5.0.47",
50
- "@xylabs/typeof": "~5.0.47",
51
- "@xylabs/zod": "~5.0.47",
52
- "@xyo-network/archivist-model": "~5.2.13",
53
- "@xyo-network/boundwitness-model": "~5.2.13",
54
- "@xyo-network/payload-builder": "~5.2.13",
55
- "@xyo-network/payload-model": "~5.2.13",
56
- "@xyo-network/schema-payload-plugin": "~5.2.13",
57
- "zod": "~4.1.13"
42
+ "@opentelemetry/api": "^1.9.0",
43
+ "@xylabs/assert": "~5.0.61",
44
+ "@xylabs/error": "~5.0.61",
45
+ "@xylabs/hex": "~5.0.61",
46
+ "@xylabs/logger": "~5.0.61",
47
+ "@xylabs/object": "~5.0.61",
48
+ "@xylabs/promise": "~5.0.61",
49
+ "@xylabs/sdk-js": "~5.0.61",
50
+ "@xylabs/typeof": "~5.0.61",
51
+ "@xylabs/zod": "~5.0.61",
52
+ "@xyo-network/archivist-model": "~5.2.19",
53
+ "@xyo-network/boundwitness-model": "~5.2.19",
54
+ "@xyo-network/payload-builder": "~5.2.19",
55
+ "@xyo-network/payload-model": "~5.2.19",
56
+ "@xyo-network/schema-payload-plugin": "~5.2.19",
57
+ "zod": "~4.2.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/node": "~24.10.1",
61
- "@typescript-eslint/types": "~8.48.1",
62
- "@xylabs/creatable": "~5.0.47",
63
- "@xylabs/eslint-config-flat": "~7.2.8",
64
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
65
- "@xylabs/tsconfig": "~7.2.8",
66
- "@xyo-network/account-model": "~5.2.13",
67
- "@xyo-network/payload-builder": "~5.2.13",
68
- "dependency-cruiser": "~17.3.2",
60
+ "@types/node": "~25.0.3",
61
+ "@typescript-eslint/types": "~8.50.1",
62
+ "@xylabs/creatable": "~5.0.61",
63
+ "@xylabs/eslint-config-flat": "~7.2.32",
64
+ "@xylabs/ts-scripts-yarn3": "~7.2.32",
65
+ "@xylabs/tsconfig": "~7.2.32",
66
+ "@xyo-network/account-model": "~5.2.19",
67
+ "@xyo-network/payload-builder": "~5.2.19",
68
+ "dependency-cruiser": "~17.3.5",
69
69
  "dotenv": "~17.2.3",
70
- "eslint": "~9.39.1",
70
+ "eslint": "~9.39.2",
71
71
  "eslint-import-resolver-typescript": "~4.4.4",
72
- "knip": "~5.71.0",
72
+ "knip": "~5.76.3",
73
73
  "typescript": "~5.9.3",
74
- "vite": "~7.2.6",
75
- "vite-tsconfig-paths": "~5.1.4",
76
- "vitest": "~4.0.15"
74
+ "vite": "~7.3.0",
75
+ "vite-tsconfig-paths": "~6.0.3",
76
+ "vitest": "~4.0.16"
77
77
  },
78
78
  "packageManager": "yarn@4.10.3",
79
79
  "engines": {
@@ -4,7 +4,7 @@ import type { Schema, WithStorageMeta } from '@xyo-network/payload-model'
4
4
  import { isHashMeta } from '@xyo-network/payload-model'
5
5
  import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
6
6
  import { isSchemaPayload, SchemaSchema } from '@xyo-network/schema-payload-plugin'
7
- import z from 'zod'
7
+ import { z } from 'zod'
8
8
 
9
9
  import type {
10
10
  BridgeDestinationObservation, BridgeIntent, BridgeSourceObservation, ChainStakeIntent, HashPayload, StepComplete, TimePayload, Transfer,
@@ -41,9 +41,9 @@ export const AllowedBlockPayloadSchemas = [
41
41
  TransferSchema,
42
42
  ] satisfies Schema[]
43
43
 
44
- export const AllowedBlockPayloadSchemaZod = z.enum(AllowedBlockPayloadSchemas)
44
+ export const AllowedBlockPayloadSchemaZod = z.enum(['a', 'b'])
45
45
  export type AllowedBlockPayloadSchema = z.infer<typeof AllowedBlockPayloadSchemaZod>
46
- export const isAllowedBlockPayloadSchema = zodIsFactory<AllowedBlockPayloadSchema>(AllowedBlockPayloadSchemaZod)
46
+ export const isAllowedBlockPayloadSchema = zodIsFactory(AllowedBlockPayloadSchemaZod)
47
47
 
48
48
  export const isAllowedBlockPayload = (value: unknown): value is AllowedBlockPayload => {
49
49
  return isTransfer(value)
@@ -1,6 +1,6 @@
1
1
  import { type Brand } from '@xylabs/typeof'
2
2
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
3
- import z from 'zod'
3
+ import { z } from 'zod'
4
4
 
5
5
  import { NumberishZod } from './Numberish.ts'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { type Brand } from '@xylabs/typeof'
2
2
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
3
- import z from 'zod'
3
+ import { z } from 'zod'
4
4
 
5
5
  import type { BlockNumber } from './BlockNumber.ts'
6
6
  import { BlockNumberishZod } from './BlockNumber.ts'
@@ -1,4 +1,4 @@
1
- import z from 'zod'
1
+ import { z } from 'zod'
2
2
 
3
3
  export const NumberishZod = z.union([z.number(), z.string(), z.bigint()])
4
4
  .transform(v => (typeof v === 'bigint' ? Number(v) : typeof v === 'string' ? Number(v) : v))
@@ -1,6 +1,6 @@
1
1
  import { type Brand } from '@xylabs/typeof'
2
2
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
3
- import z from 'zod'
3
+ import { z } from 'zod'
4
4
 
5
5
  import type { BlockNumber } from './BlockNumber.ts'
6
6
  import { BlockNumberishZod } from './BlockNumber.ts'
@@ -2,7 +2,7 @@ import type { AssertConfig } from '@xylabs/error'
2
2
  import { assertError } from '@xylabs/error'
3
3
  import { type Brand, isDefined } from '@xylabs/typeof'
4
4
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
5
- import z from 'zod'
5
+ import { z } from 'zod'
6
6
 
7
7
  import {
8
8
  asBlockNumber,
@@ -2,7 +2,7 @@ import type { AssertConfig } from '@xylabs/error'
2
2
  import { assertError } from '@xylabs/error'
3
3
  import { type Brand, isDefined } from '@xylabs/typeof'
4
4
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
5
- import z from 'zod'
5
+ import { z } from 'zod'
6
6
 
7
7
  import type { EthBlockNumber } from '../BlockNumber/index.ts'
8
8
  import {
@@ -1,4 +1,4 @@
1
- import z from 'zod'
1
+ import { z } from 'zod'
2
2
 
3
3
  import { NumberishZod } from '../BlockNumber/index.ts'
4
4
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  zodAsFactory, zodIsFactory, zodToFactory,
3
3
  } from '@xylabs/zod'
4
- import z from 'zod'
4
+ import { z } from 'zod'
5
5
 
6
6
  export const RangeZod = z.tuple([z.number(), z.number()])
7
7
 
@@ -2,7 +2,7 @@ import type { AssertConfig } from '@xylabs/error'
2
2
  import { assertError } from '@xylabs/error'
3
3
  import { type Brand, isDefined } from '@xylabs/typeof'
4
4
  import { zodAsFactory, zodToFactory } from '@xylabs/zod'
5
- import z from 'zod'
5
+ import { z } from 'zod'
6
6
 
7
7
  import type { XL1BlockNumber } from '../BlockNumber/index.ts'
8
8
  import {
@@ -1,5 +1,5 @@
1
1
  import { type Brand, isUndefined } from '@xylabs/typeof'
2
- import * as z from 'zod'
2
+ import { z } from 'zod'
3
3
 
4
4
  import { toXL1BlockNumber, XL1BlockNumberZod } from './BlockNumber/index.ts'
5
5
 
@@ -2,7 +2,7 @@ import { HexZod } from '@xylabs/hex'
2
2
  import { AsObjectFactory } from '@xylabs/object'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
  import { isPayloadOfZodType } from '@xyo-network/payload-model'
5
- import type z from 'zod'
5
+ import type { z } from 'zod'
6
6
 
7
7
  import { BridgeDetailsFieldsZod } from './BridgeDetails.ts'
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { HexZod } from '@xylabs/hex'
2
- import z from 'zod'
2
+ import { z } from 'zod'
3
3
 
4
4
  /**
5
5
  * Represents a transfer destination
@@ -1,7 +1,7 @@
1
1
  import { AsObjectFactory } from '@xylabs/object'
2
2
  import type { Payload } from '@xyo-network/payload-model'
3
3
  import { isPayloadOfZodType } from '@xyo-network/payload-model'
4
- import z from 'zod'
4
+ import { z } from 'zod'
5
5
 
6
6
  import { BridgeDetailsFieldsZod } from './BridgeDetails.ts'
7
7
 
@@ -2,7 +2,7 @@ import { HexZod } from '@xylabs/hex'
2
2
  import { AsObjectFactory } from '@xylabs/object'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
  import { isPayloadOfZodType } from '@xyo-network/payload-model'
5
- import type z from 'zod'
5
+ import type { z } from 'zod'
6
6
 
7
7
  import { BridgeDetailsFieldsZod } from './BridgeDetails.ts'
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { HashZod } from '@xylabs/hex'
2
2
  import { AsObjectFactory } from '@xylabs/object'
3
3
  import { isPayloadOfSchemaType, PayloadZodOfSchema } from '@xyo-network/payload-model'
4
- import z from 'zod'
4
+ import { z } from 'zod'
5
5
 
6
6
  // xl1 = xl1 block number, epoch = epoch number, ethereum = ethereum block number
7
7
  export type TimeDomain = 'xl1' | 'epoch' | 'ethereum'
@@ -4,7 +4,7 @@ import {
4
4
  } from '@xylabs/hex'
5
5
  import { AsObjectFactory, JsonObjectZod } from '@xylabs/object'
6
6
  import { isPayloadOfSchemaType, PayloadZodOfSchema } from '@xyo-network/payload-model'
7
- import z from 'zod'
7
+ import { z } from 'zod'
8
8
 
9
9
  export const TransferSchema = 'network.xyo.transfer' as const
10
10
  export type TransferSchema = typeof TransferSchema
@@ -1,4 +1,4 @@
1
- import * as z from 'zod'
1
+ import { z } from 'zod'
2
2
 
3
3
  import { xl1MaxValue } from './xl1MaxValue.ts'
4
4
 
@@ -1,4 +1,4 @@
1
- import * as z from 'zod'
1
+ import { z } from 'zod'
2
2
 
3
3
  function base64Encode(u8: Uint8Array): string {
4
4
  // Node
package/src/zod/Chain.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AddressRegEx, toAddress } from '@xylabs/sdk-js'
2
- import * as z from 'zod'
2
+ import { z } from 'zod'
3
3
 
4
4
  import type { ChainId } from '../model/index.ts'
5
5
 
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  PayloadZodLoose, WithHashMetaZod, WithStorageMetaZod,
6
6
  } from '@xyo-network/payload-model'
7
- import * as z from 'zod'
7
+ import { z } from 'zod'
8
8
 
9
9
  import {
10
10
  BlockBoundWitnessZod,
@@ -5,7 +5,7 @@ import {
5
5
  PayloadZodLoose, WithHashMetaZod,
6
6
  WithStorageMetaZod,
7
7
  } from '@xyo-network/payload-model'
8
- import * as z from 'zod'
8
+ import { z } from 'zod'
9
9
 
10
10
  import {
11
11
  SignedTransactionBoundWitnessZod, TransactionBoundWitnessZod, UnsignedTransactionBoundWitnessZod,
@@ -56,7 +56,7 @@ export const asUnsignedHydratedTransaction = zodAsFactory(UnsignedHydratedTransa
56
56
  export const toUnsignedHydratedTransaction = zodToFactory(UnsignedHydratedTransactionZod, 'toUnsignedHydratedTransaction')
57
57
 
58
58
  export const UnsignedHydratedTransactionWithHashMetaZod = z.tuple([
59
- WithHashMetaZod(TransactionBoundWitnessZod),
59
+ WithHashMetaZod(UnsignedTransactionBoundWitnessZod),
60
60
  z.array(WithHashMetaZod(PayloadZodLoose)),
61
61
  ])
62
62
 
@@ -67,7 +67,7 @@ export const asUnsignedHydratedTransactionWithHashMeta = zodAsFactory(UnsignedHy
67
67
  export const toUnsignedHydratedTransactionWithHashMeta = zodToFactory(UnsignedHydratedTransactionWithHashMetaZod, 'toUnsignedHydratedTransactionWithHashMeta')
68
68
 
69
69
  export const UnsignedHydratedTransactionWithStorageMetaZod = z.tuple([
70
- WithStorageMetaZod(TransactionBoundWitnessZod),
70
+ WithStorageMetaZod(UnsignedTransactionBoundWitnessZod),
71
71
  z.array(WithStorageMetaZod(PayloadZodLoose)),
72
72
  ])
73
73
 
@@ -1,7 +1,7 @@
1
1
  import { HexRegExMinMax, toHex } from '@xylabs/sdk-js'
2
2
  import type { LocalSequence, QualifiedSequence } from '@xyo-network/payload-model'
3
3
  import { SequenceConstants } from '@xyo-network/payload-model'
4
- import * as z from 'zod'
4
+ import { z } from 'zod'
5
5
 
6
6
  const LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes))
7
7
  export const LocalSequenceToStringZod = z.string().regex(LocalSequenceRegex)
package/src/zod/Stake.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AddressZod, HexZod } from '@xylabs/sdk-js'
2
- import * as z from 'zod'
2
+ import { z } from 'zod'
3
3
 
4
4
  import type { PositionId } from '../model/index.ts'
5
5
  import {