/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  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 ZkStack_CustomGasToken_AdapterInterface
  extends utils.Interface {
  functions: {
    "BRIDGE_HUB()": FunctionFragment;
    "CHAIN_ID()": FunctionFragment;
    "CUSTOM_GAS_TOKEN()": FunctionFragment;
    "CUSTOM_GAS_TOKEN_FUNDER()": FunctionFragment;
    "L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT()": FunctionFragment;
    "L1_WETH()": FunctionFragment;
    "L2_GAS_LIMIT()": FunctionFragment;
    "L2_REFUND_ADDRESS()": FunctionFragment;
    "USDC_SHARED_BRIDGE()": FunctionFragment;
    "cctpTokenMessenger()": FunctionFragment;
    "cctpV2()": FunctionFragment;
    "recipientCircleDomainId()": FunctionFragment;
    "relayMessage(address,bytes)": FunctionFragment;
    "relayTokens(address,address,uint256,address)": FunctionFragment;
    "usdcToken()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "BRIDGE_HUB"
      | "CHAIN_ID"
      | "CUSTOM_GAS_TOKEN"
      | "CUSTOM_GAS_TOKEN_FUNDER"
      | "L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT"
      | "L1_WETH"
      | "L2_GAS_LIMIT"
      | "L2_REFUND_ADDRESS"
      | "USDC_SHARED_BRIDGE"
      | "cctpTokenMessenger"
      | "cctpV2"
      | "recipientCircleDomainId"
      | "relayMessage"
      | "relayTokens"
      | "usdcToken"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "BRIDGE_HUB",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "CHAIN_ID", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "CUSTOM_GAS_TOKEN",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "CUSTOM_GAS_TOKEN_FUNDER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "L1_WETH", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "L2_GAS_LIMIT",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "L2_REFUND_ADDRESS",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "USDC_SHARED_BRIDGE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "cctpTokenMessenger",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "cctpV2", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "recipientCircleDomainId",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "relayMessage",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "relayTokens",
    values: [string, string, BigNumberish, string]
  ): string;
  encodeFunctionData(functionFragment: "usdcToken", values?: undefined): string;

  decodeFunctionResult(functionFragment: "BRIDGE_HUB", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "CHAIN_ID", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "CUSTOM_GAS_TOKEN",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "CUSTOM_GAS_TOKEN_FUNDER",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "L1_WETH", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "L2_GAS_LIMIT",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "L2_REFUND_ADDRESS",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "USDC_SHARED_BRIDGE",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "cctpTokenMessenger",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "cctpV2", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "recipientCircleDomainId",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "relayMessage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "relayTokens",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "usdcToken", data: BytesLike): Result;

  events: {
    "MessageRelayed(address,bytes)": EventFragment;
    "TokensRelayed(address,address,uint256,address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "MessageRelayed"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "TokensRelayed"): EventFragment;
}

export interface MessageRelayedEventObject {
  target: string;
  message: string;
}
export type MessageRelayedEvent = TypedEvent<
  [string, string],
  MessageRelayedEventObject
>;

export type MessageRelayedEventFilter = TypedEventFilter<MessageRelayedEvent>;

export interface TokensRelayedEventObject {
  l1Token: string;
  l2Token: string;
  amount: BigNumber;
  to: string;
}
export type TokensRelayedEvent = TypedEvent<
  [string, string, BigNumber, string],
  TokensRelayedEventObject
>;

export type TokensRelayedEventFilter = TypedEventFilter<TokensRelayedEvent>;

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

  interface: ZkStack_CustomGasToken_AdapterInterface;

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

    CHAIN_ID(overrides?: CallOverrides): Promise<[BigNumber]>;

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

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

    L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT(
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

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

    L2_GAS_LIMIT(overrides?: CallOverrides): Promise<[BigNumber]>;

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

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

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

    cctpV2(overrides?: CallOverrides): Promise<[boolean]>;

    recipientCircleDomainId(overrides?: CallOverrides): Promise<[number]>;

    relayMessage(
      target: string,
      message: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<ContractTransaction>;

    relayTokens(
      l1Token: string,
      l2Token: string,
      amount: BigNumberish,
      to: string,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<ContractTransaction>;

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

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

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

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

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

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

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

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

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

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

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

  cctpV2(overrides?: CallOverrides): Promise<boolean>;

  recipientCircleDomainId(overrides?: CallOverrides): Promise<number>;

  relayMessage(
    target: string,
    message: BytesLike,
    overrides?: PayableOverrides & { from?: string }
  ): Promise<ContractTransaction>;

  relayTokens(
    l1Token: string,
    l2Token: string,
    amount: BigNumberish,
    to: string,
    overrides?: PayableOverrides & { from?: string }
  ): Promise<ContractTransaction>;

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

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

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

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

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

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

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

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

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

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

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

    cctpV2(overrides?: CallOverrides): Promise<boolean>;

    recipientCircleDomainId(overrides?: CallOverrides): Promise<number>;

    relayMessage(
      target: string,
      message: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    relayTokens(
      l1Token: string,
      l2Token: string,
      amount: BigNumberish,
      to: string,
      overrides?: CallOverrides
    ): Promise<void>;

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

  filters: {
    "MessageRelayed(address,bytes)"(
      target?: null,
      message?: null
    ): MessageRelayedEventFilter;
    MessageRelayed(target?: null, message?: null): MessageRelayedEventFilter;

    "TokensRelayed(address,address,uint256,address)"(
      l1Token?: null,
      l2Token?: null,
      amount?: null,
      to?: null
    ): TokensRelayedEventFilter;
    TokensRelayed(
      l1Token?: null,
      l2Token?: null,
      amount?: null,
      to?: null
    ): TokensRelayedEventFilter;
  };

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

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

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

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

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

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

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

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

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

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

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

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

    relayMessage(
      target: string,
      message: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<BigNumber>;

    relayTokens(
      l1Token: string,
      l2Token: string,
      amount: BigNumberish,
      to: string,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<BigNumber>;

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

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

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

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

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

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

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

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

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

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

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

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

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

    relayMessage(
      target: string,
      message: BytesLike,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<PopulatedTransaction>;

    relayTokens(
      l1Token: string,
      l2Token: string,
      amount: BigNumberish,
      to: string,
      overrides?: PayableOverrides & { from?: string }
    ): Promise<PopulatedTransaction>;

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