@realitio/realitio-contracts
Version:
Collection of smart contracts for the Realitio fact verification platform
1,571 lines (1,570 loc) • 92.8 kB
JSON
{
"contractName": "IArbitrator",
"abi": [
{
"constant": true,
"inputs": [],
"name": "metadata",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
}
],
"name": "arbitration_bounties",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "realitio",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "realitycheck",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "setRealitio",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "fee",
"type": "uint256"
}
],
"name": "setDisputeFee",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "question_id",
"type": "bytes32"
},
{
"name": "fee",
"type": "uint256"
}
],
"name": "setCustomDisputeFee",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "question_id",
"type": "bytes32"
}
],
"name": "getDisputeFee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "fee",
"type": "uint256"
}
],
"name": "setQuestionFee",
"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": "max_previous",
"type": "uint256"
}
],
"name": "requestArbitration",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_token",
"type": "address"
},
{
"name": "addr",
"type": "address"
}
],
"name": "withdrawERC20",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "callWithdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_metadata",
"type": "string"
}
],
"name": "setMetaData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "foreignProxy",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "foreignChainId",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.25;\n\nimport './IRealitio.sol';\nimport './IERC20.sol';\nimport './IOwned.sol';\n\ninterface IArbitrator {\n function metadata ( ) external view returns ( string );\n function owner ( ) external view returns ( address );\n function arbitration_bounties ( bytes32 ) external view returns ( uint256 );\n function realitio ( ) external view returns ( IRealitio );\n function realitycheck ( ) external view returns ( IRealitio );\n function setRealitio ( address addr ) external;\n function setDisputeFee ( uint256 fee ) external;\n function setCustomDisputeFee ( bytes32 question_id, uint256 fee ) external;\n function getDisputeFee ( bytes32 question_id ) external view returns ( uint256 );\n function setQuestionFee ( uint256 fee ) external;\n function submitAnswerByArbitrator ( bytes32 question_id, bytes32 answer, address answerer ) external;\n function requestArbitration ( bytes32 question_id, uint256 max_previous ) external payable returns ( bool );\n function withdraw ( address addr ) external;\n function withdrawERC20 ( IERC20 _token, address addr ) external;\n function callWithdraw ( ) external;\n function setMetaData ( string _metadata ) external;\n function foreignProxy() external returns (address);\n function foreignChainId() external returns (uint256);\n}\n\n",
"sourcePath": "/home/ed/working/realitio-contracts/truffle/contracts/IArbitrator.sol",
"ast": {
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IArbitrator.sol",
"exportedSymbols": {
"IArbitrator": [
1270
]
},
"id": 1271,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1162,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:6"
},
{
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IRealitio.sol",
"file": "./IRealitio.sol",
"id": 1163,
"nodeType": "ImportDirective",
"scope": 1271,
"sourceUnit": 1711,
"src": "26:25:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IERC20.sol",
"file": "./IERC20.sol",
"id": 1164,
"nodeType": "ImportDirective",
"scope": 1271,
"sourceUnit": 1353,
"src": "52:22:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IOwned.sol",
"file": "./IOwned.sol",
"id": 1165,
"nodeType": "ImportDirective",
"scope": 1271,
"sourceUnit": 1366,
"src": "75:22:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1270,
"linearizedBaseContracts": [
1270
],
"name": "IArbitrator",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1170,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "metadata",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1166,
"nodeType": "ParameterList",
"parameters": [],
"src": "143:4:6"
},
"payable": false,
"returnParameters": {
"id": 1169,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1168,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1170,
"src": "172:6:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1167,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "172:6:6",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "170:10:6"
},
"scope": 1270,
"src": "125:56:6",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1175,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "owner",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1171,
"nodeType": "ParameterList",
"parameters": [],
"src": "199:4:6"
},
"payable": false,
"returnParameters": {
"id": 1174,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1173,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1175,
"src": "228:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1172,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "228:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "226:11:6"
},
"scope": 1270,
"src": "184:54:6",
"stateMutability": "view",
"superFunction": 1359,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1182,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "arbitration_bounties",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1178,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1177,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1182,
"src": "273:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1176,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "273:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "271:11:6"
},
"payable": false,
"returnParameters": {
"id": 1181,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1180,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1182,
"src": "307:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1179,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "307:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "305:11:6"
},
"scope": 1270,
"src": "241:76:6",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1187,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "realitio",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1183,
"nodeType": "ParameterList",
"parameters": [],
"src": "338:4:6"
},
"payable": false,
"returnParameters": {
"id": 1186,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1185,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1187,
"src": "367:9:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRealitio_$1710",
"typeString": "contract IRealitio"
},
"typeName": {
"contractScope": null,
"id": 1184,
"name": "IRealitio",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1710,
"src": "367:9:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRealitio_$1710",
"typeString": "contract IRealitio"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "365:13:6"
},
"scope": 1270,
"src": "320:59:6",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1192,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "realitycheck",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1188,
"nodeType": "ParameterList",
"parameters": [],
"src": "404:4:6"
},
"payable": false,
"returnParameters": {
"id": 1191,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1190,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1192,
"src": "433:9:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRealitio_$1710",
"typeString": "contract IRealitio"
},
"typeName": {
"contractScope": null,
"id": 1189,
"name": "IRealitio",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1710,
"src": "433:9:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRealitio_$1710",
"typeString": "contract IRealitio"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "431:13:6"
},
"scope": 1270,
"src": "382:63:6",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1197,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setRealitio",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1195,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1194,
"name": "addr",
"nodeType": "VariableDeclaration",
"scope": 1197,
"src": "471:12:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1193,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "471:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "469:16:6"
},
"payable": false,
"returnParameters": {
"id": 1196,
"nodeType": "ParameterList",
"parameters": [],
"src": "494:0:6"
},
"scope": 1270,
"src": "448:47:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1202,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setDisputeFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1200,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1199,
"name": "fee",
"nodeType": "VariableDeclaration",
"scope": 1202,
"src": "523:11:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1198,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "523:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "521:15:6"
},
"payable": false,
"returnParameters": {
"id": 1201,
"nodeType": "ParameterList",
"parameters": [],
"src": "545:0:6"
},
"scope": 1270,
"src": "498:48:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1209,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setCustomDisputeFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1207,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1204,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1209,
"src": "580:19:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1203,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "580:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1206,
"name": "fee",
"nodeType": "VariableDeclaration",
"scope": 1209,
"src": "601:11:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1205,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "601:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "578:36:6"
},
"payable": false,
"returnParameters": {
"id": 1208,
"nodeType": "ParameterList",
"parameters": [],
"src": "623:0:6"
},
"scope": 1270,
"src": "549:75:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1216,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getDisputeFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1212,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1211,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1216,
"src": "652:19:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1210,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "652:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "650:23:6"
},
"payable": false,
"returnParameters": {
"id": 1215,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1214,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1216,
"src": "698:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1213,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "698:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "696:11:6"
},
"scope": 1270,
"src": "627:81:6",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1221,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setQuestionFee",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1219,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1218,
"name": "fee",
"nodeType": "VariableDeclaration",
"scope": 1221,
"src": "737:11:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1217,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "737:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "735:15:6"
},
"payable": false,
"returnParameters": {
"id": 1220,
"nodeType": "ParameterList",
"parameters": [],
"src": "759:0:6"
},
"scope": 1270,
"src": "711:49:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1230,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "submitAnswerByArbitrator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1228,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1223,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1230,
"src": "799:19:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1222,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "799:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1225,
"name": "answer",
"nodeType": "VariableDeclaration",
"scope": 1230,
"src": "820:14:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1224,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "820:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1227,
"name": "answerer",
"nodeType": "VariableDeclaration",
"scope": 1230,
"src": "836:16:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1226,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "836:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "797:57:6"
},
"payable": false,
"returnParameters": {
"id": 1229,
"nodeType": "ParameterList",
"parameters": [],
"src": "863:0:6"
},
"scope": 1270,
"src": "763:101:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1239,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "requestArbitration",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1235,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1232,
"name": "question_id",
"nodeType": "VariableDeclaration",
"scope": 1239,
"src": "897:19:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1231,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "897:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1234,
"name": "max_previous",
"nodeType": "VariableDeclaration",
"scope": 1239,
"src": "918:20:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1233,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "918:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "895:45:6"
},
"payable": true,
"returnParameters": {
"id": 1238,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1237,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1239,
"src": "968:4:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1236,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "968:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "966:8:6"
},
"scope": 1270,
"src": "867:108:6",
"stateMutability": "payable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1244,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1242,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1241,
"name": "addr",
"nodeType": "VariableDeclaration",
"scope": 1244,
"src": "998:12:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1240,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "998:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "996:16:6"
},
"payable": false,
"returnParameters": {
"id": 1243,
"nodeType": "ParameterList",
"parameters": [],
"src": "1021:0:6"
},
"scope": 1270,
"src": "978:44:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1251,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdrawERC20",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1249,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1246,
"name": "_token",
"nodeType": "VariableDeclaration",
"scope": 1251,
"src": "1050:13:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$1352",
"typeString": "contract IERC20"
},
"typeName": {
"contractScope": null,
"id": 1245,
"name": "IERC20",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1352,
"src": "1050:6:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$1352",
"typeString": "contract IERC20"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1248,
"name": "addr",
"nodeType": "VariableDeclaration",
"scope": 1251,
"src": "1065:12:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1247,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1065:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1048:31:6"
},
"payable": false,
"returnParameters": {
"id": 1250,
"nodeType": "ParameterList",
"parameters": [],
"src": "1088:0:6"
},
"scope": 1270,
"src": "1025:64:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1254,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "callWithdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1252,
"nodeType": "ParameterList",
"parameters": [],
"src": "1114:4:6"
},
"payable": false,
"returnParameters": {
"id": 1253,
"nodeType": "ParameterList",
"parameters": [],
"src": "1127:0:6"
},
"scope": 1270,
"src": "1092:36:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1259,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setMetaData",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1257,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1256,
"name": "_metadata",
"nodeType": "VariableDeclaration",
"scope": 1259,
"src": "1154:16:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1255,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1154:6:6",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1152:20:6"
},
"payable": false,
"returnParameters": {
"id": 1258,
"nodeType": "ParameterList",
"parameters": [],
"src": "1181:0:6"
},
"scope": 1270,
"src": "1131:51:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1264,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "foreignProxy",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1260,
"nodeType": "ParameterList",
"parameters": [],
"src": "1206:2:6"
},
"payable": false,
"returnParameters": {
"id": 1263,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1262,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1264,
"src": "1227:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1261,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1227:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1226:9:6"
},
"scope": 1270,
"src": "1185:51:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1269,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "foreignChainId",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1265,
"nodeType": "ParameterList",
"parameters": [],
"src": "1262:2:6"
},
"payable": false,
"returnParameters": {
"id": 1268,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1267,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1269,
"src": "1283:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1266,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1283:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1282:9:6"
},
"scope": 1270,
"src": "1239:53:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1271,
"src": "99:1195:6"
}
],
"src": "0:1296:6"
},
"legacyAST": {
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IArbitrator.sol",
"exportedSymbols": {
"IArbitrator": [
1270
]