Skip to content

Commit ef24312

Browse files
committed
proposing to combine these pages
1 parent 64ac48c commit ef24312

File tree

4 files changed

+23
-42
lines changed

4 files changed

+23
-42
lines changed

pages/stack/interop/_meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"explainer": "Interop explainer",
3-
"cross-chain-message": "Anatomy of cross-chain message",
43
"supersim": "Supersim Multichain Development Environment",
54
"message-passing": "Interop message passing",
65
"op-supervisor": "OP Supervisor",

pages/stack/interop/cross-chain-message.mdx

Lines changed: 0 additions & 36 deletions
This file was deleted.

pages/stack/interop/message-passing.mdx

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
11
---
22
title: Interop message passing overview
33
lang: en-US
4-
description: Learn about cross-chain message passing in the Superchain.
4+
description: Learn about cross-chain message passing with OP Stack interoperability.
55
---
66

77
import { Callout, Steps } from 'nextra/components'
8+
import Image from 'next/image'
89

910
# Interop message passing overview
1011

1112
<Callout>
1213
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.
1314
</Callout>
1415

15-
This guide provides an overview of cross-chain message passing in the Superchain.
16+
This guide provides an overview of cross-chain message passing with the OP Stack. A cross-chain message applies to any message sent across a chain.
1617

17-
## Overview
18+
## Anatomy of a cross-chain message
1819

19-
The Superchain uses a pull-based event system for cross-chain communication. Messages are sent through the `L2ToL2CrossDomainMessenger` contract, which provides a secure and standardized way to pass information between chains.
20+
To send a cross-chain message on the Superchain using [Superchain interoperability](/stack/explainer), these two aspects must be in place:
21+
22+
1. Each interoperable chain runs a verifying node for each chain in the interoperable set.
23+
2. Each cross-chain message has an **initiating transaction** on the source chain and a **finalizing transaction** on the destination chain.
24+
* **First/initiating transaction:** is submitted to the source chain and emits an event that can be consumed on a destination chain.
25+
* **Second/finalizing transaction:** is submitted to a destination chain, where the block builder should only include it if certain that the first transaction was included in the source chain. The block builder can use OP-Supervisor to determine the integrity of the initiating message. Anyone can submit the second transaction.
26+
<Callout type="default">
27+
There is no strict requirement that the executing message is ever submitted. See the specs for details on tracing the [executing message event](https://specs.optimism.io/interop/predeploys.html#executingmessage-event).
28+
</Callout>
29+
30+
<br />
31+
32+
<Image src="/img/op-stack/protocol/cross-chain-message.png" alt="Anatomy of Cross-Chain Message with Interop" width={700} height={500} />
33+
34+
In the example above, `Ox123` sends 1 OP from OP Mainnet to Base, but this applies to any asset using the SuperchainERC20 token standard.
2035

2136
## How it works
2237

38+
The Superchain uses a pull-based event system for cross-chain communication. Messages are sent through the `L2ToL2CrossDomainMessenger` contract, which provides a secure and standardized way to pass information between chains.
39+
2340
The following diagram illustrates how messages flow between chains through the `L2ToL2CrossDomainMessenger` contract, which acts as a bridge for cross-chain communication. When a contract on the source chain initiates a message, it's processed through several stages before reaching its destination, ensuring secure and reliable message delivery.
2441

2542
```mermaid

public/_redirects

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@
115115
/stack/interop/superchain-erc20 /stack/interop/assets/superchain-erc20
116116
/stack/interop/superchain-weth /stack/interop/assets/superchain-weth
117117
/stack/interop/transfer-superchainERC20 /stack/interop/assets/transfer-superchainERC20
118-
/builders/app-developers/contracts/superchain-erc20 /stack/interop/assets/superchain-erc20
118+
/builders/app-developers/contracts/superchain-erc20 /stack/interop/assets/superchain-erc20
119+
/stack/interop/cross-chain-message /stack/interop/message-passing

0 commit comments

Comments
 (0)