witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
682 lines • 24.2 kB
JSON
{
"contractName": "IFeeds",
"abi": [
{
"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": "",
"type": "bytes4"
}
],
"name": "lookupCaption",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"\",\"type\":\"bytes4\"}],\"name\":\"lookupCaption\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IFeeds.sol\":\"IFeeds\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IFeeds.sol\":{\"keccak256\":\"0x4edf84815f844f8ca6e4a277fab21082d3bb2b5e6c2b50198551b0f9aad88121\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://848dd5a610dbb08b566ed9878d09e1c2d37d1849327834b61d0d7ba35beab80f\",\"dweb:/ipfs/Qma4VvwjgTB7Na5WEv6tdxs6VbTuMtkW8GMJzxFsXiqbVE\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\ninterface IFeeds {\r\n function footprint() external view returns (bytes4);\r\n function hash(string calldata caption) external pure returns (bytes4);\r\n function lookupCaption(bytes4) external view returns (string memory);\r\n function supportedFeeds() external view returns (bytes4[] memory, string[] memory, bytes32[] memory);\r\n function supportsCaption(string calldata) external view returns (bool);\r\n function totalFeeds() external view returns (uint256);\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IFeeds.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IFeeds.sol",
"exportedSymbols": {
"IFeeds": [
12784
]
},
"id": 12785,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 12740,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:45"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IFeeds",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 12784,
"linearizedBaseContracts": [
12784
],
"name": "IFeeds",
"nameLocation": "80:6:45",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "8a416ea9",
"id": 12745,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "footprint",
"nameLocation": "103:9:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12741,
"nodeType": "ParameterList",
"parameters": [],
"src": "112:2:45"
},
"returnParameters": {
"id": 12744,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12743,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12745,
"src": "138:6:45",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 12742,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "138:6:45",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"src": "137:8:45"
},
"scope": 12784,
"src": "94:52:45",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b411ee94",
"id": 12752,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "hash",
"nameLocation": "161:4:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12748,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12747,
"mutability": "mutable",
"name": "caption",
"nameLocation": "182:7:45",
"nodeType": "VariableDeclaration",
"scope": 12752,
"src": "166:23:45",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 12746,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "166:6:45",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "165:25:45"
},
"returnParameters": {
"id": 12751,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12750,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12752,
"src": "214:6:45",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 12749,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "214:6:45",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"src": "213:8:45"
},
"scope": 12784,
"src": "152:70:45",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ef1dff2b",
"id": 12759,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupCaption",
"nameLocation": "237:13:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12755,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12754,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12759,
"src": "251:6:45",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 12753,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "251:6:45",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"src": "250:8:45"
},
"returnParameters": {
"id": 12758,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12757,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12759,
"src": "282:13:45",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 12756,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "282:6:45",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "281:15:45"
},
"scope": 12784,
"src": "228:69:45",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0306732e",
"id": 12771,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supportedFeeds",
"nameLocation": "312:14:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12760,
"nodeType": "ParameterList",
"parameters": [],
"src": "326:2:45"
},
"returnParameters": {
"id": 12770,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12763,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12771,
"src": "352:15:45",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes4_$dyn_memory_ptr",
"typeString": "bytes4[]"
},
"typeName": {
"baseType": {
"id": 12761,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "352:6:45",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"id": 12762,
"nodeType": "ArrayTypeName",
"src": "352:8:45",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes4_$dyn_storage_ptr",
"typeString": "bytes4[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12766,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12771,
"src": "369:15:45",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
"typeString": "string[]"
},
"typeName": {
"baseType": {
"id": 12764,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "369:6:45",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 12765,
"nodeType": "ArrayTypeName",
"src": "369:8:45",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12769,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12771,
"src": "386:16:45",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 12767,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "386:7:45",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 12768,
"nodeType": "ArrayTypeName",
"src": "386:9:45",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
}
],
"src": "351:52:45"
},
"scope": 12784,
"src": "303:101:45",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c5010d17",
"id": 12778,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supportsCaption",
"nameLocation": "419:15:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12774,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12773,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12778,
"src": "435:15:45",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 12772,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "435:6:45",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "434:17:45"
},
"returnParameters": {
"id": 12777,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12776,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12778,
"src": "475:4:45",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 12775,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "475:4:45",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "474:6:45"
},
"scope": 12784,
"src": "410:71:45",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d6a3614f",
"id": 12783,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalFeeds",
"nameLocation": "496:10:45",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12779,
"nodeType": "ParameterList",
"parameters": [],
"src": "506:2:45"
},
"returnParameters": {
"id": 12782,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12781,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12783,
"src": "532:7:45",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12780,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "532:7:45",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "531:9:45"
},
"scope": 12784,
"src": "487:54:45",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 12785,
"src": "70:474:45",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:509:45"
},
"compiler": {
"name": "solc",
"version": "0.8.25+commit.b61c2a91.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-12-05T09:36:04.494Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}