
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@parity/hardhat-polkadot
Advanced tools
0.8.0.Using npm:
$ npm install -D @parity/hardhat-polkadot
Using yarn:
$ yarn add -D @parity/hardhat-polkadot
Using pnpm:
$ pnpm add -D @parity/hardhat-polkadot
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',
},
},
},
};
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
See Examples
Get started from scratch with How to use Hardhat with Polkadot
Follow tutorial with Test and Deploy with Hardhat
FAQs
Use Hardhat with Polkadot all-in-one plugin
The npm package @parity/hardhat-polkadot receives a total of 970 weekly downloads. As such, @parity/hardhat-polkadot popularity was classified as not popular.
We found that @parity/hardhat-polkadot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.