@zkp2p/contracts-v2 package provides TypeScript interfaces, ABIs, contract addresses, and utilities for interacting with ZKP2P V2 smart contracts.
Package Manager Installation
Install the package using your preferred package manager:Peer Dependencies
The package requires ethers v5 or v6 as a peer dependency:package.json
The package supports both ethers v5 and v6. Make sure you have one of these versions installed.
What’s Included
The package provides:- Contract Addresses - Pre-configured addresses for all deployed networks
- ABIs - Minimal contract ABIs extracted from on-chain deployments
- Constants - Protocol parameters and configuration values
- Payment Methods - Payment method configurations with provider hashes
- Types - TypeScript type definitions for all contracts
- Utilities - Helper functions for protocol operations
Version Information
Current stable version: 0.2.0-rc.3 View the latest version on npm.Next Steps
Setup
Learn how to set up and initialize the package
Contract Addresses
Access deployed contract addresses