JSPM

truffle-plugin-stdjsonin

0.5.15
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 144
  • Score
    100M100P100Q86765F
  • License MIT

generate Standrad JSON Input from the Truffle CLI

Package Exports

  • truffle-plugin-stdjsonin
  • truffle-plugin-stdjsonin/stdjsonin.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (truffle-plugin-stdjsonin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.