"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockSemaphore__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_groupId",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "flipValid",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "groupId",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "valid",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_groupId",
                type: "uint256",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "merkleTreeDepth",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "merkleTreeRoot",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "nullifier",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "message",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "scope",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256[8]",
                        name: "points",
                        type: "uint256[8]",
                    },
                ],
                internalType: "struct ISemaphore.SemaphoreProof",
                name: "proof",
                type: "tuple",
            },
        ],
        name: "verifyProof",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x60a06040526000805460ff19166001179055348015601c57600080fd5b506040516101bc3803806101bc8339810160408190526039916040565b6080526058565b600060208284031215605157600080fd5b5051919050565b60805161014a6100726000396000609d015261014a6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80633d45d9ea14610051578063456f41881461006a578063a0f44c9214610098578063c1991219146100cd575b600080fd5b6100686000805460ff19811660ff90911615179055565b005b6100836100783660046100da565b505060005460ff1690565b60405190151581526020015b60405180910390f35b6100bf7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161008f565b6000546100839060ff1681565b6000808284036101c08112156100ef57600080fd5b833592506101a0601f198201121561010657600080fd5b50602083019050925092905056fea2646970667358221220178a1c4e9c59382eb746a995374ccbae0d1fb675a150e3c755b606f2d6b0106664736f6c634300081c0033";
const isSuperArgs = (xs) => xs.length > 1;
class MockSemaphore__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(_groupId, overrides) {
        return super.getDeployTransaction(_groupId, overrides || {});
    }
    deploy(_groupId, overrides) {
        return super.deploy(_groupId, overrides || {});
    }
    connect(runner) {
        return super.connect(runner);
    }
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.MockSemaphore__factory = MockSemaphore__factory;
MockSemaphore__factory.bytecode = _bytecode;
MockSemaphore__factory.abi = _abi;
//# sourceMappingURL=MockSemaphore__factory.js.map