witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
1,921 lines • 3.24 MB
JSON
{
"contractName": "WitPriceFeedsV3",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_witOracle",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"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"
},
{
"inputs": [],
"name": "cloned",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "specs",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "witOracle",
"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"
},
{
"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": [
{
"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": [
{
"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": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "getUpdateFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_curator",
"type": "address"
}
],
"name": "clone",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "symbol",
"type": "string"
}
],
"name": "createChainlinkAggregator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "base",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "consumer",
"outputs": [
{
"internalType": "contract IWitPriceFeedsConsumer",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "footprint",
"outputs": [
{
"internalType": "bytes4",
"name": "_footprint",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"name": "hash",
"outputs": [
{
"internalType": "IWitPyth.ID",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"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": "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": [
{
"internalType": "string",
"name": "_caption",
"type": "string"
}
],
"name": "supportsCaption",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"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": "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": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"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": [
{
"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": [
{
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_witOracle\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"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\