mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
* Bump solidity version to 0.8.26 across the repository * Regenerated Verifiers * bump solidity for other merged PRs --------- Co-authored-by: thedarkjester <grant.southey@consensys.net> Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
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