UNPKG

@josojo/forkonomics-contracts

Version:
1,161 lines 45.3 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:6:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:364:6;;;;;;;", "deployedSourceMap": "26:364:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;191:196;;8:9:-1;5:2;;;30:1;27;20:12;5:2;191:196:6;;;;;;56:44;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56:44:6;;;;;;;;;;;;;;;;;;;;;;;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:6;;;;;;;;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": [ 2723 ] }, "id": 2724, "nodeType": "SourceUnit", "nodes": [ { "id": 2680, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2723, "linearizedBaseContracts": [ 2723 ], "name": "BalanceHolder", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2684, "name": "balanceOf", "nodeType": "VariableDeclaration", "scope": 2723, "src": "56:44:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "typeName": { "id": 2683, "keyType": { "id": 2681, "name": "address", "nodeType": "ElementaryTypeName", "src": "64:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "56:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { "id": 2682, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "75:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 2690, "name": "LogWithdraw", "nodeType": "EventDefinition", "parameters": { "id": 2689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2686, "indexed": true, "name": "user", "nodeType": "VariableDeclaration", "scope": 2690, "src": "134:20:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2685, "name": "address", "nodeType": "ElementaryTypeName", "src": "134:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2688, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 2690, "src": "164:14:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2687, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "124:60:6" }, "src": "107:78:6" }, { "body": { "id": 2721, "nodeType": "Block", "src": "223:164:6", "statements": [ { "assignments": [ 2694 ], "declarations": [ { "constant": false, "id": 2694, "name": "bal", "nodeType": "VariableDeclaration", "scope": 2722, "src": "233:11:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2693, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "233:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2699, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2695, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2684, "src": "247:9:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 2698, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2696, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "257:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2697, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "257:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "247:21:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "233:35:6" }, { "expression": { "argumentTypes": null, "id": 2705, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2700, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2684, "src": "278:9:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 2703, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2701, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "288:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2702, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "288:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "278:21:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 2704, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "302:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "278:25:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2706, "nodeType": "ExpressionStatement", "src": "278:25:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2712, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2694, "src": "333:3:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2707, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "313:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2710, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:19:6", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 2713, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "313:24:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2714, "nodeType": "ExpressionStatement", "src": "313:24:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2716, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "364:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2717, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "364:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2718, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2694, "src": "376:3:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 2715, "name": "LogWithdraw", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2690, "src": "352:11:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 2719, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "352:28:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2720, "nodeType": "EmitStatement", "src": "347:33:6" } ] }, "documentation": null, "id": 2722, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "parameters": { "id": 2691, "nodeType": "ParameterList", "parameters": [], "src": "208:2:6" }, "payable": false, "returnParameters": { "id": 2692, "nodeType": "ParameterList", "parameters": [], "src": "223:0:6" }, "scope": 2723, "src": "191:196:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 2724, "src": "26:364:6" } ], "src": "0:391:6" }, "legacyAST": { "absolutePath": "@realitio/realitio-contracts/truffle/contracts/BalanceHolder.sol", "exportedSymbols": { "BalanceHolder": [ 2723 ] }, "id": 2724, "nodeType": "SourceUnit", "nodes": [ { "id": 2680, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2723, "linearizedBaseContracts": [ 2723 ], "name": "BalanceHolder", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 2684, "name": "balanceOf", "nodeType": "VariableDeclaration", "scope": 2723, "src": "56:44:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "typeName": { "id": 2683, "keyType": { "id": 2681, "name": "address", "nodeType": "ElementaryTypeName", "src": "64:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "56:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { "id": 2682, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "75:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 2690, "name": "LogWithdraw", "nodeType": "EventDefinition", "parameters": { "id": 2689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2686, "indexed": true, "name": "user", "nodeType": "VariableDeclaration", "scope": 2690, "src": "134:20:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2685, "name": "address", "nodeType": "ElementaryTypeName", "src": "134:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2688, "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", "scope": 2690, "src": "164:14:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2687, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "164:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "124:60:6" }, "src": "107:78:6" }, { "body": { "id": 2721, "nodeType": "Block", "src": "223:164:6", "statements": [ { "assignments": [ 2694 ], "declarations": [ { "constant": false, "id": 2694, "name": "bal", "nodeType": "VariableDeclaration", "scope": 2722, "src": "233:11:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2693, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "233:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 2699, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2695, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2684, "src": "247:9:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 2698, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2696, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "257:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2697, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "257:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "247:21:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "233:35:6" }, { "expression": { "argumentTypes": null, "id": 2705, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 2700, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2684, "src": "278:9:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 2703, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2701, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "288:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2702, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "288:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "278:21:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 2704, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "302:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "278:25:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2706, "nodeType": "ExpressionStatement", "src": "278:25:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 2712, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2694, "src": "333:3:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2707, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "313:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2710, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 2711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "313:19:6", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 2713, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "313:24:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2714, "nodeType": "ExpressionStatement", "src": "313:24:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2716, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5393, "src": "364:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2717, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "364:10:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 2718, "name": "bal", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2694, "src": "376:3:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 2715, "name": "LogWithdraw", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2690, "src": "352:11:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 2719, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "352:28:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2720, "nodeType": "EmitStatement", "src": "347:33:6" } ] }, "documentation": null, "id": 2722, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "parameters": { "id": 2691, "nodeType": "ParameterList", "parameters": [], "src": "208:2:6" }, "payable": false, "returnParameters": { "id": 2692, "nodeType": "ParameterList", "parameters": [], "src": "223:0:6" }, "scope": 2723, "src": "191:196:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 2724, "src": "26:364:6" } ], "src": "0:391:6" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.0-beta.1", "updatedAt": "2018-10-27T11:24:32.609Z" }