Go to file
viktor 6184c25d3d bin 2017-11-10 18:44:51 +03:00
demo Broken order of imports strong fix 2017-08-17 18:38:18 +03:00
helpers Merge branch 'master' into master 2017-11-01 20:10:56 +03:00
.gitignore Flat .sol file generation utility 2017-07-26 19:13:45 +03:00
LICENSE.md added Apache2 license 2017-07-26 10:58:32 -07:00
README.md README update 2017-08-17 18:51:27 +03:00
config.json Flat .sol file generation utility 2017-07-26 19:13:45 +03:00
index.js package-lock.json 2017-11-10 12:14:48 +03:00
package-lock.json package-lock.json 2017-11-10 12:14:48 +03:00
package.json bin 2017-11-10 18:44:51 +03:00

README.md

Solidity flat file generation

Combines all local imports to one .sol file
git clone https://github.com/oraclesorg/oracles-combine-solidity
cd oracles-combine-solidity
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 won't work with aliases at import statements

Config

path ./config.json

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