@xyo-network/xl1-protocol 1.25.17 → 1.25.19
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 +2 -2
- package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +4 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/model/HydratedTransaction.d.ts +24 -4
- package/dist/neutral/model/HydratedTransaction.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/block/AllowedBlockPayload.ts +2 -2
- package/src/model/HydratedTransaction.ts +4 -4
|
@@ -266,7 +266,7 @@ export declare const HydratedTransactionWithHashMetaZod: z.ZodTuple<[z.ZodObject
|
|
|
266
266
|
schema: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>;
|
|
267
267
|
_hash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
268
268
|
_dataHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
269
|
-
}, z.core.$
|
|
269
|
+
}, z.core.$loose>>], null>;
|
|
270
270
|
export type HydratedTransactionWithHashMeta = z.infer<typeof HydratedTransactionWithHashMetaZod>;
|
|
271
271
|
export declare const isHydratedTransactionWithHashMeta: <T>(value: T) => value is T & [{
|
|
272
272
|
schema: "network.xyo.boundwitness" & {
|
|
@@ -305,6 +305,7 @@ export declare const isHydratedTransactionWithHashMeta: <T>(value: T) => value i
|
|
|
305
305
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
306
306
|
script?: string[] | undefined;
|
|
307
307
|
}, {
|
|
308
|
+
[x: string]: unknown;
|
|
308
309
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
309
310
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
310
311
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -347,6 +348,7 @@ export declare const asHydratedTransactionWithHashMeta: {
|
|
|
347
348
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
348
349
|
script?: string[] | undefined;
|
|
349
350
|
}, {
|
|
351
|
+
[x: string]: unknown;
|
|
350
352
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
351
353
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
352
354
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -388,6 +390,7 @@ export declare const asHydratedTransactionWithHashMeta: {
|
|
|
388
390
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
389
391
|
script?: string[] | undefined;
|
|
390
392
|
}, {
|
|
393
|
+
[x: string]: unknown;
|
|
391
394
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
392
395
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
393
396
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -431,6 +434,7 @@ export declare const toHydratedTransactionWithHashMeta: {
|
|
|
431
434
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
432
435
|
script?: string[] | undefined;
|
|
433
436
|
}, {
|
|
437
|
+
[x: string]: unknown;
|
|
434
438
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
435
439
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
436
440
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -472,6 +476,7 @@ export declare const toHydratedTransactionWithHashMeta: {
|
|
|
472
476
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
473
477
|
script?: string[] | undefined;
|
|
474
478
|
}, {
|
|
479
|
+
[x: string]: unknown;
|
|
475
480
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
476
481
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
477
482
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -519,7 +524,7 @@ export declare const HydratedTransactionWithStorageMetaZod: z.ZodTuple<[z.ZodObj
|
|
|
519
524
|
_hash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
520
525
|
_dataHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
521
526
|
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").QualifiedSequence, string>>]>;
|
|
522
|
-
}, z.core.$
|
|
527
|
+
}, z.core.$loose>>], null>;
|
|
523
528
|
export type HydratedTransactionWithStorageMeta = z.infer<typeof HydratedTransactionWithStorageMetaZod>;
|
|
524
529
|
export declare const isHydratedTransactionWithStorageMeta: <T>(value: T) => value is T & [{
|
|
525
530
|
schema: "network.xyo.boundwitness" & {
|
|
@@ -559,6 +564,7 @@ export declare const isHydratedTransactionWithStorageMeta: <T>(value: T) => valu
|
|
|
559
564
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
560
565
|
script?: string[] | undefined;
|
|
561
566
|
}, {
|
|
567
|
+
[x: string]: unknown;
|
|
562
568
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
563
569
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
564
570
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -603,6 +609,7 @@ export declare const asHydratedTransactionWithStorageMeta: {
|
|
|
603
609
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
604
610
|
script?: string[] | undefined;
|
|
605
611
|
}, {
|
|
612
|
+
[x: string]: unknown;
|
|
606
613
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
607
614
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
608
615
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -646,6 +653,7 @@ export declare const asHydratedTransactionWithStorageMeta: {
|
|
|
646
653
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
647
654
|
script?: string[] | undefined;
|
|
648
655
|
}, {
|
|
656
|
+
[x: string]: unknown;
|
|
649
657
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
650
658
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
651
659
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -691,6 +699,7 @@ export declare const toHydratedTransactionWithStorageMeta: {
|
|
|
691
699
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
692
700
|
script?: string[] | undefined;
|
|
693
701
|
}, {
|
|
702
|
+
[x: string]: unknown;
|
|
694
703
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
695
704
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
696
705
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -734,6 +743,7 @@ export declare const toHydratedTransactionWithStorageMeta: {
|
|
|
734
743
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
735
744
|
script?: string[] | undefined;
|
|
736
745
|
}, {
|
|
746
|
+
[x: string]: unknown;
|
|
737
747
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
738
748
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
739
749
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1007,7 +1017,7 @@ export declare const UnsignedHydratedTransactionWithHashMetaZod: z.ZodTuple<[z.Z
|
|
|
1007
1017
|
schema: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>;
|
|
1008
1018
|
_hash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
1009
1019
|
_dataHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
1010
|
-
}, z.core.$
|
|
1020
|
+
}, z.core.$loose>>], null>;
|
|
1011
1021
|
export type UnsignedHydratedTransactionWithHashMeta = z.infer<typeof UnsignedHydratedTransactionWithHashMetaZod>;
|
|
1012
1022
|
export declare const isUnsignedHydratedTransactionWithHashMeta: <T>(value: T) => value is T & [{
|
|
1013
1023
|
schema: "network.xyo.boundwitness" & {
|
|
@@ -1046,6 +1056,7 @@ export declare const isUnsignedHydratedTransactionWithHashMeta: <T>(value: T) =>
|
|
|
1046
1056
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1047
1057
|
script?: string[] | undefined;
|
|
1048
1058
|
}, {
|
|
1059
|
+
[x: string]: unknown;
|
|
1049
1060
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1050
1061
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1051
1062
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1088,6 +1099,7 @@ export declare const asUnsignedHydratedTransactionWithHashMeta: {
|
|
|
1088
1099
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1089
1100
|
script?: string[] | undefined;
|
|
1090
1101
|
}, {
|
|
1102
|
+
[x: string]: unknown;
|
|
1091
1103
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1092
1104
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1093
1105
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1129,6 +1141,7 @@ export declare const asUnsignedHydratedTransactionWithHashMeta: {
|
|
|
1129
1141
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1130
1142
|
script?: string[] | undefined;
|
|
1131
1143
|
}, {
|
|
1144
|
+
[x: string]: unknown;
|
|
1132
1145
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1133
1146
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1134
1147
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1172,6 +1185,7 @@ export declare const toUnsignedHydratedTransactionWithHashMeta: {
|
|
|
1172
1185
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1173
1186
|
script?: string[] | undefined;
|
|
1174
1187
|
}, {
|
|
1188
|
+
[x: string]: unknown;
|
|
1175
1189
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1176
1190
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1177
1191
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1213,6 +1227,7 @@ export declare const toUnsignedHydratedTransactionWithHashMeta: {
|
|
|
1213
1227
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1214
1228
|
script?: string[] | undefined;
|
|
1215
1229
|
}, {
|
|
1230
|
+
[x: string]: unknown;
|
|
1216
1231
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1217
1232
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1218
1233
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1260,7 +1275,7 @@ export declare const UnsignedHydratedTransactionWithStorageMetaZod: z.ZodTuple<[
|
|
|
1260
1275
|
_hash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
1261
1276
|
_dataHash: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
1262
1277
|
_sequence: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xyo-network/sdk-js").QualifiedSequence, string>>]>;
|
|
1263
|
-
}, z.core.$
|
|
1278
|
+
}, z.core.$loose>>], null>;
|
|
1264
1279
|
export type UnsignedHydratedTransactionWithStorageMeta = z.infer<typeof UnsignedHydratedTransactionWithStorageMetaZod>;
|
|
1265
1280
|
export declare const isUnsignedHydratedTransactionWithStorageMeta: <T>(value: T) => value is T & [{
|
|
1266
1281
|
schema: "network.xyo.boundwitness" & {
|
|
@@ -1300,6 +1315,7 @@ export declare const isUnsignedHydratedTransactionWithStorageMeta: <T>(value: T)
|
|
|
1300
1315
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1301
1316
|
script?: string[] | undefined;
|
|
1302
1317
|
}, {
|
|
1318
|
+
[x: string]: unknown;
|
|
1303
1319
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1304
1320
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1305
1321
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1344,6 +1360,7 @@ export declare const asUnsignedHydratedTransactionWithStorageMeta: {
|
|
|
1344
1360
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1345
1361
|
script?: string[] | undefined;
|
|
1346
1362
|
}, {
|
|
1363
|
+
[x: string]: unknown;
|
|
1347
1364
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1348
1365
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1349
1366
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1387,6 +1404,7 @@ export declare const asUnsignedHydratedTransactionWithStorageMeta: {
|
|
|
1387
1404
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1388
1405
|
script?: string[] | undefined;
|
|
1389
1406
|
}, {
|
|
1407
|
+
[x: string]: unknown;
|
|
1390
1408
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1391
1409
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1392
1410
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1432,6 +1450,7 @@ export declare const toUnsignedHydratedTransactionWithStorageMeta: {
|
|
|
1432
1450
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1433
1451
|
script?: string[] | undefined;
|
|
1434
1452
|
}, {
|
|
1453
|
+
[x: string]: unknown;
|
|
1435
1454
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1436
1455
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1437
1456
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1475,6 +1494,7 @@ export declare const toUnsignedHydratedTransactionWithStorageMeta: {
|
|
|
1475
1494
|
$sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
|
|
1476
1495
|
script?: string[] | undefined;
|
|
1477
1496
|
}, {
|
|
1497
|
+
[x: string]: unknown;
|
|
1478
1498
|
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
1479
1499
|
_hash: import("@xylabs/sdk-js").BrandedHash;
|
|
1480
1500
|
_dataHash: import("@xylabs/sdk-js").BrandedHash;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedTransaction.d.ts","sourceRoot":"","sources":["../../../src/model/HydratedTransaction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAuC,CAAA;AACzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AElH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA4D,CAAA;AACnH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGtD,CAAA;AACD,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGtD,CAAA"}
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export const AllowedBlockPayloadSchemaZod = z.enum(AllowedBlockPayloadSchemas)
|
|
|
49
49
|
export type AllowedBlockPayloadSchema = z.infer<typeof AllowedBlockPayloadSchemaZod>
|
|
50
50
|
export const isAllowedBlockPayloadSchema = zodIsFactory(AllowedBlockPayloadSchemaZod)
|
|
51
51
|
|
|
52
|
-
export const isAllowedBlockPayload = (value:
|
|
52
|
+
export const isAllowedBlockPayload = <T>(value: T): value is AllowedBlockPayload & T => {
|
|
53
53
|
return isTransfer(value)
|
|
54
54
|
|| isBridgeDestinationObservation(value)
|
|
55
55
|
|| isBridgeIntent(value)
|
|
@@ -61,6 +61,6 @@ export const isAllowedBlockPayload = (value: unknown): value is AllowedBlockPayl
|
|
|
61
61
|
|| isTransactionBoundWitness(value)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export const isAllowedBlockPayloadWithHashMeta = (value:
|
|
64
|
+
export const isAllowedBlockPayloadWithHashMeta = <T>(value: T): value is WithStorageMeta<AllowedBlockPayload & T> => {
|
|
65
65
|
return isAllowedBlockPayload(value) && isHashMeta(value)
|
|
66
66
|
}
|
|
@@ -25,7 +25,7 @@ export const toHydratedTransaction = zodToFactory(HydratedTransactionZod, 'toHyd
|
|
|
25
25
|
|
|
26
26
|
export const HydratedTransactionWithHashMetaZod = z.tuple([
|
|
27
27
|
WithHashMetaZod(TransactionBoundWitnessZod),
|
|
28
|
-
z.array(WithHashMetaZod(
|
|
28
|
+
z.array(WithHashMetaZod(PayloadZod).loose()),
|
|
29
29
|
])
|
|
30
30
|
|
|
31
31
|
export type HydratedTransactionWithHashMeta = z.infer<typeof HydratedTransactionWithHashMetaZod>
|
|
@@ -36,7 +36,7 @@ export const toHydratedTransactionWithHashMeta = zodToFactory(HydratedTransactio
|
|
|
36
36
|
|
|
37
37
|
export const HydratedTransactionWithStorageMetaZod = z.tuple([
|
|
38
38
|
WithStorageMetaZod(TransactionBoundWitnessZod),
|
|
39
|
-
z.array(WithStorageMetaZod(
|
|
39
|
+
z.array(WithStorageMetaZod(PayloadZod).loose()),
|
|
40
40
|
])
|
|
41
41
|
|
|
42
42
|
export type HydratedTransactionWithStorageMeta = z.infer<typeof HydratedTransactionWithStorageMetaZod>
|
|
@@ -58,7 +58,7 @@ export const toUnsignedHydratedTransaction = zodToFactory(UnsignedHydratedTransa
|
|
|
58
58
|
|
|
59
59
|
export const UnsignedHydratedTransactionWithHashMetaZod = z.tuple([
|
|
60
60
|
WithHashMetaZod(UnsignedTransactionBoundWitnessZod),
|
|
61
|
-
z.array(WithHashMetaZod(
|
|
61
|
+
z.array(WithHashMetaZod(PayloadZod).loose()),
|
|
62
62
|
])
|
|
63
63
|
|
|
64
64
|
export type UnsignedHydratedTransactionWithHashMeta = z.infer<typeof UnsignedHydratedTransactionWithHashMetaZod>
|
|
@@ -69,7 +69,7 @@ export const toUnsignedHydratedTransactionWithHashMeta = zodToFactory(UnsignedHy
|
|
|
69
69
|
|
|
70
70
|
export const UnsignedHydratedTransactionWithStorageMetaZod = z.tuple([
|
|
71
71
|
WithStorageMetaZod(UnsignedTransactionBoundWitnessZod),
|
|
72
|
-
z.array(WithStorageMetaZod(
|
|
72
|
+
z.array(WithStorageMetaZod(PayloadZod).loose()),
|
|
73
73
|
])
|
|
74
74
|
|
|
75
75
|
export type UnsignedHydratedTransactionWithStorageMeta = z.infer<typeof UnsignedHydratedTransactionWithStorageMetaZod>
|