/* 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 } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../../../common";

export interface IEthereumDIDRegistryInterface extends utils.Interface {
  functions: {
    "identityOwner(address)": FunctionFragment;
    "setAttribute(address,bytes32,bytes,uint256)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic: "identityOwner" | "setAttribute",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "identityOwner",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "setAttribute",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;

  decodeFunctionResult(
    functionFragment: "identityOwner",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAttribute",
    data: BytesLike,
  ): Result;

  events: {};
}

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

  interface: IEthereumDIDRegistryInterface;

  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: {
    identityOwner(
      identity: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<[string]>;

    setAttribute(
      identity: PromiseOrValue<string>,
      name: PromiseOrValue<BytesLike>,
      value: PromiseOrValue<BytesLike>,
      validity: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;
  };

  identityOwner(
    identity: PromiseOrValue<string>,
    overrides?: CallOverrides,
  ): Promise<string>;

  setAttribute(
    identity: PromiseOrValue<string>,
    name: PromiseOrValue<BytesLike>,
    value: PromiseOrValue<BytesLike>,
    validity: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  callStatic: {
    identityOwner(
      identity: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<string>;

    setAttribute(
      identity: PromiseOrValue<string>,
      name: PromiseOrValue<BytesLike>,
      value: PromiseOrValue<BytesLike>,
      validity: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    identityOwner(
      identity: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<BigNumber>;

    setAttribute(
      identity: PromiseOrValue<string>,
      name: PromiseOrValue<BytesLike>,
      value: PromiseOrValue<BytesLike>,
      validity: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    identityOwner(
      identity: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<PopulatedTransaction>;

    setAttribute(
      identity: PromiseOrValue<string>,
      name: PromiseOrValue<BytesLike>,
      value: PromiseOrValue<BytesLike>,
      validity: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;
  };
}
