Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@nomiclabs/hardhat-ganache
Advanced tools
This Hardhat plugin automatically starts and stops Ganache when running tests or scripts.
This plugin creates a network named ganache
. When this network is used, a Ganache server will be automatically started before running tests and scripts, and stopped when finished.
npm install --save-dev @nomiclabs/hardhat-ganache
And add the following statement to your hardhat.config.js
:
require("@nomiclabs/hardhat-ganache");
Or, if you are using TypeScript, add this to your hardhat.config.ts
:
import "@nomiclabs/hardhat-ganache";
This plugin hooks into the test
and run
tasks to wrap them in the instantiation and termination of a ganache-core
instance. This plugin creates no additional tasks.
This plugin doesn't extend the Hardhat Runtime Environment.
There are no additional steps you need to take for this plugin to work.
You can set any of the Ganache's options through the ganache
network config. All of them are supported, with the exception of accounts
.
This example sets a larger block gas limit and the default balance of Ganache's accounts.
module.exports = {
defaultNetwork: "ganache",
networks: {
ganache: {
gasLimit: 6000000000,
defaultBalanceEther: 10,
},
},
};
Note: The accounts
option is not currently supported.
FAQs
Hardhat plugin for managing Ganache
We found that @nomiclabs/hardhat-ganache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.