/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  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,
  PromiseOrValue,
} from "../../common";

export interface IAuthorizableInterface extends utils.Interface {
  functions: {
    "REVOKE_AUTHORIZATION_THAWING_PERIOD()": FunctionFragment;
    "authorizeSigner(address,uint256,bytes)": FunctionFragment;
    "cancelThawSigner(address)": FunctionFragment;
    "getThawEnd(address)": FunctionFragment;
    "isAuthorized(address,address)": FunctionFragment;
    "revokeAuthorizedSigner(address)": FunctionFragment;
    "thawSigner(address)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "REVOKE_AUTHORIZATION_THAWING_PERIOD"
      | "authorizeSigner"
      | "cancelThawSigner"
      | "getThawEnd"
      | "isAuthorized"
      | "revokeAuthorizedSigner"
      | "thawSigner",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "REVOKE_AUTHORIZATION_THAWING_PERIOD",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "authorizeSigner",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BytesLike>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "cancelThawSigner",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "getThawEnd",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "isAuthorized",
    values: [PromiseOrValue<string>, PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "revokeAuthorizedSigner",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "thawSigner",
    values: [PromiseOrValue<string>],
  ): string;

  decodeFunctionResult(
    functionFragment: "REVOKE_AUTHORIZATION_THAWING_PERIOD",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "authorizeSigner",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "cancelThawSigner",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "getThawEnd", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isAuthorized",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "revokeAuthorizedSigner",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "thawSigner", data: BytesLike): Result;

  events: {
    "SignerAuthorized(address,address)": EventFragment;
    "SignerRevoked(address,address)": EventFragment;
    "SignerThawCanceled(address,address,uint256)": EventFragment;
    "SignerThawing(address,address,uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "SignerAuthorized"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SignerRevoked"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SignerThawCanceled"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SignerThawing"): EventFragment;
}

export interface SignerAuthorizedEventObject {
  authorizer: string;
  signer: string;
}
export type SignerAuthorizedEvent = TypedEvent<
  [string, string],
  SignerAuthorizedEventObject
>;

export type SignerAuthorizedEventFilter =
  TypedEventFilter<SignerAuthorizedEvent>;

export interface SignerRevokedEventObject {
  authorizer: string;
  signer: string;
}
export type SignerRevokedEvent = TypedEvent<
  [string, string],
  SignerRevokedEventObject
>;

export type SignerRevokedEventFilter = TypedEventFilter<SignerRevokedEvent>;

export interface SignerThawCanceledEventObject {
  authorizer: string;
  signer: string;
  thawEndTimestamp: BigNumber;
}
export type SignerThawCanceledEvent = TypedEvent<
  [string, string, BigNumber],
  SignerThawCanceledEventObject
>;

export type SignerThawCanceledEventFilter =
  TypedEventFilter<SignerThawCanceledEvent>;

export interface SignerThawingEventObject {
  authorizer: string;
  signer: string;
  thawEndTimestamp: BigNumber;
}
export type SignerThawingEvent = TypedEvent<
  [string, string, BigNumber],
  SignerThawingEventObject
>;

export type SignerThawingEventFilter = TypedEventFilter<SignerThawingEvent>;

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

  interface: IAuthorizableInterface;

  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: {
    REVOKE_AUTHORIZATION_THAWING_PERIOD(
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    authorizeSigner(
      signer: PromiseOrValue<string>,
      proofDeadline: PromiseOrValue<BigNumberish>,
      proof: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    cancelThawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    getThawEnd(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<[BigNumber]>;

    isAuthorized(
      authorizer: PromiseOrValue<string>,
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<[boolean]>;

    revokeAuthorizedSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    thawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;
  };

  REVOKE_AUTHORIZATION_THAWING_PERIOD(
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  authorizeSigner(
    signer: PromiseOrValue<string>,
    proofDeadline: PromiseOrValue<BigNumberish>,
    proof: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  cancelThawSigner(
    signer: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  getThawEnd(
    signer: PromiseOrValue<string>,
    overrides?: CallOverrides,
  ): Promise<BigNumber>;

  isAuthorized(
    authorizer: PromiseOrValue<string>,
    signer: PromiseOrValue<string>,
    overrides?: CallOverrides,
  ): Promise<boolean>;

  revokeAuthorizedSigner(
    signer: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  thawSigner(
    signer: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  callStatic: {
    REVOKE_AUTHORIZATION_THAWING_PERIOD(
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    authorizeSigner(
      signer: PromiseOrValue<string>,
      proofDeadline: PromiseOrValue<BigNumberish>,
      proof: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides,
    ): Promise<void>;

    cancelThawSigner(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;

    getThawEnd(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    isAuthorized(
      authorizer: PromiseOrValue<string>,
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<boolean>;

    revokeAuthorizedSigner(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;

    thawSigner(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;
  };

  filters: {
    "SignerAuthorized(address,address)"(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
    ): SignerAuthorizedEventFilter;
    SignerAuthorized(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
    ): SignerAuthorizedEventFilter;

    "SignerRevoked(address,address)"(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
    ): SignerRevokedEventFilter;
    SignerRevoked(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
    ): SignerRevokedEventFilter;

    "SignerThawCanceled(address,address,uint256)"(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
      thawEndTimestamp?: null,
    ): SignerThawCanceledEventFilter;
    SignerThawCanceled(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
      thawEndTimestamp?: null,
    ): SignerThawCanceledEventFilter;

    "SignerThawing(address,address,uint256)"(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
      thawEndTimestamp?: null,
    ): SignerThawingEventFilter;
    SignerThawing(
      authorizer?: PromiseOrValue<string> | null,
      signer?: PromiseOrValue<string> | null,
      thawEndTimestamp?: null,
    ): SignerThawingEventFilter;
  };

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

    authorizeSigner(
      signer: PromiseOrValue<string>,
      proofDeadline: PromiseOrValue<BigNumberish>,
      proof: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    cancelThawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    getThawEnd(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    isAuthorized(
      authorizer: PromiseOrValue<string>,
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    revokeAuthorizedSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    thawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;
  };

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

    authorizeSigner(
      signer: PromiseOrValue<string>,
      proofDeadline: PromiseOrValue<BigNumberish>,
      proof: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    cancelThawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    getThawEnd(
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    isAuthorized(
      authorizer: PromiseOrValue<string>,
      signer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    revokeAuthorizedSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    thawSigner(
      signer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;
  };
}
