Files
linea-monorepo/contracts
The Dark Jester 619efcae74 [Fix] N-03 - Use 0x20 vs. 32 for memory offset (#300)
* use 0x20 vs. 32 for memory offset

* use 0x20 in message error returning
2024-11-21 02:20:44 -08: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