@nomiclabs/buidler-etherscan
Buidler plugin for verifying contracts on etherscan
Last updated 21 days ago by alcuadrado .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nomiclabs/buidler-etherscan 
SYNC missed versions from official npm registry.

npm buidler

buidler-etherscan

Buidler plugin for integration with Etherscan's contract verification service.

What

This plugin verifies your contracts on Etherscan.

Installation

npm install --save-dev @nomiclabs/buidler-etherscan

And add the following statement to your buidler.config.js:

usePlugin("@nomiclabs/buidler-etherscan");

Tasks

This plugin provides the verify-contract task, which allows you to verify contracts through Etherscan's service.

Environment extensions

This plugin does not extend the environment.

Usage

You need to add the following Etherscan config to your buidler.config.js file:

module.exports = {
  etherscan: {
    // The url for the Etherscan API you want to use.
    // For example, here we're using the one for the Ropsten test network
    url: "https://api-ropsten.etherscan.io/api",
    // Your API key for Etherscan
    // Obtain one at https://etherscan.io/
    apiKey: "YOUR_ETHERSCAN_API_KEY"
  }
};

Lastly, run the verify-contract task like so:

npx buidler verify-contract --contract-name MyContract --address DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"

TypeScript support

You need to add this to your tsconfig.json's files array: "node_modules/@nomiclabs/buidler-etherscan/src/type-extensions.d.ts"

Current Tags

  • 1.3.3                                ...           latest (21 days ago)
  • 1.3.3-rc.0                                ...           rc (a month ago)

26 Versions

  • 1.3.3                                ...           21 days ago
  • 1.3.3-rc.0                                ...           a month ago
  • 1.3.2                                ...           a month ago
  • 1.3.1                                ...           a month ago
  • 1.3.0                                ...           a month ago
  • 1.3.0-rc.1                                ...           2 months ago
  • 1.3.0-rc.0                                ...           2 months ago
  • 1.2.0                                ...           3 months ago
  • 1.2.0-rc.4                                ...           3 months ago
  • 1.2.0-rc.3                                ...           3 months ago
  • 1.2.0-rc.2                                ...           3 months ago
  • 1.2.0-rc.1                                ...           3 months ago
  • 1.2.0-rc.0                                ...           3 months ago
  • 1.1.3-rc.0                                ...           4 months ago
  • 1.1.2                                ...           4 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.1.0-rc.1                                ...           4 months ago
  • 1.1.0-rc.0                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0-beta.13                                ...           8 months ago
  • 1.0.0-beta.12                                ...           8 months ago
  • 1.0.0-beta.11                                ...           8 months ago
  • 1.0.0-beta.10                                ...           9 months ago
  • 1.0.0-beta.9                                ...           10 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 41
Dependencies (3)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |