mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
/* 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;
|