@gnosis.pm/pm-contracts
Version:
Collection of smart contracts for the Gnosis prediction market platform
374 lines • 12.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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.6+commit.b259423e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"getOutcome\",\"outputs\":[{\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOutcomeSet\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{},\"title\":\"Abstract oracle contract - Functions to be implemented by oracles\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol\":\"Oracle\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol\":{\"keccak256\":\"0xf4d12f4a59c17e66dfa6791188f621a8914e2038a4e3f72d6fc9fb903ca8e18e\",\"urls\":[\"bzzr://a477ccd203e677cc904b1a4f8fcc85251c5b5e09c5c10eed27e01318584b16d1\"]},\"@gnosis.pm/util-contracts/contracts/Proxy.sol\":{\"keccak256\":\"0xeab0e83a9ec9e7f052c0455a11577061ec6d1994db08dae429abd6faaabf6555\",\"urls\":[\"bzzr://b2c1273d4ec30e2f9e768eea8c510f8493a7359b03e01923d93eea86b57ec145\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.5.0;\nimport \"@gnosis.pm/util-contracts/contracts/Proxy.sol\";\n\n/// @title Abstract oracle contract - Functions to be implemented by oracles\ncontract Oracle {\n\n function isOutcomeSet() public view returns (bool);\n function getOutcome() public view returns (int);\n}\n",
"sourcePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol",
"ast": {
"absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol",
"exportedSymbols": {
"Oracle": [
4841
]
},
"id": 4842,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4829,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:22"
},
{
"absolutePath": "@gnosis.pm/util-contracts/contracts/Proxy.sol",
"file": "@gnosis.pm/util-contracts/contracts/Proxy.sol",
"id": 4830,
"nodeType": "ImportDirective",
"scope": 4842,
"sourceUnit": 6829,
"src": "24:55:22",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract oracle contract - Functions to be implemented by oracles",
"fullyImplemented": false,
"id": 4841,
"linearizedBaseContracts": [
4841
],
"name": "Oracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 4835,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isOutcomeSet",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4831,
"nodeType": "ParameterList",
"parameters": [],
"src": "202:2:22"
},
"returnParameters": {
"id": 4834,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4833,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4835,
"src": "226:4:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4832,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "226:4:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "225:6:22"
},
"scope": 4841,
"src": "181:51:22",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 4840,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getOutcome",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4836,
"nodeType": "ParameterList",
"parameters": [],
"src": "256:2:22"
},
"returnParameters": {
"id": 4839,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4838,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4840,
"src": "280:3:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 4837,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "280:3:22",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "279:5:22"
},
"scope": 4841,
"src": "237:48:22",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 4842,
"src": "158:129:22"
}
],
"src": "0:288:22"
},
"legacyAST": {
"absolutePath": "/home/alan/src/github.com/gnosis/pm-contracts/contracts/Oracles/Oracle.sol",
"exportedSymbols": {
"Oracle": [
4841
]
},
"id": 4842,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4829,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:22"
},
{
"absolutePath": "@gnosis.pm/util-contracts/contracts/Proxy.sol",
"file": "@gnosis.pm/util-contracts/contracts/Proxy.sol",
"id": 4830,
"nodeType": "ImportDirective",
"scope": 4842,
"sourceUnit": 6829,
"src": "24:55:22",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract oracle contract - Functions to be implemented by oracles",
"fullyImplemented": false,
"id": 4841,
"linearizedBaseContracts": [
4841
],
"name": "Oracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 4835,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isOutcomeSet",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4831,
"nodeType": "ParameterList",
"parameters": [],
"src": "202:2:22"
},
"returnParameters": {
"id": 4834,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4833,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4835,
"src": "226:4:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4832,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "226:4:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "225:6:22"
},
"scope": 4841,
"src": "181:51:22",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 4840,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getOutcome",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4836,
"nodeType": "ParameterList",
"parameters": [],
"src": "256:2:22"
},
"returnParameters": {
"id": 4839,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4838,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4840,
"src": "280:3:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 4837,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "280:3:22",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "279:5:22"
},
"scope": 4841,
"src": "237:48:22",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 4842,
"src": "158:129:22"
}
],
"src": "0:288:22"
},
"compiler": {
"name": "solc",
"version": "0.5.6+commit.b259423e.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.11",
"updatedAt": "2019-09-20T17:46:52.215Z",
"devdoc": {
"methods": {},
"title": "Abstract oracle contract - Functions to be implemented by oracles"
},
"userdoc": {
"methods": {}
}
}