"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISimpleUniswapOracle__factory = void 0;
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: "pure",
        type: "function",
    },
    {
        inputs: [],
        name: "getBlockTimestamp",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "uniswapV2Pair",
                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: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "uniswapV2Pair",
                type: "address",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var ISimpleUniswapOracle__factory = /** @class */ (function () {
    function ISimpleUniswapOracle__factory() {
    }
    ISimpleUniswapOracle__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    ISimpleUniswapOracle__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    ISimpleUniswapOracle__factory.abi = _abi;
    return ISimpleUniswapOracle__factory;
}());
exports.ISimpleUniswapOracle__factory = ISimpleUniswapOracle__factory;
//# sourceMappingURL=ISimpleUniswapOracle__factory.js.map