New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@unlock-protocol/hardhat-helpers

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unlock-protocol/hardhat-helpers

Some internal parser/helpers for Unlock Protocol's hardhat configs

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

Hardhat helpers

This package contains a bunch of convenience helpers that can be used accross various hardhat project to add various tasks, parse networks file, verification APis, etc.

Usage

/**
 * @type import('hardhat/config').HardhatUserConfig
 */

const { networks, etherscan } = require('@unlock-protocol/hardhat-helpers')

module.exports = {
  networks, // add all supported networks info (RPCs, etc) for Unlock
  etherscan, // parse all verification APIs
}

CLI tasks

Importing the package will provide a bunch of cli tasks

# show hardhat config in terminal
yarn hardhat config

# output hardhat config as json
yarn hardhat config --json

Verification

You need to export the API keys in your env for it to work properly

// 'mainnet', 'goerli'
ETHERSCAN_API_KEY

// polygon mumbai
POLYGONSCAN_API_KEY

// binance bsc
BSCSCAN_API_KEY

// optimism
OPTIMISTIC_ETHERSCAN_API_KEY

// arbitrum
ARBISCAN_API_KEY

// celo
CELO_API_KEY

// avalanche
SNOWTRACE_API_KEY

FAQs

Package last updated on 17 Oct 2022

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