witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
744 lines • 17 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "IWitPriceFeedsLegacy",
"sourceName": "contracts/interfaces/legacy/IWitPriceFeedsLegacy.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "evmOrigin",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "evmSender",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "erc2362Id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "uint256",
"name": "witOracleQueryId",
"type": "uint256"
}
],
"name": "PullingUpdate",
"type": "event"
},
{
"inputs": [],
"name": "dataType",
"outputs": [
{
"internalType": "enum Witnet.RadonDataTypes",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultRadonSLA",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "numWitnesses",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "minConsensusPercentage",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "witnessReward",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "witnessCollateral",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "minerCommitRevealFee",
"type": "uint64"
}
],
"internalType": "struct IWitPriceFeedsLegacy.RadonSLAv1",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "evmGasPrice",
"type": "uint256"
}
],
"name": "estimateUpdateBaseFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "footprint",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "caption",
"type": "string"
}
],
"name": "hash",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lastValidQueryId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lastValidQueryResponse",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "reporter",
"type": "address"
},
{
"internalType": "Witnet.Timestamp",
"name": "resultTimestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "resultDrTxHash",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "resultCborBytes",
"type": "bytes"
},
{
"internalType": "address",
"name": "disputer",
"type": "address"
}
],
"internalType": "struct Witnet.QueryResponse",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestPrice",
"outputs": [
{
"components": [
{
"internalType": "uint64",
"name": "value",
"type": "uint64"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "drTxHash",
"type": "bytes32"
},
{
"internalType": "enum IWitPriceFeedsLegacySolver.LatestUpdateStatus",
"name": "latestStatus",
"type": "uint8"
}
],
"internalType": "struct IWitPriceFeedsLegacySolver.Price",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4[]",
"name": "feedIds",
"type": "bytes4[]"
}
],
"name": "latestPrices",
"outputs": [
{
"components": [
{
"internalType": "uint64",
"name": "value",
"type": "uint64"
},
{
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "drTxHash",
"type": "bytes32"
},
{
"internalType": "enum IWitPriceFeedsLegacySolver.LatestUpdateStatus",
"name": "latestStatus",
"type": "uint8"
}
],
"internalType": "struct IWitPriceFeedsLegacySolver.Price[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestUpdateQueryId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestUpdateQueryRequest",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "requester",
"type": "address"
},
{
"internalType": "uint24",
"name": "callbackGas",
"type": "uint24"
},
{
"internalType": "bytes",
"name": "radonBytecode",
"type": "bytes"
},
{
"internalType": "Witnet.RadonHash",
"name": "radonHash",
"type": "bytes32"
}
],
"internalType": "struct Witnet.QueryRequest",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestUpdateResponse",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "reporter",
"type": "address"
},
{
"internalType": "Witnet.Timestamp",
"name": "resultTimestamp",
"type": "uint64"
},
{
"internalType": "Witnet.TransactionHash",
"name": "resultDrTxHash",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "resultCborBytes",
"type": "bytes"
},
{
"internalType": "address",
"name": "disputer",
"type": "address"
}
],
"internalType": "struct Witnet.QueryResponse",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestUpdateResponseStatus",
"outputs": [
{
"internalType": "enum IWitOracleLegacy.QueryResponseStatus",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestUpdateResultError",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "code",
"type": "uint8"
},
{
"internalType": "string",
"name": "reason",
"type": "string"
}
],
"internalType": "struct IWitOracleLegacy.ResultError",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "lookupCaption",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lookupDecimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lookupPriceSolver",
"outputs": [
{
"internalType": "address",
"name": "solverAddress",
"type": "address"
},
{
"internalType": "string[]",
"name": "solverDeps",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "lookupWitnetBytecode",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "lookupWitnetRadHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "lookupWitnetRetrievals",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "argsCount",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonRetrievalMethods",
"name": "method",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonDataTypes",
"name": "dataType",
"type": "uint8"
},
{
"internalType": "string",
"name": "url",
"type": "string"
},
{
"internalType": "string",
"name": "body",
"type": "string"
},
{
"internalType": "string[2][]",
"name": "headers",
"type": "string[2][]"
},
{
"internalType": "bytes",
"name": "radonScript",
"type": "bytes"
}
],
"internalType": "struct Witnet.RadonRetrieval[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "prefix",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "requestUpdate",
"outputs": [
{
"internalType": "uint256",
"name": "usedFunds",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
},
{
"components": [
{
"internalType": "uint8",
"name": "numWitnesses",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "unitaryReward",
"type": "uint64"
}
],
"internalType": "struct IWitPriceFeedsLegacy.RadonSLAv2",
"name": "",
"type": "tuple"
}
],
"name": "requestUpdate",
"outputs": [
{
"internalType": "uint256",
"name": "usedFunds",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "supportedFeeds",
"outputs": [
{
"internalType": "bytes4[]",
"name": "",
"type": "bytes4[]"
},
{
"internalType": "string[]",
"name": "",
"type": "string[]"
},
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "supportsCaption",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalFeeds",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witnet",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
"inputSourceName": "project/contracts/interfaces/legacy/IWitPriceFeedsLegacy.sol",
"buildInfoId": "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf"
}