witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
192 lines • 4.96 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "IWitOracleConsumerLegacy",
"sourceName": "contracts/interfaces/legacy/IWitOracleConsumerLegacy.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "queryId",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "resultTimestamp",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "resultDrTxHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "resultEvmFinalityBlock",
"type": "uint256"
},
{
"internalType": "enum Witnet.ResultStatus",
"name": "errorCode",
"type": "uint8"
},
{
"components": [
{
"components": [
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "cursor",
"type": "uint256"
}
],
"internalType": "struct WitnetBuffer.Buffer",
"name": "buffer",
"type": "tuple"
},
{
"internalType": "uint8",
"name": "initialByte",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "majorType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "additionalInformation",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "len",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "tag",
"type": "uint64"
}
],
"internalType": "struct WitnetCBOR.CBOR",
"name": "errorArgs",
"type": "tuple"
}
],
"name": "reportWitOracleResultError",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "queryId",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "resultTimestamp",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "resultDrTxHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "resultEvmFinalityBlock",
"type": "uint256"
},
{
"components": [
{
"components": [
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "cursor",
"type": "uint256"
}
],
"internalType": "struct WitnetBuffer.Buffer",
"name": "buffer",
"type": "tuple"
},
{
"internalType": "uint8",
"name": "initialByte",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "majorType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "additionalInformation",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "len",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "tag",
"type": "uint64"
}
],
"internalType": "struct WitnetCBOR.CBOR",
"name": "witnetResultCborValue",
"type": "tuple"
}
],
"name": "reportWitOracleResultValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "reportableFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
"inputSourceName": "project/contracts/interfaces/legacy/IWitOracleConsumerLegacy.sol",
"buildInfoId": "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf"
}