/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from "../../common";

export interface MockHypernativeOracleInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "isBlacklistedAccount"
      | "isBlacklistedContext"
      | "isTimeExceeded"
      | "register"
      | "registerStrict"
      | "setBlacklistedAccount"
      | "setBlacklistedContext"
      | "setTimeExceeded"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "isBlacklistedAccount",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isBlacklistedContext",
    values: [AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isTimeExceeded",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "register",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "registerStrict",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setBlacklistedAccount",
    values: [AddressLike, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setBlacklistedContext",
    values: [AddressLike, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setTimeExceeded",
    values: [AddressLike, boolean]
  ): string;

  decodeFunctionResult(
    functionFragment: "isBlacklistedAccount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isBlacklistedContext",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isTimeExceeded",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "register", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "registerStrict",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setBlacklistedAccount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setBlacklistedContext",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setTimeExceeded",
    data: BytesLike
  ): Result;
}

export interface MockHypernativeOracle extends BaseContract {
  connect(runner?: ContractRunner | null): MockHypernativeOracle;
  waitForDeployment(): Promise<this>;

  interface: MockHypernativeOracleInterface;

  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>;

  isBlacklistedAccount: TypedContractMethod<
    [account: AddressLike],
    [boolean],
    "view"
  >;

  isBlacklistedContext: TypedContractMethod<
    [origin: AddressLike, sender: AddressLike],
    [boolean],
    "view"
  >;

  isTimeExceeded: TypedContractMethod<
    [account: AddressLike],
    [boolean],
    "view"
  >;

  register: TypedContractMethod<[account: AddressLike], [void], "nonpayable">;

  registerStrict: TypedContractMethod<
    [account: AddressLike],
    [void],
    "nonpayable"
  >;

  setBlacklistedAccount: TypedContractMethod<
    [account: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;

  setBlacklistedContext: TypedContractMethod<
    [context: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;

  setTimeExceeded: TypedContractMethod<
    [account: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "isBlacklistedAccount"
  ): TypedContractMethod<[account: AddressLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "isBlacklistedContext"
  ): TypedContractMethod<
    [origin: AddressLike, sender: AddressLike],
    [boolean],
    "view"
  >;
  getFunction(
    nameOrSignature: "isTimeExceeded"
  ): TypedContractMethod<[account: AddressLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "register"
  ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "registerStrict"
  ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setBlacklistedAccount"
  ): TypedContractMethod<
    [account: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setBlacklistedContext"
  ): TypedContractMethod<
    [context: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setTimeExceeded"
  ): TypedContractMethod<
    [account: AddressLike, status: boolean],
    [void],
    "nonpayable"
  >;

  filters: {};
}
