Skip to content

Latest commit

 

History

History
90 lines (66 loc) · 2.43 KB

running_local.md

File metadata and controls

90 lines (66 loc) · 2.43 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
0xFe12ABaa190Ef0c8638Ee0ba9F828BF41368Ca0E L1 Bridge
0xFe12ABaa190Ef0c8638Ee0ba9F828BF41368Ca0E L2 Bridge
0x5FbDB2315678afecb367f032d93F642f64180aa3 Pol token
0x8A791620dd6260079BF849Dc5567aDC3F2FdC318 GlobalExitRootManager
0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e RollupManager

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.