Snapshot notice
These contracts target protocol version 27, commit9076929
.
📦 Installation
To install with Foundry-ZKsync:
forge install matter-labs/zksync-contracts
Add the following to the remappings.txt
file of your project:
@matterlabs/zksync-contracts/=lib/v2-testnet-contracts/
To install with Hardhat:
bun install @matterlabs/zksync-contracts
🚀 Quick start
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {IPaymaster} from
"@matterlabs/zksync-contracts/contracts/system-contracts/interfaces/IPaymaster.sol";
contract MyPaymaster is IPaymaster {
// Your implementation here
}
See more examples in the official docs.
📖 Documentation
- API reference: https://docs.zksync.io
- Canonical source: matter-labs/era-contracts
🤝 Contributing
Bug fixes, new snapshots, and added ABIs are welcome! Open an issue before large changes and follow the standard PR workflow.
📜 License
Dual-licensed under MIT / Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.