You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/stack/interop/message-passing.mdx
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ sequenceDiagram
69
69
```mermaid
70
70
71
71
sequenceDiagram
72
-
participant app as Application
72
+
participant app as Autorelayer
73
73
box rgba(0,0,0,0.1) Source Chain
74
74
participant log as Event Log
75
75
end
@@ -88,7 +88,7 @@ sequenceDiagram
88
88
89
89
1. Before the executing message is processed, the log event of the initiating message has to get to `op-supervisor` on the destination chain.
90
90
91
-
2. The application (or a contract calling on the application's behalf) calls [`L2ToL2CrossDomainMessenger.SendMessage.relayMessage`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol#L156-L216).
91
+
2. The autorelayer, the application, or a contract calling on the application's behalf calls [`L2ToL2CrossDomainMessenger.SendMessage.relayMessage`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol#L156-L216).
92
92
This call includes the message that was sent (`_sendMessage`), as well as the [fields required to find that message (`_id`)](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/interfaces/L2/ICrossL2Inbox.sol#L4-L10).
93
93
94
94
3. The `L2ToL2CrossDomainMessenger` uses `CrossL2Inbox` to verify the message was sent from the source.
@@ -107,10 +107,9 @@ sequenceDiagram
107
107
## Next steps
108
108
109
109
* Build a [revolutionary app](/app-developers/get-started) that uses multiple blockchains within the Superchain
110
+
* Actually [pass messages between blockchains](/stack/interop/tutorials/message-passing).
110
111
* Deploy a [SuperchainERC20](/stack/interop/tutorials/deploy-superchain-erc20) to the Superchain
111
112
* Practice how to use [Superchain interop message passing](/stack/interop/message-passing)
112
113
* Read how [messages get from one blockchain to another (`CrossL2Inbox`)](explainer#how-messages-get-from-one-chain-to-the-other).
113
114
* Try [Supersim](tools/supersim) for testing cross-chain messages locally.
114
115
* Learn about [manually relaying messages](/stack/interop/tutorials/relay-messages-viem)
115
-
116
-
{/* After the tutorial for L2ToL2CrossDomainMessenger is written, need to add a link here */}
0 commit comments