-
Notifications
You must be signed in to change notification settings - Fork 2
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
6676441
commit 826e0d4
Showing
4 changed files
with
4 additions
and
0 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 |
---|---|---|
|
@@ -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, | ||
|
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 |
---|---|---|
|
@@ -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 { | ||
/** | ||
|
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 |
---|---|---|
|
@@ -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"); | ||
|
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 |
---|---|---|
|
@@ -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, | ||
|