witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
221 lines • 8.29 kB
JSON
{
"contractName": "IWitOracleAppliance",
"abi": [
{
"inputs": [],
"name": "class",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "specs",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "witOracle",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"class\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"specs\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"witOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"class()\":{\"notice\":\"Returns the name of the actual contract implementing the logic of this Witnet appliance.\"},\"specs()\":{\"notice\":\"Returns the ERC-165 id of the minimal functionality expected for this appliance.\"},\"witOracle()\":{\"notice\":\"Returns the WitOracle address that this appliance is bound to.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitOracleAppliance.sol\":\"IWitOracleAppliance\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitAppliance.sol\":{\"keccak256\":\"0xd207ca54a1049445a3d99eea497d9b34c6dbdd44d771eee825e4c031bd2f447e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f81de32d868ff2881ed6fe97cc897e40b4b11d23cbe53a0e23cf3e68f9c0f0a3\",\"dweb:/ipfs/QmeeXmzmK5MAzt7Hf5DB2L81efKtTzZg9VbQ8sUiTqEk5c\"]},\"project:/contracts/interfaces/IWitOracleAppliance.sol\":{\"keccak256\":\"0xcd8e57eca7f8042c85a83264e2ff6d1cd7a9f1521831736d7f57bcc7800642e6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5c639668e9439d60770b5df77436088ae7bd0aeb1d1be446552a98b6c29138f0\",\"dweb:/ipfs/QmbN3f5YuKMSd2j9tjay3VEkiYibGWpbfbwRNyrxA8k4o4\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.0;\r\n\r\nimport \"./IWitAppliance.sol\";\r\n\r\nabstract contract IWitOracleAppliance\r\n is\r\n IWitAppliance\r\n{\r\n /// @notice Returns the WitOracle address that this appliance is bound to.\r\n function witOracle() virtual external view returns (address);\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitOracleAppliance.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitOracleAppliance.sol",
"exportedSymbols": {
"IWitAppliance": [
26514
],
"IWitOracleAppliance": [
26593
]
},
"id": 26594,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 26583,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:23:65"
},
{
"absolutePath": "project:/contracts/interfaces/IWitAppliance.sol",
"file": "./IWitAppliance.sol",
"id": 26584,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 26594,
"sourceUnit": 26515,
"src": "62:29:65",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 26585,
"name": "IWitAppliance",
"nameLocations": [
"150:13:65"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 26514,
"src": "150:13:65"
},
"id": 26586,
"nodeType": "InheritanceSpecifier",
"src": "150:13:65"
}
],
"canonicalName": "IWitOracleAppliance",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": false,
"id": 26593,
"linearizedBaseContracts": [
26593,
26514
],
"name": "IWitOracleAppliance",
"nameLocation": "113:19:65",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 26587,
"nodeType": "StructuredDocumentation",
"src": "172:74:65",
"text": "@notice Returns the WitOracle address that this appliance is bound to."
},
"functionSelector": "1014d375",
"id": 26592,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "witOracle",
"nameLocation": "261:9:65",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 26588,
"nodeType": "ParameterList",
"parameters": [],
"src": "270:2:65"
},
"returnParameters": {
"id": 26591,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 26590,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 26592,
"src": "304:7:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 26589,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "304:7:65",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "303:9:65"
},
"scope": 26593,
"src": "252:61:65",
"stateMutability": "view",
"virtual": true,
"visibility": "external"
}
],
"scope": 26594,
"src": "95:221:65",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:283:65"
},
"compiler": {
"name": "solc",
"version": "0.8.30+commit.73712a01.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2025-10-15T14:34:45.892Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"class()": {
"notice": "Returns the name of the actual contract implementing the logic of this Witnet appliance."
},
"specs()": {
"notice": "Returns the ERC-165 id of the minimal functionality expected for this appliance."
},
"witOracle()": {
"notice": "Returns the WitOracle address that this appliance is bound to."
}
},
"version": 1
}
}