-
-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: commit the typechain types in version control
build: upgrade dev deps build: upgrade to "typechain" v6.0.2 build: upgrade to "@typechain/ethers-v5" v8.0.1 build: upgrade to "@typechain/hardhat" v3.0.0 refactor: move the typechain types to "src/types"
- Loading branch information
Showing
6 changed files
with
403 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import { | ||
ethers, | ||
EventFilter, | ||
Signer, | ||
BigNumber, | ||
BigNumberish, | ||
PopulatedTransaction, | ||
BaseContract, | ||
ContractTransaction, | ||
Overrides, | ||
CallOverrides, | ||
} from "ethers"; | ||
import { BytesLike } from "@ethersproject/bytes"; | ||
import { Listener, Provider } from "@ethersproject/providers"; | ||
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; | ||
import type { | ||
TypedEventFilter, | ||
TypedEvent, | ||
TypedListener, | ||
OnEvent, | ||
} from "./common"; | ||
|
||
export interface GreeterInterface extends ethers.utils.Interface { | ||
functions: { | ||
"greet()": FunctionFragment; | ||
"greeting()": FunctionFragment; | ||
"setGreeting(string)": FunctionFragment; | ||
"throwError()": FunctionFragment; | ||
}; | ||
|
||
encodeFunctionData(functionFragment: "greet", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "greeting", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "setGreeting", values: [string]): string; | ||
encodeFunctionData( | ||
functionFragment: "throwError", | ||
values?: undefined | ||
): string; | ||
|
||
decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "greeting", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "setGreeting", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult(functionFragment: "throwError", data: BytesLike): Result; | ||
|
||
events: {}; | ||
} | ||
|
||
export interface Greeter extends BaseContract { | ||
connect(signerOrProvider: Signer | Provider | string): this; | ||
attach(addressOrName: string): this; | ||
deployed(): Promise<this>; | ||
|
||
interface: GreeterInterface; | ||
|
||
queryFilter<TEvent extends TypedEvent>( | ||
event: TypedEventFilter<TEvent>, | ||
fromBlockOrBlockhash?: string | number | undefined, | ||
toBlock?: string | number | undefined | ||
): Promise<Array<TEvent>>; | ||
|
||
listeners<TEvent extends TypedEvent>( | ||
eventFilter?: TypedEventFilter<TEvent> | ||
): Array<TypedListener<TEvent>>; | ||
listeners(eventName?: string): Array<Listener>; | ||
removeAllListeners<TEvent extends TypedEvent>( | ||
eventFilter: TypedEventFilter<TEvent> | ||
): this; | ||
removeAllListeners(eventName?: string): this; | ||
off: OnEvent<this>; | ||
on: OnEvent<this>; | ||
once: OnEvent<this>; | ||
removeListener: OnEvent<this>; | ||
|
||
functions: { | ||
greet(overrides?: CallOverrides): Promise<[string]>; | ||
|
||
greeting(overrides?: CallOverrides): Promise<[string]>; | ||
|
||
setGreeting( | ||
_greeting: string, | ||
overrides?: Overrides & { from?: string | Promise<string> } | ||
): Promise<ContractTransaction>; | ||
|
||
throwError(overrides?: CallOverrides): Promise<[void]>; | ||
}; | ||
|
||
greet(overrides?: CallOverrides): Promise<string>; | ||
|
||
greeting(overrides?: CallOverrides): Promise<string>; | ||
|
||
setGreeting( | ||
_greeting: string, | ||
overrides?: Overrides & { from?: string | Promise<string> } | ||
): Promise<ContractTransaction>; | ||
|
||
throwError(overrides?: CallOverrides): Promise<void>; | ||
|
||
callStatic: { | ||
greet(overrides?: CallOverrides): Promise<string>; | ||
|
||
greeting(overrides?: CallOverrides): Promise<string>; | ||
|
||
setGreeting(_greeting: string, overrides?: CallOverrides): Promise<void>; | ||
|
||
throwError(overrides?: CallOverrides): Promise<void>; | ||
}; | ||
|
||
filters: {}; | ||
|
||
estimateGas: { | ||
greet(overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
greeting(overrides?: CallOverrides): Promise<BigNumber>; | ||
|
||
setGreeting( | ||
_greeting: string, | ||
overrides?: Overrides & { from?: string | Promise<string> } | ||
): Promise<BigNumber>; | ||
|
||
throwError(overrides?: CallOverrides): Promise<BigNumber>; | ||
}; | ||
|
||
populateTransaction: { | ||
greet(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
|
||
greeting(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
|
||
setGreeting( | ||
_greeting: string, | ||
overrides?: Overrides & { from?: string | Promise<string> } | ||
): Promise<PopulatedTransaction>; | ||
|
||
throwError(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Listener } from "@ethersproject/providers"; | ||
import type { Event, EventFilter } from "ethers"; | ||
|
||
export interface TypedEvent< | ||
TArgsArray extends Array<any> = any, | ||
TArgsObject = any | ||
> extends Event { | ||
args: TArgsArray & TArgsObject; | ||
} | ||
|
||
export interface TypedEventFilter<_TEvent extends TypedEvent> | ||
extends EventFilter {} | ||
|
||
export interface TypedListener<TEvent extends TypedEvent> { | ||
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void; | ||
} | ||
|
||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
|
||
export interface OnEvent<TRes> { | ||
<TEvent extends TypedEvent>( | ||
eventFilter: TypedEventFilter<TEvent>, | ||
listener: TypedListener<TEvent> | ||
): TRes; | ||
(eventName: string, listener: Listener): TRes; | ||
} | ||
|
||
export type MinEthersFactory<C, ARGS> = { | ||
deploy(...a: ARGS[]): Promise<C>; | ||
}; | ||
|
||
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory< | ||
infer C, | ||
any | ||
> | ||
? C | ||
: never; | ||
|
||
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> | ||
? Parameters<F["deploy"]> | ||
: never; |
Oops, something went wrong.