Skip to content

Commit 0369be2

Browse files
authored
Merge pull request #1334 from qbzzt/250204-message-passing
Tutorial on how to pass messages from one contract to another using interop
2 parents 799c993 + bb094fd commit 0369be2

File tree

8 files changed

+711
-0
lines changed

8 files changed

+711
-0
lines changed

pages/stack/interop/message-passing.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ import { InteropCallout } from '@/components/WipCallout'
1212

1313
# Interop message passing overview
1414

15+
<Callout>
16+
This is an explanation of how interop works.
17+
You can find a step by step tutorial [here](tutorials/message-passing).
18+
</Callout>
19+
1520
The low-level [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract handles basic message execution. It verifies whether an initiating message exists but does not check the message's destination, processing status, or other attributes.
1621

1722
The [`L2ToL2CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol) contract extends `CrossL2Inbox` by providing complete cross-domain messaging functionality.

pages/stack/interop/tutorials.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { Card, Cards } from 'nextra/components'
1111
Documentation covering Interop related tutorials.
1212

1313
<Cards>
14+
<Card title="Interop message passing tutorial" href="/stack/interop/tutorials/message-passing" icon={<img src="/img/icons/shapes.svg" />} />
15+
1416
<Card title="Issuing new assets with SuperchainERC20" href="/stack/interop/tutorials/deploy-superchain-erc20" icon={<img src="/img/icons/shapes.svg" />} />
1517

1618
<Card title="Transferring a SuperchainERC20" href="/stack/interop/tutorials/transfer-superchainERC20" icon={<img src="/img/icons/shapes.svg" />} />

pages/stack/interop/tutorials/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"message-passing": "Interop message passing",
23
"transfer-superchainERC20": "Transferring a SuperchainERC20",
34
"deploy-superchain-erc20": "Issuing new assets with SuperchainERC20",
45
"bridge-crosschain-eth": "Bridging native cross-chain ETH transfers",

0 commit comments

Comments
 (0)