GithubHelp home page GithubHelp logo

johntaiko / zkevm-chain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smtmfft/zkevm-chain

2.0 0.0 0.0 51.45 MB

Shell 2.14% JavaScript 0.86% Rust 73.92% Dockerfile 1.70% Solidity 18.30% Yul 3.09%

zkevm-chain's Introduction

Coverage Status

Structure

Path Description
coordinator/ coordinator daemon
contracts/ l1/l2 bridge contracts
docker/ dockerfiles for various purposes
scripts/ helpful scripts

Setup

cp .env.example .env and edit the values. The account you specify in that file will be the miner of the clique network and will have ETH allocated in the genesis block.

If you make changes to the genesis file, then you have to delete the existing chain via docker compose down --volumes - this will delete any volumes associated with this setup. Use DOCKER_BUILDKIT=1 docker compose up to start the chain.

You can use ./scripts/dev.sh to start a local dev environment without the coordinator-service that drops you into a shell. Useful if you want to work on the coordinator/ daemon.

Developer workflows

Testing the coordinator & prover with cargo test

Enter the developer service via ./scripts/dev.sh. Inside that shell you can use this wrapper script to build & start the prover_rpcd in the background and invoke cargo test -- eth_transfer:

./scripts/test_prover.sh eth_transfer

The output of the prover damon will be piped to PROVER_LOG.txt. If you need fixtures for the L2 block with number 1, then use ./scripts/get_block_fixtures.sh $COORDINATOR_L2_RPC_URL 1 to retrieve it for you.

zkevm-chain's People

Contributors

han0110 avatar kimiwu123 avatar leolara avatar pinkiebell avatar

Stargazers

 avatar  avatar

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.