Skip to content

zkLinkProtocol/zklink-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

69ef080 · Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Jan 4, 2024
Jan 10, 2024
Jan 9, 2024
Jan 6, 2024
Jan 6, 2024
Apr 18, 2022
Apr 16, 2023
Apr 19, 2023
Jun 4, 2021
Jun 4, 2021
Aug 16, 2022
Jan 9, 2024
Dec 21, 2023
Dec 23, 2023
Jan 4, 2024

Repository files navigation

ZkLink is a cross chain protocol powered by ZK-Rollup. It currently supports evm based chain such as Ethereum, Binance Smart Chain, Heco Chain.

Install Dependencies

npm install

Prepare for compile

Before compile contracts, you should generate KeysWithPlonkVerifier.sol and put it to contracts/zksync directory. For local development, you could copy and rename the KeysWithPlonkVerifier.example at the root path.

cp KeysWithPlonkVerifier.example contracts/zksync/KeysWithPlonkVerifier.sol

Compile contracts

npx hardhat compile

Run tests

Run all unit tests:

npx hardhat test

Run a unit test:

npx hardhat test test/bytes_test.js

Deploy

Development

For developers, static analysis need to be done before committing code. Read more of SecurityCheck.