Skip to content
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

Open
wants to merge 89 commits into
base: deploy/mode
Choose a base branch
from
Open

Conversation

jordaniza
Copy link
Collaborator

No description provided.

/////////////////////////////////////////////

/////////////////////////////////////////////

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);

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.

Copy link
Contributor

@xavikh xavikh left a 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

Copy link
Contributor

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,
Copy link
Contributor

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);
Copy link
Contributor

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));
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants