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

export interface OracleProtectionManagerInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "hypernativeOracleIsStrictMode"
      | "isOracleApproved"
      | "isOracleApprovedAllowEOA"
      | "isOracleApprovedOnlyAllowEOA"
      | "oracleRegister"
      | "owner"
      | "renounceOwnership"
      | "transferOwnership"
  ): FunctionFragment;

  getEvent(
    nameOrSignatureOrTopic:
      | "Initialized"
      | "OracleAddressChanged"
      | "OwnershipTransferred"
  ): EventFragment;

  encodeFunctionData(
    functionFragment: "hypernativeOracleIsStrictMode",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isOracleApproved",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isOracleApprovedAllowEOA",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isOracleApprovedOnlyAllowEOA",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "oracleRegister",
    values: [AddressLike]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "hypernativeOracleIsStrictMode",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isOracleApproved",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isOracleApprovedAllowEOA",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isOracleApprovedOnlyAllowEOA",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "oracleRegister",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;
}

export namespace InitializedEvent {
  export type InputTuple = [version: BigNumberish];
  export type OutputTuple = [version: bigint];
  export interface OutputObject {
    version: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace OracleAddressChangedEvent {
  export type InputTuple = [
    previousOracle: AddressLike,
    newOracle: AddressLike
  ];
  export type OutputTuple = [previousOracle: string, newOracle: string];
  export interface OutputObject {
    previousOracle: string;
    newOracle: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace OwnershipTransferredEvent {
  export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
  export type OutputTuple = [previousOwner: string, newOwner: string];
  export interface OutputObject {
    previousOwner: string;
    newOwner: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: OracleProtectionManagerInterface;

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

  hypernativeOracleIsStrictMode: TypedContractMethod<[], [boolean], "view">;

  isOracleApproved: TypedContractMethod<
    [_sender: AddressLike],
    [boolean],
    "nonpayable"
  >;

  isOracleApprovedAllowEOA: TypedContractMethod<
    [_sender: AddressLike],
    [boolean],
    "nonpayable"
  >;

  isOracleApprovedOnlyAllowEOA: TypedContractMethod<
    [_sender: AddressLike],
    [boolean],
    "nonpayable"
  >;

  oracleRegister: TypedContractMethod<
    [_account: AddressLike],
    [void],
    "nonpayable"
  >;

  owner: TypedContractMethod<[], [string], "view">;

  renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;

  transferOwnership: TypedContractMethod<
    [newOwner: AddressLike],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "hypernativeOracleIsStrictMode"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "isOracleApproved"
  ): TypedContractMethod<[_sender: AddressLike], [boolean], "nonpayable">;
  getFunction(
    nameOrSignature: "isOracleApprovedAllowEOA"
  ): TypedContractMethod<[_sender: AddressLike], [boolean], "nonpayable">;
  getFunction(
    nameOrSignature: "isOracleApprovedOnlyAllowEOA"
  ): TypedContractMethod<[_sender: AddressLike], [boolean], "nonpayable">;
  getFunction(
    nameOrSignature: "oracleRegister"
  ): TypedContractMethod<[_account: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "owner"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "renounceOwnership"
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "transferOwnership"
  ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;

  getEvent(
    key: "Initialized"
  ): TypedContractEvent<
    InitializedEvent.InputTuple,
    InitializedEvent.OutputTuple,
    InitializedEvent.OutputObject
  >;
  getEvent(
    key: "OracleAddressChanged"
  ): TypedContractEvent<
    OracleAddressChangedEvent.InputTuple,
    OracleAddressChangedEvent.OutputTuple,
    OracleAddressChangedEvent.OutputObject
  >;
  getEvent(
    key: "OwnershipTransferred"
  ): TypedContractEvent<
    OwnershipTransferredEvent.InputTuple,
    OwnershipTransferredEvent.OutputTuple,
    OwnershipTransferredEvent.OutputObject
  >;

  filters: {
    "Initialized(uint8)": TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;
    Initialized: TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;

    "OracleAddressChanged(address,address)": TypedContractEvent<
      OracleAddressChangedEvent.InputTuple,
      OracleAddressChangedEvent.OutputTuple,
      OracleAddressChangedEvent.OutputObject
    >;
    OracleAddressChanged: TypedContractEvent<
      OracleAddressChangedEvent.InputTuple,
      OracleAddressChangedEvent.OutputTuple,
      OracleAddressChangedEvent.OutputObject
    >;

    "OwnershipTransferred(address,address)": TypedContractEvent<
      OwnershipTransferredEvent.InputTuple,
      OwnershipTransferredEvent.OutputTuple,
      OwnershipTransferredEvent.OutputObject
    >;
    OwnershipTransferred: TypedContractEvent<
      OwnershipTransferredEvent.InputTuple,
      OwnershipTransferredEvent.OutputTuple,
      OwnershipTransferredEvent.OutputObject
    >;
  };
}
