@xyo-network/xl1-rpc 1.15.11 → 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.
- package/dist/neutral/index.mjs +290 -294
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransferPair.d.ts +11 -0
- package/dist/neutral/types/schema/common/TransferPair.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/index.d.ts +1 -0
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/index-node.mjs +290 -294
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +2 -2
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransferPair.d.ts +11 -0
- package/dist/node/types/schema/common/TransferPair.d.ts.map +1 -0
- package/dist/node/types/schema/common/index.d.ts +1 -0
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/package.json +26 -26
- package/src/provider/viewer/JsonRpcXyoViewer.ts +4 -5
- package/src/types/schema/XyoViewerRpcSchemas.ts +5 -4
- package/src/types/schema/common/TransferPair.ts +7 -0
- package/src/types/schema/common/index.ts +1 -0
package/dist/neutral/index.mjs
CHANGED
|
@@ -148,7 +148,7 @@ var JsonRpcErrorCodes = {
|
|
|
148
148
|
var jsonrpc = "2.0";
|
|
149
149
|
|
|
150
150
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
151
|
-
import * as
|
|
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:
|
|
474
|
-
from:
|
|
480
|
+
to: z17.array(z17.any()).length(0),
|
|
481
|
+
from: z17.array(z17.any()).length(0)
|
|
475
482
|
},
|
|
476
483
|
result: {
|
|
477
|
-
to:
|
|
478
|
-
from:
|
|
484
|
+
to: z17.array(InvokerPermissionZod),
|
|
485
|
+
from: z17.array(InvokerPermissionZod)
|
|
479
486
|
}
|
|
480
487
|
},
|
|
481
488
|
xyoPermissions_requestPermissions: {
|
|
482
489
|
params: {
|
|
483
|
-
to:
|
|
484
|
-
|
|
490
|
+
to: z17.tuple([
|
|
491
|
+
z17.array(PermissionRequestZod)
|
|
485
492
|
]),
|
|
486
|
-
from:
|
|
487
|
-
|
|
493
|
+
from: z17.tuple([
|
|
494
|
+
z17.array(PermissionRequestZod)
|
|
488
495
|
])
|
|
489
496
|
},
|
|
490
497
|
result: {
|
|
491
|
-
to:
|
|
492
|
-
from:
|
|
498
|
+
to: z17.array(RequestedPermissionZod),
|
|
499
|
+
from: z17.array(RequestedPermissionZod)
|
|
493
500
|
}
|
|
494
501
|
},
|
|
495
502
|
xyoPermissions_revokePermissions: {
|
|
496
503
|
params: {
|
|
497
|
-
to:
|
|
498
|
-
|
|
504
|
+
to: z17.tuple([
|
|
505
|
+
z17.array(PermissionRequestZod)
|
|
499
506
|
]),
|
|
500
|
-
from:
|
|
501
|
-
|
|
507
|
+
from: z17.tuple([
|
|
508
|
+
z17.array(PermissionRequestZod)
|
|
502
509
|
])
|
|
503
510
|
},
|
|
504
511
|
result: {
|
|
505
|
-
to:
|
|
506
|
-
from:
|
|
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
|
|
519
|
+
import * as z18 from "zod";
|
|
513
520
|
var XyoProviderRpcSchemas = {
|
|
514
521
|
xyoProvider_send: {
|
|
515
522
|
params: {
|
|
516
|
-
to:
|
|
523
|
+
to: z18.tuple([
|
|
517
524
|
AddressZod,
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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:
|
|
532
|
+
from: z18.tuple([
|
|
526
533
|
AddressZod,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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
|
|
551
|
+
import * as z19 from "zod";
|
|
545
552
|
var XyoRunnerRpcSchemas = {
|
|
546
553
|
xyoRunner_broadcastTransaction: {
|
|
547
554
|
params: {
|
|
548
|
-
to:
|
|
555
|
+
to: z19.tuple([
|
|
549
556
|
SignedHydratedTransactionZod
|
|
550
557
|
]),
|
|
551
|
-
from:
|
|
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
|
|
571
|
+
import { z as z20 } from "zod";
|
|
565
572
|
var XyoSignerRpcSchemas = {
|
|
566
573
|
xyoSigner_address: {
|
|
567
574
|
params: {
|
|
568
|
-
to:
|
|
569
|
-
from:
|
|
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:
|
|
586
|
+
to: z20.tuple([
|
|
580
587
|
ChainZod,
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
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:
|
|
595
|
+
from: z20.tuple([
|
|
589
596
|
ChainZod,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
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:
|
|
612
|
+
to: z20.tuple([
|
|
606
613
|
UnsignedHydratedTransactionZod
|
|
607
614
|
]),
|
|
608
|
-
from:
|
|
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
|
|
630
|
+
import * as z21 from "zod";
|
|
624
631
|
var XyoViewerRpcSchemas = {
|
|
625
632
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
626
633
|
params: {
|
|
627
|
-
to:
|
|
628
|
-
|
|
634
|
+
to: z21.union([
|
|
635
|
+
z21.tuple([
|
|
629
636
|
AddressZod
|
|
630
637
|
])
|
|
631
638
|
]),
|
|
632
|
-
from:
|
|
633
|
-
|
|
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:
|
|
646
|
-
|
|
652
|
+
to: z21.union([
|
|
653
|
+
z21.tuple([
|
|
647
654
|
StepIdentityZod,
|
|
648
655
|
AddressZod
|
|
649
656
|
])
|
|
650
657
|
]),
|
|
651
|
-
from:
|
|
652
|
-
|
|
658
|
+
from: z21.union([
|
|
659
|
+
z21.tuple([
|
|
653
660
|
StepIdentityZod,
|
|
654
661
|
AddressZod
|
|
655
662
|
])
|
|
656
663
|
])
|
|
657
664
|
},
|
|
658
665
|
result: {
|
|
659
|
-
to:
|
|
660
|
-
from:
|
|
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:
|
|
666
|
-
|
|
672
|
+
to: z21.union([
|
|
673
|
+
z21.tuple([
|
|
667
674
|
AddressZod
|
|
668
675
|
])
|
|
669
676
|
]),
|
|
670
|
-
from:
|
|
671
|
-
|
|
677
|
+
from: z21.union([
|
|
678
|
+
z21.tuple([
|
|
672
679
|
AddressZod
|
|
673
680
|
])
|
|
674
681
|
])
|
|
675
682
|
},
|
|
676
683
|
result: {
|
|
677
|
-
to:
|
|
678
|
-
from:
|
|
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:
|
|
684
|
-
|
|
690
|
+
to: z21.union([
|
|
691
|
+
z21.tuple([
|
|
685
692
|
StepIdentityZod,
|
|
686
693
|
AddressZod
|
|
687
694
|
])
|
|
688
695
|
]),
|
|
689
|
-
from:
|
|
690
|
-
|
|
696
|
+
from: z21.union([
|
|
697
|
+
z21.tuple([
|
|
691
698
|
StepIdentityZod,
|
|
692
699
|
AddressZod
|
|
693
700
|
])
|
|
694
701
|
])
|
|
695
702
|
},
|
|
696
703
|
result: {
|
|
697
|
-
to:
|
|
704
|
+
to: z21.tuple([
|
|
698
705
|
BigIntToJsonZod3,
|
|
699
706
|
BigIntToJsonZod3
|
|
700
707
|
]),
|
|
701
|
-
from:
|
|
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:
|
|
710
|
-
|
|
716
|
+
to: z21.union([
|
|
717
|
+
z21.tuple([
|
|
711
718
|
StepIdentityZod,
|
|
712
719
|
AddressZod
|
|
713
720
|
])
|
|
714
721
|
]),
|
|
715
|
-
from:
|
|
716
|
-
|
|
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:
|
|
730
|
-
|
|
736
|
+
to: z21.union([
|
|
737
|
+
z21.tuple([
|
|
731
738
|
AddressZod
|
|
732
739
|
])
|
|
733
740
|
]),
|
|
734
|
-
from:
|
|
735
|
-
|
|
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:
|
|
748
|
-
|
|
754
|
+
to: z21.union([
|
|
755
|
+
z21.tuple([
|
|
749
756
|
StepIdentityZod
|
|
750
757
|
])
|
|
751
758
|
]),
|
|
752
|
-
from:
|
|
753
|
-
|
|
759
|
+
from: z21.union([
|
|
760
|
+
z21.tuple([
|
|
754
761
|
StepIdentityZod
|
|
755
762
|
])
|
|
756
763
|
])
|
|
757
764
|
},
|
|
758
765
|
result: {
|
|
759
|
-
to:
|
|
760
|
-
from:
|
|
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:
|
|
766
|
-
|
|
772
|
+
to: z21.union([
|
|
773
|
+
z21.tuple([
|
|
767
774
|
StepIdentityZod,
|
|
768
|
-
|
|
775
|
+
z21.number()
|
|
769
776
|
])
|
|
770
777
|
]),
|
|
771
|
-
from:
|
|
772
|
-
|
|
778
|
+
from: z21.union([
|
|
779
|
+
z21.tuple([
|
|
773
780
|
StepIdentityZod,
|
|
774
|
-
|
|
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:
|
|
786
|
-
|
|
792
|
+
to: z21.union([
|
|
793
|
+
z21.tuple([
|
|
787
794
|
StepIdentityZod,
|
|
788
|
-
|
|
795
|
+
z21.number()
|
|
789
796
|
])
|
|
790
797
|
]),
|
|
791
|
-
from:
|
|
792
|
-
|
|
798
|
+
from: z21.union([
|
|
799
|
+
z21.tuple([
|
|
793
800
|
StepIdentityZod,
|
|
794
|
-
|
|
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:
|
|
806
|
-
|
|
812
|
+
to: z21.union([
|
|
813
|
+
z21.tuple([
|
|
807
814
|
StepIdentityZod
|
|
808
815
|
])
|
|
809
816
|
]),
|
|
810
|
-
from:
|
|
811
|
-
|
|
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:
|
|
824
|
-
|
|
830
|
+
to: z21.union([
|
|
831
|
+
z21.tuple([
|
|
825
832
|
StepIdentityZod
|
|
826
833
|
])
|
|
827
834
|
]),
|
|
828
|
-
from:
|
|
829
|
-
|
|
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:
|
|
842
|
-
|
|
848
|
+
to: z21.union([
|
|
849
|
+
z21.tuple([
|
|
843
850
|
StepIdentityZod
|
|
844
851
|
])
|
|
845
852
|
]),
|
|
846
|
-
from:
|
|
847
|
-
|
|
853
|
+
from: z21.union([
|
|
854
|
+
z21.tuple([
|
|
848
855
|
StepIdentityZod
|
|
849
856
|
])
|
|
850
857
|
])
|
|
851
858
|
},
|
|
852
859
|
result: {
|
|
853
|
-
to:
|
|
854
|
-
from:
|
|
860
|
+
to: z21.number(),
|
|
861
|
+
from: z21.number()
|
|
855
862
|
}
|
|
856
863
|
},
|
|
857
864
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
858
865
|
params: {
|
|
859
|
-
to:
|
|
860
|
-
|
|
866
|
+
to: z21.union([
|
|
867
|
+
z21.tuple([
|
|
861
868
|
StepIdentityZod
|
|
862
869
|
])
|
|
863
870
|
]),
|
|
864
|
-
from:
|
|
865
|
-
|
|
871
|
+
from: z21.union([
|
|
872
|
+
z21.tuple([
|
|
866
873
|
StepIdentityZod
|
|
867
874
|
])
|
|
868
875
|
])
|
|
869
876
|
},
|
|
870
877
|
result: {
|
|
871
|
-
to:
|
|
872
|
-
from:
|
|
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:
|
|
878
|
-
|
|
884
|
+
to: z21.union([
|
|
885
|
+
z21.tuple([
|
|
879
886
|
StepIdentityZod,
|
|
880
|
-
|
|
887
|
+
z21.number()
|
|
881
888
|
])
|
|
882
889
|
]),
|
|
883
|
-
from:
|
|
884
|
-
|
|
890
|
+
from: z21.union([
|
|
891
|
+
z21.tuple([
|
|
885
892
|
StepIdentityZod,
|
|
886
|
-
|
|
893
|
+
z21.number()
|
|
887
894
|
])
|
|
888
895
|
])
|
|
889
896
|
},
|
|
890
897
|
result: {
|
|
891
|
-
to:
|
|
898
|
+
to: z21.tuple([
|
|
892
899
|
BigIntToJsonZod3,
|
|
893
900
|
BigIntToJsonZod3
|
|
894
901
|
]),
|
|
895
|
-
from:
|
|
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:
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
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:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
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:
|
|
930
|
+
to: z21.tuple([
|
|
924
931
|
BigIntToJsonZod3,
|
|
925
932
|
BigIntToJsonZod3
|
|
926
933
|
]),
|
|
927
|
-
from:
|
|
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:
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
942
|
+
to: z21.union([
|
|
943
|
+
z21.tuple([
|
|
944
|
+
z21.tuple([
|
|
945
|
+
z21.number(),
|
|
946
|
+
z21.number()
|
|
940
947
|
])
|
|
941
948
|
])
|
|
942
949
|
]),
|
|
943
|
-
from:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
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:
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
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:
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
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:
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
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:
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
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:
|
|
1012
|
+
to: z21.record(z21.string(), z21.tuple([
|
|
1006
1013
|
BigIntToJsonZod3,
|
|
1007
1014
|
BigIntToJsonZod3
|
|
1008
1015
|
])),
|
|
1009
|
-
from:
|
|
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:
|
|
1018
|
-
|
|
1024
|
+
to: z21.union([
|
|
1025
|
+
z21.tuple([
|
|
1019
1026
|
AddressZod
|
|
1020
1027
|
])
|
|
1021
1028
|
]),
|
|
1022
|
-
from:
|
|
1023
|
-
|
|
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:
|
|
1036
|
-
|
|
1042
|
+
to: z21.union([
|
|
1043
|
+
z21.tuple([
|
|
1037
1044
|
AddressZod
|
|
1038
1045
|
])
|
|
1039
1046
|
]),
|
|
1040
|
-
from:
|
|
1041
|
-
|
|
1047
|
+
from: z21.union([
|
|
1048
|
+
z21.tuple([
|
|
1042
1049
|
AddressZod
|
|
1043
1050
|
])
|
|
1044
1051
|
])
|
|
1045
1052
|
},
|
|
1046
1053
|
result: {
|
|
1047
|
-
to:
|
|
1054
|
+
to: z21.array(z21.tuple([
|
|
1048
1055
|
HashZod2,
|
|
1049
1056
|
HashZod2,
|
|
1050
1057
|
TransferZod
|
|
1051
1058
|
])),
|
|
1052
|
-
from:
|
|
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:
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
AddressZod,
|
|
1065
|
-
AddressZod
|
|
1066
|
-
])
|
|
1068
|
+
to: z21.union([
|
|
1069
|
+
z21.tuple([
|
|
1070
|
+
TransferPairZod
|
|
1067
1071
|
])
|
|
1068
1072
|
]),
|
|
1069
|
-
from:
|
|
1070
|
-
|
|
1071
|
-
|
|
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:
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
AddressZod,
|
|
1089
|
-
AddressZod
|
|
1090
|
-
])
|
|
1086
|
+
to: z21.union([
|
|
1087
|
+
z21.tuple([
|
|
1088
|
+
TransferPairZod
|
|
1091
1089
|
])
|
|
1092
1090
|
]),
|
|
1093
|
-
from:
|
|
1094
|
-
|
|
1095
|
-
|
|
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:
|
|
1098
|
+
to: z21.array(z21.tuple([
|
|
1104
1099
|
HashZod2,
|
|
1105
1100
|
HashZod2,
|
|
1106
1101
|
PayloadZod
|
|
1107
1102
|
])),
|
|
1108
|
-
from:
|
|
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:
|
|
1118
|
-
|
|
1112
|
+
to: z21.union([
|
|
1113
|
+
z21.tuple([
|
|
1119
1114
|
AddressZod
|
|
1120
1115
|
])
|
|
1121
1116
|
]),
|
|
1122
|
-
from:
|
|
1123
|
-
|
|
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:
|
|
1136
|
-
|
|
1130
|
+
to: z21.union([
|
|
1131
|
+
z21.tuple([
|
|
1137
1132
|
AddressZod
|
|
1138
1133
|
])
|
|
1139
1134
|
]),
|
|
1140
|
-
from:
|
|
1141
|
-
|
|
1135
|
+
from: z21.union([
|
|
1136
|
+
z21.tuple([
|
|
1142
1137
|
AddressZod
|
|
1143
1138
|
])
|
|
1144
1139
|
])
|
|
1145
1140
|
},
|
|
1146
1141
|
result: {
|
|
1147
|
-
to:
|
|
1142
|
+
to: z21.array(z21.tuple([
|
|
1148
1143
|
HashZod2,
|
|
1149
1144
|
HashZod2,
|
|
1150
1145
|
PayloadZod
|
|
1151
1146
|
])),
|
|
1152
|
-
from:
|
|
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:
|
|
1156
|
+
to: z21.tuple([
|
|
1162
1157
|
HashToJsonZod3
|
|
1163
1158
|
]),
|
|
1164
|
-
from:
|
|
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:
|
|
1176
|
-
|
|
1170
|
+
to: z21.tuple([
|
|
1171
|
+
z21.number()
|
|
1177
1172
|
]),
|
|
1178
|
-
from:
|
|
1179
|
-
|
|
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:
|
|
1184
|
+
to: z21.tuple([
|
|
1190
1185
|
HashZod2,
|
|
1191
|
-
|
|
1186
|
+
z21.number().optional()
|
|
1192
1187
|
]),
|
|
1193
|
-
from:
|
|
1188
|
+
from: z21.tuple([
|
|
1194
1189
|
HashZod2,
|
|
1195
|
-
|
|
1190
|
+
z21.number().optional()
|
|
1196
1191
|
])
|
|
1197
1192
|
},
|
|
1198
1193
|
result: {
|
|
1199
|
-
to:
|
|
1200
|
-
from:
|
|
1194
|
+
to: z21.array(SignedHydratedBlockZod),
|
|
1195
|
+
from: z21.array(SignedHydratedBlockZod)
|
|
1201
1196
|
}
|
|
1202
1197
|
},
|
|
1203
1198
|
xyoViewer_chainId: {
|
|
1204
1199
|
params: {
|
|
1205
|
-
to:
|
|
1206
|
-
from:
|
|
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:
|
|
1210
|
+
to: z21.tuple([
|
|
1216
1211
|
BlockNumberZod
|
|
1217
1212
|
]),
|
|
1218
|
-
from:
|
|
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:
|
|
1230
|
-
from:
|
|
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:
|
|
1240
|
-
from:
|
|
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:
|
|
1250
|
-
from:
|
|
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:
|
|
1260
|
-
from:
|
|
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:
|
|
1264
|
-
from:
|
|
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:
|
|
1264
|
+
to: z21.tuple([
|
|
1270
1265
|
AddressZod,
|
|
1271
|
-
|
|
1266
|
+
z21.number()
|
|
1272
1267
|
]),
|
|
1273
|
-
from:
|
|
1268
|
+
from: z21.tuple([
|
|
1274
1269
|
AddressZod,
|
|
1275
|
-
|
|
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:
|
|
1286
|
-
|
|
1280
|
+
to: z21.tuple([
|
|
1281
|
+
z21.number()
|
|
1287
1282
|
]),
|
|
1288
|
-
from:
|
|
1289
|
-
|
|
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:
|
|
1294
|
+
to: z21.tuple([
|
|
1300
1295
|
AddressZod
|
|
1301
1296
|
]),
|
|
1302
|
-
from:
|
|
1297
|
+
from: z21.tuple([
|
|
1303
1298
|
AddressZod
|
|
1304
1299
|
])
|
|
1305
1300
|
},
|
|
1306
1301
|
result: {
|
|
1307
|
-
to:
|
|
1308
|
-
from:
|
|
1302
|
+
to: z21.array(AddressZod),
|
|
1303
|
+
from: z21.array(AddressZod)
|
|
1309
1304
|
}
|
|
1310
1305
|
},
|
|
1311
1306
|
xyoViewer_stakesByStaker: {
|
|
1312
1307
|
params: {
|
|
1313
|
-
to:
|
|
1308
|
+
to: z21.tuple([
|
|
1314
1309
|
AddressZod
|
|
1315
1310
|
]),
|
|
1316
|
-
from:
|
|
1311
|
+
from: z21.tuple([
|
|
1317
1312
|
AddressZod
|
|
1318
1313
|
])
|
|
1319
1314
|
},
|
|
1320
1315
|
result: {
|
|
1321
|
-
to:
|
|
1322
|
-
from:
|
|
1316
|
+
to: z21.array(StakeToJsonZod),
|
|
1317
|
+
from: z21.array(JsonToStakeZod)
|
|
1323
1318
|
}
|
|
1324
1319
|
},
|
|
1325
1320
|
xyoViewer_stakesByStaked: {
|
|
1326
1321
|
params: {
|
|
1327
|
-
to:
|
|
1322
|
+
to: z21.tuple([
|
|
1328
1323
|
AddressZod
|
|
1329
1324
|
]),
|
|
1330
|
-
from:
|
|
1325
|
+
from: z21.tuple([
|
|
1331
1326
|
AddressZod
|
|
1332
1327
|
])
|
|
1333
1328
|
},
|
|
1334
1329
|
result: {
|
|
1335
|
-
to:
|
|
1336
|
-
from:
|
|
1330
|
+
to: z21.array(StakeToJsonZod),
|
|
1331
|
+
from: z21.array(JsonToStakeZod)
|
|
1337
1332
|
}
|
|
1338
1333
|
},
|
|
1339
1334
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1340
1335
|
params: {
|
|
1341
|
-
to:
|
|
1336
|
+
to: z21.tuple([
|
|
1342
1337
|
HashZod2,
|
|
1343
|
-
|
|
1338
|
+
z21.number()
|
|
1344
1339
|
]),
|
|
1345
|
-
from:
|
|
1340
|
+
from: z21.tuple([
|
|
1346
1341
|
HashZod2,
|
|
1347
|
-
|
|
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:
|
|
1358
|
-
|
|
1359
|
-
|
|
1352
|
+
to: z21.tuple([
|
|
1353
|
+
z21.number(),
|
|
1354
|
+
z21.number()
|
|
1360
1355
|
]),
|
|
1361
|
-
from:
|
|
1362
|
-
|
|
1363
|
-
|
|
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:
|
|
1368
|
+
to: z21.tuple([
|
|
1374
1369
|
HashZod2
|
|
1375
1370
|
]),
|
|
1376
|
-
from:
|
|
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
|
|
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(
|
|
2053
|
+
async transferPairBalance(pair) {
|
|
2059
2054
|
return asAttoXL12(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
|
|
2060
|
-
|
|
2055
|
+
pair
|
|
2061
2056
|
]));
|
|
2062
2057
|
}
|
|
2063
|
-
async transferPairBalanceHistory(
|
|
2058
|
+
async transferPairBalanceHistory(pair) {
|
|
2064
2059
|
return await this.transport.sendRequest("xyoViewer_transferPairBalanceHistory", [
|
|
2065
|
-
|
|
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,
|