UNPKG

@perp/perp-oracle-contract

Version:

Perpetual Protocol Curie (v2) oracle contracts - v0.5.0 is not an audited version

146 lines (145 loc) 3.14 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IChainlinkPriceFeedV3", "sourceName": "contracts/interface/IChainlinkPriceFeedV3.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "price", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }, { "indexed": false, "internalType": "enum IChainlinkPriceFeedV3Event.FreezedReason", "name": "freezedReason", "type": "uint8" } ], "name": "ChainlinkPriceUpdated", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "interval", "type": "uint256" } ], "name": "cacheTwap", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getAggregator", "outputs": [ { "internalType": "address", "name": "aggregator", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFreezedReason", "outputs": [ { "internalType": "enum IChainlinkPriceFeedV3Event.FreezedReason", "name": "reason", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastValidPrice", "outputs": [ { "internalType": "uint256", "name": "price", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastValidTimestamp", "outputs": [ { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLatestOrCachedPrice", "outputs": [ { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTimeout", "outputs": [ { "internalType": "uint256", "name": "period", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isTimedOut", "outputs": [ { "internalType": "bool", "name": "isTimedOut", "type": "bool" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }