witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
1,153 lines • 25.7 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "WitPriceFeedsLegacy",
"sourceName": "contracts/WitPriceFeedsLegacy.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "codehash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "constructorParams",
"type": "bytes"
}
],
"name": "NewPriceFeedsSolver",
"type": "event"
},
{
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "WitFeedDeleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "radHash",
"type": "bytes32"
}
],
"name": "WitFeedSettled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "address",
"name": "solver",
"type": "address"
}
],
"name": "WitFeedSolverSettled",
"type": "event"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "baseFeeOverheadPercentage",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "class",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"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": "string",
"name": "caption",
"type": "string"
}
],
"name": "deleteFeed",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "deleteFeeds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "initcode",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "additionalParams",
"type": "bytes"
}
],
"name": "deployPriceSolver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "initcode",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "additionalParams",
"type": "bytes"
}
],
"name": "determinePriceSolverAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"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": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"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": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"name": "settleBaseFeeOverheadPercentage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "numWitnesses",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "unitaryReward",
"type": "uint64"
}
],
"internalType": "struct IWitPriceFeedsLegacy.RadonSLAv2",
"name": "",
"type": "tuple"
}
],
"name": "settleDefaultRadonSLA",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"internalType": "bytes32",
"name": "radHash",
"type": "bytes32"
}
],
"name": "settleFeedRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"internalType": "contract IWitOracleRequest",
"name": "request",
"type": "address"
}
],
"name": "settleFeedRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"internalType": "contract IWitOracleRequestTemplate",
"name": "template",
"type": "address"
},
{
"internalType": "string[][]",
"name": "",
"type": "string[][]"
}
],
"name": "settleFeedRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"internalType": "string[]",
"name": "deps",
"type": "string[]"
}
],
"name": "settleFeedSolver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "specs",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"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": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_id",
"type": "bytes32"
}
],
"name": "valueFor",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracle",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"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/WitPriceFeedsLegacy.sol",
"buildInfoId": "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf"
}