@@ -14,7 +14,6 @@ import { IHorizonStakingTypes } from "./IHorizonStakingTypes.sol";
1414 * @notice Provides functions for managing stake, provisions, delegations, and slashing.
1515 * @dev Most functions operate over {HorizonStaking} provisions. To uniquely identify a provision
1616 * functions take `serviceProvider` and `verifier` addresses.
17- * @dev TRANSITION PERIOD: After transition period rename to IHorizonStaking.
1817 * @custom:security-contact Please email security+contracts@thegraph.com if you find any
1918 * bugs. We may have an active bug bounty program.
2019 */
@@ -28,21 +27,6 @@ interface IHorizonStakingMain {
2827 */
2928 event HorizonStakeDeposited (address indexed serviceProvider , uint256 tokens );
3029
31- /**
32- * @notice Emitted when a service provider unstakes tokens during the transition period.
33- * @param serviceProvider The address of the service provider
34- * @param tokens The amount of tokens now locked (including previously locked tokens)
35- * @param until The block number until the stake is locked
36- */
37- event HorizonStakeLocked (address indexed serviceProvider , uint256 tokens , uint256 until );
38-
39- /**
40- * @notice Emitted when a service provider withdraws tokens during the transition period.
41- * @param serviceProvider The address of the service provider
42- * @param tokens The amount of tokens withdrawn
43- */
44- event HorizonStakeWithdrawn (address indexed serviceProvider , uint256 tokens );
45-
4630 // -- Events: provision --
4731
4832 /**
@@ -327,12 +311,6 @@ interface IHorizonStakingMain {
327311 */
328312 event AllowedLockedVerifierSet (address indexed verifier , bool allowed );
329313
330- /**
331- * @notice Emitted when the legacy global thawing period is set to zero.
332- * @dev This marks the end of the transition period.
333- */
334- event ThawingPeriodCleared ();
335-
336314 /**
337315 * @notice Emitted when the delegation slashing global flag is set.
338316 */
@@ -376,13 +354,6 @@ interface IHorizonStakingMain {
376354 */
377355 error HorizonStakingNotAuthorized (address serviceProvider , address verifier , address caller );
378356
379- /**
380- * @notice Thrown when attempting to create a provision with a verifier other than the
381- * subgraph data service. This restriction only applies during the transition period.
382- * @param verifier The verifier address
383- */
384- error HorizonStakingInvalidVerifier (address verifier );
385-
386357 /**
387358 * @notice Thrown when attempting to create a provision with an invalid maximum verifier cut.
388359 * @param maxVerifierCut The maximum verifier cut
@@ -410,14 +381,6 @@ interface IHorizonStakingMain {
410381 */
411382 error HorizonStakingInsufficientIdleStake (uint256 tokens , uint256 minTokens );
412383
413- /**
414- * @notice Thrown during the transition period when the service provider has insufficient stake to
415- * cover their existing legacy allocations.
416- * @param tokens The actual token amount
417- * @param minTokens The minimum required token amount
418- */
419- error HorizonStakingInsufficientStakeForLegacyAllocations (uint256 tokens , uint256 minTokens );
420-
421384 // -- Errors: delegation --
422385
423386 /**
@@ -488,13 +451,6 @@ interface IHorizonStakingMain {
488451 error HorizonStakingNothingToWithdraw ();
489452
490453 // -- Errors: misc --
491- /**
492- * @notice Thrown during the transition period when attempting to withdraw tokens that are still thawing.
493- * @dev Note this thawing refers to the global thawing period applied to legacy allocated tokens,
494- * it does not refer to thaw requests.
495- * @param until The block number until the stake is locked
496- */
497- error HorizonStakingStillThawing (uint256 until );
498454
499455 /**
500456 * @notice Thrown when a service provider attempts to operate on verifiers that are not allowed.
@@ -574,40 +530,24 @@ interface IHorizonStakingMain {
574530
575531 /**
576532 * @notice Move idle stake back to the owner's account.
577- * Stake is removed from the protocol:
578- * - During the transition period it's locked for a period of time before it can be withdrawn
579- * by calling {withdraw}.
580- * - After the transition period it's immediately withdrawn.
581- * Note that after the transition period if there are tokens still locked they will have to be
582- * withdrawn by calling {withdraw}.
533+ * Stake is immediately removed from the protocol.
583534 * @dev Requirements:
584535 * - `_tokens` cannot be zero.
585536 * - `_serviceProvider` must have enough idle stake to cover the staking amount and any
586537 * legacy allocation.
587538 *
588- * Emits a {HorizonStakeLocked} event during the transition period.
589- * Emits a {HorizonStakeWithdrawn} event after the transition period.
539+ * Emits a {HorizonStakeWithdrawn} event.
590540 *
591541 * @param tokens Amount of tokens to unstake
592542 */
593543 function unstake (uint256 tokens ) external ;
594544
595- /**
596- * @notice Withdraw service provider tokens once the thawing period (initiated by {unstake}) has passed.
597- * All thawed tokens are withdrawn.
598- * @dev This is only needed during the transition period while we still have
599- * a global lock. After that, unstake() will automatically withdraw.
600- */
601- function withdraw () external ;
602-
603545 /**
604546 * @notice Provision stake to a verifier. The tokens will be locked with a thawing period
605547 * and will be slashable by the verifier. This is the main mechanism to provision stake to a data
606548 * service, where the data service is the verifier.
607549 * This function can be called by the service provider or by an operator authorized by the provider
608550 * for this specific verifier.
609- * @dev During the transition period, only the subgraph data service can be used as a verifier. This
610- * prevents an escape hatch for legacy allocation stake.
611551 * @dev Requirements:
612552 * - `tokens` cannot be zero.
613553 * - The `serviceProvider` must have enough idle stake to cover the tokens to provision.
@@ -974,14 +914,6 @@ interface IHorizonStakingMain {
974914 */
975915 function setDelegationSlashingEnabled () external ;
976916
977- /**
978- * @notice Clear the legacy global thawing period.
979- * This signifies the end of the transition period, after which no legacy allocations should be left.
980- * @dev This function can only be called by the contract governor.
981- * @dev Emits a {ThawingPeriodCleared} event.
982- */
983- function clearThawingPeriod () external ;
984-
985917 /**
986918 * @notice Sets the global maximum thawing period allowed for provisions.
987919 * @param maxThawingPeriod The new maximum thawing period, in seconds
0 commit comments