"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISemaphoreGroups__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        name: "Semaphore__GroupAlreadyExists",
        type: "error",
    },
    {
        inputs: [],
        name: "Semaphore__GroupDoesNotExist",
        type: "error",
    },
    {
        inputs: [],
        name: "Semaphore__GroupIdIsNotLessThanSnarkScalarField",
        type: "error",
    },
    {
        inputs: [],
        name: "Semaphore__InvalidCurrentChainRoot",
        type: "error",
    },
    {
        inputs: [],
        name: "Semaphore__InvalidEdgeChainRoot",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint8",
                name: "depth",
                type: "uint8",
            },
        ],
        name: "GroupCreated",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "identityCommitment",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "root",
                type: "uint256",
            },
        ],
        name: "MemberAdded",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "identityCommitment",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "root",
                type: "uint256",
            },
        ],
        name: "MemberRemoved",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
        ],
        name: "getDepth",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
        ],
        name: "getLatestNeighborEdges",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "chainID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "root",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "latestLeafIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes32",
                        name: "srcResourceID",
                        type: "bytes32",
                    },
                ],
                internalType: "struct Edge[]",
                name: "",
                type: "tuple[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
        ],
        name: "getMaxEdges",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
        ],
        name: "getNumberOfLeaves",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
        ],
        name: "getRoot",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "groupId",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "roots",
                type: "bytes",
            },
        ],
        name: "verifyRoots",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var ISemaphoreGroups__factory = /** @class */ (function () {
    function ISemaphoreGroups__factory() {
    }
    ISemaphoreGroups__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    ISemaphoreGroups__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    ISemaphoreGroups__factory.abi = _abi;
    return ISemaphoreGroups__factory;
}());
exports.ISemaphoreGroups__factory = ISemaphoreGroups__factory;
