"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPriceOracleV2Ext__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        name: "ChainPriceStaleException",
        type: "error",
    },
    {
        inputs: [],
        name: "PriceOracleNotExistsException",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroPriceException",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "token",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "priceFeed",
                type: "address",
            },
        ],
        name: "NewPriceFeed",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
            {
                internalType: "address",
                name: "priceFeed",
                type: "address",
            },
        ],
        name: "addPriceFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "tokenFrom",
                type: "address",
            },
            {
                internalType: "address",
                name: "tokenTo",
                type: "address",
            },
        ],
        name: "convert",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
        ],
        name: "convertFromUSD",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
        ],
        name: "convertToUSD",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "amountFrom",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "tokenFrom",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amountTo",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "tokenTo",
                type: "address",
            },
        ],
        name: "fastCheck",
        outputs: [
            {
                internalType: "uint256",
                name: "collateralFrom",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "collateralTo",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
        ],
        name: "getPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
        ],
        name: "priceFeeds",
        outputs: [
            {
                internalType: "address",
                name: "priceFeed",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "token",
                type: "address",
            },
        ],
        name: "priceFeedsWithFlags",
        outputs: [
            {
                internalType: "address",
                name: "priceFeed",
                type: "address",
            },
            {
                internalType: "bool",
                name: "skipCheck",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "decimals",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "version",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
var IPriceOracleV2Ext__factory = /** @class */ (function () {
    function IPriceOracleV2Ext__factory() {
    }
    IPriceOracleV2Ext__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    IPriceOracleV2Ext__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    IPriceOracleV2Ext__factory.abi = _abi;
    return IPriceOracleV2Ext__factory;
}());
exports.IPriceOracleV2Ext__factory = IPriceOracleV2Ext__factory;
//# sourceMappingURL=IPriceOracleV2Ext__factory.js.map