-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat(ctb): Holocene upgrade package #12878
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
03bee37
feat(ctb): Holocene upgrade package
clabby f1dc9a3
lint
clabby eec3120
lint
clabby c364aa5
add example env to sc-ops task
clabby 98b34b6
fix
clabby 6a2e945
reuse `SystemConfig` and `MIPS` impls optionally
clabby edd95bd
optionally deploy a new `DelayedWETH` proxy + impl
clabby f3f75cb
env lint
clabby 11834d4
add docker image to docker tag service
clabby dc8d860
kelvin idiot-proofing ask
clabby c0a7633
fetch standard config addresses for Holocene
clabby abff5f8
lint
clabby e86f7a4
ajsutton review: Deploy separate DelayedWETH proxies for the FDG/PDG
clabby 278cbe0
ajsutton review: Conditional FDG usage
clabby c07db1a
use contracts rc tag
clabby c08299c
mds review
clabby 3f65dcd
split `SystemConfig` and proofs contracts upgrades
clabby d7f1978
add option to completely disclude the fault proof contracts
clabby d82e28d
Update README
clabby 3d82b7e
verify
clabby 4f33311
deploy config
clabby ffe4d7e
fix contract tag
clabby 38fb399
README update
clabby 90f4bec
semgrep
clabby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
93 changes: 93 additions & 0 deletions
93
packages/contracts-bedrock/scripts/upgrades/holocene/.env.example
This file contains hidden or 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,93 @@ | ||
| ############################################## | ||
| # ↓ Required ↓ # | ||
| ############################################## | ||
|
|
||
| # The network to deploy the contracts to. | ||
| # Must be one of 'mainnet', 'sepolia' | ||
| NETWORK= | ||
|
|
||
| # Etherscan API key used to verify contract bytecode | ||
| ETHERSCAN_API_KEY= | ||
|
|
||
| # RPC URL for the L1 network that matches $NETWORK | ||
| ETH_RPC_URL= | ||
|
|
||
| # Private key used to deploy the new contracts for this upgrade | ||
| PRIVATE_KEY= | ||
|
|
||
| # Path to the deploy config JSON file | ||
| DEPLOY_CONFIG_PATH= | ||
|
|
||
| # Path to the folder where output artifacts will be stored | ||
| OUTPUT_FOLDER_PATH= | ||
|
|
||
| # Address of deployed `PreimageOracle` contract. | ||
| PREIMAGE_ORACLE_ADDR= | ||
|
|
||
| # Address of deployed `AnchorStateRegistry` proxy contract. | ||
| ANCHOR_STATE_REGISTRY_PROXY_ADDR= | ||
|
|
||
| # Address of the `SuperchainConfig` proxy contract. | ||
| SUPERCHAIN_CONFIG_PROXY_ADDR= | ||
|
|
||
| # Address of deployed `ProxyAdmin` contract. | ||
| PROXY_ADMIN_ADDR= | ||
|
|
||
| # Address of deployed `SystemConfig` proxy contract. | ||
| SYSTEM_CONFIG_PROXY_ADDR= | ||
|
|
||
| # Address of deployed `DisputeGameFactory` proxy contract. | ||
| DISPUTE_GAME_FACTORY_PROXY_ADDR= | ||
|
|
||
| # Whether or not to deploy and include any fault proof contracts in the upgrade. | ||
| # | ||
| # If 'true', the `PermissionedDisputeGame` contract will be deployed and included in the upgrade. | ||
| # If 'false', the `PermissionedDisputeGame` contract will not be deployed or included in the upgrade. | ||
| # | ||
| # Must be one of 'true', 'false' | ||
| # Cannot be 'false' if `USE_PERMISSIONLESS_FAULT_PROOFS` is 'true' | ||
| USE_FAULT_PROOFS=true | ||
|
|
||
| # Whether or not to deploy and include the `FaultDisputeGame` contract in the upgrade. | ||
| # | ||
| # If 'true', the `FaultDisputeGame` contract will be deployed and included in the upgrade. | ||
| # If 'false', the `FaultDisputeGame` contract will not be deployed or included in the upgrade. | ||
| # | ||
| # Must be one of 'true', 'false' | ||
| # Cannot be 'true' if `USE_FAULT_PROOFS` is 'false' | ||
| USE_PERMISSIONLESS_FAULT_PROOFS=true | ||
|
|
||
| ################################################### | ||
| # ↓ Optional ↓ # | ||
| # Do not set if you don't know what you're doing. # | ||
| ################################################### | ||
|
|
||
| # Address of the deployed `SystemConfig` implementation for Holocene. | ||
| # | ||
| # This implementation is reused across L2 deployments based on the L1 @ `ETH_RPC_URL`. | ||
| # If you are not the first to deploy Holocene on this L1, this field should be set to | ||
| # the existing deployment address. | ||
| # | ||
| # If this field is not set, the `superchain-registry` will be consulted for the implementation address. | ||
| # If this field is set to the zero address, a new `SystemConfig` implementation will be deployed. | ||
| SYSTEM_CONFIG_IMPL_ADDR= | ||
clabby marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Address of the deployed `MIPS` implementation for Holocene. | ||
| # | ||
| # This implementation is reused across L2 deployments based on the L1 @ `ETH_RPC_URL`. | ||
| # If you are not the first to deploy Holocene on this L1, this field should be set to | ||
| # the existing deployment address. | ||
| # | ||
| # If this field is not set, the `superchain-registry` will be consulted for the implementation address. | ||
| # If this field is set to the zero address, a new `MIPS` implementation will be deployed. | ||
| MIPS_IMPL_ADDR= | ||
|
|
||
| # Address of deployed `DelayedWETH` implementation contract. | ||
| # | ||
| # This implementation is reused across L2 deployments based on the L1 @ `ETH_RPC_URL`. | ||
| # If you are not the first to deploy permissionless fault proofs on L1, this field should be | ||
| # set to the existing deployment address. | ||
| # | ||
| # If this field is not set, the `superchain-registry` will be consulted for the implementation address. | ||
| # If this field is set to the zero address, a new `DelayedWETH` implementation will be deployed. | ||
| DELAYED_WETH_IMPL_ADDR= | ||
2 changes: 2 additions & 0 deletions
2
packages/contracts-bedrock/scripts/upgrades/holocene/.gitignore
This file contains hidden or 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,2 @@ | ||
| # Environment | ||
| .env |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.