-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7213174
commit 38dca52
Showing
5 changed files
with
48 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.12; | ||
|
||
import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol"; | ||
import {IAllocationManager} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol"; | ||
|
||
interface ISlasherEvents { | ||
event SlashingRequested( | ||
uint256 indexed requestId, | ||
address indexed operator, | ||
uint32 indexed operatorSetId, | ||
uint256 wadToSlash, | ||
string description | ||
); | ||
|
||
event SlashingRequestCancelled(uint256 indexed requestId); | ||
|
||
event OperatorSlashed( | ||
uint256 indexed slashingRequestId, | ||
address indexed operator, | ||
uint32 indexed operatorSetId, | ||
IStrategy[] strategies, | ||
uint256 wadToSlash, | ||
string description | ||
); | ||
} | ||
|
||
interface ISlasherTypes { | ||
enum SlashingStatus { | ||
Null, | ||
Requested, | ||
Completed, | ||
Cancelled | ||
} | ||
|
||
struct SlashingRequest { | ||
IAllocationManager.SlashingParams params; | ||
uint256 requestTimestamp; | ||
SlashingStatus status; | ||
} | ||
|
||
} | ||
|
||
interface ISlasher is ISlasherEvents, ISlasherTypes{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters