"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IMACI__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "startDate",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "endDate",
                        type: "uint256",
                    },
                    {
                        components: [
                            {
                                internalType: "uint8",
                                name: "tallyProcessingStateTreeDepth",
                                type: "uint8",
                            },
                            {
                                internalType: "uint8",
                                name: "voteOptionTreeDepth",
                                type: "uint8",
                            },
                            {
                                internalType: "uint8",
                                name: "stateTreeDepth",
                                type: "uint8",
                            },
                        ],
                        internalType: "struct Params.TreeDepths",
                        name: "treeDepths",
                        type: "tuple",
                    },
                    {
                        internalType: "uint8",
                        name: "messageBatchSize",
                        type: "uint8",
                    },
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "x",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "y",
                                type: "uint256",
                            },
                        ],
                        internalType: "struct DomainObjs.PublicKey",
                        name: "coordinatorPublicKey",
                        type: "tuple",
                    },
                    {
                        internalType: "address",
                        name: "verifier",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "verifyingKeysRegistry",
                        type: "address",
                    },
                    {
                        internalType: "enum DomainObjs.Mode",
                        name: "mode",
                        type: "uint8",
                    },
                    {
                        internalType: "address",
                        name: "policy",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "initialVoiceCreditProxy",
                        type: "address",
                    },
                    {
                        internalType: "address[]",
                        name: "relayers",
                        type: "address[]",
                    },
                    {
                        internalType: "uint256",
                        name: "voteOptions",
                        type: "uint256",
                    },
                ],
                internalType: "struct IMACI.DeployPollArgs",
                name: "_pollArgs",
                type: "tuple",
            },
        ],
        name: "deployPoll",
        outputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "poll",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "messageProcessor",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "tally",
                        type: "address",
                    },
                ],
                internalType: "struct IMACI.PollContracts",
                name: "",
                type: "tuple",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_publicKeyHash",
                type: "uint256",
            },
        ],
        name: "getStateIndex",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_index",
                type: "uint256",
            },
        ],
        name: "getStateRootOnIndexedSignUp",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getStateTreeRoot",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "nextPollId",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "x",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "y",
                        type: "uint256",
                    },
                ],
                internalType: "struct DomainObjs.PublicKey",
                name: "_publicKey",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "_signUpPolicyData",
                type: "bytes",
            },
        ],
        name: "signUp",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "stateTreeDepth",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "totalSignups",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
class IMACI__factory {
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.IMACI__factory = IMACI__factory;
IMACI__factory.abi = _abi;
//# sourceMappingURL=IMACI__factory.js.map