1
1
// SPDX-License-Identifier: GPL-3.0-or-later
2
2
3
- pragma solidity 0.8.4 ;
3
+ pragma solidity 0.8.9 ;
4
4
5
5
/// @title IKeepTokenStaking
6
6
/// @notice Interface for Keep TokenStaking contract
@@ -20,12 +20,12 @@ interface IKeepTokenStaking {
20
20
) external ;
21
21
22
22
/// @notice Gets stake delegation info for the given operator.
23
- /// @param _operator Operator address.
23
+ /// @param operator Operator address.
24
24
/// @return amount The amount of tokens the given operator delegated.
25
25
/// @return createdAt The time when the stake has been delegated.
26
26
/// @return undelegatedAt The time when undelegation has been requested.
27
27
/// If undelegation has not been requested, 0 is returned.
28
- function getDelegationInfo (address _operator )
28
+ function getDelegationInfo (address operator )
29
29
external
30
30
view
31
31
returns (
@@ -36,18 +36,18 @@ interface IKeepTokenStaking {
36
36
37
37
/// @notice Gets the stake owner for the specified operator address.
38
38
/// @return Stake owner address.
39
- function ownerOf (address _operator ) external view returns (address );
39
+ function ownerOf (address operator ) external view returns (address );
40
40
41
41
/// @notice Gets the beneficiary for the specified operator address.
42
42
/// @return Beneficiary address.
43
- function beneficiaryOf (address _operator )
43
+ function beneficiaryOf (address operator )
44
44
external
45
45
view
46
46
returns (address payable );
47
47
48
48
/// @notice Gets the authorizer for the specified operator address.
49
49
/// @return Authorizer address.
50
- function authorizerOf (address _operator ) external view returns (address );
50
+ function authorizerOf (address operator ) external view returns (address );
51
51
52
52
/// @notice Gets the eligible stake balance of the specified address.
53
53
/// An eligible stake is a stake that passed the initialization period
@@ -57,10 +57,10 @@ interface IKeepTokenStaking {
57
57
/// Operator with a minimum required amount of eligible stake can join the
58
58
/// network and participate in new work selection.
59
59
///
60
- /// @param _operator address of stake operator.
61
- /// @param _operatorContract address of operator contract.
60
+ /// @param operator address of stake operator.
61
+ /// @param operatorContract address of operator contract.
62
62
/// @return balance an uint256 representing the eligible stake balance.
63
- function eligibleStake (address _operator , address _operatorContract )
63
+ function eligibleStake (address operator , address operatorContract )
64
64
external
65
65
view
66
66
returns (uint256 balance );
@@ -70,15 +70,15 @@ interface IKeepTokenStaking {
70
70
/// @notice Interface for NuCypher StakingEscrow contract
71
71
interface INuCypherStakingEscrow {
72
72
/// @notice Slash the staker's stake and reward the investigator
73
- /// @param _staker Staker's address
74
- /// @param _penalty Penalty
75
- /// @param _investigator Investigator
76
- /// @param _reward Reward for the investigator
73
+ /// @param staker Staker's address
74
+ /// @param penalty Penalty
75
+ /// @param investigator Investigator
76
+ /// @param reward Reward for the investigator
77
77
function slashStaker (
78
- address _staker ,
79
- uint256 _penalty ,
80
- address _investigator ,
81
- uint256 _reward
78
+ address staker ,
79
+ uint256 penalty ,
80
+ address investigator ,
81
+ uint256 reward
82
82
) external ;
83
83
84
84
/// @notice Request merge between NuCypher staking contract and T staking contract.
@@ -88,51 +88,5 @@ interface INuCypherStakingEscrow {
88
88
returns (uint256 );
89
89
90
90
/// @notice Get all tokens belonging to the staker
91
- function getAllTokens (address _staker ) external view returns (uint256 );
92
- }
93
-
94
- /// @title IKeepTokenGrant
95
- /// @notice Interface for Keep TokenGrant contract
96
- interface IKeepTokenGrant {
97
- /// @notice Gets grant by ID. Returns only basic grant data.
98
- /// @param _id ID of the token grant.
99
- /// @return amount The amount of tokens the grant provides.
100
- /// @return withdrawn The amount of tokens that have already been withdrawn
101
- /// from the grant.
102
- /// @return staked The amount of tokens that have been staked from the grant.
103
- /// @return revokedAmount The number of tokens revoked from the grantee.
104
- /// @return revokedAt Timestamp at which grant was revoked by the grant manager.
105
- /// @return grantee The grantee of grant.
106
- function getGrant (uint256 _id )
107
- external
108
- view
109
- returns (
110
- uint256 amount ,
111
- uint256 withdrawn ,
112
- uint256 staked ,
113
- uint256 revokedAmount ,
114
- uint256 revokedAt ,
115
- address grantee
116
- );
117
-
118
- /// @notice Gets grant stake details of the given operator.
119
- /// @param operator The operator address.
120
- /// @return grantId ID of the token grant.
121
- /// @return amount The amount of tokens the given operator delegated.
122
- /// @return stakingContract The address of staking contract.
123
- function getGrantStakeDetails (address operator )
124
- external
125
- view
126
- returns (
127
- uint256 grantId ,
128
- uint256 amount ,
129
- address stakingContract
130
- );
131
- }
132
-
133
- /// @title IKeepManagedGrant
134
- /// @notice Interface for Keep ManagedGrant contract
135
- interface IKeepManagedGrant {
136
- /// @notice Returns address of grantee
137
- function grantee () external view returns (address );
91
+ function getAllTokens (address staker ) external view returns (uint256 );
138
92
}
0 commit comments