npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@matterlabs/hardhat-zksync-node

v1.2.0

Published

Hardhat plugin to run ZKsync era-test-node locally

Downloads

27,667

Readme

hardhat-zksync-node 🚀

ZKsync Era Hardhat plugin to run the ZKsync era-test-node locally.

Era Logo

⚠️ Version Compatibility Warning

Ensure you are using the correct version of the plugin with ethers:

  • For plugin version <1.0.0:

    • Compatible with ethers v5.
  • For plugin version ≥1.0.0:

    • Compatible with ethers v6 (⭐ Recommended)

From version 1.1.1, the plugin is not dependent on a specific ethers version and can be used for both ethers v5 and v6 projects.

📥 Installation

To install hardhat-zksync-node plugin, run:

npm install -D @matterlabs/hardhat-zksync-node

or

yarn add -D @matterlabs/hardhat-zksync-node

🕹 Commands

yarn hardhat node-zksync

This command runs a local ZKsync In-memory node by initiating a JSON-RPC server. It uses the provided or default configurations to set up and run the ZKsync node, allowing for blockchain operations in a local environment. The command also handles tasks such as downloading the necessary JSON-RPC server binary if it's not already present.

| 🔧 Command | 📄 Description | |-------------------------------------|----------------------------------------------------------------------------------------------------------------------| | --port | Port on which the server should listen. Defaults to 8011. | | --log | Log filter level. Accepted values are: error, warn, info, and debug. Defaults to info. | | --log-file-path | Path to the file where logs should be written. Defaults to era_test_node.log | | --cache | Type of cache to use. Accepted values are: none, disk, and memory. Defaults to disk. | | --cache-dir | Directory location for the disk cache. Defaults to .cache | | --reset-cache | Flag to reset the local disk cache. | | --show-calls | Determines which call debug information to show. Accepted values are: none, user, system, and all. Defaults to none. | | --show-storage-logs | Determines which storage logs to show. Accepted values are: none, read, write, and all. Defaults to none. | | --show-vm-details | Specifies the level of Virtual Machine (VM) details to show. Accepted values are: none and all. Defaults to none. | | --show-gas-details | Specifies the level of gas details to show. Accepted values are: none and all. Defaults to none. | | --resolve-hashes | When enabled, it makes the debug log more readable but might decrease performance. | | --dev-use-local-contracts | Flag to load locally compiled system contracts. Useful when making changes to system contracts or bootloader. | | ---fork | Starts a local network that is a fork of another network. Accepted values are: testnet, mainnet, or a specific URL. | | --fork-block-number | Specifies the block height at which to fork. | | --replay-tx | Transaction hash to replay. |

Restrictions: The --replay-tx and --fork-block-number parameters cannot be specified simultaneously.

📝 Documentation

In addition to the hardhat-zksync-node, ZKsync's Era website offers a variety of resources including:

Guides to get started: Learn how to start building on ZKsync Era.
Hardhat ZKsync Era plugins: Overview and guides for all Hardhat ZKsync Era plugins.
ZK Chains: Deep dive into the concept of ZK chains.

🤝 Contributing

Contributions are always welcome! Feel free to open any issue or send a pull request.

Go to CONTRIBUTING.md to learn about steps and best practices for contributing to ZKsync hardhat tooling base repository.

🙌 Feedback, help and news

ZKsync Era Discord server: for questions and feedback.
Follow ZKsync Era on Twitter

Happy building! 👷‍♀️👷‍♂️