This repository was archived by the owner on Apr 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 335
superchain-weth #1043
Merged
Merged
superchain-weth #1043
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ac6c0e5
superchain-weth
cpengilly e643ab4
Update superchain-weth.mdx
cpengilly 6e69010
fix lint issues
krofax 4d87f5c
fix lint spelling issues
krofax 10bf138
Merge branch 'main' into interop-eth
cpengilly 32e63d4
Merge branch 'main' into interop-eth
cpengilly d653ee1
address comments
cpengilly 9cffc2e
Update superchain-weth.mdx
cpengilly 2370c7d
Update superchain-weth.mdx
cpengilly fb49963
Update superchain-weth.mdx
cpengilly e43dd95
Update superchain-weth.mdx
cpengilly b8dd458
Update words.txt
cpengilly 0224894
language updates
cpengilly 20a61c8
relocate superchaintokenbridge callout
cpengilly 499d55d
Apply suggestions from code review
cpengilly 8455b38
Merge branch 'main' into interop-eth
cpengilly a582c95
Merge branch 'main' into interop-eth
cpengilly 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
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,80 @@ | ||
| --- | ||
| title: SuperchainWETH (Interoperable ETH) | ||
| lang: en-US | ||
| description: Learn basic details about the SuperchainWETH or Interoperable ETH. | ||
| --- | ||
|
|
||
| import { Callout } from 'nextra/components' | ||
|
|
||
| # SuperchainWETH (Interoperable ETH) | ||
|
cpengilly marked this conversation as resolved.
|
||
|
|
||
| <Callout> | ||
| Interop is currently in active development and not yet ready for production use. The information provided here may change. Check back regularly for the most up-to-date information. | ||
| </Callout> | ||
|
|
||
| Superchain WETH or Interoperable ETH is a specialized version of the standard WETH (Wrapped Ether) contract designed to enable seamless movement of ETH across the Superchain. It addresses the liquidity constraints and usability issues that arise when transferring ETH between different chains. | ||
|
|
||
| ## Features and benefits | ||
|
|
||
| * Enables seamless ETH transfers across different chains in the Superchain | ||
| * Minimizes protocol complexity by treating ETH as an ERC-20 token | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
| * Maintains fungibility of ETH across the Superchain | ||
| * Provides liquidity for cross-chain transactions | ||
| * Supports interoperability between chains with different native assets (i.e., gas tokens) | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
| * Improves user experience by abstracting complex bridging processes | ||
|
|
||
| <Callout type="warning"> | ||
| `SuperchainWETH` requires `SuperchainTokenBridge` integration for full interoperable, cross-chain functionality. | ||
| </Callout> | ||
|
|
||
| ## How it works | ||
|
|
||
| Interoperable ETH (Superchain WETH) facilitates secure movement of ETH across the Superchain via `crosschainBurn` and `crosschainMint`. | ||
|
|
||
| * **`crosschainBurn`**: Facilitates cross-chain transfers by **burning** WETH. The user sends ETH to the `SuperchainWETH` contract. `SuperchainWETH` interacts with `ETHLiquidity` to burn the ETH and sends a cross-chain message via the `L2ToL2CrossDomainMessenger` to the destination chain. | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
| * **`crosschainMint`**: Mints WETH on the destination chain after a cross-chain transfer. The user receives ETH or WETH on the destination chain. If the destination is a non-custom gas token chain, ETH is sourced from the `ETHLiquidity` contract. | ||
|
cpengilly marked this conversation as resolved.
Outdated
cpengilly marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```mermaid | ||
| sequenceDiagram | ||
| participant User | ||
| participant SuperchainWETH | ||
| participant ETHLiquidity | ||
| participant L2ToL2CrossDomainMessenger | ||
| participant DestinationChain | ||
|
|
||
| User->>SuperchainWETH: Send ETH | ||
| SuperchainWETH->>ETHLiquidity: Burn ETH | ||
| SuperchainWETH->>L2ToL2CrossDomainMessenger: Send cross-chain message | ||
| L2ToL2CrossDomainMessenger->>DestinationChain: Relay message | ||
| DestinationChain->>SuperchainWETH: Call relayETH/relayERC20 | ||
| SuperchainWETH->>ETHLiquidity: Source ETH (if non-custom gas token chain) | ||
| SuperchainWETH->>User: Receive ETH/WETH on destination chain | ||
| ``` | ||
|
|
||
| This diagram illustrates the process where the user sends ETH to the `SuperchainWETH` contract which burns the ETH and sends a cross-chain message to the destination chain, enabling seamless cross-chain ETH transfers without the need for asset wrapping. | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Major components | ||
|
|
||
| ### `SuperchainWETH` Contract | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
|
|
||
| This contract implements the core functionality for wrapping, unwrapping, and cross-chain transfer of ETH. It integrates with the `SuperchainTokenBridge` for interoperable actions. | ||
| * Contract address: `0x4200000000000000000000000000000000000024` | ||
|
|
||
| ### `ETHLiquidity` Contract | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
|
|
||
| A predeploy contract with a large pool of ETH that provides liquidity for cross-chain transfers. It allows "burning" and "minting" of ETH for cross-chain transfers. | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
| * Contract address: `0x4200000000000000000000000000000000000025` | ||
|
|
||
| ### `L2ToL2CrossDomainMessenger` Contract | ||
|
cpengilly marked this conversation as resolved.
Outdated
|
||
|
|
||
| This predeploy contract facilitates general message passing between different chains in the Superchain. It also securely transfers ERC20 tokens between L2 chains. | ||
| * Contract address: `0x4200000000000000000000000000000000000023` | ||
|
|
||
| <Callout type="info"> | ||
| `SuperchainWETH` implements strict access controls to ensure security (e.g., only `SuperchainWETH` can call `ETHLiquidity` functions). | ||
| </Callout> | ||
|
|
||
| ## Next steps | ||
|
|
||
| * Explore the [`SuperchainWETH`](https://specs.optimism.io/interop/superchain-weth.html) specs for in-depth implementation details. | ||
| * Review the [Superchain Interop Explainer](explainer) for answers to common questions about interoperability. | ||
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
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.