@josojo/tokenized-events
Version:
tokenized events for pm markets
1,161 lines • 45.4 kB
JSON
{
"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:16:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:364:16;;;;;;;",
"deployedSourceMap": "26:364:16:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;191:196;;8:9:-1;5:2;;;30:1;27;20:12;5:2;191:196:16;;;;;;56:44;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56:44:16;;;;;;;;;;;;;;;;;;;;;;;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:16;;;;;;;;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": [
6271
]
},
"id": 6272,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6228,
"literals": [
"solidity",
"^",
"0.4",
".18"
],
"nodeType": "PragmaDirective",
"src": "0:24:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6271,
"linearizedBaseContracts": [
6271
],
"name": "BalanceHolder",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 6232,
"name": "balanceOf",
"nodeType": "VariableDeclaration",
"scope": 6271,
"src": "56:44:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
"id": 6231,
"keyType": {
"id": 6229,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "64:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "56:27:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 6230,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "75:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 6238,
"name": "LogWithdraw",
"nodeType": "EventDefinition",
"parameters": {
"id": 6237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6234,
"indexed": true,
"name": "user",
"nodeType": "VariableDeclaration",
"scope": 6238,
"src": "134:20:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6233,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "134:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6236,
"indexed": false,
"name": "amount",
"nodeType": "VariableDeclaration",
"scope": 6238,
"src": "164:14:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6235,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "164:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "124:60:16"
},
"src": "107:78:16"
},
{
"body": {
"id": 6269,
"nodeType": "Block",
"src": "223:164:16",
"statements": [
{
"assignments": [
6242
],
"declarations": [
{
"constant": false,
"id": 6242,
"name": "bal",
"nodeType": "VariableDeclaration",
"scope": 6270,
"src": "233:11:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6241,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "233:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 6247,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6243,
"name": "balanceOf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6232,
"src": "247:9:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 6246,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6244,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "257:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6245,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "257:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "247:21:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "233:35:16"
},
{
"expression": {
"argumentTypes": null,
"id": 6253,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6248,
"name": "balanceOf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6232,
"src": "278:9:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 6251,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6249,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "288:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6250,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "288:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "278:21:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 6252,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "302:1:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "278:25:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6254,
"nodeType": "ExpressionStatement",
"src": "278:25:16"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6260,
"name": "bal",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6242,
"src": "333:3:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6255,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "313:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6258,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "313:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6259,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "313:19:16",
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 6261,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "313:24:16",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6262,
"nodeType": "ExpressionStatement",
"src": "313:24:16"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6264,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "364:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6265,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "364:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 6266,
"name": "bal",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6242,
"src": "376:3:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6263,
"name": "LogWithdraw",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6238,
"src": "352:11:16",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 6267,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "352:28:16",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6268,
"nodeType": "EmitStatement",
"src": "347:33:16"
}
]
},
"documentation": null,
"id": 6270,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6239,
"nodeType": "ParameterList",
"parameters": [],
"src": "208:2:16"
},
"payable": false,
"returnParameters": {
"id": 6240,
"nodeType": "ParameterList",
"parameters": [],
"src": "223:0:16"
},
"scope": 6271,
"src": "191:196:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 6272,
"src": "26:364:16"
}
],
"src": "0:391:16"
},
"legacyAST": {
"absolutePath": "@realitio/realitio-contracts/truffle/contracts/BalanceHolder.sol",
"exportedSymbols": {
"BalanceHolder": [
6271
]
},
"id": 6272,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6228,
"literals": [
"solidity",
"^",
"0.4",
".18"
],
"nodeType": "PragmaDirective",
"src": "0:24:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6271,
"linearizedBaseContracts": [
6271
],
"name": "BalanceHolder",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 6232,
"name": "balanceOf",
"nodeType": "VariableDeclaration",
"scope": 6271,
"src": "56:44:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
"id": 6231,
"keyType": {
"id": 6229,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "64:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "56:27:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
"id": 6230,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "75:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 6238,
"name": "LogWithdraw",
"nodeType": "EventDefinition",
"parameters": {
"id": 6237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6234,
"indexed": true,
"name": "user",
"nodeType": "VariableDeclaration",
"scope": 6238,
"src": "134:20:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6233,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "134:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6236,
"indexed": false,
"name": "amount",
"nodeType": "VariableDeclaration",
"scope": 6238,
"src": "164:14:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6235,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "164:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "124:60:16"
},
"src": "107:78:16"
},
{
"body": {
"id": 6269,
"nodeType": "Block",
"src": "223:164:16",
"statements": [
{
"assignments": [
6242
],
"declarations": [
{
"constant": false,
"id": 6242,
"name": "bal",
"nodeType": "VariableDeclaration",
"scope": 6270,
"src": "233:11:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6241,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "233:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 6247,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6243,
"name": "balanceOf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6232,
"src": "247:9:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 6246,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6244,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "257:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6245,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "257:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "247:21:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "233:35:16"
},
{
"expression": {
"argumentTypes": null,
"id": 6253,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6248,
"name": "balanceOf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6232,
"src": "278:9:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
"id": 6251,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6249,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "288:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6250,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "288:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "278:21:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "30",
"id": 6252,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "302:1:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "278:25:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6254,
"nodeType": "ExpressionStatement",
"src": "278:25:16"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6260,
"name": "bal",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6242,
"src": "333:3:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6255,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "313:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6258,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "313:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6259,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "313:19:16",
"typeDescriptions": {
"typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 6261,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "313:24:16",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6262,
"nodeType": "ExpressionStatement",
"src": "313:24:16"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6264,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8523,
"src": "364:3:16",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 6265,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "364:10:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 6266,
"name": "bal",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6242,
"src": "376:3:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6263,
"name": "LogWithdraw",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6238,
"src": "352:11:16",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 6267,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "352:28:16",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6268,
"nodeType": "EmitStatement",
"src": "347:33:16"
}
]
},
"documentation": null,
"id": 6270,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6239,
"nodeType": "ParameterList",
"parameters": [],
"src": "208:2:16"
},
"payable": false,
"returnParameters": {
"id": 6240,
"nodeType": "ParameterList",
"parameters": [],
"src": "223:0:16"
},
"scope": 6271,
"src": "191:196:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 6272,
"src": "26:364:16"
}
],
"src": "0:391:16"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.0-beta.1",
"updatedAt": "2018-11-11T16:30:48.207Z"
}