flatten-sol

0.1.2 • Public • Published

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
  • Support: openzeppelin contracts & contracts-upgradeable.
  • Based on solidity-flattener

Installation & Usage:

Installation:
$ npm install flatten-sol -g

Usage:
$ npx flatten-sol <filename.sol>

Output file is located in "./out" directory.

Links:

  • Create-web3js-app CLI - create a new app with Web3js, React, Hardhat, Express, Vercel.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.21latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.21
0.1.11
0.0.81
0.0.71
0.0.61
0.0.51
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i flatten-sol

Weekly Downloads

10

Version

0.1.2

License

MIT

Unpacked Size

21.5 kB

Total Files

15

Last publish

Collaborators

  • ngduc