@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.
- package/dist/neutral/block/AllowedBlockPayload.d.ts +4 -12
- package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +29 -29
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/model/BlockNumber/BlockNumber.d.ts +1 -1
- package/dist/neutral/model/BlockNumber/BlockNumber.d.ts.map +1 -1
- package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts +1 -1
- package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts.map +1 -1
- package/dist/neutral/model/BlockNumber/Numberish.d.ts +1 -1
- package/dist/neutral/model/BlockNumber/Numberish.d.ts.map +1 -1
- package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts +1 -1
- package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts.map +1 -1
- package/dist/neutral/model/BlockRange/BlockRange.d.ts +1 -1
- package/dist/neutral/model/BlockRange/BlockRange.d.ts.map +1 -1
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts +1 -1
- package/dist/neutral/model/BlockRange/EthBlockRange.d.ts.map +1 -1
- package/dist/neutral/model/BlockRange/Numberish.d.ts +1 -1
- package/dist/neutral/model/BlockRange/Numberish.d.ts.map +1 -1
- package/dist/neutral/model/BlockRange/Range.d.ts +1 -1
- package/dist/neutral/model/BlockRange/Range.d.ts.map +1 -1
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts +1 -1
- package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts.map +1 -1
- package/dist/neutral/model/StepIdentity.d.ts +1 -1
- package/dist/neutral/model/StepIdentity.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +11 -11
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts +20 -20
- package/dist/neutral/payload/elevatable/Bridge/BridgeDetails.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts +10 -10
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +11 -11
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Time.d.ts +16 -16
- package/dist/neutral/payload/elevatable/Time.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/TransferPayload.d.ts +45 -13
- package/dist/neutral/payload/elevatable/TransferPayload.d.ts.map +1 -1
- package/dist/neutral/xl1/isXL1Factory.d.ts +1 -1
- package/dist/neutral/xl1/isXL1Factory.d.ts.map +1 -1
- package/dist/neutral/zod/ArrayBuffer.d.ts +1 -1
- package/dist/neutral/zod/ArrayBuffer.d.ts.map +1 -1
- package/dist/neutral/zod/Chain.d.ts +2 -2
- package/dist/neutral/zod/Chain.d.ts.map +1 -1
- package/dist/neutral/zod/HydratedBlock.d.ts +853 -501
- package/dist/neutral/zod/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/zod/HydratedTransaction.d.ts +1471 -823
- package/dist/neutral/zod/HydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/zod/RewardsRangeOptions.d.ts +5 -1
- package/dist/neutral/zod/RewardsRangeOptions.d.ts.map +1 -1
- package/dist/neutral/zod/Sequence.d.ts +1 -1
- package/dist/neutral/zod/Sequence.d.ts.map +1 -1
- package/dist/neutral/zod/Stake.d.ts +74 -18
- package/dist/neutral/zod/Stake.d.ts.map +1 -1
- package/dist/neutral/zod/TimeDomain.d.ts +1 -1
- package/dist/neutral/zod/TimeDomain.d.ts.map +1 -1
- package/dist/neutral/zod/TransactionBoundWitness.d.ts +1407 -751
- package/dist/neutral/zod/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/zod/TransactionFees.d.ts +39 -39
- package/dist/neutral/zod/TransactionFees.d.ts.map +1 -1
- package/dist/neutral/zod/TransferPair.d.ts +10 -2
- package/dist/neutral/zod/TransferPair.d.ts.map +1 -1
- package/dist/neutral/zod/block/BlockBoundWitness.d.ts +334 -190
- package/dist/neutral/zod/block/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts +103 -55
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +185 -105
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -1
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +219 -123
- package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts +97 -49
- package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/zod/payload/WithHashMetaish.d.ts +8 -8
- package/dist/neutral/zod/payload/WithHashMetaish.d.ts.map +1 -1
- package/dist/neutral/zod/payload/WithStorageMetaish.d.ts +8 -8
- package/dist/neutral/zod/payload/WithStorageMetaish.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/block/AllowedBlockPayload.ts +3 -3
- package/src/model/BlockNumber/BlockNumber.ts +1 -1
- package/src/model/BlockNumber/EthBlockNumber.ts +1 -1
- package/src/model/BlockNumber/Numberish.ts +1 -1
- package/src/model/BlockNumber/XL1BlockNumber.ts +1 -1
- package/src/model/BlockRange/BlockRange.ts +1 -1
- package/src/model/BlockRange/EthBlockRange.ts +1 -1
- package/src/model/BlockRange/Numberish.ts +1 -1
- package/src/model/BlockRange/Range.ts +1 -1
- package/src/model/BlockRange/XL1BlockRange.ts +1 -1
- package/src/model/StepIdentity.ts +1 -1
- package/src/payload/elevatable/Bridge/BridgeDestinationObservation.ts +1 -1
- package/src/payload/elevatable/Bridge/BridgeDetails.ts +1 -1
- package/src/payload/elevatable/Bridge/BridgeIntent.ts +1 -1
- package/src/payload/elevatable/Bridge/BridgeSourceObservation.ts +1 -1
- package/src/payload/elevatable/Time.ts +1 -1
- package/src/payload/elevatable/TransferPayload.ts +1 -1
- package/src/xl1/isXL1Factory.ts +1 -1
- package/src/zod/ArrayBuffer.ts +1 -1
- package/src/zod/Chain.ts +1 -1
- package/src/zod/HydratedBlock.ts +1 -1
- package/src/zod/HydratedTransaction.ts +3 -3
- package/src/zod/Sequence.ts +1 -1
- package/src/zod/Stake.ts +1 -1
- package/src/zod/TimeDomain.ts +1 -1
- package/src/zod/TransactionBoundWitness.ts +1 -1
- package/src/zod/TransactionFees.ts +1 -1
- package/src/zod/TransferPair.ts +1 -1
- package/src/zod/block/BlockBoundWitness.ts +1 -1
- package/src/zod/block/signed/SignedBlockBoundWitness.ts +1 -1
- package/src/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.ts +1 -1
- package/src/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts +1 -1
- package/src/zod/block/unsigned/UnsignedBlockBoundWitness.ts +1 -1
- package/src/zod/payload/WithHashMetaish.ts +1 -1
- package/src/zod/payload/WithStorageMetaish.ts +1 -1
|
@@ -1,103 +1,151 @@
|
|
|
1
|
-
import type
|
|
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<
|
|
5
|
-
|
|
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").
|
|
8
|
-
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
9
|
-
|
|
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").
|
|
13
|
-
previous: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").
|
|
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").
|
|
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:
|
|
22
|
-
|
|
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").
|
|
36
|
+
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
25
37
|
$signatures: null[];
|
|
26
38
|
block: import("../../../index.ts").XL1BlockNumber;
|
|
27
|
-
chain: import("@xylabs/hex").
|
|
28
|
-
previous: import("@xylabs/hex").
|
|
39
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
40
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
29
41
|
$epoch: number;
|
|
30
|
-
$destination?:
|
|
31
|
-
|
|
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").
|
|
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:
|
|
39
|
-
|
|
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").
|
|
61
|
+
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
42
62
|
$signatures: null[];
|
|
43
63
|
block: import("../../../index.ts").XL1BlockNumber;
|
|
44
|
-
chain: import("@xylabs/hex").
|
|
45
|
-
previous: import("@xylabs/hex").
|
|
64
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
65
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
46
66
|
$epoch: number;
|
|
47
|
-
$destination?:
|
|
48
|
-
|
|
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").
|
|
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:
|
|
55
|
-
|
|
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").
|
|
85
|
+
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
58
86
|
$signatures: null[];
|
|
59
87
|
block: import("../../../index.ts").XL1BlockNumber;
|
|
60
|
-
chain: import("@xylabs/hex").
|
|
61
|
-
previous: import("@xylabs/hex").
|
|
88
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
89
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
62
90
|
$epoch: number;
|
|
63
|
-
$destination?:
|
|
64
|
-
|
|
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").
|
|
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:
|
|
73
|
-
|
|
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").
|
|
111
|
+
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
76
112
|
$signatures: null[];
|
|
77
113
|
block: import("../../../index.ts").XL1BlockNumber;
|
|
78
|
-
chain: import("@xylabs/hex").
|
|
79
|
-
previous: import("@xylabs/hex").
|
|
114
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
115
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
80
116
|
$epoch: number;
|
|
81
|
-
$destination?:
|
|
82
|
-
|
|
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").
|
|
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:
|
|
89
|
-
|
|
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").
|
|
135
|
+
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
92
136
|
$signatures: null[];
|
|
93
137
|
block: import("../../../index.ts").XL1BlockNumber;
|
|
94
|
-
chain: import("@xylabs/hex").
|
|
95
|
-
previous: import("@xylabs/hex").
|
|
138
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
139
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
96
140
|
$epoch: number;
|
|
97
|
-
$destination?:
|
|
98
|
-
|
|
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").
|
|
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,
|
|
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.
|
|
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").
|
|
8
|
-
_dataHash: import("@xylabs/hex").
|
|
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").
|
|
18
|
-
_dataHash: import("@xylabs/hex").
|
|
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").
|
|
24
|
-
_dataHash: import("@xylabs/hex").
|
|
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;
|
|
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.
|
|
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").
|
|
8
|
-
_dataHash: import("@xylabs/hex").
|
|
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").
|
|
19
|
-
_dataHash: import("@xylabs/hex").
|
|
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").
|
|
26
|
-
_dataHash: import("@xylabs/hex").
|
|
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;
|
|
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.
|
|
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": "
|
|
43
|
-
"@xylabs/assert": "~5.0.
|
|
44
|
-
"@xylabs/error": "~5.0.
|
|
45
|
-
"@xylabs/hex": "~5.0.
|
|
46
|
-
"@xylabs/logger": "~5.0.
|
|
47
|
-
"@xylabs/object": "~5.0.
|
|
48
|
-
"@xylabs/promise": "~5.0.
|
|
49
|
-
"@xylabs/sdk-js": "~5.0.
|
|
50
|
-
"@xylabs/typeof": "~5.0.
|
|
51
|
-
"@xylabs/zod": "~5.0.
|
|
52
|
-
"@xyo-network/archivist-model": "~5.2.
|
|
53
|
-
"@xyo-network/boundwitness-model": "~5.2.
|
|
54
|
-
"@xyo-network/payload-builder": "~5.2.
|
|
55
|
-
"@xyo-network/payload-model": "~5.2.
|
|
56
|
-
"@xyo-network/schema-payload-plugin": "~5.2.
|
|
57
|
-
"zod": "~4.1
|
|
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": "~
|
|
61
|
-
"@typescript-eslint/types": "~8.
|
|
62
|
-
"@xylabs/creatable": "~5.0.
|
|
63
|
-
"@xylabs/eslint-config-flat": "~7.2.
|
|
64
|
-
"@xylabs/ts-scripts-yarn3": "~7.2.
|
|
65
|
-
"@xylabs/tsconfig": "~7.2.
|
|
66
|
-
"@xyo-network/account-model": "~5.2.
|
|
67
|
-
"@xyo-network/payload-builder": "~5.2.
|
|
68
|
-
"dependency-cruiser": "~17.3.
|
|
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.
|
|
70
|
+
"eslint": "~9.39.2",
|
|
71
71
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
72
|
-
"knip": "~5.
|
|
72
|
+
"knip": "~5.76.3",
|
|
73
73
|
"typescript": "~5.9.3",
|
|
74
|
-
"vite": "~7.
|
|
75
|
-
"vite-tsconfig-paths": "~
|
|
76
|
-
"vitest": "~4.0.
|
|
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(
|
|
44
|
+
export const AllowedBlockPayloadSchemaZod = z.enum(['a', 'b'])
|
|
45
45
|
export type AllowedBlockPayloadSchema = z.infer<typeof AllowedBlockPayloadSchemaZod>
|
|
46
|
-
export const isAllowedBlockPayloadSchema = zodIsFactory
|
|
46
|
+
export const isAllowedBlockPayloadSchema = zodIsFactory(AllowedBlockPayloadSchemaZod)
|
|
47
47
|
|
|
48
48
|
export const isAllowedBlockPayload = (value: unknown): value is AllowedBlockPayload => {
|
|
49
49
|
return isTransfer(value)
|
|
@@ -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 {
|
|
@@ -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 {
|
|
@@ -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 { 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
|
package/src/xl1/isXL1Factory.ts
CHANGED
package/src/zod/ArrayBuffer.ts
CHANGED
package/src/zod/Chain.ts
CHANGED
package/src/zod/HydratedBlock.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
PayloadZodLoose, WithHashMetaZod,
|
|
6
6
|
WithStorageMetaZod,
|
|
7
7
|
} from '@xyo-network/payload-model'
|
|
8
|
-
import
|
|
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(
|
|
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(
|
|
70
|
+
WithStorageMetaZod(UnsignedTransactionBoundWitnessZod),
|
|
71
71
|
z.array(WithStorageMetaZod(PayloadZodLoose)),
|
|
72
72
|
])
|
|
73
73
|
|
package/src/zod/Sequence.ts
CHANGED
|
@@ -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
|
|
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