UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

497 lines 17.6 kB
{ "contractName": "IWitPriceFeedsMappingSolver", "abi": [ { "inputs": [], "name": "class", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "delegator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "feedId", "type": "bytes4" } ], "name": "solve", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "specs", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "feedId", "type": "bytes4" }, { "internalType": "string[]", "name": "initdata", "type": "string[]" } ], "name": "validate", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"class\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"feedId\",\"type\":\"bytes4\"}],\"name\":\"solve\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"specs\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"feedId\",\"type\":\"bytes4\"},{\"internalType\":\"string[]\",\"name\":\"initdata\",\"type\":\"string[]\"}],\"name\":\"validate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitPriceFeedsMappingSolver.sol\":\"IWitPriceFeedsMappingSolver\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitPriceFeedsMappingSolver.sol\":{\"keccak256\":\"0x1e03e8a360508f5418f77b9010da21429af53aaf1dd571b15bd8da1367be6704\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f7811c1aa3b4b4b4f68dd4a77193e25bbe901a26940afd34ca182b0f6efff60\",\"dweb:/ipfs/QmexbCy55DY3fE347WEs9TayqMtcQZpY5oLx14YeyirwN2\"]}},\"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 IWitPriceFeedsMappingSolver {\r\n function class() external pure returns (string memory);\r\n function delegator() external view returns (address);\r\n function solve(bytes4 feedId) external view returns (bytes memory);\r\n function specs() external pure returns (bytes4);\r\n function validate(bytes4 feedId, string[] calldata initdata) external;\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitPriceFeedsMappingSolver.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitPriceFeedsMappingSolver.sol", "exportedSymbols": { "IWitPriceFeedsMappingSolver": [ 27889 ] }, "id": 27890, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 27858, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:83" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitPriceFeedsMappingSolver", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 27889, "linearizedBaseContracts": [ 27889 ], "name": "IWitPriceFeedsMappingSolver", "nameLocation": "80:27:83", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "bff852fa", "id": 27863, "implemented": false, "kind": "function", "modifiers": [], "name": "class", "nameLocation": "124:5:83", "nodeType": "FunctionDefinition", "parameters": { "id": 27859, "nodeType": "ParameterList", "parameters": [], "src": "129:2:83" }, "returnParameters": { "id": 27862, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27861, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27863, "src": "155:13:83", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 27860, "name": "string", "nodeType": "ElementaryTypeName", "src": "155:6:83", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "154:15:83" }, "scope": 27889, "src": "115:55:83", "stateMutability": "pure", "virtual": false, "visibility": "external" }, { "functionSelector": "ce9b7930", "id": 27868, "implemented": false, "kind": "function", "modifiers": [], "name": "delegator", "nameLocation": "185:9:83", "nodeType": "FunctionDefinition", "parameters": { "id": 27864, "nodeType": "ParameterList", "parameters": [], "src": "194:2:83" }, "returnParameters": { "id": 27867, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27866, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27868, "src": "220:7:83", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 27865, "name": "address", "nodeType": "ElementaryTypeName", "src": "220:7:83", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "219:9:83" }, "scope": 27889, "src": "176:53:83", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "e0d20f73", "id": 27875, "implemented": false, "kind": "function", "modifiers": [], "name": "solve", "nameLocation": "244:5:83", "nodeType": "FunctionDefinition", "parameters": { "id": 27871, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27870, "mutability": "mutable", "name": "feedId", "nameLocation": "257:6:83", "nodeType": "VariableDeclaration", "scope": 27875, "src": "250:13:83", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27869, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "250:6:83", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "249:15:83" }, "returnParameters": { "id": 27874, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27873, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27875, "src": "288:12:83", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 27872, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "288:5:83", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "287:14:83" }, "scope": 27889, "src": "235:67:83", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "adb7c3f7", "id": 27880, "implemented": false, "kind": "function", "modifiers": [], "name": "specs", "nameLocation": "317:5:83", "nodeType": "FunctionDefinition", "parameters": { "id": 27876, "nodeType": "ParameterList", "parameters": [], "src": "322:2:83" }, "returnParameters": { "id": 27879, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27878, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27880, "src": "348:6:83", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27877, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "348:6:83", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "347:8:83" }, "scope": 27889, "src": "308:48:83", "stateMutability": "pure", "virtual": false, "visibility": "external" }, { "functionSelector": "e6f87158", "id": 27888, "implemented": false, "kind": "function", "modifiers": [], "name": "validate", "nameLocation": "371:8:83", "nodeType": "FunctionDefinition", "parameters": { "id": 27886, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27882, "mutability": "mutable", "name": "feedId", "nameLocation": "387:6:83", "nodeType": "VariableDeclaration", "scope": 27888, "src": "380:13:83", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27881, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "380:6:83", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" }, { "constant": false, "id": 27885, "mutability": "mutable", "name": "initdata", "nameLocation": "413:8:83", "nodeType": "VariableDeclaration", "scope": 27888, "src": "395:26:83", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_calldata_ptr_$dyn_calldata_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 27883, "name": "string", "nodeType": "ElementaryTypeName", "src": "395:6:83", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 27884, "nodeType": "ArrayTypeName", "src": "395:8:83", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" } ], "src": "379:43:83" }, "returnParameters": { "id": 27887, "nodeType": "ParameterList", "parameters": [], "src": "431:0:83" }, "scope": 27889, "src": "362:70:83", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 27890, "src": "70:365:83", "usedErrors": [], "usedEvents": [] } ], "src": "35:402:83" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-14T12:38:50.189Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }