-
Notifications
You must be signed in to change notification settings - Fork 59
Rewrite deploy script #448
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
Conversation
| CHAIN_ID = '1' | ||
| OPTIMIZER_ENABLED = 'false' | ||
| OPTIMIZER_RUNS = '200' |
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.
Now that we'll use Foundry only, wouldn't it be better to move this to foundry.toml instead?
| CHAIN_ID = '1' | |
| OPTIMIZER_ENABLED = 'false' | |
| OPTIMIZER_RUNS = '200' | |
| CHAIN_ID = '1' | |
| OPTIMIZER_ENABLED = 'false' | |
| OPTIMIZER_RUNS = '200' |
| '--optimize', OPTIMIZER_ENABLED, | ||
| '--optimizer-runs', OPTIMIZER_RUNS, | ||
| '--use', SOLIDITY_USE, | ||
| '--libraries', f'lib/dss-exec-lib/src/DssExecLib.sol:DssExecLib:{EXEC_LIB_ADDRESS}', |
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.
Also --libraries could be moved to foundry.toml.
We could even get rid of the DssExecLib.address file.
|
Taken over / replaced by #491 |
This PR rewrites deployment script to use foundry instead of dapp.tools.
The easiest way of testing this PR is to deploy a spell to anvil/tenderly fork, commenting out verification command. Deploying on a fork doesn't allow to check code verification, but it's actually not a problem, since verification code hasn't been modified in this PR.
Note: the verification script currently depends on the
out/dapp.sol.jsonfile produced by the dapp-tools. Before merging this PR, I would recommend to rewriteverify.pyscript into foundry (or otherwise loose dependency on thedapp.sol.json) in a separate PR.