Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
truffle-flattener
Advanced tools
Truffle Flattener concats solidity files developed under Truffle with all of their dependencies
Truffle Flattener concats solidity files developed under Truffle with all of their dependencies.
This tool helps you to verify contracts developed with Truffle on Etherscan, or debugging them on Remix, by merging your files and their dependencies in the right order.
Check out Buidler, our alternative to Truffle. It's got flattening built-in, it's faster, and much more flexible.
npm install truffle-flattener -g
Just intall it with npm in your truffle project and run
truffle-flattener <solidity-files>
.
This project is a Truffle specific
reimplementation of Solidity Flattener. By being closely coupled to Truffle it
can take advantage of its dependencies resolution logic making --solc-paths
a
thing of the past. It also supports flattening more than one file at once,
concatenating everything in the right order, whithout duplicating any file.
If you deploy your contracts with truffle's migrations the output of
truffle-flattener
may not match while verifying it in Etherscan. You
can use Solidity Flattener
in that case, or deploy your contracts from Remix.
Aliased imports (eg: import {symbol1 as alias, symbol2} from "filename";
) are
not supported by truffle-flattener
.
FAQs
Truffle Flattener concats solidity files developed under Truffle with all of their dependencies
The npm package truffle-flattener receives a total of 5,367 weekly downloads. As such, truffle-flattener popularity was classified as popular.
We found that truffle-flattener 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.