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

export interface SchemeRegistrarInterface extends utils.Interface {
  functions: {
    "proposeScheme(address,address,bytes32,bytes4,string)": FunctionFragment;
  };

  getFunction(nameOrSignatureOrTopic: "proposeScheme"): FunctionFragment;

  encodeFunctionData(
    functionFragment: "proposeScheme",
    values: [string, string, BytesLike, BytesLike, string]
  ): string;

  decodeFunctionResult(
    functionFragment: "proposeScheme",
    data: BytesLike
  ): Result;

  events: {
    "NewSchemeProposal(address,bytes32,address,address,bytes32,bytes4,string)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "NewSchemeProposal"): EventFragment;
}

export interface NewSchemeProposalEventObject {
  _avatar: string;
  _proposalId: string;
  _intVoteInterface: string;
  _scheme: string;
  _parametersHash: string;
  _permissions: string;
  _descriptionHash: string;
}
export type NewSchemeProposalEvent = TypedEvent<
  [string, string, string, string, string, string, string],
  NewSchemeProposalEventObject
>;

export type NewSchemeProposalEventFilter =
  TypedEventFilter<NewSchemeProposalEvent>;

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

  interface: SchemeRegistrarInterface;

  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: {
    proposeScheme(
      _avatar: string,
      _scheme: string,
      _parametersHash: BytesLike,
      _permissions: BytesLike,
      _descriptionHash: string,
      overrides?: Overrides & { from?: string }
    ): Promise<ContractTransaction>;
  };

  proposeScheme(
    _avatar: string,
    _scheme: string,
    _parametersHash: BytesLike,
    _permissions: BytesLike,
    _descriptionHash: string,
    overrides?: Overrides & { from?: string }
  ): Promise<ContractTransaction>;

  callStatic: {
    proposeScheme(
      _avatar: string,
      _scheme: string,
      _parametersHash: BytesLike,
      _permissions: BytesLike,
      _descriptionHash: string,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {
    "NewSchemeProposal(address,bytes32,address,address,bytes32,bytes4,string)"(
      _avatar?: string | null,
      _proposalId?: BytesLike | null,
      _intVoteInterface?: string | null,
      _scheme?: null,
      _parametersHash?: null,
      _permissions?: null,
      _descriptionHash?: null
    ): NewSchemeProposalEventFilter;
    NewSchemeProposal(
      _avatar?: string | null,
      _proposalId?: BytesLike | null,
      _intVoteInterface?: string | null,
      _scheme?: null,
      _parametersHash?: null,
      _permissions?: null,
      _descriptionHash?: null
    ): NewSchemeProposalEventFilter;
  };

  estimateGas: {
    proposeScheme(
      _avatar: string,
      _scheme: string,
      _parametersHash: BytesLike,
      _permissions: BytesLike,
      _descriptionHash: string,
      overrides?: Overrides & { from?: string }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    proposeScheme(
      _avatar: string,
      _scheme: string,
      _parametersHash: BytesLike,
      _permissions: BytesLike,
      _descriptionHash: string,
      overrides?: Overrides & { from?: string }
    ): Promise<PopulatedTransaction>;
  };
}
