Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keep-network/hardhat-helpers
Hardhat plugin with helpers
https://github.com/keep-network/hardhat-helpers
Last synced: 18 days ago
JSON representation
Hardhat plugin with helpers
- Host: GitHub
- URL: https://github.com/keep-network/hardhat-helpers
- Owner: keep-network
- License: mit
- Created: 2021-07-13T22:51:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T14:20:17.000Z (5 months ago)
- Last Synced: 2024-08-10T11:14:49.062Z (5 months ago)
- Language: TypeScript
- Size: 537 KB
- Stars: 2
- Watchers: 11
- Forks: 10
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hardhat-plugin
[Hardhat](https://hardhat.org) plugin from Keep Network.
## What
This plugin contains helpers for Hardhat.
## Installation
```bash
yarn add --dev @keep-network/hardhat-helpers ethers@^5.0.32 hardhat-deploy@^0.8.11
```Import the plugin in your `hardhat.config.js`:
```js
require("@keep-network/hardhat-helpers")
```Or if you are using TypeScript, in your `hardhat.config.ts`:
```ts
import "@keep-network/hardhat-helpers"
```## Environment extensions
This plugin extends the Hardhat Runtime Environment by adding an `helpers` field
whose type is `HardhatHelpers`.## Usage
There are no additional steps you need to take for this plugin to work.
Install it and access `helpers` through the Hardhat Runtime Environment anywhere
you need it (tasks, scripts, tests, etc).Example:
```js
hre.helpers.address.isValid(KeepToken.address)
```