All Projects → orbxball → solidity-unfolder

orbxball / solidity-unfolder

Licence: MIT license
A Python package to flatten Solidity code with imports into a single file

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to solidity-unfolder

eosgo-client
A simple Go wrapper of EOS (eosio) RPC API, and more!
Stars: ✭ 29 (+52.63%)
Mutual labels:  smart-contracts
docs
Unleash Bitcoin's full potential with decentralized apps and smart contracts. The documentation covers key aspects of the Stacks network and technology and provides tutorials and other helpful content for developers.
Stars: ✭ 134 (+605.26%)
Mutual labels:  smart-contracts
algo-builder
Framework to automate development of Algorand Assets and Smart Contracts.
Stars: ✭ 132 (+594.74%)
Mutual labels:  smart-contracts
MCW-Azure-Blockchain
MCW Azure Blockchain
Stars: ✭ 35 (+84.21%)
Mutual labels:  smart-contracts
is wordpress
A python package to detect if a website is based on wordpress :)
Stars: ✭ 16 (-15.79%)
Mutual labels:  pypi-packages
EVM-Simulator
EVM-Simulator bachelor's thesis.
Stars: ✭ 36 (+89.47%)
Mutual labels:  smart-contracts
Solidity
Smart Contracts - Solidity
Stars: ✭ 122 (+542.11%)
Mutual labels:  smart-contracts
awesome-solidity-gas-optimization
Best resources for Solidity gas optimizations ⛽
Stars: ✭ 893 (+4600%)
Mutual labels:  smart-contracts
enigma-docker-network-deprecated
A containarized Enigma Protocol environment to start writing secret contracts
Stars: ✭ 50 (+163.16%)
Mutual labels:  smart-contracts
ora
Bloq Ora multi-blockchain smart contract compute oracle and validation engine
Stars: ✭ 28 (+47.37%)
Mutual labels:  smart-contracts
gas-reporting
Reference documentation on every gas price API and all the different formats
Stars: ✭ 85 (+347.37%)
Mutual labels:  smart-contracts
react-truffle-metamask
Build an DApp using react, redux, saga, truffle, metamask
Stars: ✭ 25 (+31.58%)
Mutual labels:  smart-contracts
Postables-Payment-Channel
Postables Reusable Multi Party Payment Channel. Efficient, and lean Payment Channels with a dash of airdrops. Written in Solidity with Golang bindings
Stars: ✭ 26 (+36.84%)
Mutual labels:  smart-contracts
hi-blockchain
Awesome blockchain resources
Stars: ✭ 14 (-26.32%)
Mutual labels:  smart-contracts
baseline
The Baseline Protocol is an open source initiative that combines advances in cryptography, messaging, and distributed ledger technology to enable confidential and complex coordination between enterprises while keeping data in systems of record. This repo serves as the main repo for the Baseline Protocol, containing core packages, examples, and r…
Stars: ✭ 565 (+2873.68%)
Mutual labels:  smart-contracts
prometheus-spec
Censorship-resistant trustless protocols for smart contract, generic & high-load computing & machine learning on top of Bitcoin
Stars: ✭ 24 (+26.32%)
Mutual labels:  smart-contracts
market-oracle
Set of smart contracts on Ethereum deal with exchange rate reporting and aggregation
Stars: ✭ 49 (+157.89%)
Mutual labels:  smart-contracts
ethereum-erc20
Fungible token implementation for the Ethereum blockchain.
Stars: ✭ 27 (+42.11%)
Mutual labels:  smart-contracts
v1-contracts
🐍Uniswap V1 smart contracts
Stars: ✭ 430 (+2163.16%)
Mutual labels:  smart-contracts
contracts
Off-the-shelf Solidity smart contracts
Stars: ✭ 100 (+426.32%)
Mutual labels:  smart-contracts

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 are no 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)

Example

solu contract-with-imports.sol 0.4.24

It will output flat.sol (default output filename) with solidity version 0.4.24 in out/ folder.

solu contract-with-imports.sol 0.4.20 --output contract-flat.sol

It will output contract-flat.sol with solidity version 0.4.20 in out/ folder.

Contact

Feel free to contact me if there's any problem. And welcome to open issues and send pull requests.

Inspired by BlockCatIO.

License

MIT License (2018), Jun-You Liu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].