/* 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 IControllerInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "getContractProxy"
      | "getGovernor"
      | "partialPaused"
      | "paused"
      | "setContractProxy"
      | "setPartialPaused"
      | "setPauseGuardian"
      | "setPaused"
      | "unsetContractProxy"
      | "updateController"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "getContractProxy",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getGovernor",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "partialPaused",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "paused", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "setContractProxy",
    values: [BytesLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "setPartialPaused",
    values: [boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "setPauseGuardian",
    values: [AddressLike]
  ): string;
  encodeFunctionData(functionFragment: "setPaused", values: [boolean]): string;
  encodeFunctionData(
    functionFragment: "unsetContractProxy",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateController",
    values: [BytesLike, AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "getContractProxy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getGovernor",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "partialPaused",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setContractProxy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setPartialPaused",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setPauseGuardian",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "setPaused", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "unsetContractProxy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateController",
    data: BytesLike
  ): Result;
}

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

  interface: IControllerInterface;

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

  getContractProxy: TypedContractMethod<[_id: BytesLike], [string], "view">;

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

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

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

  setContractProxy: TypedContractMethod<
    [_id: BytesLike, _contractAddress: AddressLike],
    [void],
    "nonpayable"
  >;

  setPartialPaused: TypedContractMethod<
    [_partialPaused: boolean],
    [void],
    "nonpayable"
  >;

  setPauseGuardian: TypedContractMethod<
    [_newPauseGuardian: AddressLike],
    [void],
    "nonpayable"
  >;

  setPaused: TypedContractMethod<[_paused: boolean], [void], "nonpayable">;

  unsetContractProxy: TypedContractMethod<
    [_id: BytesLike],
    [void],
    "nonpayable"
  >;

  updateController: TypedContractMethod<
    [_id: BytesLike, _controller: AddressLike],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "getContractProxy"
  ): TypedContractMethod<[_id: BytesLike], [string], "view">;
  getFunction(
    nameOrSignature: "getGovernor"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "partialPaused"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "paused"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "setContractProxy"
  ): TypedContractMethod<
    [_id: BytesLike, _contractAddress: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setPartialPaused"
  ): TypedContractMethod<[_partialPaused: boolean], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setPauseGuardian"
  ): TypedContractMethod<
    [_newPauseGuardian: AddressLike],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "setPaused"
  ): TypedContractMethod<[_paused: boolean], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "unsetContractProxy"
  ): TypedContractMethod<[_id: BytesLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateController"
  ): TypedContractMethod<
    [_id: BytesLike, _controller: AddressLike],
    [void],
    "nonpayable"
  >;

  filters: {};
}
