ethernaut-util
v1.1.11
Published
Simple, everyday utilities for Ethereum devs
Downloads
41
Readme
ethernaut-util
Simple, everyday utilities for Ethereum devs
What
This plugin facilitates a collection of tools for everyday Ethereum development or hacking needs, such as converting between units, searching for logs, converting from and to bytes, etc.
Installation
npm install ethernaut-util
Import the plugin in your hardhat.config.js
:
require('ethernaut-util')
Or if you are using TypeScript, in your hardhat.config.ts
:
import 'ethernaut-util'
Required plugins
This plugin does not require any other plugins.
Tasks
This plugin adds the tasks listed below.
- bytes Converts strings to bytes32
- checksum Computes or validates the checksum of an address
- lookup Lookup the address of an ens name
- resolve Resolves an ens name to an address
- string Converts bytes32 to string
- token Tries to find the address of a token, given its name or symbol in the current network
- unit Converts between different units of Ether
- gas Fetch gas info on the current network
- chain Finds a network name from a chain ID, or vice versa
Environment extensions
This plugin doesn't add any fields to the hre.
Configuration
This plugin doesn't add any fields to the hardhat configuration file.
Usage
Just install it and all tasks will be available with npx hardhat <task> <params>