Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-nethermind
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac authored Nov 5, 2024
2 parents 1728053 + 84fb0a0 commit 0078e5a
Show file tree
Hide file tree
Showing 231 changed files with 5,556 additions and 1,310 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
164 changes: 0 additions & 164 deletions docs/developers/community/hackathons.mdx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ select it.
When an ERC-20 token is bridged from one chain to the other and the token has not been deployed on
the destination chain, the Token Bridge Smart Contract will attempt to determine the “decimals” of
the ERC-20 token. If the decimals cannot be determined by reading the origin ERC-20 token contract
(e.g. a token contract does not adhere to the [ERC-20 standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/)),
(e.g. a token contract doesn't adhere to the [ERC-20 standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/)),
it will default to 18 decimals.

This can result in the token quantities displaying incorrectly on the destination chain. For example,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ contract SuperMon is ERC721URIStorage {
```

[Deploy the smart contract using Remix](../../../quickstart/deploy-smart-contract/remix.md), or
[Deploy the smart contract using Remix](../../../quickstart/deploy-smart-contract/remix.mdx), or
[any other environment](https://docs.linea.build/developers/quickstart/deploy-smart-contract).

## Upload the images
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/guides/community/irys/irys-nfts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ offchain actions.
If you're new to NFTs and smart contract development, consider deploying
one of [the audited ThirdWeb contracts](../../../../developers/quickstart/deploy-smart-contract/thirdweb.md) to learn more.

You can also [deploy this minimal contract using Remix](../../../../developers/quickstart/deploy-smart-contract/remix.md).
You can also [deploy this minimal contract using Remix](../../../../developers/quickstart/deploy-smart-contract/remix.mdx).

```solidity
// SPDX-License-Identifier: MIT
Expand Down
4 changes: 2 additions & 2 deletions docs/developers/guides/linea-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Use the Linea API
description: How to make calls to the Linea blockchain using the Linea JSON-RPC APIs
sidebar_position: 6
image: /img/socialCards/json-rpc-api.jpg
image: /img/socialCards/use-the-linea-api.jpg
---

import Tabs from '@theme/Tabs';
Expand Down Expand Up @@ -217,4 +217,4 @@ folder, initialise your new project:
```bash
node index.js
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ title: Create an inscription
image: /img/socialCards/create-an-inscription.jpg
---

## What are inscriptions?

Bitcoin inscriptions are a method of adding metadata to the smallest unit of Bitcoin, a satoshi (sat). Various types of data, including images, videos, messages, etc., can be "inscribed" onto the Bitcoin blockchain to create NFTs. This concept has been adapted for the Ethereum blockchain, where it's known as ["Ethscriptions"](https://docs.ethscriptions.com/overview/introducing-ethscriptions).

## Implementation

Traditionally, calldata is the most straightforward method for implementing inscriptions. However, this approach can become quite expensive on L1 during finalization by the sequencer, which in turn can drive up the price on L2 for users to maintain profitability.
Traditionally, calldata is the most straightforward method for implementing inscriptions. However, this approach can become expensive on L1 during finalization by the sequencer, which in turn can drive up the price on L2 for users to maintain profitability.

To avoid this increase in costs, Linea recommends following [ESIP-3](https://docs.ethscriptions.com/esips/accepted-esips/esip-3-smart-contract-ethscription-creations), for creating inscriptions. This is because events and subcalls do not involve any finalization costs on L1, making them a more cost-effective option for users.

:::info[attention]

**We want to emphasize that this is the best and only method for creating inscriptions on Linea that we will support.** Any team that is building tools for inscriptions or issuing inscriptions will receive our support, including marketing support, only if they use this pattern documented in ESIP-3. Special thanks to the Lins20 and Carpenter teams! Their collaboration and support were invaluable in creating this reference implementation.
**We want to emphasize that this is the best and only method for creating inscriptions on Linea that we will support.** Any team building tools for inscriptions or issuing inscriptions will receive our support, including marketing support, only if they use this pattern documented in ESIP-3. Special thanks to the Lins20 and Carpenter teams! Their collaboration and support were invaluable in creating this reference implementation.

:::

Expand All @@ -33,7 +31,7 @@ event ethscriptions_protocol_CreateEthscription(
- `initialOwner`is usually the msg.sender.
- `contentURI` should be crafted by minimizing the amount of calldata.

Linea recommends loading it (at least partially) from the contract code to reduce the amount of calldata that has to be passed to the contract.
We recommend loading it from the contract code to reduce the amount of calldata that has to be passed to the contract.

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/developers/guides/linea-safe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ or all three individuals before a transaction can proceed. This security measure
single person can compromise the funds.

On top of that, Linea Safe gives complete self-custody over funds. In other words, the smart
contract deployed for the wallet has complete control over the wallet's contents, and does not
contract deployed for the wallet has complete control over the wallet's contents, and doesn't
rely on any trusted external party for execution.

To create your Safe wallet click [here](https://app.safe.global/), and select Linea as the network.
Expand Down
5 changes: 3 additions & 2 deletions docs/developers/guides/run-a-node/besu.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Besu
description: Install the Besu client to run a Linea node.
image: /img/socialCards/besu.jpg
---

import Tabs from "@theme/Tabs";
Expand Down Expand Up @@ -104,7 +105,7 @@ The Besu node will attempt to find peers to begin synchronizing and to download

:::warning Important

The Besu Docker image does not run on Windows.
The Besu Docker image doesn't run on Windows.
:::
Expand Down Expand Up @@ -192,4 +193,4 @@ You should get a result similar to:
"highestBlock": "0x3cedec"
}
}
```
```
2 changes: 1 addition & 1 deletion docs/developers/guides/run-a-node/bootnodes.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Bootnodes
description: Bootnodes available for Linea Mainnet
image: /img/socialCards/edge-nodes.jpg
image: /img/socialCards/bootnodes.jpg
---

The following bootnodes enable your node to find a peer node when initializing. To
Expand Down
3 changes: 2 additions & 1 deletion docs/developers/guides/run-a-node/erigon.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Erigon
description: Install the Erigon client to run a Linea node.
image: /img/socialCards/erigon.jpg
---

import Tabs from "@theme/Tabs";
Expand Down Expand Up @@ -211,4 +212,4 @@ You should get a result similar to:
"highestBlock": "0x3cedec"
}
}
```
```
5 changes: 3 additions & 2 deletions docs/developers/guides/run-a-node/geth.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Geth
description: Install the Geth client to run a Linea node.
image: /img/socialCards/geth.jpg
---

import Tabs from "@theme/Tabs";
Expand Down Expand Up @@ -143,7 +144,7 @@ Start the node using the following command:
</Tabs>

The Linea network only produces blocks if there is currently at least 1 pending transaction. If you see no incoming blocks
to your node, **that does not mean that the node is not syncing**.
to your node, **that doesn't mean that the node is not syncing**.
**If you don't see any incoming blocks**, check and make sure that you have **at least one peer from the bootnodes**;
otherwise, you might not be connected to the Linea network.
Expand Down Expand Up @@ -222,4 +223,4 @@ You should get a result similar to:
"highestBlock": "0x3cedec"
}
}
```
```
3 changes: 2 additions & 1 deletion docs/developers/guides/run-a-node/linea-besu.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Linea Besu
description: Install the Besu client to run a Linea node.
image: /img/socialCards/linea-besu.jpg
---

import Tabs from "@theme/Tabs";
Expand All @@ -18,7 +19,7 @@ Plugins are installed with the `advanced` profile during the configuration steps

:::warning

The `advanced` profile option does not currently support macOS/ARM. Please use
The `advanced` profile option doesn't currently support macOS/ARM. Please use
Linux/ARM or Windows/X86_64.

:::
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/linea-version/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ to a push model. It also improves EVM prover coverage, and provides batch confla
:::note
Contracts audit is in progress. This does not reflect final versions.
Contracts audit is in progress. This doesn't reflect final versions.

:::

Expand Down
7 changes: 0 additions & 7 deletions docs/developers/quickstart/deploy-smart-contract/atlas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ image: /img/socialCards/atlas.jpg

Atlas is a browser-based IDE with an integrated AI assistant that allows you to write, test and deploy smart contracts directly from your browser.

## Prerequisites

Before you begin, ensure you:

1. [Set up your wallet](../../../users/move-funds/set-up-your-wallet.mdx).
1. [Fund your wallet with Linea ETH](../../../users/move-funds/fund.mdx) on either the testnet or mainnet.

## Deploy a contract

1. Go to `https://app.atlaszk.com`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ fast way to develop smart contracts by integrating with a variety of blockchain-
Here, we'll walk through searching for a protocol on Cookbook and deploying it to Linea using
Cookbook's no-code deploy and using Cookbook with Remix, Hardhat and Foundry.

## Prerequisites

Before you begin, ensure you:

1. [Set up your wallet](../../../users/move-funds/set-up-your-wallet.mdx)
2. [Fund your wallet with Linea ETH](../../../users/move-funds/fund.mdx) on either the testnet or mainnet

## Search Cookbook's smart contract registry

Navigate to [cookbook.dev/chains/Linea](https://www.cookbook.dev/chains/Linea?utm=lineadocs) and explore **Protocols** on Linea, or search for specific smart contracts in the search bar.
Expand Down Expand Up @@ -94,7 +87,7 @@ automatically be opened in a new Remix workspace.
Select **Compile** to compile your smart contract in Remix. Most contracts opened with Cookbook will automatically
compile within Remix.

Refer to the [Remix instructions](./remix.md) for more information on how to compile and deploy smart
Refer to the [Remix instructions](./remix.mdx) for more information on how to compile and deploy smart
contracts in the Remix IDE.

### Method 2 - Use the Cookbook Remix plug-in within the Remix IDE
Expand Down Expand Up @@ -137,7 +130,7 @@ contracts in the Remix IDE.
</div>
</div>

1. Compile and deploy the smart contract as described in [the Remix instructions](./remix.md).
1. Compile and deploy the smart contract as described in [the Remix instructions](./remix.mdx).

## Deploy your smart contract with Hardhat

Expand Down
Loading

0 comments on commit 0078e5a

Please sign in to comment.