-
Notifications
You must be signed in to change notification settings - Fork 266
Managing the proposer address #1573
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
Open
krofax
wants to merge
14
commits into
main
Choose a base branch
from
proposer-address
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+196
−114
Open
Changes from 6 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b34ab9f
updated docs
krofax 0d149e8
Auto-fix: Update breadcrumbs, spelling dictionary and other automated…
krofax 9814b66
update todos
krofax 6f8932d
updated meta tags
krofax 86c89e3
updated breadcrumbs
krofax 72b1ca7
updated headers
krofax 9f1a0d6
updated the steps
krofax 21e0573
Auto-fix: Update breadcrumbs, spelling dictionary and other automated…
krofax ee58178
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 3d285bc
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 0bbc653
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 66af797
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 769a0a2
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 8a3b075
Update pages/operators/chain-operators/tutorials/proposer-address.mdx
krofax 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
86 changes: 86 additions & 0 deletions
86
pages/operators/chain-operators/tutorials/proposer-address.mdx
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,86 @@ | ||
--- | ||
title: Managing the proposer address | ||
lang: en-US | ||
description: Learn how to update the proposer address for chains using permissioned fault proofs. | ||
content_type: tutorial | ||
topic: proposer-management | ||
personas: | ||
- chain-operator | ||
- protocol-developer | ||
categories: | ||
- chain-operation | ||
- chain-management | ||
- proxy | ||
- fault-proofs | ||
is_imported_content: 'false' | ||
--- | ||
|
||
# Managing the proposer address | ||
|
||
This guide explains how to update the proposer address for chains using permissioned fault proofs. | ||
The proposer is responsible for submitting L2 outputs to L1, which is a critical component of the OP Stack. | ||
You will need access to the [L1ProxyAdmin](/superchain/privileged-roles#l1-proxy-admin) account, before you begin. | ||
krofax marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Overview | ||
|
||
The proposer role is defined in the [`PermissionedDisputeGame.sol`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/dispute/PermissionedDisputeGame.sol) contract for chains running permissioned fault proofs. | ||
When you need to change the proposer address, you must update the implementation for `gametype 1` in the `DisputeGameFactory.sol` contract. | ||
|
||
## Steps to update the proposer address | ||
|
||
1. **Identify the current configuration** | ||
|
||
First, confirm that your chain is using permissioned fault proofs by checking the `DisputeGameFactory` contract on your L1. | ||
|
||
2. **Prepare the new implementation** | ||
|
||
You'll need to deploy a new implementation of the `PermissionedDisputeGame.sol` contract with the updated proposer address. | ||
|
||
```solidity | ||
// The PermissionedDisputeGame contract defines the proposer | ||
// https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/dispute/PermissionedDisputeGame.sol | ||
``` | ||
|
||
TODO: Add specific details on preparing the new implementation contract with the updated proposer address. | ||
Confirm with Zak if a completely new contract deployment is needed or if there's another method. | ||
|
||
3. **Update the implementation in the DisputeGameFactory** | ||
|
||
Using the L1ProxyAdmin account, call the `setImplementation()` function in the `DisputeGameFactory.sol` contract: | ||
|
||
```solidity | ||
// DisputeGameFactory.sol | ||
function setImplementation(GameType _gameType, address _impl) external; | ||
``` | ||
|
||
Parameters: | ||
|
||
* `_gameType`: Use `1` for fault proof games as defined in `Types.sol` | ||
* `_impl`: The address of your new implementation with the updated proposer | ||
|
||
TODO: Are there additional parameters or considerations needed when calling this function? | ||
|
||
4. **Verify the update** | ||
|
||
After updating the implementation, verify that the change was successful by: | ||
|
||
TODO: Add specific verification steps - how to check that the proposer has been properly updated. | ||
|
||
## Important considerations | ||
|
||
* This operation should be planned carefully as the proposer is a critical component of your rollup. | ||
* Ensure the new proposer address is valid and properly controlled before making the change. | ||
* Consider testing the procedure on a testnet before applying to production environments. | ||
* The `L1ProxyAdmin` is a highly privileged role - ensure proper access controls are in place. | ||
|
||
## Next steps | ||
|
||
* After updating the proposer address, you may need to configure the new proposer node. See the [proposer configuration](/operators/chain-operators/configuration/proposer) for details. | ||
|
||
* [Proposer Configuration](/operators/chain-operators/configuration/proposer) | ||
|
||
* [Dispute Game Factory Contract](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/dispute/DisputeGameFactory.sol) | ||
|
||
* [Permissioned Dispute Game Contract](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/dispute/PermissionedDisputeGame.sol) | ||
|
||
* [Protocol Configurability Specifications](https://specs.optimism.io/protocol/configurability.html#proposer-address) |
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.