Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@nomiclabs/hardhat-solpp
Advanced tools
Readme
Hardhat plugin for integration with the solpp preprocessor.
This plugin hooks into the compilation pipeline and runs the solpp preprocessor.
npm install --save-dev @nomiclabs/hardhat-solpp
And add the following statement to your hardhat.config.js
:
require("@nomiclabs/hardhat-solpp");
Or, if you are using TypeScript, add this to your hardhat.config.ts
:
import "@nomiclabs/hardhat-solpp";
This plugin does not extend the environment.
There are no additional steps you need to take for this plugin to work.
Install it, run npx hardhat compile
and solc will compile the solpp generated contracts, which will be in cache/solpp-generated-contracts
.
This plugin can by configured by setting a solpp
entry in hardhat.config.js
. Its options are:
defs
: is an object where each property is the symbol's name and its value is the actual definition. Definitions can be numbers, string, expressions, lists, or functions. For more detail about symbols you can check solpp README.cwd: string
: directory where the contracts are located, it will be used for flattening purposes, by default it will be the project's source directory.collapseEmptyLines: boolean
: delete empty lines, false by default.noPreprocessor: boolean
: disable preprocessor, false by default.noFlatten: boolean
: won't flatten contracts, true by default.tolerant: boolean
: ignore if an imported contract file is missing when flattening, false by default.FAQs
Hardhat plugin for solpp
The npm package @nomiclabs/hardhat-solpp receives a total of 510 weekly downloads. As such, @nomiclabs/hardhat-solpp popularity was classified as not popular.
We found that @nomiclabs/hardhat-solpp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.