"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.EcdsaDkg__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "resultHash",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "address",
                name: "approver",
                type: "address",
            },
        ],
        name: "DkgResultApproved",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "resultHash",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "address",
                name: "challenger",
                type: "address",
            },
            {
                indexed: false,
                internalType: "string",
                name: "reason",
                type: "string",
            },
        ],
        name: "DkgResultChallenged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "resultHash",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "seed",
                type: "uint256",
            },
            {
                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",
                    },
                ],
                indexed: false,
                internalType: "struct EcdsaDkg.Result",
                name: "result",
                type: "tuple",
            },
        ],
        name: "DkgResultSubmitted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [],
        name: "DkgSeedTimedOut",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "seed",
                type: "uint256",
            },
        ],
        name: "DkgStarted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [],
        name: "DkgStateLocked",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [],
        name: "DkgTimedOut",
        type: "event",
    },
    {
        inputs: [],
        name: "groupSize",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = "0x6087610038600b82828239805160001a607314602b57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806363b635ea146038575b600080fd5b603f606481565b60405190815260200160405180910390f3fea26469706673582212204c395669f04806375ff0791aaf828b0b4e6d0f8bf191edaacf6dc6f79b61a2c364736f6c63430008090033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var EcdsaDkg__factory = /** @class */ (function (_super) {
    __extends(EcdsaDkg__factory, _super);
    function EcdsaDkg__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;
    }
    EcdsaDkg__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    EcdsaDkg__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    EcdsaDkg__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    EcdsaDkg__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    EcdsaDkg__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    EcdsaDkg__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    EcdsaDkg__factory.bytecode = _bytecode;
    EcdsaDkg__factory.abi = _abi;
    return EcdsaDkg__factory;
}(ethers_1.ContractFactory));
exports.EcdsaDkg__factory = EcdsaDkg__factory;
