🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@parity/hardhat-polkadot

Package Overview
Dependencies
Maintainers
12
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parity/hardhat-polkadot

Use Hardhat with Polkadot all-in-one plugin

Source
npmnpm
Version
0.2.7
Version published
Weekly downloads
1.3K
36.51%
Maintainers
12
Weekly downloads
 
Created
Source

Build on Polkadot with Hardhat Plugin

Polkadot Logo Light

Compatibility

  • Not compatible with solidity versions lower than 0.8.0.

Installation

Using npm:

$ npm install -D @parity/hardhat-polkadot

Using yarn:

$ yarn add -D @parity/hardhat-polkadot 

Using pnpm:

$ pnpm add -D @parity/hardhat-polkadot 

Configuration

  • Import the package in the hardhat.config.ts file:
...
import "@parity/hardhat-polkadot";
...
  • Create 2 binaries - One for the node and another for the ETH-RPC adapter. See step 1. of Deploying with a Local Node.

  • Example configuration in hardhat.config.ts

const config: HardhatUserConfig = {
  networks: {
    hardhat: {
      polkadot: true,
      nodeConfig: {
        useAnvil: true,
        nodeBinaryPath: 'INSERT_PATH_TO_ANVIL_NODE',
      },
    },
  },
};

Usage

Get started from a boilerplate.

$ npx hardhat-polkadot init

Compile solidity smart contracts for the Polkadot network, creating Polkadot compatible hardhat artifacts.

$ npx hardhat compile

Test smart contracts locally. See more in Testing Your Contract.

$ npx hardhat test

Deploy smart contracts locally or to a Live Network. See more in Deploying with a Local Node and Deploying to a live Network.

$ npx hardhat ignition deploy ./ignition/modules/deploy.js

Run custom scripts locally or on a Live Network. See more in Interacting with Your Contract.

$ npx hardhat run scripts/interact.js

Documentation

Getting Help

Happy building! 👷‍♀️👷‍♂️

Keywords

ethereum

FAQs

Package last updated on 07 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts