-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deploy/mode upgrade v2 #61
base: deploy/mode
Are you sure you want to change the base?
Conversation
Static env files
feat: migration functionality
///////////////////////////////////////////// | ||
|
||
///////////////////////////////////////////// | ||
|
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.
I'd put vm.envString("NETWORK"), vm.envAddress("FACTORY_ADDRESS"), vm.envAddress("SIGNER_ADDRESS")
as internal variables here. It lets us immediatelly see what env variables are needed.
address voterImplNew = voterMode.implementation(); | ||
address voterBPTImplNew = voterBPT.implementation(); | ||
|
||
assertNotEq(voterImplOld, voterImplNew); |
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.
I'd probably add assertEq
as well to check that the current implementation on the contracts are equal to the ones deployed in buildActions
contract.
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 good! Just some minor comments
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.
Shouldn't the name be Mode-100-to-110.s.sol
?
} | ||
function _buildMsigProposal( | ||
IDAO.Action[] memory _actions, | ||
address[] memory _signers, |
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.
Not needed?
function _startBroadcastOrPrank(bool isTestMode) internal { | ||
address signer = vm.envAddress("SIGNER_ADDRESS"); | ||
if (isTestMode) { | ||
vm.startPrank(signer); |
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.
Is there a situation where this signer won't be an Aragon signer? Could we use aragonSigner[0]
?
bytes ipfsURI = bytes("ipfs://bafkreicqy5hgf6izqha6hoa6cudup4or5clfnilegyavwuhbr34xlihsea"); | ||
|
||
function setAragonSigners() internal { | ||
aragonSigners.push(address(0x946138B088524414EEDaf0699BA10d7Fb5673A34)); |
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.
What are your thoughts on moving this to a file similar to the Mode signers?
// alice tries to exit | ||
vm.startPrank(alice); | ||
{ | ||
// vm.expectRevert(VotingInactive.selector); |
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.
We can remove this
No description provided.