@xyo-network/xl1-rpc 1.15.10 → 1.15.12

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.
@@ -148,7 +148,7 @@ var JsonRpcErrorCodes = {
148
148
  var jsonrpc = "2.0";
149
149
 
150
150
  // src/types/schema/XyoPermissionsRpcSchemas.ts
151
- import * as z16 from "zod";
151
+ import * as z17 from "zod";
152
152
 
153
153
  // src/types/schema/common/Address.ts
154
154
  import { AddressRegEx, toAddress } from "@xylabs/hex";
@@ -466,68 +466,75 @@ var TransferFieldsZod = z15.object({
466
466
  });
467
467
  var TransferZod = PayloadZodStrictOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
468
468
 
469
+ // src/types/schema/common/TransferPair.ts
470
+ import z16 from "zod";
471
+ var TransferPairZod = z16.tuple([
472
+ AddressZod,
473
+ AddressZod
474
+ ]);
475
+
469
476
  // src/types/schema/XyoPermissionsRpcSchemas.ts
470
477
  var XyoPermissionsRpcSchemas = {
471
478
  xyoPermissions_getPermissions: {
472
479
  params: {
473
- to: z16.array(z16.any()).length(0),
474
- from: z16.array(z16.any()).length(0)
480
+ to: z17.array(z17.any()).length(0),
481
+ from: z17.array(z17.any()).length(0)
475
482
  },
476
483
  result: {
477
- to: z16.array(InvokerPermissionZod),
478
- from: z16.array(InvokerPermissionZod)
484
+ to: z17.array(InvokerPermissionZod),
485
+ from: z17.array(InvokerPermissionZod)
479
486
  }
480
487
  },
481
488
  xyoPermissions_requestPermissions: {
482
489
  params: {
483
- to: z16.tuple([
484
- z16.array(PermissionRequestZod)
490
+ to: z17.tuple([
491
+ z17.array(PermissionRequestZod)
485
492
  ]),
486
- from: z16.tuple([
487
- z16.array(PermissionRequestZod)
493
+ from: z17.tuple([
494
+ z17.array(PermissionRequestZod)
488
495
  ])
489
496
  },
490
497
  result: {
491
- to: z16.array(RequestedPermissionZod),
492
- from: z16.array(RequestedPermissionZod)
498
+ to: z17.array(RequestedPermissionZod),
499
+ from: z17.array(RequestedPermissionZod)
493
500
  }
494
501
  },
495
502
  xyoPermissions_revokePermissions: {
496
503
  params: {
497
- to: z16.tuple([
498
- z16.array(PermissionRequestZod)
504
+ to: z17.tuple([
505
+ z17.array(PermissionRequestZod)
499
506
  ]),
500
- from: z16.tuple([
501
- z16.array(PermissionRequestZod)
507
+ from: z17.tuple([
508
+ z17.array(PermissionRequestZod)
502
509
  ])
503
510
  },
504
511
  result: {
505
- to: z16.array(RequestedPermissionZod),
506
- from: z16.array(RequestedPermissionZod)
512
+ to: z17.array(RequestedPermissionZod),
513
+ from: z17.array(RequestedPermissionZod)
507
514
  }
508
515
  }
509
516
  };
510
517
 
511
518
  // src/types/schema/XyoProviderRpcSchemas.ts
512
- import * as z17 from "zod";
519
+ import * as z18 from "zod";
513
520
  var XyoProviderRpcSchemas = {
514
521
  xyoProvider_send: {
515
522
  params: {
516
- to: z17.tuple([
523
+ to: z18.tuple([
517
524
  AddressZod,
518
- z17.array(PayloadZod),
519
- z17.array(PayloadZod),
520
- z17.number().nonnegative(),
521
- z17.number().nonnegative(),
525
+ z18.array(PayloadZod),
526
+ z18.array(PayloadZod),
527
+ z18.number().nonnegative(),
528
+ z18.number().nonnegative(),
522
529
  TransactionFeesBigIntToJsonZod,
523
530
  AddressZod.optional()
524
531
  ]),
525
- from: z17.tuple([
532
+ from: z18.tuple([
526
533
  AddressZod,
527
- z17.array(PayloadZod),
528
- z17.array(PayloadZod),
529
- z17.number().nonnegative(),
530
- z17.number().nonnegative(),
534
+ z18.array(PayloadZod),
535
+ z18.array(PayloadZod),
536
+ z18.number().nonnegative(),
537
+ z18.number().nonnegative(),
531
538
  TransactionFeesJsonToBigIntZod,
532
539
  AddressZod.optional()
533
540
  ])
@@ -541,14 +548,14 @@ var XyoProviderRpcSchemas = {
541
548
 
542
549
  // src/types/schema/XyoRunnerRpcSchemas.ts
543
550
  import { HashToJsonZod as HashToJsonZod2, JsonToHashZod } from "@xylabs/hex";
544
- import * as z18 from "zod";
551
+ import * as z19 from "zod";
545
552
  var XyoRunnerRpcSchemas = {
546
553
  xyoRunner_broadcastTransaction: {
547
554
  params: {
548
- to: z18.tuple([
555
+ to: z19.tuple([
549
556
  SignedHydratedTransactionZod
550
557
  ]),
551
- from: z18.tuple([
558
+ from: z19.tuple([
552
559
  SignedHydratedTransactionZod
553
560
  ])
554
561
  },
@@ -561,12 +568,12 @@ var XyoRunnerRpcSchemas = {
561
568
 
562
569
  // src/types/schema/XyoSignerRpcSchemas.ts
563
570
  import { AllowedBlockPayloadZod, asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
564
- import { z as z19 } from "zod";
571
+ import { z as z20 } from "zod";
565
572
  var XyoSignerRpcSchemas = {
566
573
  xyoSigner_address: {
567
574
  params: {
568
- to: z19.array(z19.any()).length(0).optional(),
569
- from: z19.array(z19.any()).length(0).optional()
575
+ to: z20.array(z20.any()).length(0).optional(),
576
+ from: z20.array(z20.any()).length(0).optional()
570
577
  },
571
578
  result: {
572
579
  to: AddressZod,
@@ -576,21 +583,21 @@ var XyoSignerRpcSchemas = {
576
583
  // NOTE: method is deprecated which is why it uses deprecated types
577
584
  xyoSigner_createSignedTransaction: {
578
585
  params: {
579
- to: z19.tuple([
586
+ to: z20.tuple([
580
587
  ChainZod,
581
- z19.array(AllowedBlockPayloadZod),
582
- z19.array(PayloadZod),
583
- z19.number().nonnegative(),
584
- z19.number().nonnegative(),
588
+ z20.array(AllowedBlockPayloadZod),
589
+ z20.array(PayloadZod),
590
+ z20.number().nonnegative(),
591
+ z20.number().nonnegative(),
585
592
  TransactionFeesBigIntToJsonZod,
586
593
  AddressZod.optional()
587
594
  ]),
588
- from: z19.tuple([
595
+ from: z20.tuple([
589
596
  ChainZod,
590
- z19.array(PayloadZod),
591
- z19.array(PayloadZod),
592
- z19.number().nonnegative(),
593
- z19.number().nonnegative(),
597
+ z20.array(PayloadZod),
598
+ z20.array(PayloadZod),
599
+ z20.number().nonnegative(),
600
+ z20.number().nonnegative(),
594
601
  TransactionFeesJsonToBigIntZod,
595
602
  AddressZod.optional()
596
603
  ])
@@ -602,10 +609,10 @@ var XyoSignerRpcSchemas = {
602
609
  },
603
610
  xyoSigner_signTransaction: {
604
611
  params: {
605
- to: z19.tuple([
612
+ to: z20.tuple([
606
613
  UnsignedHydratedTransactionZod
607
614
  ]),
608
- from: z19.tuple([
615
+ from: z20.tuple([
609
616
  UnsignedHydratedTransactionZod
610
617
  ])
611
618
  },
@@ -620,17 +627,17 @@ var XyoSignerRpcSchemas = {
620
627
 
621
628
  // src/types/schema/XyoViewerRpcSchemas.ts
622
629
  import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod3, HashZod as HashZod2, JsonToBigIntZod as JsonToBigIntZod2, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
623
- import * as z20 from "zod";
630
+ import * as z21 from "zod";
624
631
  var XyoViewerRpcSchemas = {
625
632
  xyoViewer_networkStakeStepRewardClaimedByAddress: {
626
633
  params: {
627
- to: z20.union([
628
- z20.tuple([
634
+ to: z21.union([
635
+ z21.tuple([
629
636
  AddressZod
630
637
  ])
631
638
  ]),
632
- from: z20.union([
633
- z20.tuple([
639
+ from: z21.union([
640
+ z21.tuple([
634
641
  AddressZod
635
642
  ])
636
643
  ])
@@ -642,63 +649,63 @@ var XyoViewerRpcSchemas = {
642
649
  },
643
650
  xyoViewer_networkStakeStepRewardAddressReward: {
644
651
  params: {
645
- to: z20.union([
646
- z20.tuple([
652
+ to: z21.union([
653
+ z21.tuple([
647
654
  StepIdentityZod,
648
655
  AddressZod
649
656
  ])
650
657
  ]),
651
- from: z20.union([
652
- z20.tuple([
658
+ from: z21.union([
659
+ z21.tuple([
653
660
  StepIdentityZod,
654
661
  AddressZod
655
662
  ])
656
663
  ])
657
664
  },
658
665
  result: {
659
- to: z20.record(AddressZod, BigIntToJsonZod3),
660
- from: z20.record(AddressZod, JsonToBigIntZod2)
666
+ to: z21.record(AddressZod, BigIntToJsonZod3),
667
+ from: z21.record(AddressZod, JsonToBigIntZod2)
661
668
  }
662
669
  },
663
670
  xyoViewer_networkStakeStepRewardAddressHistory: {
664
671
  params: {
665
- to: z20.union([
666
- z20.tuple([
672
+ to: z21.union([
673
+ z21.tuple([
667
674
  AddressZod
668
675
  ])
669
676
  ]),
670
- from: z20.union([
671
- z20.tuple([
677
+ from: z21.union([
678
+ z21.tuple([
672
679
  AddressZod
673
680
  ])
674
681
  ])
675
682
  },
676
683
  result: {
677
- to: z20.record(AddressZod, BigIntToJsonZod3),
678
- from: z20.record(AddressZod, JsonToBigIntZod2)
684
+ to: z21.record(AddressZod, BigIntToJsonZod3),
685
+ from: z21.record(AddressZod, JsonToBigIntZod2)
679
686
  }
680
687
  },
681
688
  xyoViewer_networkStakeStepRewardAddressShare: {
682
689
  params: {
683
- to: z20.union([
684
- z20.tuple([
690
+ to: z21.union([
691
+ z21.tuple([
685
692
  StepIdentityZod,
686
693
  AddressZod
687
694
  ])
688
695
  ]),
689
- from: z20.union([
690
- z20.tuple([
696
+ from: z21.union([
697
+ z21.tuple([
691
698
  StepIdentityZod,
692
699
  AddressZod
693
700
  ])
694
701
  ])
695
702
  },
696
703
  result: {
697
- to: z20.tuple([
704
+ to: z21.tuple([
698
705
  BigIntToJsonZod3,
699
706
  BigIntToJsonZod3
700
707
  ]),
701
- from: z20.tuple([
708
+ from: z21.tuple([
702
709
  JsonToBigIntZod2,
703
710
  JsonToBigIntZod2
704
711
  ])
@@ -706,14 +713,14 @@ var XyoViewerRpcSchemas = {
706
713
  },
707
714
  xyoViewer_networkStakeStepRewardWeightForAddress: {
708
715
  params: {
709
- to: z20.union([
710
- z20.tuple([
716
+ to: z21.union([
717
+ z21.tuple([
711
718
  StepIdentityZod,
712
719
  AddressZod
713
720
  ])
714
721
  ]),
715
- from: z20.union([
716
- z20.tuple([
722
+ from: z21.union([
723
+ z21.tuple([
717
724
  StepIdentityZod,
718
725
  AddressZod
719
726
  ])
@@ -726,13 +733,13 @@ var XyoViewerRpcSchemas = {
726
733
  },
727
734
  xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
728
735
  params: {
729
- to: z20.union([
730
- z20.tuple([
736
+ to: z21.union([
737
+ z21.tuple([
731
738
  AddressZod
732
739
  ])
733
740
  ]),
734
- from: z20.union([
735
- z20.tuple([
741
+ from: z21.union([
742
+ z21.tuple([
736
743
  AddressZod
737
744
  ])
738
745
  ])
@@ -744,34 +751,34 @@ var XyoViewerRpcSchemas = {
744
751
  },
745
752
  xyoViewer_networkStakeStepRewardPoolRewards: {
746
753
  params: {
747
- to: z20.union([
748
- z20.tuple([
754
+ to: z21.union([
755
+ z21.tuple([
749
756
  StepIdentityZod
750
757
  ])
751
758
  ]),
752
- from: z20.union([
753
- z20.tuple([
759
+ from: z21.union([
760
+ z21.tuple([
754
761
  StepIdentityZod
755
762
  ])
756
763
  ])
757
764
  },
758
765
  result: {
759
- to: z20.record(AddressZod, BigIntToJsonZod3),
760
- from: z20.record(AddressZod, JsonToBigIntZod2)
766
+ to: z21.record(AddressZod, BigIntToJsonZod3),
767
+ from: z21.record(AddressZod, JsonToBigIntZod2)
761
768
  }
762
769
  },
763
770
  xyoViewer_networkStakeStepRewardPositionWeight: {
764
771
  params: {
765
- to: z20.union([
766
- z20.tuple([
772
+ to: z21.union([
773
+ z21.tuple([
767
774
  StepIdentityZod,
768
- z20.number()
775
+ z21.number()
769
776
  ])
770
777
  ]),
771
- from: z20.union([
772
- z20.tuple([
778
+ from: z21.union([
779
+ z21.tuple([
773
780
  StepIdentityZod,
774
- z20.number()
781
+ z21.number()
775
782
  ])
776
783
  ])
777
784
  },
@@ -782,16 +789,16 @@ var XyoViewerRpcSchemas = {
782
789
  },
783
790
  xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
784
791
  params: {
785
- to: z20.union([
786
- z20.tuple([
792
+ to: z21.union([
793
+ z21.tuple([
787
794
  StepIdentityZod,
788
- z20.number()
795
+ z21.number()
789
796
  ])
790
797
  ]),
791
- from: z20.union([
792
- z20.tuple([
798
+ from: z21.union([
799
+ z21.tuple([
793
800
  StepIdentityZod,
794
- z20.number()
801
+ z21.number()
795
802
  ])
796
803
  ])
797
804
  },
@@ -802,13 +809,13 @@ var XyoViewerRpcSchemas = {
802
809
  },
803
810
  xyoViewer_networkStakeStepRewardForStep: {
804
811
  params: {
805
- to: z20.union([
806
- z20.tuple([
812
+ to: z21.union([
813
+ z21.tuple([
807
814
  StepIdentityZod
808
815
  ])
809
816
  ]),
810
- from: z20.union([
811
- z20.tuple([
817
+ from: z21.union([
818
+ z21.tuple([
812
819
  StepIdentityZod
813
820
  ])
814
821
  ])
@@ -820,13 +827,13 @@ var XyoViewerRpcSchemas = {
820
827
  },
821
828
  xyoViewer_networkStakeStepRewardRandomizer: {
822
829
  params: {
823
- to: z20.union([
824
- z20.tuple([
830
+ to: z21.union([
831
+ z21.tuple([
825
832
  StepIdentityZod
826
833
  ])
827
834
  ]),
828
- from: z20.union([
829
- z20.tuple([
835
+ from: z21.union([
836
+ z21.tuple([
830
837
  StepIdentityZod
831
838
  ])
832
839
  ])
@@ -838,61 +845,61 @@ var XyoViewerRpcSchemas = {
838
845
  },
839
846
  xyoViewer_networkStakeStepRewardStakerCount: {
840
847
  params: {
841
- to: z20.union([
842
- z20.tuple([
848
+ to: z21.union([
849
+ z21.tuple([
843
850
  StepIdentityZod
844
851
  ])
845
852
  ]),
846
- from: z20.union([
847
- z20.tuple([
853
+ from: z21.union([
854
+ z21.tuple([
848
855
  StepIdentityZod
849
856
  ])
850
857
  ])
851
858
  },
852
859
  result: {
853
- to: z20.number(),
854
- from: z20.number()
860
+ to: z21.number(),
861
+ from: z21.number()
855
862
  }
856
863
  },
857
864
  xyoViewer_networkStakeStepRewardPoolShares: {
858
865
  params: {
859
- to: z20.union([
860
- z20.tuple([
866
+ to: z21.union([
867
+ z21.tuple([
861
868
  StepIdentityZod
862
869
  ])
863
870
  ]),
864
- from: z20.union([
865
- z20.tuple([
871
+ from: z21.union([
872
+ z21.tuple([
866
873
  StepIdentityZod
867
874
  ])
868
875
  ])
869
876
  },
870
877
  result: {
871
- to: z20.record(AddressZod, BigIntToJsonZod3),
872
- from: z20.record(AddressZod, JsonToBigIntZod2)
878
+ to: z21.record(AddressZod, BigIntToJsonZod3),
879
+ from: z21.record(AddressZod, JsonToBigIntZod2)
873
880
  }
874
881
  },
875
882
  xyoViewer_networkStakeStepRewardForStepForPosition: {
876
883
  params: {
877
- to: z20.union([
878
- z20.tuple([
884
+ to: z21.union([
885
+ z21.tuple([
879
886
  StepIdentityZod,
880
- z20.number()
887
+ z21.number()
881
888
  ])
882
889
  ]),
883
- from: z20.union([
884
- z20.tuple([
890
+ from: z21.union([
891
+ z21.tuple([
885
892
  StepIdentityZod,
886
- z20.number()
893
+ z21.number()
887
894
  ])
888
895
  ])
889
896
  },
890
897
  result: {
891
- to: z20.tuple([
898
+ to: z21.tuple([
892
899
  BigIntToJsonZod3,
893
900
  BigIntToJsonZod3
894
901
  ]),
895
- from: z20.tuple([
902
+ from: z21.tuple([
896
903
  JsonToBigIntZod2,
897
904
  JsonToBigIntZod2
898
905
  ])
@@ -900,31 +907,31 @@ var XyoViewerRpcSchemas = {
900
907
  },
901
908
  xyoViewer_networkStakeStepRewardForPosition: {
902
909
  params: {
903
- to: z20.union([
904
- z20.tuple([
905
- z20.number(),
906
- z20.tuple([
907
- z20.number(),
908
- z20.number()
910
+ to: z21.union([
911
+ z21.tuple([
912
+ z21.number(),
913
+ z21.tuple([
914
+ z21.number(),
915
+ z21.number()
909
916
  ])
910
917
  ])
911
918
  ]),
912
- from: z20.union([
913
- z20.tuple([
914
- z20.number(),
915
- z20.tuple([
916
- z20.number(),
917
- z20.number()
919
+ from: z21.union([
920
+ z21.tuple([
921
+ z21.number(),
922
+ z21.tuple([
923
+ z21.number(),
924
+ z21.number()
918
925
  ])
919
926
  ])
920
927
  ])
921
928
  },
922
929
  result: {
923
- to: z20.tuple([
930
+ to: z21.tuple([
924
931
  BigIntToJsonZod3,
925
932
  BigIntToJsonZod3
926
933
  ]),
927
- from: z20.tuple([
934
+ from: z21.tuple([
928
935
  JsonToBigIntZod2,
929
936
  JsonToBigIntZod2
930
937
  ])
@@ -932,19 +939,19 @@ var XyoViewerRpcSchemas = {
932
939
  },
933
940
  xyoViewer_networkStakeStepRewardsForRange: {
934
941
  params: {
935
- to: z20.union([
936
- z20.tuple([
937
- z20.tuple([
938
- z20.number(),
939
- z20.number()
942
+ to: z21.union([
943
+ z21.tuple([
944
+ z21.tuple([
945
+ z21.number(),
946
+ z21.number()
940
947
  ])
941
948
  ])
942
949
  ]),
943
- from: z20.union([
944
- z20.tuple([
945
- z20.tuple([
946
- z20.number(),
947
- z20.number()
950
+ from: z21.union([
951
+ z21.tuple([
952
+ z21.tuple([
953
+ z21.number(),
954
+ z21.number()
948
955
  ])
949
956
  ])
950
957
  ])
@@ -956,21 +963,21 @@ var XyoViewerRpcSchemas = {
956
963
  },
957
964
  xyoViewer_networkStakeStepRewardsForStepLevel: {
958
965
  params: {
959
- to: z20.union([
960
- z20.tuple([
961
- z20.number(),
962
- z20.tuple([
963
- z20.number(),
964
- z20.number()
966
+ to: z21.union([
967
+ z21.tuple([
968
+ z21.number(),
969
+ z21.tuple([
970
+ z21.number(),
971
+ z21.number()
965
972
  ])
966
973
  ])
967
974
  ]),
968
- from: z20.union([
969
- z20.tuple([
970
- z20.number(),
971
- z20.tuple([
972
- z20.number(),
973
- z20.number()
975
+ from: z21.union([
976
+ z21.tuple([
977
+ z21.number(),
978
+ z21.tuple([
979
+ z21.number(),
980
+ z21.number()
974
981
  ])
975
982
  ])
976
983
  ])
@@ -982,31 +989,31 @@ var XyoViewerRpcSchemas = {
982
989
  },
983
990
  xyoViewer_networkStakeStepRewardsForPosition: {
984
991
  params: {
985
- to: z20.union([
986
- z20.tuple([
987
- z20.number(),
988
- z20.tuple([
989
- z20.number(),
990
- z20.number()
992
+ to: z21.union([
993
+ z21.tuple([
994
+ z21.number(),
995
+ z21.tuple([
996
+ z21.number(),
997
+ z21.number()
991
998
  ])
992
999
  ])
993
1000
  ]),
994
- from: z20.union([
995
- z20.tuple([
996
- z20.number(),
997
- z20.tuple([
998
- z20.number(),
999
- z20.number()
1001
+ from: z21.union([
1002
+ z21.tuple([
1003
+ z21.number(),
1004
+ z21.tuple([
1005
+ z21.number(),
1006
+ z21.number()
1000
1007
  ])
1001
1008
  ])
1002
1009
  ])
1003
1010
  },
1004
1011
  result: {
1005
- to: z20.record(z20.string(), z20.tuple([
1012
+ to: z21.record(z21.string(), z21.tuple([
1006
1013
  BigIntToJsonZod3,
1007
1014
  BigIntToJsonZod3
1008
1015
  ])),
1009
- from: z20.record(z20.string(), z20.tuple([
1016
+ from: z21.record(z21.string(), z21.tuple([
1010
1017
  JsonToBigIntZod2,
1011
1018
  JsonToBigIntZod2
1012
1019
  ]))
@@ -1014,13 +1021,13 @@ var XyoViewerRpcSchemas = {
1014
1021
  },
1015
1022
  xyoViewer_accountBalance: {
1016
1023
  params: {
1017
- to: z20.union([
1018
- z20.tuple([
1024
+ to: z21.union([
1025
+ z21.tuple([
1019
1026
  AddressZod
1020
1027
  ])
1021
1028
  ]),
1022
- from: z20.union([
1023
- z20.tuple([
1029
+ from: z21.union([
1030
+ z21.tuple([
1024
1031
  AddressZod
1025
1032
  ])
1026
1033
  ])
@@ -1032,24 +1039,24 @@ var XyoViewerRpcSchemas = {
1032
1039
  },
1033
1040
  xyoViewer_accountBalanceHistory: {
1034
1041
  params: {
1035
- to: z20.union([
1036
- z20.tuple([
1042
+ to: z21.union([
1043
+ z21.tuple([
1037
1044
  AddressZod
1038
1045
  ])
1039
1046
  ]),
1040
- from: z20.union([
1041
- z20.tuple([
1047
+ from: z21.union([
1048
+ z21.tuple([
1042
1049
  AddressZod
1043
1050
  ])
1044
1051
  ])
1045
1052
  },
1046
1053
  result: {
1047
- to: z20.array(z20.tuple([
1054
+ to: z21.array(z21.tuple([
1048
1055
  HashZod2,
1049
1056
  HashZod2,
1050
1057
  TransferZod
1051
1058
  ])),
1052
- from: z20.array(z20.tuple([
1059
+ from: z21.array(z21.tuple([
1053
1060
  HashZod2,
1054
1061
  HashZod2,
1055
1062
  TransferZod
@@ -1058,20 +1065,14 @@ var XyoViewerRpcSchemas = {
1058
1065
  },
1059
1066
  xyoViewer_transferPairBalance: {
1060
1067
  params: {
1061
- to: z20.union([
1062
- z20.tuple([
1063
- z20.tuple([
1064
- AddressZod,
1065
- AddressZod
1066
- ])
1068
+ to: z21.union([
1069
+ z21.tuple([
1070
+ TransferPairZod
1067
1071
  ])
1068
1072
  ]),
1069
- from: z20.union([
1070
- z20.tuple([
1071
- z20.tuple([
1072
- AddressZod,
1073
- AddressZod
1074
- ])
1073
+ from: z21.union([
1074
+ z21.tuple([
1075
+ TransferPairZod
1075
1076
  ])
1076
1077
  ])
1077
1078
  },
@@ -1082,30 +1083,24 @@ var XyoViewerRpcSchemas = {
1082
1083
  },
1083
1084
  xyoViewer_transferPairBalanceHistory: {
1084
1085
  params: {
1085
- to: z20.union([
1086
- z20.tuple([
1087
- z20.tuple([
1088
- AddressZod,
1089
- AddressZod
1090
- ])
1086
+ to: z21.union([
1087
+ z21.tuple([
1088
+ TransferPairZod
1091
1089
  ])
1092
1090
  ]),
1093
- from: z20.union([
1094
- z20.tuple([
1095
- z20.tuple([
1096
- AddressZod,
1097
- AddressZod
1098
- ])
1091
+ from: z21.union([
1092
+ z21.tuple([
1093
+ TransferPairZod
1099
1094
  ])
1100
1095
  ])
1101
1096
  },
1102
1097
  result: {
1103
- to: z20.array(z20.tuple([
1098
+ to: z21.array(z21.tuple([
1104
1099
  HashZod2,
1105
1100
  HashZod2,
1106
1101
  PayloadZod
1107
1102
  ])),
1108
- from: z20.array(z20.tuple([
1103
+ from: z21.array(z21.tuple([
1109
1104
  HashZod2,
1110
1105
  HashZod2,
1111
1106
  PayloadZod
@@ -1114,13 +1109,13 @@ var XyoViewerRpcSchemas = {
1114
1109
  },
1115
1110
  xyoViewer_transferBalance: {
1116
1111
  params: {
1117
- to: z20.union([
1118
- z20.tuple([
1112
+ to: z21.union([
1113
+ z21.tuple([
1119
1114
  AddressZod
1120
1115
  ])
1121
1116
  ]),
1122
- from: z20.union([
1123
- z20.tuple([
1117
+ from: z21.union([
1118
+ z21.tuple([
1124
1119
  AddressZod
1125
1120
  ])
1126
1121
  ])
@@ -1132,24 +1127,24 @@ var XyoViewerRpcSchemas = {
1132
1127
  },
1133
1128
  xyoViewer_transferBalanceHistory: {
1134
1129
  params: {
1135
- to: z20.union([
1136
- z20.tuple([
1130
+ to: z21.union([
1131
+ z21.tuple([
1137
1132
  AddressZod
1138
1133
  ])
1139
1134
  ]),
1140
- from: z20.union([
1141
- z20.tuple([
1135
+ from: z21.union([
1136
+ z21.tuple([
1142
1137
  AddressZod
1143
1138
  ])
1144
1139
  ])
1145
1140
  },
1146
1141
  result: {
1147
- to: z20.array(z20.tuple([
1142
+ to: z21.array(z21.tuple([
1148
1143
  HashZod2,
1149
1144
  HashZod2,
1150
1145
  PayloadZod
1151
1146
  ])),
1152
- from: z20.array(z20.tuple([
1147
+ from: z21.array(z21.tuple([
1153
1148
  HashZod2,
1154
1149
  HashZod2,
1155
1150
  PayloadZod
@@ -1158,10 +1153,10 @@ var XyoViewerRpcSchemas = {
1158
1153
  },
1159
1154
  xyoViewer_blockByHash: {
1160
1155
  params: {
1161
- to: z20.tuple([
1156
+ to: z21.tuple([
1162
1157
  HashToJsonZod3
1163
1158
  ]),
1164
- from: z20.tuple([
1159
+ from: z21.tuple([
1165
1160
  JsonToHashZod2
1166
1161
  ])
1167
1162
  },
@@ -1172,11 +1167,11 @@ var XyoViewerRpcSchemas = {
1172
1167
  },
1173
1168
  xyoViewer_blockByNumber: {
1174
1169
  params: {
1175
- to: z20.tuple([
1176
- z20.number()
1170
+ to: z21.tuple([
1171
+ z21.number()
1177
1172
  ]),
1178
- from: z20.tuple([
1179
- z20.number()
1173
+ from: z21.tuple([
1174
+ z21.number()
1180
1175
  ])
1181
1176
  },
1182
1177
  result: {
@@ -1186,24 +1181,24 @@ var XyoViewerRpcSchemas = {
1186
1181
  },
1187
1182
  xyoViewer_blocksByHash: {
1188
1183
  params: {
1189
- to: z20.tuple([
1184
+ to: z21.tuple([
1190
1185
  HashZod2,
1191
- z20.number().optional()
1186
+ z21.number().optional()
1192
1187
  ]),
1193
- from: z20.tuple([
1188
+ from: z21.tuple([
1194
1189
  HashZod2,
1195
- z20.number().optional()
1190
+ z21.number().optional()
1196
1191
  ])
1197
1192
  },
1198
1193
  result: {
1199
- to: z20.array(SignedHydratedBlockZod),
1200
- from: z20.array(SignedHydratedBlockZod)
1194
+ to: z21.array(SignedHydratedBlockZod),
1195
+ from: z21.array(SignedHydratedBlockZod)
1201
1196
  }
1202
1197
  },
1203
1198
  xyoViewer_chainId: {
1204
1199
  params: {
1205
- to: z20.array(z20.any()).length(0).optional(),
1206
- from: z20.array(z20.any()).length(0).optional()
1200
+ to: z21.array(z21.any()).length(0).optional(),
1201
+ from: z21.array(z21.any()).length(0).optional()
1207
1202
  },
1208
1203
  result: {
1209
1204
  to: AddressZod,
@@ -1212,10 +1207,10 @@ var XyoViewerRpcSchemas = {
1212
1207
  },
1213
1208
  xyoViewer_chainIdAtBlock: {
1214
1209
  params: {
1215
- to: z20.tuple([
1210
+ to: z21.tuple([
1216
1211
  BlockNumberZod
1217
1212
  ]),
1218
- from: z20.tuple([
1213
+ from: z21.tuple([
1219
1214
  BlockNumberZod
1220
1215
  ])
1221
1216
  },
@@ -1226,8 +1221,8 @@ var XyoViewerRpcSchemas = {
1226
1221
  },
1227
1222
  xyoViewer_currentBlock: {
1228
1223
  params: {
1229
- to: z20.array(z20.any()).length(0).optional(),
1230
- from: z20.array(z20.any()).length(0).optional()
1224
+ to: z21.array(z21.any()).length(0).optional(),
1225
+ from: z21.array(z21.any()).length(0).optional()
1231
1226
  },
1232
1227
  result: {
1233
1228
  to: SignedHydratedBlockZod,
@@ -1236,8 +1231,8 @@ var XyoViewerRpcSchemas = {
1236
1231
  },
1237
1232
  xyoViewer_currentBlockHash: {
1238
1233
  params: {
1239
- to: z20.array(z20.any()).length(0).optional(),
1240
- from: z20.array(z20.any()).length(0).optional()
1234
+ to: z21.array(z21.any()).length(0).optional(),
1235
+ from: z21.array(z21.any()).length(0).optional()
1241
1236
  },
1242
1237
  result: {
1243
1238
  to: HashZod2,
@@ -1246,8 +1241,8 @@ var XyoViewerRpcSchemas = {
1246
1241
  },
1247
1242
  xyoViewer_currentBlockNumber: {
1248
1243
  params: {
1249
- to: z20.array(z20.any()).length(0).optional(),
1250
- from: z20.array(z20.any()).length(0).optional()
1244
+ to: z21.array(z21.any()).length(0).optional(),
1245
+ from: z21.array(z21.any()).length(0).optional()
1251
1246
  },
1252
1247
  result: {
1253
1248
  to: BlockNumberZod,
@@ -1256,23 +1251,23 @@ var XyoViewerRpcSchemas = {
1256
1251
  },
1257
1252
  xyoViewer_forkHistory: {
1258
1253
  params: {
1259
- to: z20.array(z20.any()).length(0).optional(),
1260
- from: z20.array(z20.any()).length(0).optional()
1254
+ to: z21.array(z21.any()).length(0).optional(),
1255
+ from: z21.array(z21.any()).length(0).optional()
1261
1256
  },
1262
1257
  result: {
1263
- to: z20.record(z20.number(), AddressZod),
1264
- from: z20.record(z20.number(), AddressZod)
1258
+ to: z21.record(z21.number(), AddressZod),
1259
+ from: z21.record(z21.number(), AddressZod)
1265
1260
  }
1266
1261
  },
1267
1262
  xyoViewer_stakeByStaker: {
1268
1263
  params: {
1269
- to: z20.tuple([
1264
+ to: z21.tuple([
1270
1265
  AddressZod,
1271
- z20.number()
1266
+ z21.number()
1272
1267
  ]),
1273
- from: z20.tuple([
1268
+ from: z21.tuple([
1274
1269
  AddressZod,
1275
- z20.number()
1270
+ z21.number()
1276
1271
  ])
1277
1272
  },
1278
1273
  result: {
@@ -1282,11 +1277,11 @@ var XyoViewerRpcSchemas = {
1282
1277
  },
1283
1278
  xyoViewer_stakeById: {
1284
1279
  params: {
1285
- to: z20.tuple([
1286
- z20.number()
1280
+ to: z21.tuple([
1281
+ z21.number()
1287
1282
  ]),
1288
- from: z20.tuple([
1289
- z20.number()
1283
+ from: z21.tuple([
1284
+ z21.number()
1290
1285
  ])
1291
1286
  },
1292
1287
  result: {
@@ -1296,55 +1291,55 @@ var XyoViewerRpcSchemas = {
1296
1291
  },
1297
1292
  xyoViewer_stakedByStaker: {
1298
1293
  params: {
1299
- to: z20.tuple([
1294
+ to: z21.tuple([
1300
1295
  AddressZod
1301
1296
  ]),
1302
- from: z20.tuple([
1297
+ from: z21.tuple([
1303
1298
  AddressZod
1304
1299
  ])
1305
1300
  },
1306
1301
  result: {
1307
- to: z20.array(AddressZod),
1308
- from: z20.array(AddressZod)
1302
+ to: z21.array(AddressZod),
1303
+ from: z21.array(AddressZod)
1309
1304
  }
1310
1305
  },
1311
1306
  xyoViewer_stakesByStaker: {
1312
1307
  params: {
1313
- to: z20.tuple([
1308
+ to: z21.tuple([
1314
1309
  AddressZod
1315
1310
  ]),
1316
- from: z20.tuple([
1311
+ from: z21.tuple([
1317
1312
  AddressZod
1318
1313
  ])
1319
1314
  },
1320
1315
  result: {
1321
- to: z20.array(StakeToJsonZod),
1322
- from: z20.array(JsonToStakeZod)
1316
+ to: z21.array(StakeToJsonZod),
1317
+ from: z21.array(JsonToStakeZod)
1323
1318
  }
1324
1319
  },
1325
1320
  xyoViewer_stakesByStaked: {
1326
1321
  params: {
1327
- to: z20.tuple([
1322
+ to: z21.tuple([
1328
1323
  AddressZod
1329
1324
  ]),
1330
- from: z20.tuple([
1325
+ from: z21.tuple([
1331
1326
  AddressZod
1332
1327
  ])
1333
1328
  },
1334
1329
  result: {
1335
- to: z20.array(StakeToJsonZod),
1336
- from: z20.array(JsonToStakeZod)
1330
+ to: z21.array(StakeToJsonZod),
1331
+ from: z21.array(JsonToStakeZod)
1337
1332
  }
1338
1333
  },
1339
1334
  xyoViewer_transactionByBlockHashAndIndex: {
1340
1335
  params: {
1341
- to: z20.tuple([
1336
+ to: z21.tuple([
1342
1337
  HashZod2,
1343
- z20.number()
1338
+ z21.number()
1344
1339
  ]),
1345
- from: z20.tuple([
1340
+ from: z21.tuple([
1346
1341
  HashZod2,
1347
- z20.number()
1342
+ z21.number()
1348
1343
  ])
1349
1344
  },
1350
1345
  result: {
@@ -1354,13 +1349,13 @@ var XyoViewerRpcSchemas = {
1354
1349
  },
1355
1350
  xyoViewer_transactionByBlockNumberAndIndex: {
1356
1351
  params: {
1357
- to: z20.tuple([
1358
- z20.number(),
1359
- z20.number()
1352
+ to: z21.tuple([
1353
+ z21.number(),
1354
+ z21.number()
1360
1355
  ]),
1361
- from: z20.tuple([
1362
- z20.number(),
1363
- z20.number()
1356
+ from: z21.tuple([
1357
+ z21.number(),
1358
+ z21.number()
1364
1359
  ])
1365
1360
  },
1366
1361
  result: {
@@ -1370,10 +1365,10 @@ var XyoViewerRpcSchemas = {
1370
1365
  },
1371
1366
  xyoViewer_transactionByHash: {
1372
1367
  params: {
1373
- to: z20.tuple([
1368
+ to: z21.tuple([
1374
1369
  HashZod2
1375
1370
  ]),
1376
- from: z20.tuple([
1371
+ from: z21.tuple([
1377
1372
  HashZod2
1378
1373
  ])
1379
1374
  },
@@ -1394,25 +1389,25 @@ var AllRpcSchemas = {
1394
1389
  };
1395
1390
 
1396
1391
  // src/types/schema/createRequestSchema.ts
1397
- import * as z21 from "zod";
1398
- var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z21.undefined()) => z21.object({
1399
- id: z21.union([
1400
- z21.string(),
1401
- z21.number()
1402
- ]),
1403
- jsonrpc: z21.literal(jsonrpc),
1404
- method: z21.literal(methodName),
1405
- params: paramsSchema
1406
- }), "createRequestSchema");
1407
-
1408
- // src/types/schema/createResponseSchema.ts
1409
1392
  import * as z22 from "zod";
1410
- var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z22.undefined()) => z22.object({
1393
+ var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z22.undefined()) => z22.object({
1411
1394
  id: z22.union([
1412
1395
  z22.string(),
1413
1396
  z22.number()
1414
1397
  ]),
1415
1398
  jsonrpc: z22.literal(jsonrpc),
1399
+ method: z22.literal(methodName),
1400
+ params: paramsSchema
1401
+ }), "createRequestSchema");
1402
+
1403
+ // src/types/schema/createResponseSchema.ts
1404
+ import * as z23 from "zod";
1405
+ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z23.undefined()) => z23.object({
1406
+ id: z23.union([
1407
+ z23.string(),
1408
+ z23.number()
1409
+ ]),
1410
+ jsonrpc: z23.literal(jsonrpc),
1416
1411
  result: resultSchema
1417
1412
  }), "createResponseSchema");
1418
1413
 
@@ -2055,14 +2050,14 @@ var JsonRpcXyoViewer = class {
2055
2050
  address
2056
2051
  ]);
2057
2052
  }
2058
- async transferPairBalance(address) {
2053
+ async transferPairBalance(pair) {
2059
2054
  return asAttoXL12(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
2060
- address
2055
+ pair
2061
2056
  ]));
2062
2057
  }
2063
- async transferPairBalanceHistory(address) {
2058
+ async transferPairBalanceHistory(pair) {
2064
2059
  return await this.transport.sendRequest("xyoViewer_transferPairBalanceHistory", [
2065
- address
2060
+ pair
2066
2061
  ]);
2067
2062
  }
2068
2063
  };
@@ -2503,6 +2498,7 @@ export {
2503
2498
  TransactionFeesHexZod,
2504
2499
  TransactionFeesJsonToBigIntZod,
2505
2500
  TransferFieldsZod,
2501
+ TransferPairZod,
2506
2502
  TransferZod,
2507
2503
  UnsignedBoundWitnessWithStorageMetaZod,
2508
2504
  UnsignedBoundWitnessZod,