docs
docs copied to clipboard
Audit of message passing tutorial
Description
- Bring it in line with the standards for other interop tutorials.
- Create a separate tutorial for manual relay (which will be needed rarely, if at all).
Tests
None, but I did make sure everything runs.
Additional context
N/A
Metadata
Replacing #1581
Deploy Preview for docs-optimism ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | 75b1c8d6f276ba830a479454c2c551cc74041b30 |
| Latest deploy log | https://app.netlify.com/projects/docs-optimism/deploys/6837349a4948c60008ce8679 |
| Deploy Preview | https://deploy-preview-1616--docs-optimism.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
📝 Walkthrough
## Walkthrough
The changes restructure and clarify the message-passing tutorials for cross-chain communication. Two relay tutorial entries ("relay-messages-cast" and "relay-messages-viem") were removed from the main tutorials metadata. The primary message-passing tutorial was reorganized for clarity, with improved prerequisite and network setup sections, standardized environment variable usage, and clearer distinctions between Supersim and Devnet environments. The Solidity contract examples were updated for correct imports and interface usage. The manual relay tutorial was expanded to include both shell script (`cast`) and JavaScript API relay methods, with detailed setup and code instructions. Supporting scripts and contract files were updated for consistency, and unused or redundant files were removed or refactored.
## Sequence Diagram(s)
### Manual Cross-Chain Message Relay (New Flow)
```mermaid
sequenceDiagram
participant User
participant ChainA (L2A)
participant ChainB (L2B)
participant ManualRelayScript
User->>ChainA (L2A): Send setGreeting via GreetingSender
ChainA (L2A)-->>User: Transaction receipt (message sent)
User->>ManualRelayScript: Run relay script (cast or JS)
ManualRelayScript->>ChainA (L2A): Fetch message from outbox
ManualRelayScript->>ChainB (L2B): Relay message to Greeter contract
ChainB (L2B)-->>ManualRelayScript: Transaction receipt (greeting updated)
ManualRelayScript-->>User: Print updated greeting
Comparison: Old vs. New Tutorial Flow
sequenceDiagram
participant User
participant ChainA (L2A)
participant ChainB (L2B)
participant ViemScript
participant ManualRelayScript
%% Old flow with viem (deleted)
User->>ViemScript: Run viem relay script
ViemScript->>ChainA (L2A): Send setGreeting via GreetingSender
ViemScript->>ChainB (L2B): setGreeting directly
ChainB (L2B)-->>ViemScript: Read greeting
%% New flow (manual relay)
User->>ChainA (L2A): Send setGreeting via GreetingSender
ChainA (L2A)-->>User: Transaction receipt
User->>ManualRelayScript: Run relay script (cast or JS)
ManualRelayScript->>ChainA (L2A): Fetch message from outbox
ManualRelayScript->>ChainB (L2B): Relay message to Greeter contract
ChainB (L2B)-->>ManualRelayScript: Transaction receipt
Possibly related PRs
- ethereum-optimism/docs#1589: Removes "relay-messages-cast" and "relay-messages-viem" tutorials and restructures the message-passing tutorial, closely related to the current tutorial content removal and reorganization.
- ethereum-optimism/docs#1367: Adds a cross-domain event and expands manual relay instructions in the message-passing tutorial, modifying the same tutorial content that this PR removes or restructures.
- ethereum-optimism/docs#1334: Introduces the original interop message-passing tutorial with cross-domain messaging logic, which this PR subsequently modifies and streamlines.
Suggested reviewers
- krofax
- zainbacchus
</details>
<!-- walkthrough_end -->
---
<details>
<summary>📜 Recent review details</summary>
**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 107118a75c465aa3ca5649d601737e82d97dbca3 and 75b1c8d6f276ba830a479454c2c551cc74041b30.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
* `words.txt` (1 hunks)
</details>
<details>
<summary>🧰 Additional context used</summary>
<details>
<summary>🪛 LanguageTool</summary>
<details>
<summary>words.txt</summary>
[duplication] ~97-~97: Možný preklep: zopakovali ste slovo
Context: ...adir DATADIR devs devdocs Devnet devnet devnets Devnets direnv disabletxpoolgossip DISABLETXPOO...
(WORD_REPEAT_RULE)
</details>
</details>
</details>
<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (3)</summary>
* GitHub Check: Redirect rules - docs-optimism
* GitHub Check: Header rules - docs-optimism
* GitHub Check: Pages changed - docs-optimism
</details>
<details>
<summary>🔇 Additional comments (1)</summary><blockquote>
<details>
<summary>words.txt (1)</summary>
`96-99`: **Inconsistent entry ordering relative to established pattern**
The `Devnet` entry has been placed before its lowercase counterpart (`devnet`), which deviates from the file’s standard convention of listing lowercase singular, uppercase singular, lowercase plural, uppercase plural (e.g., `alphanet`, `Alphanet`, `alphanets`, `Alphanets`). Please confirm whether this swap is intentional or revert to maintain consistency across the list.
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 LanguageTool</summary>
[duplication] ~97-~97: Možný preklep: zopakovali ste slovo
Context: ...adir DATADIR devs devdocs Devnet devnet devnets Devnets direnv disabletxpoolgossip DISABLETXPOO...
(WORD_REPEAT_RULE)
</details>
</details>
</details>
</blockquote></details>
</details>
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIgBBbFp1fgAzSDZERDRSHjQs+AwiCLx8Cng0L1DYyAB3fPtsAWZ1Gno5CNgSSGxESkgAgQAvIdx0ZFtIDEcBfoBGADZF/ixcLsgSNcoSRzB8bnEWxGYAelp8BmR/bnxEdTLZDRh15m0sTwobvrTO7snUAg9bi0ajdLYZaTZXLcfJ3IolAjlSoRfCQATleEpQqQLyFbq1dSwX72XCYEEUWjIXoxbH4LZ8Qo0Cj7ZRqXG4eS4UpIrzIAlrbHg84MRzsajwfAYJ7xWjJcSSypeWThcGTBj+UHIND2Egwqg0BFlCq+RDcUTwVLwBiK+SpMoZTDYZH+LxoZV1BAMImoEgADzNYhigNmUxIdBiVBd7ot6DGiqecG6aDwsHtyXoGDpKAwDC8SSTGHkyYIrzaERCMjwCgwloobHoa2o6B8fhI0QkmDGvAukOkfmwWCYFH8YiVCYQEzs11dDD72t4JAkEt6jWaSDukpQSgw4ktMQaZjmAFYABxzJ4AOVRaFl6glGGRTB3frG9rYpJBpLqDW7S6UtA0cx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bY3rwijR8g4GgW5xIZ+CKAhfYCO40+E+MfgHg5QRUJ8F2NjRTjUOMSNJEW97B1lUohSKpEKRSBwAo4KcDAGlMIBaGD0uoU9xvJ/cJwBkV4JsZqDjRtQ8UQQE9H8ifRRFP0UU0LwFJAx8TYHKTTCERioxKgrUbGJZE1DrKCzOTkYElQUgEE7AzgOWK2bRldOsKMdPszaZTocu9geoKMNqgUh+gJQlFJbjypxAaMUmW9FdFswSBRxjA8EHhnCASDigsQCcVONmDjDhxdmTYDUHdh3s2kj/Kpt6n6Al90+cLJJPSUajLDkoX+dALA0jTQiP6qfPDkeJr5EckRIpFEWyKwbidpixaeZn2jqKGADACyPNPvyXgdIdOWyPbpwD4T7JmxSEY5BMlUDqBzksyeZM0jUjqB3kuuRAO8ixzSlc4tAd5BPEs6XJAJAAFhvATYAADEsFPB+4AAnAAHZUgR4EibQFUB+5UgtE2iSeFoAngBAiwWgLRP6FzA/cKgBgH7j9zISAJqEk8LRKPBiSBAFE1QPRL9wsSSAwk2iXMBPAiS0AR4WSQsBIACBOJFE+iV7zmC0A5g9EkgF71AaNJAJtEv3AwHokkSSJCwFyceAMm0TzJWkkgCeAmx+4veqQAQPRKPC6TIifiXySRK94MTJJgE1IBRJPAkT6JrEyIgsH8mpAZJ+kk8FZK94kTUgcwAQH7kYlHgKJVEkiVlL9wngcp3QWyahIYAUTIiQU+iVlIEB1TrJfuWgBRM8muS0A9EiiY5OEnFSmp+knSbQAWCVSYpqEuYMZLmCaSepcklyUeDQBoBrJOk1yV1IokWSvelkrSQJKSktTlpE0iAJAGCl8SGA3EhYKkEKkLACGlUiiWgESm0SSJzEsSQwBClzAJsTkiiSRPyle8KJkkqSUdKjjoTMJ2ExcLhLoDvJWk+gIAA -->
<!-- internal state end -->
<!-- tips_start -->
---
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary>❤️ Share</summary>
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
</details>
<details>
<summary>🪧 Tips</summary>
### Chat
There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=ethereum-optimism/docs&utm_content=1616):
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
- `I pushed a fix in commit <commit_id>, please review it.`
- `Explain this complex logic.`
- `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
- `@coderabbitai explain this code block.`
- `@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
- `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
- `@coderabbitai read src/utils.ts and explain its main purpose.`
- `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
- `@coderabbitai help me debug CodeRabbit configuration file.`
### Support
Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
### CodeRabbit Commands (Invoked using PR comments)
- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.
### Other keywords and placeholders
- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.
### Documentation and Community
- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
</details>
<!-- tips_end -->
The section is very unclear, typically the structure should be;
- the script:
- The output/response from the script:
- Then an explanation of the output. Right now we have the script, the header title, i.e explanation of the script's "capacity", rather than explanation of the output of the script.
Maybe move the output of the script above, "What does the script do?" header, or even change that to just "Explanation"(this doesn't matter much).
Maybe using steps here might make it clearer what's going on, i.e before every cast command you have a bullet point header/text, followed by the cast command, and the explanation.
Rewritten. I don't show the script output because it's not very relevant - but I do explain the script and what it does now.
LGTM, Approved! When you fix the conflict let me know, so i can merge. @qbzzt