A minimal repo that is a copy of the npm package @matterlabs/zksync-contracts.
Everyday at 3AM, the latest version of the package is updated here, this way, you can use the zkSync contracts with foundry without having to use npm/yarn. This also makes other third party packages like Brownie and Ape easier to work with.
- Run this in your projects root directory.
forge install cyfrin/zksync-contracts --no-commit
- Then, update your
foundry.toml
to include the following in theremappings
.
remappings = [
'@matterlabs/zksync-contracts/=lib/zksync-contracts/zksync-contracts/',
]