Go to file
Victor Baranov c1009573eb travis.yml 2018-09-06 13:38:41 +03:00
demo Broken order of imports strong fix 2017-08-17 18:38:18 +03:00
helpers Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
test Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
.eslintrc.json Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
.gitignore Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
LICENSE.md added Apache2 license 2017-07-26 10:58:32 -07:00
README.md Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
config.json Flat .sol file generation utility 2017-07-26 19:13:45 +03:00
index.js Massive refactoring 2018-09-04 21:53:42 +03:00
package-lock.json Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
package.json Unit test for changeRelativePathToAbsoluteTest 2018-09-06 13:30:13 +03:00
travis.yml travis.yml 2018-09-06 13:38:41 +03:00

README.md

Solidity flat file generation

Known Vulnerabilities Coverage Status

Combines all local imports to one .sol file
git clone https://github.com/poanetwork/solidity-flattener
cd solidity-flattener
npm install

You can start script either

npm start "path_to_not_flat_contract_definition_file.sol"

or without paramaters (path to input file will be extracted from ./config.json)

npm start

Expected result:

Success! Flat file is generated to ./out directory

./flatContract.sol - flat .sol file is created in output directory (./out/ by default)

Note: utility doesn't support aliases at import statements

Config

path ./config.json

{
	"inputFilePath": "./demo/src/Oracles.sol",
	"outputDir": "./out"
}