Skip to content

Conversation

@SidestreamColdMelon
Copy link
Contributor

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.json file produced by the dapp-tools. Before merging this PR, I would recommend to rewrite verify.py script into foundry (or otherwise loose dependency on the dapp.sol.json) in a separate PR.

Comment on lines +5 to +7
CHAIN_ID = '1'
OPTIMIZER_ENABLED = 'false'
OPTIMIZER_RUNS = '200'
Copy link
Contributor

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?

Suggested change
CHAIN_ID = '1'
OPTIMIZER_ENABLED = 'false'
OPTIMIZER_RUNS = '200'
CHAIN_ID = '1'
OPTIMIZER_ENABLED = 'false'
OPTIMIZER_RUNS = '200'

Comment on lines +53 to +56
'--optimize', OPTIMIZER_ENABLED,
'--optimizer-runs', OPTIMIZER_RUNS,
'--use', SOLIDITY_USE,
'--libraries', f'lib/dss-exec-lib/src/DssExecLib.sol:DssExecLib:{EXEC_LIB_ADDRESS}',
Copy link
Contributor

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.

@SidestreamColdMelon
Copy link
Contributor Author

Taken over / replaced by #491

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