Hello everyone, I am a Web3 masturbator.

The following is an interactive tutorial on Linea, a project of Little Fox’s parent company that has raised US$720 million.

Project Introduction:

Linea is a zkEVM powered by ConsenSys and accessible within MetaMask, providing an industry-leading EVM equivalence proof application. ConsenSys zkEVM opened the door to the testnet to all developers, users or protocols on March 28, 2023. To commemorate the launch of the public testnet, it was officially renamed Linea.

Linea is an innovative layer 2 (L2) on which developers will build new decentralized applications (dapps), and is easily accessible within MetaMask. Linea will power a new generation of Ethereum builders who will be able to innovate without being constrained by cost or scalability limitations. Among the range of scaling solutions working to deliver on the promise of Ethereum 2.0, Linea is a throughline that connects Ethereum’s past and present to its potential and future.

Does the EVM equivalent sacrifice performance? Won't. ConsenSys' zkEVM lattice-based prover uses recursion to deliver unparalleled proof performance. It's been benchmarked before, doing 30M gas in 4.5 minutes, and there's a clear path to 5-10x growth this year.

Linea will be the gateway into web3 for developers and users. Listing the Linea testnet as the default network in the MetaMask extension allowed millions of users to unknowingly connect to L2 and Ethereum.

Financing status:

There are investments from Microsoft and SoftBank behind it, with 4 rounds of financing of US$725 million.

Tutorial starts:

1. Add network:

Open the Xiaofox wallet settings, select Add network, and enter:

Network name: Linea Goerli test network

RPC URL:https://rpc.goerli.linea.build

Chain ID: 59140

Currency symbol: LineaETH

Block explorer URL: https://explorer.goerli.linea.build

2. Receive test ETH

https://goerlifaucet.com/

Enter your wallet address and you can receive 0.02 test ETH every day

There is also a URL:

https://faucet.quicknode.com/ethereum/goerli

After posting a tweet, you can receive 0.1 test ETH

3. Cross-chain

After receiving the test water, start cross-chain operations

Open linea official website

https://goerli.linea.build/

Click on Bridge

Click on the wallet link in the upper right corner and select Goerli on the network

Cross-chain Goerli-Linea

Wait patiently

Reverse and cross again

4. Interactive uniswap

Select swap

First link the wallet, select the Linea test network and then swap to exchange tokens.

Interaction is a bit slow, requires patience

Wallet signature confirmation

5.LP

Click Pool in the upper left corner

6. Interactive FWDX

Open

https://testnet.fwdx.xyz/

Link wallet in the upper right corner and click CREATE

Convert ETH to BTC

It's quite slow, so you have to be patient.

7.Interactive mesprotocol

Open

https://app.mesprotocol.com/spot/ETH-USDC

Click on the wallet link in the upper right corner

Click Deposit, then click Deposit eth

Wait patiently

Open a position buy (long) sell (short)

8. Interact ghostNFT

https://app.nft.ghostchain.io/#/linea

Mortgage eth

9. Fill in the feedback form

https://docs.google.com/forms/d/e/1FAIpQLSen0KN2uqKMJuUxBH8yTfwrb-xdN48kA-NmO-DSCJMYRdQyMA/viewform

Deep interaction and deployment of smart contracts

1. Open Remix

https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null

2. Create new files

Click the create new file button (such as the red icon) and enter the file name, such as linea

We now need a contract file, but we don’t want to create it ourselves, so we can copy it from the contract below. Open the link below

https://bscscan.com/token/0xe9e7cea3dedca5984780bafc599bd69add087d56#Binance

Then scroll down on the newly opened page, find the copy the source code button, and click (to copy the source code).

Paste source code

Go back to Remix, right-click and paste, then a window will pop up for confirmation, click OK

compile

As shown in the figure, click the compile button

deploy

As shown in the figure, first select the Injected Provider for the deployment environment, and make sure that the little fox has switched to the Linea network.

Next, click the deploy button and confirm after the little fox pops up.

Waiting for processing, after the deployment is successful, there will be an additional record under the deployed contract, as shown in the figure.

The overall interaction of linea is very slow. It fails many times before succeeding once. Everyone must have enough patience and maintain interaction 2-3 times a week.