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

chore: replaced old deployer scripts with new one #243

Merged
merged 15 commits into from
Oct 16, 2023
Merged

Conversation

Orland0x
Copy link
Contributor

@Orland0x Orland0x commented Oct 11, 2023

  • Removes the legacy forge scripts that were on the main branch with the script used to deploy v1.0.0 - v1.2.0.
  • Adds a test to run the deployment script locally.
  • Add deployment instructions to readme.

@Orland0x Orland0x marked this pull request as ready for review October 11, 2023 15:16
@Orland0x Orland0x force-pushed the chore_deployer_script branch from 4dd5e84 to e5043f1 Compare October 12, 2023 10:03
@Orland0x Orland0x requested a review from pscott October 13, 2023 12:41
pscott
pscott previously approved these changes Oct 16, 2023
Copy link
Collaborator

@pscott pscott left a comment

Choose a reason for hiding this comment

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

utACK

README.md Outdated
@@ -18,7 +18,8 @@ src
├─ voting-strategies
│ ├─ CompVotingStrategy.sol - "Strategy that uses delegated balances of Comp tokens as voting power"
│ ├─ OZVotesVotingStrategy.sol - "Strategy that uses delegated balances of OZ Votes tokens as voting power"
│ ├─ WhitelistVotingStrategy.sol — "Strategy that gives predetermined voting power for members in a whitelist, otherwise zero"
│ ├─ WhitelistVotingStrategy.sol — "Strategy that gives predetermined voting power for members in a whitelist, otherwise zero. Whitelist is stored in a bytes array On-Chain."
│ ├─ MerkleWhitelistVotingStrategy.sol — "Strategy that gives predetermined voting power for members in a whitelist, otherwise zero. Whitelist is stored in a Merkle tree Off-Chain, with only the root being stored On-Chain."
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we should write otherwise zero, as the contract will revert in that case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed


if (Space(space).owner() != address(0x1)) {
// Initialization of the master space was frontrun
revert SpaceInitializationFailed();
Copy link
Collaborator

Choose a reason for hiding this comment

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

is the owner variable the only variable worth checking ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah added a check for proposal validation strategy which prevents proposals from being created. That should prevent all actions in the space then i think

Comment on lines 224 to 226
Strategy[] memory emptyStrategyArray = new Strategy[](1);
emptyStrategyArray[0] = Strategy(address(0x1), new bytes(0));
string[] memory emptyStringArray = new string[](1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth renaming empty to maybe default or unusable or test or Dummy ? (I got confused why this code would not trigger if we were passing empty arrays :p)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@Orland0x Orland0x requested a review from pscott October 16, 2023 14:42
Copy link
Collaborator

@pscott pscott left a comment

Choose a reason for hiding this comment

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

good now! :)

@Orland0x Orland0x merged commit 6b760df into main Oct 16, 2023
3 checks passed
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.

2 participants