"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.MockV3Aggregator__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "uint8",
                name: "_decimals",
                type: "uint8",
            },
            {
                internalType: "int256",
                name: "_initialAnswer",
                type: "int256",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "int256",
                name: "current",
                type: "int256",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "roundId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "timestamp",
                type: "uint256",
            },
        ],
        name: "AnswerUpdated",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "roundId",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "address",
                name: "startedBy",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "startedAt",
                type: "uint256",
            },
        ],
        name: "NewRound",
        type: "event",
    },
    {
        inputs: [],
        name: "decimals",
        outputs: [
            {
                internalType: "uint8",
                name: "",
                type: "uint8",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "description",
        outputs: [
            {
                internalType: "string",
                name: "",
                type: "string",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "getAnswer",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint80",
                name: "_roundId",
                type: "uint80",
            },
        ],
        name: "getRoundData",
        outputs: [
            {
                internalType: "uint80",
                name: "roundId",
                type: "uint80",
            },
            {
                internalType: "int256",
                name: "answer",
                type: "int256",
            },
            {
                internalType: "uint256",
                name: "startedAt",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "updatedAt",
                type: "uint256",
            },
            {
                internalType: "uint80",
                name: "answeredInRound",
                type: "uint80",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "getTimestamp",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "latestAnswer",
        outputs: [
            {
                internalType: "int256",
                name: "",
                type: "int256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "latestRound",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "latestRoundData",
        outputs: [
            {
                internalType: "uint80",
                name: "roundId",
                type: "uint80",
            },
            {
                internalType: "int256",
                name: "answer",
                type: "int256",
            },
            {
                internalType: "uint256",
                name: "startedAt",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "updatedAt",
                type: "uint256",
            },
            {
                internalType: "uint80",
                name: "answeredInRound",
                type: "uint80",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "latestTimestamp",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint8",
                name: "_decimals",
                type: "uint8",
            },
        ],
        name: "setDecimals",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int256",
                name: "_answer",
                type: "int256",
            },
        ],
        name: "updateAnswer",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint80",
                name: "_roundId",
                type: "uint80",
            },
            {
                internalType: "int256",
                name: "_answer",
                type: "int256",
            },
            {
                internalType: "uint256",
                name: "_timestamp",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_startedAt",
                type: "uint256",
            },
        ],
        name: "updateRoundData",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "version",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b5060405161057e38038061057e83398101604081905261002f916100a4565b6000805460ff191660ff84161790556100478161004e565b50506100ff565b60018190554260025560038054906000610067836100d8565b9091555050600380546000908152600460209081526040808320949094558254825260058152838220429081905592548252600690529190912055565b600080604083850312156100b757600080fd5b825160ff811681146100c857600080fd5b6020939093015192949293505050565b6000600182016100f857634e487b7160e01b600052601160045260246000fd5b5060010190565b6104708061010e6000396000f3fe608060405234801561001057600080fd5b50600436106100af5760003560e01c8063313ce567146100b45780634aa2011f146100d857806350d25bcd1461013257806354fd4d5014610149578063668a0f02146101515780637284e4161461015a5780637a1395aa146101995780638205bf6a146101bd5780639a6fc8f5146101c6578063a87a20ce1461023e578063b5ab58dc14610251578063b633620c14610271578063feaf968c14610291575b600080fd5b6000546100c19060ff1681565b60405160ff90911681526020015b60405180910390f35b6101306100e636600461032e565b6001600160501b0390931660038181556001849055600283905560009182526004602090815260408084209590955581548352600581528483209390935554815260069091522055565b005b61013b60015481565b6040519081526020016100cf565b61013b600081565b61013b60035481565b604080518082018252601f81527f76302e362f74657374732f4d6f636b563341676772656761746f722e736f6c00602082015290516100cf9190610367565b6101306101a73660046103b5565b6000805460ff191660ff92909216919091179055565b61013b60025481565b61020a6101d43660046103df565b6001600160501b038116600090815260046020908152604080832054600683528184205460059093529220549293919290918490565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a0016100cf565b61013061024c3660046103fa565b6102bc565b61013b61025f3660046103fa565b60046020526000908152604090205481565b61013b61027f3660046103fa565b60056020526000908152604090205481565b600354600081815260046020908152604080832054600683528184205460059093529220548361020a565b600181905542600255600380549060006102d583610413565b9091555050600380546000908152600460209081526040808320949094558254825260058152838220429081905592548252600690529190912055565b80356001600160501b038116811461032957600080fd5b919050565b6000806000806080858703121561034457600080fd5b61034d85610312565b966020860135965060408601359560600135945092505050565b600060208083528351808285015260005b8181101561039457858101830151858201604001528201610378565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156103c757600080fd5b813560ff811681146103d857600080fd5b9392505050565b6000602082840312156103f157600080fd5b6103d882610312565b60006020828403121561040c57600080fd5b5035919050565b60006001820161043357634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e3a6df8289a590e23fc57b8e9f924ce562dbc893e6e064e52578783b9d58441264736f6c63430008100033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var MockV3Aggregator__factory = /** @class */ (function (_super) {
    __extends(MockV3Aggregator__factory, _super);
    function MockV3Aggregator__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;
    }
    MockV3Aggregator__factory.prototype.deploy = function (_decimals, _initialAnswer, overrides) {
        return _super.prototype.deploy.call(this, _decimals, _initialAnswer, overrides || {});
    };
    MockV3Aggregator__factory.prototype.getDeployTransaction = function (_decimals, _initialAnswer, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _decimals, _initialAnswer, overrides || {});
    };
    MockV3Aggregator__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    MockV3Aggregator__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    MockV3Aggregator__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    MockV3Aggregator__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    MockV3Aggregator__factory.bytecode = _bytecode;
    MockV3Aggregator__factory.abi = _abi;
    return MockV3Aggregator__factory;
}(ethers_1.ContractFactory));
exports.MockV3Aggregator__factory = MockV3Aggregator__factory;
//# sourceMappingURL=MockV3Aggregator__factory.js.map