Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Optimism Docs
# Metal L2 Docs

This repo houses the Optimism Docs located at [docs.optimism.io](https://docs.optimism.io/). All documentation-related updates and new content will be tracked and maintained in this repo.
This repo houses the Metal L2 Docs forked from Optimism located at [docs.optimism.io](https://docs.optimism.io/). All documentation-related updates and new content will be tracked and maintained in this repo.

## Local Development

Expand Down
2 changes: 2 additions & 0 deletions components/TokenListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const explorers = {
'420': 'https://goerli-optimism.etherscan.io',
'11155111': 'https://sepolia.etherscan.io/',
'11155420': 'https://sepolia-optimism.etherscan.io/',
'1750' : 'https://explorer.metall2.com/',
'1740' : 'https://testnet.explorer.metall2.com/',
}

export function TokenListTable({
Expand Down
20 changes: 10 additions & 10 deletions pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
"href": "https://app.optimism.io/faucet?utm_source=docs",
"newWindow": true
},
"gas": {
"title": "Gas Tracker",
"bridge": {
"title": "Bridge",
"type": "page",
"href": "https://optimistic.grafana.net/public-dashboards/c84a5a9924fe4e14b270a42a8651ceb8?orgId=1&refresh=5m",
"href": "https://bridge.metall2.com/",
"newWindow": true
},
"status": {
"title": "Status",
"explorer": {
"title": "Explorer",
"type": "page",
"href": "https://status.optimism.io/",
"href": "https://explorer.metall2.com/",
"newWindow": true
},

Expand All @@ -65,16 +65,16 @@
"display": "children"
},

"+++ OP MAINNET": {
"+++ METAL L2 MAINNET": {
"title": "",
"type": "separator"
},
"--- OP MAINNET": {
"title": "OP MAINNET",
"--- METAL L2 MAINNET": {
"title": "METAL L2 MAINNET",
"type": "separator"
},
"chain": {
"title": "OP Mainnet",
"title": "METAL L2 Mainnet",
"display": "children"
},

Expand Down
40 changes: 20 additions & 20 deletions pages/builders/app-developers/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
---
title: App Developer Overview
lang: en-US
description: Learn about deploying contracts, cross-chain messaging, and tutorials to help you build applications on OP Mainnet.
description: Learn about deploying contracts, cross-chain messaging, and tutorials to help you build applications on Metal L2.
---

import { Cards, Card } from 'nextra/components'

# App Developer Overview

If you're a developer looking to build on OP Mainnet, you've come to the right place.
In this area of the Optimism Docs you'll find everything you need to know about building OP Mainnet applications.
If you're a developer looking to build on Metal L2, you've come to the right place.
In this area of the Metal L2 Docs you'll find everything you need to know about building Metal L2 applications for deployment on the Superchains Banking Layer, Metal L2.

## Getting Started

If you're brand new to OP Mainnet, try starting with the guide on [deploying a basic contract](/chain/getting-started).
If you're brand new to Metal L2, 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).
Metal L2 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 Metal L2.
Just make sure to be aware of the few small [differences between Ethereum and Metal L2](/chain/differences).

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.
You might also want to check out the [testing on Metal L2 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 Metal L2 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 Metal L2" href="/builders/app-developers/tutorials/first-contract" icon={<img src="/img/icons/shapes.svg" />} />

<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 Metal L2" href="/builders/app-developers/contracts/compatibility" 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" />} />
<Card title="Testing Apps on Metal L2" href="/chain/testing/testing-apps" icon={<img src="/img/icons/shapes.svg" />} />
</Cards>

## Bridging and Messaging

Looking to build an application that sends ETH, tokens, or data between OP Mainnet and Ethereum?
Looking to build an application that sends ETH, tokens, or data between Metal L2 and Ethereum?
You'll find some useful guides and tutorials in this area of the docs.
For instance, if you want to learn how to bridge a token from Ethereum to OP Mainnet (or vice versa!), you should check out the [Standard Token Bridge](bridging/standard-bridge).
For instance, if you want to learn how to bridge a token from Ethereum to Metal L2 (or vice versa!), you should check out the [Standard Token Bridge](bridging/standard-bridge).

If you're looking for something more advanced, take a look at the guide on [sending data between L1 and L2](bridging/messaging).
Contracts on one chain can trigger contract functions on the other chain, it's pretty cool!
The Standard Token Bridge for OP Mainnet even uses this same message-passing infrastructure under the hood.
The Standard Token Bridge for Metal L2 even uses this same message-passing infrastructure under the hood.

<Cards>
<Card title="Basics of Bridging on OP Mainnet" href="/builders/app-developers/bridging/basics" icon={<img src="/img/icons/shapes.svg" />} />
<Card title="Basics of Bridging on Metal L2" href="/builders/app-developers/bridging/basics" icon={<img src="/img/icons/shapes.svg" />} />

<Card title="Sending Data Between L1 and L2" href="/builders/app-developers/bridging/messaging" icon={<img src="/img/icons/shapes.svg" />} />

Expand All @@ -48,21 +48,21 @@ The Standard Token Bridge for OP Mainnet even uses this same message-passing inf

## Tutorials

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.
If you're a bit more familiar with Metal L2 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 |
| [Deploying Your First Contract on Metal L2](tutorials/first-contract) | Learn how to deploy your first contract to Metal L2 with Remix and MetaMask. | 🟢 Easy |
| [Deploying Your Contracts for Free on the Superchain](tutorials/deploy-for-free) | Learn how to deploy your contracts for free on the Superchain using the Superchain Developer Console | 🟢 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 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 (Metal L2 or Metal L2 Testnet). | 🟢 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 (Metal L2 or Metal L2 Testnet). | 🟢 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 |
| [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 Metal L2. | 🟢 Easy |
| [Sending Metal L2 Transactions from Ethereum](tutorials/send-tx-from-eth) | Learn how to send transactions to Metal L2 from Ethereum. | 🟢 Easy |

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!

Expand Down
40 changes: 20 additions & 20 deletions pages/builders/cex-wallet-developers/cex-support.mdx
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
---
title: Supporting OP Mainnet in Your Exchange
title: Supporting Metal L2 in Your Exchange
lang: en-US
description: Learn how to support OP Mainnet in your exchange.
description: Learn how to support Metal L2 in your exchange.
---

import { Callout } from 'nextra/components'

# Supporting OP Mainnet in Your Exchange
# Supporting Metal L2 in Your Exchange

Check out this guide to get an overview of everything you need to know to properly support OP Mainnet within your exchange.
Check out this guide to get an overview of everything you need to know to properly support Metal L2 within your exchange.

## Connecting to OP Mainnet
## Connecting to Metal L2

OP Mainnet is designed to be [EVM equivalent](https://web.archive.org/web/20231127160757/https://medium.com/ethereum-optimism/introducing-evm-equivalence-5c2021deb306) and supports all of the same tooling as Ethereum.
You can use your favorite Ethereum libraries and tools to work with OP Mainnet.
Head over to the [Networks and RPC Endpoints](/chain/networks) page for network connection details and check out the [RPC Providers](/builders/tools/connect/rpc-providers) page for an updated list of RPC providers that support OP Mainnet.
If you need to run your own OP Mainnet node, head over to the [Node Operator](/builders/node-operators/rollup-node) guide.
Metal L2 is designed to be [EVM equivalent](https://web.archive.org/web/20231127160757/https://medium.com/ethereum-optimism/introducing-evm-equivalence-5c2021deb306) and supports all of the same tooling as Ethereum.
You can use your favorite Ethereum libraries and tools to work with Metal L2.
Head over to the [Networks and RPC Endpoints](/chain/networks) page for network connection details and check out the [RPC Providers](/builders/tools/connect/rpc-providers) page for an updated list of RPC providers that support Metal L2.
If you need to run your own Metal L2 node, head over to the [Node Operator](/builders/node-operators/rollup-node) guide.

## Native Gas Token (ETH)

OP Mainnet uses ETH as its native gas token.
Metal L2 uses ETH as its native gas token.
Transactions are paid for in ETH and account balances are denominated in ETH.

## Transaction Fees

OP Mainnet charges the standard gas fee for transactions, but also charges an additional L1 data fee for the cost of publishing transaction data to Ethereum.
Check out the [Transaction Fees](/stack/transactions/fees) page for more information about how transaction fees work on OP Mainnet.
Metal L2 charges the standard gas fee for transactions, but also charges an additional L1 data fee for the cost of publishing transaction data to Ethereum.
Check out the [Transaction Fees](/stack/transactions/fees) page for more information about how transaction fees work on Metal L2.

## Smart Contracts

Smart contracts on OP Mainnet function the same way they do on Ethereum.
Smart contracts on Metal L2 function the same way they do on Ethereum.
This includes ERC-20 token contracts.
You can use your existing logic for managing withdrawals and deposits of ERC-20 tokens.

## Token Addresses

The ERC-20 contract address for a token on OP Mainnet may differ from the address for the same token on Ethereum.
The ERC-20 contract address for a token on Metal L2 may differ from the address for the same token on Ethereum.
Make sure to reference the [Bridged Token Addresses](/chain/tokenlist) to confirm that you are using the correct token addresses in your application.

## Bridging ETH and ERC-20s

You may need to transfer ETH or ERC-20 tokens between OP Mainnet and Ethereum.
For instance, you may need to use this functionality to balance the supply of ETH on OP Mainnet and Ethereum depending on the demand for withdrawals and deposits on the two networks.
Refer to the [Basics of Bridging](/builders/app-developers/bridging/basics) and the [Standard Bridge](/builders/app-developers/bridging/standard-bridge) guides for more information about how to bridge ETH and ERC-20 tokens between OP Mainnet and Ethereum.
You may need to transfer ETH or ERC-20 tokens between Metal L2 and Ethereum.
For instance, you may need to use this functionality to balance the supply of ETH on Metal L2 and Ethereum depending on the demand for withdrawals and deposits on the two networks.
Refer to the [Basics of Bridging](/builders/app-developers/bridging/basics) and the [Standard Bridge](/builders/app-developers/bridging/standard-bridge) guides for more information about how to bridge ETH and ERC-20 tokens between Metal L2 and Ethereum.

## Transaction Statuses

OP Mainnet transactions have a number of different statuses during the transaction lifecycle.
Metal L2 transactions have a number of different statuses during the transaction lifecycle.
Refer to the [Transaction Statuses](/builders/app-developers/transactions/statuses) page for more information about the different transaction statuses and how to handle them in your application.

<Callout>
Expand All @@ -57,6 +57,6 @@ Make sure to understand the various transaction statuses to avoid security issue

## Audits and Security Reviews

The OP Stack codebase upon which OP Mainnet is built has undergone a number of security reviews.
The OP Stack codebase upon which Metal L2 is built has undergone a number of security reviews.
Visit [GitHub](https://github.com/ethereum-optimism/optimism/tree/develop/docs/security-reviews) for a full list of the most recent reports.
Additionally, refer to the [Security Model & FAQ](/chain/security/faq) page for more information about the security model of OP Mainnet.
Additionally, refer to the [Security Model & FAQ](/chain/security/faq) page for more information about the security model of Metal L2.
Loading