truffle-plugin-stdjsonin

0.5.15 • Public • Published

truffle-plugin-stdjsonin

A Truffle plugin for generating a flat Solidity Json Input file.

The Solidity Json Input format is preferred over flattening your files during verification on Etherscan as it :

  • preserves code formatting
  • maintains multipart files
  • embeds compiler settings, including optimization and bytecodehash

Installation

  1. Install the plugin using npm
yarn add -D truffle-plugin-stdjsonin
  1. Add the plugin to your truffle-config.js file
module.exports = {
  /* ... rest of truffle-config */

  plugins: [
   'truffle-plugin-stdjsonin'
  ]
}

Usage

  1. Run the plugin on your specified contract name
truffle run stdjsonin ContractName

A ContractName-Input.json file is generated in your project directory.

Package Sidebar

Install

npm i truffle-plugin-stdjsonin

Weekly Downloads

3

Version

0.5.15

License

MIT

Unpacked Size

11.1 kB

Total Files

6

Last publish

Collaborators

  • nhancv