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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hardhat-chainlink-common-blueprints

v1.0.1

Published

A hardhat plugin providing helpers to play with mocks of Chainlink services

Readme

hardhat-chainlink-common-blueprints

A hardhat plugin providing helpers to play with mocks of Chainlink services, and generate templates of Chainlink contracts.

Currently, there's support for Price Feeds and VRF. Support for functions is an ongoing work to be released in future versions.

This package requires complete Chainlink knowledge, for which there's plenty official information online, and several courses and hackatons for that purpose. This README file assumes some of that knowledge, while brief explanations will be given for the features.

Installation

Run this command to install it from NPM:

npm install --save-dev @chainlink/contracts@^1.3.0 @chainlink/functions-toolkit@^0.3.2 @chainlink/env-enc@^1.0.5 hardhat-common-tools@^1.7.2 hardhat-enquirer-plus@^1.5.2 hardhat-blueprints@^1.4.0 hardhat-ignition-deploy-everything@^1.1.2 hardhat-method-prompts@^1.3.1 hardhat-chainlink-common-blueprints@^1.0.1

Instructions related to Chainlink VRF

There are no particular instructions for the VRF feature.

Instructions related to Chainlink Functions

Chainlink Functions is an ongoing development and will be ready for some latter minor version.

A Deno interpreter is required to execute local. Always follow the official Deno documentation.

In Ubuntu systems, snap comes with a defective Deno version which will not work. Ensure you uninstall it and, instead, install it following the official documentation. As of today, the steps are:

# Execute this line only if deno is installed by snap.
# Don't worry, by this point, if snap is already not
# found (skip this step in that case). Uninstalling
# requires administrator privileges.
#
# Anyway, this step is optional.
snap remove deno

# Execute these lines to install deno. This will install
# it by default in the local user's bin directory, and
# will create new stuff in ~/.bashrc.
curl -fsSL https://deno.land/install.sh | sh
source ~/.bashrc

Setup

Setup instructions are project-wide, contrary to the installation instructions which are machine-wide.

The first thing to do is to add the plug-in and dependencies in the hardhat project as follows:

require("@nomicfoundation/hardhat-toolbox");
require("@chainlink/functions-toolkit");
require("hardhat-enquirer-plus");
require("hardhat-common-tools");
require("hardhat-blueprints");
require("hardhat-method-prompts");
require("hardhat-ignition-deploy-everything");
require("hardhat-chainlink-contracts");

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
    // USE AT LEAST ONE Solidity VERSION WITH OPTIMIZATION.
    // Optimizations are required for VRF and Function mocks
    // in the local networks.
    solidity: {
        version: "some.solidity.version",
        settings: {
            optimizer: {
                enabled: true,
                runs: 200
            }
        }
    },
    networks: {
        hardhat: {
            // Although, by default, this ID is used for localhost.
            chainId: 31337 // Default Hardhat Network ID
        },
        // ...more networks here...
    }
};

Price Feeds

Price Feed related documentation can be found here.

VRF

VRF related documentation can be found here.

Functions

Functions related documentation will be ready in some latter minor version, as this is a work in progress.