Skip to content

3commascapital/hardhat-vizor

Repository files navigation

Hardhat Vizor

This plugin adds tooling to help quickly run tasks related to low level needs when interacting with the hre.

Installation

To start working on your project, just run

npm install

Building the project

Just run npm run build ️👷

Usage in your projects

// hardhat.config.ts
import "hardhat-vizor"

impersonate account

// tests/MyContract.test.ts
// ...
await hre.vizor.impersonate("0xdeadbeef...", async (signer) => {
  // do something with impersonated deadbeef signer
})

attempt to verify contract

await hre.vizor.attemptVerify(
  contract, // deployedBaseContract
  [1, 2, 3], // args
  true, // print error if it occurs (default false)
)

reset a forked network

await hre.vizor.resetNetwork(
  forkConfig, // optional HardhatNetworkForkingUserConfig (defaults to hardhat.config.ts settings)
)

About

collection of low level methods to simplify hardhat requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published