Skip to content

Commit

Permalink
AccessControlEnumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jun 13, 2024
1 parent 7aaf92d commit c77cdc2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/collator/CollatorStakingHubStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ contract CollatorStakingHubStorage {
address public DEPOSIT;
// collator => stakingPool
mapping(address => address) public poolOf;
// stakingPool => collator
mapping(address => address) public collatorOf;
// collator => commission
mapping(address => uint256) public commissionOf;
// collator => user => lockTime
Expand Down
5 changes: 0 additions & 5 deletions src/collator/interfaces/ICollatorStakingHub.sol

This file was deleted.

2 changes: 0 additions & 2 deletions src/collator/interfaces/INominationPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ pragma solidity >=0.4.24;

interface INominationPool {
// Views
function operator() external view returns (address);

function lastTimeRewardApplicable() external view returns (uint256);

function rewardPerToken() external view returns (uint256);
Expand Down
6 changes: 3 additions & 3 deletions src/governance/GovernanceRing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.20;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
Expand All @@ -15,7 +15,7 @@ import "../deposit/interfaces/IDeposit.sol";
contract GovernanceRing is
Initializable,
ERC20Upgradeable,
AccessControlUpgradeable,
AccessControlEnumerableUpgradeable,
ERC20PermitUpgradeable,
ERC20VotesUpgradeable,
ReentrancyGuardUpgradeable
Expand Down Expand Up @@ -43,7 +43,7 @@ contract GovernanceRing is
function initialize(address admin, address dps, string memory name, string memory symbol) public initializer {
DEPOSIT = IDeposit(dps);
__ERC20_init(name, symbol);
__AccessControl_init();
__AccessControlEnumerable_init();
__ERC20Permit_init(symbol);
__ERC20Votes_init();
__ReentrancyGuard_init();
Expand Down

0 comments on commit c77cdc2

Please sign in to comment.