Skip to content

Commit

Permalink
feat: typed attach return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Oct 29, 2024
1 parent 1319aa6 commit d2f54fa
Show file tree
Hide file tree
Showing 37 changed files with 75 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"@types/node"
]
}
}
}
},
"packageManager": "[email protected]+sha512.5d4bf97b349faf1a51318aa1ba887e99d9c36e203dbcb55938a91fddd2454246cb00723d6642f54d463a0f52a2701dadf8de002a37fc613c9cdc94ed5675ddce"
}
2 changes: 2 additions & 0 deletions packages/hardhat-test/typechain-types/Counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -52,6 +53,7 @@ export namespace CountedToEvent {

export interface Counter extends BaseContract {
connect(runner?: ContractRunner | null): Counter;
attach(target: string | Addressable): Counter;
waitForDeployment(): Promise<this>;

interface: CounterInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/hardhat-test/typechain-types/Demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
FunctionFragment,
Expand Down Expand Up @@ -37,6 +38,7 @@ export interface DemoInterface extends Interface {}

export interface Demo extends BaseContract {
connect(runner?: ContractRunner | null): Demo;
attach(target: string | Addressable): Demo;
waitForDeployment(): Promise<this>;

interface: DemoInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/hardhat-test/typechain-types/Directory/Hello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
FunctionFragment,
Interface,
Expand All @@ -20,6 +21,7 @@ export interface HelloInterface extends Interface {}

export interface Hello extends BaseContract {
connect(runner?: ContractRunner | null): Hello;
attach(target: string | Addressable): Hello;
waitForDeployment(): Promise<this>;

interface: HelloInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/hardhat-test/typechain-types/StructsInConstructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
FunctionFragment,
Expand All @@ -28,6 +29,7 @@ export interface StructsInConstructorInterface extends Interface {}

export interface StructsInConstructor extends BaseContract {
connect(runner?: ContractRunner | null): StructsInConstructor;
attach(target: string | Addressable): StructsInConstructor;
waitForDeployment(): Promise<this>;

interface: StructsInConstructorInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
FunctionFragment,
Interface,
Expand All @@ -20,6 +21,7 @@ export interface EdgeCasesInterface extends Interface {}

export interface EdgeCases extends BaseContract {
connect(runner?: ContractRunner | null): EdgeCases;
attach(target: string | Addressable): EdgeCases;
waitForDeployment(): Promise<this>;

interface: EdgeCasesInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
FunctionFragment,
Interface,
Expand All @@ -20,6 +21,7 @@ export interface TestContractInterface extends Interface {}

export interface TestContract extends BaseContract {
connect(runner?: ContractRunner | null): TestContract;
attach(target: string | Addressable): TestContract;
waitForDeployment(): Promise<this>;

interface: TestContractInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
FunctionFragment,
Interface,
Expand All @@ -20,6 +21,7 @@ export interface TestContract1Interface extends Interface {}

export interface TestContract1 extends BaseContract {
connect(runner?: ContractRunner | null): TestContract1;
attach(target: string | Addressable): TestContract1;
waitForDeployment(): Promise<this>;

interface: TestContract1Interface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -48,6 +49,7 @@ export interface SafeMathInterface extends Interface {

export interface SafeMath extends BaseContract {
connect(runner?: ContractRunner | null): SafeMath;
attach(target: string | Addressable): SafeMath;
waitForDeployment(): Promise<this>;

interface: SafeMathInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -140,6 +141,7 @@ export namespace TransferEvent {

export interface ERC20 extends BaseContract {
connect(runner?: ContractRunner | null): ERC20;
attach(target: string | Addressable): ERC20;
waitForDeployment(): Promise<this>;

interface: ERC20Interface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/DataTypesInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -400,6 +401,7 @@ export namespace event_struct_2Event {

export interface DataTypesInput extends BaseContract {
connect(runner?: ContractRunner | null): DataTypesInput;
attach(target: string | Addressable): DataTypesInput;
waitForDeployment(): Promise<this>;

interface: DataTypesInputInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/DataTypesPure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -138,6 +139,7 @@ export interface DataTypesPureInterface extends Interface {

export interface DataTypesPure extends BaseContract {
connect(runner?: ContractRunner | null): DataTypesPure;
attach(target: string | Addressable): DataTypesPure;
waitForDeployment(): Promise<this>;

interface: DataTypesPureInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/DataTypesView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -138,6 +139,7 @@ export interface DataTypesViewInterface extends Interface {

export interface DataTypesView extends BaseContract {
connect(runner?: ContractRunner | null): DataTypesView;
attach(target: string | Addressable): DataTypesView;
waitForDeployment(): Promise<this>;

interface: DataTypesViewInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -228,6 +229,7 @@ export namespace UpdateFrequencySetEvent {

export interface Events extends BaseContract {
connect(runner?: ContractRunner | null): Events;
attach(target: string | Addressable): Events;
waitForDeployment(): Promise<this>;

interface: EventsInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
FunctionFragment,
Interface,
Expand Down Expand Up @@ -37,6 +38,7 @@ export namespace CommittedEvent {

export interface A extends BaseContract {
connect(runner?: ContractRunner | null): A;
attach(target: string | Addressable): A;
waitForDeployment(): Promise<this>;

interface: AInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
FunctionFragment,
Expand Down Expand Up @@ -52,6 +53,7 @@ export namespace Committed_address_array_Event {

export interface B extends BaseContract {
connect(runner?: ContractRunner | null): B;
attach(target: string | Addressable): B;
waitForDeployment(): Promise<this>;

interface: BInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/Library/Lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -30,6 +31,7 @@ export interface LibInterface extends Interface {

export interface Lib extends BaseContract {
connect(runner?: ContractRunner | null): Lib;
attach(target: string | Addressable): Lib;
waitForDeployment(): Promise<this>;

interface: LibInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -33,6 +34,7 @@ export interface LibraryConsumerInterface extends Interface {

export interface LibraryConsumer extends BaseContract {
connect(runner?: ContractRunner | null): LibraryConsumer;
attach(target: string | Addressable): LibraryConsumer;
waitForDeployment(): Promise<this>;

interface: LibraryConsumerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BytesLike,
FunctionFragment,
Expand Down Expand Up @@ -31,6 +32,7 @@ export interface NAME12manglingInterface extends Interface {

export interface NAME12mangling extends BaseContract {
connect(runner?: ContractRunner | null): NAME12mangling;
attach(target: string | Addressable): NAME12mangling;
waitForDeployment(): Promise<this>;

interface: NAME12manglingInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.6.4/Overloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -46,6 +47,7 @@ export interface OverloadsInterface extends Interface {

export interface Overloads extends BaseContract {
connect(runner?: ContractRunner | null): Overloads;
attach(target: string | Addressable): Overloads;
waitForDeployment(): Promise<this>;

interface: OverloadsInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BytesLike,
FunctionFragment,
Expand Down Expand Up @@ -45,6 +46,7 @@ export interface PayableInterface extends Interface {

export interface Payable extends BaseContract {
connect(runner?: ContractRunner | null): Payable;
attach(target: string | Addressable): Payable;
waitForDeployment(): Promise<this>;

interface: PayableInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BytesLike,
FunctionFragment,
Expand Down Expand Up @@ -32,6 +33,7 @@ export interface PayableFactoryInterface extends Interface {

export interface PayableFactory extends BaseContract {
connect(runner?: ContractRunner | null): PayableFactory;
attach(target: string | Addressable): PayableFactory;
waitForDeployment(): Promise<this>;

interface: PayableFactoryInterface;
Expand Down
2 changes: 2 additions & 0 deletions packages/target-ethers-v6-test/types/v0.8.9/ISimpleToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -34,6 +35,7 @@ export interface ISimpleTokenInterface extends Interface {

export interface ISimpleToken extends BaseContract {
connect(runner?: ContractRunner | null): ISimpleToken;
attach(target: string | Addressable): ISimpleToken;
waitForDeployment(): Promise<this>;

interface: ISimpleTokenInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -72,6 +73,7 @@ export interface Issue552_ReproductionInterface extends Interface {

export interface Issue552_Reproduction extends BaseContract {
connect(runner?: ContractRunner | null): Issue552_Reproduction;
attach(target: string | Addressable): Issue552_Reproduction;
waitForDeployment(): Promise<this>;

interface: Issue552_ReproductionInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type {
Addressable,
BaseContract,
BigNumberish,
BytesLike,
Expand Down Expand Up @@ -65,6 +66,7 @@ export namespace HighestBidIncreasedEvent {

export interface KingOfTheHill extends BaseContract {
connect(runner?: ContractRunner | null): KingOfTheHill;
attach(target: string | Addressable): KingOfTheHill;
waitForDeployment(): Promise<this>;

interface: KingOfTheHillInterface;
Expand Down
Loading

0 comments on commit d2f54fa

Please sign in to comment.