fs

flatten-sol

command-line tool to flatten a solidity contract which uses `import "@openzeppelin/contracts/...`.

Showing:

Popularity

Downloads/wk

15

GitHub Stars

6

Maintenance

Last Commit

2mos ago

Contributors

0

Package

Dependencies

8

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Flatten-Sol

flatten-sol - command-line tool to flatten a solidity contract which uses import "@openzeppelin/contracts/....

  • This tool will replace those import statements and flatten (combine) them into one file. The output file can be used for Etherscan's verifyContract.
  • Solidity file example
  • Support: openzeppelin contracts & contracts-upgradeable.
  • Based on solidity-flattener

Installation & Usage:

Installation:
$ npm install flatten-sol -g

Usage:
$ npx flatten-sol <filename.sol>

Output file is located in "./out" directory.

  • Create-web3js-app CLI - create a new app with Web3js, React, Hardhat, Express, Vercel.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100