@xyo-network/xl1-rpc 1.18.33 → 1.18.35

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 (105) hide show
  1. package/dist/neutral/index.mjs +560 -319
  2. package/dist/neutral/index.mjs.map +1 -1
  3. package/dist/neutral/provider/viewer/JsonRpcNetworkStakeStepRewardsByPositionViewer/JsonRpcNetworkStakeStepRewardsByPositionViewerMethods.d.ts +19 -19
  4. package/dist/neutral/provider/viewer/JsonRpcNetworkStakeStepRewardsByStakerViewer/JsonRpcNetworkStakeStepRewardsByStakerViewerMethods.d.ts +25 -25
  5. package/dist/neutral/provider/viewer/JsonRpcNetworkStakeStepRewardsByStepViewer/JsonRpcNetworkStakeStepRewardsByStepViewerMethods.d.ts +25 -25
  6. package/dist/neutral/provider/viewer/JsonRpcNetworkStakeStepRewardsTotalViewer/JsonRpcNetworkStakeStepRewardsTotalViewerMethods.d.ts +15 -15
  7. package/dist/neutral/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts +2 -2
  8. package/dist/neutral/provider/viewer/JsonRpcStakeTotalsViewer/JsonRpcStakeTotalsViewerMethods.d.ts +7 -7
  9. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.d.ts +11 -0
  10. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.d.ts.map +1 -0
  11. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.d.ts +692 -0
  12. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.d.ts.map +1 -0
  13. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/index.d.ts +3 -0
  14. package/dist/neutral/provider/viewer/JsonRpcStakeViewer/index.d.ts.map +1 -0
  15. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +43 -29
  16. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  17. package/dist/neutral/provider/viewer/index.d.ts +1 -0
  18. package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
  19. package/dist/neutral/types/StakeViewerRpc.d.ts +7 -0
  20. package/dist/neutral/types/StakeViewerRpc.d.ts.map +1 -0
  21. package/dist/neutral/types/index.d.ts +1 -0
  22. package/dist/neutral/types/index.d.ts.map +1 -1
  23. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +830 -242
  24. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  25. package/dist/neutral/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
  26. package/dist/neutral/types/schema/NoArgsZod.d.ts +3 -0
  27. package/dist/neutral/types/schema/NoArgsZod.d.ts.map +1 -0
  28. package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +19 -19
  29. package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +25 -25
  30. package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts +25 -25
  31. package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts +15 -15
  32. package/dist/neutral/types/schema/RpcSchemaMap.d.ts.map +1 -1
  33. package/dist/neutral/types/schema/StakeTotalsViewerRpcSchemas.d.ts +7 -7
  34. package/dist/neutral/types/schema/StakeTotalsViewerRpcSchemas.d.ts.map +1 -1
  35. package/dist/neutral/types/schema/StakeViewerRpcSchemas.d.ts +601 -0
  36. package/dist/neutral/types/schema/StakeViewerRpcSchemas.d.ts.map +1 -0
  37. package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts +26 -34
  38. package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  39. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +14 -14
  40. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  41. package/dist/neutral/types/schema/index.d.ts +2 -0
  42. package/dist/neutral/types/schema/index.d.ts.map +1 -1
  43. package/dist/node/index-node.mjs +560 -319
  44. package/dist/node/index-node.mjs.map +1 -1
  45. package/dist/node/provider/viewer/JsonRpcNetworkStakeStepRewardsByPositionViewer/JsonRpcNetworkStakeStepRewardsByPositionViewerMethods.d.ts +19 -19
  46. package/dist/node/provider/viewer/JsonRpcNetworkStakeStepRewardsByStakerViewer/JsonRpcNetworkStakeStepRewardsByStakerViewerMethods.d.ts +25 -25
  47. package/dist/node/provider/viewer/JsonRpcNetworkStakeStepRewardsByStepViewer/JsonRpcNetworkStakeStepRewardsByStepViewerMethods.d.ts +25 -25
  48. package/dist/node/provider/viewer/JsonRpcNetworkStakeStepRewardsTotalViewer/JsonRpcNetworkStakeStepRewardsTotalViewerMethods.d.ts +15 -15
  49. package/dist/node/provider/viewer/JsonRpcNetworkStakeViewer/JsonRpcNetworkStakeViewerMethods.d.ts +2 -2
  50. package/dist/node/provider/viewer/JsonRpcStakeTotalsViewer/JsonRpcStakeTotalsViewerMethods.d.ts +7 -7
  51. package/dist/node/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.d.ts +11 -0
  52. package/dist/node/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.d.ts.map +1 -0
  53. package/dist/node/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.d.ts +692 -0
  54. package/dist/node/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.d.ts.map +1 -0
  55. package/dist/node/provider/viewer/JsonRpcStakeViewer/index.d.ts +3 -0
  56. package/dist/node/provider/viewer/JsonRpcStakeViewer/index.d.ts.map +1 -0
  57. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +43 -29
  58. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  59. package/dist/node/provider/viewer/index.d.ts +1 -0
  60. package/dist/node/provider/viewer/index.d.ts.map +1 -1
  61. package/dist/node/types/StakeViewerRpc.d.ts +7 -0
  62. package/dist/node/types/StakeViewerRpc.d.ts.map +1 -0
  63. package/dist/node/types/index.d.ts +1 -0
  64. package/dist/node/types/index.d.ts.map +1 -1
  65. package/dist/node/types/schema/AllRpcSchemas.d.ts +830 -242
  66. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  67. package/dist/node/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
  68. package/dist/node/types/schema/NoArgsZod.d.ts +3 -0
  69. package/dist/node/types/schema/NoArgsZod.d.ts.map +1 -0
  70. package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +19 -19
  71. package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +25 -25
  72. package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts +25 -25
  73. package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts +15 -15
  74. package/dist/node/types/schema/RpcSchemaMap.d.ts.map +1 -1
  75. package/dist/node/types/schema/StakeTotalsViewerRpcSchemas.d.ts +7 -7
  76. package/dist/node/types/schema/StakeTotalsViewerRpcSchemas.d.ts.map +1 -1
  77. package/dist/node/types/schema/StakeViewerRpcSchemas.d.ts +601 -0
  78. package/dist/node/types/schema/StakeViewerRpcSchemas.d.ts.map +1 -0
  79. package/dist/node/types/schema/StepViewerRpcSchemas.d.ts +26 -34
  80. package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  81. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +14 -14
  82. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  83. package/dist/node/types/schema/index.d.ts +2 -0
  84. package/dist/node/types/schema/index.d.ts.map +1 -1
  85. package/package.json +3 -3
  86. package/src/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.ts +25 -0
  87. package/src/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.ts +70 -0
  88. package/src/provider/viewer/JsonRpcStakeViewer/index.ts +2 -0
  89. package/src/provider/viewer/JsonRpcXyoViewer.ts +19 -14
  90. package/src/provider/viewer/index.ts +1 -0
  91. package/src/types/StakeViewerRpc.ts +11 -0
  92. package/src/types/index.ts +1 -0
  93. package/src/types/schema/AllRpcSchemas.ts +2 -0
  94. package/src/types/schema/NetworkStakeViewerRpcSchemas.ts +2 -2
  95. package/src/types/schema/NoArgsZod.ts +3 -0
  96. package/src/types/schema/RewardsByPositionViewerRpcSchemas.ts +14 -14
  97. package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +16 -16
  98. package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +16 -16
  99. package/src/types/schema/RewardsTotalViewerRpcSchemas.ts +10 -10
  100. package/src/types/schema/RpcSchemaMap.ts +2 -0
  101. package/src/types/schema/StakeTotalsViewerRpcSchemas.ts +8 -7
  102. package/src/types/schema/StakeViewerRpcSchemas.ts +155 -0
  103. package/src/types/schema/StepViewerRpcSchemas.ts +20 -22
  104. package/src/types/schema/XyoViewerRpcSchemas.ts +15 -14
  105. package/src/types/schema/index.ts +2 -0
@@ -203,7 +203,7 @@ var rpcMethodHandlersFromSigner = (signer) => {
203
203
  };
204
204
 
205
205
  // src/provider/datalake/JsonRpcDataLakeViewer.ts
206
- import { creatableProvider as creatableProvider9 } from "@xyo-network/xl1-protocol-sdk";
206
+ import { creatableProvider as creatableProvider10 } from "@xyo-network/xl1-protocol-sdk";
207
207
 
208
208
  // src/provider/datalake/JsonRpcDataLakeViewerMethods.ts
209
209
  import { DataLakeViewerMoniker } from "@xyo-network/xl1-protocol-sdk";
@@ -459,12 +459,12 @@ import { z as z6 } from "zod";
459
459
  var NetworkStakeViewerRpcSchemas = {
460
460
  networkStakeViewer_active: {
461
461
  params: {
462
- from: z6.tuple([BlockNumberZod.optional()]),
463
- to: z6.tuple([BlockNumberZod.optional()])
462
+ to: z6.tuple([BlockNumberZod.optional()]),
463
+ from: z6.tuple([BlockNumberZod.optional()])
464
464
  },
465
465
  result: {
466
- from: z6.tuple([JsonToBigIntZod2, z6.number()]),
467
- to: z6.tuple([BigIntToJsonZod2, z6.number()])
466
+ to: z6.tuple([BigIntToJsonZod2, z6.number()]),
467
+ from: z6.tuple([JsonToBigIntZod2, z6.number()])
468
468
  }
469
469
  }
470
470
  };
@@ -476,52 +476,52 @@ import { z as z7 } from "zod";
476
476
  var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
477
477
  networkStakingStepRewardsByPositionViewer_bonus: {
478
478
  params: {
479
- from: z7.tuple([RewardsRangeOptionsZod.optional()]),
480
- to: z7.tuple([RewardsRangeOptionsZod.optional()])
479
+ to: z7.tuple([RewardsRangeOptionsZod.optional()]),
480
+ from: z7.tuple([RewardsRangeOptionsZod.optional()])
481
481
  },
482
482
  result: {
483
- from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val))),
484
- to: z7.record(z7.number(), BigIntToJsonZod3)
483
+ to: z7.record(z7.number(), BigIntToJsonZod3),
484
+ from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val)))
485
485
  }
486
486
  },
487
487
  networkStakingStepRewardsByPositionViewer_claimed: {
488
488
  params: {
489
- from: z7.tuple([RewardsRangeOptionsZod.optional()]),
490
- to: z7.tuple([RewardsRangeOptionsZod.optional()])
489
+ to: z7.tuple([RewardsRangeOptionsZod.optional()]),
490
+ from: z7.tuple([RewardsRangeOptionsZod.optional()])
491
491
  },
492
492
  result: {
493
- from: z7.record(z7.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
494
- to: z7.record(z7.number(), JsonToBigIntZod3)
493
+ to: z7.record(z7.number(), BigIntToJsonZod3),
494
+ from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val)))
495
495
  }
496
496
  },
497
497
  networkStakingStepRewardsByPositionViewer_earned: {
498
498
  params: {
499
- from: z7.tuple([RewardsRangeOptionsZod.optional()]),
500
- to: z7.tuple([RewardsRangeOptionsZod.optional()])
499
+ to: z7.tuple([RewardsRangeOptionsZod.optional()]),
500
+ from: z7.tuple([RewardsRangeOptionsZod.optional()])
501
501
  },
502
502
  result: {
503
- from: z7.record(z7.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
504
- to: z7.record(z7.number(), JsonToBigIntZod3)
503
+ to: z7.record(z7.number(), BigIntToJsonZod3),
504
+ from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val)))
505
505
  }
506
506
  },
507
507
  networkStakingStepRewardsByPositionViewer_total: {
508
508
  params: {
509
- from: z7.tuple([RewardsRangeOptionsZod.optional()]),
510
- to: z7.tuple([RewardsRangeOptionsZod.optional()])
509
+ to: z7.tuple([RewardsRangeOptionsZod.optional()]),
510
+ from: z7.tuple([RewardsRangeOptionsZod.optional()])
511
511
  },
512
512
  result: {
513
- from: z7.record(z7.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
514
- to: z7.record(z7.number(), JsonToBigIntZod3)
513
+ to: z7.record(z7.number(), BigIntToJsonZod3),
514
+ from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val)))
515
515
  }
516
516
  },
517
517
  networkStakingStepRewardsByPositionViewer_unclaimed: {
518
518
  params: {
519
- from: z7.tuple([RewardsRangeOptionsZod.optional()]),
520
- to: z7.tuple([RewardsRangeOptionsZod.optional()])
519
+ to: z7.tuple([RewardsRangeOptionsZod.optional()]),
520
+ from: z7.tuple([RewardsRangeOptionsZod.optional()])
521
521
  },
522
522
  result: {
523
- from: z7.record(z7.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
524
- to: z7.record(z7.number(), JsonToBigIntZod3)
523
+ to: z7.record(z7.number(), BigIntToJsonZod3),
524
+ from: z7.record(z7.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val)))
525
525
  }
526
526
  }
527
527
  };
@@ -532,57 +532,57 @@ import {
532
532
  BigIntToJsonZod as BigIntToJsonZod4,
533
533
  JsonToBigIntZod as JsonToBigIntZod4
534
534
  } from "@xylabs/sdk-js";
535
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol";
535
+ import { asAttoXL1 as asAttoXL12, RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol";
536
536
  import { z as z8 } from "zod";
537
537
  var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
538
538
  networkStakingStepRewardsByStakerViewer_bonus: {
539
539
  params: {
540
- from: z8.tuple([RewardsRangeOptionsZod2.optional()]),
541
- to: z8.tuple([RewardsRangeOptionsZod2.optional()])
540
+ to: z8.tuple([RewardsRangeOptionsZod2.optional()]),
541
+ from: z8.tuple([RewardsRangeOptionsZod2.optional()])
542
542
  },
543
543
  result: {
544
- from: z8.record(AddressZod2, BigIntToJsonZod4),
545
- to: z8.record(AddressZod2, JsonToBigIntZod4)
544
+ to: z8.record(AddressZod2, BigIntToJsonZod4),
545
+ from: z8.record(AddressZod2, JsonToBigIntZod4.transform((val) => asAttoXL12(val)))
546
546
  }
547
547
  },
548
548
  networkStakingStepRewardsByStakerViewer_claimed: {
549
549
  params: {
550
- from: z8.tuple([RewardsRangeOptionsZod2.optional()]),
551
- to: z8.tuple([RewardsRangeOptionsZod2.optional()])
550
+ to: z8.tuple([RewardsRangeOptionsZod2.optional()]),
551
+ from: z8.tuple([RewardsRangeOptionsZod2.optional()])
552
552
  },
553
553
  result: {
554
- from: z8.record(AddressZod2, BigIntToJsonZod4),
555
- to: z8.record(AddressZod2, JsonToBigIntZod4)
554
+ to: z8.record(AddressZod2, BigIntToJsonZod4),
555
+ from: z8.record(AddressZod2, JsonToBigIntZod4.transform((val) => asAttoXL12(val)))
556
556
  }
557
557
  },
558
558
  networkStakingStepRewardsByStakerViewer_earned: {
559
559
  params: {
560
- from: z8.tuple([RewardsRangeOptionsZod2.optional()]),
561
- to: z8.tuple([RewardsRangeOptionsZod2.optional()])
560
+ to: z8.tuple([RewardsRangeOptionsZod2.optional()]),
561
+ from: z8.tuple([RewardsRangeOptionsZod2.optional()])
562
562
  },
563
563
  result: {
564
- from: z8.record(AddressZod2, BigIntToJsonZod4),
565
- to: z8.record(AddressZod2, JsonToBigIntZod4)
564
+ to: z8.record(AddressZod2, BigIntToJsonZod4),
565
+ from: z8.record(AddressZod2, JsonToBigIntZod4.transform((val) => asAttoXL12(val)))
566
566
  }
567
567
  },
568
568
  networkStakingStepRewardsByStakerViewer_total: {
569
569
  params: {
570
- from: z8.tuple([RewardsRangeOptionsZod2.optional()]),
571
- to: z8.tuple([RewardsRangeOptionsZod2.optional()])
570
+ to: z8.tuple([RewardsRangeOptionsZod2.optional()]),
571
+ from: z8.tuple([RewardsRangeOptionsZod2.optional()])
572
572
  },
573
573
  result: {
574
- from: z8.record(AddressZod2, BigIntToJsonZod4),
575
- to: z8.record(AddressZod2, JsonToBigIntZod4)
574
+ to: z8.record(AddressZod2, BigIntToJsonZod4),
575
+ from: z8.record(AddressZod2, JsonToBigIntZod4.transform((val) => asAttoXL12(val)))
576
576
  }
577
577
  },
578
578
  networkStakingStepRewardsByStakerViewer_unclaimed: {
579
579
  params: {
580
- from: z8.tuple([RewardsRangeOptionsZod2.optional()]),
581
- to: z8.tuple([RewardsRangeOptionsZod2.optional()])
580
+ to: z8.tuple([RewardsRangeOptionsZod2.optional()]),
581
+ from: z8.tuple([RewardsRangeOptionsZod2.optional()])
582
582
  },
583
583
  result: {
584
- from: z8.record(AddressZod2, BigIntToJsonZod4),
585
- to: z8.record(AddressZod2, JsonToBigIntZod4)
584
+ to: z8.record(AddressZod2, BigIntToJsonZod4),
585
+ from: z8.record(AddressZod2, JsonToBigIntZod4.transform((val) => asAttoXL12(val)))
586
586
  }
587
587
  }
588
588
  };
@@ -593,114 +593,114 @@ import {
593
593
  BigIntToJsonZod as BigIntToJsonZod5,
594
594
  JsonToBigIntZod as JsonToBigIntZod5
595
595
  } from "@xylabs/sdk-js";
596
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol";
596
+ import { asAttoXL1 as asAttoXL13, RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol";
597
597
  import { z as z9 } from "zod";
598
598
  var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
599
599
  networkStakingStepRewardsByStepViewer_bonus: {
600
600
  params: {
601
- from: z9.tuple([RewardsRangeOptionsZod3.optional()]),
602
- to: z9.tuple([RewardsRangeOptionsZod3.optional()])
601
+ to: z9.tuple([RewardsRangeOptionsZod3.optional()]),
602
+ from: z9.tuple([RewardsRangeOptionsZod3.optional()])
603
603
  },
604
604
  result: {
605
- from: z9.record(AddressZod3, BigIntToJsonZod5),
606
- to: z9.record(AddressZod3, JsonToBigIntZod5)
605
+ to: z9.record(AddressZod3, BigIntToJsonZod5),
606
+ from: z9.record(AddressZod3, JsonToBigIntZod5.transform((val) => asAttoXL13(val)))
607
607
  }
608
608
  },
609
609
  networkStakingStepRewardsByStepViewer_claimed: {
610
610
  params: {
611
- from: z9.tuple([RewardsRangeOptionsZod3.optional()]),
612
- to: z9.tuple([RewardsRangeOptionsZod3.optional()])
611
+ to: z9.tuple([RewardsRangeOptionsZod3.optional()]),
612
+ from: z9.tuple([RewardsRangeOptionsZod3.optional()])
613
613
  },
614
614
  result: {
615
- from: z9.record(AddressZod3, BigIntToJsonZod5),
616
- to: z9.record(AddressZod3, JsonToBigIntZod5)
615
+ to: z9.record(AddressZod3, BigIntToJsonZod5),
616
+ from: z9.record(AddressZod3, JsonToBigIntZod5.transform((val) => asAttoXL13(val)))
617
617
  }
618
618
  },
619
619
  networkStakingStepRewardsByStepViewer_earned: {
620
620
  params: {
621
- from: z9.tuple([RewardsRangeOptionsZod3.optional()]),
622
- to: z9.tuple([RewardsRangeOptionsZod3.optional()])
621
+ to: z9.tuple([RewardsRangeOptionsZod3.optional()]),
622
+ from: z9.tuple([RewardsRangeOptionsZod3.optional()])
623
623
  },
624
624
  result: {
625
- from: z9.record(AddressZod3, BigIntToJsonZod5),
626
- to: z9.record(AddressZod3, JsonToBigIntZod5)
625
+ to: z9.record(AddressZod3, BigIntToJsonZod5),
626
+ from: z9.record(AddressZod3, JsonToBigIntZod5.transform((val) => asAttoXL13(val)))
627
627
  }
628
628
  },
629
629
  networkStakingStepRewardsByStepViewer_total: {
630
630
  params: {
631
- from: z9.tuple([RewardsRangeOptionsZod3.optional()]),
632
- to: z9.tuple([RewardsRangeOptionsZod3.optional()])
631
+ to: z9.tuple([RewardsRangeOptionsZod3.optional()]),
632
+ from: z9.tuple([RewardsRangeOptionsZod3.optional()])
633
633
  },
634
634
  result: {
635
- from: z9.record(AddressZod3, BigIntToJsonZod5),
636
- to: z9.record(AddressZod3, JsonToBigIntZod5)
635
+ to: z9.record(AddressZod3, BigIntToJsonZod5),
636
+ from: z9.record(AddressZod3, JsonToBigIntZod5.transform((val) => asAttoXL13(val)))
637
637
  }
638
638
  },
639
639
  networkStakingStepRewardsByStepViewer_unclaimed: {
640
640
  params: {
641
- from: z9.tuple([RewardsRangeOptionsZod3.optional()]),
642
- to: z9.tuple([RewardsRangeOptionsZod3.optional()])
641
+ to: z9.tuple([RewardsRangeOptionsZod3.optional()]),
642
+ from: z9.tuple([RewardsRangeOptionsZod3.optional()])
643
643
  },
644
644
  result: {
645
- from: z9.record(AddressZod3, BigIntToJsonZod5),
646
- to: z9.record(AddressZod3, JsonToBigIntZod5)
645
+ to: z9.record(AddressZod3, BigIntToJsonZod5),
646
+ from: z9.record(AddressZod3, JsonToBigIntZod5.transform((val) => asAttoXL13(val)))
647
647
  }
648
648
  }
649
649
  };
650
650
 
651
651
  // src/types/schema/RewardsTotalViewerRpcSchemas.ts
652
652
  import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
653
- import { asAttoXL1 as asAttoXL12, RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol";
653
+ import { asAttoXL1 as asAttoXL14, RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol";
654
654
  import { z as z10 } from "zod";
655
655
  var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
656
656
  networkStakingStepRewardsTotalViewer_bonus: {
657
657
  params: {
658
- from: z10.tuple([RewardsRangeOptionsZod4.optional()]),
659
- to: z10.tuple([RewardsRangeOptionsZod4.optional()])
658
+ to: z10.tuple([RewardsRangeOptionsZod4.optional()]),
659
+ from: z10.tuple([RewardsRangeOptionsZod4.optional()])
660
660
  },
661
661
  result: {
662
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
663
- to: BigIntToJsonZod6
662
+ to: BigIntToJsonZod6,
663
+ from: JsonToBigIntZod6.transform((val) => asAttoXL14(val))
664
664
  }
665
665
  },
666
666
  networkStakingStepRewardsTotalViewer_claimed: {
667
667
  params: {
668
- from: z10.tuple([RewardsRangeOptionsZod4.optional()]),
669
- to: z10.tuple([RewardsRangeOptionsZod4.optional()])
668
+ to: z10.tuple([RewardsRangeOptionsZod4.optional()]),
669
+ from: z10.tuple([RewardsRangeOptionsZod4.optional()])
670
670
  },
671
671
  result: {
672
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
673
- to: BigIntToJsonZod6
672
+ to: BigIntToJsonZod6,
673
+ from: JsonToBigIntZod6.transform((val) => asAttoXL14(val))
674
674
  }
675
675
  },
676
676
  networkStakingStepRewardsTotalViewer_earned: {
677
677
  params: {
678
- from: z10.tuple([RewardsRangeOptionsZod4.optional()]),
679
- to: z10.tuple([RewardsRangeOptionsZod4.optional()])
678
+ to: z10.tuple([RewardsRangeOptionsZod4.optional()]),
679
+ from: z10.tuple([RewardsRangeOptionsZod4.optional()])
680
680
  },
681
681
  result: {
682
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
683
- to: BigIntToJsonZod6
682
+ to: BigIntToJsonZod6,
683
+ from: JsonToBigIntZod6.transform((val) => asAttoXL14(val))
684
684
  }
685
685
  },
686
686
  networkStakingStepRewardsTotalViewer_total: {
687
687
  params: {
688
- from: z10.tuple([RewardsRangeOptionsZod4.optional()]),
689
- to: z10.tuple([RewardsRangeOptionsZod4.optional()])
688
+ to: z10.tuple([RewardsRangeOptionsZod4.optional()]),
689
+ from: z10.tuple([RewardsRangeOptionsZod4.optional()])
690
690
  },
691
691
  result: {
692
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
693
- to: BigIntToJsonZod6
692
+ to: BigIntToJsonZod6,
693
+ from: JsonToBigIntZod6.transform((val) => asAttoXL14(val))
694
694
  }
695
695
  },
696
696
  networkStakingStepRewardsTotalViewer_unclaimed: {
697
697
  params: {
698
- from: z10.tuple([RewardsRangeOptionsZod4.optional()]),
699
- to: z10.tuple([RewardsRangeOptionsZod4.optional()])
698
+ to: z10.tuple([RewardsRangeOptionsZod4.optional()]),
699
+ from: z10.tuple([RewardsRangeOptionsZod4.optional()])
700
700
  },
701
701
  result: {
702
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
703
- to: BigIntToJsonZod6
702
+ to: BigIntToJsonZod6,
703
+ from: JsonToBigIntZod6.transform((val) => asAttoXL14(val))
704
704
  }
705
705
  }
706
706
  };
@@ -711,6 +711,7 @@ import {
711
711
  BigIntToJsonZod as BigIntToJsonZod7,
712
712
  JsonToBigIntZod as JsonToBigIntZod7
713
713
  } from "@xylabs/sdk-js";
714
+ import { asAttoXL1 as asAttoXL15 } from "@xyo-network/xl1-protocol";
714
715
  import { z as z11 } from "zod";
715
716
  var StakeTotalsViewerRpcSchemas = {
716
717
  stakeTotalsViewer_active: {
@@ -720,7 +721,7 @@ var StakeTotalsViewerRpcSchemas = {
720
721
  },
721
722
  result: {
722
723
  to: BigIntToJsonZod7,
723
- from: JsonToBigIntZod7
724
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
724
725
  }
725
726
  },
726
727
  stakeTotalsViewer_activeByStaked: {
@@ -730,7 +731,7 @@ var StakeTotalsViewerRpcSchemas = {
730
731
  },
731
732
  result: {
732
733
  to: BigIntToJsonZod7,
733
- from: JsonToBigIntZod7
734
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
734
735
  }
735
736
  },
736
737
  stakeTotalsViewer_activeByStaker: {
@@ -740,7 +741,7 @@ var StakeTotalsViewerRpcSchemas = {
740
741
  },
741
742
  result: {
742
743
  to: BigIntToJsonZod7,
743
- from: JsonToBigIntZod7
744
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
744
745
  }
745
746
  },
746
747
  stakeTotalsViewer_pending: {
@@ -750,7 +751,7 @@ var StakeTotalsViewerRpcSchemas = {
750
751
  },
751
752
  result: {
752
753
  to: BigIntToJsonZod7,
753
- from: JsonToBigIntZod7
754
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
754
755
  }
755
756
  },
756
757
  stakeTotalsViewer_pendingByStaker: {
@@ -760,7 +761,7 @@ var StakeTotalsViewerRpcSchemas = {
760
761
  },
761
762
  result: {
762
763
  to: BigIntToJsonZod7,
763
- from: JsonToBigIntZod7
764
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
764
765
  }
765
766
  },
766
767
  stakeTotalsViewer_withdrawn: {
@@ -770,7 +771,7 @@ var StakeTotalsViewerRpcSchemas = {
770
771
  },
771
772
  result: {
772
773
  to: BigIntToJsonZod7,
773
- from: JsonToBigIntZod7
774
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
774
775
  }
775
776
  },
776
777
  stakeTotalsViewer_withdrawnByStaker: {
@@ -780,137 +781,290 @@ var StakeTotalsViewerRpcSchemas = {
780
781
  },
781
782
  result: {
782
783
  to: BigIntToJsonZod7,
783
- from: JsonToBigIntZod7
784
+ from: JsonToBigIntZod7.transform((val) => asAttoXL15(val))
784
785
  }
785
786
  }
786
787
  };
787
788
 
788
- // src/types/schema/StepRewardsViewerRpcSchemas.ts
789
- var NetworkStakingStepRewardsViewerRpcSchemas = {};
790
-
791
- // src/types/schema/StepViewerRpcSchemas.ts
789
+ // src/types/schema/StakeViewerRpcSchemas.ts
792
790
  import {
793
791
  AddressZod as AddressZod5,
794
792
  BigIntToJsonZod as BigIntToJsonZod8,
795
793
  JsonToBigIntZod as JsonToBigIntZod8
796
794
  } from "@xylabs/sdk-js";
795
+ import { JsonToStakeZod, StakeToJsonZod } from "@xyo-network/xl1-protocol";
796
+ import { z as z13 } from "zod";
797
+
798
+ // src/types/schema/NoArgsZod.ts
799
+ import { z as z12 } from "zod";
800
+ var NoArgsZod = z12.array(z12.any()).length(0).optional();
801
+
802
+ // src/types/schema/StakeViewerRpcSchemas.ts
803
+ var StakeViewerRpcSchemas = {
804
+ stakeViewer_active: {
805
+ params: {
806
+ to: z13.tuple([z13.number().optional()]),
807
+ from: z13.tuple([z13.number().optional()])
808
+ },
809
+ result: {
810
+ to: BigIntToJsonZod8,
811
+ from: JsonToBigIntZod8
812
+ }
813
+ },
814
+ stakeViewer_activeByAddressStaked: {
815
+ params: {
816
+ to: z13.tuple([AddressZod5, z13.number().optional()]),
817
+ from: z13.tuple([AddressZod5, z13.number().optional()])
818
+ },
819
+ result: {
820
+ to: BigIntToJsonZod8,
821
+ from: JsonToBigIntZod8
822
+ }
823
+ },
824
+ stakeViewer_activeByStaker: {
825
+ params: {
826
+ to: z13.tuple([AddressZod5, z13.number().optional()]),
827
+ from: z13.tuple([AddressZod5, z13.number().optional()])
828
+ },
829
+ result: {
830
+ to: BigIntToJsonZod8,
831
+ from: JsonToBigIntZod8
832
+ }
833
+ },
834
+ stakeViewer_minWithdrawalBlocks: {
835
+ params: {
836
+ to: NoArgsZod,
837
+ from: NoArgsZod
838
+ },
839
+ result: {
840
+ to: z13.number(),
841
+ from: z13.number()
842
+ }
843
+ },
844
+ stakeViewer_pending: {
845
+ params: {
846
+ to: z13.tuple([z13.number().optional()]),
847
+ from: z13.tuple([z13.number().optional()])
848
+ },
849
+ result: {
850
+ to: BigIntToJsonZod8,
851
+ from: JsonToBigIntZod8
852
+ }
853
+ },
854
+ stakeViewer_pendingByStaker: {
855
+ params: {
856
+ to: z13.tuple([AddressZod5, z13.number().optional()]),
857
+ from: z13.tuple([AddressZod5, z13.number().optional()])
858
+ },
859
+ result: {
860
+ to: BigIntToJsonZod8,
861
+ from: JsonToBigIntZod8
862
+ }
863
+ },
864
+ stakeViewer_rewardsContract: {
865
+ params: {
866
+ to: NoArgsZod,
867
+ from: NoArgsZod
868
+ },
869
+ result: {
870
+ to: AddressZod5,
871
+ from: AddressZod5
872
+ }
873
+ },
874
+ stakeViewer_stakeById: {
875
+ params: {
876
+ to: z13.tuple([z13.number()]),
877
+ from: z13.tuple([z13.number()])
878
+ },
879
+ result: {
880
+ to: StakeToJsonZod,
881
+ from: JsonToStakeZod
882
+ }
883
+ },
884
+ stakeViewer_stakeByStaker: {
885
+ params: {
886
+ to: z13.tuple([AddressZod5, z13.number()]),
887
+ from: z13.tuple([AddressZod5, z13.number()])
888
+ },
889
+ result: {
890
+ to: StakeToJsonZod,
891
+ from: JsonToStakeZod
892
+ }
893
+ },
894
+ stakeViewer_stakesByStaker: {
895
+ params: {
896
+ to: z13.tuple([AddressZod5]),
897
+ from: z13.tuple([AddressZod5])
898
+ },
899
+ result: {
900
+ to: z13.array(StakeToJsonZod),
901
+ from: z13.array(JsonToStakeZod)
902
+ }
903
+ },
904
+ stakeViewer_stakesByStaked: {
905
+ params: {
906
+ to: z13.tuple([AddressZod5]),
907
+ from: z13.tuple([AddressZod5])
908
+ },
909
+ result: {
910
+ to: z13.array(StakeToJsonZod),
911
+ from: z13.array(JsonToStakeZod)
912
+ }
913
+ },
914
+ stakeViewer_stakingTokenAddress: {
915
+ params: {
916
+ to: NoArgsZod,
917
+ from: NoArgsZod
918
+ },
919
+ result: {
920
+ to: AddressZod5,
921
+ from: AddressZod5
922
+ }
923
+ },
924
+ stakeViewer_withdrawn: {
925
+ params: {
926
+ to: z13.tuple([z13.number().optional()]),
927
+ from: z13.tuple([z13.number().optional()])
928
+ },
929
+ result: {
930
+ to: BigIntToJsonZod8,
931
+ from: JsonToBigIntZod8
932
+ }
933
+ },
934
+ stakeViewer_withdrawnByStaker: {
935
+ params: {
936
+ to: z13.tuple([AddressZod5, z13.number().optional()]),
937
+ from: z13.tuple([AddressZod5, z13.number().optional()])
938
+ },
939
+ result: {
940
+ to: BigIntToJsonZod8,
941
+ from: JsonToBigIntZod8
942
+ }
943
+ }
944
+ };
945
+
946
+ // src/types/schema/StepRewardsViewerRpcSchemas.ts
947
+ var NetworkStakingStepRewardsViewerRpcSchemas = {};
948
+
949
+ // src/types/schema/StepViewerRpcSchemas.ts
950
+ import { BigIntToJsonZod as BigIntToJsonZod9, JsonToBigIntZod as JsonToBigIntZod9 } from "@xylabs/sdk-js";
797
951
  import {
798
- JsonToStakeZod,
799
- StakeToJsonZod,
952
+ JsonToStakeZod as JsonToStakeZod2,
953
+ StakeToJsonZod as StakeToJsonZod2,
800
954
  StepIdentityZod
801
955
  } from "@xyo-network/xl1-protocol";
802
- import { z as z12 } from "zod";
956
+ import { z as z14 } from "zod";
803
957
  var StepViewerRpcSchemas = {
804
958
  randomizer: {
805
959
  params: {
806
- from: z12.tuple([StepIdentityZod]),
807
- to: z12.tuple([StepIdentityZod])
960
+ to: z14.tuple([StepIdentityZod]),
961
+ from: z14.tuple([StepIdentityZod])
808
962
  },
809
963
  result: {
810
- from: BigIntToJsonZod8,
811
- to: JsonToBigIntZod8
964
+ to: BigIntToJsonZod9,
965
+ from: JsonToBigIntZod9
812
966
  }
813
967
  },
814
968
  stake: {
815
969
  params: {
816
- from: z12.tuple([StepIdentityZod]),
817
- to: z12.tuple([StepIdentityZod])
970
+ to: z14.tuple([StepIdentityZod]),
971
+ from: z14.tuple([StepIdentityZod])
818
972
  },
819
973
  result: {
820
- from: BigIntToJsonZod8,
821
- to: JsonToBigIntZod8
974
+ to: BigIntToJsonZod9,
975
+ from: JsonToBigIntZod9
822
976
  }
823
977
  },
824
978
  stakers: {
825
979
  params: {
826
- from: z12.tuple([StepIdentityZod]),
827
- to: z12.tuple([StepIdentityZod])
980
+ to: z14.tuple([StepIdentityZod]),
981
+ from: z14.tuple([StepIdentityZod])
828
982
  },
829
983
  result: {
830
- from: z12.array(AddressZod5),
831
- to: z12.array(AddressZod5)
984
+ to: BigIntToJsonZod9,
985
+ from: JsonToBigIntZod9
832
986
  }
833
987
  },
834
988
  weight: {
835
989
  params: {
836
- from: z12.tuple([StepIdentityZod]),
837
- to: z12.tuple([StepIdentityZod])
990
+ to: z14.tuple([StepIdentityZod]),
991
+ from: z14.tuple([StepIdentityZod])
838
992
  },
839
993
  result: {
840
- from: BigIntToJsonZod8,
841
- to: JsonToBigIntZod8
994
+ to: BigIntToJsonZod9,
995
+ from: JsonToBigIntZod9
842
996
  }
843
997
  },
844
998
  positionCount: {
845
999
  params: {
846
- from: z12.tuple([StepIdentityZod]),
847
- to: z12.tuple([StepIdentityZod])
1000
+ to: z14.tuple([StepIdentityZod]),
1001
+ from: z14.tuple([StepIdentityZod])
848
1002
  },
849
1003
  result: {
850
- from: z12.number(),
851
- to: z12.number()
1004
+ to: z14.number(),
1005
+ from: z14.number()
852
1006
  }
853
1007
  },
854
1008
  positions: {
855
1009
  params: {
856
- from: z12.tuple([StepIdentityZod]),
857
- to: z12.tuple([StepIdentityZod])
1010
+ to: z14.tuple([StepIdentityZod]),
1011
+ from: z14.tuple([StepIdentityZod])
858
1012
  },
859
1013
  result: {
860
- from: z12.array(StakeToJsonZod),
861
- to: z12.array(JsonToStakeZod)
1014
+ to: z14.array(StakeToJsonZod2),
1015
+ from: z14.array(JsonToStakeZod2)
862
1016
  }
863
1017
  },
864
1018
  stakerCount: {
865
1019
  params: {
866
- from: z12.tuple([StepIdentityZod]),
867
- to: z12.tuple([StepIdentityZod])
1020
+ to: z14.tuple([StepIdentityZod]),
1021
+ from: z14.tuple([StepIdentityZod])
868
1022
  },
869
1023
  result: {
870
- from: z12.number(),
871
- to: z12.number()
1024
+ to: z14.number(),
1025
+ from: z14.number()
872
1026
  }
873
1027
  }
874
1028
  };
875
1029
 
876
1030
  // src/types/schema/TimeSyncViewerRpcSchema.ts
877
1031
  import { TimeDomainZod, TimePayloadZod } from "@xyo-network/xl1-protocol";
878
- import { z as z13 } from "zod";
1032
+ import { z as z15 } from "zod";
879
1033
  var TimeSyncViewerRpcSchemas = {
880
1034
  timeSyncViewer_convertTime: {
881
1035
  params: {
882
- from: z13.tuple([TimeDomainZod, TimeDomainZod, z13.number()]),
883
- to: z13.tuple([TimeDomainZod, TimeDomainZod, z13.number()])
1036
+ from: z15.tuple([TimeDomainZod, TimeDomainZod, z15.number()]),
1037
+ to: z15.tuple([TimeDomainZod, TimeDomainZod, z15.number()])
884
1038
  },
885
1039
  result: {
886
- from: z13.number(),
887
- to: z13.number()
1040
+ from: z15.number(),
1041
+ to: z15.number()
888
1042
  }
889
1043
  },
890
1044
  timeSyncViewer_currentTime: {
891
1045
  params: {
892
- from: z13.tuple([TimeDomainZod]),
893
- to: z13.tuple([TimeDomainZod])
1046
+ from: z15.tuple([TimeDomainZod]),
1047
+ to: z15.tuple([TimeDomainZod])
894
1048
  },
895
1049
  result: {
896
- from: z13.tuple([TimeDomainZod, z13.number()]),
897
- to: z13.tuple([TimeDomainZod, z13.number()])
1050
+ from: z15.tuple([TimeDomainZod, z15.number()]),
1051
+ to: z15.tuple([TimeDomainZod, z15.number()])
898
1052
  }
899
1053
  },
900
1054
  timeSyncViewer_currentTimeAndHash: {
901
1055
  params: {
902
- from: z13.tuple([TimeDomainZod]),
903
- to: z13.tuple([TimeDomainZod])
1056
+ from: z15.tuple([TimeDomainZod]),
1057
+ to: z15.tuple([TimeDomainZod])
904
1058
  },
905
1059
  result: {
906
- from: z13.tuple([z13.number(), z13.nullable(z13.string())]),
907
- to: z13.tuple([z13.number(), z13.nullable(z13.string())])
1060
+ from: z15.tuple([z15.number(), z15.nullable(z15.string())]),
1061
+ to: z15.tuple([z15.number(), z15.nullable(z15.string())])
908
1062
  }
909
1063
  },
910
1064
  timeSyncViewer_currentTimePayload: {
911
1065
  params: {
912
- from: z13.tuple([]),
913
- to: z13.tuple([])
1066
+ from: z15.tuple([]),
1067
+ to: z15.tuple([])
914
1068
  },
915
1069
  result: {
916
1070
  from: TimePayloadZod,
@@ -925,36 +1079,36 @@ import {
925
1079
  PermissionRequestZod,
926
1080
  RequestedPermissionZod
927
1081
  } from "@xyo-network/xl1-protocol";
928
- import { z as z14 } from "zod";
1082
+ import { z as z16 } from "zod";
929
1083
  var XyoPermissionsRpcSchemas = {
930
1084
  xyoPermissions_getPermissions: {
931
1085
  params: {
932
- to: z14.array(z14.any()).length(0),
933
- from: z14.array(z14.any()).length(0)
1086
+ to: z16.array(z16.any()).length(0),
1087
+ from: z16.array(z16.any()).length(0)
934
1088
  },
935
1089
  result: {
936
- to: z14.array(InvokerPermissionZod),
937
- from: z14.array(InvokerPermissionZod)
1090
+ to: z16.array(InvokerPermissionZod),
1091
+ from: z16.array(InvokerPermissionZod)
938
1092
  }
939
1093
  },
940
1094
  xyoPermissions_requestPermissions: {
941
1095
  params: {
942
- to: z14.tuple([z14.array(PermissionRequestZod)]),
943
- from: z14.tuple([z14.array(PermissionRequestZod)])
1096
+ to: z16.tuple([z16.array(PermissionRequestZod)]),
1097
+ from: z16.tuple([z16.array(PermissionRequestZod)])
944
1098
  },
945
1099
  result: {
946
- to: z14.array(RequestedPermissionZod),
947
- from: z14.array(RequestedPermissionZod)
1100
+ to: z16.array(RequestedPermissionZod),
1101
+ from: z16.array(RequestedPermissionZod)
948
1102
  }
949
1103
  },
950
1104
  xyoPermissions_revokePermissions: {
951
1105
  params: {
952
- to: z14.tuple([z14.array(PermissionRequestZod)]),
953
- from: z14.tuple([z14.array(PermissionRequestZod)])
1106
+ to: z16.tuple([z16.array(PermissionRequestZod)]),
1107
+ from: z16.tuple([z16.array(PermissionRequestZod)])
954
1108
  },
955
1109
  result: {
956
- to: z14.array(RequestedPermissionZod),
957
- from: z14.array(RequestedPermissionZod)
1110
+ to: z16.array(RequestedPermissionZod),
1111
+ from: z16.array(RequestedPermissionZod)
958
1112
  }
959
1113
  }
960
1114
  };
@@ -962,12 +1116,12 @@ var XyoPermissionsRpcSchemas = {
962
1116
  // src/types/schema/XyoRunnerRpcSchemas.ts
963
1117
  import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
964
1118
  import { SignedHydratedTransactionZod as SignedHydratedTransactionZod2 } from "@xyo-network/xl1-protocol";
965
- import { z as z15 } from "zod";
1119
+ import { z as z17 } from "zod";
966
1120
  var XyoRunnerRpcSchemas = {
967
1121
  xyoRunner_broadcastTransaction: {
968
1122
  params: {
969
- to: z15.tuple([SignedHydratedTransactionZod2]),
970
- from: z15.tuple([SignedHydratedTransactionZod2])
1123
+ to: z17.tuple([SignedHydratedTransactionZod2]),
1124
+ from: z17.tuple([SignedHydratedTransactionZod2])
971
1125
  },
972
1126
  result: {
973
1127
  to: HashToJsonZod,
@@ -979,12 +1133,12 @@ var XyoRunnerRpcSchemas = {
979
1133
  // src/types/schema/XyoSignerRpcSchemas.ts
980
1134
  import { AddressZod as AddressZod6 } from "@xylabs/sdk-js";
981
1135
  import { SignedHydratedTransactionWithHashMetaZod as SignedHydratedTransactionWithHashMetaZod2, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol";
982
- import { z as z16 } from "zod";
1136
+ import { z as z18 } from "zod";
983
1137
  var XyoSignerRpcSchemas = {
984
1138
  xyoSigner_address: {
985
1139
  params: {
986
- to: z16.array(z16.any()).length(0).optional(),
987
- from: z16.array(z16.any()).length(0).optional()
1140
+ to: z18.array(z18.any()).length(0).optional(),
1141
+ from: z18.array(z18.any()).length(0).optional()
988
1142
  },
989
1143
  result: {
990
1144
  to: AddressZod6,
@@ -993,8 +1147,8 @@ var XyoSignerRpcSchemas = {
993
1147
  },
994
1148
  xyoSigner_signTransaction: {
995
1149
  params: {
996
- to: z16.tuple([UnsignedHydratedTransactionZod]),
997
- from: z16.tuple([UnsignedHydratedTransactionZod])
1150
+ to: z18.tuple([UnsignedHydratedTransactionZod]),
1151
+ from: z18.tuple([UnsignedHydratedTransactionZod])
998
1152
  },
999
1153
  result: {
1000
1154
  to: SignedHydratedTransactionWithHashMetaZod2,
@@ -1006,21 +1160,22 @@ var XyoSignerRpcSchemas = {
1006
1160
  // src/types/schema/XyoViewerRpcSchemas.ts
1007
1161
  import {
1008
1162
  AddressZod as AddressZod7,
1009
- BigIntToJsonZod as BigIntToJsonZod9,
1163
+ BigIntToJsonZod as BigIntToJsonZod10,
1010
1164
  HashZod as HashZod4,
1011
1165
  HexZod,
1012
- JsonToBigIntZod as JsonToBigIntZod9
1166
+ JsonToBigIntZod as JsonToBigIntZod10
1013
1167
  } from "@xylabs/sdk-js";
1014
1168
  import { PayloadZodLoose as PayloadZodLoose2 } from "@xyo-network/payload-model";
1015
1169
  import {
1170
+ asAttoXL1 as asAttoXL16,
1016
1171
  BlockRangeZod as BlockRangeZod2,
1017
1172
  BlockRateZod as BlockRateZod2,
1018
1173
  CountZod as CountZod2,
1019
- JsonToStakeZod as JsonToStakeZod2,
1174
+ JsonToStakeZod as JsonToStakeZod3,
1020
1175
  SignedHydratedBlockWithHashMetaZod as SignedHydratedBlockWithHashMetaZod3,
1021
1176
  SignedHydratedTransactionZod as SignedHydratedTransactionZod3,
1022
1177
  SingleTimeConfigZod as SingleTimeConfigZod2,
1023
- StakeToJsonZod as StakeToJsonZod2,
1178
+ StakeToJsonZod as StakeToJsonZod3,
1024
1179
  StepIdentityZod as StepIdentityZod2,
1025
1180
  StepIndexZod as StepIndexZod2,
1026
1181
  TimeDurationsZod as TimeDurationsZod2,
@@ -1028,232 +1183,232 @@ import {
1028
1183
  XL1BlockRangeZod
1029
1184
  } from "@xyo-network/xl1-protocol";
1030
1185
  import { AccountBalanceHistoryItemZod as AccountBalanceHistoryItemZod2 } from "@xyo-network/xl1-protocol-sdk";
1031
- import { z as z17 } from "zod";
1186
+ import { z as z19 } from "zod";
1032
1187
  var XyoViewerRpcSchemas = {
1033
1188
  xyoViewer_networkStakeStepRewardClaimedByAddress: {
1034
1189
  params: {
1035
- to: z17.tuple([AddressZod7]),
1036
- from: z17.tuple([AddressZod7])
1190
+ to: z19.tuple([AddressZod7]),
1191
+ from: z19.tuple([AddressZod7])
1037
1192
  },
1038
1193
  result: {
1039
- to: BigIntToJsonZod9,
1040
- from: JsonToBigIntZod9
1194
+ to: BigIntToJsonZod10,
1195
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1041
1196
  }
1042
1197
  },
1043
1198
  xyoViewer_networkStakeStepRewardAddressReward: {
1044
1199
  params: {
1045
- to: z17.tuple([StepIdentityZod2, AddressZod7]),
1046
- from: z17.tuple([StepIdentityZod2, AddressZod7])
1200
+ to: z19.tuple([StepIdentityZod2, AddressZod7]),
1201
+ from: z19.tuple([StepIdentityZod2, AddressZod7])
1047
1202
  },
1048
1203
  result: {
1049
- to: z17.record(AddressZod7, BigIntToJsonZod9),
1050
- from: z17.record(AddressZod7, JsonToBigIntZod9)
1204
+ to: z19.record(AddressZod7, BigIntToJsonZod10),
1205
+ from: z19.record(AddressZod7, JsonToBigIntZod10.transform((val) => asAttoXL16(val)))
1051
1206
  }
1052
1207
  },
1053
1208
  xyoViewer_networkStakeStepRewardAddressHistory: {
1054
1209
  params: {
1055
- to: z17.tuple([AddressZod7]),
1056
- from: z17.tuple([AddressZod7])
1210
+ to: z19.tuple([AddressZod7]),
1211
+ from: z19.tuple([AddressZod7])
1057
1212
  },
1058
1213
  result: {
1059
- to: z17.record(AddressZod7, BigIntToJsonZod9),
1060
- from: z17.record(AddressZod7, JsonToBigIntZod9)
1214
+ to: z19.record(AddressZod7, BigIntToJsonZod10),
1215
+ from: z19.record(AddressZod7, JsonToBigIntZod10.transform((val) => asAttoXL16(val)))
1061
1216
  }
1062
1217
  },
1063
1218
  xyoViewer_networkStakeStepRewardAddressShare: {
1064
1219
  params: {
1065
- to: z17.tuple([StepIdentityZod2, AddressZod7]),
1066
- from: z17.tuple([StepIdentityZod2, AddressZod7])
1220
+ to: z19.tuple([StepIdentityZod2, AddressZod7]),
1221
+ from: z19.tuple([StepIdentityZod2, AddressZod7])
1067
1222
  },
1068
1223
  result: {
1069
- to: z17.tuple([BigIntToJsonZod9, BigIntToJsonZod9]),
1070
- from: z17.tuple([JsonToBigIntZod9, JsonToBigIntZod9])
1224
+ to: z19.tuple([BigIntToJsonZod10, BigIntToJsonZod10]),
1225
+ from: z19.tuple([JsonToBigIntZod10, JsonToBigIntZod10])
1071
1226
  }
1072
1227
  },
1073
1228
  xyoViewer_networkStakeStepRewardWeightForAddress: {
1074
1229
  params: {
1075
- to: z17.tuple([StepIdentityZod2, AddressZod7]),
1076
- from: z17.tuple([StepIdentityZod2, AddressZod7])
1230
+ to: z19.tuple([StepIdentityZod2, AddressZod7]),
1231
+ from: z19.tuple([StepIdentityZod2, AddressZod7])
1077
1232
  },
1078
1233
  result: {
1079
- to: BigIntToJsonZod9,
1080
- from: JsonToBigIntZod9
1234
+ to: BigIntToJsonZod10,
1235
+ from: JsonToBigIntZod10
1081
1236
  }
1082
1237
  },
1083
1238
  xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
1084
1239
  params: {
1085
- to: z17.tuple([AddressZod7]),
1086
- from: z17.tuple([AddressZod7])
1240
+ to: z19.tuple([AddressZod7]),
1241
+ from: z19.tuple([AddressZod7])
1087
1242
  },
1088
1243
  result: {
1089
- to: BigIntToJsonZod9,
1090
- from: JsonToBigIntZod9
1244
+ to: BigIntToJsonZod10,
1245
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1091
1246
  }
1092
1247
  },
1093
1248
  xyoViewer_networkStakeStepRewardPoolRewards: {
1094
1249
  params: {
1095
- to: z17.tuple([StepIdentityZod2]),
1096
- from: z17.tuple([StepIdentityZod2])
1250
+ to: z19.tuple([StepIdentityZod2]),
1251
+ from: z19.tuple([StepIdentityZod2])
1097
1252
  },
1098
1253
  result: {
1099
- to: z17.record(AddressZod7, BigIntToJsonZod9),
1100
- from: z17.record(AddressZod7, JsonToBigIntZod9)
1254
+ to: z19.record(AddressZod7, BigIntToJsonZod10),
1255
+ from: z19.record(AddressZod7, JsonToBigIntZod10.transform((val) => asAttoXL16(val)))
1101
1256
  }
1102
1257
  },
1103
1258
  xyoViewer_networkStakeStepRewardPositionWeight: {
1104
1259
  params: {
1105
- to: z17.tuple([StepIdentityZod2, z17.number()]),
1106
- from: z17.tuple([StepIdentityZod2, z17.number()])
1260
+ to: z19.tuple([StepIdentityZod2, z19.number()]),
1261
+ from: z19.tuple([StepIdentityZod2, z19.number()])
1107
1262
  },
1108
1263
  result: {
1109
- to: BigIntToJsonZod9,
1110
- from: JsonToBigIntZod9
1264
+ to: BigIntToJsonZod10,
1265
+ from: JsonToBigIntZod10
1111
1266
  }
1112
1267
  },
1113
1268
  xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
1114
1269
  params: {
1115
- to: z17.tuple([StepIdentityZod2, z17.number()]),
1116
- from: z17.tuple([StepIdentityZod2, z17.number()])
1270
+ to: z19.tuple([StepIdentityZod2, z19.number()]),
1271
+ from: z19.tuple([StepIdentityZod2, z19.number()])
1117
1272
  },
1118
1273
  result: {
1119
- to: BigIntToJsonZod9,
1120
- from: JsonToBigIntZod9
1274
+ to: BigIntToJsonZod10,
1275
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1121
1276
  }
1122
1277
  },
1123
1278
  xyoViewer_networkStakeStepRewardForStep: {
1124
1279
  params: {
1125
- to: z17.tuple([StepIdentityZod2]),
1126
- from: z17.tuple([StepIdentityZod2])
1280
+ to: z19.tuple([StepIdentityZod2]),
1281
+ from: z19.tuple([StepIdentityZod2])
1127
1282
  },
1128
1283
  result: {
1129
- to: BigIntToJsonZod9,
1130
- from: JsonToBigIntZod9
1284
+ to: BigIntToJsonZod10,
1285
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1131
1286
  }
1132
1287
  },
1133
1288
  xyoViewer_networkStakeStepRewardRandomizer: {
1134
1289
  params: {
1135
- to: z17.tuple([StepIdentityZod2]),
1136
- from: z17.tuple([StepIdentityZod2])
1290
+ to: z19.tuple([StepIdentityZod2]),
1291
+ from: z19.tuple([StepIdentityZod2])
1137
1292
  },
1138
1293
  result: {
1139
- to: BigIntToJsonZod9,
1140
- from: JsonToBigIntZod9
1294
+ to: BigIntToJsonZod10,
1295
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1141
1296
  }
1142
1297
  },
1143
1298
  xyoViewer_networkStakeStepRewardStakerCount: {
1144
1299
  params: {
1145
- to: z17.tuple([StepIdentityZod2]),
1146
- from: z17.tuple([StepIdentityZod2])
1300
+ to: z19.tuple([StepIdentityZod2]),
1301
+ from: z19.tuple([StepIdentityZod2])
1147
1302
  },
1148
1303
  result: {
1149
- to: z17.number(),
1150
- from: z17.number()
1304
+ to: z19.number(),
1305
+ from: z19.number()
1151
1306
  }
1152
1307
  },
1153
1308
  xyoViewer_networkStakeStepRewardPoolShares: {
1154
1309
  params: {
1155
- to: z17.tuple([StepIdentityZod2]),
1156
- from: z17.tuple([StepIdentityZod2])
1310
+ to: z19.tuple([StepIdentityZod2]),
1311
+ from: z19.tuple([StepIdentityZod2])
1157
1312
  },
1158
1313
  result: {
1159
- to: z17.record(AddressZod7, BigIntToJsonZod9),
1160
- from: z17.record(AddressZod7, JsonToBigIntZod9)
1314
+ to: z19.record(AddressZod7, BigIntToJsonZod10),
1315
+ from: z19.record(AddressZod7, JsonToBigIntZod10)
1161
1316
  }
1162
1317
  },
1163
1318
  xyoViewer_networkStakeStepRewardForStepForPosition: {
1164
1319
  params: {
1165
- to: z17.tuple([StepIdentityZod2, z17.number()]),
1166
- from: z17.tuple([StepIdentityZod2, z17.number()])
1320
+ to: z19.tuple([StepIdentityZod2, z19.number()]),
1321
+ from: z19.tuple([StepIdentityZod2, z19.number()])
1167
1322
  },
1168
1323
  result: {
1169
- to: z17.tuple([BigIntToJsonZod9, BigIntToJsonZod9]),
1170
- from: z17.tuple([JsonToBigIntZod9, JsonToBigIntZod9])
1324
+ to: z19.tuple([BigIntToJsonZod10, BigIntToJsonZod10]),
1325
+ from: z19.tuple([JsonToBigIntZod10.transform((val) => asAttoXL16(val)), JsonToBigIntZod10.transform((val) => asAttoXL16(val))])
1171
1326
  }
1172
1327
  },
1173
1328
  xyoViewer_networkStakeStepRewardForPosition: {
1174
1329
  params: {
1175
- to: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])]),
1176
- from: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])])
1330
+ to: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])]),
1331
+ from: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])])
1177
1332
  },
1178
1333
  result: {
1179
- to: z17.tuple([BigIntToJsonZod9, BigIntToJsonZod9]),
1180
- from: z17.tuple([JsonToBigIntZod9, JsonToBigIntZod9])
1334
+ to: z19.tuple([BigIntToJsonZod10, BigIntToJsonZod10]),
1335
+ from: z19.tuple([JsonToBigIntZod10.transform((val) => asAttoXL16(val)), JsonToBigIntZod10.transform((val) => asAttoXL16(val))])
1181
1336
  }
1182
1337
  },
1183
1338
  xyoViewer_networkStakeStepRewardsForRange: {
1184
1339
  params: {
1185
- to: z17.tuple([z17.tuple([z17.number(), z17.number()])]),
1186
- from: z17.tuple([z17.tuple([z17.number(), z17.number()])])
1340
+ to: z19.tuple([z19.tuple([z19.number(), z19.number()])]),
1341
+ from: z19.tuple([z19.tuple([z19.number(), z19.number()])])
1187
1342
  },
1188
1343
  result: {
1189
- to: BigIntToJsonZod9,
1190
- from: JsonToBigIntZod9
1344
+ to: BigIntToJsonZod10,
1345
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1191
1346
  }
1192
1347
  },
1193
1348
  xyoViewer_networkStakeStepRewardsForStepLevel: {
1194
1349
  params: {
1195
- to: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])]),
1196
- from: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])])
1350
+ to: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])]),
1351
+ from: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])])
1197
1352
  },
1198
1353
  result: {
1199
- to: BigIntToJsonZod9,
1200
- from: JsonToBigIntZod9
1354
+ to: BigIntToJsonZod10,
1355
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1201
1356
  }
1202
1357
  },
1203
1358
  xyoViewer_networkStakeStepRewardsForPosition: {
1204
1359
  params: {
1205
- to: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])]),
1206
- from: z17.tuple([z17.number(), z17.tuple([z17.number(), z17.number()])])
1360
+ to: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])]),
1361
+ from: z19.tuple([z19.number(), z19.tuple([z19.number(), z19.number()])])
1207
1362
  },
1208
1363
  result: {
1209
- to: z17.record(z17.string(), z17.tuple([BigIntToJsonZod9, BigIntToJsonZod9])),
1210
- from: z17.record(z17.string(), z17.tuple([JsonToBigIntZod9, JsonToBigIntZod9]))
1364
+ to: z19.record(z19.string(), z19.tuple([BigIntToJsonZod10, BigIntToJsonZod10])),
1365
+ from: z19.record(z19.string(), z19.tuple([JsonToBigIntZod10.transform((val) => asAttoXL16(val)), JsonToBigIntZod10.transform((val) => asAttoXL16(val))]))
1211
1366
  }
1212
1367
  },
1213
1368
  xyoViewer_accountBalance: {
1214
1369
  params: {
1215
- to: z17.union([z17.tuple([AddressZod7]), z17.tuple([AddressZod7, z17.union([XL1BlockRangeZod, HashZod4])])]),
1216
- from: z17.union([z17.tuple([AddressZod7]), z17.tuple([AddressZod7, z17.union([XL1BlockRangeZod, HashZod4])])])
1370
+ to: z19.union([z19.tuple([AddressZod7]), z19.tuple([AddressZod7, z19.union([XL1BlockRangeZod, HashZod4])])]),
1371
+ from: z19.union([z19.tuple([AddressZod7]), z19.tuple([AddressZod7, z19.union([XL1BlockRangeZod, HashZod4])])])
1217
1372
  },
1218
1373
  result: {
1219
- to: BigIntToJsonZod9,
1220
- from: JsonToBigIntZod9
1374
+ to: BigIntToJsonZod10,
1375
+ from: JsonToBigIntZod10.transform((val) => asAttoXL16(val))
1221
1376
  }
1222
1377
  },
1223
1378
  xyoViewer_accountBalanceHistory: {
1224
1379
  params: {
1225
- to: z17.union([z17.tuple([AddressZod7]), z17.tuple([AddressZod7, z17.union([XL1BlockRangeZod, HashZod4])])]),
1226
- from: z17.union([z17.tuple([AddressZod7]), z17.tuple([AddressZod7, z17.union([XL1BlockRangeZod, HashZod4])])])
1380
+ to: z19.union([z19.tuple([AddressZod7]), z19.tuple([AddressZod7, z19.union([XL1BlockRangeZod, HashZod4])])]),
1381
+ from: z19.union([z19.tuple([AddressZod7]), z19.tuple([AddressZod7, z19.union([XL1BlockRangeZod, HashZod4])])])
1227
1382
  },
1228
1383
  result: {
1229
- to: z17.array(AccountBalanceHistoryItemZod2),
1230
- from: z17.array(AccountBalanceHistoryItemZod2)
1384
+ to: z19.array(AccountBalanceHistoryItemZod2),
1385
+ from: z19.array(AccountBalanceHistoryItemZod2)
1231
1386
  }
1232
1387
  },
1233
1388
  xyoViewer_blocksByNumber: {
1234
1389
  params: {
1235
- to: z17.tuple([XL1BlockNumberZod2, z17.number().optional()]),
1236
- from: z17.tuple([XL1BlockNumberZod2, z17.number().optional()])
1390
+ to: z19.tuple([XL1BlockNumberZod2, z19.number().optional()]),
1391
+ from: z19.tuple([XL1BlockNumberZod2, z19.number().optional()])
1237
1392
  },
1238
1393
  result: {
1239
- to: z17.array(SignedHydratedBlockWithHashMetaZod3),
1240
- from: z17.array(SignedHydratedBlockWithHashMetaZod3)
1394
+ to: z19.array(SignedHydratedBlockWithHashMetaZod3),
1395
+ from: z19.array(SignedHydratedBlockWithHashMetaZod3)
1241
1396
  }
1242
1397
  },
1243
1398
  xyoViewer_blocksByHash: {
1244
1399
  params: {
1245
- to: z17.tuple([HashZod4, z17.number().optional()]),
1246
- from: z17.tuple([HashZod4, z17.number().optional()])
1400
+ to: z19.tuple([HashZod4, z19.number().optional()]),
1401
+ from: z19.tuple([HashZod4, z19.number().optional()])
1247
1402
  },
1248
1403
  result: {
1249
- to: z17.array(SignedHydratedBlockWithHashMetaZod3),
1250
- from: z17.array(SignedHydratedBlockWithHashMetaZod3)
1404
+ to: z19.array(SignedHydratedBlockWithHashMetaZod3),
1405
+ from: z19.array(SignedHydratedBlockWithHashMetaZod3)
1251
1406
  }
1252
1407
  },
1253
1408
  xyoViewer_currentBlock: {
1254
1409
  params: {
1255
- to: z17.array(z17.any()).length(0).optional(),
1256
- from: z17.array(z17.any()).length(0).optional()
1410
+ to: z19.array(z19.any()).length(0).optional(),
1411
+ from: z19.array(z19.any()).length(0).optional()
1257
1412
  },
1258
1413
  result: {
1259
1414
  to: SignedHydratedBlockWithHashMetaZod3,
@@ -1262,58 +1417,58 @@ var XyoViewerRpcSchemas = {
1262
1417
  },
1263
1418
  xyoViewer_forkHistory: {
1264
1419
  params: {
1265
- to: z17.array(z17.any()).length(0).optional(),
1266
- from: z17.array(z17.any()).length(0).optional()
1420
+ to: z19.array(z19.any()).length(0).optional(),
1421
+ from: z19.array(z19.any()).length(0).optional()
1267
1422
  },
1268
1423
  result: {
1269
- to: z17.record(z17.number(), HexZod),
1270
- from: z17.record(z17.number(), HexZod)
1424
+ to: z19.record(z19.number(), HexZod),
1425
+ from: z19.record(z19.number(), HexZod)
1271
1426
  }
1272
1427
  },
1273
1428
  xyoViewer_stakeByStaker: {
1274
1429
  params: {
1275
- to: z17.tuple([AddressZod7, z17.number()]),
1276
- from: z17.tuple([AddressZod7, z17.number()])
1430
+ to: z19.tuple([AddressZod7, z19.number()]),
1431
+ from: z19.tuple([AddressZod7, z19.number()])
1277
1432
  },
1278
1433
  result: {
1279
- to: StakeToJsonZod2,
1280
- from: JsonToStakeZod2
1434
+ to: StakeToJsonZod3,
1435
+ from: JsonToStakeZod3
1281
1436
  }
1282
1437
  },
1283
1438
  xyoViewer_stakeById: {
1284
1439
  params: {
1285
- to: z17.tuple([z17.number()]),
1286
- from: z17.tuple([z17.number()])
1440
+ to: z19.tuple([z19.number()]),
1441
+ from: z19.tuple([z19.number()])
1287
1442
  },
1288
1443
  result: {
1289
- to: StakeToJsonZod2,
1290
- from: JsonToStakeZod2
1444
+ to: StakeToJsonZod3,
1445
+ from: JsonToStakeZod3
1291
1446
  }
1292
1447
  },
1293
1448
  xyoViewer_stakesByStaker: {
1294
1449
  params: {
1295
- to: z17.tuple([AddressZod7]),
1296
- from: z17.tuple([AddressZod7])
1450
+ to: z19.tuple([AddressZod7]),
1451
+ from: z19.tuple([AddressZod7])
1297
1452
  },
1298
1453
  result: {
1299
- to: z17.array(StakeToJsonZod2),
1300
- from: z17.array(JsonToStakeZod2)
1454
+ to: z19.array(StakeToJsonZod3),
1455
+ from: z19.array(JsonToStakeZod3)
1301
1456
  }
1302
1457
  },
1303
1458
  xyoViewer_stakesByStaked: {
1304
1459
  params: {
1305
- to: z17.tuple([AddressZod7]),
1306
- from: z17.tuple([AddressZod7])
1460
+ to: z19.tuple([AddressZod7]),
1461
+ from: z19.tuple([AddressZod7])
1307
1462
  },
1308
1463
  result: {
1309
- to: z17.array(StakeToJsonZod2),
1310
- from: z17.array(JsonToStakeZod2)
1464
+ to: z19.array(StakeToJsonZod3),
1465
+ from: z19.array(JsonToStakeZod3)
1311
1466
  }
1312
1467
  },
1313
1468
  xyoViewer_transactionByBlockHashAndIndex: {
1314
1469
  params: {
1315
- to: z17.tuple([HashZod4, z17.number()]),
1316
- from: z17.tuple([HashZod4, z17.number()])
1470
+ to: z19.tuple([HashZod4, z19.number()]),
1471
+ from: z19.tuple([HashZod4, z19.number()])
1317
1472
  },
1318
1473
  result: {
1319
1474
  to: SignedHydratedTransactionZod3.nullable(),
@@ -1322,8 +1477,8 @@ var XyoViewerRpcSchemas = {
1322
1477
  },
1323
1478
  xyoViewer_transactionByBlockNumberAndIndex: {
1324
1479
  params: {
1325
- to: z17.tuple([z17.number(), z17.number()]),
1326
- from: z17.tuple([z17.number(), z17.number()])
1480
+ to: z19.tuple([z19.number(), z19.number()]),
1481
+ from: z19.tuple([z19.number(), z19.number()])
1327
1482
  },
1328
1483
  result: {
1329
1484
  to: SignedHydratedTransactionZod3.nullable(),
@@ -1332,8 +1487,8 @@ var XyoViewerRpcSchemas = {
1332
1487
  },
1333
1488
  xyoViewer_transactionByHash: {
1334
1489
  params: {
1335
- to: z17.tuple([HashZod4]),
1336
- from: z17.tuple([HashZod4])
1490
+ to: z19.tuple([HashZod4]),
1491
+ from: z19.tuple([HashZod4])
1337
1492
  },
1338
1493
  result: {
1339
1494
  to: SignedHydratedTransactionZod3.nullable(),
@@ -1342,18 +1497,18 @@ var XyoViewerRpcSchemas = {
1342
1497
  },
1343
1498
  xyoViewer_payloadsByHash: {
1344
1499
  params: {
1345
- to: z17.tuple([z17.array(HashZod4)]),
1346
- from: z17.tuple([z17.array(HashZod4)])
1500
+ to: z19.tuple([z19.array(HashZod4)]),
1501
+ from: z19.tuple([z19.array(HashZod4)])
1347
1502
  },
1348
1503
  result: {
1349
- to: z17.array(PayloadZodLoose2),
1350
- from: z17.array(PayloadZodLoose2)
1504
+ to: z19.array(PayloadZodLoose2),
1505
+ from: z19.array(PayloadZodLoose2)
1351
1506
  }
1352
1507
  },
1353
1508
  xyoViewer_rate: {
1354
1509
  params: {
1355
- to: z17.tuple([BlockRangeZod2, TimeDurationsZod2.keyof().optional()]),
1356
- from: z17.tuple([BlockRangeZod2, TimeDurationsZod2.keyof().optional()])
1510
+ to: z19.tuple([BlockRangeZod2, TimeDurationsZod2.keyof().optional()]),
1511
+ from: z19.tuple([BlockRangeZod2, TimeDurationsZod2.keyof().optional()])
1357
1512
  },
1358
1513
  result: {
1359
1514
  to: BlockRateZod2,
@@ -1362,8 +1517,8 @@ var XyoViewerRpcSchemas = {
1362
1517
  },
1363
1518
  xyoViewer_stepSizeRate: {
1364
1519
  params: {
1365
- to: z17.tuple([XL1BlockNumberZod2, StepIndexZod2, CountZod2.optional(), TimeDurationsZod2.keyof().optional()]),
1366
- from: z17.tuple([BlockRateZod2])
1520
+ to: z19.tuple([XL1BlockNumberZod2, StepIndexZod2, CountZod2.optional(), TimeDurationsZod2.keyof().optional()]),
1521
+ from: z19.tuple([BlockRateZod2])
1367
1522
  },
1368
1523
  result: {
1369
1524
  to: BlockRateZod2,
@@ -1372,8 +1527,8 @@ var XyoViewerRpcSchemas = {
1372
1527
  },
1373
1528
  xyoViewer_timeDurationRate: {
1374
1529
  params: {
1375
- to: z17.tuple([SingleTimeConfigZod2, XL1BlockNumberZod2.optional(), TimeDurationsZod2.keyof().optional(), z17.number().optional(), z17.number().optional()]),
1376
- from: z17.tuple([BlockRateZod2])
1530
+ to: z19.tuple([SingleTimeConfigZod2, XL1BlockNumberZod2.optional(), TimeDurationsZod2.keyof().optional(), z19.number().optional(), z19.number().optional()]),
1531
+ from: z19.tuple([BlockRateZod2])
1377
1532
  },
1378
1533
  result: {
1379
1534
  to: BlockRateZod2,
@@ -1397,6 +1552,7 @@ var AllRpcSchemas = {
1397
1552
  ...StepViewerRpcSchemas,
1398
1553
  ...DataLakeViewerRpcSchemas,
1399
1554
  ...StakeTotalsViewerRpcSchemas,
1555
+ ...StakeViewerRpcSchemas,
1400
1556
  ...NetworkStakingStepRewardsViewerRpcSchemas,
1401
1557
  ...NetworkStakingStepRewardsTotalViewerRpcSchemas,
1402
1558
  ...NetworkStakingStepRewardsByStepViewerRpcSchemas,
@@ -1405,19 +1561,19 @@ var AllRpcSchemas = {
1405
1561
  };
1406
1562
 
1407
1563
  // src/types/schema/createRequestSchema.ts
1408
- import { z as z18 } from "zod";
1409
- var createRequestSchema = (methodName, paramsSchema = z18.undefined()) => z18.object({
1410
- id: z18.union([z18.string(), z18.number()]),
1411
- jsonrpc: z18.literal(jsonrpc),
1412
- method: z18.literal(methodName),
1564
+ import { z as z20 } from "zod";
1565
+ var createRequestSchema = (methodName, paramsSchema = z20.undefined()) => z20.object({
1566
+ id: z20.union([z20.string(), z20.number()]),
1567
+ jsonrpc: z20.literal(jsonrpc),
1568
+ method: z20.literal(methodName),
1413
1569
  params: paramsSchema
1414
1570
  });
1415
1571
 
1416
1572
  // src/types/schema/createResponseSchema.ts
1417
- import { z as z19 } from "zod";
1418
- var createResponseSchema = (resultSchema = z19.undefined()) => z19.object({
1419
- id: z19.union([z19.string(), z19.number()]),
1420
- jsonrpc: z19.literal(jsonrpc),
1573
+ import { z as z21 } from "zod";
1574
+ var createResponseSchema = (resultSchema = z21.undefined()) => z21.object({
1575
+ id: z21.union([z21.string(), z21.number()]),
1576
+ jsonrpc: z21.literal(jsonrpc),
1421
1577
  result: resultSchema
1422
1578
  });
1423
1579
 
@@ -1442,7 +1598,7 @@ import {
1442
1598
  } from "@xylabs/sdk-js";
1443
1599
  import { Axios, isAxiosError } from "axios";
1444
1600
  import { v4 } from "uuid";
1445
- import { z as z20 } from "zod";
1601
+ import { z as z22 } from "zod";
1446
1602
  var HttpRpcTransport = class {
1447
1603
  _passThrough;
1448
1604
  _rpcUrl;
@@ -1465,7 +1621,7 @@ var HttpRpcTransport = class {
1465
1621
  };
1466
1622
  const schema = schemas[method];
1467
1623
  if (params) {
1468
- body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z20.json().parse(params) : void 0;
1624
+ body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z22.json().parse(params) : void 0;
1469
1625
  if (!isDefined(body.params)) {
1470
1626
  throw new Error(`[callRpc] RPC method ${String(method)} missing schema`);
1471
1627
  }
@@ -1851,9 +2007,86 @@ JsonRpcStakeTotalsViewer = __decorateClass([
1851
2007
  creatableProvider6()
1852
2008
  ], JsonRpcStakeTotalsViewer);
1853
2009
 
1854
- // src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.ts
2010
+ // src/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.ts
1855
2011
  import {
1856
2012
  creatableProvider as creatableProvider7,
2013
+ StakeEventsViewerMoniker,
2014
+ StakeTotalsViewerMoniker as StakeTotalsViewerMoniker3,
2015
+ StakeViewerMoniker as StakeViewerMoniker2
2016
+ } from "@xyo-network/xl1-protocol-sdk";
2017
+
2018
+ // src/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewerMethods.ts
2019
+ import { StakeViewerMoniker } from "@xyo-network/xl1-protocol-sdk";
2020
+ var JsonRpcStakeViewerMethods = class extends AbstractJsonRpcViewer {
2021
+ moniker = StakeViewerMoniker;
2022
+ async active(time) {
2023
+ return await this.transport.sendRequest("stakeViewer_active", [time]);
2024
+ }
2025
+ async activeByAddressStaked(address, time) {
2026
+ return await this.transport.sendRequest("stakeViewer_activeByAddressStaked", [address, time]);
2027
+ }
2028
+ async activeByStaker(address, time) {
2029
+ return await this.transport.sendRequest("stakeViewer_activeByStaker", [address, time]);
2030
+ }
2031
+ async minWithdrawalBlocks() {
2032
+ return await this.transport.sendRequest("stakeViewer_minWithdrawalBlocks", []);
2033
+ }
2034
+ async pending(time) {
2035
+ return await this.transport.sendRequest("stakeViewer_pending", [time]);
2036
+ }
2037
+ async pendingByStaker(staker, time) {
2038
+ return await this.transport.sendRequest("stakeViewer_pendingByStaker", [staker, time]);
2039
+ }
2040
+ async rewardsContract() {
2041
+ return await this.transport.sendRequest("stakeViewer_rewardsContract", []);
2042
+ }
2043
+ async stakeById(id) {
2044
+ return await this.transport.sendRequest("stakeViewer_stakeById", [id]);
2045
+ }
2046
+ async stakeByStaker(staker, slot) {
2047
+ return await this.transport.sendRequest("stakeViewer_stakeByStaker", [staker, slot]);
2048
+ }
2049
+ async stakesByStaked(staked) {
2050
+ return await this.transport.sendRequest("stakeViewer_stakesByStaked", [staked]);
2051
+ }
2052
+ async stakesByStaker(staker) {
2053
+ return await this.transport.sendRequest("stakeViewer_stakesByStaker", [staker]);
2054
+ }
2055
+ async stakingTokenAddress() {
2056
+ return await this.transport.sendRequest("stakeViewer_stakingTokenAddress", []);
2057
+ }
2058
+ async withdrawn(time) {
2059
+ return await this.transport.sendRequest("stakeViewer_withdrawn", [time]);
2060
+ }
2061
+ async withdrawnByStaker(staker, time) {
2062
+ return await this.transport.sendRequest("stakeViewer_withdrawnByStaker", [staker, time]);
2063
+ }
2064
+ schemas() {
2065
+ return StakeViewerRpcSchemas;
2066
+ }
2067
+ };
2068
+
2069
+ // src/provider/viewer/JsonRpcStakeViewer/JsonRpcStakeViewer.ts
2070
+ var JsonRpcStakeViewer = class extends JsonRpcStakeViewerMethods {
2071
+ _stakeEvents;
2072
+ get stakeEvents() {
2073
+ return this._stakeEvents;
2074
+ }
2075
+ async createHandler() {
2076
+ await super.createHandler();
2077
+ this._stakeEvents = await this.locator.getInstance(StakeEventsViewerMoniker);
2078
+ }
2079
+ };
2080
+ __publicField(JsonRpcStakeViewer, "defaultMoniker", StakeViewerMoniker2);
2081
+ __publicField(JsonRpcStakeViewer, "dependencies", []);
2082
+ __publicField(JsonRpcStakeViewer, "monikers", [StakeTotalsViewerMoniker3]);
2083
+ JsonRpcStakeViewer = __decorateClass([
2084
+ creatableProvider7()
2085
+ ], JsonRpcStakeViewer);
2086
+
2087
+ // src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.ts
2088
+ import {
2089
+ creatableProvider as creatableProvider8,
1857
2090
  TimeSyncViewerMoniker as TimeSyncViewerMoniker2
1858
2091
  } from "@xyo-network/xl1-protocol-sdk";
1859
2092
 
@@ -1885,7 +2118,7 @@ __publicField(JsonRpcTimeSyncViewer, "defaultMoniker", TimeSyncViewerMoniker2);
1885
2118
  __publicField(JsonRpcTimeSyncViewer, "dependencies", []);
1886
2119
  __publicField(JsonRpcTimeSyncViewer, "monikers", [TimeSyncViewerMoniker2]);
1887
2120
  JsonRpcTimeSyncViewer = __decorateClass([
1888
- creatableProvider7()
2121
+ creatableProvider8()
1889
2122
  ], JsonRpcTimeSyncViewer);
1890
2123
 
1891
2124
  // src/provider/viewer/JsonRpcXyoViewer.ts
@@ -1897,7 +2130,7 @@ import {
1897
2130
  import {
1898
2131
  AccountBalanceViewerMoniker as AccountBalanceViewerMoniker3,
1899
2132
  BlockViewerMoniker as BlockViewerMoniker3,
1900
- creatableProvider as creatableProvider8,
2133
+ creatableProvider as creatableProvider9,
1901
2134
  MempoolViewerMoniker as MempoolViewerMoniker3,
1902
2135
  NetworkStakeViewerMoniker as NetworkStakeViewerMoniker3,
1903
2136
  StepViewerMoniker,
@@ -1920,6 +2153,7 @@ var JsonRpcXyoViewer = class extends AbstractJsonRpcViewer {
1920
2153
  _blockViewer;
1921
2154
  _mempoolViewer;
1922
2155
  _networkStakeViewer;
2156
+ _stakeViewer;
1923
2157
  _stepViewer;
1924
2158
  _timeSyncViewer;
1925
2159
  get account() {
@@ -1934,6 +2168,9 @@ var JsonRpcXyoViewer = class extends AbstractJsonRpcViewer {
1934
2168
  get networkStake() {
1935
2169
  return this._networkStakeViewer;
1936
2170
  }
2171
+ get stake() {
2172
+ return this._stakeViewer;
2173
+ }
1937
2174
  get step() {
1938
2175
  return this._stepViewer;
1939
2176
  }
@@ -2100,7 +2337,7 @@ __publicField(JsonRpcXyoViewer, "dependencies", [
2100
2337
  ]);
2101
2338
  __publicField(JsonRpcXyoViewer, "monikers", [XyoViewerMoniker]);
2102
2339
  JsonRpcXyoViewer = __decorateClass([
2103
- creatableProvider8()
2340
+ creatableProvider9()
2104
2341
  ], JsonRpcXyoViewer);
2105
2342
 
2106
2343
  // src/provider/datalake/JsonRpcDataLakeViewerMethods.ts
@@ -2127,7 +2364,7 @@ var JsonRpcDataLakeViewer = class extends JsonRpcDataLakeViewerMethods {
2127
2364
  };
2128
2365
  __publicField(JsonRpcDataLakeViewer, "dependencies", []);
2129
2366
  JsonRpcDataLakeViewer = __decorateClass([
2130
- creatableProvider9()
2367
+ creatableProvider10()
2131
2368
  ], JsonRpcDataLakeViewer);
2132
2369
 
2133
2370
  // src/provider/permissions/RpcXyoPermissions.ts
@@ -2150,7 +2387,7 @@ var RpcXyoPermissions = class {
2150
2387
 
2151
2388
  // src/provider/runner/JsonRpcMempoolRunner/JsonRpcMempoolRunner.ts
2152
2389
  import {
2153
- creatableProvider as creatableProvider10,
2390
+ creatableProvider as creatableProvider11,
2154
2391
  MempoolRunnerMoniker as MempoolRunnerMoniker2
2155
2392
  } from "@xyo-network/xl1-protocol-sdk";
2156
2393
 
@@ -2206,11 +2443,11 @@ __publicField(JsonRpcMempoolRunner, "defaultMoniker", MempoolRunnerMoniker2);
2206
2443
  __publicField(JsonRpcMempoolRunner, "dependencies", []);
2207
2444
  __publicField(JsonRpcMempoolRunner, "monikers", [MempoolRunnerMoniker2]);
2208
2445
  JsonRpcMempoolRunner = __decorateClass([
2209
- creatableProvider10()
2446
+ creatableProvider11()
2210
2447
  ], JsonRpcMempoolRunner);
2211
2448
 
2212
2449
  // src/provider/runner/JsonRpcXyoRunner.ts
2213
- import { creatableProvider as creatableProvider11, XyoRunnerMoniker } from "@xyo-network/xl1-protocol-sdk";
2450
+ import { creatableProvider as creatableProvider12, XyoRunnerMoniker } from "@xyo-network/xl1-protocol-sdk";
2214
2451
  var JsonRpcXyoRunner = class extends AbstractJsonRpcRunner {
2215
2452
  moniker = JsonRpcXyoRunner.defaultMoniker;
2216
2453
  _mempoolRunner;
@@ -2228,7 +2465,7 @@ __publicField(JsonRpcXyoRunner, "defaultMoniker", XyoRunnerMoniker);
2228
2465
  __publicField(JsonRpcXyoRunner, "dependencies", []);
2229
2466
  __publicField(JsonRpcXyoRunner, "monikers", [XyoRunnerMoniker]);
2230
2467
  JsonRpcXyoRunner = __decorateClass([
2231
- creatableProvider11()
2468
+ creatableProvider12()
2232
2469
  ], JsonRpcXyoRunner);
2233
2470
 
2234
2471
  // src/provider/runner/NodeXyoRunner.ts
@@ -2236,7 +2473,7 @@ import { assertEx as assertEx2 } from "@xylabs/sdk-js";
2236
2473
  import { asArchivistInstance } from "@xyo-network/archivist-model";
2237
2474
  import {
2238
2475
  AbstractCreatableProvider as AbstractCreatableProvider3,
2239
- creatableProvider as creatableProvider12,
2476
+ creatableProvider as creatableProvider13,
2240
2477
  SimpleMempoolRunner,
2241
2478
  XyoRunnerMoniker as XyoRunnerMoniker2
2242
2479
  } from "@xyo-network/xl1-protocol-sdk";
@@ -2292,7 +2529,7 @@ __publicField(NodeXyoRunner, "defaultMoniker", XyoRunnerMoniker2);
2292
2529
  __publicField(NodeXyoRunner, "dependencies", []);
2293
2530
  __publicField(NodeXyoRunner, "monikers", [XyoRunnerMoniker2]);
2294
2531
  NodeXyoRunner = __decorateClass([
2295
- creatableProvider12()
2532
+ creatableProvider13()
2296
2533
  ], NodeXyoRunner);
2297
2534
 
2298
2535
  // src/provider/signer/JsonRpcXyoSigner.ts
@@ -2333,6 +2570,8 @@ export {
2333
2570
  JsonRpcNetworkStakingStepRewardsViewer,
2334
2571
  JsonRpcStakeTotalsViewer,
2335
2572
  JsonRpcStakeTotalsViewerMethods,
2573
+ JsonRpcStakeViewer,
2574
+ JsonRpcStakeViewerMethods,
2336
2575
  JsonRpcTimeSyncViewer,
2337
2576
  JsonRpcTimeSyncViewerMethods,
2338
2577
  JsonRpcXyoRunner,
@@ -2352,10 +2591,12 @@ export {
2352
2591
  NetworkStakingStepRewardsTotalViewerRpcSchemas,
2353
2592
  NetworkStakingStepRewardsViewerRpcNamespace,
2354
2593
  NetworkStakingStepRewardsViewerRpcSchemas,
2594
+ NoArgsZod,
2355
2595
  NodeXyoRunner,
2356
2596
  RpcXyoPermissions,
2357
2597
  RpcXyoSigner,
2358
2598
  StakeTotalsViewerRpcSchemas,
2599
+ StakeViewerRpcSchemas,
2359
2600
  TimeSyncViewerRpcSchemas,
2360
2601
  XyoPermissionsRpcSchemas,
2361
2602
  XyoRunnerRpcSchemas,