From ea2178e40776ef58b4235a345c13af6725982c52 Mon Sep 17 00:00:00 2001
From: jlwllmr <95916148+jlwllmr@users.noreply.github.com>
Date: Tue, 26 Nov 2024 12:21:58 +0000
Subject: [PATCH] Break up info-contracts into separate files
---
docs/get-started/build/block-explorers.mdx | 107 ++++++
docs/get-started/build/contracts.mdx | 126 ++++++++
docs/get-started/build/info-contracts.mdx | 304 ------------------
docs/get-started/build/network-info.mdx | 80 +++++
.../how-to/deploy-smart-contract/foundry.mdx | 2 +-
.../how-to/deploy-smart-contract/remix.mdx | 2 +-
.../how-to/verify-smart-contract/foundry.mdx | 2 +-
.../how-to/verify-smart-contract/hardhat.mdx | 2 +-
redirects.json | 2 +-
sidebars.js | 4 +-
10 files changed, 321 insertions(+), 310 deletions(-)
create mode 100644 docs/get-started/build/block-explorers.mdx
create mode 100644 docs/get-started/build/contracts.mdx
delete mode 100644 docs/get-started/build/info-contracts.mdx
create mode 100644 docs/get-started/build/network-info.mdx
diff --git a/docs/get-started/build/block-explorers.mdx b/docs/get-started/build/block-explorers.mdx
new file mode 100644
index 000000000..9d44af317
--- /dev/null
+++ b/docs/get-started/build/block-explorers.mdx
@@ -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/)
+
+
+
+
+
+
+ Explorer name |
+ URL |
+ API URL |
+
+
+
+
+ Lineascan |
+ https://lineascan.build |
+ `https://api.lineascan.build/api` |
+
+
+ Lineaplorer |
+ https://lineaplorer.build/ |
+ `https://lineaplorer.build/api` |
+
+
+ L2Scan |
+ https://linea.l2scan.co |
+ `https://linea.l2scan.co/api/contract` |
+
+
+ Blockscout |
+ https://explorer.linea.build |
+ `https://explorer.linea.build/api` |
+
+
+ OKLink |
+ https://www.oklink.com/linea |
+ `https://www.oklink.com/docs/en/#welcome-to-oklink-api` |
+
+
+ Chainlens |
+ https://linea.chainlens.com/ |
+ `https://linea.chainlens.com/api` |
+
+
+ Socialscan |
+ https://linea.socialscan.io/ |
+ `https://api.socialscan.io/linea` |
+
+
+ Linea for Humans |
+ https://linea.forhumans.app/ |
+ n/a |
+
+
+ 0xPPL |
+ https://0xppl.com/Linea/overview |
+ n/a |
+
+
+ Arkham |
+ https://platform.arkhamintelligence.com/ |
+ n/a |
+
+
+ NFTScan |
+ https://linea.nftscan.com/ |
+ n/a |
+
+
+
+
+
+
+
+
+ Explorer name |
+ URL |
+ API URL |
+
+
+
+
+ Lineascan |
+ https://sepolia.lineascan.build |
+ `https://api-sepolia.lineascan.build/api` |
+
+
+ Blockscout |
+ https://explorer.sepolia.linea.build/ |
+ `https://explorer.sepolia.linea.build/api` |
+
+
+
+
+
diff --git a/docs/get-started/build/contracts.mdx b/docs/get-started/build/contracts.mdx
new file mode 100644
index 000000000..29b6e5428
--- /dev/null
+++ b/docs/get-started/build/contracts.mdx
@@ -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
+
+
+
+
+
+
+
+
+
+
+## Token contract addresses and bridges
+
+
+
+
+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.
+
+
+
+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.
+
+
+
+## Important contracts
+
+For both mainnet and testnet:
+
+
diff --git a/docs/get-started/build/info-contracts.mdx b/docs/get-started/build/info-contracts.mdx
deleted file mode 100644
index 9801a1f60..000000000
--- a/docs/get-started/build/info-contracts.mdx
+++ /dev/null
@@ -1,304 +0,0 @@
----
-title: 'Network info, deployed contracts, and block explorers'
-sidebar_position: 5
-image: /img/socialCards/network-info-deployed-contracts-and-block-explorers.jpg
----
-
-import Tabs from "@theme/Tabs";
-import TabItem from "@theme/TabItem";
-
-## Network information
-
-**Status**: [https://linea.statuspage.io/](https://linea.statuspage.io/)
-
-
-
-
-
- Network Name |
- Linea |
-
-
- RPC URL |
- https://rpc.linea.build or via Infura (recommended) |
-
-
- Chain ID |
- 59144 |
-
-
- Currency Symbol |
- ETH |
-
-
- Block Explorer URL |
- Lineascan |
-
-
-
-
-
-
- Network Name |
- Linea |
-
-
- RPC URL |
- https://rpc.sepolia.linea.build or via Infura (recommended) |
-
-
- Chain ID |
- 59141 |
-
-
- Currency Symbol |
- ETH |
-
-
- Block Explorer URL |
- Lineascan |
-
-
-
-
-
-## Connect with node providers
-
-If your dapp is using public endpoints, it may encounter rate limiting. You can find Linea node providers
-[here](../tooling/node-providers/index.mdx).
-
-We recommend connecting to Linea via [private RPCs](../tooling/node-providers/index.mdx#private-rpc-endpoints).
-
-## Deployed contracts
-
-
-
-
-
-
-
-
-
-
-## Token contract addresses and bridges
-
-
-
-
-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.
-
-
-
-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.
-
-
-
-## Important contracts
-
-For both mainnet and testnet:
-
-
-
-## Block explorers
-
-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/)
-
-
-
-
-
-
- Explorer name |
- URL |
- API URL |
-
-
-
-
- Lineascan |
- https://lineascan.build |
- `https://api.lineascan.build/api` |
-
-
- Lineaplorer |
- https://lineaplorer.build/ |
- `https://lineaplorer.build/api` |
-
-
- L2Scan |
- https://linea.l2scan.co |
- `https://linea.l2scan.co/api/contract` |
-
-
- Blockscout |
- https://explorer.linea.build |
- `https://explorer.linea.build/api` |
-
-
- OKLink |
- https://www.oklink.com/linea |
- `https://www.oklink.com/docs/en/#welcome-to-oklink-api` |
-
-
- Chainlens |
- https://linea.chainlens.com/ |
- `https://linea.chainlens.com/api` |
-
-
- Socialscan |
- https://linea.socialscan.io/ |
- `https://api.socialscan.io/linea` |
-
-
- Linea for Humans |
- https://linea.forhumans.app/ |
- n/a |
-
-
- 0xPPL |
- https://0xppl.com/Linea/overview |
- n/a |
-
-
- Arkham |
- https://platform.arkhamintelligence.com/ |
- n/a |
-
-
- NFTScan |
- https://linea.nftscan.com/ |
- n/a |
-
-
-
-
-
-
-
-
- Explorer name |
- URL |
- API URL |
-
-
-
-
- Lineascan |
- https://sepolia.lineascan.build |
- `https://api-sepolia.lineascan.build/api` |
-
-
- Blockscout |
- https://explorer.sepolia.linea.build/ |
- `https://explorer.sepolia.linea.build/api` |
-
-
-
-
-
-
-## Faucets
-
-You can use one of the following Linea Sepolia faucets to drip testnet ETH directly to your
-Linea Sepolia address:
-
-- [Covalent](https://www.covalenthq.com/faucet/)
-- [Infura](https://www.infura.io/faucet/linea)
-- [GetBlock](https://getblock.io/faucet/linea-sepolia/)
-- [HackQuest](https://www.hackquest.io/en/faucets/59141) (and check out their [Linea Learning Track](https://www.hackquest.io/en/learning-track/9be129e7-575b-49bd-a64e-1bbe32427ace))
-
-Alternatively, [use the Linea native bridge to bridge tokens between Sepolia and Linea Sepolia](../how-to/bridge/how-to-bridge-eth.mdx).
diff --git a/docs/get-started/build/network-info.mdx b/docs/get-started/build/network-info.mdx
new file mode 100644
index 000000000..149b65491
--- /dev/null
+++ b/docs/get-started/build/network-info.mdx
@@ -0,0 +1,80 @@
+---
+title: Network information
+description: Key network details for Linea Mainnet and Linea Sepolia.
+---
+
+import Tabs from "@theme/Tabs";
+import TabItem from "@theme/TabItem";
+
+**Status**: [https://linea.statuspage.io/](https://linea.statuspage.io/)
+
+
+
+
+
+ Network Name |
+ Linea |
+
+
+ RPC URL |
+ https://rpc.linea.build or via Infura (recommended) |
+
+
+ Chain ID |
+ 59144 |
+
+
+ Currency Symbol |
+ ETH |
+
+
+ Block Explorer URL |
+ Lineascan |
+
+
+
+
+
+
+ Network Name |
+ Linea |
+
+
+ RPC URL |
+ https://rpc.sepolia.linea.build or via Infura (recommended) |
+
+
+ Chain ID |
+ 59141 |
+
+
+ Currency Symbol |
+ ETH |
+
+
+ Block Explorer URL |
+ Lineascan |
+
+
+
+
+
+## Connect with node providers
+
+If your dapp is using public endpoints, it may encounter rate limiting. You can find Linea node providers
+[here](../tooling/node-providers/index.mdx).
+
+We recommend connecting to Linea via [private RPCs](../tooling/node-providers/index.mdx#private-rpc-endpoints).
+
+## Faucets
+
+You can use one of the following Linea Sepolia faucets to drip testnet ETH directly to your
+Linea Sepolia address:
+
+- [Covalent](https://www.covalenthq.com/faucet/)
+- [Infura](https://www.infura.io/faucet/linea)
+- [GetBlock](https://getblock.io/faucet/linea-sepolia/)
+- [HackQuest](https://www.hackquest.io/en/faucets/59141) (and check out their [Linea Learning Track](https://www.hackquest.io/en/learning-track/9be129e7-575b-49bd-a64e-1bbe32427ace))
+
+Alternatively, [use the Linea native bridge to bridge tokens between Sepolia and Linea Sepolia](../how-to/bridge/how-to-bridge-eth.mdx).
diff --git a/docs/get-started/how-to/deploy-smart-contract/foundry.mdx b/docs/get-started/how-to/deploy-smart-contract/foundry.mdx
index 3502e9279..ae8adbf7c 100644
--- a/docs/get-started/how-to/deploy-smart-contract/foundry.mdx
+++ b/docs/get-started/how-to/deploy-smart-contract/foundry.mdx
@@ -70,7 +70,7 @@ In the command:
- Replace `YOUR_LINEA_ENDPOINT` with the URL of a
[supported Infura Linea network](https://docs.infura.io/api/networks/linea/choose-a-network)
- or [public endpoint URL](../../build/info-contracts.mdx#network-information).
+ or [public endpoint URL](../../build/network-info.mdx).
- Replace `YOUR_PRIVATE_KEY` with your wallet's private key.
Your output should look similar to:
diff --git a/docs/get-started/how-to/deploy-smart-contract/remix.mdx b/docs/get-started/how-to/deploy-smart-contract/remix.mdx
index e9aa52f42..ad2af6dc0 100644
--- a/docs/get-started/how-to/deploy-smart-contract/remix.mdx
+++ b/docs/get-started/how-to/deploy-smart-contract/remix.mdx
@@ -45,7 +45,7 @@ on and your account information. To do this, navigate to the **Deploy & run tran
The public endpoints are rate limited and not meant for production systems. To use Infura, you'll need to
[get an API key](https://docs.infura.io/api/getting-started).
Then, [manually add a network to your MetaMask wallet](https://support.metamask.io/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC#h_01G63GGJ83DGDRCS2ZWXM37CV5) using the
-[network information](../../build/info-contracts.mdx#network-information).
+[network information](../../build/network-info.mdx).
:::
diff --git a/docs/get-started/how-to/verify-smart-contract/foundry.mdx b/docs/get-started/how-to/verify-smart-contract/foundry.mdx
index a14eeb83a..b2fe0c7c7 100644
--- a/docs/get-started/how-to/verify-smart-contract/foundry.mdx
+++ b/docs/get-started/how-to/verify-smart-contract/foundry.mdx
@@ -17,7 +17,7 @@ You'll need to get a Lineascan (Linea instance of Etherscan) API key by creating
:::note
These instructions verify using the Linea instance of Etherscan, which currently doesn't support
-Yul. If you would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/info-contracts.mdx#block-explorers).
+Yul. If you would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/block-explorers.mdx).
:::
diff --git a/docs/get-started/how-to/verify-smart-contract/hardhat.mdx b/docs/get-started/how-to/verify-smart-contract/hardhat.mdx
index 55f3d8684..324432844 100644
--- a/docs/get-started/how-to/verify-smart-contract/hardhat.mdx
+++ b/docs/get-started/how-to/verify-smart-contract/hardhat.mdx
@@ -39,7 +39,7 @@ const { PRIVATE_KEY, LINEASCAN_API_KEY } = process.env;
These instructions verify using the Linea instance of Etherscan, which currently doesn't support Yul. If you
-would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/info-contracts.mdx#block-explorers).
+would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/block-explorers.mdx).
:::
diff --git a/redirects.json b/redirects.json
index 74aba4052..942bef194 100644
--- a/redirects.json
+++ b/redirects.json
@@ -41,7 +41,7 @@
]
},
{
- "to": "/get-started/build/info-contracts",
+ "to": "/get-started/build/network-info",
"from": [
"/build-on-linea/use-linea-testnet/info-contracts",
"/developers/quickstart/info-contracts",
diff --git a/sidebars.js b/sidebars.js
index 4407fa99c..964dd6e18 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -13,7 +13,9 @@ const sidebars = {
collapsible: false,
items: [
"get-started/build/ethereum-differences",
- "get-started/build/info-contracts",
+ "get-started/build/network-info",
+ "get-started/build/contracts",
+ "get-started/build/block-explorers",
"get-started/build/repos"
],
},