@parity/hardhat-polkadot-node
v0.2.0
Published
Polkadot [Hardhat](https://hardhat.org/) plugin to run a mock in-memory node.
Downloads
12,054
Maintainers
Keywords
Readme
hardhat-polkadot-node
Polkadot Hardhat plugin to run a mock in-memory node.
Compatibility
- Widely compatible with hardhat-only helpers, with caveats such as
loadFixturefrom@nomicfoundation/hardhat-toolbox/network-helpers
Installation
Using npm:
$ npm install -D @parity/hardhat-polkadot-nodeUsing yarn:
$ yarn add -D @parity/hardhat-polkadot-nodeUsing pnpm:
$ pnpm add -D @parity/hardhat-polkadot-nodeConfiguration
- Import the package in the
hardhat.configfile:
...
import "@parity/hardhat-polkadot-node";
...- Configure a Polkadot-compatible node and eth-rpc in
hardhat.configaccording to available options.
Usage
From hardhat.config
See Examples.
NOTE: When the forking field is used, the path to the eth-rpc must be provided, even if useAnvil is set to true, since anvil-polkadot has no forking functionality yet.
