Getting Started
-
Add the package
# Hardhat / npm / bun npm add @matterlabs/zksync-contracts # or Foundry forge install matter-labs/zksync-contracts
-
Implement a contract
// 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 { // implement paymaster logic here }
-
Build & test
- Hardhat
npx hardhat compile
- Foundry
forge build
- Hardhat