From 248408510eb6ef4cb673dd0cf9f81e8a2bbf5edd Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 31 Dec 2019 13:10:33 +0530 Subject: [PATCH] release 2.1.4 --- README.md | 27 +++++++++++++++++---------- package.json | 2 +- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6a3962f..2bfc864 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ [![npm version](https://badge.fury.io/js/sol-verifier.svg)](https://www.npmjs.com/package/sol-verifier) [![Build status](https://travis-ci.com/Aniket-Engg/sol-verifier.svg?branch=master)](https://travis-ci.com/Aniket-Engg/sol-verifier) [![Coverage Status](https://coveralls.io/repos/github/Aniket-Engg/sol-verifier/badge.svg?branch=master)](https://coveralls.io/github/Aniket-Engg/sol-verifier?branch=master) -[![npm](https://img.shields.io/npm/dt/sol-verifier.svg)](https://www.npmjs.com/package/sol-verifier) +[![npm](https://img.shields.io/npm/dw/sol-verifier.svg)](https://www.npmjs.com/package/sol-verifier) +[![npm](https://img.shields.io/npm/dt/sol-verifier.svg?label=Total%20Downloads)](https://www.npmjs.com/package/sol-verifier) ![NPM](https://img.shields.io/npm/l/sol-verifier.svg) [![Package Quality](https://npm.packagequality.com/shield/sol-verifier.svg)](https://packagequality.com/#?package=sol-verifier) @@ -32,12 +33,15 @@ Usage: sol-verifier [options] Options: -v, --version output the version number - -k, --key Add Etherscan API Key (recommended but optional) - -c, --contract Add Contract File Path (required) - -a, --address Add Address of Deployed Contract (required) - -n, --network Add Ethereum Network on Which Contract is deployed (if applicable) - -N, --contractName Add Contract Name if Passed File Contains More Than One Contract (if applicable) - -p, --constructParams [param1, param2,...] Add Constructor Parameter Values Same as in Deployment (if applicable) + -k, --key Etherscan API Key (recommended but optional) + -c, --contract Contract File Path (required) + -a, --address Address of Deployed Contract (required) + -n, --network Ethereum Network on Which Contract is deployed (if applicable) + -N, --contractName Contract Name if Passed File Contains More Than One Contract (if applicable) + -p, --constructParams [param1, param2,...] Constructor Parameter Values Same as in Deployment (if applicable) + -r, --runs Optimizer Runs (optional, default 200) + -e, --evmVersion See valid options: https://solidity.readthedocs.io/en/latest/using-the-compiler.html#target-options (optional, default compiler-default) + -l, --licenseType Valid codes 1-12, see https://etherscan.io/contract-license-types (optional, default 1=No License) -o, --optimize Add This Flag to Optimize The Contract (optional) -h, --help output usage information ``` @@ -63,11 +67,11 @@ $ sol-verifier -c -a ``` That's it. -In an extensive one, where you have a contract importing some other contracts and having constructor with parameters,it can be verified with this command: +When you have a contract importing some other contracts and having constructor with parameters, it can be verified with this command: ``` $ sol-verifier -k -c -a -n -p -N ``` -If contract is deployed by enabling optimization, flag `-o` can be used to enable the optimization during verification. On successful verification, you will get response as : +If contract is compiled & deployed by enabling optimization, flag `-o` can be used to enable the optimization during verification. On successful verification, you will get response as : ``` Info: Contract has been successfully verified. ``` @@ -83,7 +87,10 @@ A request object will be passed to verify contract. See below: (Make sure keys o network : 'mainnet/ropsten/rinkeby/kovan', // Ethereum network used (required) contractName: 'contractName' // Contract name, only if contract file has more than one contracts cvalues : [constructor, values, in, array], // constructor values in array, only if contract has constructor - optimizationFlag: false // Set `true` to enable optimization (Default: false) + evmVersion: 'istanbul', // See valid options: https://solidity.readthedocs.io/en/latest/using-the-compiler.html#target-options (optional, default compiler-default) + runs: 200, // Optimizer Runs (optional, default 200) + licenseType: 1, // Valid codes 1-12, see https://etherscan.io/contract-license-types (optional, default 1=No License) + optimizationFlag: false // Set `true` to enable optimization (default false) }; await verifier.verifyContract(data); diff --git a/package.json b/package.json index c6cae2a..9ba8aae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sol-verifier", - "version": "2.1.3", + "version": "2.1.4", "description": "Verify Solidity Smart Contracts on Etherscan", "main": "index.js", "scripts": {