generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change some comments in the code and deployment scripts rea…
…dy (#15) * refactor: change some comments in the code and deployment scripts ready * changing core
- Loading branch information
Showing
16 changed files
with
173 additions
and
144 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.17; | ||
|
||
/// @title ICore | ||
/// @author Angle Labs, Inc. | ||
/// @notice Interface for the `Core` contracts of smart contract modules used in Angle Labs contracts | ||
interface ICore { | ||
/// @notice Checks whether an address is governor | ||
/// @param admin Address to check | ||
/// @return Whether the address has the `GOVERNOR_ROLE` or not | ||
function isGovernor(address admin) external view returns (bool); | ||
|
||
/// @notice Checks whether an address is a governor or a guardian of a module | ||
/// @param admin Address to check | ||
/// @return Whether the address has the `GUARDIAN_ROLE` or not | ||
/// @dev Governance should make sure when adding a governor to also give this governor the guardian | ||
/// role by calling the `addGovernor` function | ||
function isGovernorOrGuardian(address admin) external view returns (bool); | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.