UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

240 lines 6.38 kB
{ "_format": "hh3-artifact-1", "contractName": "IWitPythReporter", "sourceName": "contracts/interfaces/legacy/IWitPythReporter.sol", "abi": [ { "inputs": [ { "internalType": "bytes[]", "name": "updates", "type": "bytes[]" }, { "internalType": "IWitPyth.ID[]", "name": "ids", "type": "bytes32[]" }, { "internalType": "Witnet.Timestamp", "name": "minTimestamp", "type": "uint64" }, { "internalType": "Witnet.Timestamp", "name": "maxTimestamp", "type": "uint64" } ], "name": "parsePriceFeedUpdates", "outputs": [ { "components": [ { "internalType": "IWitPyth.ID", "name": "id", "type": "bytes32" }, { "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 IWitPyth.PythPrice", "name": "price", "type": "tuple" }, { "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 IWitPyth.PythPrice", "name": "emaPrice", "type": "tuple" } ], "internalType": "struct IWitPythReporter.PriceFeed[]", "name": "", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "updates", "type": "bytes[]" }, { "internalType": "IWitPyth.ID[]", "name": "ids", "type": "bytes32[]" }, { "internalType": "Witnet.Timestamp", "name": "minTimestamp", "type": "uint64" }, { "internalType": "Witnet.Timestamp", "name": "maxTimestamp", "type": "uint64" } ], "name": "parsePriceFeedUpdatesUnique", "outputs": [ { "components": [ { "internalType": "IWitPyth.ID", "name": "id", "type": "bytes32" }, { "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 IWitPyth.PythPrice", "name": "price", "type": "tuple" }, { "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 IWitPyth.PythPrice", "name": "emaPrice", "type": "tuple" } ], "internalType": "struct IWitPythReporter.PriceFeed[]", "name": "", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "updates", "type": "bytes[]" } ], "name": "updatePriceFeeds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "updates", "type": "bytes[]" }, { "internalType": "IWitPyth.ID[]", "name": "ids", "type": "bytes32[]" }, { "internalType": "Witnet.Timestamp[]", "name": "timestamps", "type": "uint64[]" } ], "name": "updatePriceFeedsIfNecessary", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {}, "immutableReferences": {}, "inputSourceName": "project/contracts/interfaces/legacy/IWitPythReporter.sol", "buildInfoId": "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf" }