Giter Site home page Giter Site logo

lido-l2's Introduction

Lido L2

This project contains the implementation of the L2 ERC20 token bridges for Arbitrum and Optimism chains. The current solution allows transferring ERC20 tokens between L1 and L2 chains.

More detailed info about the bridging process might be found in the specifications for certain chains:

Project Setup

  1. Clone the repo:
git clone [email protected]:lidofinance/lido-l2.git
cd ./lido-l2
  1. Install dependencies:
npm install
  1. Compile the contracts:
npm run compile

Create .env File

Create .env file in the project root:

cp .env.example .env

Fill the newly created .env file with required variables

Running Tests

Unit tests:

To run unit tests use:

npm run test:unit

Integration Tests:

Before running integration tests, run the hardhat forked nodes:

npm run fork:ethereum
npm run fork:optimism
npm run fork:arbitrum

Run the integration tests via:

npm run test:integration

Measuring Test Coverage

To run coverage measurement for unit tests:

npm run coverage

Deploying Contracts

Fill the required variables PRIVATE_KEY, L1_NETWORK, and L2_NETWORK in the .env file before the script execution.

Deploying Arbitrum Gateway

Run the deployment of the ERC20 token gateway for Ethereum/Arbitrum chain:

npm run arbitrum:deploy-gateway

Deploying Optimism Bridge

Run the deployment of the ERC20 token bridge for Ethereum/Optimism chain:

npm run optimism:deploy-bridge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.