From 772a8e0632cf4991e472c12728fdaae06d5f9bbb Mon Sep 17 00:00:00 2001 From: Joel Willmore <95916148+jlwllmr@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:59:16 +0100 Subject: [PATCH 1/4] Amend `linea_estimateGas` reference (#734) * Remove warning callout about availability * Mention new node running guides --- .../reference/api/linea-estimategas.mdx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/docs/developers/reference/api/linea-estimategas.mdx b/docs/developers/reference/api/linea-estimategas.mdx index 0887def84..efcc95d62 100644 --- a/docs/developers/reference/api/linea-estimategas.mdx +++ b/docs/developers/reference/api/linea-estimategas.mdx @@ -9,19 +9,13 @@ import TabItem from '@theme/TabItem'; # `linea_estimateGas` -:::warning - -`linea_estimateGas` is currently unavailable, but we will provide activation dates soon. In the -meantime, please get in touch via the [Linea Discord](https://discord.gg/linea) if you intend to -use `linea_estimateGas` once it is available. - -::: - :::info `linea_estimateGas` is only fully compatible with endpoints using the Besu client with the -[`linea-sequencer`](https://github.com/Consensys/linea-sequencer/tree/main) plugin enabled. If it -is unavailable, try updating Besu. If you prefer to use Geth, `linea_estimateGas` is only available +[`linea-sequencer`](https://github.com/Consensys/linea-sequencer/tree/main) plugin enabled. See our +[node running guides](../../guides/run-a-node/index.mdx) to set one up. + +If you prefer to use Geth, `linea_estimateGas` is only available if you redirect your request through an Infura endpoint. We recommend using `linea_estimateGas` rather than alternatives, such as `eth_gasPrice`. @@ -33,8 +27,8 @@ being priced incorrectly and failing as a result. Generates and returns an estimate of how much gas is necessary to allow the transaction to complete and be published on Ethereum. The transaction will not be added to the blockchain. -For more information about estimating gas, and how this API formulates the transaction costs, see -the [Estimate transaction costs](../../guides/gas/gas-fees.mdx) topic. +[See more information](../../guides/gas/gas-fees.mdx) about estimating gas, and how this API +formulates the transaction costs. The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to Ethereum, which can vary based on the size of the calldata. From 8cce6aca6c0b6fc814201a9359349076815fae61 Mon Sep 17 00:00:00 2001 From: Joel Willmore <95916148+jlwllmr@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:01:58 +0100 Subject: [PATCH 2/4] Revert "Amend `linea_estimateGas` reference (#734)" (#735) This reverts commit 772a8e0632cf4991e472c12728fdaae06d5f9bbb. --- .../reference/api/linea-estimategas.mdx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/developers/reference/api/linea-estimategas.mdx b/docs/developers/reference/api/linea-estimategas.mdx index efcc95d62..0887def84 100644 --- a/docs/developers/reference/api/linea-estimategas.mdx +++ b/docs/developers/reference/api/linea-estimategas.mdx @@ -9,13 +9,19 @@ import TabItem from '@theme/TabItem'; # `linea_estimateGas` +:::warning + +`linea_estimateGas` is currently unavailable, but we will provide activation dates soon. In the +meantime, please get in touch via the [Linea Discord](https://discord.gg/linea) if you intend to +use `linea_estimateGas` once it is available. + +::: + :::info `linea_estimateGas` is only fully compatible with endpoints using the Besu client with the -[`linea-sequencer`](https://github.com/Consensys/linea-sequencer/tree/main) plugin enabled. See our -[node running guides](../../guides/run-a-node/index.mdx) to set one up. - -If you prefer to use Geth, `linea_estimateGas` is only available +[`linea-sequencer`](https://github.com/Consensys/linea-sequencer/tree/main) plugin enabled. If it +is unavailable, try updating Besu. If you prefer to use Geth, `linea_estimateGas` is only available if you redirect your request through an Infura endpoint. We recommend using `linea_estimateGas` rather than alternatives, such as `eth_gasPrice`. @@ -27,8 +33,8 @@ being priced incorrectly and failing as a result. Generates and returns an estimate of how much gas is necessary to allow the transaction to complete and be published on Ethereum. The transaction will not be added to the blockchain. -[See more information](../../guides/gas/gas-fees.mdx) about estimating gas, and how this API -formulates the transaction costs. +For more information about estimating gas, and how this API formulates the transaction costs, see +the [Estimate transaction costs](../../guides/gas/gas-fees.mdx) topic. The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to Ethereum, which can vary based on the size of the calldata. From 4b57da683f00d229e7ca874a28214b09021cbff7 Mon Sep 17 00:00:00 2001 From: dfox-consensys <105310911+dfox-consensys@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:17:46 +0100 Subject: [PATCH 3/4] Updates to foundry deploy contract (#724) Co-authored-by: Joel Willmore <95916148+jlwllmr@users.noreply.github.com> --- .../quickstart/deploy-smart-contract/foundry.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/developers/quickstart/deploy-smart-contract/foundry.md b/docs/developers/quickstart/deploy-smart-contract/foundry.md index 9fd7e28ae..76b74d5a4 100644 --- a/docs/developers/quickstart/deploy-smart-contract/foundry.md +++ b/docs/developers/quickstart/deploy-smart-contract/foundry.md @@ -41,21 +41,21 @@ To create a Foundry project, run: forge init linea-tutorial ``` -And change into the directory: +Running `forge init` sets up a sample contract, test, and script for `Counter.sol`. + +Now change into the directory: ```bash cd linea-tutorial ``` -Running `forge init` sets up a sample contract, test, and script for `Counter.sol`. - ## Deploy a smart contract -To deploy a smart contract, we highly recommend using an Infura endpoint, as the public endpoint may experience -rate limiting and not meant for production use. +To deploy a smart contract we highly recommend using an Infura endpoint, as the public endpoint may experience +rate limiting and is not meant for production use. [Sign up for an Infura account](https://docs.infura.io/api/getting-started) to get an API key that -provides access the Linea endpoints. Assign the Linea endpoints you want to access, to your API key. +provides access to the Linea endpoints. Assign the Linea endpoints you want to access to your API key. :::caution From 02644d15a2c17e1caf27ee0c16394e5d129cbb27 Mon Sep 17 00:00:00 2001 From: Joel Willmore <95916148+jlwllmr@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:24:27 +0100 Subject: [PATCH 4/4] Update dates (#737) --- docs/developers/linea-version/index.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/developers/linea-version/index.mdx b/docs/developers/linea-version/index.mdx index a83871d5a..409d8914c 100644 --- a/docs/developers/linea-version/index.mdx +++ b/docs/developers/linea-version/index.mdx @@ -19,7 +19,7 @@ import TabItem from "@theme/TabItem"; **Mainnet: September 23** -**Linea Sepolia: September 16** +**Linea Sepolia: September 17** Introduces an API that can be used to check whether a transaction was rejected because it exceeded the sequencer's trace limits. @@ -30,7 +30,7 @@ the sequencer's trace limits. **Mainnet: September 18** -**Linea Sepolia: September 16** +**Linea Sepolia: September 18** Upgrades the [Linea bridge](https://bridge.linea.build/) UI. @@ -38,7 +38,7 @@ Upgrades the [Linea bridge](https://bridge.linea.build/) UI. ### `finalized` tag -**Mainnet: September 16** +**Mainnet: September 18** **Linea Sepolia: Already available**