"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.MockUniswapOracle__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: "pair",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "priceCumulative",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint32",
                name: "blockTimestamp",
                type: "uint32",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "lastIsA",
                type: "bool",
            },
        ],
        name: "PriceUpdate",
        type: "event",
    },
    {
        inputs: [],
        name: "MIN_T",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getBlockTimestamp",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "getPair",
        outputs: [
            {
                internalType: "uint256",
                name: "priceCumulativeA",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "priceCumulativeB",
                type: "uint256",
            },
            {
                internalType: "uint32",
                name: "updateA",
                type: "uint32",
            },
            {
                internalType: "uint32",
                name: "updateB",
                type: "uint32",
            },
            {
                internalType: "bool",
                name: "lastIsA",
                type: "bool",
            },
            {
                internalType: "bool",
                name: "initialized",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "uniswapV2Pair",
                type: "address",
            },
        ],
        name: "getResult",
        outputs: [
            {
                internalType: "uint224",
                name: "price",
                type: "uint224",
            },
            {
                internalType: "uint32",
                name: "T",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "uniswapV2Pair",
                type: "address",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "mockPrice",
        outputs: [
            {
                internalType: "uint224",
                name: "",
                type: "uint224",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "uniswapV2Pair",
                type: "address",
            },
            {
                internalType: "uint224",
                name: "price",
                type: "uint224",
            },
        ],
        name: "setPrice",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var _bytecode = "0x608060405234801561001057600080fd5b506103e5806100206000396000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c80631a788a0214610072578063446a37e014610109578063796b89b9146101635780639a2a7b7d14610180578063c4d66de8146101c9578063e102c996146101dc578063f51b55311461021d575b600080fd5b6100c9610080366004610328565b60006020819052908152604090208054600182015460029092015490919063ffffffff80821691600160201b81049091169060ff600160401b8204811691600160481b90041686565b60408051968752602087019590955263ffffffff938416948601949094529116606084015215156080830152151560a082015260c0015b60405180910390f35b61013f610117366004610328565b6001600160a01b03166000908152600160205260409020546001600160e01b031690610e1090565b604080516001600160e01b03909316835263ffffffff909116602083015201610100565b61016b610226565b60405163ffffffff9091168152602001610100565b6101c761018e36600461034a565b6001600160a01b0391909116600090815260016020526040902080546001600160e01b0319166001600160e01b03909216919091179055565b005b6101c76101d7366004610328565b61023b565b6102056101ea366004610328565b6001602052600090815260409020546001600160e01b031681565b6040516001600160e01b039091168152602001610100565b61016b610e1081565b6000610236600160201b4261038d565b905090565b6001600160a01b038116600090815260208190526040902060020154600160481b900460ff16156102c35760405162461bcd60e51b815260206004820152602860248201527f4173736572744572726f723a207061697220697320616c726561647920696e696044820152671d1a585b1a5e995960c21b606482015260840160405180910390fd5b6001600160a01b0316600090815260208181526040808320600201805460ff60481b1916600160481b1790556001909152902080546001600160e01b031916600160701b179055565b80356001600160a01b038116811461032357600080fd5b919050565b60006020828403121561033a57600080fd5b6103438261030c565b9392505050565b6000806040838503121561035d57600080fd5b6103668361030c565b915060208301356001600160e01b038116811461038257600080fd5b809150509250929050565b6000826103aa57634e487b7160e01b600052601260045260246000fd5b50069056fea26469706673582212206261cf33e5de6707aa3138f0dedd7681ac9207dfcefefb42436f733fde2584a264736f6c63430008100033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var MockUniswapOracle__factory = /** @class */ (function (_super) {
    __extends(MockUniswapOracle__factory, _super);
    function MockUniswapOracle__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;
    }
    MockUniswapOracle__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    MockUniswapOracle__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    MockUniswapOracle__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    MockUniswapOracle__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    MockUniswapOracle__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    MockUniswapOracle__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    MockUniswapOracle__factory.bytecode = _bytecode;
    MockUniswapOracle__factory.abi = _abi;
    return MockUniswapOracle__factory;
}(ethers_1.ContractFactory));
exports.MockUniswapOracle__factory = MockUniswapOracle__factory;
//# sourceMappingURL=MockUniswapOracle__factory.js.map