Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appliedblockchain/chainlink-plugins-fund-link

Package Overview
Dependencies
Maintainers
29
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appliedblockchain/chainlink-plugins-fund-link

Hardhat TypeScript plugin that transfers Link token between accounts.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-92.31%
Maintainers
29
Weekly downloads
 
Created
Source

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

  • @nomiclabs/hardhat-ethers

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.

Keywords

FAQs

Package last updated on 09 Sep 2021

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