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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type { MultiRole, MultiRoleInterface } from "../MultiRole";

const _abi = [
  {
    type: "function",
    name: "addMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "newMember",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "getMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "holdsRole",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "memberToCheck",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "removeMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "memberToRemove",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "renounceMembership",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "resetMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "newMember",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "event",
    name: "AddedSharedMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        indexed: true,
        internalType: "uint256",
      },
      {
        name: "newMember",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "manager",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "RemovedSharedMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        indexed: true,
        internalType: "uint256",
      },
      {
        name: "oldMember",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "manager",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "ResetExclusiveMember",
    inputs: [
      {
        name: "roleId",
        type: "uint256",
        indexed: true,
        internalType: "uint256",
      },
      {
        name: "newMember",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "manager",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
] as const;

export class MultiRole__factory {
  static readonly abi = _abi;
  static createInterface(): MultiRoleInterface {
    return new utils.Interface(_abi) as MultiRoleInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): MultiRole {
    return new Contract(address, _abi, signerOrProvider) as MultiRole;
  }
}
