0.5.15 • Published 9 months ago
truffle-plugin-stdjsonin v0.5.15
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
- Install the plugin using npm
yarn add -D truffle-plugin-stdjsonin
Add the plugin to your
truffle-config.js
filemodule.exports = { /* ... rest of truffle-config */ plugins: [ 'truffle-plugin-stdjsonin' ] }
Usage
- Run the plugin on your specified contract name
Atruffle run stdjsonin ContractName
ContractName-Input.json
file is generated in your project directory.