@xyo-network/xl1-rpc 1.15.11 → 1.15.13

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