UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

2,047 lines 148 kB
{ "_format": "hh3-artifact-1", "contractName": "WitPriceFeedsUpgradableV3", "sourceName": "contracts/apps/WitPriceFeedsUpgradableV3.sol", "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": "IWitPriceFeedsTypes.ID4", "name": "id4", "type": "bytes4" }, { "indexed": false, "internalType": "string", "name": "caption", "type": "string" }, { "indexed": false, "internalType": "int8", "name": "exponent", "type": "int8" }, { "indexed": false, "internalType": "enum IWitPriceFeedsTypes.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": "IWitPriceFeedsTypes.ID4", "name": "id4", "type": "bytes4" }, { "indexed": false, "internalType": "string", "name": "caption", "type": "string" }, { "indexed": false, "internalType": "int8", "name": "exponent", "type": "int8" }, { "indexed": false, "internalType": "enum IWitPriceFeedsTypes.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": "IWitPriceFeedsTypes.ID4", "name": "id4", "type": "bytes4" }, { "indexed": false, "internalType": "string", "name": "caption", "type": "string" } ], "name": "PriceFeedRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "IWitPriceFeedsTypes.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": false, "internalType": "IWitPriceFeedsTypes.ID4", "name": "id4", "type": "bytes4" }, { "indexed": false, "internalType": "string", "name": "caption", "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 IWitPriceFeedsTypes.UpdateConditions", "name": "conditions", "type": "tuple" } ], "name": "PriceFeedUpdateConditions", "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" }, { "inputs": [], "name": "class", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_curator", "type": "address" } ], "name": "clone", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "cloned", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "codehash", "outputs": [ { "internalType": "bytes32", "name": "_codehash", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "consumer", "outputs": [ { "internalType": "contract IWitPriceFeedsConsumer", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "symbol", "type": "string" } ], "name": "createChainlinkAggregator", "outputs": [ { "internalType": "address", "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 IWitPriceFeedsTypes.UpdateConditions", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "footprint", "outputs": [ { "internalType": "bytes4", "name": "_footprint", "type": "bytes4" } ], "stateMutability": "view", "type": "function" }, { "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" }, { "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" }, { "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" }, { "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" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Price", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "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" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Price", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "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" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Price", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "getUpdateFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_symbol", "type": "string" } ], "name": "hash", "outputs": [ { "internalType": "IWitPyth.ID", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "_initData", "type": "bytes" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "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 IWitPriceFeedsTypes.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" }, { "inputs": [], "name": "isUpgradable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_from", "type": "address" } ], "name": "isUpgradableFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Mappers", "name": "class", "type": "uint8" }, { "internalType": "string[]", "name": "deps", "type": "string[]" } ], "internalType": "struct IWitPriceFeedsTypes.Mapper", "name": "mapper", "type": "tuple" }, { "components": [ { "internalType": "enum IWitPriceFeedsTypes.Oracles", "name": "class", "type": "uint8" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes32", "name": "sources", "type": "bytes32" } ], "internalType": "struct IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Price", "name": "lastUpdate", "type": "tuple" } ], "internalType": "struct IWitPriceFeedsTypes.Info", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.ID4", "name": "_id4", "type": "bytes4" } ], "name": "lookupPriceFeedCaption", "outputs": [ { "internalType": "string", "name": "_symbol", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.ID4", "name": "_id4", "type": "bytes4" } ], "name": "lookupPriceFeedExponent", "outputs": [ { "internalType": "int8", "name": "", "type": "int8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "IWitPriceFeedsTypes.ID4", "name": "_id4", "type": "bytes4" } ], "name": "lookupPriceFeedID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "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 IWitPriceFeedsTypes.Mappers", "name": "class", "type": "uint8" }, { "internalType": "string[]", "name": "deps", "type": "string[]" } ], "internalType": "struct IWitPriceFeedsTypes.Mapper", "name": "mapper", "type": "tuple" }, { "components": [ { "internalType": "enum IWitPriceFeedsTypes.Oracles", "name": "class", "type": "uint8" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes32", "name": "sources", "type": "bytes32" } ], "internalType": "struct IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.Price", "name": "lastUpdate", "type": "tuple" } ], "internalType": "struct IWitPriceFeedsTypes.Info[]", "name": "_infos", "type": "tuple[]" } ], "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": [], "name": "proxiableUUID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "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 IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.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 IWitPriceFeedsTypes.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" }, { "inputs": [ { "internalType": "string", "name": "_caption", "type": "string" } ], "name": "supportsCaption", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "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" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "witOracle", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x6101606040523060e052348015610014575f5ffd5b5060405161602338038061602383398101604081905261003391610312565b8233806100405733610042565b805b3060805283151560c0526001600160a01b03811661007a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610083816102a7565b505f826001600160a01b03163b116100dd5760405162461bcd60e51b815260206004820152601560248201527f696e6578697374656e74207769742f6f7261636c6500000000000000000000006044820152606401610071565b5f826001600160a01b031663adb7c3f76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061013e9190610361565b90506001600160e01b03198116636d11bc5160e11b148061016f57506001600160e01b031981166304722eaf60e31b145b6101bb5760405162461bcd60e51b815260206004820152601660248201527f756e636f6d706c69616e74207769742f6f7261636c65000000000000000000006044820152606401610071565b50506001600160a01b031661010052506040805160c081018252620f424081525f6020808301829052610384838501526201518060608401526080830191909152600360a0909201919091527fc5354469a5d32189a18f5e79f9508d828fa089087c317bc89792b1c8dba5390480546001600160701b0319166c030000015180000384000f4240179055610120929092528051808201909152601781527f696f2e7769746e65742e707269636566656564732e7633000000000000000000910152507f33f433a1d48c1d0bc6c5dce7fc5ae960b57aa338a1fb7b7ecbcbeaf0cf1deb3d6101405261038f565b600180546001600160a01b03191690556102c0816102c3565b50565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f5f5f60608486031215610324575f5ffd5b83516001600160a01b038116811461033a575f5ffd5b6020850151604086015191945092508015158114610356575f5ffd5b809150509250925092565b5f60208284031215610371575f5ffd5b81516001600160e01b031981168114610388575f5ffd5b9392505050565b60805160a05160c05160e051610100516