UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

270 lines 10.2 kB
{ "contractName": "IERC2362", "abi": [ { "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" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\"}],\"devdoc\":{\"details\":\"EIP2362 Interface for pull oracles https://github.com/adoracles/EIPs/blob/erc-2362/EIPS/eip-2362.md\",\"kind\":\"dev\",\"methods\":{\"valueFor(bytes32)\":{\"details\":\"Exposed function pertaining to EIP standards\",\"params\":{\"_id\":\"bytes32 ID of the query\"},\"returns\":{\"_0\":\"int,uint,uint returns the value, timestamp, and status code of query\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"ado-contracts/contracts/interfaces/IERC2362.sol\":\"IERC2362\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"ado-contracts/contracts/interfaces/IERC2362.sol\":{\"keccak256\":\"0x4df66aa83b94d7c3d52aba3522b6eeafc19f2c45299b7c871ef46eb199ee4f6b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0af92023c38ab97a95fb7e2a196a697cfc1d90bb1b8bfe73e0ba69cbb7a8f5ab\",\"dweb:/ipfs/QmVSBWxe2QCZvAxiuTfEwprK9MbDtFNptoWeMBbmUcwQnx\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.5.0 <0.9.0;\n\n/**\n* @dev EIP2362 Interface for pull oracles\n* https://github.com/adoracles/EIPs/blob/erc-2362/EIPS/eip-2362.md\n*/\ninterface IERC2362\n{\n\t/**\n\t * @dev Exposed function pertaining to EIP standards\n\t * @param _id bytes32 ID of the query\n\t * @return int,uint,uint returns the value, timestamp, and status code of query\n\t */\n\tfunction valueFor(bytes32 _id) external view returns(int256,uint256,uint256);\n}", "sourcePath": "ado-contracts\\contracts\\interfaces\\IERC2362.sol", "ast": { "absolutePath": "ado-contracts/contracts/interfaces/IERC2362.sol", "exportedSymbols": { "IERC2362": [ 630 ] }, "id": 631, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 616, "literals": [ "solidity", ">=", "0.5", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:7" }, { "abstract": false, "baseContracts": [], "canonicalName": "IERC2362", "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 617, "nodeType": "StructuredDocumentation", "src": "66:115:7", "text": " @dev EIP2362 Interface for pull oracles\n https://github.com/adoracles/EIPs/blob/erc-2362/EIPS/eip-2362.md" }, "fullyImplemented": false, "id": 630, "linearizedBaseContracts": [ 630 ], "name": "IERC2362", "nameLocation": "192:8:7", "nodeType": "ContractDefinition", "nodes": [ { "documentation": { "id": 618, "nodeType": "StructuredDocumentation", "src": "204:182:7", "text": " @dev Exposed function pertaining to EIP standards\n @param _id bytes32 ID of the query\n @return int,uint,uint returns the value, timestamp, and status code of query" }, "functionSelector": "f78eea83", "id": 629, "implemented": false, "kind": "function", "modifiers": [], "name": "valueFor", "nameLocation": "397:8:7", "nodeType": "FunctionDefinition", "parameters": { "id": 621, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 620, "mutability": "mutable", "name": "_id", "nameLocation": "414:3:7", "nodeType": "VariableDeclaration", "scope": 629, "src": "406:11:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 619, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "406:7:7", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "405:13:7" }, "returnParameters": { "id": 628, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 623, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 629, "src": "441:6:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 622, "name": "int256", "nodeType": "ElementaryTypeName", "src": "441:6:7", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "visibility": "internal" }, { "constant": false, "id": 625, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 629, "src": "448:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 624, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "448:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 627, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 629, "src": "456:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 626, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "456:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "440:24:7" }, "scope": 630, "src": "388:77:7", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 631, "src": "182:285:7", "usedErrors": [], "usedEvents": [] } ], "src": "33:434:7" }, "compiler": { "name": "solc", "version": "0.8.25+commit.b61c2a91.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2024-12-05T09:36:04.145Z", "devdoc": { "details": "EIP2362 Interface for pull oracles https://github.com/adoracles/EIPs/blob/erc-2362/EIPS/eip-2362.md", "kind": "dev", "methods": { "valueFor(bytes32)": { "details": "Exposed function pertaining to EIP standards", "params": { "_id": "bytes32 ID of the query" }, "returns": { "_0": "int,uint,uint returns the value, timestamp, and status code of query" } } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }