Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "workspace:^10.0.0",
"@typechain/ethers-v5": "workspace:^10.1.0",
"@typechain/hardhat": "workspace:^6.0.0",
"@types/chai": "^4.2.15",
"@types/chai-as-promised": "^7.1.3",
Expand All @@ -23,10 +23,10 @@
"chai-as-promised": "^7.1.1",
"dotenv": "^8.2.0",
"ethereum-waffle": "^3.2.2",
"ethers": "5.4.0",
"@ethersproject/providers": "5.4.0",
"@ethersproject/contracts": "5.4.0",
"@ethersproject/abi": "5.4.0",
"ethers": "5.7.0",
"@ethersproject/providers": "5.7.0",
"@ethersproject/contracts": "5.7.0",
"@ethersproject/abi": "5.7.0",
"hardhat": "^2.9.9",
"ts-node": "^10.7.0",
"typechain": "workspace:^8.0.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/hardhat-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
"devDependencies": {
"@ethersproject/providers": "^5.4.7",
"@ethersproject/abi": "^5.4.7",
"@ethersproject/contracts": "^5.4.7",
"@ethersproject/bignumber": "^5.4.7",
"@ethersproject/abstract-signer": "^5.4.7",
"@ethersproject/bytes": "^5.4.7",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@typechain/ethers-v5": "workspace:^10.1.0",
"@typechain/hardhat": "workspace:^6.1.3",
"ethers": "^5.4.7",
"ethers": "^5.7.0",
"hardhat": "^2.9.9",
"test-utils": "1.0.0",
"typechain": "workspace:^8.1.0"
Expand Down
14 changes: 7 additions & 7 deletions packages/hardhat-test/typechain-types/Counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
CallOverrides,
} from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";
import type { BigNumber } from "@ethersproject/bignumber";
import type { BytesLike } from "@ethersproject/bytes";
import type {
Interface,
FunctionFragment,
Result,
EventFragment,
Expand All @@ -26,7 +26,7 @@ import type {
PromiseOrValue,
} from "./common";

export interface CounterInterface extends utils.Interface {
export interface CounterInterface extends Interface {
functions: {
"countDown()": FunctionFragment;
"countUp()": FunctionFragment;
Expand Down
13 changes: 5 additions & 8 deletions packages/hardhat-test/typechain-types/Demo.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BigNumberish,
Signer,
utils,
} from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";
import type { BigNumber, BigNumberish } from "@ethersproject/bignumber";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
Expand Down Expand Up @@ -40,7 +37,7 @@ export declare namespace Demo {
};
}

export interface DemoInterface extends utils.Interface {
export interface DemoInterface extends Interface {
functions: {};

events: {};
Expand Down
7 changes: 4 additions & 3 deletions packages/hardhat-test/typechain-types/Directory/Hello.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { BaseContract, Signer, utils } from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
PromiseOrValue,
} from "../common";

export interface HelloInterface extends utils.Interface {
export interface HelloInterface extends Interface {
functions: {};

events: {};
Expand Down
13 changes: 5 additions & 8 deletions packages/hardhat-test/typechain-types/StructsInConstructor.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BigNumberish,
Signer,
utils,
} from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";
import type { BigNumber, BigNumberish } from "@ethersproject/bignumber";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
Expand All @@ -28,7 +25,7 @@ export type Vector2StructOutput = [BigNumber, BigNumber] & {
y: BigNumber;
};

export interface StructsInConstructorInterface extends utils.Interface {
export interface StructsInConstructorInterface extends Interface {
functions: {};

events: {};
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-test/typechain-types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { Listener } from "@ethersproject/providers";
import type { Event, EventFilter } from "ethers";
import type { Event, EventFilter } from "@ethersproject/contracts";

export interface TypedEvent<
TArgsArray extends Array<any> = any,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Overrides } from "@ethersproject/contracts";
import { ContractFactory, Contract } from "@ethersproject/contracts";

import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Interface } from "@ethersproject/abi";
import type { PromiseOrValue } from "../common";
import type { Counter, CounterInterface } from "../Counter";

Expand Down Expand Up @@ -101,11 +106,11 @@ export class Counter__factory extends ContractFactory {
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): CounterInterface {
return new utils.Interface(_abi) as CounterInterface;
return new Interface(_abi) as CounterInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
signerOrProvider: Signer | Provider | undefined
): Counter {
return new Contract(address, _abi, signerOrProvider) as Counter;
}
Expand Down
14 changes: 11 additions & 3 deletions packages/hardhat-test/typechain-types/factories/Demo__factory.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Overrides } from "@ethersproject/contracts";
import { ContractFactory, Contract } from "@ethersproject/contracts";

import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Interface } from "@ethersproject/abi";
import type { PromiseOrValue } from "../common";
import type { Demo, DemoInterface } from "../Demo";

Expand Down Expand Up @@ -93,9 +98,12 @@ export class Demo__factory extends ContractFactory {
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): DemoInterface {
return new utils.Interface(_abi) as DemoInterface;
return new Interface(_abi) as DemoInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): Demo {
static connect(
address: string,
signerOrProvider: Signer | Provider | undefined
): Demo {
return new Contract(address, _abi, signerOrProvider) as Demo;
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
Signer,
utils,
Contract,
ContractFactory,
BigNumberish,
Overrides,
} from "ethers";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Overrides } from "@ethersproject/contracts";
import { ContractFactory, Contract } from "@ethersproject/contracts";
import type { BigNumberish } from "@ethersproject/bignumber";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Interface } from "@ethersproject/abi";
import type { PromiseOrValue } from "../../common";
import type { Hello, HelloInterface } from "../../Directory/Hello";

Expand Down Expand Up @@ -69,9 +67,12 @@ export class Hello__factory extends ContractFactory {
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): HelloInterface {
return new utils.Interface(_abi) as HelloInterface;
return new Interface(_abi) as HelloInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): Hello {
static connect(
address: string,
signerOrProvider: Signer | Provider | undefined
): Hello {
return new Contract(address, _abi, signerOrProvider) as Hello;
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Overrides } from "@ethersproject/contracts";
import { ContractFactory, Contract } from "@ethersproject/contracts";

import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Interface } from "@ethersproject/abi";
import type { PromiseOrValue } from "../common";
import type {
StructsInConstructor,
Expand Down Expand Up @@ -81,11 +86,11 @@ export class StructsInConstructor__factory extends ContractFactory {
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): StructsInConstructorInterface {
return new utils.Interface(_abi) as StructsInConstructorInterface;
return new Interface(_abi) as StructsInConstructorInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
signerOrProvider: Signer | Provider | undefined
): StructsInConstructor {
return new Contract(
address,
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@typechain/ethers-v5": "workspace:^10.1.0",
"@types/fs-extra": "^9.0.7",
"@types/rimraf": "^3.0.0",
"ethers": "^5.4.7",
"ethers": "^5.7.0",
"hardhat": "^2.9.9",
"rimraf": "^3.0.2",
"typechain": "workspace:^8.1.0",
Expand All @@ -49,7 +49,7 @@
"@ethersproject/abi": "^5.4.7",
"@ethersproject/providers": "^5.4.7",
"@typechain/ethers-v5": "workspace:^10.1.0",
"ethers": "^5.4.7",
"ethers": "^5.7.0",
"hardhat": "^2.9.9",
"typechain": "workspace:^8.1.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { BaseContract, Signer, utils } from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
PromiseOrValue,
} from "../../common";

export interface EdgeCasesInterface extends utils.Interface {
export interface EdgeCasesInterface extends Interface {
functions: {};

events: {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { BaseContract, Signer, utils } from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
PromiseOrValue,
} from "../../common";

export interface TestContractInterface extends utils.Interface {
export interface TestContractInterface extends Interface {
functions: {};

events: {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { BaseContract, Signer, utils } from "ethers";
import type { BaseContract } from "@ethersproject/contracts";
import type { Signer } from "@ethersproject/abstract-signer";

import type { Interface } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
PromiseOrValue,
} from "../../common";

export interface TestContract1Interface extends utils.Interface {
export interface TestContract1Interface extends Interface {
functions: {};

events: {};
Expand Down
Loading