@rami-majdoub/hardhat-interact
v0.0.1
Published
Hardhat TypeScript plugin to interact with smart contracts
Downloads
4
Maintainers
Readme
hardhat-interact
Call functions of smart contracts with no code
What
This plugin will help you avoid writing boilerplate code that call smart contracts functions.
Installation
npm install @rami-majdoub/hardhat-interact
Import the plugin in your hardhat.config.js
:
require("@rami-majdoub/hardhat-interact");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "@rami-majdoub/hardhat-interact";
Required plugins
Tasks
This plugin adds the interacat task to Hardhat:
Usage: hardhat [GLOBAL OPTIONS] interact [--account-id <INT>] [--contract-address <STRING>]
OPTIONS:
--account-id Id of the account to connect with, default: Account #0 (default: 0)
--contract-address Address of the contract
interact: Calls a function of a contract
For global options help run: hardhat help