witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
2,117 lines • 2.49 MB
JSON
{
"contractName": "WitPriceFeedsUpgradable",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_witOracle",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_versionTag",
"type": "bytes32"
},
{
"internalType": "bool",
"name": "_upgradable",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "DeviantPrice",
"type": "error"
},
{
"inputs": [],
"name": "HotPrice",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "range",
"type": "uint256"
}
],
"name": "IndexOutOfBounds",
"type": "error"
},
{
"inputs": [],
"name": "InvalidArgument",
"type": "error"
},
{
"inputs": [],
"name": "InvalidGovernanceTarget",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "length",
"type": "uint256"
}
],
"name": "InvalidLengthEncoding",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUpdateData",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUpdateDataSource",
"type": "error"
},
{
"inputs": [],
"name": "NoFreshUpdate",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [],
"name": "PriceFeedNotFound",
"type": "error"
},
{
"inputs": [],
"name": "PriceFeedNotFoundWithinRange",
"type": "error"
},
{
"inputs": [],
"name": "StalePrice",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "read",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "UnexpectedMajorType",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "by",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "master",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "clone",
"type": "address"
}
],
"name": "Cloned",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeeds.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"indexed": false,
"internalType": "enum IWitPriceFeeds.Mappers",
"name": "mapper",
"type": "uint8"
},
{
"indexed": false,
"internalType": "string[]",
"name": "dependencies",
"type": "string[]"
}
],
"name": "PriceFeedMapper",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeeds.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"indexed": false,
"internalType": "enum IWitPriceFeeds.Oracles",
"name": "oracle",
"type": "uint8"
},
{
"indexed": false,
"internalType": "address",
"name": "oracleAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "oracleSources",
"type": "bytes32"
}
],
"name": "PriceFeedOracle",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeeds.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "symbol",
"type": "string"
}
],
"name": "PriceFeedRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeeds.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"indexed": false,
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "conditions",
"type": "tuple"
}
],
"name": "PriceFeedSettled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "IWitPriceFeeds.ID4",
"name": "ID4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"indexed": false,
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"indexed": false,
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
}
],
"name": "PriceFeedUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "publishTime",
"type": "uint64"
},
{
"indexed": false,
"internalType": "int64",
"name": "price",
"type": "int64"
},
{
"indexed": false,
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"name": "PriceFeedUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "baseAddr",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "baseCodehash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "versionTag",
"type": "string"
}
],
"name": "Upgraded",
"type": "event"
},
{
"stateMutability": "nonpayable",
"type": "fallback"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "base",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_curator",
"type": "address"
}
],
"name": "clone",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "codehash",
"outputs": [
{
"internalType": "bytes32",
"name": "_codehash",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "consumer",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "string",
"name": "symbol",
"type": "string"
}
],
"name": "createChainlinkAggregator",
"outputs": [
{
"internalType": "contract IWitPythChainlinkAggregator",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "defaultUpdateConditions",
"outputs": [
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "footprint",
"outputs": [
{
"internalType": "bytes4",
"name": "_footprint",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"name": "_id",
"type": "bytes32"
},
{
"internalType": "uint64",
"name": "_age",
"type": "uint64"
}
],
"name": "getEmaPriceNotOlderThan",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "getPrice",
"outputs": [
{
"components": [
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Price",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"name": "_id",
"type": "bytes32"
},
{
"internalType": "uint64",
"name": "_age",
"type": "uint64"
}
],
"name": "getPriceNotOlderThan",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
},
{
"internalType": "uint24",
"name": "_age",
"type": "uint24"
}
],
"name": "getPriceNotOlderThan",
"outputs": [
{
"components": [
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Price",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPyth.ID",
"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 IWitPyth.PythPrice",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "getPriceUnsafe",
"outputs": [
{
"components": [
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Price",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "getUpdateFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"name": "hash",
"outputs": [
{
"internalType": "IWitPyth.ID",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "address",
"name": "_master",
"type": "address"
},
{
"internalType": "address",
"name": "_curator",
"type": "address"
},
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "_defaultUpdateConditions",
"type": "tuple"
}
],
"name": "initializeClone",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "initialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "isUpgradable",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "lookupPriceFeed",
"outputs": [
{
"components": [
{
"internalType": "IWitPyth.ID",
"name": "id",
"type": "bytes32"
},
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"components": [
{
"internalType": "enum IWitPriceFeeds.Mappers",
"name": "class",
"type": "uint8"
},
{
"internalType": "string[]",
"name": "deps",
"type": "string[]"
}
],
"internalType": "struct IWitPriceFeeds.Mapper",
"name": "mapper",
"type": "tuple"
},
{
"components": [
{
"internalType": "enum IWitPriceFeeds.Oracles",
"name": "class",
"type": "uint8"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes32",
"name": "sources",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Oracle",
"name": "oracle",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "updateConditions",
"type": "tuple"
},
{
"components": [
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Price",
"name": "lastUpdate",
"type": "tuple"
}
],
"internalType": "struct IWitPriceFeeds.Info",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "lookupPriceFeedCaption",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "lookupPriceFeedExponent",
"outputs": [
{
"internalType": "int8",
"name": "",
"type": "int8"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "IWitPriceFeeds.ID4",
"name": "_id4",
"type": "bytes4"
}
],
"name": "lookupPriceFeedID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "lookupPriceFeeds",
"outputs": [
{
"components": [
{
"internalType": "IWitPyth.ID",
"name": "id",
"type": "bytes32"
},
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"components": [
{
"internalType": "enum IWitPriceFeeds.Mappers",
"name": "class",
"type": "uint8"
},
{
"internalType": "string[]",
"name": "deps",
"type": "string[]"
}
],
"internalType": "struct IWitPriceFeeds.Mapper",
"name": "mapper",
"type": "tuple"
},
{
"components": [
{
"internalType": "enum IWitPriceFeeds.Oracles",
"name": "class",
"type": "uint8"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes32",
"name": "sources",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Oracle",
"name": "oracle",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "updateConditions",
"type": "tuple"
},
{
"components": [
{
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
}
],
"internalType": "struct IWitPriceFeeds.Price",
"name": "lastUpdate",
"type": "tuple"
}
],
"internalType": "struct IWitPriceFeeds.Info[]",
"name": "_infos",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "master",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "proxiableUUID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"components": [
{
"internalType": "Witnet.TransactionHash",
"name": "witDrTxHash",
"type": "bytes32"
},
{
"internalType": "Witnet.RadonHash",
"name": "queryRadHash",
"type": "bytes32"
},
{
"components": [
{
"internalType": "uint16",
"name": "witResultMaxSize",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "witCommitteeSize",
"type": "uint16"
},
{
"internalType": "uint64",
"name": "witUnitaryReward",
"type": "uint64"
}
],
"internalType": "struct Witnet.QuerySLA",
"name": "queryParams",
"type": "tuple"
},
{
"internalType": "Witnet.Timestamp",
"name": "resultTimestamp",
"type": "uint64"
},
{
"internalType": "bytes",
"name": "resultCborBytes",
"type": "bytes"
}
],
"internalType": "struct Witnet.DataPushReport",
"name": "report",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "proof",
"type": "bytes"
}
],
"name": "pushDataReport",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "bool",
"name": "_recursively",
"type": "bool"
}
],
"name": "removePriceFeed",
"outputs": [
{
"internalType": "bytes4",
"name": "_footprint",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_consumer",
"type": "address"
}
],
"name": "settleConsumer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "_conditions",
"type": "tuple"
}
],
"name": "settleDefaultUpdateConditions",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "int8",
"name": "_exponent",
"type": "int8"
},
{
"internalType": "enum IWitPriceFeeds.Mappers",
"name": "_mapper",
"type": "uint8"
},
{
"internalType": "string[]",
"name": "_deps",
"type": "string[]"
}
],
"name": "settlePriceFeedMapper",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "int8",
"name": "_exponent",
"type": "int8"
},
{
"internalType": "enum IWitPriceFeeds.Oracles",
"name": "_oracle",
"type": "uint8"
},
{
"internalType": "address",
"name": "_oracleAddress",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_oracleSources",
"type": "bytes32"
}
],
"name": "settlePriceFeedOracle",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "int8",
"name": "_exponent",
"type": "int8"
},
{
"internalType": "bytes",
"name": "_radonBytecode",
"type": "bytes"
}
],
"name": "settlePriceFeedRadonBytecode",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "int8",
"name": "_exponent",
"type": "int8"
},
{
"internalType": "Witnet.RadonHash",
"name": "_radonHash",
"type": "bytes32"
}
],
"name": "settlePriceFeedRadonHash",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"components": [
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bool",
"name": "computeEma",
"type": "bool"
},
{
"internalType": "uint24",
"name": "cooldownSecs",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "heartbeatSecs",
"type": "uint24"
},
{
"internalType": "uint16",
"name": "maxDeviation1000",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "minWitnesses",
"type": "uint16"
}
],
"internalType": "struct IWitPriceFeeds.UpdateConditions",
"name": "_conditions",
"type": "tuple"
}
],
"name": "settlePriceFeedUpdateConditions",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "specs",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "string",
"name": "_caption",
"type": "string"
}
],
"name": "supportsCaption",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_id",
"type": "bytes32"
}
],
"name": "valueFor",
"outputs": [
{
"internalType": "int256",
"name": "_value",
"type": "int256"
},
{
"internalType": "uint256",
"name": "_timestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_status",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "witOracle",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "class",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "cloned",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "target",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_initData",
"type": "bytes"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
}
],
"name": "isUpgradableFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_witOracle\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_versionTag\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"_upgradable\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DeviantPrice\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"HotPrice\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",