Skip to content

Commit

Permalink
Merge branch 'Consensys:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
qvkare authored Dec 16, 2024
2 parents 83cc1a4 + bc80a68 commit 6561e6a
Show file tree
Hide file tree
Showing 16 changed files with 1,389 additions and 28 deletions.
471 changes: 468 additions & 3 deletions docs/get-started/build/quickstart/app.mdx

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions docs/get-started/build/quickstart/deploy.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Contract deployment
title: Deploy your contract
description: Create a new project and deploy and verify your contracts using Foundry
sidebar_position: 1
pagination_next: get-started/build/quickstart/app
Expand All @@ -11,8 +11,8 @@ Building apps on Linea needn't be complicated. In this guide, we'll walk you thr
[Foundry](https://book.getfoundry.sh/) to create a new project from scratch.

This involves:
1. [Creating a project](#create-a-project)
2. [Deploying](#deploy-a-contract) and then [verifying](#verify-a-contract) your contract.
1. [Creating a project](#create-your-project)
2. [Deploying](#deploy-your-contract) and then [verifying](#verify-your-contract) your contract.

> _Estimated time to complete: ~20 minutes._
Expand Down Expand Up @@ -197,7 +197,9 @@ Transaction hash: 0x ... // The deployment transaction itself
You can copy each of these addresses and head to the [block explorer](https://sepolia.lineascan.build/)
to see the deployed contract.

Make sure to copy the `Deployed to` address, as you'll need it to verify the contract.
Make sure to copy the `Deployed to` address, as you'll need it to verify the contract. It'll also
be useful in part two of this quickstart, where we'll need it to interact with the contract in our
app.

## Verify your contract

Expand Down Expand Up @@ -251,3 +253,19 @@ forge create --rpc-url https://rpc.sepolia.linea.build --account test-account --

Now you've successfully deployed and verified your contract! It's recorded on the blockchain and
ready to receive calls from your app.

## Next steps

Proceed to [part two](./app.mdx) of this quickstart, where we'll build a simple web app for
interacting with the counter contract.

## Help and resources

If you get stuck at any point in this guide, head to our [Discord](https://discord.gg/linea) and
visit the `#developer-chat` channel.

- [Foundry documentation](https://book.getfoundry.sh/)
- [Foundry CLI](https://book.getfoundry.sh/forge/)
- [Foundry Cast](https://book.getfoundry.sh/cast/)
- [Linea Sepolia block explorer](https://sepolia.lineascan.build/)
- [Node providers](../../tooling/node-providers/index.mdx)
18 changes: 13 additions & 5 deletions docs/get-started/concepts/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ Linea aims to be a fully decentralized, permissionless network. To support this
Linea is in mainnet status, and the team is fervently working towards full decentralization.
The following is a good representation of the main components of Linea, and how they interact:

<div class="center-container">
<div class="img-large">
<div className="responsive-graphic">
<picture>
<source
srcSet="/img/get_started/concepts/architecture/Linea_architecture_mobile.svg"
media="(max-width: 1499px)"
/>
<source
srcSet="/img/get_started/concepts/architecture/Linea_architecture_desktop.svg"
media="(min-width: 1500px)"
/>
<img
src="/img/get_started/concepts/architecture/Linea_architecture_map.png"
alt="Linea architecture"
src="/img/get_started/concepts/architecture/Linea_architecture_desktop.svg"
alt="Linea architecture diagram"
/>
</div>
</picture>
</div>

## First of all: what _is_ Linea, anyway? What's a zkEVM L2?
Expand Down
11 changes: 8 additions & 3 deletions docs/get-started/how-to/get-testnet-eth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ image: /img/socialCards/get-linea-testnet-eth.jpg
To get started with building on Linea you'll need some Linea Sepolia ETH. The most efficient method
is to use one the many available faucets to drip testnet ETH directly to your chosen account.

## Linea Discord

Head to the [Linea Discord](https://discord.gg/linea) and request some Linea Sepolia ETH in the
`#developer-chat` channel.

## MetaMask faucet

We recommend you use the [MetaMask faucet](https://docs.metamask.io/developer-tools/faucet/). It
supports using Linea ENS names, and using one guarantees you'll receive the full 0.5 ETH daily
maximum.
The [MetaMask faucet](https://docs.metamask.io/developer-tools/faucet/) supports using Linea ENS
names, and using one guarantees you'll receive the full 0.5 ETH daily maximum.

:::tip

Expand All @@ -24,6 +28,7 @@ See our [support guide to getting a Linea ENS name](https://support.linea.build/
- [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))
- [ETHGlobal](https://ethglobal.com/packs) (Requires minting one of the available packs for free)

Alternatively, [use the Linea native bridge to bridge testnet ETH between Sepolia and Linea Sepolia](../how-to/bridge/how-to-bridge-eth.mdx).

Expand Down
8 changes: 5 additions & 3 deletions docs/get-started/how-to/run-a-node/nethermind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ maintaining a local copy of the blockchain. However, if you want to interact wit
Linea-specific methods and features, you should [install Linea Besu](./linea-besu.mdx) instead.
:::

{/* Run using the binary distribution
## Run using the binary distribution

:::info
Ensure you review [Nethermind's installation Guidelines](https://docs.nethermind.io/get-started/installing-nethermind)
before installing the Nethermind client.

If you're not comfortable with installing the binary distribution, consider using [Docker](#run-using-docker) instead.
If you're not comfortable with installing the binary distribution, consider using [Docker](#run-using-docker)
instead.
:::

### Step 1. Install Nethermind
Expand Down Expand Up @@ -62,7 +63,8 @@ Start the node using the following command:
</TabItem>
</Tabs>

The Nethermind node will attempt to find peers to begin synchronizing and to download the world state. */}
The Nethermind node will attempt to find peers to begin synchronizing and to download the world
state.

## Run using Docker

Expand Down
14 changes: 7 additions & 7 deletions docs/get-started/tooling/contracts-templates/cookbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ explore protocols on Linea, or search for specific smart contracts in the search
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_1.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_1.png"
alt="Cookbook Search"
/>
</div>
Expand All @@ -29,7 +29,7 @@ questions about Linea, Solidity, or your smart contract.
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_2.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_2.png"
alt="Cookbook Analyze Code Snippet"
/>
</div>
Expand All @@ -43,7 +43,7 @@ any smart contract address into the Cookbook search bar.
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_3.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_3.png"
alt="Cookbook Import Contract"
/>
</div>
Expand All @@ -59,7 +59,7 @@ Remix Homepage.
<div class="center-container">
<div class="img-medium">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_8.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_8.png"
alt="Cookbook Remix Featured Plugin"
/>
</div>
Expand All @@ -70,7 +70,7 @@ Alternatively, search Cookbook and select "Activate" in the Remix Plugin Manager
<div class="center-container">
<div class="img-small">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_9.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_9.png"
alt="Cookbook Remix Add Plugin"
/>
</div>
Expand All @@ -79,13 +79,13 @@ Alternatively, search Cookbook and select "Activate" in the Remix Plugin Manager
Search for any protocol or smart contract and click the search result to import the smart contract
code into Remix.

Cookbook's AI solidity co-pilot, ChefGPT, is available within the Remix plugin to answer questions
Cookbook's AI Solidity co-pilot, ChefGPT, is available within the Remix plugin to answer questions
about Linea, Solidity, or the smart contract you're working with.

<div class="center-container">
<div class="img-small">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_10.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_10.png"
alt="Cookbook Remix Search"
/>
</div>
Expand Down
34 changes: 34 additions & 0 deletions linea-node-size/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,40 @@
"dailyIncrease": 3135741952,
"timestamp": "2024-12-09T00:04:34.112Z"
}
],
"51": [
{
"network": "mainnet",
"cluster": "linea-prod-eks",
"pvc": "data-linea-besu-full-0",
"totalSize": 239139946496,
"dailyIncrease": 1582866432,
"timestamp": "2024-12-16T00:04:38.899Z"
},
{
"network": "mainnet",
"cluster": "linea-prod-eks",
"pvc": "data-linea-besu-archive-v2-0",
"totalSize": 3026294046720,
"dailyIncrease": 3870892032,
"timestamp": "2024-12-16T00:04:39.192Z"
},
{
"network": "mainnet",
"cluster": "linea-prod-eks",
"pvc": "data-linea-geth-full-snapshot-0",
"totalSize": 668186484736,
"dailyIncrease": 950140928,
"timestamp": "2024-12-16T00:04:39.313Z"
},
{
"network": "mainnet",
"cluster": "linea-prod-eks",
"pvc": "data-linea-geth-archive-0",
"totalSize": 3093442351104,
"dailyIncrease": 3169955840,
"timestamp": "2024-12-16T00:04:39.454Z"
}
]
}
}
4 changes: 1 addition & 3 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const sidebars = {
{
type: "category",
label: "Quickstart",
collapsible: false,
link: {
type: "doc",
id: "get-started/build/quickstart/deploy",
Expand Down Expand Up @@ -45,7 +46,6 @@ const sidebars = {
type: "doc",
id: "get-started/how-to/deploy-smart-contract/index",
},
collapsible: false,
items: [
"get-started/how-to/deploy-smart-contract/atlas",
"get-started/how-to/deploy-smart-contract/foundry",
Expand All @@ -62,7 +62,6 @@ const sidebars = {
type: "doc",
id: "get-started/how-to/verify-smart-contract/index",
},
collapsible: false,
items: [
"get-started/how-to/verify-smart-contract/atlas",
"get-started/how-to/verify-smart-contract/foundry",
Expand Down Expand Up @@ -93,7 +92,6 @@ const sidebars = {
type: "doc",
id: "get-started/how-to/run-a-node/index",
},
collapsible: false,
items: [
"get-started/how-to/run-a-node/besu",
"get-started/how-to/run-a-node/erigon",
Expand Down
27 changes: 27 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1452,3 +1452,30 @@ div[aria-label="Expand sidebar"] {
.theme-doc-markdown .markdown {
margin-right: 10px !important;
}

/* responsive classes for architecture diagram */
.responsive-graphic {
text-align: center;
}

@media (width <= 1499px) {
.responsive-graphic picture {
display: block;
padding-left: 5vw;
padding-right: 5vw;
}
}

@media (width <= 996px) {
.responsive-graphic picture {
padding-left: 15vw;
padding-right: 15vw;
}
}

@media (width <= 700px) {
.responsive-graphic picture {
padding-left: 6vw;
padding-right: 6vw;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6561e6a

Please sign in to comment.