Skip to content

Commit

Permalink
Break up info-contracts into separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwllmr committed Nov 26, 2024
1 parent 20759f5 commit ea2178e
Show file tree
Hide file tree
Showing 10 changed files with 321 additions and 310 deletions.
107 changes: 107 additions & 0 deletions docs/get-started/build/block-explorers.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
title: Block explorers
description: Block explorers available for Linea Mainnet and Linea Sepolia.
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

If you're new to public blockchain networks, you might not be familiar with _block explorers_. It's helpful to remember that the network is keeping track of a _ledger_ of accounts, with tokens attributed to them, sent between them, created by them, etc.

As users take actions on the network, there are changes to those accounts and tokens. A block explorer is an interface through which you can look at that information in all its raw, gritty detail.

> If you want to learn more about explorers and how to use them, check out the [MetaMask help center](https://support.metamask.io/managing-my-wallet/how-to-check-my-wallet-activity-on-the-blockchain-explorer/)
<Tabs groupId="Mainnet-Testnet" className="my-tabs">
<TabItem value="Mainnet" label="Mainnet" default>
<table>
<thead>
<tr>
<th>Explorer name</th>
<th>URL</th>
<th>API URL</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lineascan</td>
<td>https://lineascan.build</td>
<td>`https://api.lineascan.build/api`</td>
</tr>
<tr>
<td>Lineaplorer</td>

Check failure on line 32 in docs/get-started/build/block-explorers.mdx

View workflow job for this annotation

GitHub Actions / Spelling

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'Lineaplorer'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'Lineaplorer'?", "location": {"path": "docs/get-started/build/block-explorers.mdx", "range": {"start": {"line": 32, "column": 15}}}, "severity": "ERROR"}
<td>https://lineaplorer.build/</td>
<td>`https://lineaplorer.build/api`</td>
</tr>
<tr>
<td>L2Scan</td>
<td>https://linea.l2scan.co</td>
<td>`https://linea.l2scan.co/api/contract`</td>
</tr>
<tr>
<td>Blockscout</td>
<td>https://explorer.linea.build</td>
<td>`https://explorer.linea.build/api`</td>
</tr>
<tr>
<td>OKLink</td>
<td>https://www.oklink.com/linea</td>
<td>`https://www.oklink.com/docs/en/#welcome-to-oklink-api`</td>
</tr>
<tr>
<td>Chainlens</td>
<td>https://linea.chainlens.com/</td>
<td>`https://linea.chainlens.com/api`</td>
</tr>
<tr>
<td>Socialscan</td>
<td>https://linea.socialscan.io/</td>
<td>`https://api.socialscan.io/linea`</td>
</tr>
<tr>
<td>Linea for Humans</td>
<td>https://linea.forhumans.app/</td>
<td>n/a</td>
</tr>
<tr>
<td>0xPPL</td>
<td>https://0xppl.com/Linea/overview</td>
<td>n/a</td>
</tr>
<tr>
<td>Arkham</td>
<td>https://platform.arkhamintelligence.com/</td>
<td>n/a</td>
</tr>
<tr>
<td>NFTScan</td>
<td>https://linea.nftscan.com/</td>
<td>n/a</td>
</tr>
</tbody>
</table>
</TabItem>
<TabItem value="Linea Sepolia" label="Linea Sepolia" default>
<table>
<thead>
<tr>
<th>Explorer name</th>
<th>URL</th>
<th>API URL</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lineascan</td>
<td>https://sepolia.lineascan.build</td>
<td>`https://api-sepolia.lineascan.build/api`</td>
</tr>
<tr>
<td>Blockscout</td>
<td>https://explorer.sepolia.linea.build/</td>
<td>`https://explorer.sepolia.linea.build/api`</td>
</tr>
</tbody>
</table>
</TabItem>
</Tabs>
126 changes: 126 additions & 0 deletions docs/get-started/build/contracts.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---
title: Contracts
description: Important contracts on Linea Mainnet and Linea Sepolia.
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

## Deployed contracts

<Tabs groupId="Mainnet-Testnet" className="my-tabs">
<TabItem value="Mainnet" label="Mainnet" default>
<table>
<tr>
<th>Contract</th>
<th>Address</th>
</tr>
<tr>
<td>L1 Message Service</td>
<td>
<a href="https://etherscan.io/address/0xd19d4B5d358258f05D7B411E21A1460D11B0876F">
0xd19d4B5d358258f05D7B411E21A1460D11B0876F
</a>
</td>
</tr>
<tr>
<td>L2 Message Service</td>
<td>
<a href="https://lineascan.build/address/0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec">
0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec

Check failure on line 30 in docs/get-started/build/contracts.mdx

View workflow job for this annotation

GitHub Actions / Spelling

[vale] reported by reviewdog 🐶 [proselint.Typography] Consider using the '×' symbol instead of '0x508'. Raw Output: {"message": "[proselint.Typography] Consider using the '×' symbol instead of '0x508'.", "location": {"path": "docs/get-started/build/contracts.mdx", "range": {"start": {"line": 30, "column": 13}}}, "severity": "ERROR"}
</a>
</td>
</tr>
</table>
</TabItem>
<TabItem value="Linea Sepolia" label="Linea Sepolia">
<table>
<tr>
<th>Contract</th>
<th>Address</th>
</tr>
<tr>
<td>L1 Message Service</td>
<td>
<a href="https://sepolia.etherscan.io/address/0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5">
0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5
</a>
</td>
</tr>
<tr>
<td>L2 Message Service</td>
<td>
<a href="https://sepolia.lineascan.build/address/0x971e727e956690b9957be6d51ec16e73acac83a7">
0x971e727e956690b9957be6d51Ec16E73AcAC83A7

Check failure on line 54 in docs/get-started/build/contracts.mdx

View workflow job for this annotation

GitHub Actions / Spelling

[vale] reported by reviewdog 🐶 [proselint.Typography] Consider using the '×' symbol instead of '0x971'. Raw Output: {"message": "[proselint.Typography] Consider using the '×' symbol instead of '0x971'.", "location": {"path": "docs/get-started/build/contracts.mdx", "range": {"start": {"line": 54, "column": 11}}}, "severity": "ERROR"}
</a>
</td>
</tr>
</table>
</TabItem>
</Tabs>

## Token contract addresses and bridges

<Tabs groupId="Mainnet-Testnet" className="my-tabs">
<TabItem value="Mainnet" label="Mainnet" default>

To see **the most up to date list of tokens on Linea**, see
[the token explorer here](https://consensys.github.io/linea-token-list/), which is derived from the
official lists in [this repo](https://github.com/Consensys/linea-token-list/blob/main/json/linea-mainnet-token-shortlist.json).

:::warning[Note]

We recommend you rely on the shortlist in the above links, rather than the full list. The shortlist is
actively curated by our team, whereas the full list isn't, and automatically populates with all
tokens bridged to Linea.

:::

To **get your own token included**, please follow the instructions on this [repository](https://github.com/Consensys/linea-token-list).

To see **which third-party bridges are available**, consult our [Ecosystem Portal's list](https://linea.build/apps?types=bridge).

If you're **looking to bridge tokens to or from Linea**, head to the [Linea bridge page](https://bridge.linea.build/)
to access the various options.

</TabItem>
<TabItem value="Linea Sepolia" label="Linea Sepolia">
Sepolia token contract addresses will be added to the
[official token lists repository](https://github.com/Consensys/linea-token-list/tree/main/json) as soon as possible.

Check failure on line 89 in docs/get-started/build/contracts.mdx

View workflow job for this annotation

GitHub Actions / Spelling

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'GitHub' instead of 'github'. Raw Output: {"message": "[Vale.Terms] Use 'GitHub' instead of 'github'.", "location": {"path": "docs/get-started/build/contracts.mdx", "range": {"start": {"line": 89, "column": 43}}}, "severity": "ERROR"}
</TabItem>
</Tabs>

## Important contracts

For both mainnet and testnet:

<table>
<tr>
<th>Contracts</th>
</tr>
<tr>
<td>
<a href="/files/testnet/IBridge.sol">IBridge.sol</a>
</td>
</tr>
<tr>
<td>
<a href="/files/testnet/IL1Bridge.sol">IL1Bridge.sol</a>
</td>
</tr>
<tr>
<td>
<a href="/files/testnet/IMessageService.sol">IMessageService.sol</a>
</td>
</tr>
<tr>
<td>
<a href="/files/testnet/MessageServiceBase.sol">MessageServiceBase.sol</a>
</td>
</tr>
<tr>
<td>
<a href="/files/testnet/ITokenBridge.sol">ITokenBridge.sol</a>
</td>
</tr>
</table>
Loading

0 comments on commit ea2178e

Please sign in to comment.