@@ -33,18 +33,6 @@ interface IStaking {
3333 //
3434 //
3535
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-
4836 /// @notice Allows the Governance to set the minimum required stake amount.
4937 /// This amount is required to protect against griefing the staking
5038 /// contract and individual applications are allowed to require
@@ -57,22 +45,6 @@ interface IStaking {
5745 //
5846 //
5947
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-
7648 /// @notice Requests decrease of the authorization for the given staking
7749 /// provider on the given application by the provided amount.
7850 /// It may not change the authorized amount immediatelly. When
@@ -90,17 +62,6 @@ interface IStaking {
9062 uint96 amount
9163 ) external ;
9264
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-
10465 /// @notice Called by the application at its discretion to approve the
10566 /// previously requested authorization decrease request. Can only be
10667 /// called by the application that was previously requested to
@@ -145,23 +106,6 @@ interface IStaking {
145106 /// Can only be called by the Governance.
146107 function setAuthorizationCeiling (uint256 ceiling ) external ;
147108
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-
165109 //
166110 //
167111 // Undelegating a stake (unstaking)
@@ -182,14 +126,6 @@ interface IStaking {
182126 //
183127 //
184128
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-
193129 /// @notice Withdraw some amount of T tokens from notifiers treasury.
194130 /// Can only be called by the governance.
195131 function withdrawNotificationReward (address recipient , uint96 amount )
@@ -212,12 +148,6 @@ interface IStaking {
212148 address [] memory stakingProviders
213149 ) external ;
214150
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-
221151 //
222152 //
223153 // Auxiliary functions
@@ -244,12 +174,6 @@ interface IStaking {
244174 view
245175 returns (uint256 );
246176
247- /// @notice Returns auto-increase flag.
248- function getAutoIncreaseFlag (address stakingProvider )
249- external
250- view
251- returns (bool );
252-
253177 /// @notice Gets the stake owner, the beneficiary and the authorizer
254178 /// for the specified staking provider address.
255179 /// @return owner Stake owner address.
@@ -267,9 +191,6 @@ interface IStaking {
267191 /// @notice Returns length of application array
268192 function getApplicationsLength () external view returns (uint256 );
269193
270- /// @notice Returns length of slashing queue
271- function getSlashingQueueLength () external view returns (uint256 );
272-
273194 /// @notice Returns the maximum application authorization
274195 function getMaxAuthorization (address stakingProvider )
275196 external
0 commit comments