npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

embark-etherscan-verifier

4.0.0 • Public • Published

Embark-etherscan-verifier

Plugin for Embark to flatten and verify contracts on Etherscan

Installation

In your Embark dapp directory:

npm install embark-etherscan-verifier --save or yarn add embark-etherscan-verifier

then add embark-etherscan-verifier to the plugins section in embark.json:

  "plugins": {
    "embark-etherscan-verifier": {}
  }

Usage

Flatten

In the console, type flatten or flatten ContractName(s)

  • flatten: Flattens all contracts
  • flatten ContractName(s): Flattens the specified contract(s). For multiple contracts, separate them using a comma.
  • Example: flatten SimpleStorage,Token

Verify

You can also automatically verify on a valid network (mainnet, ropsten, rinkeby, kovan)

In the console:

  • verify <API_KEY> <contractName>: Verifies the specified contract (flattens if it was not done before)
    • You need an Etherscan API key. You can find a simple tutorial here
    • Example: verify YOUR_KEY SimpleStorage

Requirements

  • Embark 4.0.0 or higher

install

npm i embark-etherscan-verifier

Downloadsweekly downloads

3

version

4.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability