@todo:
if there are smart contracts with circular imports, but otherwise any imports in general
- i want to run an analysis tool which starts to analyse a given main solidity contract
- walks the source code and finds all imports in the contracts without an endless loop because of circular imports
- decides on a deterministic order of imports (e.g. breadth first search or depth first search, etc...)
- removes redundant imports
- hashes contracts with no imports or only hash imports and saves that contract under it's
<hashname>
- replaces all imports in other contracts names to
<hashname>
- continue to hash contracts with no imports or only hash imports and do the same as in step 5. and 6.
- at some point arrives at the given main contract which has now only hash name imports and hashes it and saves it under it's hash name too
resources:
@todo:if there are smart contracts with circular imports, but otherwise any imports in general
<hashname><hashname>resources: