You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

truffle-flattener

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

truffle-flattener

Truffle Flattener concats solidity files developed under Truffle with all of their dependencies


Version published
Weekly downloads
5.8K
increased by1.65%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

truffle-flattener

npm

Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies.

This tool helps you to verify contracts developed with Truffle and Buidler on Etherscan, or debugging them on Remix, by merging your files and their dependencies in the right order.

If you are still using Truffle, we recommend you try Buidler, our Ethereum development environment, which is much faster and flexible.

Hardhat support

If you are using Hardhat, you don't need this project. Use npx hardhat flatten instead.

Installation

npm install truffle-flattener -g

Usage

Just install it with npm in your truffle project and run truffle-flattener <solidity-files>.

Limitations

Aliased imports (eg: import {symbol1 as alias, symbol2} from "filename";) are not supported by truffle-flattener.

Keywords

FAQs

Package last updated on 12 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc