@appliedblockchain/chainlink-plugins-price-consumer
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Chainlink Consumer Price Consumer

A Hardhat plugin that interacts with the Chainlink Price Consumer contract.

What

This plugin will help you read the price from a Chainlink Price Consumer.

Installation

To install this plugin use:

npm install @appliedblockchain/chainlink-plugins-price-consumer @nomiclabs/hardhat-ethers --save

Import the plugin in your hardhat.config.js:

require("@appliedblockchain/chainlink-plugins-price-consumer");

Or if you are using TypeScript, in your hardhat.config.ts:

import "@appliedblockchain/chainlink-plugins-price-consumer";

Required plugins

Tasks

This plugin adds a task to fetch the price held in the Price Consumer contract.

Read the contract price.

npx hardhat read-price-feed --contract <contract address>

Environment extensions

This plugin adds the function to read the price feed to the Hardhat Runtime Environment.

hre.readPriceFeed(hre,contractAddress);

Configuration

This plugin does not require configuration.

Usage

There are no additional steps you need to take for this plugin to work.

Install it and access the provided functions and the provided tasks through the Hardhat Runtime Environment anywhere you need it.

Package Sidebar

Install

npm i @appliedblockchain/chainlink-plugins-price-consumer

Weekly Downloads

5

Version

0.0.4

License

MIT

Unpacked Size

12.1 kB

Total Files

27

Last publish

Collaborators

  • ewan-sims-applied-blockchain
  • lanreayobamidele
  • andyharr15
  • aditya.gupta.appliedblockchain
  • geoffreychalk
  • brunoneves-devops
  • samfcmc
  • tiagorvmartins
  • kjack83
  • losceicco
  • ruisereno
  • telmof
  • andremfaria
  • lbltavaresab
  • ztadic91
  • pedrolino
  • alisson-diniz-ab
  • juniorerico
  • diogopalhais
  • gabspeck
  • ab-ci
  • andycampbell92
  • mirek
  • danchmelo
  • seromenho
  • kennypt
  • zeluisping
  • pmcleite-ab
  • filipepedro
  • mnikolaus
  • bertola
  • lpalmeida
  • lslima91