@@ -33,18 +33,6 @@ interface IStaking {
33
33
//
34
34
//
35
35
36
- /// @notice Creates a delegation with `msg.sender` owner with the given
37
- /// staking provider, beneficiary, and authorizer. Transfers the
38
- /// given amount of T to the staking contract.
39
- /// @dev The owner of the delegation needs to have the amount approved to
40
- /// transfer to the staking contract.
41
- function stake (
42
- address stakingProvider ,
43
- address payable beneficiary ,
44
- address authorizer ,
45
- uint96 amount
46
- ) external ;
47
-
48
36
/// @notice Allows the Governance to set the minimum required stake amount.
49
37
/// This amount is required to protect against griefing the staking
50
38
/// contract and individual applications are allowed to require
@@ -57,22 +45,6 @@ interface IStaking {
57
45
//
58
46
//
59
47
60
- /// @notice Allows the Governance to approve the particular application
61
- /// before individual stake authorizers are able to authorize it.
62
- function approveApplication (address application ) external ;
63
-
64
- /// @notice Increases the authorization of the given staking provider for
65
- /// the given application by the given amount. Can only be called by
66
- /// the authorizer for that staking provider.
67
- /// @dev Calls `authorizationIncreased(address stakingProvider, uint256 amount)`
68
- /// on the given application to notify the application about
69
- /// authorization change. See `IApplication`.
70
- function increaseAuthorization (
71
- address stakingProvider ,
72
- address application ,
73
- uint96 amount
74
- ) external ;
75
-
76
48
/// @notice Requests decrease of the authorization for the given staking
77
49
/// provider on the given application by the provided amount.
78
50
/// It may not change the authorized amount immediatelly. When
@@ -90,17 +62,6 @@ interface IStaking {
90
62
uint96 amount
91
63
) external ;
92
64
93
- /// @notice Requests decrease of all authorizations for the given staking
94
- /// provider on all applications by all authorized amount.
95
- /// It may not change the authorized amount immediatelly. When
96
- /// it happens depends on the application. Can only be called by the
97
- /// given staking provider’s authorizer. Overwrites pending
98
- /// authorization decrease for the given staking provider and
99
- /// application.
100
- /// @dev Calls `authorizationDecreaseRequested(address stakingProvider, uint256 amount)`
101
- /// for each authorized application. See `IApplication`.
102
- function requestAuthorizationDecrease (address stakingProvider ) external ;
103
-
104
65
/// @notice Called by the application at its discretion to approve the
105
66
/// previously requested authorization decrease request. Can only be
106
67
/// called by the application that was previously requested to
@@ -145,23 +106,6 @@ interface IStaking {
145
106
/// Can only be called by the Governance.
146
107
function setAuthorizationCeiling (uint256 ceiling ) external ;
147
108
148
- //
149
- //
150
- // Stake top-up
151
- //
152
- //
153
-
154
- /// @notice Increases the amount of the stake for the given staking provider.
155
- /// If `autoIncrease` flag is true then the amount will be added for
156
- /// all authorized applications.
157
- /// @dev The sender of this transaction needs to have the amount approved to
158
- /// transfer to the staking contract.
159
- function topUp (address stakingProvider , uint96 amount ) external ;
160
-
161
- /// @notice Toggle `autoIncrease` flag. If true then the complete amount
162
- /// in top-up will be added to already authorized applications.
163
- function toggleAutoAuthorizationIncrease (address stakingProvider ) external ;
164
-
165
109
//
166
110
//
167
111
// Undelegating a stake (unstaking)
@@ -182,14 +126,6 @@ interface IStaking {
182
126
//
183
127
//
184
128
185
- /// @notice Sets reward in T tokens for notification of misbehaviour
186
- /// of one staking provider. Can only be called by the governance.
187
- function setNotificationReward (uint96 reward ) external ;
188
-
189
- /// @notice Transfer some amount of T tokens as reward for notifications
190
- /// of misbehaviour
191
- function pushNotificationReward (uint96 reward ) external ;
192
-
193
129
/// @notice Withdraw some amount of T tokens from notifiers treasury.
194
130
/// Can only be called by the governance.
195
131
function withdrawNotificationReward (address recipient , uint96 amount )
@@ -212,12 +148,6 @@ interface IStaking {
212
148
address [] memory stakingProviders
213
149
) external ;
214
150
215
- /// @notice Takes the given number of queued slashing operations and
216
- /// processes them. Receives 5% of the slashed amount.
217
- /// Executes `involuntaryAllocationDecrease` function on each
218
- /// affected application.
219
- function processSlashing (uint256 count ) external ;
220
-
221
151
//
222
152
//
223
153
// Auxiliary functions
@@ -244,12 +174,6 @@ interface IStaking {
244
174
view
245
175
returns (uint256 );
246
176
247
- /// @notice Returns auto-increase flag.
248
- function getAutoIncreaseFlag (address stakingProvider )
249
- external
250
- view
251
- returns (bool );
252
-
253
177
/// @notice Gets the stake owner, the beneficiary and the authorizer
254
178
/// for the specified staking provider address.
255
179
/// @return owner Stake owner address.
@@ -267,9 +191,6 @@ interface IStaking {
267
191
/// @notice Returns length of application array
268
192
function getApplicationsLength () external view returns (uint256 );
269
193
270
- /// @notice Returns length of slashing queue
271
- function getSlashingQueueLength () external view returns (uint256 );
272
-
273
194
/// @notice Returns the maximum application authorization
274
195
function getMaxAuthorization (address stakingProvider )
275
196
external
0 commit comments