"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.EcdsaDkgValidator__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "contract SortitionPool",
                name: "_sortitionPool",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "activeThreshold",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "groupSize",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "groupThreshold",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "publicKeyByteSize",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "signatureByteSize",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "sortitionPool",
        outputs: [
            {
                internalType: "contract SortitionPool",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "submitterMemberIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "groupPubKey",
                        type: "bytes",
                    },
                    {
                        internalType: "uint8[]",
                        name: "misbehavedMembersIndices",
                        type: "uint8[]",
                    },
                    {
                        internalType: "bytes",
                        name: "signatures",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256[]",
                        name: "signingMembersIndices",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32[]",
                        name: "members",
                        type: "uint32[]",
                    },
                    {
                        internalType: "bytes32",
                        name: "membersHash",
                        type: "bytes32",
                    },
                ],
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "seed",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "startBlock",
                type: "uint256",
            },
        ],
        name: "validate",
        outputs: [
            {
                internalType: "bool",
                name: "isValid",
                type: "bool",
            },
            {
                internalType: "string",
                name: "errorMsg",
                type: "string",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "submitterMemberIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "groupPubKey",
                        type: "bytes",
                    },
                    {
                        internalType: "uint8[]",
                        name: "misbehavedMembersIndices",
                        type: "uint8[]",
                    },
                    {
                        internalType: "bytes",
                        name: "signatures",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256[]",
                        name: "signingMembersIndices",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32[]",
                        name: "members",
                        type: "uint32[]",
                    },
                    {
                        internalType: "bytes32",
                        name: "membersHash",
                        type: "bytes32",
                    },
                ],
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
        ],
        name: "validateFields",
        outputs: [
            {
                internalType: "bool",
                name: "isValid",
                type: "bool",
            },
            {
                internalType: "string",
                name: "errorMsg",
                type: "string",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "submitterMemberIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "groupPubKey",
                        type: "bytes",
                    },
                    {
                        internalType: "uint8[]",
                        name: "misbehavedMembersIndices",
                        type: "uint8[]",
                    },
                    {
                        internalType: "bytes",
                        name: "signatures",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256[]",
                        name: "signingMembersIndices",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32[]",
                        name: "members",
                        type: "uint32[]",
                    },
                    {
                        internalType: "bytes32",
                        name: "membersHash",
                        type: "bytes32",
                    },
                ],
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "seed",
                type: "uint256",
            },
        ],
        name: "validateGroupMembers",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "submitterMemberIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "groupPubKey",
                        type: "bytes",
                    },
                    {
                        internalType: "uint8[]",
                        name: "misbehavedMembersIndices",
                        type: "uint8[]",
                    },
                    {
                        internalType: "bytes",
                        name: "signatures",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256[]",
                        name: "signingMembersIndices",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32[]",
                        name: "members",
                        type: "uint32[]",
                    },
                    {
                        internalType: "bytes32",
                        name: "membersHash",
                        type: "bytes32",
                    },
                ],
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
        ],
        name: "validateMembersHash",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "submitterMemberIndex",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "groupPubKey",
                        type: "bytes",
                    },
                    {
                        internalType: "uint8[]",
                        name: "misbehavedMembersIndices",
                        type: "uint8[]",
                    },
                    {
                        internalType: "bytes",
                        name: "signatures",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256[]",
                        name: "signingMembersIndices",
                        type: "uint256[]",
                    },
                    {
                        internalType: "uint32[]",
                        name: "members",
                        type: "uint32[]",
                    },
                    {
                        internalType: "bytes32",
                        name: "membersHash",
                        type: "bytes32",
                    },
                ],
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "startBlock",
                type: "uint256",
            },
        ],
        name: "validateSignatures",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = " ";
var isSuperArgs = function (xs) { return xs.length > 1; };
var EcdsaDkgValidator__factory = /** @class */ (function (_super) {
    __extends(EcdsaDkgValidator__factory, _super);
    function EcdsaDkgValidator__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (isSuperArgs(args)) {
            _this = _super.apply(this, args) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    EcdsaDkgValidator__factory.prototype.deploy = function (_sortitionPool, overrides) {
        return _super.prototype.deploy.call(this, _sortitionPool, overrides || {});
    };
    EcdsaDkgValidator__factory.prototype.getDeployTransaction = function (_sortitionPool, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _sortitionPool, overrides || {});
    };
    EcdsaDkgValidator__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    EcdsaDkgValidator__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    EcdsaDkgValidator__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    EcdsaDkgValidator__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    EcdsaDkgValidator__factory.bytecode = _bytecode;
    EcdsaDkgValidator__factory.abi = _abi;
    return EcdsaDkgValidator__factory;
}(ethers_1.ContractFactory));
exports.EcdsaDkgValidator__factory = EcdsaDkgValidator__factory;
