"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.WstMTRGOracle__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_wstMTRG",
                type: "address"
            },
            {
                internalType: "address",
                name: "_mtrgFeed",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_feedId",
                type: "bytes32"
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        inputs: [],
        name: "feedId",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
        ],
        name: "getEmaPrice",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "age",
                type: "uint256"
            },
        ],
        name: "getEmaPriceNoOlderThan",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
        ],
        name: "getEmaPriceUnsafe",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
        ],
        name: "getPrice",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "age",
                type: "uint256"
            },
        ],
        name: "getPriceNoOlderThan",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "id",
                type: "bytes32"
            },
        ],
        name: "getPriceUnsafe",
        outputs: [
            {
                components: [
                    {
                        internalType: "int64",
                        name: "price",
                        type: "int64"
                    },
                    {
                        internalType: "uint64",
                        name: "conf",
                        type: "uint64"
                    },
                    {
                        internalType: "int32",
                        name: "expo",
                        type: "int32"
                    },
                    {
                        internalType: "uint256",
                        name: "publishTime",
                        type: "uint256"
                    },
                ],
                internalType: "struct PythStructs.Price",
                name: "price",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "getValidTimePeriod",
        outputs: [
            {
                internalType: "uint256",
                name: "validTimePeriod",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "mtrgFeed",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "wstMTRG",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = " ";
var WstMTRGOracle__factory = /** @class */ (function (_super) {
    __extends(WstMTRGOracle__factory, _super);
    function WstMTRGOracle__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;
    }
    WstMTRGOracle__factory.prototype.deploy = function (_wstMTRG, _mtrgFeed, _feedId, overrides) {
        return _super.prototype.deploy.call(this, _wstMTRG, _mtrgFeed, _feedId, overrides || {});
    };
    WstMTRGOracle__factory.prototype.getDeployTransaction = function (_wstMTRG, _mtrgFeed, _feedId, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _wstMTRG, _mtrgFeed, _feedId, overrides || {});
    };
    WstMTRGOracle__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    WstMTRGOracle__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    WstMTRGOracle__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    WstMTRGOracle__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    WstMTRGOracle__factory.bytecode = _bytecode;
    WstMTRGOracle__factory.abi = _abi;
    return WstMTRGOracle__factory;
}(ethers_1.ContractFactory));
exports.WstMTRGOracle__factory = WstMTRGOracle__factory;
//# sourceMappingURL=WstMTRGOracle__factory.js.map