Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nomicfoundation/truffle-flattener
Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies
https://github.com/nomicfoundation/truffle-flattener
buidler ethereum smart-contracts solidity truffle
Last synced: 3 days ago
JSON representation
Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies
- Host: GitHub
- URL: https://github.com/nomicfoundation/truffle-flattener
- Owner: NomicFoundation
- License: mit
- Created: 2017-10-25T20:25:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-13T05:34:47.000Z (over 1 year ago)
- Last Synced: 2025-01-11T19:11:29.543Z (10 days ago)
- Topics: buidler, ethereum, smart-contracts, solidity, truffle
- Language: JavaScript
- Homepage:
- Size: 333 KB
- Stars: 376
- Watchers: 10
- Forks: 98
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# truffle-flattener
[![npm](https://img.shields.io/npm/v/truffle-flattener.svg)](https://www.npmjs.com/package/truffle-flattener)
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](https://etherscan.io), or debugging them on
[Remix](https://remix.ethereum.org), by merging your files and their
dependencies in the right order.If you are still using Truffle, we recommend you try [Buidler](https://github.com/nomiclabs/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 `.## Limitations
Aliased imports (eg: `import {symbol1 as alias, symbol2} from "filename";`) are
not supported by `truffle-flattener`.