@xyo-network/xl1-rpc 1.15.3 → 1.15.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 (36) hide show
  1. package/dist/neutral/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
  2. package/dist/neutral/index.mjs +64 -25
  3. package/dist/neutral/index.mjs.map +1 -1
  4. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +13 -12
  5. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  6. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +22 -0
  7. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  8. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +22 -0
  9. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  10. package/dist/neutral/types/schema/common/StepIdentity.d.ts +6 -0
  11. package/dist/neutral/types/schema/common/StepIdentity.d.ts.map +1 -0
  12. package/dist/neutral/types/schema/common/index.d.ts +1 -1
  13. package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
  14. package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
  15. package/dist/node/index-node.mjs +64 -25
  16. package/dist/node/index-node.mjs.map +1 -1
  17. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +13 -12
  18. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  19. package/dist/node/types/schema/AllRpcSchemas.d.ts +22 -0
  20. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  21. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +22 -0
  22. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  23. package/dist/node/types/schema/common/StepIdentity.d.ts +6 -0
  24. package/dist/node/types/schema/common/StepIdentity.d.ts.map +1 -0
  25. package/dist/node/types/schema/common/index.d.ts +1 -1
  26. package/dist/node/types/schema/common/index.d.ts.map +1 -1
  27. package/package.json +5 -5
  28. package/src/engine/rpcMethodHandlersFromViewer.ts +1 -0
  29. package/src/provider/viewer/JsonRpcXyoViewer.ts +16 -12
  30. package/src/types/schema/XyoViewerRpcSchemas.ts +37 -23
  31. package/src/types/schema/common/{StepContext.ts → StepIdentity.ts} +1 -1
  32. package/src/types/schema/common/index.ts +1 -1
  33. package/dist/neutral/types/schema/common/StepContext.d.ts +0 -6
  34. package/dist/neutral/types/schema/common/StepContext.d.ts.map +0 -1
  35. package/dist/node/types/schema/common/StepContext.d.ts +0 -6
  36. package/dist/node/types/schema/common/StepContext.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rpcMethodHandlersFromViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,SAAS,KAAG,0BAwC/D,CAAA"}
1
+ {"version":3,"file":"rpcMethodHandlersFromViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,SAAS,KAAG,0BAyC/D,CAAA"}
@@ -37,6 +37,7 @@ var rpcMethodHandlersFromViewer = /* @__PURE__ */ __name((viewer) => {
37
37
  xyoViewer_networkStakeStepRewardRandomizer: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardRandomizer?.(...params ?? []), "xyoViewer_networkStakeStepRewardRandomizer"),
38
38
  xyoViewer_networkStakeStepRewardStakerCount: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardStakerCount?.(...params ?? []), "xyoViewer_networkStakeStepRewardStakerCount"),
39
39
  xyoViewer_networkStakeStepRewardForStepForPosition: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardForStepForPosition?.(...params ?? []), "xyoViewer_networkStakeStepRewardForStepForPosition"),
40
+ xyoViewer_networkStakeStepRewardForPosition: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardForPosition?.(...params ?? []), "xyoViewer_networkStakeStepRewardForPosition"),
40
41
  xyoViewer_accountBalance: /* @__PURE__ */ __name((params) => viewer.accountBalance(...params ?? []), "xyoViewer_accountBalance"),
41
42
  xyoViewer_accountBalanceHistory: /* @__PURE__ */ __name((params) => viewer.accountBalanceHistory(...params ?? []), "xyoViewer_accountBalanceHistory"),
42
43
  xyoViewer_blockByHash: /* @__PURE__ */ __name((params) => viewer.blockByHash(...params ?? []), "xyoViewer_blockByHash"),
@@ -443,9 +444,9 @@ var JsonToStakeZod = StakeZod.extend({
443
444
  withdrawBlock: val.withdrawBlock
444
445
  }));
445
446
 
446
- // src/types/schema/common/StepContext.ts
447
+ // src/types/schema/common/StepIdentity.ts
447
448
  import * as z14 from "zod";
448
- var StepContextZod = z14.object({
449
+ var StepIdentityZod = z14.object({
449
450
  block: z14.number(),
450
451
  step: z14.number()
451
452
  });
@@ -640,13 +641,13 @@ var XyoViewerRpcSchemas = {
640
641
  params: {
641
642
  to: z20.union([
642
643
  z20.tuple([
643
- StepContextZod,
644
+ StepIdentityZod,
644
645
  AddressZod
645
646
  ])
646
647
  ]),
647
648
  from: z20.union([
648
649
  z20.tuple([
649
- StepContextZod,
650
+ StepIdentityZod,
650
651
  AddressZod
651
652
  ])
652
653
  ])
@@ -678,13 +679,13 @@ var XyoViewerRpcSchemas = {
678
679
  params: {
679
680
  to: z20.union([
680
681
  z20.tuple([
681
- StepContextZod,
682
+ StepIdentityZod,
682
683
  AddressZod
683
684
  ])
684
685
  ]),
685
686
  from: z20.union([
686
687
  z20.tuple([
687
- StepContextZod,
688
+ StepIdentityZod,
688
689
  AddressZod
689
690
  ])
690
691
  ])
@@ -704,13 +705,13 @@ var XyoViewerRpcSchemas = {
704
705
  params: {
705
706
  to: z20.union([
706
707
  z20.tuple([
707
- StepContextZod,
708
+ StepIdentityZod,
708
709
  AddressZod
709
710
  ])
710
711
  ]),
711
712
  from: z20.union([
712
713
  z20.tuple([
713
- StepContextZod,
714
+ StepIdentityZod,
714
715
  AddressZod
715
716
  ])
716
717
  ])
@@ -742,12 +743,12 @@ var XyoViewerRpcSchemas = {
742
743
  params: {
743
744
  to: z20.union([
744
745
  z20.tuple([
745
- StepContextZod
746
+ StepIdentityZod
746
747
  ])
747
748
  ]),
748
749
  from: z20.union([
749
750
  z20.tuple([
750
- StepContextZod
751
+ StepIdentityZod
751
752
  ])
752
753
  ])
753
754
  },
@@ -760,13 +761,13 @@ var XyoViewerRpcSchemas = {
760
761
  params: {
761
762
  to: z20.union([
762
763
  z20.tuple([
763
- StepContextZod,
764
+ StepIdentityZod,
764
765
  z20.number()
765
766
  ])
766
767
  ]),
767
768
  from: z20.union([
768
769
  z20.tuple([
769
- StepContextZod,
770
+ StepIdentityZod,
770
771
  z20.number()
771
772
  ])
772
773
  ])
@@ -780,13 +781,13 @@ var XyoViewerRpcSchemas = {
780
781
  params: {
781
782
  to: z20.union([
782
783
  z20.tuple([
783
- StepContextZod,
784
+ StepIdentityZod,
784
785
  z20.number()
785
786
  ])
786
787
  ]),
787
788
  from: z20.union([
788
789
  z20.tuple([
789
- StepContextZod,
790
+ StepIdentityZod,
790
791
  z20.number()
791
792
  ])
792
793
  ])
@@ -800,12 +801,12 @@ var XyoViewerRpcSchemas = {
800
801
  params: {
801
802
  to: z20.union([
802
803
  z20.tuple([
803
- StepContextZod
804
+ StepIdentityZod
804
805
  ])
805
806
  ]),
806
807
  from: z20.union([
807
808
  z20.tuple([
808
- StepContextZod
809
+ StepIdentityZod
809
810
  ])
810
811
  ])
811
812
  },
@@ -818,12 +819,12 @@ var XyoViewerRpcSchemas = {
818
819
  params: {
819
820
  to: z20.union([
820
821
  z20.tuple([
821
- StepContextZod
822
+ StepIdentityZod
822
823
  ])
823
824
  ]),
824
825
  from: z20.union([
825
826
  z20.tuple([
826
- StepContextZod
827
+ StepIdentityZod
827
828
  ])
828
829
  ])
829
830
  },
@@ -836,12 +837,12 @@ var XyoViewerRpcSchemas = {
836
837
  params: {
837
838
  to: z20.union([
838
839
  z20.tuple([
839
- StepContextZod
840
+ StepIdentityZod
840
841
  ])
841
842
  ]),
842
843
  from: z20.union([
843
844
  z20.tuple([
844
- StepContextZod
845
+ StepIdentityZod
845
846
  ])
846
847
  ])
847
848
  },
@@ -854,12 +855,12 @@ var XyoViewerRpcSchemas = {
854
855
  params: {
855
856
  to: z20.union([
856
857
  z20.tuple([
857
- StepContextZod
858
+ StepIdentityZod
858
859
  ])
859
860
  ]),
860
861
  from: z20.union([
861
862
  z20.tuple([
862
- StepContextZod
863
+ StepIdentityZod
863
864
  ])
864
865
  ])
865
866
  },
@@ -872,13 +873,13 @@ var XyoViewerRpcSchemas = {
872
873
  params: {
873
874
  to: z20.union([
874
875
  z20.tuple([
875
- StepContextZod,
876
+ StepIdentityZod,
876
877
  z20.number()
877
878
  ])
878
879
  ]),
879
880
  from: z20.union([
880
881
  z20.tuple([
881
- StepContextZod,
882
+ StepIdentityZod,
882
883
  z20.number()
883
884
  ])
884
885
  ])
@@ -894,6 +895,38 @@ var XyoViewerRpcSchemas = {
894
895
  ])
895
896
  }
896
897
  },
898
+ xyoViewer_networkStakeStepRewardForPosition: {
899
+ params: {
900
+ to: z20.union([
901
+ z20.tuple([
902
+ z20.number(),
903
+ z20.tuple([
904
+ z20.number(),
905
+ z20.number()
906
+ ])
907
+ ])
908
+ ]),
909
+ from: z20.union([
910
+ z20.tuple([
911
+ z20.number(),
912
+ z20.tuple([
913
+ z20.number(),
914
+ z20.number()
915
+ ])
916
+ ])
917
+ ])
918
+ },
919
+ result: {
920
+ to: z20.tuple([
921
+ BigIntToJsonZod3,
922
+ BigIntToJsonZod3
923
+ ]),
924
+ from: z20.tuple([
925
+ JsonToBigIntZod2,
926
+ JsonToBigIntZod2
927
+ ])
928
+ }
929
+ },
897
930
  xyoViewer_accountBalance: {
898
931
  params: {
899
932
  to: z20.union([
@@ -1807,6 +1840,12 @@ var JsonRpcXyoViewer = class {
1807
1840
  address
1808
1841
  ]);
1809
1842
  }
1843
+ async networkStakeStepRewardForPosition(position, range) {
1844
+ return await this.transport.sendRequest("xyoViewer_networkStakeStepRewardForPosition", [
1845
+ position,
1846
+ range
1847
+ ]);
1848
+ }
1810
1849
  async networkStakeStepRewardForStep(context) {
1811
1850
  return await this.transport.sendRequest("xyoViewer_networkStakeStepRewardForStep", [
1812
1851
  context
@@ -2354,7 +2393,7 @@ export {
2354
2393
  SignedTransactionBoundWitnessZod,
2355
2394
  StakeToJsonZod,
2356
2395
  StakeZod,
2357
- StepContextZod,
2396
+ StepIdentityZod,
2358
2397
  StorageMetaZod,
2359
2398
  TransactionBoundWitnessZod,
2360
2399
  TransactionFeesBigIntToJsonZod,