truffle-plugin-verify
Advanced tools
Comparing version 0.1.0-alpha2 to 0.1.0-alpha3
{ | ||
"name": "truffle-plugin-verify", | ||
"version": "0.1.0-alpha2", | ||
"version": "0.1.0-alpha3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/rkalis/ethroulette", |
# truffle-plugin-verify | ||
[](https://www.npmjs.com/package/truffle-plugin-verify) | ||
[](https://www.npmjs.com/package/truffle-plugin-verify) | ||
[](https://www.npmjs.com/package/truffle-plugin-verify) | ||
This truffle plugin allows you to automatically verify your smart contracts source code on Etherscan, straight from the Truffle CLI. | ||
@@ -28,4 +32,4 @@ | ||
verify: { | ||
etherscanApiKey: 'MY_API_KEY' | ||
api_keys: { | ||
etherscan: 'MY_API_KEY' | ||
} | ||
@@ -40,2 +44,4 @@ } | ||
The network parameter should correspond to a network defined in the Truffle config file, with the correct network id set. The Ethereum main net and all public testnets are supported. | ||
For example, if we defined `rinkeby` as network in Truffle, and we wish to verify the `SimpleStorage` contract: | ||
@@ -50,3 +56,3 @@ | ||
## Limitations & Roadmap | ||
This plugin is in a very early version, so there is still a lot missing. Below is a non-exhaustive list of features that are currently missing from the plugin, that will be added in a later release. | ||
This plugin is in a very early version, so there is still functionality missing. Below is a non-exhaustive list of features that are currently missing from the plugin, that will be added in a later release. | ||
@@ -58,7 +64,7 @@ * The plugin only works with single file contracts (i.e. no import flattening) | ||
* The plugin has no graceful error handling, so be sure to follow the usage exactly | ||
* The plugin currently only supports mainnet and rinkeby | ||
* The plugin assumes it can find build artifacts under the `build/contracts/` directory (i.e. no support for custom paths) | ||
* The plugin can only verify one smart contract at a time, instead of automatically verifying all deployed contracts | ||
* There is no automatic testing / build process in place | ||
## Support | ||
If you found this plugin and can't wait for the above features to be completed, send me some Ξ or tokens at `0xe126b3E5d052f1F575828f61fEBA4f4f2603652a` and tweet me [@RoscoKalis](https://twitter.com/RoscoKalis) to let me know what you want your money to go towards. |
@@ -7,3 +7,6 @@ const axios = require('axios') | ||
[1]: 'https://api.etherscan.io/api', | ||
[4]: 'https://api-rinkeby.etherscan.io/api' | ||
[3]: 'https://api-ropsten.etherscan.io/api', | ||
[4]: 'https://api-rinkeby.etherscan.io/api', | ||
[5]: 'https://api-goerli.etherscan.io/api', | ||
[42]: 'https://api-kovan.etherscan.io/api', | ||
} | ||
@@ -54,3 +57,3 @@ | ||
const apiUrl = API_URLS[networkId] | ||
const apiKey = config.verify.etherscanApiKey | ||
const apiKey = config.api_keys.etherscan | ||
const contractName = config._[1] | ||
@@ -57,0 +60,0 @@ const artifactPath = `${config.working_directory}/build/contracts/${contractName}.json` |
6843
70
67