intents-framework
Version:
A reference ERC7683 implementation with TypeScript support
164 lines (146 loc) • 4.29 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BytesLike,
FunctionFragment,
Result,
Interface,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "./common";
export interface AbstractPostDispatchHookInterface extends Interface {
getFunction(
nameOrSignature:
| "PACKAGE_VERSION"
| "hookType"
| "postDispatch"
| "quoteDispatch"
| "supportsMetadata"
): FunctionFragment;
encodeFunctionData(
functionFragment: "PACKAGE_VERSION",
values?: undefined
): string;
encodeFunctionData(functionFragment: "hookType", values?: undefined): string;
encodeFunctionData(
functionFragment: "postDispatch",
values: [BytesLike, BytesLike]
): string;
encodeFunctionData(
functionFragment: "quoteDispatch",
values: [BytesLike, BytesLike]
): string;
encodeFunctionData(
functionFragment: "supportsMetadata",
values: [BytesLike]
): string;
decodeFunctionResult(
functionFragment: "PACKAGE_VERSION",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "hookType", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "postDispatch",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "quoteDispatch",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "supportsMetadata",
data: BytesLike
): Result;
}
export interface AbstractPostDispatchHook extends BaseContract {
connect(runner?: ContractRunner | null): AbstractPostDispatchHook;
waitForDeployment(): Promise<this>;
interface: AbstractPostDispatchHookInterface;
queryFilter<TCEvent extends TypedContractEvent>(
event: TCEvent,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
on<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
on<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;
listeners<TCEvent extends TypedContractEvent>(
event: TCEvent
): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(
event?: TCEvent
): Promise<this>;
PACKAGE_VERSION: TypedContractMethod<[], [string], "view">;
hookType: TypedContractMethod<[], [bigint], "view">;
postDispatch: TypedContractMethod<
[metadata: BytesLike, message: BytesLike],
[void],
"payable"
>;
quoteDispatch: TypedContractMethod<
[metadata: BytesLike, message: BytesLike],
[bigint],
"view"
>;
supportsMetadata: TypedContractMethod<
[metadata: BytesLike],
[boolean],
"view"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "PACKAGE_VERSION"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "hookType"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "postDispatch"
): TypedContractMethod<
[metadata: BytesLike, message: BytesLike],
[void],
"payable"
>;
getFunction(
nameOrSignature: "quoteDispatch"
): TypedContractMethod<
[metadata: BytesLike, message: BytesLike],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "supportsMetadata"
): TypedContractMethod<[metadata: BytesLike], [boolean], "view">;
filters: {};
}