"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeedPriceOracle__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "admin",
                type: "address",
            },
            {
                internalType: "address",
                name: "nativeMarket_",
                type: "address",
            },
            {
                internalType: "address",
                name: "nativeAsset_",
                type: "address",
            },
            {
                internalType: "contract IPyth",
                name: "pythOracle_",
                type: "address",
            },
            {
                internalType: "contract IPendlePtOracle",
                name: "pendlePtOracle_",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "EmptyAdapterAddress",
        type: "error",
    },
    {
        inputs: [],
        name: "EmptyFeedAddress",
        type: "error",
    },
    {
        inputs: [],
        name: "EmptyMaxStalePeriod",
        type: "error",
    },
    {
        inputs: [],
        name: "EmptyPendlePtOracle",
        type: "error",
    },
    {
        inputs: [],
        name: "EmptyPythOracle",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidFeedDecimals",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidPrice",
        type: "error",
    },
    {
        inputs: [],
        name: "UnknownSource",
        type: "error",
    },
    {
        inputs: [],
        name: "UnsupportedSource",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroAddressNotAllowed",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroValueNotAllowed",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                indexed: false,
                internalType: "enum FeedPriceOracle.Source",
                name: "source",
                type: "uint8",
            },
            {
                indexed: false,
                internalType: "uint8",
                name: "feedDecimals",
                type: "uint8",
            },
            {
                indexed: false,
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "metadata",
                type: "bytes32",
            },
        ],
        name: "NewFeed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldValue",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "newValue",
                type: "address",
            },
        ],
        name: "NewPendlePtOracle",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldValue",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "newValue",
                type: "address",
            },
        ],
        name: "NewPythOracle",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferStarted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferred",
        type: "event",
    },
    {
        inputs: [],
        name: "acceptOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "adapterFeeds",
        outputs: [
            {
                internalType: "address",
                name: "adapterAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "balancerFeeds",
        outputs: [
            {
                internalType: "bool",
                name: "isStable",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "chainlinkFeeds",
        outputs: [
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
            {
                internalType: "uint8",
                name: "feedDecimals",
                type: "uint8",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
        ],
        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: "asset",
                type: "address",
            },
        ],
        name: "getFixedPrice",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "getPrice",
        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: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "layerbankFeeds",
        outputs: [
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "feedAssetAddr",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "mainSource",
        outputs: [
            {
                internalType: "enum FeedPriceOracle.Source",
                name: "",
                type: "uint8",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "nativeAsset",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "nativeMarket",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pendingOwner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "pendleFeeds",
        outputs: [
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "address",
                name: "yieldToken",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "twapDuration",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pendlePtOracle",
        outputs: [
            {
                internalType: "contract IPendlePtOracle",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "pythFeeds",
        outputs: [
            {
                internalType: "bytes32",
                name: "feedId",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pythOracle",
        outputs: [
            {
                internalType: "contract IPyth",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "redstoneFeeds",
        outputs: [
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
            {
                internalType: "uint8",
                name: "feedDecimals",
                type: "uint8",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeAdapterFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeBalancerFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeChainlinkFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeFixedPrice",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeLayerbankFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removePendleFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removePythFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
        ],
        name: "removeRedstoneFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "address",
                name: "adapterAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        name: "setAdapterFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "bool",
                name: "isStable",
                type: "bool",
            },
        ],
        name: "setBalancerFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        name: "setChainlinkFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "price",
                type: "uint256",
            },
        ],
        name: "setFixedPrice",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "address",
                name: "feedAssetAddr",
                type: "address",
            },
        ],
        name: "setLayerbankFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "enum FeedPriceOracle.Source",
                name: "source",
                type: "uint8",
            },
        ],
        name: "setMainSource",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "twapDuration",
                type: "uint32",
            },
            {
                internalType: "address",
                name: "yieldToken",
                type: "address",
            },
        ],
        name: "setPendleFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IPendlePtOracle",
                name: "pendlePtOracle_",
                type: "address",
            },
        ],
        name: "setPendlePtOracle",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "feedId",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        name: "setPythFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IPyth",
                name: "pythOracle_",
                type: "address",
            },
        ],
        name: "setPythOracle",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "asset",
                type: "address",
            },
            {
                internalType: "address",
                name: "feedAddr",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "maxStalePeriod",
                type: "uint32",
            },
            {
                internalType: "address",
                name: "denominator",
                type: "address",
            },
        ],
        name: "setRedStoneFeed",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class FeedPriceOracle__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(admin, nativeMarket_, nativeAsset_, pythOracle_, pendlePtOracle_, overrides) {
        return super.getDeployTransaction(admin, nativeMarket_, nativeAsset_, pythOracle_, pendlePtOracle_, overrides || {});
    }
    deploy(admin, nativeMarket_, nativeAsset_, pythOracle_, pendlePtOracle_, overrides) {
        return super.deploy(admin, nativeMarket_, nativeAsset_, pythOracle_, pendlePtOracle_, overrides || {});
    }
    connect(runner) {
        return super.connect(runner);
    }
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.FeedPriceOracle__factory = FeedPriceOracle__factory;
FeedPriceOracle__factory.bytecode = _bytecode;
FeedPriceOracle__factory.abi = _abi;
//# sourceMappingURL=FeedPriceOracle__factory.js.map