Socket
Socket
Sign inDemoInstall

@nomiclabs/hardhat-etherscan

Package Overview
Dependencies
286
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.3 to 2.1.4

5

dist/src/network/prober.js

@@ -27,2 +27,3 @@ "use strict";

NetworkID[NetworkID["POLYGON"] = 137] = "POLYGON";
NetworkID[NetworkID["POLYGON_MUMBAI"] = 80001] = "POLYGON_MUMBAI";
})(NetworkID || (NetworkID = {}));

@@ -82,2 +83,6 @@ const networkIDtoEndpoints = {

},
[NetworkID.POLYGON_MUMBAI]: {
apiURL: "https://api-testnet.polygonscan.com/api",
browserURL: "https://mumbai.polygonscan.com/",
},
};

@@ -84,0 +89,0 @@ async function getEtherscanEndpoints(provider, networkName) {

20

package.json
{
"name": "@nomiclabs/hardhat-etherscan",
"version": "2.1.3",
"version": "2.1.4",
"description": "Hardhat plugin for verifying contracts on etherscan",

@@ -23,4 +23,6 @@ "repository": "github:nomiclabs/hardhat",

"scripts": {
"lint:fix": "prettier --write \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\" && yarn lint --fix",
"lint": "tslint --config tslint.json --project ./tsconfig.json",
"lint": "yarn prettier --check && yarn eslint",
"lint:fix": "yarn prettier --write && yarn eslint --fix",
"eslint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"prettier": "prettier \"**/*.{js,md,json}\"",
"test": "mocha --recursive \"test/**/*.ts\" --exit",

@@ -37,3 +39,3 @@ "build": "tsc --build .",

"dependencies": {
"@ethersproject/abi": "^5.0.2",
"@ethersproject/abi": "^5.1.2",
"@ethersproject/address": "^5.0.2",

@@ -55,3 +57,9 @@ "cbor": "^5.0.2",

"@types/semver": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"chai": "^4.2.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"ethers": "^5.0.8",

@@ -64,6 +72,2 @@ "hardhat": "^2.0.4",

"ts-node": "^8.1.0",
"tslint-config-prettier": "^1.18.0",
"tslint-consistent-codestyle": "^1.15.1",
"tslint-plugin-prettier": "^2.0.1",
"tslint": "^5.16.0",
"typescript": "~4.0.3"

@@ -70,0 +74,0 @@ },

9

README.md

@@ -1,3 +0,2 @@

[![npm](https://img.shields.io/npm/v/@nomiclabs/hardhat-etherscan.svg)](https://www.npmjs.com/package/@nomiclabs/hardhat-etherscan)
[![hardhat](https://hardhat.org/buidler-plugin-badge.svg?1)](https://hardhat.org)
[![npm](https://img.shields.io/npm/v/@nomiclabs/hardhat-etherscan.svg)](https://www.npmjs.com/package/@nomiclabs/hardhat-etherscan) [![hardhat](https://hardhat.org/buidler-plugin-badge.svg?1)](https://hardhat.org)

@@ -13,2 +12,3 @@ # hardhat-etherscan

It's smart and it tries to do as much as possible to facilitate the process:
- Just provide the deployment address and constructor arguments, and the plugin will detect locally which contract to verify.

@@ -121,3 +121,3 @@ - If your contract uses Solidity libraries, the plugin will detect them and deal with them automatically. You don't need to do anything about them.

SomeLibrary: "0x...",
}
};
```

@@ -129,3 +129,2 @@

```js

@@ -143,3 +142,3 @@ await hre.run("verify:verify", {

],
})
});
```

@@ -146,0 +145,0 @@

@@ -137,3 +137,3 @@ import { NomicLabsHardhatPluginError } from "hardhat/plugins";

public constructor(response: any) {
constructor(response: any) {
this.status = parseInt(response.status, 10);

@@ -140,0 +140,0 @@ this.message = response.result;

@@ -38,2 +38,3 @@ import {

POLYGON = 137,
POLYGON_MUMBAI = 80001,
}

@@ -94,2 +95,6 @@

},
[NetworkID.POLYGON_MUMBAI]: {
apiURL: "https://api-testnet.polygonscan.com/api",
browserURL: "https://mumbai.polygonscan.com/",
},
};

@@ -96,0 +101,0 @@

@@ -10,8 +10,3 @@ import {

import { LibraryNames } from "./libraries";
import {
inferSolcVersion,
measureExecutableSectionLength,
METADATA_ABSENT_VERSION_RANGE,
} from "./metadata";
import { inferSolcVersion, measureExecutableSectionLength } from "./metadata";

@@ -18,0 +13,0 @@ interface BytecodeExtractedData {

@@ -5,4 +5,2 @@ import type cbor from "cbor";

import { pluginName } from "../constants";
interface MetadataDescription {

@@ -9,0 +7,0 @@ solcVersion: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc