"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.EcdsaAuthorization__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: "address",
                name: "stakingProvider",
                type: "address",
            },
        ],
        name: "AuthorizationDecreaseApproved",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "fromAmount",
                type: "uint96",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "toAmount",
                type: "uint96",
            },
            {
                indexed: false,
                internalType: "uint64",
                name: "decreasingAt",
                type: "uint64",
            },
        ],
        name: "AuthorizationDecreaseRequested",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "fromAmount",
                type: "uint96",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "toAmount",
                type: "uint96",
            },
        ],
        name: "AuthorizationIncreased",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "fromAmount",
                type: "uint96",
            },
            {
                indexed: false,
                internalType: "uint96",
                name: "toAmount",
                type: "uint96",
            },
        ],
        name: "InvoluntaryAuthorizationDecreaseFailed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
        ],
        name: "OperatorJoinedSortitionPool",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
        ],
        name: "OperatorRegistered",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "stakingProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address",
            },
        ],
        name: "OperatorStatusUpdated",
        type: "event",
    },
];
var _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205320b78ec152a746d25387233f9f3916ade27a43efe24a8b9fbae533510057fb64736f6c63430008090033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var EcdsaAuthorization__factory = /** @class */ (function (_super) {
    __extends(EcdsaAuthorization__factory, _super);
    function EcdsaAuthorization__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;
    }
    EcdsaAuthorization__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    EcdsaAuthorization__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    EcdsaAuthorization__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    EcdsaAuthorization__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    EcdsaAuthorization__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    EcdsaAuthorization__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    EcdsaAuthorization__factory.bytecode = _bytecode;
    EcdsaAuthorization__factory.abi = _abi;
    return EcdsaAuthorization__factory;
}(ethers_1.ContractFactory));
exports.EcdsaAuthorization__factory = EcdsaAuthorization__factory;
