March 30, 2023

Linea (zkEVM)Testnet Guide — Step by step.

Linea is a type 2 Ethereum zero-knowledge virtual machine (zkEVM). zkEVM replicates the Ethereum environment as a roll and allows developers to build on it like on the Ethereum mainnet. Linea allows you to deploy any smart contract, use any tool, and develop as if you were building on Ethereum. For users, this allows for the experience and security guarantees of Ethereum, but at lower transaction costs.

Starting with the Ethereum genesis block, ConsenSys was formed to be the strongest decentralization force on the planet. The ConsenSys team believes that thanks to networks like Ethereum, humanity can achieve more. Their teams will manage the Linea project in the same way as other public goods, aiming for full decentralization and a commitment to open development.

Investments:

The project has raised $725 million in investments from tier-1 funds and giants such as Microsoft, SoftBank, Temasek and others.

Thoughts:

Our take on the ConsenSys zkEVM / Linea project is that it’s an interesting and innovative layer 2 solution for Ethereum that has received significant funding and has just launched its testnet. We believe that you really don’t want to miss testnets like this, and generous rewards may be given to early participants in this project. Overall, we are confident in the potential of ConsenSys zkEVM / Linea and its future success.

How to participate?

Adding the Linea network

Go to your Metamask wallet, open Settings, then open Networks, click “Add Networks” and enter the testnet data:

  • Click “Save” and you’re done.

Claiming test tokens

  • Visit faucetlink and use any of the available faucets to claim ETH Goerli.

Making transfers with a HOP bridge

  • Enter the amount of ETH, click “Send” and confirm the transaction in your wallet;
  • Done.

Swaps

  • Visit Uniswap and connect your wallet;
  • Specify a slippage limit of 50%;
  • Choose a pair of tokens to swap, enter the amount and click “Swap”;
  • Confirm the action by clicking on “Confirm Swap” and confirm the transaction in your wallet;
  • Done.

Adding liquidity

Converting

  • Switch to the “Convert” tab, then click “Click here to Wrap”, enter the amount and click “Wrap”;
  • Then enter the amount of WETH you want to convert to hETH and click “Approve”;
  • Then click “Approve”;
  • Next, click “Convert”;
  • Done.

Pool

  • Switch to the “Pool” tab, choose a pool and click “Add Liquidity”;
  • Enter the amount and click “Preview”;
  • Next, click “Deposit”;
  • Done.

Making transfers between accounts

  • You can use your MetaMask to transfer assets between different accounts in the Linea network;
  • Make a couple transfers to different addresses.

Deploying a contract

Downloading a file necessary for deploying a contract:

  • Follow this link and download the file
  • Visit Remix;
  • Click on a hamburger menu in the side-panel on the left;
  • This will open a context menu, choose “Restore”.
  • Click “Choose File”;
  • Upload the file you downloaded earlier;
  • Click “Import Memecoin”.

When the file is imported successfully:

  • Find a “Satoshi.sol” file;
  • Click on it.
  • Switch to the “Solidity Compiler” tab;
  • Choose the same Compiler as in the screenshot below;
  • Tick “Auto compile” and “Hide warnings”;
  • Click “Compile satoshi.sol”.
  • Switch to the “DEPLOY & RUN TRANSACTIONS” tab;
  • In “Environment”, choose Metamask, your wallet should be in the Linea network;
  • Click “Deploy”;
  • Confirm the transaction in your wallet.
  • In MetaMask, go to the Activity tab;
  • Click on your transaction;
  • Choose “View on block explorer”.
  • Done.

Leaving feedback

  • You need to fill in this feedback form.

Made in NFD.gg — Discord More info in our Telegram Channel