UNPKG

@gooddollar/goodprotocol

Version:
152 lines (133 loc) 3.65 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils, } from "ethers"; import type { FunctionFragment, Result, EventFragment, } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, } from "../../../common"; export interface MultichainRouterMockInterface extends utils.Interface { functions: { "anySwapOut(address,address,uint256,uint256)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "anySwapOut"): FunctionFragment; encodeFunctionData( functionFragment: "anySwapOut", values: [string, string, BigNumberish, BigNumberish] ): string; decodeFunctionResult(functionFragment: "anySwapOut", data: BytesLike): Result; events: { "AnySwap(address,address,uint256,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "AnySwap"): EventFragment; } export interface AnySwapEventObject { token: string; recipient: string; amount: BigNumber; chainId: BigNumber; } export type AnySwapEvent = TypedEvent< [string, string, BigNumber, BigNumber], AnySwapEventObject >; export type AnySwapEventFilter = TypedEventFilter<AnySwapEvent>; export interface MultichainRouterMock extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: MultichainRouterMockInterface; 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: { anySwapOut( token: string, recipient: string, amount: BigNumberish, chainId: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<ContractTransaction>; }; anySwapOut( token: string, recipient: string, amount: BigNumberish, chainId: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<ContractTransaction>; callStatic: { anySwapOut( token: string, recipient: string, amount: BigNumberish, chainId: BigNumberish, overrides?: CallOverrides ): Promise<void>; }; filters: { "AnySwap(address,address,uint256,uint256)"( token?: null, recipient?: null, amount?: null, chainId?: null ): AnySwapEventFilter; AnySwap( token?: null, recipient?: null, amount?: null, chainId?: null ): AnySwapEventFilter; }; estimateGas: { anySwapOut( token: string, recipient: string, amount: BigNumberish, chainId: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<BigNumber>; }; populateTransaction: { anySwapOut( token: string, recipient: string, amount: BigNumberish, chainId: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<PopulatedTransaction>; }; }