UNPKG

@reality.eth/contracts

Version:

Collection of smart contracts for the Realitio fact verification platform

1,660 lines (1,659 loc) 299 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": "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 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": [ 1535 ] }, "id": 1536, "nodeType": "SourceUnit", "nodes": [ { "id": 1207, "literals": [ "solidity", "^", "0.4", ".25" ], "nodeType": "PragmaDirective", "src": "0:24:8" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1535, "linearizedBaseContracts": [ 1535 ], "name": "IRealitio", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1224, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "claimWinnings", "nodeType": "FunctionDefinition", "parameters": { "id": 1222, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1209, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1224, "src": "75:19:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1208, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "75:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1212, "name": "history_hashes", "nodeType": "VariableDeclaration", "scope": 1224, "src": "96:24:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1210, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "96:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1211, "length": null, "nodeType": "ArrayTypeName", "src": "96:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1215, "name": "addrs", "nodeType": "VariableDeclaration", "scope": 1224, "src": "122:15:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1213, "name": "address", "nodeType": "ElementaryTypeName", "src": "122:7:8", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1214, "length": null, "nodeType": "ArrayTypeName", "src": "122:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1218, "name": "bonds", "nodeType": "VariableDeclaration", "scope": 1224, "src": "139:15:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1216, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "139:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1217, "length": null, "nodeType": "ArrayTypeName", "src": "139:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1221, "name": "answers", "nodeType": "VariableDeclaration", "scope": 1224, "src": "156:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1219, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "156:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1220, "length": null, "nodeType": "ArrayTypeName", "src": "156:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" } ], "src": "73:102:8" }, "payable": false, "returnParameters": { "id": 1223, "nodeType": "ParameterList", "parameters": [], "src": "184:0:8" }, "scope": 1535, "src": "50:135:8", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1239, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getFinalAnswerIfMatches", "nodeType": "FunctionDefinition", "parameters": { "id": 1235, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1226, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1239, "src": "223:19:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1225, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "223:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1228, "name": "content_hash", "nodeType": "VariableDeclaration", "scope": 1239, "src": "244:20:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1227, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "244:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1230, "name": "arbitrator", "nodeType": "VariableDeclaration", "scope": 1239, "src": "266:18:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1229, "name": "address", "nodeType": "ElementaryTypeName", "src": "266:7:8", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1232, "name": "min_timeout", "nodeType": "VariableDeclaration", "scope": 1239, "src": "286:18:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 1231, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "286:6:8", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1234, "name": "min_bond", "nodeType": "VariableDeclaration", "scope": 1239, "src": "306:16:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1233, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "306:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "221:103:8" }, "payable": false, "returnParameters": { "id": 1238, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1237, "name": "", "nodeType": "VariableDeclaration", "scope": 1239, "src": "349:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1236, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "349:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "347:11:8" }, "scope": 1535, "src": "188:171:8", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1246, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getBounty", "nodeType": "FunctionDefinition", "parameters": { "id": 1242, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1241, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1246, "src": "383:19:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1240, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "383:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "381:23:8" }, "payable": false, "returnParameters": { "id": 1245, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1244, "name": "", "nodeType": "VariableDeclaration", "scope": 1246, "src": "429:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1243, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "429:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "427:11:8" }, "scope": 1535, "src": "362:77:8", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1253, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getArbitrator", "nodeType": "FunctionDefinition", "parameters": { "id": 1249, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1248, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1253, "src": "467:19:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1247, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "467:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "465:23:8" }, "payable": false, "returnParameters": { "id": 1252, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1251, "name": "", "nodeType": "VariableDeclaration", "scope": 1253, "src": "513:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1250, "name": "address", "nodeType": "ElementaryTypeName", "src": "513:7:8", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "511:11:8" }, "scope": 1535, "src": "442:81:8", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1260, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "getBond", "nodeType": "FunctionDefinition", "parameters": { "id": 1256, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1255, "name": "question_id", "nodeType": "VariableDeclaration", "scope": 1260, "src": "545:19:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1254, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "545:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "543:23:8" }, "payable": false, "returnParameters": { "id": 1259, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1258, "name": "", "nodeType": "VariableDeclaration", "scope": 1260, "src": "591:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1257, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "591:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "589:11:8" }, "scope": 1535, "src": "526:75:8", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1281, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "claimMultipleAndWithdrawBalance", "nodeType": "FunctionDefinition", "parameters": { "id": 1279, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1263, "name": "question_ids", "nodeType": "VariableDeclaration", "scope": 1281, "src": "647:22:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1261, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "647:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1262, "length": null, "nodeType": "ArrayTypeName", "src": "647:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1266, "name": "lengths", "nodeType": "VariableDeclaration", "scope": 1281, "src": "671:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1264, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "671:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1265, "length": null, "nodeType": "ArrayTypeName", "src": "671:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1269, "name": "hist_hashes", "nodeType": "VariableDeclaration", "scope": 1281, "src": "690:21:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1267, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "690:7:8", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1268, "length": null, "nodeType": "ArrayTypeName", "src": "690:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1272, "name": "addrs", "nodeType": "VariableDeclaration", "scope": 1281, "src": "713:15:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1270, "name": "address", "nodeType": "ElementaryTypeName", "src": "713:7:8", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1271, "length": null, "nodeType": "ArrayTypeName", "src": "713:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1275, "name": "bonds", "nodeType": "VariableDeclaration", "scope": 1281, "src": "730:15:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1273, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "730:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } },