Skip to content

Commit

Permalink
N02 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmolasses authored Jul 1, 2024
1 parent 6676441 commit 826e0d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ERC20VotesPartialDelegationUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Ini
*
* By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
* requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
* @custom:security-contact [email protected]
*/
abstract contract ERC20VotesPartialDelegationUpgradeable is
Initializable,
Expand Down
1 change: 1 addition & 0 deletions src/IVotesPartialDelegation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct DelegationAdjustment {

/**
* @dev Common interface for {ERC20VotesPartialDelegation} and other {VotesPartialDelegation}-enabled contracts.
* @custom:security-contact [email protected]
*/
interface IVotesPartialDelegation is IERC6372 {
/**
Expand Down
1 change: 1 addition & 0 deletions src/L2GovToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {ERC20VotesPartialDelegationUpgradeable} from "src/ERC20VotesPartialDeleg
/**
* @title L2GovToken
* @notice An upgradeable L2 token contract supporting partial delegation via ERC20VotesPartialDelegationUpgradeable.
* @custom:security-contact [email protected]
*/
contract L2GovToken is AccessControlUpgradeable, ERC20VotesPartialDelegationUpgradeable {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
Expand Down
1 change: 1 addition & 0 deletions src/VotesPartialDelegationUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {IVotesPartialDelegation} from "src/IVotesPartialDelegation.sol";
* When using this module the derived contract must implement {_getVotingUnits} (for example, make it return
* {ERC721-balanceOf}), and can use {_transferVotingUnits} to track a change in the distribution of those units (in the
* previous example, it would be included in {ERC721-_update}).
* @custom:security-contact [email protected]
*/
abstract contract VotesPartialDelegationUpgradeable is
Initializable,
Expand Down

0 comments on commit 826e0d4

Please sign in to comment.