@xyo-network/xl1-protocol 1.14.2 → 1.14.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
CHANGED
|
@@ -835,6 +835,7 @@ import {
|
|
|
835
835
|
zodIsFactory as zodIsFactory5,
|
|
836
836
|
zodToFactory as zodToFactory11
|
|
837
837
|
} from "@xylabs/zod";
|
|
838
|
+
import { HashMetaZod as HashMetaZod2, StorageMetaZod as StorageMetaZod3 } from "@xyo-network/payload-model";
|
|
838
839
|
import * as z21 from "zod";
|
|
839
840
|
|
|
840
841
|
// src/zod/TransactionFees.ts
|
|
@@ -889,19 +890,68 @@ var BlockEndZod = z21.object({ exp: BlockNumberZod });
|
|
|
889
890
|
var BlockDurationZod = z21.object({ nbf: BlockNumberZod, exp: BlockNumberZod });
|
|
890
891
|
var BlockScriptsZod = z21.object({ script: z21.array(z21.string()).optional() });
|
|
891
892
|
var TransactionFeesZod = z21.object({ fees: TransactionFeesHexZod });
|
|
892
|
-
var
|
|
893
|
-
var
|
|
893
|
+
var TransactionBoundWitnessIdentityFields = z21.object({ chain: ChainZod, from: AddressZod3 });
|
|
894
|
+
var TransactionBoundWitnessFieldsZod = z21.object().extend(BlockDurationZod.shape).extend(TransactionFeesZod.shape).extend(TransactionBoundWitnessIdentityFields.shape).extend(BlockScriptsZod.shape);
|
|
895
|
+
var TransactionBoundWitnessZod = BoundWitnessZod.extend(TransactionBoundWitnessFieldsZod.shape);
|
|
894
896
|
var isTransactionBoundWitness = zodIsFactory5(TransactionBoundWitnessZod);
|
|
895
897
|
var asTransactionBoundWitness = zodAsFactory11(TransactionBoundWitnessZod, "asTransactionBoundWitness");
|
|
896
898
|
var toTransactionBoundWitness = zodToFactory11(TransactionBoundWitnessZod, "toTransactionBoundWitness");
|
|
897
|
-
var
|
|
899
|
+
var TransactionBoundWitnessWithHashMetaZod = TransactionBoundWitnessZod.extend(HashMetaZod2.shape);
|
|
900
|
+
var isTransactionBoundWitnessWithHashMeta = zodIsFactory5(TransactionBoundWitnessWithHashMetaZod);
|
|
901
|
+
var asTransactionBoundWitnessWithHashMeta = zodAsFactory11(TransactionBoundWitnessWithHashMetaZod, "asTransactionBoundWitnessWithHashMeta");
|
|
902
|
+
var toTransactionBoundWitnessWithHashMeta = zodToFactory11(TransactionBoundWitnessWithHashMetaZod, "toTransactionBoundWitnessWithHashMeta");
|
|
903
|
+
var TransactionBoundWitnessWithStorageMetaZod = TransactionBoundWitnessZod.extend(StorageMetaZod3.shape);
|
|
904
|
+
var isTransactionBoundWitnessWithStorageMeta = zodIsFactory5(TransactionBoundWitnessWithStorageMetaZod);
|
|
905
|
+
var asTransactionBoundWitnessWithStorageMeta = zodAsFactory11(TransactionBoundWitnessWithStorageMetaZod, "asTransactionBoundWitnessWithStorageMeta");
|
|
906
|
+
var toTransactionBoundWitnessWithStorageMeta = zodToFactory11(TransactionBoundWitnessWithStorageMetaZod, "toTransactionBoundWitnessWithStorageMeta");
|
|
907
|
+
var UnsignedTransactionBoundWitnessZod = UnsignedBoundWitnessZod.extend(TransactionBoundWitnessFieldsZod.shape);
|
|
898
908
|
var isUnsignedTransactionBoundWitness = zodIsFactory5(UnsignedTransactionBoundWitnessZod);
|
|
899
909
|
var asUnsignedTransactionBoundWitness = zodAsFactory11(UnsignedTransactionBoundWitnessZod, "asUnsignedTransactionBoundWitness");
|
|
900
910
|
var toUnsignedTransactionBoundWitness = zodToFactory11(UnsignedTransactionBoundWitnessZod, "toUnsignedTransactionBoundWitness");
|
|
901
|
-
var
|
|
911
|
+
var UnsignedTransactionBoundWitnessWithHashMetaZod = UnsignedTransactionBoundWitnessZod.extend(HashMetaZod2.shape);
|
|
912
|
+
var isUnsignedTransactionBoundWitnessWithHashMeta = zodIsFactory5(UnsignedTransactionBoundWitnessWithHashMetaZod);
|
|
913
|
+
var asUnsignedTransactionBoundWitnessWithHashMeta = zodAsFactory11(
|
|
914
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
915
|
+
"asUnsignedTransactionBoundWitnessWithHashMeta"
|
|
916
|
+
);
|
|
917
|
+
var toUnsignedTransactionBoundWitnessWithHashMeta = zodToFactory11(
|
|
918
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
919
|
+
"toUnsignedTransactionBoundWitnessWithHashMeta"
|
|
920
|
+
);
|
|
921
|
+
var UnsignedTransactionBoundWitnessWithStorageMetaZod = UnsignedTransactionBoundWitnessZod.extend(StorageMetaZod3.shape);
|
|
922
|
+
var isUnsignedTransactionBoundWitnessWithStorageMeta = zodIsFactory5(UnsignedTransactionBoundWitnessWithStorageMetaZod);
|
|
923
|
+
var asUnsignedTransactionBoundWitnessWithStorageMeta = zodAsFactory11(
|
|
924
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
925
|
+
"asUnsignedTransactionBoundWitnessWithStorageMeta"
|
|
926
|
+
);
|
|
927
|
+
var toUnsignedTransactionBoundWitnessWithStorageMeta = zodToFactory11(
|
|
928
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
929
|
+
"toUnsignedTransactionBoundWitnessWithStorageMeta"
|
|
930
|
+
);
|
|
931
|
+
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.extend(TransactionBoundWitnessFieldsZod.shape);
|
|
902
932
|
var isSignedTransactionBoundWitness = zodIsFactory5(SignedTransactionBoundWitnessZod);
|
|
903
933
|
var asSignedTransactionBoundWitness = zodAsFactory11(SignedTransactionBoundWitnessZod, "asSignedTransactionBoundWitness");
|
|
904
934
|
var toSignedTransactionBoundWitness = zodToFactory11(SignedTransactionBoundWitnessZod, "toSignedTransactionBoundWitness");
|
|
935
|
+
var SignedTransactionBoundWitnessWithHashMetaZod = SignedTransactionBoundWitnessZod.extend(HashMetaZod2.shape);
|
|
936
|
+
var isSignedTransactionBoundWitnessWithHashMeta = zodIsFactory5(SignedTransactionBoundWitnessWithHashMetaZod);
|
|
937
|
+
var asSignedTransactionBoundWitnessWithHashMeta = zodAsFactory11(
|
|
938
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
939
|
+
"asSignedTransactionBoundWitnessWithHashMeta"
|
|
940
|
+
);
|
|
941
|
+
var toSignedTransactionBoundWitnessWithHashMeta = zodToFactory11(
|
|
942
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
943
|
+
"toSignedTransactionBoundWitnessWithHashMeta"
|
|
944
|
+
);
|
|
945
|
+
var SignedTransactionBoundWitnessWithStorageMetaZod = SignedTransactionBoundWitnessZod.extend(StorageMetaZod3.shape);
|
|
946
|
+
var isSignedTransactionBoundWitnessWithStorageMeta = zodIsFactory5(SignedTransactionBoundWitnessWithStorageMetaZod);
|
|
947
|
+
var asSignedTransactionBoundWitnessWithStorageMeta = zodAsFactory11(
|
|
948
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
949
|
+
"asSignedTransactionBoundWitnessWithStorageMeta"
|
|
950
|
+
);
|
|
951
|
+
var toSignedTransactionBoundWitnessWithStorageMeta = zodToFactory11(
|
|
952
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
953
|
+
"toSignedTransactionBoundWitnessWithStorageMeta"
|
|
954
|
+
);
|
|
905
955
|
|
|
906
956
|
// src/zod/HydratedTransaction.ts
|
|
907
957
|
var HydratedTransactionZod = z22.tuple([
|
|
@@ -1384,6 +1434,8 @@ export {
|
|
|
1384
1434
|
SignedHydratedTransactionWithHashMetaZod,
|
|
1385
1435
|
SignedHydratedTransactionWithStorageMetaZod,
|
|
1386
1436
|
SignedHydratedTransactionZod,
|
|
1437
|
+
SignedTransactionBoundWitnessWithHashMetaZod,
|
|
1438
|
+
SignedTransactionBoundWitnessWithStorageMetaZod,
|
|
1387
1439
|
SignedTransactionBoundWitnessZod,
|
|
1388
1440
|
SignedZod,
|
|
1389
1441
|
StakeToJsonZod,
|
|
@@ -1397,6 +1449,10 @@ export {
|
|
|
1397
1449
|
TimeFieldsZod,
|
|
1398
1450
|
TimePayloadZod,
|
|
1399
1451
|
TimeSchema,
|
|
1452
|
+
TransactionBoundWitnessFieldsZod,
|
|
1453
|
+
TransactionBoundWitnessIdentityFields,
|
|
1454
|
+
TransactionBoundWitnessWithHashMetaZod,
|
|
1455
|
+
TransactionBoundWitnessWithStorageMetaZod,
|
|
1400
1456
|
TransactionBoundWitnessZod,
|
|
1401
1457
|
TransactionFeesBigIntToJsonZod,
|
|
1402
1458
|
TransactionFeesBigIntZod,
|
|
@@ -1416,6 +1472,8 @@ export {
|
|
|
1416
1472
|
UnsignedHydratedTransactionWithHashMetaZod,
|
|
1417
1473
|
UnsignedHydratedTransactionWithStorageMetaZod,
|
|
1418
1474
|
UnsignedHydratedTransactionZod,
|
|
1475
|
+
UnsignedTransactionBoundWitnessWithHashMetaZod,
|
|
1476
|
+
UnsignedTransactionBoundWitnessWithStorageMetaZod,
|
|
1419
1477
|
UnsignedTransactionBoundWitnessZod,
|
|
1420
1478
|
UnsignedZod,
|
|
1421
1479
|
ValidationError,
|
|
@@ -1480,12 +1538,16 @@ export {
|
|
|
1480
1538
|
asSignedHydratedTransactionWithHashMeta,
|
|
1481
1539
|
asSignedHydratedTransactionWithStorageMeta,
|
|
1482
1540
|
asSignedTransactionBoundWitness,
|
|
1541
|
+
asSignedTransactionBoundWitnessWithHashMeta,
|
|
1542
|
+
asSignedTransactionBoundWitnessWithStorageMeta,
|
|
1483
1543
|
asStepComplete,
|
|
1484
1544
|
asStepIdentity,
|
|
1485
1545
|
asStepIdentityPayload,
|
|
1486
1546
|
asTimePayload,
|
|
1487
1547
|
asTimePayloadWithStorageMeta,
|
|
1488
1548
|
asTransactionBoundWitness,
|
|
1549
|
+
asTransactionBoundWitnessWithHashMeta,
|
|
1550
|
+
asTransactionBoundWitnessWithStorageMeta,
|
|
1489
1551
|
asTransactionFeesBigInt,
|
|
1490
1552
|
asTransactionFeesHex,
|
|
1491
1553
|
asTransfer,
|
|
@@ -1496,6 +1558,8 @@ export {
|
|
|
1496
1558
|
asUnsignedHydratedTransactionWithHashMeta,
|
|
1497
1559
|
asUnsignedHydratedTransactionWithStorageMeta,
|
|
1498
1560
|
asUnsignedTransactionBoundWitness,
|
|
1561
|
+
asUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1562
|
+
asUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1499
1563
|
asValidStep,
|
|
1500
1564
|
asXL1,
|
|
1501
1565
|
asXL1BlockNumber,
|
|
@@ -1550,10 +1614,14 @@ export {
|
|
|
1550
1614
|
isSignedHydratedTransactionWithHashMeta,
|
|
1551
1615
|
isSignedHydratedTransactionWithStorageMeta,
|
|
1552
1616
|
isSignedTransactionBoundWitness,
|
|
1617
|
+
isSignedTransactionBoundWitnessWithHashMeta,
|
|
1618
|
+
isSignedTransactionBoundWitnessWithStorageMeta,
|
|
1553
1619
|
isStepComplete,
|
|
1554
1620
|
isStepIdentityPayload,
|
|
1555
1621
|
isTimePayload,
|
|
1556
1622
|
isTransactionBoundWitness,
|
|
1623
|
+
isTransactionBoundWitnessWithHashMeta,
|
|
1624
|
+
isTransactionBoundWitnessWithStorageMeta,
|
|
1557
1625
|
isTransactionFeesBigInt,
|
|
1558
1626
|
isTransactionFeesHex,
|
|
1559
1627
|
isTransfer,
|
|
@@ -1564,6 +1632,8 @@ export {
|
|
|
1564
1632
|
isUnsignedHydratedTransactionWithHashMeta,
|
|
1565
1633
|
isUnsignedHydratedTransactionWithStorageMeta,
|
|
1566
1634
|
isUnsignedTransactionBoundWitness,
|
|
1635
|
+
isUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1636
|
+
isUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1567
1637
|
isValidStep,
|
|
1568
1638
|
isValidationError,
|
|
1569
1639
|
isXL1,
|
|
@@ -1603,7 +1673,11 @@ export {
|
|
|
1603
1673
|
toSignedHydratedTransactionWithHashMeta,
|
|
1604
1674
|
toSignedHydratedTransactionWithStorageMeta,
|
|
1605
1675
|
toSignedTransactionBoundWitness,
|
|
1676
|
+
toSignedTransactionBoundWitnessWithHashMeta,
|
|
1677
|
+
toSignedTransactionBoundWitnessWithStorageMeta,
|
|
1606
1678
|
toTransactionBoundWitness,
|
|
1679
|
+
toTransactionBoundWitnessWithHashMeta,
|
|
1680
|
+
toTransactionBoundWitnessWithStorageMeta,
|
|
1607
1681
|
toTransactionFeesBigInt,
|
|
1608
1682
|
toTransactionFeesHex,
|
|
1609
1683
|
toUnsignedBlockBoundWitness,
|
|
@@ -1613,6 +1687,8 @@ export {
|
|
|
1613
1687
|
toUnsignedHydratedTransactionWithHashMeta,
|
|
1614
1688
|
toUnsignedHydratedTransactionWithStorageMeta,
|
|
1615
1689
|
toUnsignedTransactionBoundWitness,
|
|
1690
|
+
toUnsignedTransactionBoundWitnessWithHashMeta,
|
|
1691
|
+
toUnsignedTransactionBoundWitnessWithStorageMeta,
|
|
1616
1692
|
toXL1,
|
|
1617
1693
|
toXL1BlockNumber,
|
|
1618
1694
|
toXL1BlockNumberKey,
|