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/buidler-web3
Advanced tools
This plugin integrates Web3.js 1.x
into Buidler.
This plugin brings to Buidler the Web3 module and an initialized instance of Web3.
npm install --save-dev @nomiclabs/buidler-web3 web3
And add the following statement to your buidler.config.js
:
usePlugin("@nomiclabs/buidler-web3");
This plugin creates no additional tasks.
This plugin adds the following elements to the BuidlerRuntimeEnvironment
:
Web3
: The Web3.js module.web3
: An instantiated Web3.js object connected to the selected network.Install it and access Web3.js through the Buidler Runtime Environment anywhere you need it (tasks, scripts, tests, etc). For example, in your buidler.config.js
:
usePlugin("@nomiclabs/buidler-web3");
// task action function receives the Buidler Runtime Environment as second argument
task("accounts", "Prints accounts", async (_, { web3 }) => {
console.log(await web3.eth.getAccounts());
});
module.exports = {};
And then run npx buidler accounts
to try it.
Read the documentation on the Buidler Runtime Environment to learn how to access the BRE in different ways to use Web3.js from anywhere the BRE is accessible.
You need to add this to your tsconfig.json
's files
array: "node_modules/@nomiclabs/buidler-web3/src/type-extensions.d.ts"
FAQs
Buidler plugin for using Web3 1.x
The npm package @nomiclabs/buidler-web3 receives a total of 179 weekly downloads. As such, @nomiclabs/buidler-web3 popularity was classified as not popular.
We found that @nomiclabs/buidler-web3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.