-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce hardhat-deploy-config (#2755)
* feat: introduce hardhat-deploy-config Creates a new package hardhat-deploy-config. We're using the same configuration system for all of our contracts package, so might as well turn it into a hardhat plugin to avoid duplicating code. * feat(ct): use hardhat-deploy-config * plugin: don't validate if spec not passed * contracts: update deps * contracts-bedrock: use deploy config plugin * contracts-bedrock: deploy instructions * contracts-bedrock: modularize deployment * contracts-bedrock: add deploy-config * contracts-bedrock: add in deploy config spec * lint: fix Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4b2ed64
commit 27234f6
Showing
40 changed files
with
477 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eth-optimism/contracts': patch | ||
--- | ||
|
||
Use hardhat-deploy-config for deployments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eth-optimism/hardhat-deploy-config': minor | ||
--- | ||
|
||
Initial release of hardhat-deploy-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ethers } from 'ethers' | ||
|
||
const config = { | ||
submissionInterval: 6, | ||
l2BlockTime: 2, | ||
genesisOutput: ethers.constants.HashZero, | ||
historicalBlocks: 0, | ||
startingBlockTimestamp: | ||
parseInt(process.env.L2OO_STARTING_BLOCK_TIMESTAMP, 10) || Date.now(), | ||
sequencerAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8', | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ethers } from 'ethers' | ||
|
||
const config = { | ||
submissionInterval: 6, | ||
l2BlockTime: 2, | ||
genesisOutput: ethers.constants.HashZero, | ||
historicalBlocks: 0, | ||
startingBlockTimestamp: | ||
parseInt(process.env.L2OO_STARTING_BLOCK_TIMESTAMP, 10) || Date.now(), | ||
sequencerAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8', | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const config = { | ||
l1BlockTimeSeconds: 15, | ||
l2BlockGasLimit: 15_000_000, | ||
l2ChainId: 17, | ||
ctcL2GasDiscountDivisor: 32, | ||
ctcEnqueueGasCost: 60_000, | ||
sccFaultProofWindowSeconds: 0, | ||
sccSequencerPublishWindowSeconds: 12592000, | ||
ovmSequencerAddress: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', | ||
ovmProposerAddress: '0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc', | ||
ovmBlockSignerAddress: '0x00000398232E2064F896018496b4b44b3D62751F', | ||
ovmFeeWalletAddress: '0x391716d440c151c42cdf1c95c1d83a5427bca52c', | ||
ovmAddressManagerOwner: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266', | ||
ovmGasPriceOracleOwner: '0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc', | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.