4.0.0 • Published 7 years ago
embark-etherscan-verifier v4.0.0
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
4.0.0
7 years ago