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

0.0.3 • Public • Published

Chainlink Plugin Fund Link

A Hardhat plugin that transfers Link token between accounts.

What

This plugin will help you transfer Link token between accounts.

Installation

To install this plugin use:

npm install @appliedblockchain/chainlink-plugins-fund-link @nomiclabs/hardhat-ethers --save

Import the plugin in your hardhat.config.js:

require("@appliedblockchain/chainlink-plugins-fund-link");

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

import "@appliedblockchain/chainlink-plugins-fund-link";

Required plugins

Tasks

This plugin adds a task to fund an account with Link token.

Fund account with Link token.

npx hardhat fund-link --contract <contract address> --linkaddress <link contract address> --fundamount <fund amount>

The Link address and the fund amount parameters are optional. This plugin uses the official Link addresses as default. Check the default values on the configuration file.

Example of funding on the Ethereum main network.

npx hardhat fund-link --contract 0xc0ffee254729296a45a3885639AC7E10F9d54979 --linkaddress 0x514910771af9ca656af840dff83e8264ecf986ca --fundamount 1000000000000000000

Environment extensions

This plugin adds the function to transfer the Link token between accounts to the Hardhat Runtime Environment.

hre.fundLink(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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    5
  • 0.0.2
    0
  • 0.0.1
    9

Package Sidebar

Install

npm i @appliedblockchain/chainlink-plugins-fund-link

Weekly Downloads

14

Version

0.0.3

License

MIT

Unpacked Size

22 kB

Total Files

33

Last publish

Collaborators

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