@reality.eth/contracts
Version:
Collection of smart contracts for the Realitio fact verification platform
8,757 lines • 299 kB
JSON
{
"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"
}
},
"id": 1274,
"length": null,
"nodeType": "ArrayTypeName",
"src": "730:9:8",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1278,
"name": "answers",
"nodeType": "VariableDeclaration",
"scope": 1281,
"src": "747:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 1276,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "747:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 1277,
"length": null,
"nodeType": "ArrayTypeName",
"src": "747:9:8",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "645:121:8"
},
"payable": false,
"returnParameters": {
"id": 1280,
"nodeType": "ParameterList",
"parameters": [],
"src": "775:0:8"
},
"scope": 1535,
"src": "604:172:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1284,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1282,
"nodeType": "ParameterList",
"parameters": [],
"src": "797:4:8"
},
"payable": false,
"returnParameters": {
"id": 1283,
"nodeType": "ParameterList",
"parameters": [],
"src": "810:0:8"
},
"scope": 1535,
"src": "779:32:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1295,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerReveal",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1293,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1286,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "844:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1285,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "844:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1288,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "865:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1287,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "865:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1290,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "881:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1289,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "881:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1292,
"name": "bond",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "896:12:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1291,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "896:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "842:68:8"
},
"payable": false,
"returnParameters": {
"id": 1294,
"nodeType": "ParameterList",
"parameters": [],
"src": "919:0:8"
},
"scope": 1535,
"src": "814:106:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1300,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setQuestionFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1298,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1297,
"name": "fee",
"nodeType": "VariableDeclaration",
"scope": 1300,
"src": "949:11:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1296,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "949:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "947:15:8"
},
"payable": false,
"returnParameters": {
"id": 1299,
"nodeType": "ParameterList",
"parameters": [],
"src": "971:0:8"
},
"scope": 1535,
"src": "923:49:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1307,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "template_hashes",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1303,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1302,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1307,
"src": "1002:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1301,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1002:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1000:11:8"
},
"payable": false,
"returnParameters": {
"id": 1306,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1305,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1307,
"src": "1036:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1304,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1036:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1034:11:8"
},
"scope": 1535,
"src": "975:71:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1314,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getContentHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1310,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1309,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1314,
"src": "1075:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1308,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1075:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1073:23:8"
},
"payable": false,
"returnParameters": {
"id": 1313,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1312,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1314,
"src": "1121:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1311,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1121:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1119:11:8"
},
"scope": 1535,
"src": "1049:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1325,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "question_claims",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1317,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1316,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1161:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1315,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1161:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1159:11:8"
},
"payable": false,
"returnParameters": {
"id": 1324,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1319,
"name": "payee",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1195:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1318,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1195:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1321,
"name": "last_bond",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1210:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1320,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1210:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1323,
"name": "queued_funds",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1229:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1322,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1229:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1193:58:8"
},
"scope": 1535,
"src": "1134:118:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1330,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "fundAnswerBounty",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1328,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1327,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1330,
"src": "1283:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1326,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1283:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1281:23:8"
},
"payable": true,
"returnParameters": {
"id": 1329,
"nodeType": "ParameterList",
"parameters": [],
"src": "1321:0:8"
},
"scope": 1535,
"src": "1255:67:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1337,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "arbitrator_question_fees",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1333,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1332,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1337,
"src": "1361:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1331,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1361:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1359:11:8"
},
"payable": false,
"returnParameters": {
"id": 1336,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1335,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1337,
"src": "1395:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1334,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1395:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1393:11:8"
},
"scope": 1535,
"src": "1325:80:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1344,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1340,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1339,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1344,
"src": "1429:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1338,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1429:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1427:11:8"
},
"payable": false,
"returnParameters": {
"id": 1343,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1342,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1344,
"src": "1463:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1341,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1463:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1461:11:8"
},
"scope": 1535,
"src": "1408:65:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1361,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "askQuestion",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1357,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1346,
"name": "template_id",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1499:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1345,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1499:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1348,
"name": "question",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1520:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1347,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1520:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1350,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1537:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1349,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1537:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1352,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1557:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1351,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1557:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1354,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1573:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1353,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1573:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1356,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1592:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1355,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1592:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1497:110:8"
},
"payable": true,
"returnParameters": {
"id": 1360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1359,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1635:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1358,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1635:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1633:11:8"
},
"scope": 1535,
"src": "1476:169:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1370,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1368,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1363,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1672:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1362,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1672:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1365,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1693:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1364,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1693:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1367,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1709:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1366,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1709:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1670:61:8"
},
"payable": true,
"returnParameters": {
"id": 1369,
"nodeType": "ParameterList",
"parameters": [],
"src": "1748:0:8"
},
"scope": 1535,
"src": "1648:101:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1377,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isFinalized",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1373,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1372,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1377,
"src": "1775:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1371,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1775:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1773:23:8"
},
"payable": false,
"returnParameters": {
"id": 1376,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1375,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1377,
"src": "1821:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1374,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1821:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1819:8:8"
},
"scope": 1535,
"src": "1752:76:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1384,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getHistoryHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1380,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1379,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1384,
"src": "1857:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1378,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1857:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1855:23:8"
},
"payable": false,
"returnParameters": {
"id": 1383,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1382,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1384,
"src": "1903:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1381,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1903:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1901:11:8"
},
"scope": 1535,
"src": "1831:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1395,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "commitments",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1387,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1386,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1939:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1385,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1939:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1937:11:8"
},
"payable": false,
"returnParameters": {
"id": 1394,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1389,
"name": "reveal_ts",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1973:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1388,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1973:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1391,
"name": "is_revealed",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1991:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1390,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1991:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1393,
"name": "revealed_answer",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "2009:23:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1392,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2009:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1971:63:8"
},
"scope": 1535,
"src": "1916:119:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1402,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createTemplate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1398,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1397,
"name": "content",
"nodeType": "VariableDeclaration",
"scope": 1402,
"src": "2064:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1396,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2064:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2062:18:8"
},
"payable": false,
"returnParameters": {
"id": 1401,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1400,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1402,
"src": "2100:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1399,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2100:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2098:11:8"
},
"scope": 1535,
"src": "2038:72:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1409,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getBestAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1405,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1404,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1409,
"src": "2138:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1403,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2138:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2136:23:8"
},
"payable": false,
"returnParameters": {
"id": 1408,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1407,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1409,
"src": "2184:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1406,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2184:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2182:11:8"
},
"scope": 1535,
"src": "2113:81:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1416,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isPendingArbitration",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1412,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1411,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1416,
"src": "2229:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1410,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2229:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2227:23:8"
},
"payable": false,
"returnParameters": {
"id": 1415,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1414,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1416,
"src": "2275:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1413,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2275:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2273:8:8"
},
"scope": 1535,
"src": "2197:85:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1441,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "questions",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1419,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1418,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2306:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1417,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2306:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2304:11:8"
},
"payable": false,
"returnParameters": {
"id": 1440,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1421,
"name": "content_hash",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2340:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1420,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2340:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1423,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2362:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2362:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1425,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2382:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1424,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2382:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1427,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2401:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1426,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2401:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1429,
"name": "finalize_ts",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2417:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1428,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2417:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1431,
"name": "is_pending_arbitration",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2437:27:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1430,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2437:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1433,
"name": "bounty",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2466:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1432,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2466:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1435,
"name": "best_answer",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2482:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1434,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2482:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1437,
"name": "history_hash",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2503:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1436,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2503:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1439,
"name": "bond",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2525:12:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1438,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2525:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2338:201:8"
},
"scope": 1535,
"src": "2285:255:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1448,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getOpeningTS",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1443,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1448,
"src": "2567:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1442,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2567:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2565:23:8"
},
"payable": false,
"returnParameters": {
"id": 1447,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1446,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1448,
"src": "2613:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1445,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2613:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2611:10:8"
},
"scope": 1535,
"src": "2543:79:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1455,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTimeout",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1451,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1450,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1455,
"src": "2647:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1449,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2647:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2645:23:8"
},
"payable": false,
"returnParameters": {
"id": 1454,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1453,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1455,
"src": "2693:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1452,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2693:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2691:10:8"
},
"scope": 1535,
"src": "2625:77:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1472,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createTemplateAndAskQuestion",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1468,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1457,
"name": "content",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2745:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1456,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2745:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1459,
"name": "question",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2761:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1458,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2761:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1461,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2778:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1460,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2778:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1463,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2798:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1462,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2798:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1465,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2814:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1464,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2814:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1467,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2833:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1466,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2833:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2743:105:8"
},
"payable": true,
"returnParameters": {
"id": 1471,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1470,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2876:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1469,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2876:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2874:11:8"
},
"scope": 1535,
"src": "2705:181:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1479,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getFinalAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1475,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1474,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1479,
"src": "2915:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1473,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2915:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2913:23:8"
},
"payable": false,
"returnParameters": {
"id": 1478,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1477,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1479,
"src": "2961:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1476,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2961:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2959:11:8"
},
"scope": 1535,
"src": "2889:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1486,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getFinalizeTS",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1482,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1481,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1486,
"src": "2999:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1480,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2999:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2997:23:8"
},
"payable": false,
"returnParameters": {
"id": 1485,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1484,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1486,
"src": "3045:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1483,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "3045:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3043:10:8"
},
"scope": 1535,
"src": "2974:80:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1493,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "templates",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1489,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1488,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1493,
"src": "3078:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1487,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3078:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3076:11:8"
},
"payable": false,
"returnParameters": {
"id": 1492,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1491,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1493,
"src": "3112:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1490,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3112:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3110:11:8"
},
"scope": 1535,
"src": "3057:65:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1500,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "resultFor",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1496,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1495,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1500,
"src": "3146:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1494,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3146:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3144:23:8"
},
"payable": false,
"returnParameters": {
"id": 1499,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1498,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1500,
"src": "3192:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1497,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3192:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3190:11:8"
},
"scope": 1535,
"src": "3125:77:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1511,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerCommitment",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1509,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1502,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3239:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1501,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3239:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1504,
"name": "answer_hash",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3260:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1503,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3260:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1506,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3281:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1505,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3281:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1508,
"name": "_answerer",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3303:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1507,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3303:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3237:85:8"
},
"payable": true,
"returnParameters": {
"id": 1510,
"nodeType": "ParameterList",
"parameters": [],
"src": "3339:0:8"
},
"scope": 1535,
"src": "3205:135:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1520,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "notifyOfArbitrationRequest",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1518,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1513,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3381:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1512,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3381:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1515,
"name": "requester",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3402:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1514,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3402:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1517,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3421:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1516,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3421:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3379:64:8"
},
"payable": false,
"returnParameters": {
"id": 1519,
"nodeType": "ParameterList",
"parameters": [],
"src": "3452:0:8"
},
"scope": 1535,
"src": "3343:110:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1529,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerByArbitrator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1527,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1522,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3492:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1521,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3492:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1524,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3513:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1523,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3513:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1526,
"name": "answerer",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3529:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1525,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3529:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3490:57:8"
},
"payable": false,
"returnParameters": {
"id": 1528,
"nodeType": "ParameterList",
"parameters": [],
"src": "3556:0:8"
},
"scope": 1535,
"src": "3456:101:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1534,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "cancelArbitration",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1532,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1531,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1534,
"src": "3587:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1530,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3587:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3586:21:8"
},
"payable": false,
"returnParameters": {
"id": 1533,
"nodeType": "ParameterList",
"parameters": [],
"src": "3616:0:8"
},
"scope": 1535,
"src": "3560:57:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1536,
"src": "26:3621:8"
}
],
"src": "0:3649:8"
},
"legacyAST": {
"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"
}
},
"id": 1274,
"length": null,
"nodeType": "ArrayTypeName",
"src": "730:9:8",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1278,
"name": "answers",
"nodeType": "VariableDeclaration",
"scope": 1281,
"src": "747:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 1276,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "747:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 1277,
"length": null,
"nodeType": "ArrayTypeName",
"src": "747:9:8",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "645:121:8"
},
"payable": false,
"returnParameters": {
"id": 1280,
"nodeType": "ParameterList",
"parameters": [],
"src": "775:0:8"
},
"scope": 1535,
"src": "604:172:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1284,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1282,
"nodeType": "ParameterList",
"parameters": [],
"src": "797:4:8"
},
"payable": false,
"returnParameters": {
"id": 1283,
"nodeType": "ParameterList",
"parameters": [],
"src": "810:0:8"
},
"scope": 1535,
"src": "779:32:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1295,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerReveal",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1293,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1286,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "844:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1285,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "844:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1288,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "865:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1287,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "865:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1290,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "881:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1289,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "881:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1292,
"name": "bond",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "896:12:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1291,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "896:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "842:68:8"
},
"payable": false,
"returnParameters": {
"id": 1294,
"nodeType": "ParameterList",
"parameters": [],
"src": "919:0:8"
},
"scope": 1535,
"src": "814:106:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1300,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setQuestionFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1298,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1297,
"name": "fee",
"nodeType": "VariableDeclaration",
"scope": 1300,
"src": "949:11:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1296,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "949:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "947:15:8"
},
"payable": false,
"returnParameters": {
"id": 1299,
"nodeType": "ParameterList",
"parameters": [],
"src": "971:0:8"
},
"scope": 1535,
"src": "923:49:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1307,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "template_hashes",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1303,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1302,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1307,
"src": "1002:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1301,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1002:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1000:11:8"
},
"payable": false,
"returnParameters": {
"id": 1306,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1305,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1307,
"src": "1036:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1304,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1036:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1034:11:8"
},
"scope": 1535,
"src": "975:71:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1314,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getContentHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1310,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1309,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1314,
"src": "1075:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1308,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1075:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1073:23:8"
},
"payable": false,
"returnParameters": {
"id": 1313,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1312,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1314,
"src": "1121:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1311,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1121:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1119:11:8"
},
"scope": 1535,
"src": "1049:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1325,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "question_claims",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1317,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1316,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1161:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1315,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1161:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1159:11:8"
},
"payable": false,
"returnParameters": {
"id": 1324,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1319,
"name": "payee",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1195:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1318,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1195:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1321,
"name": "last_bond",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1210:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1320,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1210:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1323,
"name": "queued_funds",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "1229:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1322,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1229:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1193:58:8"
},
"scope": 1535,
"src": "1134:118:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1330,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "fundAnswerBounty",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1328,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1327,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1330,
"src": "1283:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1326,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1283:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1281:23:8"
},
"payable": true,
"returnParameters": {
"id": 1329,
"nodeType": "ParameterList",
"parameters": [],
"src": "1321:0:8"
},
"scope": 1535,
"src": "1255:67:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1337,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "arbitrator_question_fees",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1333,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1332,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1337,
"src": "1361:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1331,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1361:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1359:11:8"
},
"payable": false,
"returnParameters": {
"id": 1336,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1335,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1337,
"src": "1395:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1334,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1395:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1393:11:8"
},
"scope": 1535,
"src": "1325:80:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1344,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1340,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1339,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1344,
"src": "1429:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1338,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1429:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1427:11:8"
},
"payable": false,
"returnParameters": {
"id": 1343,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1342,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1344,
"src": "1463:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1341,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1463:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1461:11:8"
},
"scope": 1535,
"src": "1408:65:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1361,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "askQuestion",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1357,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1346,
"name": "template_id",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1499:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1345,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1499:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1348,
"name": "question",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1520:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1347,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1520:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1350,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1537:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1349,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1537:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1352,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1557:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1351,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1557:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1354,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1573:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1353,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1573:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1356,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1592:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1355,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1592:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1497:110:8"
},
"payable": true,
"returnParameters": {
"id": 1360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1359,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "1635:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1358,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1635:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1633:11:8"
},
"scope": 1535,
"src": "1476:169:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1370,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1368,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1363,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1672:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1362,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1672:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1365,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1693:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1364,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1693:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1367,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1370,
"src": "1709:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1366,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1709:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1670:61:8"
},
"payable": true,
"returnParameters": {
"id": 1369,
"nodeType": "ParameterList",
"parameters": [],
"src": "1748:0:8"
},
"scope": 1535,
"src": "1648:101:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1377,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isFinalized",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1373,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1372,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1377,
"src": "1775:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1371,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1775:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1773:23:8"
},
"payable": false,
"returnParameters": {
"id": 1376,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1375,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1377,
"src": "1821:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1374,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1821:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1819:8:8"
},
"scope": 1535,
"src": "1752:76:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1384,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getHistoryHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1380,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1379,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1384,
"src": "1857:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1378,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1857:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1855:23:8"
},
"payable": false,
"returnParameters": {
"id": 1383,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1382,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1384,
"src": "1903:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1381,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1903:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1901:11:8"
},
"scope": 1535,
"src": "1831:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1395,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "commitments",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1387,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1386,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1939:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1385,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1939:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1937:11:8"
},
"payable": false,
"returnParameters": {
"id": 1394,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1389,
"name": "reveal_ts",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1973:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1388,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1973:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1391,
"name": "is_revealed",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "1991:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1390,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1991:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1393,
"name": "revealed_answer",
"nodeType": "VariableDeclaration",
"scope": 1395,
"src": "2009:23:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1392,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2009:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1971:63:8"
},
"scope": 1535,
"src": "1916:119:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1402,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createTemplate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1398,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1397,
"name": "content",
"nodeType": "VariableDeclaration",
"scope": 1402,
"src": "2064:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1396,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2064:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2062:18:8"
},
"payable": false,
"returnParameters": {
"id": 1401,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1400,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1402,
"src": "2100:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1399,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2100:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2098:11:8"
},
"scope": 1535,
"src": "2038:72:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1409,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getBestAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1405,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1404,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1409,
"src": "2138:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1403,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2138:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2136:23:8"
},
"payable": false,
"returnParameters": {
"id": 1408,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1407,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1409,
"src": "2184:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1406,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2184:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2182:11:8"
},
"scope": 1535,
"src": "2113:81:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1416,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isPendingArbitration",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1412,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1411,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1416,
"src": "2229:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1410,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2229:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2227:23:8"
},
"payable": false,
"returnParameters": {
"id": 1415,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1414,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1416,
"src": "2275:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1413,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2275:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2273:8:8"
},
"scope": 1535,
"src": "2197:85:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1441,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "questions",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1419,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1418,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2306:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1417,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2306:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2304:11:8"
},
"payable": false,
"returnParameters": {
"id": 1440,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1421,
"name": "content_hash",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2340:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1420,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2340:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1423,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2362:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2362:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1425,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2382:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1424,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2382:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1427,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2401:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1426,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2401:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1429,
"name": "finalize_ts",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2417:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1428,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2417:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1431,
"name": "is_pending_arbitration",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2437:27:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1430,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2437:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1433,
"name": "bounty",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2466:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1432,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2466:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1435,
"name": "best_answer",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2482:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1434,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2482:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1437,
"name": "history_hash",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2503:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1436,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2503:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1439,
"name": "bond",
"nodeType": "VariableDeclaration",
"scope": 1441,
"src": "2525:12:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1438,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2525:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2338:201:8"
},
"scope": 1535,
"src": "2285:255:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1448,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getOpeningTS",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1443,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1448,
"src": "2567:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1442,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2567:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2565:23:8"
},
"payable": false,
"returnParameters": {
"id": 1447,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1446,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1448,
"src": "2613:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1445,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2613:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2611:10:8"
},
"scope": 1535,
"src": "2543:79:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1455,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTimeout",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1451,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1450,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1455,
"src": "2647:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1449,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2647:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2645:23:8"
},
"payable": false,
"returnParameters": {
"id": 1454,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1453,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1455,
"src": "2693:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1452,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2693:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2691:10:8"
},
"scope": 1535,
"src": "2625:77:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1472,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "createTemplateAndAskQuestion",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1468,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1457,
"name": "content",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2745:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1456,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2745:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1459,
"name": "question",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2761:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1458,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2761:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1461,
"name": "arbitrator",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2778:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1460,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2778:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1463,
"name": "timeout",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2798:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1462,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2798:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1465,
"name": "opening_ts",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2814:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1464,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2814:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1467,
"name": "nonce",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2833:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1466,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2833:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2743:105:8"
},
"payable": true,
"returnParameters": {
"id": 1471,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1470,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1472,
"src": "2876:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1469,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2876:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2874:11:8"
},
"scope": 1535,
"src": "2705:181:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1479,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getFinalAnswer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1475,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1474,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1479,
"src": "2915:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1473,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2915:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2913:23:8"
},
"payable": false,
"returnParameters": {
"id": 1478,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1477,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1479,
"src": "2961:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1476,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2961:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2959:11:8"
},
"scope": 1535,
"src": "2889:82:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1486,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getFinalizeTS",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1482,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1481,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1486,
"src": "2999:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1480,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2999:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2997:23:8"
},
"payable": false,
"returnParameters": {
"id": 1485,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1484,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1486,
"src": "3045:6:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 1483,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "3045:6:8",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3043:10:8"
},
"scope": 1535,
"src": "2974:80:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1493,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "templates",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1489,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1488,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1493,
"src": "3078:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1487,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3078:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3076:11:8"
},
"payable": false,
"returnParameters": {
"id": 1492,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1491,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1493,
"src": "3112:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1490,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3112:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3110:11:8"
},
"scope": 1535,
"src": "3057:65:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1500,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "resultFor",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1496,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1495,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1500,
"src": "3146:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1494,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3146:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3144:23:8"
},
"payable": false,
"returnParameters": {
"id": 1499,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1498,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1500,
"src": "3192:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1497,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3192:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3190:11:8"
},
"scope": 1535,
"src": "3125:77:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1511,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerCommitment",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1509,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1502,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3239:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1501,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3239:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1504,
"name": "answer_hash",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3260:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1503,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3260:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1506,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3281:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1505,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3281:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1508,
"name": "_answerer",
"nodeType": "VariableDeclaration",
"scope": 1511,
"src": "3303:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1507,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3303:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3237:85:8"
},
"payable": true,
"returnParameters": {
"id": 1510,
"nodeType": "ParameterList",
"parameters": [],
"src": "3339:0:8"
},
"scope": 1535,
"src": "3205:135:8",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1520,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "notifyOfArbitrationRequest",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1518,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1513,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3381:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1512,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3381:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1515,
"name": "requester",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3402:17:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1514,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3402:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1517,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1520,
"src": "3421:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1516,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3421:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3379:64:8"
},
"payable": false,
"returnParameters": {
"id": 1519,
"nodeType": "ParameterList",
"parameters": [],
"src": "3452:0:8"
},
"scope": 1535,
"src": "3343:110:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1529,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerByArbitrator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1527,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1522,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3492:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1521,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3492:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1524,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3513:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1523,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3513:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1526,
"name": "answerer",
"nodeType": "VariableDeclaration",
"scope": 1529,
"src": "3529:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1525,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3529:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3490:57:8"
},
"payable": false,
"returnParameters": {
"id": 1528,
"nodeType": "ParameterList",
"parameters": [],
"src": "3556:0:8"
},
"scope": 1535,
"src": "3456:101:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1534,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "cancelArbitration",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1532,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1531,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1534,
"src": "3587:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1530,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3587:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3586:21:8"
},
"payable": false,
"returnParameters": {
"id": 1533,
"nodeType": "ParameterList",
"parameters": [],
"src": "3616:0:8"
},
"scope": 1535,
"src": "3560:57:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1536,
"src": "26:3621:8"
}
],
"src": "0:3649:8"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang",
"optimizer": true,
"runs": 200
},
"networks": {},
"schemaVersion": "2.3.3",
"updatedAt": "2020-09-23T03:29:26.045Z"
}