Solidity Unfolder
Unfolds all local imports in a solidity file to generate a flat solidity file.
Introduction
Manually combining all imports in a solidity file when verifying your contract source on Etherscan is time-consuming and cumbersome. This tool automatically traverses the dependency graph of imports and combines them in the correct order, which is ready to be pasted into the contract verifier.
NOTE: This tool won't work with imports that are aliased (i.e. import "./foo.sol" as bar; )
Installation
There's no any requirements for this tool.
pip install solidity-unfolder
Usage
usage: solu [-h] [-o *.sol] *.sol *.*.*
Unfolds all local imports in a solidity file to generate a flat solidity file.
Put the output file into out/ folders.
positional arguments:
*.sol target filename with imports
*.*.* solidity compiler version e.g. 0.4.24
optional arguments:
-h, --help show this help message and exit
-o *.sol, --output *.sol
output filename (default: flat.sol)
Contact
Feel free to contact me if there's any problems. And welcome to open issues and send pull requests.
Inspired by BlockCatIO
License
MIT License (2018), Jun-You Liu
Metadata
Release files for solidity-unfolder 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| solidity-unfolder-1.0.1.tar.gz | 3.1 kB | Details |
Release files / solidity-unfolder-1.0.1.tar.gz
| Download URL | solidity-unfolder-1.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4fecc021106e40eab6cfef555733a71247e5c425aa14c2f5b85c12d03471a4b
|
|
BLAKE2b-256 checksum How to use checksums |
32c37efc16d07f7da2d7383911e6a0f4e3858c4e1556576f5dc1f278c15a1497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |