Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 2.44 KB

File metadata and controls

91 lines (66 loc) · 2.44 KB

WARNING: This documentation is outdated, it will be updated soon

Steps to run environment locally

Overview

This documentation will help you running the following components:

  • zkEVM Node Databases
  • zkEVM Bridge Database
  • L1 Network
  • Prover
  • zkEVM Node
  • zkEVM Bridge Service

Requirements

The current version of the environment requires go, docker and docker-compose to be previously installed, check the links below to understand how to install them:

The zkevm-bridge-service docker image must be built at least once and every time a change is made to the code. If you haven't build the zkevm-bridge-service image yet, you must run:

make build-docker

Controlling the environment

All the data is stored inside of each docker container, this means once you remove the container, the data will be lost.

To run the environment:

make run

To stop the environment:

make stop

To run e2e and edge tests:

make test-full
make test-edge

Accessing the environment

  • zkEVM Bridge Database
    • Type: Postgres DB
    • User: test_user
    • Password: test_password
    • Database: test_db
    • Host: localhost
    • Port: 5435
    • Url: postgres://test_user:test_password@localhost:5435/test_db
  • zkEVM Bridge Service

SC Addresses

Address Description
0x610178dA211FEF7D417bC0e6FeD39F05609AD788 Proof of Efficiency
0xff0EE8ea08cEf5cb4322777F5CC3E8A584B8A4A0 L1 Bridge
0xff0EE8ea08cEf5cb4322777F5CC3E8A584B8A4A0 L2 Bridge
0x5FbDB2315678afecb367f032d93F642f64180aa3 Matic token
0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6 GlobalExitRootManager

Fund account on L2 with ETH

If you need account with funds you can use the deposit script to fund an account. For a list with accounts that already have ETH check out node's docs.

You can exchange the l1AccHexAddress and l1AccHexPrivateKey and once executing the script with

go run test/scripts/deposit/main.go

the account that you've specified under l1AccHexAddress would have been funded on L2.