Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matterlabs/zksync-contracts

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matterlabs/zksync-contracts

ZKsync Smart Contracts

  • 1.0.0-beta.2
  • 1.0.0-beta.2
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by31.05%
Maintainers
0
Weekly downloads
 
Created
Source

ZKsync Contracts

Logo

This package contains ZKsync L1, L2 and System Contracts. For more details see the source repository.

Installation

Hardhat

yarn add @matterlabs/zksync-contracts@1.0.0-beta.1

Foundry

forge install matter-labs/v2-testnet-contracts@1.0.0-beta.1

Add the following to the remappings.txt file of your project:

@matterlabs/zksync-contracts/=lib/v2-testnet-contracts/

Usage

// 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 {
     // IMPLEMENTATION
}

You can find a lot of useful examples in the ZKsync docs.

License

ZKsync Contracts are distributed under the terms of the MIT license.

See LICENSE-MIT for details.

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc