solidity-flattener is a tool that helps you combine multiple Solidity Smart Contracts into one flat file. It does so by resolving the imports and inlining their contents.

Flattening your source files is especially useful once you decide to deploy to mainnet as they're easier to verify via tools like Etherscan.

  • Gnosis Chain

You might also enjoy