Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@ethereum-waffle/compiler
Advanced tools
Compile solidity without the hassle.
In the current version of waffle (v2.x.x) you will install this package as a dependency of the main waffle package - ethereum-waffle
.
yarn add --dev ethereum-waffle
npm install --save-dev ethereum-waffle
If you want to use this package directly please install it via:
yarn add --dev @ethereum-waffle/compiler
npm install --save-dev @ethereum-waffle/compiler
NOTE: You do not need to use this package directly. You can install it through the main package (ethereum-waffle
) and use the CLI instead.
This package exposes programmatic api for compiling solidity smart contracts.
You can learn more about it in the documentation.
Examples:
// Compilation with a config file
const {compileProject} = require('@ethereum-waffle/compiler');
main();
async function main () {
await compileProject('path/to/waffle.json');
}
// Compilation with js config
const {compileAndSave, compile} = require('@ethereum-waffle/compiler');
main();
async function main () {
const config = { sourceDirectory: 'contracts', nodeModulesDirectory: 'node_modules' };
// compile and save the output
await compileAndSave(config);
// just compile
const output = await compile(config);
console.log(output);
}
Example:
const {link} = require('@ethereum-waffle/compiler');
FAQs
Compile solidity without the hassle.
The npm package @ethereum-waffle/compiler receives a total of 54,171 weekly downloads. As such, @ethereum-waffle/compiler popularity was classified as popular.
We found that @ethereum-waffle/compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.