https://github.com/ngduc/flatten-sol
command-line tool to flatten a solidity contract which uses `import "@openzeppelin/contracts/...`.
https://github.com/ngduc/flatten-sol
Last synced: 9 months ago
JSON representation
command-line tool to flatten a solidity contract which uses `import "@openzeppelin/contracts/...`.
- Host: GitHub
- URL: https://github.com/ngduc/flatten-sol
- Owner: ngduc
- License: mit
- Created: 2021-07-16T00:25:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T07:17:35.000Z (over 4 years ago)
- Last Synced: 2023-12-14T09:28:01.724Z (over 2 years ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flatten-Sol
`flatten-sol` - command-line tool to flatten a solidity contract which uses `import "@openzeppelin/contracts/...`.
- This tool will replace those import statements and flatten (combine) them into one file. The output file can be used for Etherscan's verifyContract.
- [Solidity file example](./example.sol)
- Support: openzeppelin contracts & contracts-upgradeable.
- Based on [solidity-flattener](https://github.com/poanetwork/solidity-flattener)
### Installation & Usage:
```
Installation:
$ npm install flatten-sol -g
Usage:
$ npx flatten-sol
```
Output file is located in "./out" directory.
### Links:
- [Create-web3js-app](https://github.com/coddx-hq/create-web3js-app) CLI - create a new app with Web3js, React, Hardhat, Express, Vercel.