solidity-flattener icon indicating copy to clipboard operation
solidity-flattener copied to clipboard

A python utility to flatten Solidity code with imports into a single file.

Results 39 solidity-flattener issues
Sort by recently updated
recently updated
newest added

Space-delimited, i.e. --solc-paths="my_solidity_path=my_actual_path my_solidity_path2=my_actual_path2" Using slice notation.

Fixes Issue #17 . Installs Python 3.5+ site-package through pip instead of for both Python2 and Python3

Hi, I'd like to flatten contracts, from which one is [OraclizeAPI.sol](https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol) from OraclizeIT. I found that hex literals (like this below) throw the flattener: ``` bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";...

`pip install solidity_flattener Requirement already satisfied: solidity_flattener in c:\users\sylva\appdata\local\programs\python\python37\lib\site-packages` `solidity_flattener Token.sol 'solidity_flattener' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.`...

Adding `--sol-version` parameter with `^0.4.13` as a default value. A temporal fix for that issue. Better to replace it with actual version checks in the future

env: * Windows 10 * Python 3.6.3 * Solc 0.4.18+commit.9cf6e910.Windows.msvc Actual behavior: Produced output contains single `CR` occurrences: ![image](https://user-images.githubusercontent.com/5207748/33491244-b12375ee-d6ca-11e7-9aa2-dc0f731e5f84.png) Additional `CR`s adding new lines to the code. Expected behavior: Produced...

Though it's a non issue, as it's very easy to replace that single line, still wanted to add this issue so people are aware of it.

Also refactored the way solc_args are created to make it a bit easier to add new arguments in future if needed.

Fix for issue #5: accepting multiple paths via --solc-paths. Also, added support for --allow-paths solc option.

Fails for contracts on `solidity ^0.4.23` with the following error: ``` Error: Expected identifier, got 'LParen' constructor(address _token, address _colonyMultiSig) public ^ lib/dappsys/auth.sol:31:16: Error: Expected identifier, got 'LParen' constructor() public...