Skip to content

feat: add custom gas token migration #313

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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Joxess
Copy link
Contributor

@Joxess Joxess commented Aug 1, 2025

Description

This document proposes a migration solution for OP Stack chains that use the old implementation to the new one proposed in #305.

tynes added a commit to ethereum-optimism/optimism that referenced this pull request Aug 13, 2025
This is WIP so far but meant to show how it can work. The big todo is to
rename the feature flag with the name of the hardfork that the CGT
upgrade is included in. This does leak knowledge of CGT into the client
software so that it can optionally deploy the CGT predeploys.
It is expected that the CGT predeploys will be in the genesis if
the hardfork is active at genesis only on CGT chains.

Relevant links:
- ethereum-optimism/design-docs#305
- ethereum-optimism/design-docs#313
- defi-wonderland#478
- In `L2ToL1MessagePasser`:
- Import `isCustomGasToken` to block `msg.value` > 0 during withdrawals, to block native asset sends.
- `FeeVaults`:
- Upgraded to allow withdrawals into an L2 address and turn off L1 withdrawals.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tynes, does this clash with the changes proposed in #309 ?

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.

2 participants