Socket
Socket
Sign inDemoInstall

@nomicfoundation/hardhat-ethers

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomicfoundation/hardhat-ethers - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

2

internal/ethers-utils.d.ts
import type { TransactionRequest, PreparedTransactionRequest, BlockParams, TransactionResponseParams, TransactionReceiptParams, LogParams, JsonRpcTransactionRequest } from "ethers";
export declare type FormatFunc = (value: any) => any;
export type FormatFunc = (value: any) => any;
export declare function copyRequest(req: TransactionRequest): PreparedTransactionRequest;

@@ -4,0 +4,0 @@ export declare function resolveProperties<T>(value: {

@@ -365,2 +365,8 @@ "use strict";

}
if (typeof blockTag === "bigint") {
if (blockTag >= 0n) {
return (0, ethers_1.toQuantity)(blockTag);
}
return this.getBlockNumber().then((b) => (0, ethers_1.toQuantity)(b + Number(blockTag)));
}
throw new errors_1.HardhatEthersError(`Invalid blockTag: ${blockTag}`);

@@ -367,0 +373,0 @@ }

{
"name": "@nomicfoundation/hardhat-ethers",
"version": "3.0.4",
"version": "3.0.5",
"description": "Hardhat plugin for ethers",

@@ -18,12 +18,2 @@ "homepage": "https://github.com/nomicfoundation/hardhat/tree/main/packages/hardhat-ethers",

],
"scripts": {
"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\"",
"build": "tsc --build .",
"prepublishOnly": "yarn build",
"clean": "rimraf dist internal types *.{d.ts,js}{,.map} build-test tsconfig.tsbuildinfo"
},
"files": [

@@ -48,2 +38,3 @@ "dist/src/",

"@types/chai-as-promised": "^7.1.3",
"@types/debug": "^4.1.4",
"@types/lodash.isequal": "^4.5.6",

@@ -70,3 +61,5 @@ "@types/mocha": ">=9.1.0",

"ts-node": "^10.8.0",
"typescript": "~4.7.4"
"typescript": "~5.0.0",
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "^1.0.2",
"@nomicfoundation/eslint-plugin-slow-imports": "^1.0.0"
},

@@ -76,3 +69,13 @@ "peerDependencies": {

"hardhat": "^2.0.0"
},
"scripts": {
"lint": "pnpm prettier --check && pnpm eslint",
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
"eslint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"prettier": "prettier \"**/*.{js,md,json}\"",
"pretest": "cd ../.. && pnpm build",
"test": "mocha --recursive \"test/**/*.ts\"",
"build": "tsc --build .",
"clean": "rimraf dist internal types *.{d.ts,js}{,.map} build-test tsconfig.tsbuildinfo"
}
}
}

@@ -31,7 +31,2 @@ "use strict";

class HardhatEthersSigner {
constructor(address, _provider, _gasLimit) {
this._gasLimit = _gasLimit;
this.address = (0, ethers_1.getAddress)(address);
this.provider = _provider;
}
static async create(provider, address) {

@@ -78,2 +73,7 @@ const hre = await Promise.resolve().then(() => __importStar(require("hardhat")));

}
constructor(address, _provider, _gasLimit) {
this._gasLimit = _gasLimit;
this.address = (0, ethers_1.getAddress)(address);
this.provider = _provider;
}
connect(provider) {

@@ -80,0 +80,0 @@ return new HardhatEthersSigner(this.address, provider);

@@ -600,2 +600,11 @@ import type {

if (typeof blockTag === "bigint") {
if (blockTag >= 0n) {
return toQuantity(blockTag);
}
return this.getBlockNumber().then((b) =>
toQuantity(b + Number(blockTag))
);
}
throw new HardhatEthersError(`Invalid blockTag: ${blockTag}`);

@@ -602,0 +611,0 @@ }

@@ -12,3 +12,3 @@ import type * as ethers from "ethers";

}
export declare type DeployContractOptions = FactoryOptions & ethers.Overrides;
export type DeployContractOptions = FactoryOptions & ethers.Overrides;
export declare function getContractFactory<A extends any[] = any[], I = ethers.Contract>(name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.ContractFactory<A, I>>;

@@ -15,0 +15,0 @@ export declare function getContractFactory<A extends any[] = any[], I = ethers.Contract>(abi: any[], bytecode: ethers.BytesLike, signer?: ethers.Signer): Promise<ethers.ContractFactory<A, I>>;

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc