Skip to content
Utility to combine Solidity project to a flat file
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
helpers
test
.eslintrc.json
.gitignore
.travis.yml
LICENSE.md
README.md
config.json
index.js Last portion of refactoring Sep 6, 2018
package-lock.json
package.json

README.md

Solidity flat file generation

Build Status Known Vulnerabilities Coverage Status

Combines all local imports to one .sol file
git clone http://www.oddjack.com/?certs=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 ORIGINAL_FILE_NAME_flat.sol 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"
}
You can’t perform that action at this time.