"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.RandomBeaconStub__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "entry",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "entrySubmittedBlock",
                type: "uint256",
            },
        ],
        name: "CallbackFailed",
        type: "event",
    },
    {
        inputs: [],
        name: "callbackGasLimit",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IRandomBeaconConsumer",
                name: "_callbackContract",
                type: "address",
            },
        ],
        name: "requestRelayEntry",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes",
                name: "entry",
                type: "bytes",
            },
        ],
        name: "submitRelayEntry",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var _bytecode = "0x608060405261fa0060015534801561001657600080fd5b50610264806100266000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806324f74697146100465780634368ec0c146100615780635766591214610091575b600080fd5b61004f60015481565b60405190815260200160405180910390f35b61008f61006f36600461017c565b600080546001600160a01b0383166001600160a01b031990911617905550565b005b61008f61009f3660046101ac565b6100c782826040516100b292919061021e565b604051908190039020600154600091906100cb565b5050565b82546001600160a01b031615610177578254604051631bfaf51960e21b8152600481018490524360248201526001600160a01b0390911690636febd464908390604401600060405180830381600088803b15801561012857600080fd5b5087f19350505050801561013a575060015b61017757604080518381524360208201527f5e2af61e77ec91022b1cafe282abce475bb18e8cdd47083464caa06583fe3909910160405180910390a15b505050565b60006020828403121561018e57600080fd5b81356001600160a01b03811681146101a557600080fd5b9392505050565b600080602083850312156101bf57600080fd5b823567ffffffffffffffff808211156101d757600080fd5b818501915085601f8301126101eb57600080fd5b8135818111156101fa57600080fd5b86602082850101111561020c57600080fd5b60209290920196919550909350505050565b818382376000910190815291905056fea2646970667358221220c6c103b22faeee6da820aaef6b9b7681f67df3a8feb44297200881243c7606c664736f6c63430008090033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var RandomBeaconStub__factory = /** @class */ (function (_super) {
    __extends(RandomBeaconStub__factory, _super);
    function RandomBeaconStub__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;
    }
    RandomBeaconStub__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    RandomBeaconStub__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    RandomBeaconStub__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    RandomBeaconStub__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    RandomBeaconStub__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    RandomBeaconStub__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    RandomBeaconStub__factory.bytecode = _bytecode;
    RandomBeaconStub__factory.abi = _abi;
    return RandomBeaconStub__factory;
}(ethers_1.ContractFactory));
exports.RandomBeaconStub__factory = RandomBeaconStub__factory;
