/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  EventFragment,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedLogDescription,
  TypedListener,
  TypedContractMethod,
} from "../../common";

export declare namespace IEAS {
  export type AttestationStruct = {
    uuid: BytesLike;
    schema: BytesLike;
    recipient: AddressLike;
    attester: AddressLike;
    time: BigNumberish;
    expirationTime: BigNumberish;
    revocationTime: BigNumberish;
    refUUID: BytesLike;
    data: BytesLike;
  };

  export type AttestationStructOutput = [
    uuid: string,
    schema: string,
    recipient: string,
    attester: string,
    time: bigint,
    expirationTime: bigint,
    revocationTime: bigint,
    refUUID: string,
    data: string
  ] & {
    uuid: string;
    schema: string;
    recipient: string;
    attester: string;
    time: bigint;
    expirationTime: bigint;
    revocationTime: bigint;
    refUUID: string;
    data: string;
  };
}

export interface TellerASInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "VERSION"
      | "attest"
      | "attestByDelegation"
      | "getASRegistry"
      | "getAttestation"
      | "getAttestationsCount"
      | "getEIP712Verifier"
      | "getLastUUID"
      | "getReceivedAttestationUUIDs"
      | "getReceivedAttestationUUIDsCount"
      | "getRelatedAttestationUUIDs"
      | "getRelatedAttestationUUIDsCount"
      | "getSchemaAttestationUUIDs"
      | "getSchemaAttestationUUIDsCount"
      | "getSentAttestationUUIDs"
      | "getSentAttestationUUIDsCount"
      | "isAttestationActive"
      | "isAttestationValid"
      | "revoke"
      | "revokeByDelegation"
  ): FunctionFragment;

  getEvent(nameOrSignatureOrTopic: "Attested" | "Revoked"): EventFragment;

  encodeFunctionData(functionFragment: "VERSION", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "attest",
    values: [AddressLike, BytesLike, BigNumberish, BytesLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "attestByDelegation",
    values: [
      AddressLike,
      BytesLike,
      BigNumberish,
      BytesLike,
      BytesLike,
      AddressLike,
      BigNumberish,
      BytesLike,
      BytesLike
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "getASRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getAttestation",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getAttestationsCount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getEIP712Verifier",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLastUUID",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getReceivedAttestationUUIDs",
    values: [AddressLike, BytesLike, BigNumberish, BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "getReceivedAttestationUUIDsCount",
    values: [AddressLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getRelatedAttestationUUIDs",
    values: [BytesLike, BigNumberish, BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "getRelatedAttestationUUIDsCount",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getSchemaAttestationUUIDs",
    values: [BytesLike, BigNumberish, BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "getSchemaAttestationUUIDsCount",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getSentAttestationUUIDs",
    values: [AddressLike, BytesLike, BigNumberish, BigNumberish, boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "getSentAttestationUUIDsCount",
    values: [AddressLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isAttestationActive",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isAttestationValid",
    values: [BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "revoke", values: [BytesLike]): string;
  encodeFunctionData(
    functionFragment: "revokeByDelegation",
    values: [BytesLike, AddressLike, BigNumberish, BytesLike, BytesLike]
  ): string;

  decodeFunctionResult(functionFragment: "VERSION", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "attest", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "attestByDelegation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getASRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAttestation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAttestationsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getEIP712Verifier",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLastUUID",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getReceivedAttestationUUIDs",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getReceivedAttestationUUIDsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getRelatedAttestationUUIDs",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getRelatedAttestationUUIDsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getSchemaAttestationUUIDs",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getSchemaAttestationUUIDsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getSentAttestationUUIDs",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getSentAttestationUUIDsCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isAttestationActive",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isAttestationValid",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "revoke", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "revokeByDelegation",
    data: BytesLike
  ): Result;
}

export namespace AttestedEvent {
  export type InputTuple = [
    recipient: AddressLike,
    attester: AddressLike,
    uuid: BytesLike,
    schema: BytesLike
  ];
  export type OutputTuple = [
    recipient: string,
    attester: string,
    uuid: string,
    schema: string
  ];
  export interface OutputObject {
    recipient: string;
    attester: string;
    uuid: string;
    schema: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace RevokedEvent {
  export type InputTuple = [
    recipient: AddressLike,
    attester: AddressLike,
    uuid: BytesLike,
    schema: BytesLike
  ];
  export type OutputTuple = [
    recipient: string,
    attester: string,
    uuid: string,
    schema: string
  ];
  export interface OutputObject {
    recipient: string;
    attester: string;
    uuid: string;
    schema: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: TellerASInterface;

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

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

  attest: TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      expirationTime: BigNumberish,
      refUUID: BytesLike,
      data: BytesLike
    ],
    [string],
    "payable"
  >;

  attestByDelegation: TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      expirationTime: BigNumberish,
      refUUID: BytesLike,
      data: BytesLike,
      attester: AddressLike,
      v: BigNumberish,
      r: BytesLike,
      s: BytesLike
    ],
    [string],
    "payable"
  >;

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

  getAttestation: TypedContractMethod<
    [uuid: BytesLike],
    [IEAS.AttestationStructOutput],
    "view"
  >;

  getAttestationsCount: TypedContractMethod<[], [bigint], "view">;

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

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

  getReceivedAttestationUUIDs: TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;

  getReceivedAttestationUUIDsCount: TypedContractMethod<
    [recipient: AddressLike, schema: BytesLike],
    [bigint],
    "view"
  >;

  getRelatedAttestationUUIDs: TypedContractMethod<
    [
      uuid: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;

  getRelatedAttestationUUIDsCount: TypedContractMethod<
    [uuid: BytesLike],
    [bigint],
    "view"
  >;

  getSchemaAttestationUUIDs: TypedContractMethod<
    [
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;

  getSchemaAttestationUUIDsCount: TypedContractMethod<
    [schema: BytesLike],
    [bigint],
    "view"
  >;

  getSentAttestationUUIDs: TypedContractMethod<
    [
      attester: AddressLike,
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;

  getSentAttestationUUIDsCount: TypedContractMethod<
    [recipient: AddressLike, schema: BytesLike],
    [bigint],
    "view"
  >;

  isAttestationActive: TypedContractMethod<
    [uuid: BytesLike],
    [boolean],
    "view"
  >;

  isAttestationValid: TypedContractMethod<[uuid: BytesLike], [boolean], "view">;

  revoke: TypedContractMethod<[uuid: BytesLike], [void], "nonpayable">;

  revokeByDelegation: TypedContractMethod<
    [
      uuid: BytesLike,
      attester: AddressLike,
      v: BigNumberish,
      r: BytesLike,
      s: BytesLike
    ],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "VERSION"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "attest"
  ): TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      expirationTime: BigNumberish,
      refUUID: BytesLike,
      data: BytesLike
    ],
    [string],
    "payable"
  >;
  getFunction(
    nameOrSignature: "attestByDelegation"
  ): TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      expirationTime: BigNumberish,
      refUUID: BytesLike,
      data: BytesLike,
      attester: AddressLike,
      v: BigNumberish,
      r: BytesLike,
      s: BytesLike
    ],
    [string],
    "payable"
  >;
  getFunction(
    nameOrSignature: "getASRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getAttestation"
  ): TypedContractMethod<
    [uuid: BytesLike],
    [IEAS.AttestationStructOutput],
    "view"
  >;
  getFunction(
    nameOrSignature: "getAttestationsCount"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "getEIP712Verifier"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getLastUUID"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getReceivedAttestationUUIDs"
  ): TypedContractMethod<
    [
      recipient: AddressLike,
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;
  getFunction(
    nameOrSignature: "getReceivedAttestationUUIDsCount"
  ): TypedContractMethod<
    [recipient: AddressLike, schema: BytesLike],
    [bigint],
    "view"
  >;
  getFunction(
    nameOrSignature: "getRelatedAttestationUUIDs"
  ): TypedContractMethod<
    [
      uuid: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;
  getFunction(
    nameOrSignature: "getRelatedAttestationUUIDsCount"
  ): TypedContractMethod<[uuid: BytesLike], [bigint], "view">;
  getFunction(
    nameOrSignature: "getSchemaAttestationUUIDs"
  ): TypedContractMethod<
    [
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;
  getFunction(
    nameOrSignature: "getSchemaAttestationUUIDsCount"
  ): TypedContractMethod<[schema: BytesLike], [bigint], "view">;
  getFunction(
    nameOrSignature: "getSentAttestationUUIDs"
  ): TypedContractMethod<
    [
      attester: AddressLike,
      schema: BytesLike,
      start: BigNumberish,
      length: BigNumberish,
      reverseOrder: boolean
    ],
    [string[]],
    "view"
  >;
  getFunction(
    nameOrSignature: "getSentAttestationUUIDsCount"
  ): TypedContractMethod<
    [recipient: AddressLike, schema: BytesLike],
    [bigint],
    "view"
  >;
  getFunction(
    nameOrSignature: "isAttestationActive"
  ): TypedContractMethod<[uuid: BytesLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "isAttestationValid"
  ): TypedContractMethod<[uuid: BytesLike], [boolean], "view">;
  getFunction(
    nameOrSignature: "revoke"
  ): TypedContractMethod<[uuid: BytesLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "revokeByDelegation"
  ): TypedContractMethod<
    [
      uuid: BytesLike,
      attester: AddressLike,
      v: BigNumberish,
      r: BytesLike,
      s: BytesLike
    ],
    [void],
    "nonpayable"
  >;

  getEvent(
    key: "Attested"
  ): TypedContractEvent<
    AttestedEvent.InputTuple,
    AttestedEvent.OutputTuple,
    AttestedEvent.OutputObject
  >;
  getEvent(
    key: "Revoked"
  ): TypedContractEvent<
    RevokedEvent.InputTuple,
    RevokedEvent.OutputTuple,
    RevokedEvent.OutputObject
  >;

  filters: {
    "Attested(address,address,bytes32,bytes32)": TypedContractEvent<
      AttestedEvent.InputTuple,
      AttestedEvent.OutputTuple,
      AttestedEvent.OutputObject
    >;
    Attested: TypedContractEvent<
      AttestedEvent.InputTuple,
      AttestedEvent.OutputTuple,
      AttestedEvent.OutputObject
    >;

    "Revoked(address,address,bytes32,bytes32)": TypedContractEvent<
      RevokedEvent.InputTuple,
      RevokedEvent.OutputTuple,
      RevokedEvent.OutputObject
    >;
    Revoked: TypedContractEvent<
      RevokedEvent.InputTuple,
      RevokedEvent.OutputTuple,
      RevokedEvent.OutputObject
    >;
  };
}
