UNPKG

@realitio/realitio-contracts

Version:

Collection of smart contracts for the Realitio fact verification platform

1,668 lines (1,667 loc) 314 kB
{ "contractName": "IRealitio", "abi": [ { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "history_hashes", "type": "bytes32[]" }, { "name": "addrs", "type": "address[]" }, { "name": "bonds", "type": "uint256[]" }, { "name": "answers", "type": "bytes32[]" } ], "name": "claimWinnings", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "content_hash", "type": "bytes32" }, { "name": "arbitrator", "type": "address" }, { "name": "min_timeout", "type": "uint32" }, { "name": "min_bond", "type": "uint256" } ], "name": "getFinalAnswerIfMatches", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getBounty", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getArbitrator", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getBond", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_ids", "type": "bytes32[]" }, { "name": "lengths", "type": "uint256[]" }, { "name": "hist_hashes", "type": "bytes32[]" }, { "name": "addrs", "type": "address[]" }, { "name": "bonds", "type": "uint256[]" }, { "name": "answers", "type": "bytes32[]" } ], "name": "claimMultipleAndWithdrawBalance", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "answer", "type": "bytes32" }, { "name": "nonce", "type": "uint256" }, { "name": "bond", "type": "uint256" } ], "name": "submitAnswerReveal", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "fee", "type": "uint256" } ], "name": "setQuestionFee", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "template_hashes", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getContentHash", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "bytes32" } ], "name": "question_claims", "outputs": [ { "name": "payee", "type": "address" }, { "name": "last_bond", "type": "uint256" }, { "name": "queued_funds", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "fundAnswerBounty", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "arbitrator_question_fees", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "template_id", "type": "uint256" }, { "name": "question", "type": "string" }, { "name": "arbitrator", "type": "address" }, { "name": "timeout", "type": "uint32" }, { "name": "opening_ts", "type": "uint32" }, { "name": "nonce", "type": "uint256" } ], "name": "askQuestion", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "answer", "type": "bytes32" }, { "name": "max_previous", "type": "uint256" } ], "name": "submitAnswer", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "isFinalized", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getHistoryHash", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "bytes32" } ], "name": "commitments", "outputs": [ { "name": "reveal_ts", "type": "uint32" }, { "name": "is_revealed", "type": "bool" }, { "name": "revealed_answer", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "content", "type": "string" } ], "name": "createTemplate", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getBestAnswer", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "isPendingArbitration", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "bytes32" } ], "name": "questions", "outputs": [ { "name": "content_hash", "type": "bytes32" }, { "name": "arbitrator", "type": "address" }, { "name": "opening_ts", "type": "uint32" }, { "name": "timeout", "type": "uint32" }, { "name": "finalize_ts", "type": "uint32" }, { "name": "is_pending_arbitration", "type": "bool" }, { "name": "bounty", "type": "uint256" }, { "name": "best_answer", "type": "bytes32" }, { "name": "history_hash", "type": "bytes32" }, { "name": "bond", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getOpeningTS", "outputs": [ { "name": "", "type": "uint32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getTimeout", "outputs": [ { "name": "", "type": "uint32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "content", "type": "string" }, { "name": "question", "type": "string" }, { "name": "arbitrator", "type": "address" }, { "name": "timeout", "type": "uint32" }, { "name": "opening_ts", "type": "uint32" }, { "name": "nonce", "type": "uint256" } ], "name": "createTemplateAndAskQuestion", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getFinalAnswer", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "getFinalizeTS", "outputs": [ { "name": "", "type": "uint32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "templates", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "resultFor", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "answer_hash", "type": "bytes32" }, { "name": "max_previous", "type": "uint256" }, { "name": "_answerer", "type": "address" } ], "name": "submitAnswerCommitment", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "requester", "type": "address" }, { "name": "max_previous", "type": "uint256" } ], "name": "notifyOfArbitrationRequest", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "answer", "type": "bytes32" }, { "name": "answerer", "type": "address" } ], "name": "submitAnswerByArbitrator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" }, { "name": "answer", "type": "bytes32" }, { "name": "payee_if_wrong", "type": "address" }, { "name": "last_history_hash", "type": "bytes32" }, { "name": "last_answer_or_commitment_id", "type": "bytes32" }, { "name": "last_answerer", "type": "address" } ], "name": "assignWinnerAndSubmitAnswerByArbitrator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "question_id", "type": "bytes32" } ], "name": "cancelArbitration", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.25;\n\ninterface IRealitio {\n function claimWinnings ( bytes32 question_id, bytes32[] history_hashes, address[] addrs, uint256[] bonds, bytes32[] answers ) external;\n function getFinalAnswerIfMatches ( bytes32 question_id, bytes32 content_hash, address arbitrator, uint32 min_timeout, uint256 min_bond ) external view returns ( bytes32 );\n function getBounty ( bytes32 question_id ) external view returns ( uint256 );\n function getArbitrator ( bytes32 question_id ) external view returns ( address );\n function getBond ( bytes32 question_id ) external view returns ( uint256 );\n function claimMultipleAndWithdrawBalance ( bytes32[] question_ids, uint256[] lengths, bytes32[] hist_hashes, address[] addrs, uint256[] bonds, bytes32[] answers ) external;\n function withdraw ( ) external;\n function submitAnswerReveal ( bytes32 question_id, bytes32 answer, uint256 nonce, uint256 bond ) external;\n function setQuestionFee ( uint256 fee ) external;\n function template_hashes ( uint256 ) external view returns ( bytes32 );\n function getContentHash ( bytes32 question_id ) external view returns ( bytes32 );\n function question_claims ( bytes32 ) external view returns ( address payee, uint256 last_bond, uint256 queued_funds );\n function fundAnswerBounty ( bytes32 question_id ) external payable;\n function arbitrator_question_fees ( address ) external view returns ( uint256 );\n function balanceOf ( address ) external view returns ( uint256 );\n function askQuestion ( uint256 template_id, string question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce ) external payable returns ( bytes32 );\n function submitAnswer ( bytes32 question_id, bytes32 answer, uint256 max_previous ) external payable;\n function isFinalized ( bytes32 question_id ) external view returns ( bool );\n function getHistoryHash ( bytes32 question_id ) external view returns ( bytes32 );\n function commitments ( bytes32 ) external view returns ( uint32 reveal_ts, bool is_revealed, bytes32 revealed_answer );\n function createTemplate ( string content ) external returns ( uint256 );\n function getBestAnswer ( bytes32 question_id ) external view returns ( bytes32 );\n function isPendingArbitration ( bytes32 question_id ) external view returns ( bool );\n function questions ( bytes32 ) external view returns ( bytes32 content_hash, address arbitrator, uint32 opening_ts, uint32 timeout, uint32 finalize_ts, bool is_pending_arbitration, uint256 bounty, bytes32 best_answer, bytes32 history_hash, uint256 bond );\n function getOpeningTS ( bytes32 question_id ) external view returns ( uint32 );\n function getTimeout ( bytes32 question_id ) external view returns ( uint32 );\n function createTemplateAndAskQuestion ( string content, string question, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce ) external payable returns ( bytes32 );\n function getFinalAnswer ( bytes32 question_id ) external view returns ( bytes32 );\n function getFinalizeTS ( bytes32 question_id ) external view returns ( uint32 );\n function templates ( uint256 ) external view returns ( uint256 );\n function resultFor ( bytes32 question_id ) external view returns ( bytes32 );\n function submitAnswerCommitment ( bytes32 question_id, bytes32 answer_hash, uint256 max_previous, address _answerer ) external payable;\n function notifyOfArbitrationRequest ( bytes32 question_id, address requester, uint256 max_previous ) external;\n function submitAnswerByArbitrator ( bytes32 question_id, bytes32 answer, address answerer ) external;\n function assignWinnerAndSubmitAnswerByArbitrator( bytes32 question_id, bytes32 answer, address payee_if_wrong, bytes32 last_history_hash, bytes32 last_answer_or_commitment_id, address last_answerer ) external;\n function cancelArbitration(bytes32 question_id) external; // Only available from v2.1\n}\n\n", "sourcePath": "/home/ed/working/realitio-contracts/truffle/contracts/IRealitio.sol", "ast": { "absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IRealitio.sol", "exportedSymbols": { "IRealitio": [ 1710 ] }, "id": 1711, "nodeType": "SourceUnit", "nodes": [ { "id": 1367, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:10" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1710, "linearizedBaseContracts": [ 1710 ], "name": "IRealitio", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1384, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "claimWinnings", "nodeType": "FunctionDefinition", "parameters": { "id": 1382, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1369, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1384, "src": "75:19:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1368, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "75:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1372, "name": "history_hashes", "nodeType": "VariableDeclaration", "scope": 1384, "src": "96:24:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1370, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "96:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1371, "length": null, "nodeType": "ArrayTypeName", "src": "96:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1375, "name": "addrs", "nodeType": "VariableDeclaration", "scope": 1384, "src": "122:15:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1373, "name": "address", "nodeType": "ElementaryTypeName", "src": "122:7:10", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1374, "length": null, "nodeType": "ArrayTypeName", "src": "122:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1378, "name": "bonds", "nodeType": "VariableDeclaration", "scope": 1384, "src": "139:15:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1376, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "139:7:10", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1377, "length": null, "nodeType": "ArrayTypeName", "src": "139:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1381, "name": "answers", "nodeType": "VariableDeclaration", "scope": 1384, "src": "156:17:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1379, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "156:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1380, "length": null, "nodeType": "ArrayTypeName", "src": "156:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" } ], "src": "73:102:10" }, "payable": false, "returnParameters": { "id": 1383, "nodeType": "ParameterList", "parameters": [], "src": "184:0:10" }, "scope": 1710, "src": "50:135:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1399, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getFinalAnswerIfMatches", "nodeType": "FunctionDefinition", "parameters": { "id": 1395, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1386, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1399, "src": "223:19:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1385, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "223:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1388, "name": "content_hash", "nodeType": "VariableDeclaration", "scope": 1399, "src": "244:20:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1387, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "244:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1390, "name": "arbitrator", "nodeType": "VariableDeclaration", "scope": 1399, "src": "266:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1389, "name": "address", "nodeType": "ElementaryTypeName", "src": "266:7:10", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1392, "name": "min_timeout", "nodeType": "VariableDeclaration", "scope": 1399, "src": "286:18:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 1391, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "286:6:10", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1394, "name": "min_bond", "nodeType": "VariableDeclaration", "scope": 1399, "src": "306:16:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1393, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "306:7:10", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "221:103:10" }, "payable": false, "returnParameters": { "id": 1398, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1397, "name": "", "nodeType": "VariableDeclaration", "scope": 1399, "src": "349:7:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1396, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "349:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "347:11:10" }, "scope": 1710, "src": "188:171:10", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1406, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getBounty", "nodeType": "FunctionDefinition", "parameters": { "id": 1402, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1401, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1406, "src": "383:19:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1400, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "383:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "381:23:10" }, "payable": false, "returnParameters": { "id": 1405, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1404, "name": "", "nodeType": "VariableDeclaration", "scope": 1406, "src": "429:7:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1403, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "429:7:10", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "427:11:10" }, "scope": 1710, "src": "362:77:10", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1413, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getArbitrator", "nodeType": "FunctionDefinition", "parameters": { "id": 1409, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1408, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1413, "src": "467:19:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1407, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "467:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "465:23:10" }, "payable": false, "returnParameters": { "id": 1412, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1411, "name": "", "nodeType": "VariableDeclaration", "scope": 1413, "src": "513:7:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1410, "name": "address", "nodeType": "ElementaryTypeName", "src": "513:7:10", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "511:11:10" }, "scope": 1710, "src": "442:81:10", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1420, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getBond", "nodeType": "FunctionDefinition", "parameters": { "id": 1416, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1415, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1420, "src": "545:19:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1414, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "545:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "543:23:10" }, "payable": false, "returnParameters": { "id": 1419, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1418, "name": "", "nodeType": "VariableDeclaration", "scope": 1420, "src": "591:7:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1417, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "591:7:10", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "589:11:10" }, "scope": 1710, "src": "526:75:10", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1441, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "claimMultipleAndWithdrawBalance", "nodeType": "FunctionDefinition", "parameters": { "id": 1439, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1423, "name": "question_ids", "nodeType": "VariableDeclaration", "scope": 1441, "src": "647:22:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1421, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "647:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1422, "length": null, "nodeType": "ArrayTypeName", "src": "647:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1426, "name": "lengths", "nodeType": "VariableDeclaration", "scope": 1441, "src": "671:17:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1424, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "671:7:10", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1425, "length": null, "nodeType": "ArrayTypeName", "src": "671:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1429, "name": "hist_hashes", "nodeType": "VariableDeclaration", "scope": 1441, "src": "690:21:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1427, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "690:7:10", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1428, "length": null, "nodeType": "ArrayTypeName", "src": "690:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1432, "name": "addrs", "nodeType": "VariableDeclaration", "scope": 1441, "src": "713:15:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1430, "name": "address", "nodeType": "ElementaryTypeName", "src": "713:7:10", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1431, "length": null, "nodeType": "ArrayTypeName", "src": "713:9:10", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null,