-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Governor OZ proposal #5
Conversation
src/proposals/simple-vault-governor-oz/GovernorOZProposal_01.sol
Outdated
Show resolved
Hide resolved
src/proposals/simple-vault-governor-oz/GovernorOZProposal_01.sol
Outdated
Show resolved
Hide resolved
src/proposals/simple-vault-governor-oz/GovernorOZProposal_02.sol
Outdated
Show resolved
Hide resolved
src/proposals/simple-vault-governor-oz/GovernorOZProposal_02.sol
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
script/DeployGovernorBravo.s.sol
Outdated
super.run(); | ||
} | ||
|
||
function validate() public override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we can make this function view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier I was unable to make this function view, it caused compilation error. It got fixed after I updated the forge-std submodule.
script/DeployTimelock.s.sol
Outdated
super.run(); | ||
} | ||
|
||
function validate() public override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this function view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier I was unable to make this function view, it caused compilation error. It got fixed after I updated the forge-std submodule.
script/InitializeBravo.s.sol
Outdated
address governor = addresses.getAddress("PROTOCOL_GOVERNOR"); | ||
|
||
address payable timelock = payable( | ||
addresses.getAddress("PROTOCOL_TIMELOCK_BRAVO") | ||
); | ||
|
||
vm.startBroadcast(); | ||
|
||
// Deploy mock GovernorAlpha | ||
address govAlpha = address(new MockGovernorAlpha()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's do an isAddressSet check here before we create this new contract
import "@openzeppelin/governance/Governor.sol"; | ||
import "@openzeppelin/governance/extensions/GovernorVotes.sol"; | ||
import "@openzeppelin/governance/extensions/GovernorCountingSimple.sol"; | ||
import "@openzeppelin/governance/extensions/GovernorVotesQuorumFraction.sol"; | ||
import "@openzeppelin/governance/extensions/GovernorTimelockControl.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: import {ContractName} from ..
Proposal output for src/proposals/simple-vault-bravo/BravoProposal_02.sol:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.