-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
Orland0x
commented
Oct 11, 2023
•
edited
Loading
edited
- 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.
4dd5e84
to
e5043f1
Compare
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.
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." |
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 don't think we should write otherwise zero
, as the contract will revert in that case
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.
Agreed
|
||
if (Space(space).owner() != address(0x1)) { | ||
// Initialization of the master space was frontrun | ||
revert SpaceInitializationFailed(); |
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 the owner
variable the only variable worth checking ?
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.
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
script/Deployer.s.sol
Outdated
Strategy[] memory emptyStrategyArray = new Strategy[](1); | ||
emptyStrategyArray[0] = Strategy(address(0x1), new bytes(0)); | ||
string[] memory emptyStringArray = new string[](1); |
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.
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)
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.
updated
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.
good now! :)