"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 __());
    };
})();
exports.__esModule = true;
exports.FeedPriceOracleV2__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint8",
                name: "source",
                type: "uint8"
            },
            {
                indexed: false,
                internalType: "address",
                name: "addr",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint8",
                name: "tokenDecimals",
                type: "uint8"
            },
            {
                indexed: false,
                internalType: "uint8",
                name: "feedDecimals",
                type: "uint8"
            },
            {
                indexed: false,
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        name: "SetFeed",
        type: "event"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "owner_",
                type: "address"
            },
        ],
        name: "changeOwner",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "feeds",
        outputs: [
            {
                internalType: "uint8",
                name: "source",
                type: "uint8"
            },
            {
                internalType: "address",
                name: "addr",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals",
                type: "uint8"
            },
            {
                internalType: "uint8",
                name: "feedDecimals",
                type: "uint8"
            },
            {
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "fixedPrices",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getFeed",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint8",
                        name: "source",
                        type: "uint8"
                    },
                    {
                        internalType: "address",
                        name: "addr",
                        type: "address"
                    },
                    {
                        internalType: "uint8",
                        name: "tokenDecimals",
                        type: "uint8"
                    },
                    {
                        internalType: "uint8",
                        name: "feedDecimals",
                        type: "uint8"
                    },
                    {
                        internalType: "string",
                        name: "name",
                        type: "string"
                    },
                ],
                internalType: "struct FeedPriceOracleV2.FeedData",
                name: "",
                type: "tuple"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getFixedPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getUnderlyingPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [
            {
                internalType: "address[]",
                name: "cTokens",
                type: "address[]"
            },
        ],
        name: "getUnderlyingPrices",
        outputs: [
            {
                internalType: "uint256[]",
                name: "",
                type: "uint256[]"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: true,
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        payable: false,
        stateMutability: "view",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "removeFeed",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "removeFixedPrice",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "address",
                name: "feed_",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals_",
                type: "uint8"
            },
            {
                internalType: "uint8",
                name: "feedDecimals_",
                type: "uint8"
            },
            {
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        name: "setBandFeed",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "address",
                name: "feed_",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals_",
                type: "uint8"
            },
        ],
        name: "setChainlinkFeed",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "price",
                type: "uint256"
            },
        ],
        name: "setFixedPrice",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        constant: false,
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "address",
                name: "feed_",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals_",
                type: "uint8"
            },
            {
                internalType: "uint8",
                name: "feedDecimals_",
                type: "uint8"
            },
        ],
        name: "setWitnetFeed",
        outputs: [],
        payable: false,
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = " ";
var isSuperArgs = function (xs) { return xs.length > 1; };
var FeedPriceOracleV2__factory = /** @class */ (function (_super) {
    __extends(FeedPriceOracleV2__factory, _super);
    function FeedPriceOracleV2__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;
    }
    FeedPriceOracleV2__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    FeedPriceOracleV2__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    FeedPriceOracleV2__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    FeedPriceOracleV2__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    FeedPriceOracleV2__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    FeedPriceOracleV2__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    FeedPriceOracleV2__factory.bytecode = _bytecode;
    FeedPriceOracleV2__factory.abi = _abi;
    return FeedPriceOracleV2__factory;
}(ethers_1.ContractFactory));
exports.FeedPriceOracleV2__factory = FeedPriceOracleV2__factory;
//# sourceMappingURL=FeedPriceOracleV2__factory.js.map