Skip to content

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

License

Notifications You must be signed in to change notification settings

marscolony-io/harmony-flattener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harmony-flattener

A fork of truffle-flattener

  • @solidity-parser/parser version bumped
  • inline comment replacing (// -> /* */)

Reason: harmony block explorer verification fails if there is any // comment

npm

Truffle/Harmony 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 Harmony explorer, 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.

Installation

npm install harmony-flattener -g

Usage

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

Limitations

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.1%
  • Solidity 1.9%