Skip to content

Latest commit

 

History

History
 
 

README.md

l1-contracts


The =nil; L1 contract to be deployed on Ethereum.

Table of contents

Overview

This project contains the =nil; L1 Solidity smart contract as well as the Hardhat tasks and Ignition modules for their deployment.

The NilChain.sol contract fulfils the following functions:

Installation

Clone the repository:

git clone https://github.com/NilFoundation/nil.git
cd ./nil/l1-contracts

Install dependencies:

npm install

Then, create an .env file and set the following variables:

WALLET_ADDRESS:
PRIVATE_KEY:

Note that WALLET_ADDRESS will act as the owner of NilChain and it will also be used to run the sync committee.

NilChain can then be deployed using either Nil.js, the =nil; CLI or Hardhat.

Usage

To compile the contract:

npx hardhat compile

To deploy the contract using Hardhat:

npx hardhat deploy --network local