/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  PayableOverrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";

interface IssuerInterface extends ethers.utils.Interface {
  functions: {
    "certificateTopic()": FunctionFragment;
    "owner()": FunctionFragment;
    "privateIssuer()": FunctionFragment;
    "registry()": FunctionFragment;
    "renounceOwnership()": FunctionFragment;
    "transferOwnership(address)": FunctionFragment;
    "upgradeTo(address)": FunctionFragment;
    "upgradeToAndCall(address,bytes)": FunctionFragment;
    "initialize(uint256,address)": FunctionFragment;
    "setPrivateIssuer(address)": FunctionFragment;
    "getCertificationRequest(uint256)": FunctionFragment;
    "requestCertificationFor(bytes,address)": FunctionFragment;
    "requestCertificationForBatch(bytes[],address[])": FunctionFragment;
    "requestCertification(bytes)": FunctionFragment;
    "revokeRequest(uint256)": FunctionFragment;
    "revokeCertificate(uint256)": FunctionFragment;
    "approveCertificationRequest(uint256,uint256)": FunctionFragment;
    "approveCertificationRequestBatch(uint256[],uint256[])": FunctionFragment;
    "issue(address,uint256,bytes)": FunctionFragment;
    "issueBatch(address[],uint256[],bytes[])": FunctionFragment;
    "mint(address,uint256,uint256)": FunctionFragment;
    "isRequestValid(uint256)": FunctionFragment;
    "getRegistryAddress()": FunctionFragment;
    "getPrivateIssuerAddress()": FunctionFragment;
    "version()": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "certificateTopic",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "privateIssuer",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "registry", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
  encodeFunctionData(
    functionFragment: "upgradeToAndCall",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [BigNumberish, string]
  ): string;
  encodeFunctionData(
    functionFragment: "setPrivateIssuer",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "getCertificationRequest",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "requestCertificationFor",
    values: [BytesLike, string]
  ): string;
  encodeFunctionData(
    functionFragment: "requestCertificationForBatch",
    values: [BytesLike[], string[]]
  ): string;
  encodeFunctionData(
    functionFragment: "requestCertification",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "revokeRequest",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "revokeCertificate",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "approveCertificationRequest",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "approveCertificationRequestBatch",
    values: [BigNumberish[], BigNumberish[]]
  ): string;
  encodeFunctionData(
    functionFragment: "issue",
    values: [string, BigNumberish, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "issueBatch",
    values: [string[], BigNumberish[], BytesLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "mint",
    values: [string, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isRequestValid",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getRegistryAddress",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getPrivateIssuerAddress",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "version", values?: undefined): string;

  decodeFunctionResult(
    functionFragment: "certificateTopic",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "privateIssuer",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "upgradeToAndCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setPrivateIssuer",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCertificationRequest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "requestCertificationFor",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "requestCertificationForBatch",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "requestCertification",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "revokeRequest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "revokeCertificate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "approveCertificationRequest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "approveCertificationRequestBatch",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "issue", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "issueBatch", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isRequestValid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getRegistryAddress",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getPrivateIssuerAddress",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;

  events: {
    "AdminChanged(address,address)": EventFragment;
    "BeaconUpgraded(address)": EventFragment;
    "CertificateRevoked(uint256)": EventFragment;
    "CertificateVolumeMinted(address,uint256,uint256)": EventFragment;
    "CertificationRequestApproved(address,uint256,uint256)": EventFragment;
    "CertificationRequestBatchApproved(address,address[],uint256[],uint256[])": EventFragment;
    "CertificationRequestRevoked(address,uint256)": EventFragment;
    "CertificationRequested(address,uint256)": EventFragment;
    "CertificationRequestedBatch(address,address[],uint256[])": EventFragment;
    "OwnershipTransferred(address,address)": EventFragment;
    "Upgraded(address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "CertificateRevoked"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "CertificateVolumeMinted"): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "CertificationRequestApproved"
  ): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "CertificationRequestBatchApproved"
  ): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "CertificationRequestRevoked"
  ): EventFragment;
  getEvent(nameOrSignatureOrTopic: "CertificationRequested"): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "CertificationRequestedBatch"
  ): EventFragment;
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
}

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

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: IssuerInterface;

  functions: {
    certificateTopic(overrides?: CallOverrides): Promise<[BigNumber]>;

    /**
     * Returns the address of the current owner.
     */
    owner(overrides?: CallOverrides): Promise<[string]>;

    privateIssuer(overrides?: CallOverrides): Promise<[string]>;

    registry(overrides?: CallOverrides): Promise<[string]>;

    /**
     * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
     */
    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
     */
    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeTo(
      newImplementation: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeToAndCall(
      newImplementation: string,
      data: BytesLike,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Uses the OpenZeppelin `initializer` for upgradeability.`_registry` cannot be the zero address.
     * Contructor.
     */
    initialize(
      _certificateTopic: BigNumberish,
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * `_privateIssuer` cannot be the zero address.
     * Attaches a private issuance contract to this issuance contract.
     */
    setPrivateIssuer(
      _privateIssuer: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    getCertificationRequest(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [
        [string, string, boolean, boolean, string] & {
          owner: string;
          data: string;
          approved: boolean;
          revoked: boolean;
          sender: string;
        }
      ]
    >;

    requestCertificationFor(
      _data: BytesLike,
      _owner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    requestCertificationForBatch(
      _data: BytesLike[],
      _owners: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    requestCertification(
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    revokeRequest(
      _requestId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    revokeCertificate(
      _certificateId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    approveCertificationRequest(
      _requestId: BigNumberish,
      _value: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    approveCertificationRequestBatch(
      _requestIds: BigNumberish[],
      _values: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Directly issue a certificate without going through the request/approve procedure manually.
     */
    issue(
      _to: string,
      _value: BigNumberish,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Directly issue a batch of certificates without going through the request/approve procedure manually.
     */
    issueBatch(
      _to: string[],
      _values: BigNumberish[],
      _data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Mint more volume to existing certificates
     * @param _certificateId The ID of the certificate.
     * @param _to To whom the volume should be minted.
     * @param _volume Volume that should be minted.
     */
    mint(
      _to: string,
      _certificateId: BigNumberish,
      _volume: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    /**
     * Used by other contracts to validate the token.`_requestId` has to be an existing ID.
     * Validation for certification requests.
     */
    isRequestValid(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    getRegistryAddress(overrides?: CallOverrides): Promise<[string]>;

    getPrivateIssuerAddress(overrides?: CallOverrides): Promise<[string]>;

    version(overrides?: CallOverrides): Promise<[string]>;
  };

  certificateTopic(overrides?: CallOverrides): Promise<BigNumber>;

  /**
   * Returns the address of the current owner.
   */
  owner(overrides?: CallOverrides): Promise<string>;

  privateIssuer(overrides?: CallOverrides): Promise<string>;

  registry(overrides?: CallOverrides): Promise<string>;

  /**
   * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
   */
  renounceOwnership(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
   */
  transferOwnership(
    newOwner: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
   */
  upgradeTo(
    newImplementation: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
   */
  upgradeToAndCall(
    newImplementation: string,
    data: BytesLike,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Uses the OpenZeppelin `initializer` for upgradeability.`_registry` cannot be the zero address.
   * Contructor.
   */
  initialize(
    _certificateTopic: BigNumberish,
    _registry: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * `_privateIssuer` cannot be the zero address.
   * Attaches a private issuance contract to this issuance contract.
   */
  setPrivateIssuer(
    _privateIssuer: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  getCertificationRequest(
    _requestId: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [string, string, boolean, boolean, string] & {
      owner: string;
      data: string;
      approved: boolean;
      revoked: boolean;
      sender: string;
    }
  >;

  requestCertificationFor(
    _data: BytesLike,
    _owner: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  requestCertificationForBatch(
    _data: BytesLike[],
    _owners: string[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  requestCertification(
    _data: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  revokeRequest(
    _requestId: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  revokeCertificate(
    _certificateId: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  approveCertificationRequest(
    _requestId: BigNumberish,
    _value: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  approveCertificationRequestBatch(
    _requestIds: BigNumberish[],
    _values: BigNumberish[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Directly issue a certificate without going through the request/approve procedure manually.
   */
  issue(
    _to: string,
    _value: BigNumberish,
    _data: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Directly issue a batch of certificates without going through the request/approve procedure manually.
   */
  issueBatch(
    _to: string[],
    _values: BigNumberish[],
    _data: BytesLike[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Mint more volume to existing certificates
   * @param _certificateId The ID of the certificate.
   * @param _to To whom the volume should be minted.
   * @param _volume Volume that should be minted.
   */
  mint(
    _to: string,
    _certificateId: BigNumberish,
    _volume: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  /**
   * Used by other contracts to validate the token.`_requestId` has to be an existing ID.
   * Validation for certification requests.
   */
  isRequestValid(
    _requestId: BigNumberish,
    overrides?: CallOverrides
  ): Promise<boolean>;

  getRegistryAddress(overrides?: CallOverrides): Promise<string>;

  getPrivateIssuerAddress(overrides?: CallOverrides): Promise<string>;

  version(overrides?: CallOverrides): Promise<string>;

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

    /**
     * Returns the address of the current owner.
     */
    owner(overrides?: CallOverrides): Promise<string>;

    privateIssuer(overrides?: CallOverrides): Promise<string>;

    registry(overrides?: CallOverrides): Promise<string>;

    /**
     * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
     */
    renounceOwnership(overrides?: CallOverrides): Promise<void>;

    /**
     * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
     */
    transferOwnership(
      newOwner: string,
      overrides?: CallOverrides
    ): Promise<void>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeTo(
      newImplementation: string,
      overrides?: CallOverrides
    ): Promise<void>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeToAndCall(
      newImplementation: string,
      data: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    /**
     * Uses the OpenZeppelin `initializer` for upgradeability.`_registry` cannot be the zero address.
     * Contructor.
     */
    initialize(
      _certificateTopic: BigNumberish,
      _registry: string,
      overrides?: CallOverrides
    ): Promise<void>;

    /**
     * `_privateIssuer` cannot be the zero address.
     * Attaches a private issuance contract to this issuance contract.
     */
    setPrivateIssuer(
      _privateIssuer: string,
      overrides?: CallOverrides
    ): Promise<void>;

    getCertificationRequest(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [string, string, boolean, boolean, string] & {
        owner: string;
        data: string;
        approved: boolean;
        revoked: boolean;
        sender: string;
      }
    >;

    requestCertificationFor(
      _data: BytesLike,
      _owner: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    requestCertificationForBatch(
      _data: BytesLike[],
      _owners: string[],
      overrides?: CallOverrides
    ): Promise<BigNumber[]>;

    requestCertification(
      _data: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    revokeRequest(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    revokeCertificate(
      _certificateId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    approveCertificationRequest(
      _requestId: BigNumberish,
      _value: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    approveCertificationRequestBatch(
      _requestIds: BigNumberish[],
      _values: BigNumberish[],
      overrides?: CallOverrides
    ): Promise<BigNumber[]>;

    /**
     * Directly issue a certificate without going through the request/approve procedure manually.
     */
    issue(
      _to: string,
      _value: BigNumberish,
      _data: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    /**
     * Directly issue a batch of certificates without going through the request/approve procedure manually.
     */
    issueBatch(
      _to: string[],
      _values: BigNumberish[],
      _data: BytesLike[],
      overrides?: CallOverrides
    ): Promise<BigNumber[]>;

    /**
     * Mint more volume to existing certificates
     * @param _certificateId The ID of the certificate.
     * @param _to To whom the volume should be minted.
     * @param _volume Volume that should be minted.
     */
    mint(
      _to: string,
      _certificateId: BigNumberish,
      _volume: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    /**
     * Used by other contracts to validate the token.`_requestId` has to be an existing ID.
     * Validation for certification requests.
     */
    isRequestValid(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    getRegistryAddress(overrides?: CallOverrides): Promise<string>;

    getPrivateIssuerAddress(overrides?: CallOverrides): Promise<string>;

    version(overrides?: CallOverrides): Promise<string>;
  };

  filters: {
    AdminChanged(
      previousAdmin?: null,
      newAdmin?: null
    ): TypedEventFilter<
      [string, string],
      { previousAdmin: string; newAdmin: string }
    >;

    BeaconUpgraded(
      beacon?: string | null
    ): TypedEventFilter<[string], { beacon: string }>;

    CertificateRevoked(
      _certificateId?: BigNumberish | null
    ): TypedEventFilter<[BigNumber], { _certificateId: BigNumber }>;

    CertificateVolumeMinted(
      _owner?: string | null,
      _certificateId?: BigNumberish | null,
      _volume?: BigNumberish | null
    ): TypedEventFilter<
      [string, BigNumber, BigNumber],
      { _owner: string; _certificateId: BigNumber; _volume: BigNumber }
    >;

    CertificationRequestApproved(
      _owner?: string | null,
      _id?: BigNumberish | null,
      _certificateId?: BigNumberish | null
    ): TypedEventFilter<
      [string, BigNumber, BigNumber],
      { _owner: string; _id: BigNumber; _certificateId: BigNumber }
    >;

    CertificationRequestBatchApproved(
      operator?: string | null,
      _owners?: null,
      _ids?: null,
      _certificateIds?: null
    ): TypedEventFilter<
      [string, string[], BigNumber[], BigNumber[]],
      {
        operator: string;
        _owners: string[];
        _ids: BigNumber[];
        _certificateIds: BigNumber[];
      }
    >;

    CertificationRequestRevoked(
      _owner?: string | null,
      _id?: BigNumberish | null
    ): TypedEventFilter<
      [string, BigNumber],
      { _owner: string; _id: BigNumber }
    >;

    CertificationRequested(
      _owner?: string | null,
      _id?: BigNumberish | null
    ): TypedEventFilter<
      [string, BigNumber],
      { _owner: string; _id: BigNumber }
    >;

    CertificationRequestedBatch(
      operator?: string | null,
      _owners?: null,
      _id?: null
    ): TypedEventFilter<
      [string, string[], BigNumber[]],
      { operator: string; _owners: string[]; _id: BigNumber[] }
    >;

    OwnershipTransferred(
      previousOwner?: string | null,
      newOwner?: string | null
    ): TypedEventFilter<
      [string, string],
      { previousOwner: string; newOwner: string }
    >;

    Upgraded(
      implementation?: string | null
    ): TypedEventFilter<[string], { implementation: string }>;
  };

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

    /**
     * Returns the address of the current owner.
     */
    owner(overrides?: CallOverrides): Promise<BigNumber>;

    privateIssuer(overrides?: CallOverrides): Promise<BigNumber>;

    registry(overrides?: CallOverrides): Promise<BigNumber>;

    /**
     * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
     */
    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
     */
    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeTo(
      newImplementation: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeToAndCall(
      newImplementation: string,
      data: BytesLike,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Uses the OpenZeppelin `initializer` for upgradeability.`_registry` cannot be the zero address.
     * Contructor.
     */
    initialize(
      _certificateTopic: BigNumberish,
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * `_privateIssuer` cannot be the zero address.
     * Attaches a private issuance contract to this issuance contract.
     */
    setPrivateIssuer(
      _privateIssuer: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    getCertificationRequest(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    requestCertificationFor(
      _data: BytesLike,
      _owner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    requestCertificationForBatch(
      _data: BytesLike[],
      _owners: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    requestCertification(
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    revokeRequest(
      _requestId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    revokeCertificate(
      _certificateId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    approveCertificationRequest(
      _requestId: BigNumberish,
      _value: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    approveCertificationRequestBatch(
      _requestIds: BigNumberish[],
      _values: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Directly issue a certificate without going through the request/approve procedure manually.
     */
    issue(
      _to: string,
      _value: BigNumberish,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Directly issue a batch of certificates without going through the request/approve procedure manually.
     */
    issueBatch(
      _to: string[],
      _values: BigNumberish[],
      _data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Mint more volume to existing certificates
     * @param _certificateId The ID of the certificate.
     * @param _to To whom the volume should be minted.
     * @param _volume Volume that should be minted.
     */
    mint(
      _to: string,
      _certificateId: BigNumberish,
      _volume: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    /**
     * Used by other contracts to validate the token.`_requestId` has to be an existing ID.
     * Validation for certification requests.
     */
    isRequestValid(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getRegistryAddress(overrides?: CallOverrides): Promise<BigNumber>;

    getPrivateIssuerAddress(overrides?: CallOverrides): Promise<BigNumber>;

    version(overrides?: CallOverrides): Promise<BigNumber>;
  };

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

    /**
     * Returns the address of the current owner.
     */
    owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    privateIssuer(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    registry(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    /**
     * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
     */
    renounceOwnership(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
     */
    transferOwnership(
      newOwner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeTo(
      newImplementation: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
     */
    upgradeToAndCall(
      newImplementation: string,
      data: BytesLike,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Uses the OpenZeppelin `initializer` for upgradeability.`_registry` cannot be the zero address.
     * Contructor.
     */
    initialize(
      _certificateTopic: BigNumberish,
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * `_privateIssuer` cannot be the zero address.
     * Attaches a private issuance contract to this issuance contract.
     */
    setPrivateIssuer(
      _privateIssuer: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    getCertificationRequest(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    requestCertificationFor(
      _data: BytesLike,
      _owner: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    requestCertificationForBatch(
      _data: BytesLike[],
      _owners: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    requestCertification(
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    revokeRequest(
      _requestId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    revokeCertificate(
      _certificateId: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    approveCertificationRequest(
      _requestId: BigNumberish,
      _value: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    approveCertificationRequestBatch(
      _requestIds: BigNumberish[],
      _values: BigNumberish[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Directly issue a certificate without going through the request/approve procedure manually.
     */
    issue(
      _to: string,
      _value: BigNumberish,
      _data: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Directly issue a batch of certificates without going through the request/approve procedure manually.
     */
    issueBatch(
      _to: string[],
      _values: BigNumberish[],
      _data: BytesLike[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Mint more volume to existing certificates
     * @param _certificateId The ID of the certificate.
     * @param _to To whom the volume should be minted.
     * @param _volume Volume that should be minted.
     */
    mint(
      _to: string,
      _certificateId: BigNumberish,
      _volume: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    /**
     * Used by other contracts to validate the token.`_requestId` has to be an existing ID.
     * Validation for certification requests.
     */
    isRequestValid(
      _requestId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getRegistryAddress(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getPrivateIssuerAddress(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
  };
}
