Files
linea-monorepo/contracts
Victorien Gauch 7005fcd94b feat/3823 Remove finalizeBlocksWithoutProof (#66)
Co-authored-by: count-sum <andrei.alexandru@consensys.net>
Co-authored-by: thedarkjester <grant.southey@consensys.net>
2024-09-24 16:25:20 +02:00
..
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00
2024-07-31 18:17:20 +02:00

Readme.md

Smart Contract

Contains Ethereum smart contract code for ConsenSys Rollups.

Development & Testing

This project uses following libraries

To run the tests:

make test

Useful scripts

Most of the scripts need to know address of Ethereum RPC. This is controlled via BLOCKCHAIN_NODE environment variable,

for example run this before all the scripts in the same terminal:

export BLOCKCHAIN_NODE=http://localhost:5000

Balance of ERC 20 token

export BLOCKCHAIN_NODE="http://localhost:8545"
ts-node scripts/balanceOf.ts \
data/rollup.json \
../node-data/test/keys/eth_account_3.acc \
1 \
../node-data/test/keys/eth_account_3.acc \
../node-data/test/keys/eth_account_4.acc \
../node-data/test/keys/eth_account_5.acc

To deploy ZkEvm to local docker compose

Run in ./contracts with running docker-compose stack.

sed "s/BLOCKCHAIN_NODE=.*/BLOCKCHAIN_NODE=http:\/\/localhost:8445/" .env.template > .env
npx hardhat run ./scripts/deployment/deployZkEVM.ts --network zkevm_dev

To deploy ZkEvm to local docker compose

Run in ./contracts with running docker-compose stack.

sed "s/BLOCKCHAIN_NODE=.*/BLOCKCHAIN_NODE=http:\/\/localhost:8445/" .env.template > .env
npx hardhat run ./scripts/deployment/deployZkEVM.ts --network zkevm_dev

Linea Token Bridge

Token Bridge is a canonical brige between Ethereum and Linea networks.

Documentation: ./docs/linea-token-bridge.md