feat(ct): overhaul deployment process#2298
Conversation
|
packages/contracts/deploy/004-OVM_CanonicalTransactionChain.deploy.ts
Outdated
Show resolved
Hide resolved
7ea02e3 to
90dc13f
Compare
| L2StandardBridge: { | ||
| l1TokenBridge: cfg.l1StandardBridgeAddress, | ||
| l1TokenBridge: ( | ||
| await getContractFromArtifact( |
There was a problem hiding this comment.
This is no longer configurable?
There was a problem hiding this comment.
Correct, it gets pulled automatically from the deployment folder based on the current network name. This is effectively what we did anyway, except we did it manually which is error prone.
|
I would say at this point, the most confusing part of the deploy setup is this: optimism/packages/contracts/hardhat.config.ts Lines 137 to 140 in 5c83435 These env vars modifying the networks is a bit confusing |
I agree. We might as well use a more standard setup (different RPC URLs for different networks? API keys? idk). |
ef5b859 to
a433656
Compare
a433656 to
3cd8d0b
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2298 +/- ##
========================================
Coverage 80.08% 80.08%
========================================
Files 77 77
Lines 2460 2460
Branches 450 450
========================================
Hits 1970 1970
Misses 490 490
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
3cd8d0b to
bed0c1f
Compare
Overhauls the contract deployment process to use a simpler typed deployment method. Removes the need for deployment bash scripts and makes review of deployment configurations much easier.
bed0c1f to
4c486d7
Compare
| The output is most easily viewable by opening the html file in your browser: | ||
|
|
||
| ```shell | ||
| open ./coverage/index.html |
There was a problem hiding this comment.
open is a mac specific thing, one particular flavor of linux uses xdg-open
There was a problem hiding this comment.
I'll fix this in another PR
| @@ -0,0 +1,23 @@ | |||
| import { DeployConfig } from '../src/deploy-config' | |||
|
|
|||
There was a problem hiding this comment.
We'll have to add one of these for nightly, but we can do this later.
|
Do we still have the ability to automatically set the chugsplash proxy owner? Without that capability, deployments get stuck during automated but non-CI builds like nightly. |
mslipper
left a comment
There was a problem hiding this comment.
Approved conditionally on my above comment.
I haven't changed anything on that front. I think as long as you set the |
|
Great, then I'm happy to merge this if you are. |
maurelian
left a comment
There was a problem hiding this comment.
I see that this was merged... but I had a question about the tags flag not being include in mainnet.ts.
If the point of these scripts is to make previous deployments reproducible, I think that's necessary.
| # Private key that will send deployment transactions | ||
| CONTRACTS_DEPLOYER_KEY= | ||
|
|
||
| # RPC URL connected to the L1 chain we're deploying to | ||
| CONTRACTS_RPC_URL= | ||
|
|
||
| # Your Etherscan API key for the L1 network | ||
| ETHERSCAN_API_KEY= |
There was a problem hiding this comment.
After a quick text search, I don't see any of these 3 values used anywhere outside the deleted bash scripts.
Can these be deleted? Where would these values now be specified? I don't see where that would be done in the deploy configs.
There was a problem hiding this comment.
Ah, looks like they're already in hardhat.config.ts
| --ovm-address-manager-owner 0x9BA6e03D8B90dE867373Db8cF1A58d2F7F006b3A \ | ||
| --gasprice 150000000000 \ | ||
| --num-deploy-confirmations 4 \ | ||
| --tags upgrade \ |
There was a problem hiding this comment.
I don't see this --tags argument reflected in the mainnet.ts flag that replaces this. Should it be?
Description
Overhauls the contract deployment process to use a simpler typed
deployment method. Removes the need for deployment bash scripts and
makes review of deployment configurations much easier.
TODO: