"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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.PythOracle__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [],
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "feedId",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "address",
                name: "addr",
                type: "address"
            },
            {
                indexed: false,
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        name: "SetFeed",
        type: "event"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "owner_",
                type: "address"
            },
        ],
        name: "changeOwner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "feeds",
        outputs: [
            {
                internalType: "bytes32",
                name: "feedId",
                type: "bytes32"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals",
                type: "uint8"
            },
            {
                internalType: "address",
                name: "addr",
                type: "address"
            },
            {
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "fixedPrices",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getFeed",
        outputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "feedId",
                        type: "bytes32"
                    },
                    {
                        internalType: "uint8",
                        name: "tokenDecimals",
                        type: "uint8"
                    },
                    {
                        internalType: "address",
                        name: "addr",
                        type: "address"
                    },
                    {
                        internalType: "string",
                        name: "name",
                        type: "string"
                    },
                ],
                internalType: "struct PythOracle.FeedData",
                name: "",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getFixedPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "getUnderlyingPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "cTokens",
                type: "address[]"
            },
        ],
        name: "getUnderlyingPrices",
        outputs: [
            {
                internalType: "uint256[]",
                name: "",
                type: "uint256[]"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "isPriceOracle",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "removeFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
        ],
        name: "removeFixedPrice",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "feedId",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "addr",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "tokenDecimals",
                type: "uint8"
            },
            {
                internalType: "string",
                name: "name",
                type: "string"
            },
        ],
        name: "setFeedId",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "cToken_",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "price",
                type: "uint256"
            },
        ],
        name: "setFixedPrice",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = " ";
var PythOracle__factory = /** @class */ (function (_super) {
    __extends(PythOracle__factory, _super);
    function PythOracle__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (args.length === 1) {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        else {
            _this = _super.apply(this, args) || this;
        }
        return _this;
    }
    PythOracle__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    PythOracle__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    PythOracle__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    PythOracle__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    PythOracle__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    PythOracle__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    PythOracle__factory.bytecode = _bytecode;
    PythOracle__factory.abi = _abi;
    return PythOracle__factory;
}(ethers_1.ContractFactory));
exports.PythOracle__factory = PythOracle__factory;
//# sourceMappingURL=PythOracle__factory.js.map