├── .eslintrc.json ├── .github └── workflows │ └── config.yml ├── .gitignore ├── .travis.yml ├── LICENSE.md ├── README.md ├── config.json ├── demo ├── lib │ ├── oracles-contract-ballot │ │ └── src │ │ │ └── BallotClass.sol │ ├── oracles-contract-key │ │ └── src │ │ │ └── KeyClass.sol │ └── oracles-contract-validator │ │ └── src │ │ └── ValidatorClass.sol └── src │ ├── BallotsManager.sol │ ├── KeysManager.sol │ ├── Oracles.sol │ ├── ValidatorsManager.sol │ └── owned.sol ├── helpers ├── change-relative-path-to-absolute.js ├── clean-path.js ├── constants.js ├── deduplicate-lines.js ├── find-all-import-paths.js ├── find-file.js ├── logger.js ├── replace-all-imports-in-current-layer.js ├── replace-all-imports-recursively.js ├── update-import-object-location-in-target.js └── variables.js ├── index.js ├── package.json └── test ├── contracts ├── dep.sol ├── dep2.sol ├── test.sol └── testMock1.sol ├── helpers ├── change-relative-path-to-absolute.js └── clean-path.js └── index.js /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/.github/workflows/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | .DS_Store 4 | /out -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/README.md -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/config.json -------------------------------------------------------------------------------- /demo/lib/oracles-contract-ballot/src/BallotClass.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/lib/oracles-contract-ballot/src/BallotClass.sol -------------------------------------------------------------------------------- /demo/lib/oracles-contract-key/src/KeyClass.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/lib/oracles-contract-key/src/KeyClass.sol -------------------------------------------------------------------------------- /demo/lib/oracles-contract-validator/src/ValidatorClass.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/lib/oracles-contract-validator/src/ValidatorClass.sol -------------------------------------------------------------------------------- /demo/src/BallotsManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/src/BallotsManager.sol -------------------------------------------------------------------------------- /demo/src/KeysManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/src/KeysManager.sol -------------------------------------------------------------------------------- /demo/src/Oracles.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/src/Oracles.sol -------------------------------------------------------------------------------- /demo/src/ValidatorsManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/src/ValidatorsManager.sol -------------------------------------------------------------------------------- /demo/src/owned.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/demo/src/owned.sol -------------------------------------------------------------------------------- /helpers/change-relative-path-to-absolute.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/change-relative-path-to-absolute.js -------------------------------------------------------------------------------- /helpers/clean-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/clean-path.js -------------------------------------------------------------------------------- /helpers/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/constants.js -------------------------------------------------------------------------------- /helpers/deduplicate-lines.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/deduplicate-lines.js -------------------------------------------------------------------------------- /helpers/find-all-import-paths.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/find-all-import-paths.js -------------------------------------------------------------------------------- /helpers/find-file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/find-file.js -------------------------------------------------------------------------------- /helpers/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/logger.js -------------------------------------------------------------------------------- /helpers/replace-all-imports-in-current-layer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/replace-all-imports-in-current-layer.js -------------------------------------------------------------------------------- /helpers/replace-all-imports-recursively.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/replace-all-imports-recursively.js -------------------------------------------------------------------------------- /helpers/update-import-object-location-in-target.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/update-import-object-location-in-target.js -------------------------------------------------------------------------------- /helpers/variables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/helpers/variables.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/package.json -------------------------------------------------------------------------------- /test/contracts/dep.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | 4 | contract Dep { 5 | 6 | } -------------------------------------------------------------------------------- /test/contracts/dep2.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.24; 2 | 3 | 4 | contract Dep2 { 5 | 6 | } -------------------------------------------------------------------------------- /test/contracts/test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/test/contracts/test.sol -------------------------------------------------------------------------------- /test/contracts/testMock1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/test/contracts/testMock1.sol -------------------------------------------------------------------------------- /test/helpers/change-relative-path-to-absolute.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/test/helpers/change-relative-path-to-absolute.js -------------------------------------------------------------------------------- /test/helpers/clean-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/test/helpers/clean-path.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorykop/solidity-flattener/HEAD/test/index.js --------------------------------------------------------------------------------