UNPKG

@josojo/realitytoken-contracts

Version:
1,161 lines 45.4 kB
{ "contractName": "BalanceHolder", "abi": [ { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "user", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "LogWithdraw", "type": "event" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b50610160806100206000396000f30060806040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633ccfd60b811461005057806370a0823114610067575b600080fd5b34801561005c57600080fd5b506100656100a7565b005b34801561007357600080fd5b5061009573ffffffffffffffffffffffffffffffffffffffff60043516610122565b60408051918252519081900360200190f35b33600081815260208190526040808220805490839055905190929183156108fc02918491818181858888f193505050501580156100e8573d6000803e3d6000fd5b5060408051828152905133917f4ce7033d118120e254016dccf195288400b28fc8936425acd5f17ce2df3ab708919081900360200190a250565b600060208190529081526040902054815600a165627a7a72305820fdb694b7ecb661692eb8e2561df519b4629903a078c01fa93841bd7db8d4ce0c0029", "deployedBytecode": "0x60806040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633ccfd60b811461005057806370a0823114610067575b600080fd5b34801561005c57600080fd5b506100656100a7565b005b34801561007357600080fd5b5061009573ffffffffffffffffffffffffffffffffffffffff60043516610122565b60408051918252519081900360200190f35b33600081815260208190526040808220805490839055905190929183156108fc02918491818181858888f193505050501580156100e8573d6000803e3d6000fd5b5060408051828152905133917f4ce7033d118120e254016dccf195288400b28fc8936425acd5f17ce2df3ab708919081900360200190a250565b600060208190529081526040902054815600a165627a7a72305820fdb694b7ecb661692eb8e2561df519b4629903a078c01fa93841bd7db8d4ce0c0029", "sourceMap": "26:364:20:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:364:20;;;;;;;", "deployedSourceMap": "26:364:20:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;191:196;;8:9:-1;5:2;;;30:1;27;20:12;5:2;191:196:20;;;;;;56:44;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56:44:20;;;;;;;;;;;;;;;;;;;;;;;191:196;257:10;233:11;247:21;;;;;;;;;;;;;278:25;;;;313:24;;247:21;;257:10;313:24;;;;;247:21;;313:24;233:11;313:24;247:21;257:10;313:24;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;352:28:20;;;;;;;;364:10;;352:28;;;;;;;;;;191:196;:::o;56:44::-;;;;;;;;;;;;;;:::o", "source": "pragma solidity ^0.4.18;\n\ncontract BalanceHolder {\n\n mapping(address => uint256) public balanceOf;\n\n event LogWithdraw(\n address indexed user,\n uint256 amount\n );\n\n function withdraw() \n public {\n uint256 bal = balanceOf[msg.sender];\n balanceOf[msg.sender] = 0;\n msg.sender.transfer(bal);\n emit LogWithdraw(msg.sender, bal);\n }\n\n}\n", "sourcePath": "@realitio/realitio-contracts/truffle/contracts/BalanceHolder.sol", "ast": { "absolutePath": "@realitio/realitio-contracts/truffle/contracts/BalanceHolder.sol", "exportedSymbols": { "BalanceHolder": [ 6928 ] }, "id": 6929, "nodeType": "SourceUnit", "nodes": [ { "id": 6885, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:20" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6928, "linearizedBaseContracts": [ 6928 ], "name": "BalanceHolder", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6889, "name": "balanceOf", "nodeType": "VariableDeclaration", "scope": 6928, "src": "56:44:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "typeName": { "id": 6888, "keyType": { "id": 6886, "name": "address", "nodeType": "ElementaryTypeName", "src": "64:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "56:27:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { "id": 6887, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "75:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 6895, "name": "LogWithdraw", "nodeType": "EventDefinition", "parameters": { "id": 6894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6891, "indexed": true, "name": "user", "nodeType": "VariableDeclaration", "scope": 6895, "src": "134:20:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6890, "name": "address", "nodeType": "ElementaryTypeName", "src": "134:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6893, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 6895, "src": "164:14:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6892, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "124:60:20" }, "src": "107:78:20" }, { "body": { "id": 6926, "nodeType": "Block", "src": "223:164:20", "statements": [ { "assignments": [ 6899 ], "declarations": [ { "constant": false, "id": 6899, "name": "bal", "nodeType": "VariableDeclaration", "scope": 6927, "src": "233:11:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6898, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "233:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 6904, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6900, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6889, "src": "247:9:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 6903, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6901, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "257:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6902, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "257:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "247:21:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "233:35:20" }, { "expression": { "argumentTypes": null, "id": 6910, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6905, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6889, "src": "278:9:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 6908, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6906, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "288:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6907, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "288:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "278:21:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 6909, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "302:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "278:25:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 6911, "nodeType": "ExpressionStatement", "src": "278:25:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6917, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6899, "src": "333:3:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6912, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "313:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6915, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 6916, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:19:20", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 6918, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "313:24:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6919, "nodeType": "ExpressionStatement", "src": "313:24:20" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6921, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "364:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6922, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "364:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 6923, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6899, "src": "376:3:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 6920, "name": "LogWithdraw", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6895, "src": "352:11:20", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 6924, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "352:28:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6925, "nodeType": "EmitStatement", "src": "347:33:20" } ] }, "documentation": null, "id": 6927, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "parameters": { "id": 6896, "nodeType": "ParameterList", "parameters": [], "src": "208:2:20" }, "payable": false, "returnParameters": { "id": 6897, "nodeType": "ParameterList", "parameters": [], "src": "223:0:20" }, "scope": 6928, "src": "191:196:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6929, "src": "26:364:20" } ], "src": "0:391:20" }, "legacyAST": { "absolutePath": "@realitio/realitio-contracts/truffle/contracts/BalanceHolder.sol", "exportedSymbols": { "BalanceHolder": [ 6928 ] }, "id": 6929, "nodeType": "SourceUnit", "nodes": [ { "id": 6885, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:20" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6928, "linearizedBaseContracts": [ 6928 ], "name": "BalanceHolder", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6889, "name": "balanceOf", "nodeType": "VariableDeclaration", "scope": 6928, "src": "56:44:20", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "typeName": { "id": 6888, "keyType": { "id": 6886, "name": "address", "nodeType": "ElementaryTypeName", "src": "64:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "56:27:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { "id": 6887, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "75:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 6895, "name": "LogWithdraw", "nodeType": "EventDefinition", "parameters": { "id": 6894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6891, "indexed": true, "name": "user", "nodeType": "VariableDeclaration", "scope": 6895, "src": "134:20:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6890, "name": "address", "nodeType": "ElementaryTypeName", "src": "134:7:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6893, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 6895, "src": "164:14:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6892, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "124:60:20" }, "src": "107:78:20" }, { "body": { "id": 6926, "nodeType": "Block", "src": "223:164:20", "statements": [ { "assignments": [ 6899 ], "declarations": [ { "constant": false, "id": 6899, "name": "bal", "nodeType": "VariableDeclaration", "scope": 6927, "src": "233:11:20", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6898, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "233:7:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 6904, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6900, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6889, "src": "247:9:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 6903, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6901, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "257:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6902, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "257:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "247:21:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "233:35:20" }, { "expression": { "argumentTypes": null, "id": 6910, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6905, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6889, "src": "278:9:20", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 6908, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6906, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "288:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6907, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "288:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "278:21:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 6909, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "302:1:20", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "278:25:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 6911, "nodeType": "ExpressionStatement", "src": "278:25:20" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6917, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6899, "src": "333:3:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6912, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "313:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6915, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 6916, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:19:20", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 6918, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "313:24:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6919, "nodeType": "ExpressionStatement", "src": "313:24:20" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6921, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9180, "src": "364:3:20", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6922, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "364:10:20", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 6923, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6899, "src": "376:3:20", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 6920, "name": "LogWithdraw", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6895, "src": "352:11:20", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 6924, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "352:28:20", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6925, "nodeType": "EmitStatement", "src": "347:33:20" } ] }, "documentation": null, "id": 6927, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "parameters": { "id": 6896, "nodeType": "ParameterList", "parameters": [], "src": "208:2:20" }, "payable": false, "returnParameters": { "id": 6897, "nodeType": "ParameterList", "parameters": [], "src": "223:0:20" }, "scope": 6928, "src": "191:196:20", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6929, "src": "26:364:20" } ], "src": "0:391:20" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-27T21:23:29.118Z" }