/* 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 IHypernativeOracleInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "isBlacklistedAccount"
      | "isBlacklistedContext"
      | "isTimeExceeded"
      | "register"
      | "registerStrict"
  ): 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;

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

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

  interface: IHypernativeOracleInterface;

  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<
    [sender: AddressLike, origin: AddressLike],
    [boolean],
    "view"
  >;

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

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

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

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

  getFunction(
    nameOrSignature: "isBlacklistedAccount"
  ): TypedContractMethod<[account: AddressLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "isBlacklistedContext"
  ): TypedContractMethod<
    [sender: AddressLike, origin: 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">;

  filters: {};
}
