@secondlayer/stacks 3.0.0 → 3.0.1
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/shared/{stacks-2p9cazp7.cjs → stacks-86ngngnk.cjs} +12 -4
- package/dist/shared/stacks-86ngngnk.cjs.map +12 -0
- package/dist/shared/{stacks-tqrws7kd.js → stacks-qc25xx02.js} +12 -5
- package/dist/shared/stacks-qc25xx02.js.map +12 -0
- package/dist/src/filters/index.d.cts +52 -27
- package/dist/src/filters/index.d.ts +52 -27
- package/dist/src/filters/index.js +4 -2
- package/dist/src/filters/index.js.map +1 -1
- package/dist/src/index.d.cts +26 -8
- package/dist/src/index.d.ts +26 -8
- package/dist/src/index.js +1 -1
- package/dist/src/pox/index.cjs +71 -14
- package/dist/src/pox/index.cjs.map +4 -4
- package/dist/src/pox/index.d.cts +437 -1
- package/dist/src/pox/index.d.ts +437 -1
- package/dist/src/pox/index.js +71 -14
- package/dist/src/pox/index.js.map +4 -4
- package/dist/src/pox5/index.cjs +70 -33
- package/dist/src/pox5/index.cjs.map +3 -3
- package/dist/src/pox5/index.d.cts +899 -1
- package/dist/src/pox5/index.d.ts +899 -1
- package/dist/src/pox5/index.js +70 -33
- package/dist/src/pox5/index.js.map +3 -3
- package/package.json +3 -5
- package/dist/shared/stacks-2p9cazp7.cjs.map +0 -12
- package/dist/shared/stacks-tqrws7kd.js.map +0 -12
package/dist/src/pox5/index.d.ts
CHANGED
|
@@ -695,4 +695,902 @@ type Pox5Actions = {
|
|
|
695
695
|
* }
|
|
696
696
|
*/
|
|
697
697
|
declare function pox5(): (client: Client) => Pox5Actions;
|
|
698
|
-
|
|
698
|
+
declare const POX5_ABI: {
|
|
699
|
+
readonly functions: readonly [{
|
|
700
|
+
readonly name: "current-pox-reward-cycle"
|
|
701
|
+
readonly access: "read-only"
|
|
702
|
+
readonly args: readonly []
|
|
703
|
+
readonly outputs: "uint128"
|
|
704
|
+
}, {
|
|
705
|
+
readonly name: "get-bond-allowance"
|
|
706
|
+
readonly access: "read-only"
|
|
707
|
+
readonly args: readonly [{
|
|
708
|
+
readonly name: "bond-index"
|
|
709
|
+
readonly type: "uint128"
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "staker"
|
|
712
|
+
readonly type: "principal"
|
|
713
|
+
}]
|
|
714
|
+
readonly outputs: {
|
|
715
|
+
readonly optional: "uint128"
|
|
716
|
+
}
|
|
717
|
+
}, {
|
|
718
|
+
readonly name: "get-bond-l1-unlock-height"
|
|
719
|
+
readonly access: "read-only"
|
|
720
|
+
readonly args: readonly [{
|
|
721
|
+
readonly name: "bond-index"
|
|
722
|
+
readonly type: "uint128"
|
|
723
|
+
}]
|
|
724
|
+
readonly outputs: "uint128"
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "get-bond-membership"
|
|
727
|
+
readonly access: "read-only"
|
|
728
|
+
readonly args: readonly [{
|
|
729
|
+
readonly name: "staker"
|
|
730
|
+
readonly type: "principal"
|
|
731
|
+
}]
|
|
732
|
+
readonly outputs: {
|
|
733
|
+
readonly optional: {
|
|
734
|
+
readonly tuple: readonly [{
|
|
735
|
+
readonly name: "amount-sats"
|
|
736
|
+
readonly type: "uint128"
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "amount-ustx"
|
|
739
|
+
readonly type: "uint128"
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "bond-index"
|
|
742
|
+
readonly type: "uint128"
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "is-l1-lock"
|
|
745
|
+
readonly type: "bool"
|
|
746
|
+
}, {
|
|
747
|
+
readonly name: "signer"
|
|
748
|
+
readonly type: "principal"
|
|
749
|
+
}]
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "get-first-pox-5-reward-cycle"
|
|
754
|
+
readonly access: "read-only"
|
|
755
|
+
readonly args: readonly []
|
|
756
|
+
readonly outputs: "uint128"
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "get-protocol-bond"
|
|
759
|
+
readonly access: "read-only"
|
|
760
|
+
readonly args: readonly [{
|
|
761
|
+
readonly name: "bond-index"
|
|
762
|
+
readonly type: "uint128"
|
|
763
|
+
}]
|
|
764
|
+
readonly outputs: {
|
|
765
|
+
readonly optional: {
|
|
766
|
+
readonly tuple: readonly [{
|
|
767
|
+
readonly name: "early-unlock-bytes"
|
|
768
|
+
readonly type: {
|
|
769
|
+
readonly buff: {
|
|
770
|
+
readonly length: 683
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "min-ustx-ratio"
|
|
775
|
+
readonly type: "uint128"
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "stx-value-ratio"
|
|
778
|
+
readonly type: "uint128"
|
|
779
|
+
}, {
|
|
780
|
+
readonly name: "target-rate"
|
|
781
|
+
readonly type: "uint128"
|
|
782
|
+
}]
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}, {
|
|
786
|
+
readonly name: "get-signer-info"
|
|
787
|
+
readonly access: "read-only"
|
|
788
|
+
readonly args: readonly [{
|
|
789
|
+
readonly name: "signer"
|
|
790
|
+
readonly type: "principal"
|
|
791
|
+
}]
|
|
792
|
+
readonly outputs: {
|
|
793
|
+
readonly optional: {
|
|
794
|
+
readonly buff: {
|
|
795
|
+
readonly length: 33
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "get-staker-custodied-sbtc"
|
|
801
|
+
readonly access: "read-only"
|
|
802
|
+
readonly args: readonly [{
|
|
803
|
+
readonly name: "staker"
|
|
804
|
+
readonly type: "principal"
|
|
805
|
+
}]
|
|
806
|
+
readonly outputs: "uint128"
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "get-staker-info"
|
|
809
|
+
readonly access: "read-only"
|
|
810
|
+
readonly args: readonly [{
|
|
811
|
+
readonly name: "staker"
|
|
812
|
+
readonly type: "principal"
|
|
813
|
+
}]
|
|
814
|
+
readonly outputs: {
|
|
815
|
+
readonly optional: {
|
|
816
|
+
readonly tuple: readonly [{
|
|
817
|
+
readonly name: "amount-ustx"
|
|
818
|
+
readonly type: "uint128"
|
|
819
|
+
}, {
|
|
820
|
+
readonly name: "first-reward-cycle"
|
|
821
|
+
readonly type: "uint128"
|
|
822
|
+
}, {
|
|
823
|
+
readonly name: "num-cycles"
|
|
824
|
+
readonly type: "uint128"
|
|
825
|
+
}, {
|
|
826
|
+
readonly name: "signer"
|
|
827
|
+
readonly type: "principal"
|
|
828
|
+
}]
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "get-total-sbtc-staked-for-bond"
|
|
833
|
+
readonly access: "read-only"
|
|
834
|
+
readonly args: readonly [{
|
|
835
|
+
readonly name: "bond-index"
|
|
836
|
+
readonly type: "uint128"
|
|
837
|
+
}]
|
|
838
|
+
readonly outputs: "uint128"
|
|
839
|
+
}, {
|
|
840
|
+
readonly name: "has-announced-l1-early-exit"
|
|
841
|
+
readonly access: "read-only"
|
|
842
|
+
readonly args: readonly [{
|
|
843
|
+
readonly name: "bond-index"
|
|
844
|
+
readonly type: "uint128"
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "staker"
|
|
847
|
+
readonly type: "principal"
|
|
848
|
+
}]
|
|
849
|
+
readonly outputs: "bool"
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "verify-signer-key-grant"
|
|
852
|
+
readonly access: "read-only"
|
|
853
|
+
readonly args: readonly [{
|
|
854
|
+
readonly name: "signer-manager"
|
|
855
|
+
readonly type: "principal"
|
|
856
|
+
}, {
|
|
857
|
+
readonly name: "signer-key"
|
|
858
|
+
readonly type: {
|
|
859
|
+
readonly buff: {
|
|
860
|
+
readonly length: 33
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}]
|
|
864
|
+
readonly outputs: {
|
|
865
|
+
readonly response: {
|
|
866
|
+
readonly ok: "bool"
|
|
867
|
+
readonly error: "uint128"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "announce-l1-early-exit"
|
|
872
|
+
readonly access: "public"
|
|
873
|
+
readonly args: readonly [{
|
|
874
|
+
readonly name: "staker"
|
|
875
|
+
readonly type: "principal"
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "old-signer-manager"
|
|
878
|
+
readonly type: "trait_reference"
|
|
879
|
+
}]
|
|
880
|
+
readonly outputs: {
|
|
881
|
+
readonly response: {
|
|
882
|
+
readonly ok: {
|
|
883
|
+
readonly tuple: readonly [{
|
|
884
|
+
readonly name: "amount-sats-released"
|
|
885
|
+
readonly type: "uint128"
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "bond-index"
|
|
888
|
+
readonly type: "uint128"
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "signer"
|
|
891
|
+
readonly type: "principal"
|
|
892
|
+
}, {
|
|
893
|
+
readonly name: "staker"
|
|
894
|
+
readonly type: "principal"
|
|
895
|
+
}]
|
|
896
|
+
}
|
|
897
|
+
readonly error: "uint128"
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "calculate-rewards"
|
|
902
|
+
readonly access: "public"
|
|
903
|
+
readonly args: readonly [{
|
|
904
|
+
readonly name: "bond-periods"
|
|
905
|
+
readonly type: {
|
|
906
|
+
readonly list: {
|
|
907
|
+
readonly type: "uint128"
|
|
908
|
+
readonly length: 6
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}]
|
|
912
|
+
readonly outputs: {
|
|
913
|
+
readonly response: {
|
|
914
|
+
readonly ok: {
|
|
915
|
+
readonly tuple: readonly [{
|
|
916
|
+
readonly name: "accrued-rewards-per-ustx"
|
|
917
|
+
readonly type: "uint128"
|
|
918
|
+
}, {
|
|
919
|
+
readonly name: "bond-periods"
|
|
920
|
+
readonly type: {
|
|
921
|
+
readonly list: {
|
|
922
|
+
readonly type: "uint128"
|
|
923
|
+
readonly length: 6
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}, {
|
|
927
|
+
readonly name: "calculation-height"
|
|
928
|
+
readonly type: "uint128"
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "cumulative-rewards-per-ustx"
|
|
931
|
+
readonly type: "uint128"
|
|
932
|
+
}, {
|
|
933
|
+
readonly name: "cycle-staked-ustx"
|
|
934
|
+
readonly type: "uint128"
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "gross-accrued-rewards"
|
|
937
|
+
readonly type: "uint128"
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "reserve-balance"
|
|
940
|
+
readonly type: "uint128"
|
|
941
|
+
}, {
|
|
942
|
+
readonly name: "reserve-deposit"
|
|
943
|
+
readonly type: "uint128"
|
|
944
|
+
}, {
|
|
945
|
+
readonly name: "stx-cycle"
|
|
946
|
+
readonly type: "uint128"
|
|
947
|
+
}, {
|
|
948
|
+
readonly name: "total-bond-rewards"
|
|
949
|
+
readonly type: "uint128"
|
|
950
|
+
}, {
|
|
951
|
+
readonly name: "total-stx-staker-rewards"
|
|
952
|
+
readonly type: "uint128"
|
|
953
|
+
}]
|
|
954
|
+
}
|
|
955
|
+
readonly error: "uint128"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "claim-rewards"
|
|
960
|
+
readonly access: "public"
|
|
961
|
+
readonly args: readonly [{
|
|
962
|
+
readonly name: "bond-periods"
|
|
963
|
+
readonly type: {
|
|
964
|
+
readonly list: {
|
|
965
|
+
readonly type: "uint128"
|
|
966
|
+
readonly length: 6
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}, {
|
|
970
|
+
readonly name: "reward-cycle"
|
|
971
|
+
readonly type: "uint128"
|
|
972
|
+
}]
|
|
973
|
+
readonly outputs: {
|
|
974
|
+
readonly response: {
|
|
975
|
+
readonly ok: {
|
|
976
|
+
readonly tuple: readonly [{
|
|
977
|
+
readonly name: "bond-rewards"
|
|
978
|
+
readonly type: {
|
|
979
|
+
readonly list: {
|
|
980
|
+
readonly type: {
|
|
981
|
+
readonly tuple: readonly [{
|
|
982
|
+
readonly name: "bond-index"
|
|
983
|
+
readonly type: "uint128"
|
|
984
|
+
}, {
|
|
985
|
+
readonly name: "earned"
|
|
986
|
+
readonly type: "uint128"
|
|
987
|
+
}, {
|
|
988
|
+
readonly name: "rewards-per-token"
|
|
989
|
+
readonly type: "uint128"
|
|
990
|
+
}]
|
|
991
|
+
}
|
|
992
|
+
readonly length: 6
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "bond-totals"
|
|
997
|
+
readonly type: "uint128"
|
|
998
|
+
}, {
|
|
999
|
+
readonly name: "stx-rewards"
|
|
1000
|
+
readonly type: {
|
|
1001
|
+
readonly tuple: readonly [{
|
|
1002
|
+
readonly name: "earned"
|
|
1003
|
+
readonly type: "uint128"
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly name: "rewards-per-token"
|
|
1006
|
+
readonly type: "uint128"
|
|
1007
|
+
}]
|
|
1008
|
+
}
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly name: "total-rewards"
|
|
1011
|
+
readonly type: "uint128"
|
|
1012
|
+
}]
|
|
1013
|
+
}
|
|
1014
|
+
readonly error: "uint128"
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly name: "claim-staker-rewards-for-signer"
|
|
1019
|
+
readonly access: "public"
|
|
1020
|
+
readonly args: readonly [{
|
|
1021
|
+
readonly name: "staker"
|
|
1022
|
+
readonly type: "principal"
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly name: "reward-cycle"
|
|
1025
|
+
readonly type: "uint128"
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly name: "bond-index"
|
|
1028
|
+
readonly type: {
|
|
1029
|
+
readonly optional: "uint128"
|
|
1030
|
+
}
|
|
1031
|
+
}]
|
|
1032
|
+
readonly outputs: {
|
|
1033
|
+
readonly response: {
|
|
1034
|
+
readonly ok: {
|
|
1035
|
+
readonly tuple: readonly [{
|
|
1036
|
+
readonly name: "earned"
|
|
1037
|
+
readonly type: "uint128"
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly name: "rewards-per-token"
|
|
1040
|
+
readonly type: "uint128"
|
|
1041
|
+
}]
|
|
1042
|
+
}
|
|
1043
|
+
readonly error: "uint128"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly name: "grant-signer-key"
|
|
1048
|
+
readonly access: "public"
|
|
1049
|
+
readonly args: readonly [{
|
|
1050
|
+
readonly name: "signer-key"
|
|
1051
|
+
readonly type: {
|
|
1052
|
+
readonly buff: {
|
|
1053
|
+
readonly length: 33
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly name: "signer-manager"
|
|
1058
|
+
readonly type: "principal"
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly name: "auth-id"
|
|
1061
|
+
readonly type: "uint128"
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly name: "signer-sig"
|
|
1064
|
+
readonly type: {
|
|
1065
|
+
readonly buff: {
|
|
1066
|
+
readonly length: 65
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}]
|
|
1070
|
+
readonly outputs: {
|
|
1071
|
+
readonly response: {
|
|
1072
|
+
readonly ok: {
|
|
1073
|
+
readonly tuple: readonly [{
|
|
1074
|
+
readonly name: "auth-id"
|
|
1075
|
+
readonly type: "uint128"
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly name: "signer-key"
|
|
1078
|
+
readonly type: {
|
|
1079
|
+
readonly buff: {
|
|
1080
|
+
readonly length: 33
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}, {
|
|
1084
|
+
readonly name: "signer-manager"
|
|
1085
|
+
readonly type: "principal"
|
|
1086
|
+
}]
|
|
1087
|
+
}
|
|
1088
|
+
readonly error: "uint128"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly name: "register-for-bond"
|
|
1093
|
+
readonly access: "public"
|
|
1094
|
+
readonly args: readonly [{
|
|
1095
|
+
readonly name: "bond-index"
|
|
1096
|
+
readonly type: "uint128"
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "signer-manager"
|
|
1099
|
+
readonly type: "trait_reference"
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly name: "amount-ustx"
|
|
1102
|
+
readonly type: "uint128"
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "btc-lockup"
|
|
1105
|
+
readonly type: {
|
|
1106
|
+
readonly response: {
|
|
1107
|
+
readonly ok: {
|
|
1108
|
+
readonly tuple: readonly [{
|
|
1109
|
+
readonly name: "outputs"
|
|
1110
|
+
readonly type: {
|
|
1111
|
+
readonly list: {
|
|
1112
|
+
readonly type: {
|
|
1113
|
+
readonly tuple: readonly [{
|
|
1114
|
+
readonly name: "amount"
|
|
1115
|
+
readonly type: "uint128"
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly name: "header"
|
|
1118
|
+
readonly type: {
|
|
1119
|
+
readonly buff: {
|
|
1120
|
+
readonly length: 80
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}, {
|
|
1124
|
+
readonly name: "height"
|
|
1125
|
+
readonly type: "uint128"
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly name: "leaf-hashes"
|
|
1128
|
+
readonly type: {
|
|
1129
|
+
readonly list: {
|
|
1130
|
+
readonly type: {
|
|
1131
|
+
readonly buff: {
|
|
1132
|
+
readonly length: 32
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
readonly length: 14
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly name: "output-index"
|
|
1140
|
+
readonly type: "uint128"
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly name: "tx"
|
|
1143
|
+
readonly type: {
|
|
1144
|
+
readonly buff: {
|
|
1145
|
+
readonly length: 100000
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}, {
|
|
1149
|
+
readonly name: "tx-count"
|
|
1150
|
+
readonly type: "uint128"
|
|
1151
|
+
}, {
|
|
1152
|
+
readonly name: "tx-index"
|
|
1153
|
+
readonly type: "uint128"
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly name: "unlock-burn-height"
|
|
1156
|
+
readonly type: "uint128"
|
|
1157
|
+
}]
|
|
1158
|
+
}
|
|
1159
|
+
readonly length: 10
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}, {
|
|
1163
|
+
readonly name: "staker-unlock-bytes"
|
|
1164
|
+
readonly type: {
|
|
1165
|
+
readonly buff: {
|
|
1166
|
+
readonly length: 683
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}]
|
|
1170
|
+
}
|
|
1171
|
+
readonly error: "uint128"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly name: "signer-calldata"
|
|
1176
|
+
readonly type: {
|
|
1177
|
+
readonly optional: {
|
|
1178
|
+
readonly buff: {
|
|
1179
|
+
readonly length: 500
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}]
|
|
1184
|
+
readonly outputs: {
|
|
1185
|
+
readonly response: {
|
|
1186
|
+
readonly ok: {
|
|
1187
|
+
readonly tuple: readonly [{
|
|
1188
|
+
readonly name: "amount-ustx"
|
|
1189
|
+
readonly type: "uint128"
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly name: "bond-index"
|
|
1192
|
+
readonly type: "uint128"
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly name: "btc-lockup"
|
|
1195
|
+
readonly type: {
|
|
1196
|
+
readonly tuple: readonly [{
|
|
1197
|
+
readonly name: "txs"
|
|
1198
|
+
readonly type: {
|
|
1199
|
+
readonly optional: {
|
|
1200
|
+
readonly list: {
|
|
1201
|
+
readonly type: {
|
|
1202
|
+
readonly tuple: readonly [{
|
|
1203
|
+
readonly name: "output-index"
|
|
1204
|
+
readonly type: "uint128"
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly name: "txid"
|
|
1207
|
+
readonly type: {
|
|
1208
|
+
readonly buff: {
|
|
1209
|
+
readonly length: 32
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}]
|
|
1213
|
+
}
|
|
1214
|
+
readonly length: 10
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly name: "type"
|
|
1220
|
+
readonly type: {
|
|
1221
|
+
readonly "string-ascii": {
|
|
1222
|
+
readonly length: 2
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}]
|
|
1226
|
+
}
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly name: "first-reward-cycle"
|
|
1229
|
+
readonly type: "uint128"
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly name: "is-l1-lock"
|
|
1232
|
+
readonly type: "bool"
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly name: "sats-total"
|
|
1235
|
+
readonly type: "uint128"
|
|
1236
|
+
}, {
|
|
1237
|
+
readonly name: "signer"
|
|
1238
|
+
readonly type: "principal"
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly name: "staker"
|
|
1241
|
+
readonly type: "principal"
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly name: "unlock-burn-height"
|
|
1244
|
+
readonly type: "uint128"
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly name: "unlock-cycle"
|
|
1247
|
+
readonly type: "uint128"
|
|
1248
|
+
}]
|
|
1249
|
+
}
|
|
1250
|
+
readonly error: "uint128"
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly name: "revoke-signer-grant"
|
|
1255
|
+
readonly access: "public"
|
|
1256
|
+
readonly args: readonly [{
|
|
1257
|
+
readonly name: "signer-manager"
|
|
1258
|
+
readonly type: "principal"
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly name: "signer-key"
|
|
1261
|
+
readonly type: {
|
|
1262
|
+
readonly buff: {
|
|
1263
|
+
readonly length: 33
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}]
|
|
1267
|
+
readonly outputs: {
|
|
1268
|
+
readonly response: {
|
|
1269
|
+
readonly ok: {
|
|
1270
|
+
readonly tuple: readonly [{
|
|
1271
|
+
readonly name: "existed"
|
|
1272
|
+
readonly type: "bool"
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly name: "signer-key"
|
|
1275
|
+
readonly type: {
|
|
1276
|
+
readonly buff: {
|
|
1277
|
+
readonly length: 33
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly name: "signer-manager"
|
|
1282
|
+
readonly type: "principal"
|
|
1283
|
+
}]
|
|
1284
|
+
}
|
|
1285
|
+
readonly error: "uint128"
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly name: "setup-bond"
|
|
1290
|
+
readonly access: "public"
|
|
1291
|
+
readonly args: readonly [{
|
|
1292
|
+
readonly name: "bond-index"
|
|
1293
|
+
readonly type: "uint128"
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly name: "target-rate"
|
|
1296
|
+
readonly type: "uint128"
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly name: "stx-value-ratio"
|
|
1299
|
+
readonly type: "uint128"
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly name: "min-ustx-ratio"
|
|
1302
|
+
readonly type: "uint128"
|
|
1303
|
+
}, {
|
|
1304
|
+
readonly name: "early-unlock-bytes"
|
|
1305
|
+
readonly type: {
|
|
1306
|
+
readonly buff: {
|
|
1307
|
+
readonly length: 683
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly name: "allowlist"
|
|
1312
|
+
readonly type: {
|
|
1313
|
+
readonly list: {
|
|
1314
|
+
readonly type: {
|
|
1315
|
+
readonly tuple: readonly [{
|
|
1316
|
+
readonly name: "max-sats"
|
|
1317
|
+
readonly type: "uint128"
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "staker"
|
|
1320
|
+
readonly type: "principal"
|
|
1321
|
+
}]
|
|
1322
|
+
}
|
|
1323
|
+
readonly length: 1000
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}]
|
|
1327
|
+
readonly outputs: {
|
|
1328
|
+
readonly response: {
|
|
1329
|
+
readonly ok: {
|
|
1330
|
+
readonly tuple: readonly [{
|
|
1331
|
+
readonly name: "bond-index"
|
|
1332
|
+
readonly type: "uint128"
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly name: "early-unlock-bytes"
|
|
1335
|
+
readonly type: {
|
|
1336
|
+
readonly buff: {
|
|
1337
|
+
readonly length: 683
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly name: "max-allocation-sats"
|
|
1342
|
+
readonly type: "uint128"
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly name: "min-ustx-ratio"
|
|
1345
|
+
readonly type: "uint128"
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly name: "stx-value-ratio"
|
|
1348
|
+
readonly type: "uint128"
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly name: "target-rate"
|
|
1351
|
+
readonly type: "uint128"
|
|
1352
|
+
}]
|
|
1353
|
+
}
|
|
1354
|
+
readonly error: "uint128"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly name: "stake"
|
|
1359
|
+
readonly access: "public"
|
|
1360
|
+
readonly args: readonly [{
|
|
1361
|
+
readonly name: "signer-manager"
|
|
1362
|
+
readonly type: "trait_reference"
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly name: "amount-ustx"
|
|
1365
|
+
readonly type: "uint128"
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly name: "num-cycles"
|
|
1368
|
+
readonly type: "uint128"
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "start-burn-ht"
|
|
1371
|
+
readonly type: "uint128"
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly name: "signer-calldata"
|
|
1374
|
+
readonly type: {
|
|
1375
|
+
readonly optional: {
|
|
1376
|
+
readonly buff: {
|
|
1377
|
+
readonly length: 500
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
}]
|
|
1382
|
+
readonly outputs: {
|
|
1383
|
+
readonly response: {
|
|
1384
|
+
readonly ok: {
|
|
1385
|
+
readonly tuple: readonly [{
|
|
1386
|
+
readonly name: "amount-ustx"
|
|
1387
|
+
readonly type: "uint128"
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "first-reward-cycle"
|
|
1390
|
+
readonly type: "uint128"
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly name: "num-cycles"
|
|
1393
|
+
readonly type: "uint128"
|
|
1394
|
+
}, {
|
|
1395
|
+
readonly name: "signer"
|
|
1396
|
+
readonly type: "principal"
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly name: "staker"
|
|
1399
|
+
readonly type: "principal"
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly name: "unlock-burn-height"
|
|
1402
|
+
readonly type: "uint128"
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly name: "unlock-cycle"
|
|
1405
|
+
readonly type: "uint128"
|
|
1406
|
+
}]
|
|
1407
|
+
}
|
|
1408
|
+
readonly error: "uint128"
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly name: "stake-update"
|
|
1413
|
+
readonly access: "public"
|
|
1414
|
+
readonly args: readonly [{
|
|
1415
|
+
readonly name: "signer-manager"
|
|
1416
|
+
readonly type: "trait_reference"
|
|
1417
|
+
}, {
|
|
1418
|
+
readonly name: "old-signer-manager"
|
|
1419
|
+
readonly type: "trait_reference"
|
|
1420
|
+
}, {
|
|
1421
|
+
readonly name: "cycles-to-extend"
|
|
1422
|
+
readonly type: "uint128"
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "amount-increase"
|
|
1425
|
+
readonly type: "uint128"
|
|
1426
|
+
}, {
|
|
1427
|
+
readonly name: "signer-calldata"
|
|
1428
|
+
readonly type: {
|
|
1429
|
+
readonly optional: {
|
|
1430
|
+
readonly buff: {
|
|
1431
|
+
readonly length: 500
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}]
|
|
1436
|
+
readonly outputs: {
|
|
1437
|
+
readonly response: {
|
|
1438
|
+
readonly ok: {
|
|
1439
|
+
readonly tuple: readonly [{
|
|
1440
|
+
readonly name: "amount-increase"
|
|
1441
|
+
readonly type: "uint128"
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly name: "amount-ustx"
|
|
1444
|
+
readonly type: "uint128"
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly name: "cycles-to-extend"
|
|
1447
|
+
readonly type: "uint128"
|
|
1448
|
+
}, {
|
|
1449
|
+
readonly name: "num-cycles"
|
|
1450
|
+
readonly type: "uint128"
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly name: "old-signer"
|
|
1453
|
+
readonly type: "principal"
|
|
1454
|
+
}, {
|
|
1455
|
+
readonly name: "prev-unlock-height"
|
|
1456
|
+
readonly type: "uint128"
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly name: "signer"
|
|
1459
|
+
readonly type: "principal"
|
|
1460
|
+
}, {
|
|
1461
|
+
readonly name: "staker"
|
|
1462
|
+
readonly type: "principal"
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "unlock-burn-height"
|
|
1465
|
+
readonly type: "uint128"
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly name: "unlock-cycle"
|
|
1468
|
+
readonly type: "uint128"
|
|
1469
|
+
}]
|
|
1470
|
+
}
|
|
1471
|
+
readonly error: "uint128"
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly name: "unstake"
|
|
1476
|
+
readonly access: "public"
|
|
1477
|
+
readonly args: readonly [{
|
|
1478
|
+
readonly name: "old-signer-manager"
|
|
1479
|
+
readonly type: "trait_reference"
|
|
1480
|
+
}]
|
|
1481
|
+
readonly outputs: {
|
|
1482
|
+
readonly response: {
|
|
1483
|
+
readonly ok: {
|
|
1484
|
+
readonly tuple: readonly [{
|
|
1485
|
+
readonly name: "amount-ustx"
|
|
1486
|
+
readonly type: "uint128"
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "first-reward-cycle"
|
|
1489
|
+
readonly type: "uint128"
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "signer"
|
|
1492
|
+
readonly type: "principal"
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly name: "staker"
|
|
1495
|
+
readonly type: "principal"
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly name: "unlock-burn-height"
|
|
1498
|
+
readonly type: "uint128"
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly name: "unlock-cycle"
|
|
1501
|
+
readonly type: "uint128"
|
|
1502
|
+
}]
|
|
1503
|
+
}
|
|
1504
|
+
readonly error: "uint128"
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}, {
|
|
1508
|
+
readonly name: "unstake-sbtc"
|
|
1509
|
+
readonly access: "public"
|
|
1510
|
+
readonly args: readonly [{
|
|
1511
|
+
readonly name: "signer-manager"
|
|
1512
|
+
readonly type: "trait_reference"
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "amount-to-withdrawal-sats"
|
|
1515
|
+
readonly type: "uint128"
|
|
1516
|
+
}]
|
|
1517
|
+
readonly outputs: {
|
|
1518
|
+
readonly response: {
|
|
1519
|
+
readonly ok: {
|
|
1520
|
+
readonly tuple: readonly [{
|
|
1521
|
+
readonly name: "amount-withdrawn-sats"
|
|
1522
|
+
readonly type: "uint128"
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly name: "bond-index"
|
|
1525
|
+
readonly type: "uint128"
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly name: "new-amount-sats"
|
|
1528
|
+
readonly type: "uint128"
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly name: "signer"
|
|
1531
|
+
readonly type: "principal"
|
|
1532
|
+
}, {
|
|
1533
|
+
readonly name: "staker"
|
|
1534
|
+
readonly type: "principal"
|
|
1535
|
+
}]
|
|
1536
|
+
}
|
|
1537
|
+
readonly error: "uint128"
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly name: "update-bond-registration"
|
|
1542
|
+
readonly access: "public"
|
|
1543
|
+
readonly args: readonly [{
|
|
1544
|
+
readonly name: "signer-manager"
|
|
1545
|
+
readonly type: "trait_reference"
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly name: "old-signer-manager"
|
|
1548
|
+
readonly type: "trait_reference"
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly name: "signer-calldata"
|
|
1551
|
+
readonly type: {
|
|
1552
|
+
readonly optional: {
|
|
1553
|
+
readonly buff: {
|
|
1554
|
+
readonly length: 500
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
}]
|
|
1559
|
+
readonly outputs: {
|
|
1560
|
+
readonly response: {
|
|
1561
|
+
readonly ok: {
|
|
1562
|
+
readonly tuple: readonly [{
|
|
1563
|
+
readonly name: "amount-sats"
|
|
1564
|
+
readonly type: "uint128"
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly name: "amount-ustx"
|
|
1567
|
+
readonly type: "uint128"
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly name: "bond-index"
|
|
1570
|
+
readonly type: "uint128"
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly name: "first-reward-cycle"
|
|
1573
|
+
readonly type: "uint128"
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "is-l1-lock"
|
|
1576
|
+
readonly type: "bool"
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly name: "num-cycles"
|
|
1579
|
+
readonly type: "uint128"
|
|
1580
|
+
}, {
|
|
1581
|
+
readonly name: "old-signer"
|
|
1582
|
+
readonly type: "principal"
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly name: "signer"
|
|
1585
|
+
readonly type: "principal"
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly name: "staker"
|
|
1588
|
+
readonly type: "principal"
|
|
1589
|
+
}]
|
|
1590
|
+
}
|
|
1591
|
+
readonly error: "uint128"
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}]
|
|
1595
|
+
};
|
|
1596
|
+
export { verifySignerGrant, stakerPreimage, stakerConsensusBuff, signSignerGrant, serializeCScriptNum, rewardCycleToBurnHeight, pushScriptBytes, pushCScriptNum, pox5ContractId, pox5, isPox5Active, isInPreparePhase, getPox5Activation, computeSignerGrantHash, burnHeightToRewardCycle, burnHeightToDistributionIndex, buildLockupScript, buildLockupOutputScript, buildLockupAddress, buildDefaultStakerUnlockBytes, bondUnlockCycle, bondPhaseAtHeight, bondPeriodToRewardCycle, bondPeriodToBurnHeight, assertPox5Active, UpdateBondRegistrationParams, UnstakeSbtcParams, UnstakeParams, StakerState, StakeUpdateParams, StakeParams, SignerGrantOptions, SetupBondParams, RevokeSignerGrantParams, RegisterForBondParams, PoxCycleParams, Pox5EventTopic, Pox5Activation, Pox5Actions, POX5_SIGNER_DOMAIN, POX5_EVENT_TOPICS, POX5_CONTRACT_NAME, POX5_CONTRACT_ID_MAINNET, POX5_ACTIVATION_BURN_HEIGHT_MAINNET, POX5_ABI, MAX_NUM_CYCLES, L1LockupOutput, GrantSignerKeyParams, ClaimStakerRewardsForSignerParams, ClaimRewardsParams, CalculateRewardsParams, C_SCRIPT_NUM_MAX, BuildLockupScriptOptions, BtcLockup, BondPhase, BondCycleParams, BOND_LENGTH_CYCLES, BOND_GAP_CYCLES, BITCOIN_LOCKTIME_THRESHOLD, AnnounceL1EarlyExitParams };
|