@xyo-network/xl1-protocol 5.0.2 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/neutral/modules/network-model/staticRest/layout/index.d.ts +2 -0
  2. package/dist/neutral/modules/network-model/staticRest/layout/index.d.ts.map +1 -1
  3. package/dist/neutral/modules/network-model/staticRest/layout/networkStakeRewardsIndex.d.ts +191 -0
  4. package/dist/neutral/modules/network-model/staticRest/layout/networkStakeRewardsIndex.d.ts.map +1 -0
  5. package/dist/neutral/modules/network-model/staticRest/layout/transactionInclusionIndex.d.ts +100 -0
  6. package/dist/neutral/modules/network-model/staticRest/layout/transactionInclusionIndex.d.ts.map +1 -0
  7. package/dist/neutral/modules/network-model/staticRest/paths/index.d.ts +2 -0
  8. package/dist/neutral/modules/network-model/staticRest/paths/index.d.ts.map +1 -1
  9. package/dist/neutral/modules/network-model/staticRest/paths/networkStakeRewardsIndex.d.ts +10 -0
  10. package/dist/neutral/modules/network-model/staticRest/paths/networkStakeRewardsIndex.d.ts.map +1 -0
  11. package/dist/neutral/modules/network-model/staticRest/paths/transactionInclusionIndex.d.ts +8 -0
  12. package/dist/neutral/modules/network-model/staticRest/paths/transactionInclusionIndex.d.ts.map +1 -0
  13. package/dist/neutral/modules/network-model/staticRest/templates.d.ts +2 -0
  14. package/dist/neutral/modules/network-model/staticRest/templates.d.ts.map +1 -1
  15. package/dist/neutral/modules/protocol-lib/runners/NetworkStakeRewardsIndexPublish.d.ts +26 -0
  16. package/dist/neutral/modules/protocol-lib/runners/NetworkStakeRewardsIndexPublish.d.ts.map +1 -0
  17. package/dist/neutral/modules/protocol-lib/runners/index.d.ts +1 -0
  18. package/dist/neutral/modules/protocol-lib/runners/index.d.ts.map +1 -1
  19. package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts +2 -0
  20. package/dist/neutral/modules/protocol-lib/viewers/Block.d.ts.map +1 -1
  21. package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts +5 -3
  22. package/dist/neutral/modules/protocol-lib/viewers/IndexViewer.d.ts.map +1 -1
  23. package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts +1 -1
  24. package/dist/neutral/modules/protocol-lib/viewers/WindowedBlock.d.ts.map +1 -1
  25. package/dist/neutral/modules/protocol-model/model/TransactionInclusion.d.ts +48 -0
  26. package/dist/neutral/modules/protocol-model/model/TransactionInclusion.d.ts.map +1 -0
  27. package/dist/neutral/modules/protocol-model/model/index.d.ts +1 -0
  28. package/dist/neutral/modules/protocol-model/model/index.d.ts.map +1 -1
  29. package/dist/neutral/network-model.mjs +209 -2
  30. package/dist/neutral/network-model.mjs.map +4 -4
  31. package/dist/neutral/protocol-lib.mjs +4 -0
  32. package/dist/neutral/protocol-lib.mjs.map +3 -3
  33. package/dist/neutral/protocol-model.mjs +44 -18
  34. package/dist/neutral/protocol-model.mjs.map +4 -4
  35. package/package.json +1 -1
@@ -1544,10 +1544,32 @@ var TimeDomainZod = z51.union([
1544
1544
  z51.literal("ethereum")
1545
1545
  ]);
1546
1546
 
1547
+ // src/modules/protocol-model/model/TransactionInclusion.ts
1548
+ import {
1549
+ HashZod as HashZod8,
1550
+ zodAsFactory as zodAsFactory20,
1551
+ zodIsFactory as zodIsFactory18,
1552
+ zodToFactory as zodToFactory19
1553
+ } from "@ariestools/sdk";
1554
+ import { z as z52 } from "zod";
1555
+ var TransactionInclusionZod = z52.object({
1556
+ /** Hash of the finalized block containing the transaction. */
1557
+ blockHash: HashZod8,
1558
+ /** Number of the finalized block containing the transaction. */
1559
+ blockNumber: XL1BlockNumberZod,
1560
+ /** Hash of the included transaction. */
1561
+ transactionHash: HashZod8,
1562
+ /** Zero-based transaction position within the block. */
1563
+ transactionIndex: z52.int().nonnegative()
1564
+ });
1565
+ var isTransactionInclusion = zodIsFactory18(TransactionInclusionZod);
1566
+ var asTransactionInclusion = zodAsFactory20(TransactionInclusionZod, "asTransactionInclusion");
1567
+ var toTransactionInclusion = zodToFactory19(TransactionInclusionZod, "toTransactionInclusion");
1568
+
1547
1569
  // src/modules/protocol-model/model/TransferPair.ts
1548
1570
  import { XyoAddressZod as XyoAddressZod9 } from "@xyo-network/sdk";
1549
- import { z as z52 } from "zod";
1550
- var TransferPairZod = z52.tuple([
1571
+ import { z as z53 } from "zod";
1572
+ var TransferPairZod = z53.tuple([
1551
1573
  XyoAddressZod9,
1552
1574
  XyoAddressZod9
1553
1575
  ]);
@@ -1574,25 +1596,25 @@ import {
1574
1596
  isPayloadOfSchemaType as isPayloadOfSchemaType7,
1575
1597
  PayloadZodOfSchema as PayloadZodOfSchema3
1576
1598
  } from "@xyo-network/sdk";
1577
- import { z as z54 } from "zod/mini";
1599
+ import { z as z55 } from "zod/mini";
1578
1600
 
1579
1601
  // src/modules/protocol-model/rejection/RejectionError.ts
1580
- import { HashZod as HashZod8 } from "@ariestools/sdk";
1581
- import { z as z53 } from "zod";
1582
- var RejectionErrorZod = z53.object({
1583
- hash: HashZod8,
1584
- message: z53.string().optional(),
1585
- name: z53.string()
1602
+ import { HashZod as HashZod9 } from "@ariestools/sdk";
1603
+ import { z as z54 } from "zod";
1604
+ var RejectionErrorZod = z54.object({
1605
+ hash: HashZod9,
1606
+ message: z54.string().optional(),
1607
+ name: z54.string()
1586
1608
  }).loose();
1587
1609
 
1588
1610
  // src/modules/protocol-model/rejection/BlockRejectionPayload.ts
1589
1611
  var BlockRejectionSchema = asSchema20("network.xyo.block.rejection", true);
1590
- var BlockRejectionFieldsZod = z54.object({
1612
+ var BlockRejectionFieldsZod = z55.object({
1591
1613
  block: HydratedBlockZod,
1592
- errors: z54.array(RejectionErrorZod),
1593
- rejector: z54.string()
1614
+ errors: z55.array(RejectionErrorZod),
1615
+ rejector: z55.string()
1594
1616
  });
1595
- var BlockRejectionZod = z54.extend(
1617
+ var BlockRejectionZod = z55.extend(
1596
1618
  PayloadZodOfSchema3(BlockRejectionSchema),
1597
1619
  BlockRejectionFieldsZod.shape
1598
1620
  );
@@ -1606,14 +1628,14 @@ import {
1606
1628
  isPayloadOfSchemaType as isPayloadOfSchemaType8,
1607
1629
  PayloadZodOfSchema as PayloadZodOfSchema4
1608
1630
  } from "@xyo-network/sdk";
1609
- import { z as z55 } from "zod/mini";
1631
+ import { z as z56 } from "zod/mini";
1610
1632
  var TransactionRejectionSchema = asSchema21("network.xyo.transaction.rejection", true);
1611
- var TransactionRejectionFieldsZod = z55.object({
1612
- errors: z55.array(RejectionErrorZod),
1613
- rejector: z55.string(),
1633
+ var TransactionRejectionFieldsZod = z56.object({
1634
+ errors: z56.array(RejectionErrorZod),
1635
+ rejector: z56.string(),
1614
1636
  transaction: HydratedTransactionZod
1615
1637
  });
1616
- var TransactionRejectionZod = z55.extend(
1638
+ var TransactionRejectionZod = z56.extend(
1617
1639
  PayloadZodOfSchema4(TransactionRejectionSchema),
1618
1640
  TransactionRejectionFieldsZod.shape
1619
1641
  );
@@ -1797,6 +1819,7 @@ export {
1797
1819
  TransactionFeesJsonToBigIntZod,
1798
1820
  TransactionFeesZod,
1799
1821
  TransactionGasCosts,
1822
+ TransactionInclusionZod,
1800
1823
  TransactionRejectionFieldsZod,
1801
1824
  TransactionRejectionSchema,
1802
1825
  TransactionRejectionZod,
@@ -1912,6 +1935,7 @@ export {
1912
1935
  asTransactionBoundWitnessWithStorageMeta,
1913
1936
  asTransactionFeesBigInt,
1914
1937
  asTransactionFeesHex,
1938
+ asTransactionInclusion,
1915
1939
  asTransactionRejection,
1916
1940
  asTransfer,
1917
1941
  asTransferPayload,
@@ -2005,6 +2029,7 @@ export {
2005
2029
  isTransactionBoundWitnessWithStorageMeta,
2006
2030
  isTransactionFeesBigInt,
2007
2031
  isTransactionFeesHex,
2032
+ isTransactionInclusion,
2008
2033
  isTransactionRejection,
2009
2034
  isTransfer,
2010
2035
  isTransferPayload,
@@ -2067,6 +2092,7 @@ export {
2067
2092
  toTransactionBoundWitnessWithStorageMeta,
2068
2093
  toTransactionFeesBigInt,
2069
2094
  toTransactionFeesHex,
2095
+ toTransactionInclusion,
2070
2096
  toUnsignedBlockBoundWitness,
2071
2097
  toUnsignedHydratedTransaction,
2072
2098
  toUnsignedHydratedTransactionWithHashMeta,