@realitio/realitio-contracts
Version:
Collection of smart contracts for the Realitio fact verification platform
354 lines • 10.4 kB
JSON
{
"contractName": "IBalanceHolder",
"abi": [
{
"constant": false,
"inputs": [],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.25;\n\ninterface IBalanceHolder {\n function withdraw ( ) external;\n function balanceOf ( address ) external view returns ( uint256 );\n}\n",
"sourcePath": "/home/ed/working/realitio-contracts/truffle/contracts/IBalanceHolder.sol",
"ast": {
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IBalanceHolder.sol",
"exportedSymbols": {
"IBalanceHolder": [
1283
]
},
"id": 1284,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1272,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1283,
"linearizedBaseContracts": [
1283
],
"name": "IBalanceHolder",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1275,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1273,
"nodeType": "ParameterList",
"parameters": [],
"src": "73:4:7"
},
"payable": false,
"returnParameters": {
"id": 1274,
"nodeType": "ParameterList",
"parameters": [],
"src": "86:0:7"
},
"scope": 1283,
"src": "55:32:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1282,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1278,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1277,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1282,
"src": "111:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1276,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "111:7:7",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "109:11:7"
},
"payable": false,
"returnParameters": {
"id": 1281,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1280,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1282,
"src": "145:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1279,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "145:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "143:11:7"
},
"scope": 1283,
"src": "90:65:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1284,
"src": "26:131:7"
}
],
"src": "0:158:7"
},
"legacyAST": {
"absolutePath": "/home/ed/working/realitio-contracts/truffle/contracts/IBalanceHolder.sol",
"exportedSymbols": {
"IBalanceHolder": [
1283
]
},
"id": 1284,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1272,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1283,
"linearizedBaseContracts": [
1283
],
"name": "IBalanceHolder",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1275,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1273,
"nodeType": "ParameterList",
"parameters": [],
"src": "73:4:7"
},
"payable": false,
"returnParameters": {
"id": 1274,
"nodeType": "ParameterList",
"parameters": [],
"src": "86:0:7"
},
"scope": 1283,
"src": "55:32:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1282,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1278,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1277,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1282,
"src": "111:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1276,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "111:7:7",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "109:11:7"
},
"payable": false,
"returnParameters": {
"id": 1281,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1280,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1282,
"src": "145:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1279,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "145:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "143:11:7"
},
"scope": 1283,
"src": "90:65:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1284,
"src": "26:131:7"
}
],
"src": "0:158:7"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang",
"optimizer": false,
"runs": 200
},
"networks": {},
"schemaVersion": "2.3.3",
"updatedAt": "2021-01-13T02:23:04.456Z"
}