-
Notifications
You must be signed in to change notification settings - Fork 2
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
add state diff proposal example #9
Conversation
import "@openzeppelin/token/ERC20/ERC20.sol"; | ||
import "@openzeppelin/access/Ownable.sol"; | ||
|
||
contract TokenWrapper is Ownable { |
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.
to avoid adding extra mocks to the repo you could use MockERC20Votes.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.
I have made this contract so that there are both ETH and ERC20 token actions. I don't think MockERC20Votes
involves any ETH transfers.
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.
instead of adding a new folder, could you please create a _03 proposal to simple-vault-timelock?
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.
Two reasons I added a new folder:
- This proposal is not related to a simple vault contract
- Integration tests assume that all the proposals before the latest proposal are executed on chain and only the latest proposal is simulated for running the tests. Also these integration tests are unrelated to the state diff proposal that I have created.
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
|
||
function validate() public view 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.
files needs a lint and then it should be good to merge!
Proposal output for src/proposals/arbitrum/ArbitrumProposal_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.