-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OP Scan Block Explorer #1102
Changes from all commits
5828dc0
e33b435
51c1e54
8b29d73
eb24a1c
766a836
f6a249a
8fff156
24ecff7
d12e0c8
95f0401
562b257
f46ab56
1baceef
9b2d714
eadccee
8942e00
014db79
f15d94a
6716511
65ab7a4
6b11565
08a1af9
8172140
dbb9429
654f104
f258618
44e1963
0adff39
dd292f3
823c428
911b42c
4488df3
ba611db
e8d2b35
dc23b5e
11f7939
7458aef
071e411
4a791af
ccf1313
5148ca9
f902d7e
7e3ac40
21b3dc5
e9e04e5
b7814fa
b05ddc5
2390a3a
0cdd15a
0e80025
e6d3bc3
4a9df6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
`op-proposer` is the service that submits the output roots to the L1. This is to enable trustless execution of L2-to-L1 messaging and creates the view into the L2 state from the L1's perspective. | ||
`op-proposer` is the service that submits the output roots to the L1. This is to enable trustless execution of L2-to-L1 messaging and creates the view of the L2 state from the L1's perspective. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Redirect links management guide | ||
|
||
## Scripts overview | ||
Two scripts help maintain internal links when pages are redirected: | ||
|
||
* `check-redirects`: Identifies links that need updating based on the `_redirects` file. | ||
* `fix-redirects`: Automatically updates links to match `_redirects` entries. | ||
|
||
## Checking for broken links | ||
|
||
Run the check script: | ||
|
||
```bash | ||
pnpm lint //OR | ||
pnpm check-redirects | ||
``` | ||
## What it does | ||
|
||
* Scans all `.mdx` files in the docs | ||
* Compares internal links against `_redirects` file | ||
* Reports any outdated links that need updating | ||
* Provides a summary of total, broken, and valid links | ||
|
||
## Example output | ||
|
||
```bash | ||
File "builders/overview.mdx" contains outdated link "/chain/overview" - should be updated to "/stack/overview" | ||
|
||
Summary: | ||
Total pages 🔍 - 50 | ||
Pages broken 🚫 - 2 | ||
Pages OK ✅ - 48 | ||
|
||
``` | ||
|
||
## Fixing broken links | ||
|
||
Fix links automatically: | ||
|
||
```bash | ||
pnpm fix //OR | ||
pnpm fix-redirects | ||
``` | ||
|
||
## What it does | ||
|
||
* Updates all internal links to match `_redirects` entries | ||
* Preserves other content and formatting | ||
* Shows which files and links were updated | ||
* Provides a summary of changes made | ||
|
||
## Example output | ||
|
||
```bash | ||
Fixed in "builders/overview.mdx": /chain/overview → /stack/overview | ||
|
||
Summary: | ||
Total files 🔍 - 50 | ||
Files fixed ✅ - 2 | ||
Files skipped ⏭️ - 48 | ||
``` | ||
|
||
## Best practices | ||
|
||
1. Before running | ||
|
||
* Commit current changes | ||
* Review `_redirects` file is up-to-date | ||
* Run `check-redirects` first to preview changes | ||
|
||
|
||
2. After running | ||
|
||
* Review git diff of updated files | ||
* Test updated links locally | ||
* Commit changes with descriptive message | ||
|
||
|
||
|
||
## Common issues | ||
|
||
* Script fails: Ensure `_redirects` file exists in public folder, it should always be there! | ||
* No broken links found: Verify `_redirects` entries are correct. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,14 @@ In this area of the Optimism Docs you'll find everything you need to know about | |
If you're brand new to OP Mainnet, try starting with the guide on [deploying a basic contract](/chain/getting-started). | ||
It'll get you familiar with the basic steps required to get a contract deployed to the network. | ||
OP Mainnet is [EVM equivalent](https://web.archive.org/web/20231127160757/https://medium.com/ethereum-optimism/introducing-evm-equivalence-5c2021deb306) so you can feel confident that your existing Ethereum smart contract skills will carry over to OP Mainnet. | ||
Just make sure to be aware of the few small [differences between Ethereum and OP Mainnet](/chain/differences). | ||
Just make sure to be aware of the few small [differences between Ethereum and OP Mainnet](/stack/differences). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Update all references to The link update from
🔗 Analysis chainVerify the updated documentation path The link has been updated from 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if the new path exists and find any inconsistencies
fd -e mdx -e md | xargs rg -l "/chain/differences"
Length of output: 215 Script: #!/bin/bash
# Check if the new path exists
fd -e mdx -e md | xargs rg -l "/stack/differences"
# Also check the content of files that still use the old path
rg -A 2 -B 2 "/chain/differences" pages/stack/transactions/fees.mdx pages/stack/rollup/outages.mdx pages/chain/security/privileged-roles.mdx pages/builders/app-developers/transactions/parameters.mdx
Length of output: 3710 |
||
|
||
You might also want to check out the [testing on OP Networks guide](/chain/testing/testing-apps) and the tutorial on [running a local development environment](/chain/testing/dev-node) to help you feel totally confident in your OP Mainnet deployment. | ||
|
||
<Cards> | ||
<Card title="Deploying Your First Contract to OP Mainnet" href="/builders/app-developers/tutorials/first-contract" icon={<img src="/img/icons/shapes.svg" />} /> | ||
<Card title="Deploying Your First Contract to OP Mainnet" href="/builders/app-developers/overview" icon={<img src="/img/icons/shapes.svg" />} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix circular reference in card link The card "Deploying Your First Contract to OP Mainnet" links to the current page ( Consider updating the href to point to the actual deployment tutorial page. |
||
|
||
<Card title="Solidity Compatibility on OP Mainnet" href="/builders/app-developers/contracts/compatibility" icon={<img src="/img/icons/shapes.svg" />} /> | ||
<Card title="Solidity Compatibility on OP Mainnet" href="/stack/differences" icon={<img src="/img/icons/shapes.svg" />} /> | ||
|
||
<Card title="Testing Apps on OP Mainnet" href="/chain/testing/testing-apps" icon={<img src="/img/icons/shapes.svg" />} /> | ||
</Cards> | ||
|
@@ -51,17 +51,17 @@ The Standard Token Bridge for OP Mainnet even uses this same message-passing inf | |
If you're a bit more familiar with OP Mainnet and Ethereum, you can try walking through one of the tutorials put together by the Optimism community. | ||
They'll help you get a head start when building your first Optimistic project. | ||
|
||
| Tutorial Name | Description | Difficulty Level | | ||
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | | ||
| [Deploying Your First Contract on OP Mainnet](tutorials/first-contract) | Learn how to deploy your first contract to OP Mainnet with Remix and MetaMask. | 🟢 Easy | | ||
| [Bridging ETH With the Optimism SDK](tutorials/cross-dom-bridge-eth) | Learn how to use the Optimism SDK to transfer ETH between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia). | 🟢 Easy | | ||
| [Bridging ERC-20 Tokens With the Optimism SDK](tutorials/cross-dom-bridge-erc20) | Learn how to use the Optimism SDK to transfer ERC-20 tokens between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia). | 🟢 Easy | | ||
| [Bridging your Standard ERC-20 token using the Standard Bridge](tutorials/standard-bridge-standard-token) | Learn how to bridge your standard ERC-20 token to layer 2 using the standard bridge. | 🟡 Medium | | ||
| [Bridging your Custom ERC-20 token using the Standard Bridge](tutorials/standard-bridge-custom-token) | Learn how to bridge your custom ERC-20 token to layer 2 using the standard bridge. | 🟡 Medium | | ||
| [Tracing Deposits and Withdrawals With the Optimism SDK](tutorials/sdk-trace-txns) | Learn how to use the Optimism SDK to trace deposits and withdrawals. | 🟢 Easy | | ||
| [Viewing Deposits and Withdrawals by Address With the Optimism SDK](tutorials/sdk-view-txns) | Learn how to use the Optimism SDK to view deposits and withdrawals by address. | 🟢 Easy | | ||
| [Estimating Transaction Costs With the Optimism SDK](tutorials/sdk-view-txns) | Learn how to use the Optimism SDK to estimate the cost of a transaction on OP Mainnet. | 🟢 Easy | | ||
| [Sending OP Mainnet Transactions from Ethereum](tutorials/send-tx-from-eth) | Learn how to send transactions to OP Mainnet from Ethereum. | 🟢 Easy | | ||
| Tutorial Name | Description | Difficulty Level | | ||
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------- | | ||
| [Deploying Your First Contract on OP Mainnet](tutorials/first-contract) | Learn how to deploy your first contract to OP Mainnet with Remix and MetaMask. | 🟢 Easy | | ||
| [Bridging ETH With viem](tutorials/cross-dom-bridge-eth) | Learn how to use viem to transfer ETH between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia). | 🟢 Easy | | ||
| [Bridging ERC-20 Tokens With viem](tutorials/cross-dom-bridge-erc20) | Learn how to use viem to transfer ERC-20 tokens between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia). | 🟢 Easy | | ||
| [Bridging your Standard ERC-20 token using the Standard Bridge](tutorials/standard-bridge-standard-token) | Learn how to bridge your standard ERC-20 token to layer 2 using the standard bridge. | 🟡 Medium | | ||
| [Bridging your Custom ERC-20 token using the Standard Bridge](tutorials/standard-bridge-custom-token) | Learn how to bridge your custom ERC-20 token to layer 2 using the standard bridge. | 🟡 Medium | | ||
| [Tracing Deposits and Withdrawals with viem](tutorials/sdk-trace-txns) | Learn how to use viem to trace deposits and withdrawals. | 🟢 Easy | | ||
| [Viewing Deposits and Withdrawals by address with viem](tutorials/sdk-view-txns) | Learn how to use viem to view deposits and withdrawals by address. | 🟢 Easy | | ||
| [Estimating Transaction Costs With the viem](tutorials/sdk-view-txns) | Learn how to use viem to estimate the cost of a transaction on OP Mainnet. | 🟢 Easy | | ||
| [Sending OP Mainnet Transactions from Ethereum](tutorials/send-tx-from-eth) | Learn how to send transactions to OP Mainnet from Ethereum. | 🟢 Easy | | ||
Comment on lines
+54
to
+64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix inconsistencies in tutorial table The tutorial table has several formatting issues:
Apply these corrections:
|
||
|
||
You can also [suggest a new tutorial](https://github.com/ethereum-optimism/docs/issues/new?assignees=\&labels=tutorial%2Cdocumentation%2Ccommunity-request\&projects=\&template=suggest_tutorial.yaml\&title=%5BTUTORIAL%5D+Add+PR+title) if you have something specific in mind. We'd love to grow this list! | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Warning: Missing viem content in ERC-20 bridging tutorial
The link to the ETH bridging tutorial is correct and contains viem-based content. However, the ERC-20 bridging tutorial appears to be missing viem implementation details, making the link reference inaccurate.
/builders/app-developers/tutorials/cross-dom-bridge-eth.mdx
: ✅ Contains viem implementation/builders/app-developers/tutorials/cross-dom-bridge-erc20.mdx
: ❌ No viem content found🔗 Analysis chain
Tutorial links correctly updated to reference viem
The changes appropriately reflect the transition from Optimism SDK to viem in the tutorial references.
Let's verify that these tutorial pages exist and contain viem-based content:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 130
Script:
Length of output: 944
Script:
Length of output: 1454