UNPKG

tokenboost-solidity-erc20sale

Version:
1,064 lines 33.5 kB
{ "contractName": "DetailedERC20", "abi": [ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "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": true, "inputs": [], "name": "totalSupply", "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": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8" } ], "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": "symbol", "outputs": [ { "name": "", "type": "string" } ], "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" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "_name", "type": "string" }, { "name": "_symbol", "type": "string" }, { "name": "_decimals", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "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" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20.sol\";\n\n\n/**\n * @title DetailedERC20 token\n * @dev The decimals are only for visualization purposes.\n * All the operations are done using the smallest and indivisible token unit,\n * just as on Ethereum all the operations are done in wei.\n */\ncontract DetailedERC20 is ERC20 {\n string public name;\n string public symbol;\n uint8 public decimals;\n\n constructor(string _name, string _symbol, uint8 _decimals) public {\n name = _name;\n symbol = _symbol;\n decimals = _decimals;\n }\n}\n", "sourcePath": "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol", "ast": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol", "exportedSymbols": { "DetailedERC20": [ 6533 ] }, "id": 6534, "nodeType": "SourceUnit", "nodes": [ { "id": 6501, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:36" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "./ERC20.sol", "id": 6502, "nodeType": "ImportDirective", "scope": 6534, "sourceUnit": 6577, "src": "26:21:36", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6503, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6576, "src": "309:5:36", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$6576", "typeString": "contract ERC20" } }, "id": 6504, "nodeType": "InheritanceSpecifier", "src": "309:5:36" } ], "contractDependencies": [ 6576, 6608 ], "contractKind": "contract", "documentation": "@title DetailedERC20 token\n@dev The decimals are only for visualization purposes.\nAll the operations are done using the smallest and indivisible token unit,\njust as on Ethereum all the operations are done in wei.", "fullyImplemented": false, "id": 6533, "linearizedBaseContracts": [ 6533, 6576, 6608 ], "name": "DetailedERC20", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6506, "name": "name", "nodeType": "VariableDeclaration", "scope": 6533, "src": "319:18:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 6505, "name": "string", "nodeType": "ElementaryTypeName", "src": "319:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 6508, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 6533, "src": "341:20:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 6507, "name": "string", "nodeType": "ElementaryTypeName", "src": "341:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 6510, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 6533, "src": "365:21:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 6509, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "365:5:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "body": { "id": 6531, "nodeType": "Block", "src": "457:71:36", "statements": [ { "expression": { "argumentTypes": null, "id": 6521, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6519, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6506, "src": "463:4:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6520, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6512, "src": "470:5:36", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "463:12:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 6522, "nodeType": "ExpressionStatement", "src": "463:12:36" }, { "expression": { "argumentTypes": null, "id": 6525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6523, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6508, "src": "481:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6524, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6514, "src": "490:7:36", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "481:16:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 6526, "nodeType": "ExpressionStatement", "src": "481:16:36" }, { "expression": { "argumentTypes": null, "id": 6529, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6527, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6510, "src": "503:8:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6528, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6516, "src": "514:9:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "503:20:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 6530, "nodeType": "ExpressionStatement", "src": "503:20:36" } ] }, "documentation": null, "id": 6532, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6517, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6512, "name": "_name", "nodeType": "VariableDeclaration", "scope": 6532, "src": "403:12:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6511, "name": "string", "nodeType": "ElementaryTypeName", "src": "403:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6514, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 6532, "src": "417:14:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6513, "name": "string", "nodeType": "ElementaryTypeName", "src": "417:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6516, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 6532, "src": "433:15:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 6515, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "433:5:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "402:47:36" }, "payable": false, "returnParameters": { "id": 6518, "nodeType": "ParameterList", "parameters": [], "src": "457:0:36" }, "scope": 6533, "src": "391:137:36", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6534, "src": "283:247:36" } ], "src": "0:531:36" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol", "exportedSymbols": { "DetailedERC20": [ 6533 ] }, "id": 6534, "nodeType": "SourceUnit", "nodes": [ { "id": 6501, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:36" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "./ERC20.sol", "id": 6502, "nodeType": "ImportDirective", "scope": 6534, "sourceUnit": 6577, "src": "26:21:36", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6503, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6576, "src": "309:5:36", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$6576", "typeString": "contract ERC20" } }, "id": 6504, "nodeType": "InheritanceSpecifier", "src": "309:5:36" } ], "contractDependencies": [ 6576, 6608 ], "contractKind": "contract", "documentation": "@title DetailedERC20 token\n@dev The decimals are only for visualization purposes.\nAll the operations are done using the smallest and indivisible token unit,\njust as on Ethereum all the operations are done in wei.", "fullyImplemented": false, "id": 6533, "linearizedBaseContracts": [ 6533, 6576, 6608 ], "name": "DetailedERC20", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6506, "name": "name", "nodeType": "VariableDeclaration", "scope": 6533, "src": "319:18:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 6505, "name": "string", "nodeType": "ElementaryTypeName", "src": "319:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 6508, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 6533, "src": "341:20:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 6507, "name": "string", "nodeType": "ElementaryTypeName", "src": "341:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 6510, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 6533, "src": "365:21:36", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 6509, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "365:5:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "body": { "id": 6531, "nodeType": "Block", "src": "457:71:36", "statements": [ { "expression": { "argumentTypes": null, "id": 6521, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6519, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6506, "src": "463:4:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6520, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6512, "src": "470:5:36", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "463:12:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 6522, "nodeType": "ExpressionStatement", "src": "463:12:36" }, { "expression": { "argumentTypes": null, "id": 6525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6523, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6508, "src": "481:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6524, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6514, "src": "490:7:36", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "481:16:36", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 6526, "nodeType": "ExpressionStatement", "src": "481:16:36" }, { "expression": { "argumentTypes": null, "id": 6529, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6527, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6510, "src": "503:8:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6528, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6516, "src": "514:9:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "503:20:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 6530, "nodeType": "ExpressionStatement", "src": "503:20:36" } ] }, "documentation": null, "id": 6532, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6517, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6512, "name": "_name", "nodeType": "VariableDeclaration", "scope": 6532, "src": "403:12:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6511, "name": "string", "nodeType": "ElementaryTypeName", "src": "403:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6514, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 6532, "src": "417:14:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 6513, "name": "string", "nodeType": "ElementaryTypeName", "src": "417:6:36", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6516, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 6532, "src": "433:15:36", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 6515, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "433:5:36", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "402:47:36" }, "payable": false, "returnParameters": { "id": 6518, "nodeType": "ParameterList", "parameters": [], "src": "457:0:36" }, "scope": 6533, "src": "391:137:36", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6534, "src": "283:247:36" } ], "src": "0:531:36" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-22T16:25:48.221Z" }