Miss any of our Open RFC calls?Watch the recordings here! »

solidity-steamroller

1.1.0 • Public • Published

solidity-steamroller

🚜 Flatten your Solidity contracts with ease.

This flattens your Solidity contracts by recursively resolving your dependencies and merging them into your contract file. Dependencies won't be included twice. Pragma statements are reduced to one and aligned to the newest version.

Why?

To verify your contracts over at Etherscan or play around with it in the remix IDE.

Install!

yarn global add solidity-steamroller

Use!

steamroller path/to/my/Contract.sol

The flattened contract is printed to stdout. Just pipe it to a file if you fancy:

steamroller path/to/my/Contract.sol > Contract_flattened.sol

Contribute!

If encountering any issues please open one at GitHub. PRs are very welcome as well.

TODO

  • Tests

License!

GPL-3.0

Keywords

none

Install

npm i solidity-steamroller

DownloadsWeekly Downloads

128

Version

1.1.0

License

GPL-3.0

Unpacked Size

42.8 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar