@@ -11,23 +11,9 @@ interface SFCI {
11
11
event Delegated (address indexed delegator , uint256 indexed toValidatorID , uint256 amount );
12
12
event Undelegated (address indexed delegator , uint256 indexed toValidatorID , uint256 indexed wrID , uint256 amount );
13
13
event Withdrawn (address indexed delegator , uint256 indexed toValidatorID , uint256 indexed wrID , uint256 amount );
14
- event ClaimedRewards (
15
- address indexed delegator ,
16
- uint256 indexed toValidatorID ,
17
- uint256 lockupExtraReward ,
18
- uint256 lockupBaseReward ,
19
- uint256 unlockedReward
20
- );
21
- event RestakedRewards (
22
- address indexed delegator ,
23
- uint256 indexed toValidatorID ,
24
- uint256 lockupExtraReward ,
25
- uint256 lockupBaseReward ,
26
- uint256 unlockedReward
27
- );
14
+ event ClaimedRewards (address indexed delegator , uint256 indexed toValidatorID , uint256 rewards );
15
+ event RestakedRewards (address indexed delegator , uint256 indexed toValidatorID , uint256 rewards );
28
16
event BurntFTM (uint256 amount );
29
- event LockedUpStake (address indexed delegator , uint256 indexed validatorID , uint256 duration , uint256 amount );
30
- event UnlockedStake (address indexed delegator , uint256 indexed validatorID , uint256 amount , uint256 penalty );
31
17
event UpdatedSlashingRefundRatio (uint256 indexed validatorID , uint256 refundRatio );
32
18
event RefundedSlashedLegacyDelegation (address indexed delegator , uint256 indexed validatorID , uint256 amount );
33
19
@@ -53,18 +39,8 @@ interface SFCI {
53
39
uint256 totalSupply
54
40
);
55
41
56
- function getLockupInfo (
57
- address ,
58
- uint256
59
- ) external view returns (uint256 lockedStake , uint256 fromEpoch , uint256 endTime , uint256 duration );
60
-
61
42
function getStake (address , uint256 ) external view returns (uint256 );
62
43
63
- function getStashedLockupRewards (
64
- address ,
65
- uint256
66
- ) external view returns (uint256 lockupExtraReward , uint256 lockupBaseReward , uint256 unlockedReward );
67
-
68
44
function getValidator (
69
45
uint256
70
46
)
@@ -106,8 +82,6 @@ interface SFCI {
106
82
107
83
function totalActiveStake () external view returns (uint256 );
108
84
109
- function totalSlashedStake () external view returns (uint256 );
110
-
111
85
function totalStake () external view returns (uint256 );
112
86
113
87
function totalSupply () external view returns (uint256 );
@@ -142,8 +116,6 @@ interface SFCI {
142
116
143
117
function rewardsStash (address delegator , uint256 validatorID ) external view returns (uint256 );
144
118
145
- function getLockedStake (address delegator , uint256 toValidatorID ) external view returns (uint256 );
146
-
147
119
function createValidator (bytes calldata pubkey ) external payable ;
148
120
149
121
function getSelfStake (uint256 validatorID ) external view returns (uint256 );
@@ -186,16 +158,6 @@ interface SFCI {
186
158
187
159
function sealEpochValidators (uint256 [] calldata nextValidatorIDs ) external ;
188
160
189
- function isLockedUp (address delegator , uint256 toValidatorID ) external view returns (bool );
190
-
191
- function getUnlockedStake (address delegator , uint256 toValidatorID ) external view returns (uint256 );
192
-
193
- function lockStake (uint256 toValidatorID , uint256 lockupDuration , uint256 amount ) external ;
194
-
195
- function relockStake (uint256 toValidatorID , uint256 lockupDuration , uint256 amount ) external ;
196
-
197
- function unlockStake (uint256 toValidatorID , uint256 amount ) external returns (uint256 );
198
-
199
161
function initialize (
200
162
uint256 sealedEpoch ,
201
163
uint256 _totalSupply ,
@@ -216,17 +178,7 @@ interface SFCI {
216
178
uint256 deactivatedTime
217
179
) external ;
218
180
219
- function setGenesisDelegation (
220
- address delegator ,
221
- uint256 toValidatorID ,
222
- uint256 stake ,
223
- uint256 lockedStake ,
224
- uint256 lockupFromEpoch ,
225
- uint256 lockupEndTime ,
226
- uint256 lockupDuration ,
227
- uint256 earlyUnlockPenalty ,
228
- uint256 rewards
229
- ) external ;
181
+ function setGenesisDelegation (address delegator , uint256 toValidatorID , uint256 stake ) external ;
230
182
231
183
function updateVoteBookAddress (address v ) external ;
232
184
0 commit comments