/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  PayableOverrides,
  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 CounterfactualDepositSpokePoolTrInterface
  extends utils.Interface {
  functions: {
    "EXECUTE_DEPOSIT_TYPEHASH()": FunctionFragment;
    "eip712Domain()": FunctionFragment;
    "execute(bytes,bytes)": FunctionFragment;
    "signer()": FunctionFragment;
    "spokePool()": FunctionFragment;
    "wrappedNativeToken()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "EXECUTE_DEPOSIT_TYPEHASH"
      | "eip712Domain"
      | "execute"
      | "signer"
      | "spokePool"
      | "wrappedNativeToken"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "EXECUTE_DEPOSIT_TYPEHASH",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "eip712Domain",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "execute",
    values: [BytesLike, BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "signer", values?: undefined): string;
  encodeFunctionData(functionFragment: "spokePool", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "wrappedNativeToken",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "EXECUTE_DEPOSIT_TYPEHASH",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "eip712Domain",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "signer", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "spokePool", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "wrappedNativeToken",
    data: BytesLike
  ): Result;

  events: {
    "EIP712DomainChanged()": EventFragment;
    "SpokePoolDepositExecuted(uint256,uint256,bytes32,uint32,address,uint32,uint32,uint32)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SpokePoolDepositExecuted"): EventFragment;
}

export interface EIP712DomainChangedEventObject {}
export type EIP712DomainChangedEvent = TypedEvent<
  [],
  EIP712DomainChangedEventObject
>;

export type EIP712DomainChangedEventFilter =
  TypedEventFilter<EIP712DomainChangedEvent>;

export interface SpokePoolDepositExecutedEventObject {
  inputAmount: BigNumber;
  outputAmount: BigNumber;
  exclusiveRelayer: string;
  exclusivityDeadline: number;
  executionFeeRecipient: string;
  quoteTimestamp: number;
  fillDeadline: number;
  signatureDeadline: number;
}
export type SpokePoolDepositExecutedEvent = TypedEvent<
  [BigNumber, BigNumber, string, number, string, number, number, number],
  SpokePoolDepositExecutedEventObject
>;

export type SpokePoolDepositExecutedEventFilter =
  TypedEventFilter<SpokePoolDepositExecutedEvent>;

export interface CounterfactualDepositSpokePoolTr extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: CounterfactualDepositSpokePoolTrInterface;

  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: {
    EXECUTE_DEPOSIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>;

    eip712Domain(
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, BigNumber, string, string, BigNumber[]] & {
        fields: string;
        name: string;
        version: string;
        chainId: BigNumber;
        verifyingContract: string;
        salt: string;
        extensions: BigNumber[];
      }
    >;

    execute(
      params: BytesLike,
      submitterData: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<ContractTransaction>;

    signer(overrides?: CallOverrides): Promise<[string]>;

    spokePool(overrides?: CallOverrides): Promise<[string]>;

    wrappedNativeToken(overrides?: CallOverrides): Promise<[string]>;
  };

  EXECUTE_DEPOSIT_TYPEHASH(overrides?: CallOverrides): Promise<string>;

  eip712Domain(
    overrides?: CallOverrides
  ): Promise<
    [string, string, string, BigNumber, string, string, BigNumber[]] & {
      fields: string;
      name: string;
      version: string;
      chainId: BigNumber;
      verifyingContract: string;
      salt: string;
      extensions: BigNumber[];
    }
  >;

  execute(
    params: BytesLike,
    submitterData: BytesLike,
    overrides?: PayableOverrides & { from?: string }
  ): Promise<ContractTransaction>;

  spokePool(overrides?: CallOverrides): Promise<string>;

  wrappedNativeToken(overrides?: CallOverrides): Promise<string>;

  callStatic: {
    EXECUTE_DEPOSIT_TYPEHASH(overrides?: CallOverrides): Promise<string>;

    eip712Domain(
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, BigNumber, string, string, BigNumber[]] & {
        fields: string;
        name: string;
        version: string;
        chainId: BigNumber;
        verifyingContract: string;
        salt: string;
        extensions: BigNumber[];
      }
    >;

    execute(
      params: BytesLike,
      submitterData: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    signer(overrides?: CallOverrides): Promise<string>;

    spokePool(overrides?: CallOverrides): Promise<string>;

    wrappedNativeToken(overrides?: CallOverrides): Promise<string>;
  };

  filters: {
    "EIP712DomainChanged()"(): EIP712DomainChangedEventFilter;
    EIP712DomainChanged(): EIP712DomainChangedEventFilter;

    "SpokePoolDepositExecuted(uint256,uint256,bytes32,uint32,address,uint32,uint32,uint32)"(
      inputAmount?: null,
      outputAmount?: null,
      exclusiveRelayer?: BytesLike | null,
      exclusivityDeadline?: null,
      executionFeeRecipient?: string | null,
      quoteTimestamp?: null,
      fillDeadline?: null,
      signatureDeadline?: null
    ): SpokePoolDepositExecutedEventFilter;
    SpokePoolDepositExecuted(
      inputAmount?: null,
      outputAmount?: null,
      exclusiveRelayer?: BytesLike | null,
      exclusivityDeadline?: null,
      executionFeeRecipient?: string | null,
      quoteTimestamp?: null,
      fillDeadline?: null,
      signatureDeadline?: null
    ): SpokePoolDepositExecutedEventFilter;
  };

  estimateGas: {
    EXECUTE_DEPOSIT_TYPEHASH(overrides?: CallOverrides): Promise<BigNumber>;

    eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;

    execute(
      params: BytesLike,
      submitterData: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<BigNumber>;

    signer(overrides?: CallOverrides): Promise<BigNumber>;

    spokePool(overrides?: CallOverrides): Promise<BigNumber>;

    wrappedNativeToken(overrides?: CallOverrides): Promise<BigNumber>;
  };

  populateTransaction: {
    EXECUTE_DEPOSIT_TYPEHASH(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    execute(
      params: BytesLike,
      submitterData: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<PopulatedTransaction>;

    signer(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    spokePool(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    wrappedNativeToken(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
