@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.
- 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/node/index-node.mjs
CHANGED
|
@@ -128,7 +128,7 @@ var JsonRpcErrorCodes = {
|
|
|
128
128
|
var jsonrpc = "2.0";
|
|
129
129
|
|
|
130
130
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
131
|
-
import * as
|
|
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:
|
|
454
|
-
from:
|
|
460
|
+
to: z17.array(z17.any()).length(0),
|
|
461
|
+
from: z17.array(z17.any()).length(0)
|
|
455
462
|
},
|
|
456
463
|
result: {
|
|
457
|
-
to:
|
|
458
|
-
from:
|
|
464
|
+
to: z17.array(InvokerPermissionZod),
|
|
465
|
+
from: z17.array(InvokerPermissionZod)
|
|
459
466
|
}
|
|
460
467
|
},
|
|
461
468
|
xyoPermissions_requestPermissions: {
|
|
462
469
|
params: {
|
|
463
|
-
to:
|
|
464
|
-
|
|
470
|
+
to: z17.tuple([
|
|
471
|
+
z17.array(PermissionRequestZod)
|
|
465
472
|
]),
|
|
466
|
-
from:
|
|
467
|
-
|
|
473
|
+
from: z17.tuple([
|
|
474
|
+
z17.array(PermissionRequestZod)
|
|
468
475
|
])
|
|
469
476
|
},
|
|
470
477
|
result: {
|
|
471
|
-
to:
|
|
472
|
-
from:
|
|
478
|
+
to: z17.array(RequestedPermissionZod),
|
|
479
|
+
from: z17.array(RequestedPermissionZod)
|
|
473
480
|
}
|
|
474
481
|
},
|
|
475
482
|
xyoPermissions_revokePermissions: {
|
|
476
483
|
params: {
|
|
477
|
-
to:
|
|
478
|
-
|
|
484
|
+
to: z17.tuple([
|
|
485
|
+
z17.array(PermissionRequestZod)
|
|
479
486
|
]),
|
|
480
|
-
from:
|
|
481
|
-
|
|
487
|
+
from: z17.tuple([
|
|
488
|
+
z17.array(PermissionRequestZod)
|
|
482
489
|
])
|
|
483
490
|
},
|
|
484
491
|
result: {
|
|
485
|
-
to:
|
|
486
|
-
from:
|
|
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
|
|
499
|
+
import * as z18 from "zod";
|
|
493
500
|
var XyoProviderRpcSchemas = {
|
|
494
501
|
xyoProvider_send: {
|
|
495
502
|
params: {
|
|
496
|
-
to:
|
|
503
|
+
to: z18.tuple([
|
|
497
504
|
AddressZod,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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:
|
|
512
|
+
from: z18.tuple([
|
|
506
513
|
AddressZod,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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
|
|
531
|
+
import * as z19 from "zod";
|
|
525
532
|
var XyoRunnerRpcSchemas = {
|
|
526
533
|
xyoRunner_broadcastTransaction: {
|
|
527
534
|
params: {
|
|
528
|
-
to:
|
|
535
|
+
to: z19.tuple([
|
|
529
536
|
SignedHydratedTransactionZod
|
|
530
537
|
]),
|
|
531
|
-
from:
|
|
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
|
|
551
|
+
import { z as z20 } from "zod";
|
|
545
552
|
var XyoSignerRpcSchemas = {
|
|
546
553
|
xyoSigner_address: {
|
|
547
554
|
params: {
|
|
548
|
-
to:
|
|
549
|
-
from:
|
|
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:
|
|
566
|
+
to: z20.tuple([
|
|
560
567
|
ChainZod,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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:
|
|
575
|
+
from: z20.tuple([
|
|
569
576
|
ChainZod,
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
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:
|
|
592
|
+
to: z20.tuple([
|
|
586
593
|
UnsignedHydratedTransactionZod
|
|
587
594
|
]),
|
|
588
|
-
from:
|
|
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
|
|
610
|
+
import * as z21 from "zod";
|
|
604
611
|
var XyoViewerRpcSchemas = {
|
|
605
612
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
606
613
|
params: {
|
|
607
|
-
to:
|
|
608
|
-
|
|
614
|
+
to: z21.union([
|
|
615
|
+
z21.tuple([
|
|
609
616
|
AddressZod
|
|
610
617
|
])
|
|
611
618
|
]),
|
|
612
|
-
from:
|
|
613
|
-
|
|
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:
|
|
626
|
-
|
|
632
|
+
to: z21.union([
|
|
633
|
+
z21.tuple([
|
|
627
634
|
StepIdentityZod,
|
|
628
635
|
AddressZod
|
|
629
636
|
])
|
|
630
637
|
]),
|
|
631
|
-
from:
|
|
632
|
-
|
|
638
|
+
from: z21.union([
|
|
639
|
+
z21.tuple([
|
|
633
640
|
StepIdentityZod,
|
|
634
641
|
AddressZod
|
|
635
642
|
])
|
|
636
643
|
])
|
|
637
644
|
},
|
|
638
645
|
result: {
|
|
639
|
-
to:
|
|
640
|
-
from:
|
|
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:
|
|
646
|
-
|
|
652
|
+
to: z21.union([
|
|
653
|
+
z21.tuple([
|
|
647
654
|
AddressZod
|
|
648
655
|
])
|
|
649
656
|
]),
|
|
650
|
-
from:
|
|
651
|
-
|
|
657
|
+
from: z21.union([
|
|
658
|
+
z21.tuple([
|
|
652
659
|
AddressZod
|
|
653
660
|
])
|
|
654
661
|
])
|
|
655
662
|
},
|
|
656
663
|
result: {
|
|
657
|
-
to:
|
|
658
|
-
from:
|
|
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:
|
|
664
|
-
|
|
670
|
+
to: z21.union([
|
|
671
|
+
z21.tuple([
|
|
665
672
|
StepIdentityZod,
|
|
666
673
|
AddressZod
|
|
667
674
|
])
|
|
668
675
|
]),
|
|
669
|
-
from:
|
|
670
|
-
|
|
676
|
+
from: z21.union([
|
|
677
|
+
z21.tuple([
|
|
671
678
|
StepIdentityZod,
|
|
672
679
|
AddressZod
|
|
673
680
|
])
|
|
674
681
|
])
|
|
675
682
|
},
|
|
676
683
|
result: {
|
|
677
|
-
to:
|
|
684
|
+
to: z21.tuple([
|
|
678
685
|
BigIntToJsonZod3,
|
|
679
686
|
BigIntToJsonZod3
|
|
680
687
|
]),
|
|
681
|
-
from:
|
|
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:
|
|
690
|
-
|
|
696
|
+
to: z21.union([
|
|
697
|
+
z21.tuple([
|
|
691
698
|
StepIdentityZod,
|
|
692
699
|
AddressZod
|
|
693
700
|
])
|
|
694
701
|
]),
|
|
695
|
-
from:
|
|
696
|
-
|
|
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:
|
|
710
|
-
|
|
716
|
+
to: z21.union([
|
|
717
|
+
z21.tuple([
|
|
711
718
|
AddressZod
|
|
712
719
|
])
|
|
713
720
|
]),
|
|
714
|
-
from:
|
|
715
|
-
|
|
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:
|
|
728
|
-
|
|
734
|
+
to: z21.union([
|
|
735
|
+
z21.tuple([
|
|
729
736
|
StepIdentityZod
|
|
730
737
|
])
|
|
731
738
|
]),
|
|
732
|
-
from:
|
|
733
|
-
|
|
739
|
+
from: z21.union([
|
|
740
|
+
z21.tuple([
|
|
734
741
|
StepIdentityZod
|
|
735
742
|
])
|
|
736
743
|
])
|
|
737
744
|
},
|
|
738
745
|
result: {
|
|
739
|
-
to:
|
|
740
|
-
from:
|
|
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:
|
|
746
|
-
|
|
752
|
+
to: z21.union([
|
|
753
|
+
z21.tuple([
|
|
747
754
|
StepIdentityZod,
|
|
748
|
-
|
|
755
|
+
z21.number()
|
|
749
756
|
])
|
|
750
757
|
]),
|
|
751
|
-
from:
|
|
752
|
-
|
|
758
|
+
from: z21.union([
|
|
759
|
+
z21.tuple([
|
|
753
760
|
StepIdentityZod,
|
|
754
|
-
|
|
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:
|
|
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,13 +789,13 @@ var XyoViewerRpcSchemas = {
|
|
|
782
789
|
},
|
|
783
790
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
784
791
|
params: {
|
|
785
|
-
to:
|
|
786
|
-
|
|
792
|
+
to: z21.union([
|
|
793
|
+
z21.tuple([
|
|
787
794
|
StepIdentityZod
|
|
788
795
|
])
|
|
789
796
|
]),
|
|
790
|
-
from:
|
|
791
|
-
|
|
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:
|
|
804
|
-
|
|
810
|
+
to: z21.union([
|
|
811
|
+
z21.tuple([
|
|
805
812
|
StepIdentityZod
|
|
806
813
|
])
|
|
807
814
|
]),
|
|
808
|
-
from:
|
|
809
|
-
|
|
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:
|
|
822
|
-
|
|
828
|
+
to: z21.union([
|
|
829
|
+
z21.tuple([
|
|
823
830
|
StepIdentityZod
|
|
824
831
|
])
|
|
825
832
|
]),
|
|
826
|
-
from:
|
|
827
|
-
|
|
833
|
+
from: z21.union([
|
|
834
|
+
z21.tuple([
|
|
828
835
|
StepIdentityZod
|
|
829
836
|
])
|
|
830
837
|
])
|
|
831
838
|
},
|
|
832
839
|
result: {
|
|
833
|
-
to:
|
|
834
|
-
from:
|
|
840
|
+
to: z21.number(),
|
|
841
|
+
from: z21.number()
|
|
835
842
|
}
|
|
836
843
|
},
|
|
837
844
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
838
845
|
params: {
|
|
839
|
-
to:
|
|
840
|
-
|
|
846
|
+
to: z21.union([
|
|
847
|
+
z21.tuple([
|
|
841
848
|
StepIdentityZod
|
|
842
849
|
])
|
|
843
850
|
]),
|
|
844
|
-
from:
|
|
845
|
-
|
|
851
|
+
from: z21.union([
|
|
852
|
+
z21.tuple([
|
|
846
853
|
StepIdentityZod
|
|
847
854
|
])
|
|
848
855
|
])
|
|
849
856
|
},
|
|
850
857
|
result: {
|
|
851
|
-
to:
|
|
852
|
-
from:
|
|
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:
|
|
858
|
-
|
|
864
|
+
to: z21.union([
|
|
865
|
+
z21.tuple([
|
|
859
866
|
StepIdentityZod,
|
|
860
|
-
|
|
867
|
+
z21.number()
|
|
861
868
|
])
|
|
862
869
|
]),
|
|
863
|
-
from:
|
|
864
|
-
|
|
870
|
+
from: z21.union([
|
|
871
|
+
z21.tuple([
|
|
865
872
|
StepIdentityZod,
|
|
866
|
-
|
|
873
|
+
z21.number()
|
|
867
874
|
])
|
|
868
875
|
])
|
|
869
876
|
},
|
|
870
877
|
result: {
|
|
871
|
-
to:
|
|
878
|
+
to: z21.tuple([
|
|
872
879
|
BigIntToJsonZod3,
|
|
873
880
|
BigIntToJsonZod3
|
|
874
881
|
]),
|
|
875
|
-
from:
|
|
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:
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
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:
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
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:
|
|
910
|
+
to: z21.tuple([
|
|
904
911
|
BigIntToJsonZod3,
|
|
905
912
|
BigIntToJsonZod3
|
|
906
913
|
]),
|
|
907
|
-
from:
|
|
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:
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
922
|
+
to: z21.union([
|
|
923
|
+
z21.tuple([
|
|
924
|
+
z21.tuple([
|
|
925
|
+
z21.number(),
|
|
926
|
+
z21.number()
|
|
920
927
|
])
|
|
921
928
|
])
|
|
922
929
|
]),
|
|
923
|
-
from:
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
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:
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
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:
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
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:
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
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:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
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:
|
|
992
|
+
to: z21.record(z21.string(), z21.tuple([
|
|
986
993
|
BigIntToJsonZod3,
|
|
987
994
|
BigIntToJsonZod3
|
|
988
995
|
])),
|
|
989
|
-
from:
|
|
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:
|
|
998
|
-
|
|
1004
|
+
to: z21.union([
|
|
1005
|
+
z21.tuple([
|
|
999
1006
|
AddressZod
|
|
1000
1007
|
])
|
|
1001
1008
|
]),
|
|
1002
|
-
from:
|
|
1003
|
-
|
|
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:
|
|
1016
|
-
|
|
1022
|
+
to: z21.union([
|
|
1023
|
+
z21.tuple([
|
|
1017
1024
|
AddressZod
|
|
1018
1025
|
])
|
|
1019
1026
|
]),
|
|
1020
|
-
from:
|
|
1021
|
-
|
|
1027
|
+
from: z21.union([
|
|
1028
|
+
z21.tuple([
|
|
1022
1029
|
AddressZod
|
|
1023
1030
|
])
|
|
1024
1031
|
])
|
|
1025
1032
|
},
|
|
1026
1033
|
result: {
|
|
1027
|
-
to:
|
|
1034
|
+
to: z21.array(z21.tuple([
|
|
1028
1035
|
HashZod2,
|
|
1029
1036
|
HashZod2,
|
|
1030
1037
|
TransferZod
|
|
1031
1038
|
])),
|
|
1032
|
-
from:
|
|
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:
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
AddressZod,
|
|
1045
|
-
AddressZod
|
|
1046
|
-
])
|
|
1048
|
+
to: z21.union([
|
|
1049
|
+
z21.tuple([
|
|
1050
|
+
TransferPairZod
|
|
1047
1051
|
])
|
|
1048
1052
|
]),
|
|
1049
|
-
from:
|
|
1050
|
-
|
|
1051
|
-
|
|
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:
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
AddressZod,
|
|
1069
|
-
AddressZod
|
|
1070
|
-
])
|
|
1066
|
+
to: z21.union([
|
|
1067
|
+
z21.tuple([
|
|
1068
|
+
TransferPairZod
|
|
1071
1069
|
])
|
|
1072
1070
|
]),
|
|
1073
|
-
from:
|
|
1074
|
-
|
|
1075
|
-
|
|
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:
|
|
1078
|
+
to: z21.array(z21.tuple([
|
|
1084
1079
|
HashZod2,
|
|
1085
1080
|
HashZod2,
|
|
1086
1081
|
PayloadZod
|
|
1087
1082
|
])),
|
|
1088
|
-
from:
|
|
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:
|
|
1098
|
-
|
|
1092
|
+
to: z21.union([
|
|
1093
|
+
z21.tuple([
|
|
1099
1094
|
AddressZod
|
|
1100
1095
|
])
|
|
1101
1096
|
]),
|
|
1102
|
-
from:
|
|
1103
|
-
|
|
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:
|
|
1116
|
-
|
|
1110
|
+
to: z21.union([
|
|
1111
|
+
z21.tuple([
|
|
1117
1112
|
AddressZod
|
|
1118
1113
|
])
|
|
1119
1114
|
]),
|
|
1120
|
-
from:
|
|
1121
|
-
|
|
1115
|
+
from: z21.union([
|
|
1116
|
+
z21.tuple([
|
|
1122
1117
|
AddressZod
|
|
1123
1118
|
])
|
|
1124
1119
|
])
|
|
1125
1120
|
},
|
|
1126
1121
|
result: {
|
|
1127
|
-
to:
|
|
1122
|
+
to: z21.array(z21.tuple([
|
|
1128
1123
|
HashZod2,
|
|
1129
1124
|
HashZod2,
|
|
1130
1125
|
PayloadZod
|
|
1131
1126
|
])),
|
|
1132
|
-
from:
|
|
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:
|
|
1136
|
+
to: z21.tuple([
|
|
1142
1137
|
HashToJsonZod3
|
|
1143
1138
|
]),
|
|
1144
|
-
from:
|
|
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:
|
|
1156
|
-
|
|
1150
|
+
to: z21.tuple([
|
|
1151
|
+
z21.number()
|
|
1157
1152
|
]),
|
|
1158
|
-
from:
|
|
1159
|
-
|
|
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:
|
|
1164
|
+
to: z21.tuple([
|
|
1170
1165
|
HashZod2,
|
|
1171
|
-
|
|
1166
|
+
z21.number().optional()
|
|
1172
1167
|
]),
|
|
1173
|
-
from:
|
|
1168
|
+
from: z21.tuple([
|
|
1174
1169
|
HashZod2,
|
|
1175
|
-
|
|
1170
|
+
z21.number().optional()
|
|
1176
1171
|
])
|
|
1177
1172
|
},
|
|
1178
1173
|
result: {
|
|
1179
|
-
to:
|
|
1180
|
-
from:
|
|
1174
|
+
to: z21.array(SignedHydratedBlockZod),
|
|
1175
|
+
from: z21.array(SignedHydratedBlockZod)
|
|
1181
1176
|
}
|
|
1182
1177
|
},
|
|
1183
1178
|
xyoViewer_chainId: {
|
|
1184
1179
|
params: {
|
|
1185
|
-
to:
|
|
1186
|
-
from:
|
|
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:
|
|
1190
|
+
to: z21.tuple([
|
|
1196
1191
|
BlockNumberZod
|
|
1197
1192
|
]),
|
|
1198
|
-
from:
|
|
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:
|
|
1210
|
-
from:
|
|
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:
|
|
1220
|
-
from:
|
|
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:
|
|
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: BlockNumberZod,
|
|
@@ -1236,23 +1231,23 @@ var XyoViewerRpcSchemas = {
|
|
|
1236
1231
|
},
|
|
1237
1232
|
xyoViewer_forkHistory: {
|
|
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
|
-
to:
|
|
1244
|
-
from:
|
|
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:
|
|
1244
|
+
to: z21.tuple([
|
|
1250
1245
|
AddressZod,
|
|
1251
|
-
|
|
1246
|
+
z21.number()
|
|
1252
1247
|
]),
|
|
1253
|
-
from:
|
|
1248
|
+
from: z21.tuple([
|
|
1254
1249
|
AddressZod,
|
|
1255
|
-
|
|
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:
|
|
1266
|
-
|
|
1260
|
+
to: z21.tuple([
|
|
1261
|
+
z21.number()
|
|
1267
1262
|
]),
|
|
1268
|
-
from:
|
|
1269
|
-
|
|
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:
|
|
1274
|
+
to: z21.tuple([
|
|
1280
1275
|
AddressZod
|
|
1281
1276
|
]),
|
|
1282
|
-
from:
|
|
1277
|
+
from: z21.tuple([
|
|
1283
1278
|
AddressZod
|
|
1284
1279
|
])
|
|
1285
1280
|
},
|
|
1286
1281
|
result: {
|
|
1287
|
-
to:
|
|
1288
|
-
from:
|
|
1282
|
+
to: z21.array(AddressZod),
|
|
1283
|
+
from: z21.array(AddressZod)
|
|
1289
1284
|
}
|
|
1290
1285
|
},
|
|
1291
1286
|
xyoViewer_stakesByStaker: {
|
|
1292
1287
|
params: {
|
|
1293
|
-
to:
|
|
1288
|
+
to: z21.tuple([
|
|
1294
1289
|
AddressZod
|
|
1295
1290
|
]),
|
|
1296
|
-
from:
|
|
1291
|
+
from: z21.tuple([
|
|
1297
1292
|
AddressZod
|
|
1298
1293
|
])
|
|
1299
1294
|
},
|
|
1300
1295
|
result: {
|
|
1301
|
-
to:
|
|
1302
|
-
from:
|
|
1296
|
+
to: z21.array(StakeToJsonZod),
|
|
1297
|
+
from: z21.array(JsonToStakeZod)
|
|
1303
1298
|
}
|
|
1304
1299
|
},
|
|
1305
1300
|
xyoViewer_stakesByStaked: {
|
|
1306
1301
|
params: {
|
|
1307
|
-
to:
|
|
1302
|
+
to: z21.tuple([
|
|
1308
1303
|
AddressZod
|
|
1309
1304
|
]),
|
|
1310
|
-
from:
|
|
1305
|
+
from: z21.tuple([
|
|
1311
1306
|
AddressZod
|
|
1312
1307
|
])
|
|
1313
1308
|
},
|
|
1314
1309
|
result: {
|
|
1315
|
-
to:
|
|
1316
|
-
from:
|
|
1310
|
+
to: z21.array(StakeToJsonZod),
|
|
1311
|
+
from: z21.array(JsonToStakeZod)
|
|
1317
1312
|
}
|
|
1318
1313
|
},
|
|
1319
1314
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1320
1315
|
params: {
|
|
1321
|
-
to:
|
|
1316
|
+
to: z21.tuple([
|
|
1322
1317
|
HashZod2,
|
|
1323
|
-
|
|
1318
|
+
z21.number()
|
|
1324
1319
|
]),
|
|
1325
|
-
from:
|
|
1320
|
+
from: z21.tuple([
|
|
1326
1321
|
HashZod2,
|
|
1327
|
-
|
|
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:
|
|
1338
|
-
|
|
1339
|
-
|
|
1332
|
+
to: z21.tuple([
|
|
1333
|
+
z21.number(),
|
|
1334
|
+
z21.number()
|
|
1340
1335
|
]),
|
|
1341
|
-
from:
|
|
1342
|
-
|
|
1343
|
-
|
|
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:
|
|
1348
|
+
to: z21.tuple([
|
|
1354
1349
|
HashZod2
|
|
1355
1350
|
]),
|
|
1356
|
-
from:
|
|
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
|
|
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(
|
|
2088
|
+
async transferPairBalance(pair) {
|
|
2094
2089
|
return asAttoXL12(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
|
|
2095
|
-
|
|
2090
|
+
pair
|
|
2096
2091
|
]));
|
|
2097
2092
|
}
|
|
2098
|
-
async transferPairBalanceHistory(
|
|
2093
|
+
async transferPairBalanceHistory(pair) {
|
|
2099
2094
|
return await this.transport.sendRequest("xyoViewer_transferPairBalanceHistory", [
|
|
2100
|
-
|
|
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,
|