36 lines
869 B
TypeScript
36 lines
869 B
TypeScript
|
/* Autogenerated file. Do not edit manually. */
|
||
|
/* tslint:disable */
|
||
|
/* eslint-disable */
|
||
|
import { EventFilter, Event } from "ethers";
|
||
|
import { Result } from "@ethersproject/abi";
|
||
|
|
||
|
export interface TypedEventFilter<_EventArgsArray, _EventArgsObject>
|
||
|
extends EventFilter {}
|
||
|
|
||
|
export interface TypedEvent<EventArgs extends Result> extends Event {
|
||
|
args: EventArgs;
|
||
|
}
|
||
|
|
||
|
export type TypedListener<
|
||
|
EventArgsArray extends Array<any>,
|
||
|
EventArgsObject
|
||
|
> = (
|
||
|
...listenerArg: [
|
||
|
...EventArgsArray,
|
||
|
TypedEvent<EventArgsArray & EventArgsObject>
|
||
|
]
|
||
|
) => void;
|
||
|
|
||
|
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;
|