UNPKG

@gnosis.pm/hg-contracts

Version:

Collection of smart contracts for the Gnosis prediction market platform

284 lines 8.36 kB
{ "contractName": "OracleConsumer", "abi": [ { "constant": false, "inputs": [ { "name": "id", "type": "bytes32" }, { "name": "result", "type": "bytes" } ], "name": "receiveResult", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.1;\n\n\ninterface OracleConsumer {\n function receiveResult(bytes32 id, bytes calldata result) external;\n}\n", "sourcePath": "/home/alan/src/github.com/gnosis/hg-contracts/contracts/OracleConsumer.sol", "ast": { "absolutePath": "/home/alan/src/github.com/gnosis/hg-contracts/contracts/OracleConsumer.sol", "exportedSymbols": { "OracleConsumer": [ 1277 ] }, "id": 1278, "nodeType": "SourceUnit", "nodes": [ { "id": 1269, "literals": [ "solidity", "^", "0.5", ".1" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1277, "linearizedBaseContracts": [ 1277 ], "name": "OracleConsumer", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1276, "implemented": false, "kind": "function", "modifiers": [], "name": "receiveResult", "nodeType": "FunctionDefinition", "parameters": { "id": 1274, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1271, "name": "id", "nodeType": "VariableDeclaration", "scope": 1276, "src": "80:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1270, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "80:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1273, "name": "result", "nodeType": "VariableDeclaration", "scope": 1276, "src": "92:21:6", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 1272, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "92:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "79:35:6" }, "returnParameters": { "id": 1275, "nodeType": "ParameterList", "parameters": [], "src": "123:0:6" }, "scope": 1277, "src": "57:67:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1278, "src": "26:100:6" } ], "src": "0:127:6" }, "legacyAST": { "absolutePath": "/home/alan/src/github.com/gnosis/hg-contracts/contracts/OracleConsumer.sol", "exportedSymbols": { "OracleConsumer": [ 1277 ] }, "id": 1278, "nodeType": "SourceUnit", "nodes": [ { "id": 1269, "literals": [ "solidity", "^", "0.5", ".1" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1277, "linearizedBaseContracts": [ 1277 ], "name": "OracleConsumer", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1276, "implemented": false, "kind": "function", "modifiers": [], "name": "receiveResult", "nodeType": "FunctionDefinition", "parameters": { "id": 1274, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1271, "name": "id", "nodeType": "VariableDeclaration", "scope": 1276, "src": "80:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1270, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "80:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1273, "name": "result", "nodeType": "VariableDeclaration", "scope": 1276, "src": "92:21:6", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 1272, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "92:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "79:35:6" }, "returnParameters": { "id": 1275, "nodeType": "ParameterList", "parameters": [], "src": "123:0:6" }, "scope": 1277, "src": "57:67:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1278, "src": "26:100:6" } ], "src": "0:127:6" }, "compiler": { "name": "solc", "version": "0.5.1+commit.c8a2cb62.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.3", "updatedAt": "2019-06-08T17:32:19.219Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }