A docker wrapper for [BlockCatIO's solidity-flattener] (https://github.com/BlockCatIO/solidity-flattener), so you don't have to install any dependencies in your local machine to flatten solidity code!
Clone this repo, and build the docker image with 2 parameters:
- 1 SOURCE -> The folder where your solidity code is install
- 2 CONTRACT -> The contract that you want to flatten. IMPORTANT: the contract should be in the root folder and the dependencies should be inside that folder, check the example
git clone https://github.com/santiarias/docker-solidity-flattener
cd docker-solidity-flattener
docker build -t solidity-flattener --build-arg SOURCE=example/crowdsale --build-arg CONTRACT=Crowdsale.sol .
docker run solidity-flattener
Replace the SOURCE and CONTRACT variables with your own values.
This project is licensed under the MIT License
- Thank you to the BlockCatIO team for the python flattener