truffle-flattener
npm i truffle-flattener

truffle-flattener

Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies

by NomicFoundation

1.6.0 (see all)License:MITTypeScript:Not FoundCategories:Vanilla JavaScript Ethereum Smart Contract
npm i truffle-flattener
Readme

truffle-flattener

npm

Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies.

This tool helps you to verify contracts developed with Truffle and Buidler on Etherscan, or debugging them on Remix, by merging your files and their dependencies in the right order.

If you are still using Truffle, we recommend you try Buidler, our Ethereum development environment, which is much faster and flexible.

Hardhat support

If you are using Hardhat, you don't need this project. Use npx hardhat flatten instead.

Installation

npm install truffle-flattener -g

Usage

Just install it with npm in your truffle project and run truffle-flattener <solidity-files>.

Limitations

Aliased imports (eg: import {symbol1 as alias, symbol2} from "filename";) are not supported by truffle-flattener.

No Rating
0
Rate
Poor Documentation1

Downloads/wk

13.8K

GitHub Stars

325

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

22

OPEN PRs

14
VersionTagPublished
1.6.0
latest
5mos ago
No tutorials found
Add a tutorial