"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 __());
    };
})();
var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Authorizable__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "who",
                type: "address",
            },
        ],
        name: "authorize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "authorized",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "who",
                type: "address",
            },
        ],
        name: "deauthorize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "who",
                type: "address",
            },
        ],
        name: "isAuthorized",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "who",
                type: "address",
            },
        ],
        name: "setOwner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556102b9806100326000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806313af40351461006757806327c97fa51461007c5780638da5cb5b1461008f578063b6a5d7de146100bf578063b9181611146100d2578063fe9fbb8014610105575b600080fd5b61007a610075366004610229565b610131565b005b61007a61008a366004610229565b610186565b6000546100a2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61007a6100cd366004610229565b6101d1565b6100f56100e0366004610229565b60016020526000908152604090205460ff1681565b60405190151581526020016100b6565b6100f5610113366004610229565b6001600160a01b031660009081526001602052604090205460ff1690565b6000546001600160a01b031633146101645760405162461bcd60e51b815260040161015b90610259565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146101b05760405162461bcd60e51b815260040161015b90610259565b6001600160a01b03166000908152600160205260409020805460ff19169055565b6000546001600160a01b031633146101fb5760405162461bcd60e51b815260040161015b90610259565b610226816001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b50565b60006020828403121561023b57600080fd5b81356001600160a01b038116811461025257600080fd5b9392505050565b60208082526010908201526f29b2b73232b9103737ba1037bbb732b960811b60408201526060019056fea2646970667358221220d6305f9d7d4fdd30725d00eb46372739590693d28744444c323bfff98eabef2464736f6c63430008100033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var Authorizable__factory = /** @class */ (function (_super) {
    __extends(Authorizable__factory, _super);
    function Authorizable__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, __spreadArray([], __read(args), false)) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    Authorizable__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    Authorizable__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    Authorizable__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    Authorizable__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    Authorizable__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    Authorizable__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    Authorizable__factory.bytecode = _bytecode;
    Authorizable__factory.abi = _abi;
    return Authorizable__factory;
}(ethers_1.ContractFactory));
exports.Authorizable__factory = Authorizable__factory;
//# sourceMappingURL=Authorizable__factory.js.map