@josojo/realitytoken-contracts
Version:
realitytoken basic contracts
352 lines • 10.5 kB
JSON
{
"contractName": "Oracle",
"abi": [
{
"constant": true,
"inputs": [],
"name": "isOutcomeSet",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getOutcome",
"outputs": [
{
"name": "",
"type": "int256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.15;\n\n\n/// @title Abstract oracle contract - Functions to be implemented by oracles\ncontract Oracle {\n\n function isOutcomeSet() public constant returns (bool);\n function getOutcome() public constant returns (int);\n}\n",
"sourcePath": "@gnosis.pm/pm-contracts/contracts/Oracles/Oracle.sol",
"ast": {
"absolutePath": "@gnosis.pm/pm-contracts/contracts/Oracles/Oracle.sol",
"exportedSymbols": {
"Oracle": [
2977
]
},
"id": 2978,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2966,
"literals": [
"solidity",
"^",
"0.4",
".15"
],
"nodeType": "PragmaDirective",
"src": "0:24:11"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract oracle contract - Functions to be implemented by oracles",
"fullyImplemented": false,
"id": 2977,
"linearizedBaseContracts": [
2977
],
"name": "Oracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 2971,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isOutcomeSet",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2967,
"nodeType": "ParameterList",
"parameters": [],
"src": "148:2:11"
},
"payable": false,
"returnParameters": {
"id": 2970,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2969,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2971,
"src": "176:4:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2968,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "176:4:11",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "175:6:11"
},
"scope": 2977,
"src": "127:55:11",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2976,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getOutcome",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2972,
"nodeType": "ParameterList",
"parameters": [],
"src": "206:2:11"
},
"payable": false,
"returnParameters": {
"id": 2975,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2974,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2976,
"src": "234:3:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 2973,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "234:3:11",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "233:5:11"
},
"scope": 2977,
"src": "187:52:11",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2978,
"src": "104:137:11"
}
],
"src": "0:242:11"
},
"legacyAST": {
"absolutePath": "@gnosis.pm/pm-contracts/contracts/Oracles/Oracle.sol",
"exportedSymbols": {
"Oracle": [
2977
]
},
"id": 2978,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2966,
"literals": [
"solidity",
"^",
"0.4",
".15"
],
"nodeType": "PragmaDirective",
"src": "0:24:11"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract oracle contract - Functions to be implemented by oracles",
"fullyImplemented": false,
"id": 2977,
"linearizedBaseContracts": [
2977
],
"name": "Oracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 2971,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isOutcomeSet",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2967,
"nodeType": "ParameterList",
"parameters": [],
"src": "148:2:11"
},
"payable": false,
"returnParameters": {
"id": 2970,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2969,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2971,
"src": "176:4:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2968,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "176:4:11",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "175:6:11"
},
"scope": 2977,
"src": "127:55:11",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2976,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getOutcome",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2972,
"nodeType": "ParameterList",
"parameters": [],
"src": "206:2:11"
},
"payable": false,
"returnParameters": {
"id": 2975,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2974,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2976,
"src": "234:3:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 2973,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "234:3:11",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "233:5:11"
},
"scope": 2977,
"src": "187:52:11",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2978,
"src": "104:137:11"
}
],
"src": "0:242:11"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.0-beta.1",
"updatedAt": "2018-10-27T21:23:29.098Z"
}