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/reading-logs.mdx
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Reading Logs in Superchain Interop
2
+
title: Reading Logs with Superchain Interop
3
3
lang: en-US
4
4
description: Learn how to reference logs from one chain on another within the Superchain.
5
5
topic: Cross-Chain Log Verification
@@ -13,9 +13,9 @@ import { InteropCallout } from '@/components/WipCallout'
13
13
14
14
<InteropCallout />
15
15
16
-
# Reading logs in superchain interop
16
+
# Reading Logs with Superchain Interop
17
17
18
-
Superchain interop enables developers to leverage current and historical logs from other blockchains within the Superchain interop cluster directly on their local chain.
18
+
Superchain interop enables developers to leverage current and historical logs from other blockchains within the [Superchain interop cluster](/stack/interop/explainer#superchain-interop-cluster) directly on their local chain.
19
19
This allows smart contracts to consume local and cross-chain logs with low latency in a trust-minimized way.
20
20
21
21
## Overview
@@ -30,8 +30,7 @@ This enables developers to:
30
30
## Why use `CrossL2Inbox`?
31
31
32
32
***Reference existing logs**: Allows contracts to verify and use logs that were already emitted, without requiring those logs to have been sent as cross-chain messages.
33
-
***Consistent trust model**: Uses the same trust assumptions as the underlying OP Stack infrastructure.
34
-
***Trust-minimized security**: Leverages the existing Superchain security model with no additional trust assumptions, unlike traditional oracle solutions that require trusting external validators.
33
+
***Trust-minimized security**: Leverages the existing Superchain security model with no additional trust assumptions.
35
34
***Flexibility**: Can be used to validate events from another chain or even the local chain.
36
35
37
36
## How it works
@@ -53,6 +52,7 @@ The process works through the [`CrossL2Inbox`](https://github.com/ethereum-optim
53
52
## Example: cross-chain attestation verification
54
53
55
54
Let's walk through a conceptual example of verifying an Ethereum Attestation Service (EAS) attestation across chains.
55
+
EAS is a [predeploy](/stack/interop/predeploy) in the OP Stack for making attestations on or off-chain about anything.
56
56
57
57
### Source chain: creating an attestation
58
58
@@ -81,7 +81,7 @@ sequenceDiagram
81
81
82
82
### Destination chain: verifying the attestation
83
83
84
-
On the destination chain (e.g., Base), a DeFi application wants to verify this attestation:
84
+
On the destination chain (e.g., Unichain), a DeFi application wants to verify this attestation:
85
85
86
86
```mermaid
87
87
sequenceDiagram
@@ -119,7 +119,7 @@ sequenceDiagram
119
119
120
120
The primary benefit of this approach is that it allows your contract to verify attestations that already exist on another chain without requiring those attestations to have been explicitly sent as cross-chain messages.
121
121
122
-
## Implementation guide
122
+
## Overview of the process
123
123
124
124
To implement cross-chain log reading:
125
125
@@ -139,8 +139,8 @@ flowchart TD
139
139
Pass the identifier and hash of log data"]
140
140
end
141
141
142
-
B -.-> E
143
-
C -.-> F
142
+
B --> E
143
+
C --> F
144
144
```
145
145
146
146
1. First, identify which log from another chain you want to consume in your application.
@@ -153,9 +153,8 @@ flowchart TD
153
153
154
154
## Important considerations
155
155
156
-
* This feature works between chains within the same Superchain interop cluster.
156
+
* This feature works between chains within the [Superchain interop cluster](/stack/interop/explainer#superchain-interop-cluster).
157
157
* The same functionality can be used on a single chain (for example, to maintain a consistent architecture).
158
-
* Ensure your contract handles validation failures gracefully.
0 commit comments