@xyo-network/xl1-rpc 1.16.2 → 1.16.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.
- package/dist/neutral/index.mjs +127 -132
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +631 -127
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +38 -6
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +87 -15
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +506 -106
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +76 -12
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +57 -9
- package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts +133 -21
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +117 -21
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Payload.d.ts +57 -14
- package/dist/neutral/types/schema/common/Payload.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Sequence.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +38 -6
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts +8 -16
- package/dist/neutral/types/schema/common/Transfer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +127 -132
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +631 -127
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +38 -6
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +87 -15
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +506 -106
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +76 -12
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/BoundWitness.d.ts +57 -9
- package/dist/node/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedBlock.d.ts +133 -21
- package/dist/node/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +117 -21
- package/dist/node/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/node/types/schema/common/Payload.d.ts +57 -14
- package/dist/node/types/schema/common/Payload.d.ts.map +1 -1
- package/dist/node/types/schema/common/Sequence.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +38 -6
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/Transfer.d.ts +8 -16
- package/dist/node/types/schema/common/Transfer.d.ts.map +1 -1
- package/package.json +12 -14
- package/src/spec/MemoryXyoClient.spec.ts +1 -1
- package/src/spec/MemoryXyoGateway.spec.ts +1 -1
- package/src/types/schema/common/BlockBoundWitness.ts +2 -1
- package/src/types/schema/common/BoundWitness.ts +2 -3
- package/src/types/schema/common/Payload.ts +1 -9
- package/src/types/schema/common/Sequence.ts +1 -4
- package/src/types/schema/common/TransactionBoundWitness.ts +1 -1
- package/src/types/schema/common/Transfer.ts +1 -1
|
@@ -12,9 +12,25 @@ export declare const HydratedTransactionZod: z.ZodTuple<[z.ZodObject<{
|
|
|
12
12
|
}>, string>>>;
|
|
13
13
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
14
14
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
15
|
-
_hash: z.ZodOptional<z.
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
16
|
+
readonly __hex: true;
|
|
17
|
+
}>, {
|
|
18
|
+
readonly __hash: true;
|
|
19
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
20
|
+
readonly __hex: true;
|
|
21
|
+
}>, {
|
|
22
|
+
readonly __hash: true;
|
|
23
|
+
}>, unknown>>>;
|
|
24
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
25
|
+
readonly __hex: true;
|
|
26
|
+
}>, {
|
|
27
|
+
readonly __hash: true;
|
|
28
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
29
|
+
readonly __hex: true;
|
|
30
|
+
}>, {
|
|
31
|
+
readonly __hash: true;
|
|
32
|
+
}>, unknown>>>;
|
|
33
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
18
34
|
nbf: z.ZodNumber;
|
|
19
35
|
exp: z.ZodNumber;
|
|
20
36
|
fees: z.ZodObject<{
|
|
@@ -42,9 +58,25 @@ export declare const UnsignedHydratedTransactionZod: z.ZodTuple<[z.ZodObject<{
|
|
|
42
58
|
}>, string>>>;
|
|
43
59
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
44
60
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
45
|
-
_hash: z.ZodOptional<z.
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
62
|
+
readonly __hex: true;
|
|
63
|
+
}>, {
|
|
64
|
+
readonly __hash: true;
|
|
65
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
66
|
+
readonly __hex: true;
|
|
67
|
+
}>, {
|
|
68
|
+
readonly __hash: true;
|
|
69
|
+
}>, unknown>>>;
|
|
70
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
71
|
+
readonly __hex: true;
|
|
72
|
+
}>, {
|
|
73
|
+
readonly __hash: true;
|
|
74
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
75
|
+
readonly __hex: true;
|
|
76
|
+
}>, {
|
|
77
|
+
readonly __hash: true;
|
|
78
|
+
}>, unknown>>>;
|
|
79
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
48
80
|
nbf: z.ZodNumber;
|
|
49
81
|
exp: z.ZodNumber;
|
|
50
82
|
fees: z.ZodObject<{
|
|
@@ -72,9 +104,25 @@ export declare const SignedHydratedTransactionZod: z.ZodTuple<[z.ZodObject<{
|
|
|
72
104
|
}>, string>>>;
|
|
73
105
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
74
106
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
75
|
-
_hash: z.ZodOptional<z.
|
|
76
|
-
|
|
77
|
-
|
|
107
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
108
|
+
readonly __hex: true;
|
|
109
|
+
}>, {
|
|
110
|
+
readonly __hash: true;
|
|
111
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
112
|
+
readonly __hex: true;
|
|
113
|
+
}>, {
|
|
114
|
+
readonly __hash: true;
|
|
115
|
+
}>, unknown>>>;
|
|
116
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
117
|
+
readonly __hex: true;
|
|
118
|
+
}>, {
|
|
119
|
+
readonly __hash: true;
|
|
120
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
121
|
+
readonly __hex: true;
|
|
122
|
+
}>, {
|
|
123
|
+
readonly __hash: true;
|
|
124
|
+
}>, unknown>>>;
|
|
125
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
78
126
|
nbf: z.ZodNumber;
|
|
79
127
|
exp: z.ZodNumber;
|
|
80
128
|
fees: z.ZodObject<{
|
|
@@ -102,9 +150,25 @@ export declare const SignedHydratedTransactionToJsonZod: z.ZodPipe<z.ZodTuple<[z
|
|
|
102
150
|
}>, string>>>;
|
|
103
151
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
104
152
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
105
|
-
_hash: z.ZodOptional<z.
|
|
106
|
-
|
|
107
|
-
|
|
153
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
154
|
+
readonly __hex: true;
|
|
155
|
+
}>, {
|
|
156
|
+
readonly __hash: true;
|
|
157
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
158
|
+
readonly __hex: true;
|
|
159
|
+
}>, {
|
|
160
|
+
readonly __hash: true;
|
|
161
|
+
}>, unknown>>>;
|
|
162
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
163
|
+
readonly __hex: true;
|
|
164
|
+
}>, {
|
|
165
|
+
readonly __hash: true;
|
|
166
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
167
|
+
readonly __hex: true;
|
|
168
|
+
}>, {
|
|
169
|
+
readonly __hash: true;
|
|
170
|
+
}>, unknown>>>;
|
|
171
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
108
172
|
nbf: z.ZodNumber;
|
|
109
173
|
exp: z.ZodNumber;
|
|
110
174
|
fees: z.ZodObject<{
|
|
@@ -141,9 +205,17 @@ export declare const SignedHydratedTransactionToJsonZod: z.ZodPipe<z.ZodTuple<[z
|
|
|
141
205
|
readonly __address: true;
|
|
142
206
|
}> | undefined;
|
|
143
207
|
$sourceQuery?: import("@xylabs/hex").Hash | undefined;
|
|
144
|
-
_hash?: string
|
|
145
|
-
|
|
146
|
-
|
|
208
|
+
_hash?: import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
209
|
+
readonly __hex: true;
|
|
210
|
+
}>, {
|
|
211
|
+
readonly __hash: true;
|
|
212
|
+
}> | undefined;
|
|
213
|
+
_dataHash?: import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
214
|
+
readonly __hex: true;
|
|
215
|
+
}>, {
|
|
216
|
+
readonly __hash: true;
|
|
217
|
+
}> | undefined;
|
|
218
|
+
_sequence?: import("@xyo-network/payload-model").LocalSequence | import("@xyo-network/payload-model").QualifiedSequence | undefined;
|
|
147
219
|
script?: string[] | undefined;
|
|
148
220
|
}, {
|
|
149
221
|
[x: string]: any;
|
|
@@ -162,9 +234,25 @@ export declare const JsonToSignedHydratedTransactionZod: z.ZodPipe<z.ZodTuple<[z
|
|
|
162
234
|
}>, string>>>;
|
|
163
235
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
164
236
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
165
|
-
_hash: z.ZodOptional<z.
|
|
166
|
-
|
|
167
|
-
|
|
237
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
238
|
+
readonly __hex: true;
|
|
239
|
+
}>, {
|
|
240
|
+
readonly __hash: true;
|
|
241
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
242
|
+
readonly __hex: true;
|
|
243
|
+
}>, {
|
|
244
|
+
readonly __hash: true;
|
|
245
|
+
}>, unknown>>>;
|
|
246
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
247
|
+
readonly __hex: true;
|
|
248
|
+
}>, {
|
|
249
|
+
readonly __hash: true;
|
|
250
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
251
|
+
readonly __hex: true;
|
|
252
|
+
}>, {
|
|
253
|
+
readonly __hash: true;
|
|
254
|
+
}>, unknown>>>;
|
|
255
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
168
256
|
nbf: z.ZodNumber;
|
|
169
257
|
exp: z.ZodNumber;
|
|
170
258
|
fees: z.ZodObject<{
|
|
@@ -201,9 +289,17 @@ export declare const JsonToSignedHydratedTransactionZod: z.ZodPipe<z.ZodTuple<[z
|
|
|
201
289
|
readonly __address: true;
|
|
202
290
|
}> | undefined;
|
|
203
291
|
$sourceQuery?: import("@xylabs/hex").Hash | undefined;
|
|
204
|
-
_hash?: string
|
|
205
|
-
|
|
206
|
-
|
|
292
|
+
_hash?: import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
293
|
+
readonly __hex: true;
|
|
294
|
+
}>, {
|
|
295
|
+
readonly __hash: true;
|
|
296
|
+
}> | undefined;
|
|
297
|
+
_dataHash?: import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
298
|
+
readonly __hex: true;
|
|
299
|
+
}>, {
|
|
300
|
+
readonly __hash: true;
|
|
301
|
+
}> | undefined;
|
|
302
|
+
_sequence?: import("@xyo-network/payload-model").LocalSequence | import("@xyo-network/payload-model").QualifiedSequence | undefined;
|
|
207
303
|
script?: string[] | undefined;
|
|
208
304
|
}, {
|
|
209
305
|
[x: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/HydratedTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"HydratedTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/HydratedTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAGjC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAGzC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAGvC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAM5C,CAAA;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAM5C,CAAA"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
export declare const StorageMetaZod: z.ZodObject<{
|
|
3
|
-
_hash: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>, z.ZodTransform<string, import("@xylabs/hex").Hash>>;
|
|
4
|
-
_dataHash: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>, z.ZodTransform<string, import("@xylabs/hex").Hash>>;
|
|
5
|
-
_sequence: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
2
|
export declare const SchemaZod: z.ZodString;
|
|
8
3
|
export type Schema = z.infer<typeof SchemaZod>;
|
|
9
4
|
export declare const PayloadZod: z.ZodObject<{
|
|
@@ -11,27 +6,75 @@ export declare const PayloadZod: z.ZodObject<{
|
|
|
11
6
|
}, z.core.$catchall<z.ZodAny>>;
|
|
12
7
|
export declare const PayloadWithStorageMetaZod: z.ZodObject<{
|
|
13
8
|
schema: z.ZodString;
|
|
14
|
-
_hash: z.
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
_hash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
10
|
+
readonly __hex: true;
|
|
11
|
+
}>, {
|
|
12
|
+
readonly __hash: true;
|
|
13
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
14
|
+
readonly __hex: true;
|
|
15
|
+
}>, {
|
|
16
|
+
readonly __hash: true;
|
|
17
|
+
}>, unknown>>;
|
|
18
|
+
_dataHash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
19
|
+
readonly __hex: true;
|
|
20
|
+
}>, {
|
|
21
|
+
readonly __hash: true;
|
|
22
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
23
|
+
readonly __hex: true;
|
|
24
|
+
}>, {
|
|
25
|
+
readonly __hash: true;
|
|
26
|
+
}>, unknown>>;
|
|
27
|
+
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>;
|
|
17
28
|
}, z.core.$catchall<z.ZodAny>>;
|
|
18
29
|
export declare const AnyPayloadZod: z.ZodObject<{
|
|
19
30
|
schema: z.ZodString;
|
|
20
31
|
}, z.core.$catchall<z.ZodJSONSchema>>;
|
|
21
32
|
export declare const AnyPayloadWithStorageMetaZod: z.ZodObject<{
|
|
22
33
|
schema: z.ZodString;
|
|
23
|
-
_hash: z.
|
|
24
|
-
|
|
25
|
-
|
|
34
|
+
_hash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
35
|
+
readonly __hex: true;
|
|
36
|
+
}>, {
|
|
37
|
+
readonly __hash: true;
|
|
38
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
39
|
+
readonly __hex: true;
|
|
40
|
+
}>, {
|
|
41
|
+
readonly __hash: true;
|
|
42
|
+
}>, unknown>>;
|
|
43
|
+
_dataHash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
44
|
+
readonly __hex: true;
|
|
45
|
+
}>, {
|
|
46
|
+
readonly __hash: true;
|
|
47
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
48
|
+
readonly __hex: true;
|
|
49
|
+
}>, {
|
|
50
|
+
readonly __hash: true;
|
|
51
|
+
}>, unknown>>;
|
|
52
|
+
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>;
|
|
26
53
|
}, z.core.$catchall<z.ZodJSONSchema>>;
|
|
27
54
|
export type PayloadZodType = z.infer<typeof PayloadZod>;
|
|
28
55
|
export type PayloadWithStorageMetaZodType = z.infer<typeof PayloadWithStorageMetaZod>;
|
|
29
56
|
export type AnyPayloadZodType = z.infer<typeof AnyPayloadZod>;
|
|
30
57
|
export type AnyPayloadWithStorageMetaZodType = z.infer<typeof AnyPayloadWithStorageMetaZod>;
|
|
31
58
|
export declare function WithStorageMetaZod<T extends typeof PayloadZod>(valueZod: T): z.ZodObject<{
|
|
32
|
-
_hash: z.
|
|
33
|
-
|
|
34
|
-
|
|
59
|
+
_hash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
60
|
+
readonly __hex: true;
|
|
61
|
+
}>, {
|
|
62
|
+
readonly __hash: true;
|
|
63
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
64
|
+
readonly __hex: true;
|
|
65
|
+
}>, {
|
|
66
|
+
readonly __hash: true;
|
|
67
|
+
}>, unknown>>;
|
|
68
|
+
_dataHash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
69
|
+
readonly __hex: true;
|
|
70
|
+
}>, {
|
|
71
|
+
readonly __hash: true;
|
|
72
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
73
|
+
readonly __hex: true;
|
|
74
|
+
}>, {
|
|
75
|
+
readonly __hash: true;
|
|
76
|
+
}>, unknown>>;
|
|
77
|
+
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>;
|
|
35
78
|
schema: z.ZodString;
|
|
36
79
|
}, z.core.$strip>;
|
|
37
80
|
export type WithStorageMetaZodType = z.infer<typeof WithStorageMetaZod>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,SAAS,aAAa,CAAA;AACnC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAE9C,eAAO,MAAM,UAAU;;8BAAoD,CAAA;AAC3E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;8BAA0C,CAAA;AAEhF,eAAO,MAAM,aAAa;;qCAAgC,CAAA;AAC1D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;qCAA6C,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AACvD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAErF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAC7D,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAE3F,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,OAAO,UAAU,EAAE,QAAQ,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;kBAE1E;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sequence.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Sequence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Sequence.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Sequence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAElF,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,wBAAwB,aAAuC,CAAA;AAC5E,eAAO,MAAM,0BAA0B,+DAAgG,CAAA;AAGvI,eAAO,MAAM,4BAA4B,aAA2C,CAAA;AACpF,eAAO,MAAM,8BAA8B,mEAA4G,CAAA;AAEvJ,eAAO,MAAM,mBAAmB,iDAAoE,CAAA;AACpG,eAAO,MAAM,qBAAqB,yJAAwE,CAAA"}
|
|
@@ -33,9 +33,25 @@ export declare const TransactionBoundWitnessZod: z.ZodObject<{
|
|
|
33
33
|
}>, string>>>;
|
|
34
34
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
35
35
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
36
|
-
_hash: z.ZodOptional<z.
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
37
|
+
readonly __hex: true;
|
|
38
|
+
}>, {
|
|
39
|
+
readonly __hash: true;
|
|
40
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
41
|
+
readonly __hex: true;
|
|
42
|
+
}>, {
|
|
43
|
+
readonly __hash: true;
|
|
44
|
+
}>, unknown>>>;
|
|
45
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
46
|
+
readonly __hex: true;
|
|
47
|
+
}>, {
|
|
48
|
+
readonly __hash: true;
|
|
49
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
50
|
+
readonly __hex: true;
|
|
51
|
+
}>, {
|
|
52
|
+
readonly __hash: true;
|
|
53
|
+
}>, unknown>>>;
|
|
54
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
39
55
|
nbf: z.ZodNumber;
|
|
40
56
|
exp: z.ZodNumber;
|
|
41
57
|
fees: z.ZodObject<{
|
|
@@ -61,9 +77,25 @@ export declare const SignedTransactionBoundWitnessZod: z.ZodObject<{
|
|
|
61
77
|
}>, string>>>;
|
|
62
78
|
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>>;
|
|
63
79
|
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>, z.ZodNull]>>;
|
|
64
|
-
_hash: z.ZodOptional<z.
|
|
65
|
-
|
|
66
|
-
|
|
80
|
+
_hash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
81
|
+
readonly __hex: true;
|
|
82
|
+
}>, {
|
|
83
|
+
readonly __hash: true;
|
|
84
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
85
|
+
readonly __hex: true;
|
|
86
|
+
}>, {
|
|
87
|
+
readonly __hash: true;
|
|
88
|
+
}>, unknown>>>;
|
|
89
|
+
_dataHash: z.ZodOptional<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
90
|
+
readonly __hex: true;
|
|
91
|
+
}>, {
|
|
92
|
+
readonly __hash: true;
|
|
93
|
+
}>, unknown, z.core.$ZodTypeInternals<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
94
|
+
readonly __hex: true;
|
|
95
|
+
}>, {
|
|
96
|
+
readonly __hash: true;
|
|
97
|
+
}>, unknown>>>;
|
|
98
|
+
_sequence: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>>;
|
|
67
99
|
nbf: z.ZodNumber;
|
|
68
100
|
exp: z.ZodNumber;
|
|
69
101
|
fees: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransactionBoundWitness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransactionBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAOxB,eAAO,MAAM,aAAa;;iBAAoC,CAAA;AAC9D,eAAO,MAAM,WAAW;;iBAAoC,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;iBAAyD,CAAA;AACtF,eAAO,MAAM,eAAe;;iBAAuD,CAAA;AAEnF,eAAO,MAAM,sBAAsB;;;;;;;iBAA4C,CAAA;AAM/E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUd,CAAA;AAEzB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUV,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const TransferFieldsZod: z.ZodObject<{
|
|
3
3
|
$opCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
-
context: z.ZodOptional<z.
|
|
4
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
5
5
|
epoch: z.ZodNumber;
|
|
6
6
|
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
7
7
|
readonly __address: true;
|
|
@@ -13,7 +13,7 @@ export declare const TransferFieldsZod: z.ZodObject<{
|
|
|
13
13
|
export declare const TransferZod: z.ZodObject<{
|
|
14
14
|
schema: z.ZodLiteral<"network.xyo.transfer">;
|
|
15
15
|
$opCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
-
context: z.ZodOptional<z.
|
|
16
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
17
17
|
epoch: z.ZodNumber;
|
|
18
18
|
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
19
19
|
readonly __address: true;
|
|
@@ -25,7 +25,7 @@ export declare const TransferZod: z.ZodObject<{
|
|
|
25
25
|
export declare const TransferZodWithStorageMeta: z.ZodObject<{
|
|
26
26
|
schema: z.ZodLiteral<"network.xyo.transfer">;
|
|
27
27
|
$opCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
context: z.ZodOptional<z.
|
|
28
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
29
29
|
epoch: z.ZodNumber;
|
|
30
30
|
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
31
31
|
readonly __address: true;
|
|
@@ -33,7 +33,7 @@ export declare const TransferZodWithStorageMeta: z.ZodObject<{
|
|
|
33
33
|
transfers: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
34
34
|
readonly __address: true;
|
|
35
35
|
}>, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>>;
|
|
36
|
-
_hash: z.
|
|
36
|
+
_hash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
37
37
|
readonly __hex: true;
|
|
38
38
|
}>, {
|
|
39
39
|
readonly __hash: true;
|
|
@@ -41,12 +41,8 @@ export declare const TransferZodWithStorageMeta: z.ZodObject<{
|
|
|
41
41
|
readonly __hex: true;
|
|
42
42
|
}>, {
|
|
43
43
|
readonly __hash: true;
|
|
44
|
-
}>, unknown
|
|
45
|
-
|
|
46
|
-
}>, {
|
|
47
|
-
readonly __hash: true;
|
|
48
|
-
}>>>;
|
|
49
|
-
_dataHash: z.ZodPipe<z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
44
|
+
}>, unknown>>;
|
|
45
|
+
_dataHash: z.ZodType<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
50
46
|
readonly __hex: true;
|
|
51
47
|
}>, {
|
|
52
48
|
readonly __hash: true;
|
|
@@ -54,11 +50,7 @@ export declare const TransferZodWithStorageMeta: z.ZodObject<{
|
|
|
54
50
|
readonly __hex: true;
|
|
55
51
|
}>, {
|
|
56
52
|
readonly __hash: true;
|
|
57
|
-
}>, unknown
|
|
58
|
-
|
|
59
|
-
}>, {
|
|
60
|
-
readonly __hash: true;
|
|
61
|
-
}>>>;
|
|
62
|
-
_sequence: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
53
|
+
}>, unknown>>;
|
|
54
|
+
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/payload-model").QualifiedSequence, string>>]>;
|
|
63
55
|
}, z.z.core.$strict>;
|
|
64
56
|
//# sourceMappingURL=Transfer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Transfer.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAA;AAInB,eAAO,MAAM,iBAAiB;;;;;;;;;;mBAM5B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;oBAA2E,CAAA;AACnG,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Transfer.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAA;AAInB,eAAO,MAAM,iBAAiB;;;;;;;;;;mBAM5B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;oBAA2E,CAAA;AACnG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA2C,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-rpc",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.4",
|
|
5
5
|
"description": "XYO Layer One API",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -59,18 +59,15 @@
|
|
|
59
59
|
"@xylabs/assert": "~5.0.22",
|
|
60
60
|
"@xylabs/axios": "~5.0.22",
|
|
61
61
|
"@xylabs/hex": "~5.0.22",
|
|
62
|
-
"@xylabs/promise": "~5.0.22",
|
|
63
62
|
"@xylabs/typeof": "~5.0.22",
|
|
64
|
-
"@xyo-network/
|
|
65
|
-
"@xyo-network/
|
|
66
|
-
"@xyo-network/
|
|
67
|
-
"@xyo-network/
|
|
68
|
-
"@xyo-network/
|
|
69
|
-
"@xyo-network/
|
|
70
|
-
"@xyo-network/payload-builder": "~5.1.18",
|
|
71
|
-
"@xyo-network/payload-model": "~5.1.18",
|
|
63
|
+
"@xyo-network/archivist-model": "~5.1.19",
|
|
64
|
+
"@xyo-network/boundwitness-model": "~5.1.19",
|
|
65
|
+
"@xyo-network/module-model": "~5.1.19",
|
|
66
|
+
"@xyo-network/node-model": "~5.1.19",
|
|
67
|
+
"@xyo-network/payload-builder": "~5.1.19",
|
|
68
|
+
"@xyo-network/payload-model": "~5.1.19",
|
|
72
69
|
"@xyo-network/xl1-protocol": "~1.13.1",
|
|
73
|
-
"@xyo-network/xl1-protocol-sdk": "~1.16.
|
|
70
|
+
"@xyo-network/xl1-protocol-sdk": "~1.16.4",
|
|
74
71
|
"axios": "~1.13.2",
|
|
75
72
|
"uuid": "~13.0.0",
|
|
76
73
|
"zod": "~4.1.12"
|
|
@@ -83,9 +80,10 @@
|
|
|
83
80
|
"@xylabs/ts-scripts-yarn3": "~7.2.8",
|
|
84
81
|
"@xylabs/tsconfig": "~7.2.8",
|
|
85
82
|
"@xylabs/vitest-extended": "~5.0.22",
|
|
86
|
-
"@xyo-network/account": "~5.1.
|
|
87
|
-
"@xyo-network/
|
|
88
|
-
"@xyo-network/
|
|
83
|
+
"@xyo-network/account": "~5.1.19",
|
|
84
|
+
"@xyo-network/account-model": "~5.1.19",
|
|
85
|
+
"@xyo-network/chain-protocol": "~1.16.4",
|
|
86
|
+
"@xyo-network/wallet": "~5.1.19",
|
|
89
87
|
"dotenv": "~17.2.3",
|
|
90
88
|
"eslint": "^9.39.1",
|
|
91
89
|
"typescript": "~5.9.3",
|
|
@@ -58,7 +58,7 @@ describe('Client', () => {
|
|
|
58
58
|
expect(gateway).toBeDefined()
|
|
59
59
|
})
|
|
60
60
|
it('should allow retrieving the chain ID', async () => {
|
|
61
|
-
const chainId = await (await client.gateways['localhost' as GatewayName]?.connection)?.viewer?.chainId()
|
|
61
|
+
const chainId = await (await client.gateways['localhost' as GatewayName]?.connection())?.viewer?.chainId()
|
|
62
62
|
expect(chainId).toBeDefined()
|
|
63
63
|
})
|
|
64
64
|
})
|
|
@@ -52,7 +52,7 @@ describe('MemoryXyoGateway', () => {
|
|
|
52
52
|
const additionalPayloads: Payload[] = []
|
|
53
53
|
const chainId = await connection.viewer?.chainId()
|
|
54
54
|
const nbf = await connection.viewer?.currentBlockNumber() ?? 0
|
|
55
|
-
const signer = sut.signer
|
|
55
|
+
const signer = await sut.signer()
|
|
56
56
|
const signerAddress = await signer.address()
|
|
57
57
|
expect(chainId).toBeDefined()
|
|
58
58
|
if (chainId) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HashZod } from '@xylabs/hex'
|
|
2
|
+
import { StorageMetaZod } from '@xyo-network/payload-model'
|
|
2
3
|
import { asXL1BlockNumber } from '@xyo-network/xl1-protocol'
|
|
3
4
|
import * as z from 'zod'
|
|
4
5
|
|
|
@@ -7,7 +8,6 @@ import {
|
|
|
7
8
|
UnsignedBoundWitnessZod,
|
|
8
9
|
} from './BoundWitness.ts'
|
|
9
10
|
import { ChainZod } from './Chain.ts'
|
|
10
|
-
import { StorageMetaZod } from './Payload.ts'
|
|
11
11
|
|
|
12
12
|
export const BlockNumberZod = z.number().int().nonnegative()
|
|
13
13
|
export const XL1BlockNumberZod = BlockNumberZod.transform(asXL1BlockNumber)
|
|
@@ -42,6 +42,7 @@ export const SignedBlockBoundWitnessZod = SignedBoundWitnessZod
|
|
|
42
42
|
.merge(BlockBoundWitnessFieldsZod)
|
|
43
43
|
// eslint-disable-next-line sonarjs/deprecation
|
|
44
44
|
.merge(BlockBoundWitnessMetaZod)
|
|
45
|
+
|
|
45
46
|
export const SignedBlockBoundWitnessWithStorageMetaZod = SignedBoundWitnessWithStorageMetaZod
|
|
46
47
|
// eslint-disable-next-line sonarjs/deprecation
|
|
47
48
|
.merge(StorageMetaZod.partial())
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { HashZod, HexZod } from '@xylabs/hex'
|
|
2
2
|
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import { StorageMetaZod } from '@xyo-network/payload-model'
|
|
3
4
|
import * as z from 'zod'
|
|
4
5
|
|
|
5
6
|
import { AddressZod } from './Address.ts'
|
|
6
|
-
import {
|
|
7
|
-
PayloadZod, SchemaZod, StorageMetaZod,
|
|
8
|
-
} from './Payload.ts'
|
|
7
|
+
import { PayloadZod, SchemaZod } from './Payload.ts'
|
|
9
8
|
|
|
10
9
|
const BoundWitnessRequiredFieldsZod = z.object({
|
|
11
10
|
addresses: z.array(AddressZod),
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StorageMetaZod } from '@xyo-network/payload-model'
|
|
2
2
|
import * as z from 'zod'
|
|
3
3
|
|
|
4
|
-
import { SequenceToStringZod } from './Sequence.ts'
|
|
5
|
-
|
|
6
|
-
export const StorageMetaZod = z.object({
|
|
7
|
-
_hash: HashToJsonZod,
|
|
8
|
-
_dataHash: HashToJsonZod,
|
|
9
|
-
_sequence: SequenceToStringZod,
|
|
10
|
-
})
|
|
11
|
-
|
|
12
4
|
export const SchemaZod = z.string()
|
|
13
5
|
export type Schema = z.infer<typeof SchemaZod>
|
|
14
6
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { HexRegExMinMax, toHex } from '@xylabs/hex'
|
|
2
|
-
import type {
|
|
3
|
-
LocalSequence,
|
|
4
|
-
QualifiedSequence,
|
|
5
|
-
} from '@xyo-network/payload-model'
|
|
2
|
+
import type { LocalSequence, QualifiedSequence } from '@xyo-network/payload-model'
|
|
6
3
|
import { SequenceConstants } from '@xyo-network/payload-model'
|
|
7
4
|
import * as z from 'zod'
|
|
8
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { StorageMetaZod } from '@xyo-network/payload-model'
|
|
1
2
|
import * as z from 'zod'
|
|
2
3
|
|
|
3
4
|
import { BlockNumberZod } from './BlockBoundWitness.ts'
|
|
4
5
|
import { SignedBoundWitnessZod, UnsignedBoundWitnessZod } from './BoundWitness.ts'
|
|
5
6
|
import { ChainZod } from './Chain.ts'
|
|
6
|
-
import { StorageMetaZod } from './Payload.ts'
|
|
7
7
|
import { TransactionFeesHexZod } from './TransactionFees.ts'
|
|
8
8
|
|
|
9
9
|
export const BlockStartZod = z.object({ nbf: BlockNumberZod })
|
|
@@ -7,7 +7,7 @@ import { AddressZod } from './Address.ts'
|
|
|
7
7
|
|
|
8
8
|
export const TransferFieldsZod = z.object({
|
|
9
9
|
$opCodes: z.array(z.string()).optional(),
|
|
10
|
-
context: z.
|
|
10
|
+
context: z.record(z.string(), z.json()).optional(),
|
|
11
11
|
epoch: z.number(),
|
|
12
12
|
from: AddressZod,
|
|
13
13
|
transfers: z.record(AddressZod, HexZod),
|