@matterlabs/zksync-contracts

28.0.1 • Public • Published

ZKsync ZKsync Contracts

Canonical L1 & L2 contract interfaces for the ZKsync Elastic Network

NPM License: MIT Docs X: @zksyncdevs

Snapshot notice
These contracts target protocol version 28, commit 9fcd2823.

[!NOTE] 🛠️ This is a development repository for interfaces only.
If you're looking for contract implementations, see
👉 matter-labs/era-contracts


📦 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/matterlabs/zksync-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
}

📖 Documentation

🤝 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.


WebsiteGitHubXX for DevsDiscordMirror

Readme

Keywords

none

Package Sidebar

Install

npm i @matterlabs/zksync-contracts

Homepage

zksync.io/

Weekly Downloads

14,938

Version

28.0.1

License

MIT

Unpacked Size

755 kB

Total Files

184

Last publish

Collaborators

  • vladbochok
  • npm-matterlabs