UNPKG

@gooddollar/goodcontracts

Version:
1,510 lines 62.3 kB
{ "contractName": "IERC20", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "spender", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "who", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "owner", "type": "address" }, { "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "metadata": "", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.0;\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ninterface IERC20 {\n function transfer(address to, uint256 value) external returns (bool);\n\n function approve(address spender, uint256 value) external returns (bool);\n\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n\n function totalSupply() external view returns (uint256);\n\n function balanceOf(address who) external view returns (uint256);\n\n function allowance(address owner, address spender) external view returns (uint256);\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n", "sourcePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ 16748 ] }, "id": 16749, "nodeType": "SourceUnit", "nodes": [ { "id": 16681, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:74" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 16748, "linearizedBaseContracts": [ 16748 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 16690, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 16686, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16683, "name": "to", "nodeType": "VariableDeclaration", "scope": 16690, "src": "155:10:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16682, "name": "address", "nodeType": "ElementaryTypeName", "src": "155:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16685, "name": "value", "nodeType": "VariableDeclaration", "scope": 16690, "src": "167:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16684, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "167:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "154:27:74" }, "returnParameters": { "id": 16689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16688, "name": "", "nodeType": "VariableDeclaration", "scope": 16690, "src": "200:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16687, "name": "bool", "nodeType": "ElementaryTypeName", "src": "200:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "199:6:74" }, "scope": 16748, "src": "137:69:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16699, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 16695, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16692, "name": "spender", "nodeType": "VariableDeclaration", "scope": 16699, "src": "229:15:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16691, "name": "address", "nodeType": "ElementaryTypeName", "src": "229:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16694, "name": "value", "nodeType": "VariableDeclaration", "scope": 16699, "src": "246:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16693, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "246:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "228:32:74" }, "returnParameters": { "id": 16698, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16697, "name": "", "nodeType": "VariableDeclaration", "scope": 16699, "src": "279:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16696, "name": "bool", "nodeType": "ElementaryTypeName", "src": "279:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "278:6:74" }, "scope": 16748, "src": "212:73:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16710, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 16706, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16701, "name": "from", "nodeType": "VariableDeclaration", "scope": 16710, "src": "313:12:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16700, "name": "address", "nodeType": "ElementaryTypeName", "src": "313:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16703, "name": "to", "nodeType": "VariableDeclaration", "scope": 16710, "src": "327:10:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16702, "name": "address", "nodeType": "ElementaryTypeName", "src": "327:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16705, "name": "value", "nodeType": "VariableDeclaration", "scope": 16710, "src": "339:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16704, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "339:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "312:41:74" }, "returnParameters": { "id": 16709, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16708, "name": "", "nodeType": "VariableDeclaration", "scope": 16710, "src": "372:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16707, "name": "bool", "nodeType": "ElementaryTypeName", "src": "372:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "371:6:74" }, "scope": 16748, "src": "291:87:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16715, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 16711, "nodeType": "ParameterList", "parameters": [], "src": "404:2:74" }, "returnParameters": { "id": 16714, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16713, "name": "", "nodeType": "VariableDeclaration", "scope": 16715, "src": "430:7:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16712, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "430:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "429:9:74" }, "scope": 16748, "src": "384:55:74", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16722, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 16718, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16717, "name": "who", "nodeType": "VariableDeclaration", "scope": 16722, "src": "464:11:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16716, "name": "address", "nodeType": "ElementaryTypeName", "src": "464:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "463:13:74" }, "returnParameters": { "id": 16721, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16720, "name": "", "nodeType": "VariableDeclaration", "scope": 16722, "src": "500:7:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16719, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "500:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "499:9:74" }, "scope": 16748, "src": "445:64:74", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16731, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 16727, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16724, "name": "owner", "nodeType": "VariableDeclaration", "scope": 16731, "src": "534:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16723, "name": "address", "nodeType": "ElementaryTypeName", "src": "534:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16726, "name": "spender", "nodeType": "VariableDeclaration", "scope": 16731, "src": "549:15:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16725, "name": "address", "nodeType": "ElementaryTypeName", "src": "549:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "533:32:74" }, "returnParameters": { "id": 16730, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16729, "name": "", "nodeType": "VariableDeclaration", "scope": 16731, "src": "589:7:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16728, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "589:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "588:9:74" }, "scope": 16748, "src": "515:83:74", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "anonymous": false, "documentation": null, "id": 16739, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 16738, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16733, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 16739, "src": "619:20:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16732, "name": "address", "nodeType": "ElementaryTypeName", "src": "619:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16735, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 16739, "src": "641:18:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16734, "name": "address", "nodeType": "ElementaryTypeName", "src": "641:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16737, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 16739, "src": "661:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16736, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "661:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "618:57:74" }, "src": "604:72:74" }, { "anonymous": false, "documentation": null, "id": 16747, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 16746, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16741, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 16747, "src": "697:21:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16740, "name": "address", "nodeType": "ElementaryTypeName", "src": "697:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16743, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 16747, "src": "720:23:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16742, "name": "address", "nodeType": "ElementaryTypeName", "src": "720:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16745, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 16747, "src": "745:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16744, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "745:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "696:63:74" }, "src": "682:78:74" } ], "scope": 16749, "src": "114:648:74" } ], "src": "0:763:74" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ 16748 ] }, "id": 16749, "nodeType": "SourceUnit", "nodes": [ { "id": 16681, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:74" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 16748, "linearizedBaseContracts": [ 16748 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 16690, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 16686, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16683, "name": "to", "nodeType": "VariableDeclaration", "scope": 16690, "src": "155:10:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16682, "name": "address", "nodeType": "ElementaryTypeName", "src": "155:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16685, "name": "value", "nodeType": "VariableDeclaration", "scope": 16690, "src": "167:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16684, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "167:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "154:27:74" }, "returnParameters": { "id": 16689, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16688, "name": "", "nodeType": "VariableDeclaration", "scope": 16690, "src": "200:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16687, "name": "bool", "nodeType": "ElementaryTypeName", "src": "200:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "199:6:74" }, "scope": 16748, "src": "137:69:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16699, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 16695, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16692, "name": "spender", "nodeType": "VariableDeclaration", "scope": 16699, "src": "229:15:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16691, "name": "address", "nodeType": "ElementaryTypeName", "src": "229:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16694, "name": "value", "nodeType": "VariableDeclaration", "scope": 16699, "src": "246:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16693, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "246:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "228:32:74" }, "returnParameters": { "id": 16698, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16697, "name": "", "nodeType": "VariableDeclaration", "scope": 16699, "src": "279:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16696, "name": "bool", "nodeType": "ElementaryTypeName", "src": "279:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "278:6:74" }, "scope": 16748, "src": "212:73:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16710, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 16706, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16701, "name": "from", "nodeType": "VariableDeclaration", "scope": 16710, "src": "313:12:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16700, "name": "address", "nodeType": "ElementaryTypeName", "src": "313:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16703, "name": "to", "nodeType": "VariableDeclaration", "scope": 16710, "src": "327:10:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16702, "name": "address", "nodeType": "ElementaryTypeName", "src": "327:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 16705, "name": "value", "nodeType": "VariableDeclaration", "scope": 16710, "src": "339:13:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16704, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "339:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "312:41:74" }, "returnParameters": { "id": 16709, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16708, "name": "", "nodeType": "VariableDeclaration", "scope": 16710, "src": "372:4:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 16707, "name": "bool", "nodeType": "ElementaryTypeName", "src": "372:4:74", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "371:6:74" }, "scope": 16748, "src": "291:87:74", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16715, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 16711, "nodeType": "ParameterList", "parameters": [], "src": "404:2:74" }, "returnParameters": { "id": 16714, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16713, "name": "", "nodeType": "VariableDeclaration", "scope": 16715, "src": "430:7:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 16712, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "430:7:74", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "429:9:74" }, "scope": 16748, "src": "384:55:74", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 16722, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 16718, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16717, "name": "who", "nodeType": "VariableDeclaration", "scope": 16722, "src": "464:11:74", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 16716, "name": "address", "nodeType": "ElementaryTypeName", "src": "464:7:74", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "463:13:74" }, "returnParameters": { "id": 16721, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 16720, "name": "", "nodeType": "VariableDeclaration", "scope": 16722, "src": "500:7:74"