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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IASRegistry,
  IASRegistryInterface,
} from "../../../contracts/interfaces/IASRegistry";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "bytes32",
        name: "uuid",
        type: "bytes32",
      },
      {
        indexed: true,
        internalType: "uint256",
        name: "index",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "bytes",
        name: "schema",
        type: "bytes",
      },
      {
        indexed: false,
        internalType: "contract IASResolver",
        name: "resolver",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "attester",
        type: "address",
      },
    ],
    name: "Registered",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "uuid",
        type: "bytes32",
      },
    ],
    name: "getAS",
    outputs: [
      {
        components: [
          {
            internalType: "bytes32",
            name: "uuid",
            type: "bytes32",
          },
          {
            internalType: "contract IASResolver",
            name: "resolver",
            type: "address",
          },
          {
            internalType: "uint256",
            name: "index",
            type: "uint256",
          },
          {
            internalType: "bytes",
            name: "schema",
            type: "bytes",
          },
        ],
        internalType: "struct IASRegistry.ASRecord",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "getASCount",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes",
        name: "schema",
        type: "bytes",
      },
      {
        internalType: "contract IASResolver",
        name: "resolver",
        type: "address",
      },
    ],
    name: "register",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IASRegistry__factory {
  static readonly abi = _abi;
  static createInterface(): IASRegistryInterface {
    return new Interface(_abi) as IASRegistryInterface;
  }
  static connect(address: string, runner?: ContractRunner | null): IASRegistry {
    return new Contract(address, _abi, runner) as unknown as IASRegistry;
  }
}
