UNPKG

tokenboost-solidity-erc20token

Version:
1,237 lines 39.6 kB
{ "contractName": "ERC20", "abi": [ { "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": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "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" }, { "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" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "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": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address _owner, address _spender)\n public view returns (uint256);\n\n function transferFrom(address _from, address _to, uint256 _value)\n public returns (bool);\n\n function approve(address _spender, uint256 _value) public returns (bool);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}\n", "sourcePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "ast": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 4366 ] }, "id": 4367, "nodeType": "SourceUnit", "nodes": [ { "id": 4325, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:25" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 4326, "nodeType": "ImportDirective", "scope": 4367, "sourceUnit": 4399, "src": "26:26:25", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4327, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4398, "src": "162:10:25", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$4398", "typeString": "contract ERC20Basic" } }, "id": 4328, "nodeType": "InheritanceSpecifier", "src": "162:10:25" } ], "contractDependencies": [ 4398 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 4366, "linearizedBaseContracts": [ 4366, 4398 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 4337, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 4333, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4330, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 4337, "src": "196:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4329, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4332, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 4337, "src": "212:16:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4331, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:25" }, "payable": false, "returnParameters": { "id": 4336, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4335, "name": "", "nodeType": "VariableDeclaration", "scope": 4337, "src": "255:7:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4334, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:25" }, "scope": 4366, "src": "177:87:25", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 4348, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 4344, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4339, "name": "_from", "nodeType": "VariableDeclaration", "scope": 4348, "src": "290:13:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4338, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4341, "name": "_to", "nodeType": "VariableDeclaration", "scope": 4348, "src": "305:11:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4340, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4343, "name": "_value", "nodeType": "VariableDeclaration", "scope": 4348, "src": "318:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4342, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:25" }, "payable": false, "returnParameters": { "id": 4347, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4346, "name": "", "nodeType": "VariableDeclaration", "scope": 4348, "src": "354:4:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4345, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:25", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:25" }, "scope": 4366, "src": "268:92:25", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 4357, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 4353, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4350, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 4357, "src": "381:16:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4349, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4352, "name": "_value", "nodeType": "VariableDeclaration", "scope": 4357, "src": "399:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4351, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:25" }, "payable": false, "returnParameters": { "id": 4356, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4355, "name": "", "nodeType": "VariableDeclaration", "scope": 4357, "src": "431:4:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4354, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:25", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:25" }, "scope": 4366, "src": "364:73:25", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 4365, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 4364, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4359, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 4365, "src": "460:21:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4358, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4361, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 4365, "src": "487:23:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4360, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4363, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 4365, "src": "516:13:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4362, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:25" }, "src": "440:94:25" } ], "scope": 4367, "src": "144:392:25" } ], "src": "0:537:25" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 4366 ] }, "id": 4367, "nodeType": "SourceUnit", "nodes": [ { "id": 4325, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:25" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 4326, "nodeType": "ImportDirective", "scope": 4367, "sourceUnit": 4399, "src": "26:26:25", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4327, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4398, "src": "162:10:25", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$4398", "typeString": "contract ERC20Basic" } }, "id": 4328, "nodeType": "InheritanceSpecifier", "src": "162:10:25" } ], "contractDependencies": [ 4398 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 4366, "linearizedBaseContracts": [ 4366, 4398 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 4337, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 4333, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4330, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 4337, "src": "196:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4329, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4332, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 4337, "src": "212:16:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4331, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:25" }, "payable": false, "returnParameters": { "id": 4336, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4335, "name": "", "nodeType": "VariableDeclaration", "scope": 4337, "src": "255:7:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4334, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:25" }, "scope": 4366, "src": "177:87:25", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 4348, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 4344, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4339, "name": "_from", "nodeType": "VariableDeclaration", "scope": 4348, "src": "290:13:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4338, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4341, "name": "_to", "nodeType": "VariableDeclaration", "scope": 4348, "src": "305:11:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4340, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4343, "name": "_value", "nodeType": "VariableDeclaration", "scope": 4348, "src": "318:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4342, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:25" }, "payable": false, "returnParameters": { "id": 4347, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4346, "name": "", "nodeType": "VariableDeclaration", "scope": 4348, "src": "354:4:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4345, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:25", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:25" }, "scope": 4366, "src": "268:92:25", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 4357, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 4353, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4350, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 4357, "src": "381:16:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4349, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4352, "name": "_value", "nodeType": "VariableDeclaration", "scope": 4357, "src": "399:14:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4351, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:25" }, "payable": false, "returnParameters": { "id": 4356, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4355, "name": "", "nodeType": "VariableDeclaration", "scope": 4357, "src": "431:4:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4354, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:25", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:25" }, "scope": 4366, "src": "364:73:25", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 4365, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 4364, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4359, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 4365, "src": "460:21:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4358, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4361, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 4365, "src": "487:23:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4360, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:25", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4363, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 4365, "src": "516:13:25", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4362, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:25", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:25" }, "src": "440:94:25" } ], "scope": 4367, "src": "144:392:25" } ], "src": "0:537:25" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-16T05:56:33.185Z" }