UNPKG

tokenboost-solidity

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": [ 5014 ] }, "id": 5015, "nodeType": "SourceUnit", "nodes": [ { "id": 4982, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:24" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "./ERC20.sol", "id": 4983, "nodeType": "ImportDirective", "scope": 5015, "sourceUnit": 5058, "src": "26:21:24", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4984, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5057, "src": "309:5:24", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$5057", "typeString": "contract ERC20" } }, "id": 4985, "nodeType": "InheritanceSpecifier", "src": "309:5:24" } ], "contractDependencies": [ 5057, 5089 ], "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": 5014, "linearizedBaseContracts": [ 5014, 5057, 5089 ], "name": "DetailedERC20", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4987, "name": "name", "nodeType": "VariableDeclaration", "scope": 5014, "src": "319:18:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 4986, "name": "string", "nodeType": "ElementaryTypeName", "src": "319:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 4989, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 5014, "src": "341:20:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 4988, "name": "string", "nodeType": "ElementaryTypeName", "src": "341:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 4991, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 5014, "src": "365:21:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "365:5:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "body": { "id": 5012, "nodeType": "Block", "src": "457:71:24", "statements": [ { "expression": { "argumentTypes": null, "id": 5002, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5000, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4987, "src": "463:4:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5001, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4993, "src": "470:5:24", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "463:12:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 5003, "nodeType": "ExpressionStatement", "src": "463:12:24" }, { "expression": { "argumentTypes": null, "id": 5006, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5004, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4989, "src": "481:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4995, "src": "490:7:24", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "481:16:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 5007, "nodeType": "ExpressionStatement", "src": "481:16:24" }, { "expression": { "argumentTypes": null, "id": 5010, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5008, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4991, "src": "503:8:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5009, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4997, "src": "514:9:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "503:20:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 5011, "nodeType": "ExpressionStatement", "src": "503:20:24" } ] }, "documentation": null, "id": 5013, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 4998, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4993, "name": "_name", "nodeType": "VariableDeclaration", "scope": 5013, "src": "403:12:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4992, "name": "string", "nodeType": "ElementaryTypeName", "src": "403:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4995, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 5013, "src": "417:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4994, "name": "string", "nodeType": "ElementaryTypeName", "src": "417:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4997, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 5013, "src": "433:15:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4996, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "433:5:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "402:47:24" }, "payable": false, "returnParameters": { "id": 4999, "nodeType": "ParameterList", "parameters": [], "src": "457:0:24" }, "scope": 5014, "src": "391:137:24", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 5015, "src": "283:247:24" } ], "src": "0:531:24" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol", "exportedSymbols": { "DetailedERC20": [ 5014 ] }, "id": 5015, "nodeType": "SourceUnit", "nodes": [ { "id": 4982, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:24" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "file": "./ERC20.sol", "id": 4983, "nodeType": "ImportDirective", "scope": 5015, "sourceUnit": 5058, "src": "26:21:24", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4984, "name": "ERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5057, "src": "309:5:24", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20_$5057", "typeString": "contract ERC20" } }, "id": 4985, "nodeType": "InheritanceSpecifier", "src": "309:5:24" } ], "contractDependencies": [ 5057, 5089 ], "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": 5014, "linearizedBaseContracts": [ 5014, 5057, 5089 ], "name": "DetailedERC20", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4987, "name": "name", "nodeType": "VariableDeclaration", "scope": 5014, "src": "319:18:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 4986, "name": "string", "nodeType": "ElementaryTypeName", "src": "319:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 4989, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 5014, "src": "341:20:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 4988, "name": "string", "nodeType": "ElementaryTypeName", "src": "341:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 4991, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 5014, "src": "365:21:24", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "365:5:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "public" }, { "body": { "id": 5012, "nodeType": "Block", "src": "457:71:24", "statements": [ { "expression": { "argumentTypes": null, "id": 5002, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5000, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4987, "src": "463:4:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5001, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4993, "src": "470:5:24", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "463:12:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 5003, "nodeType": "ExpressionStatement", "src": "463:12:24" }, { "expression": { "argumentTypes": null, "id": 5006, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5004, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4989, "src": "481:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4995, "src": "490:7:24", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "481:16:24", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 5007, "nodeType": "ExpressionStatement", "src": "481:16:24" }, { "expression": { "argumentTypes": null, "id": 5010, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 5008, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4991, "src": "503:8:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 5009, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4997, "src": "514:9:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "503:20:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 5011, "nodeType": "ExpressionStatement", "src": "503:20:24" } ] }, "documentation": null, "id": 5013, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 4998, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4993, "name": "_name", "nodeType": "VariableDeclaration", "scope": 5013, "src": "403:12:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4992, "name": "string", "nodeType": "ElementaryTypeName", "src": "403:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4995, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 5013, "src": "417:14:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4994, "name": "string", "nodeType": "ElementaryTypeName", "src": "417:6:24", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4997, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 5013, "src": "433:15:24", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4996, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "433:5:24", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "402:47:24" }, "payable": false, "returnParameters": { "id": 4999, "nodeType": "ParameterList", "parameters": [], "src": "457:0:24" }, "scope": 5014, "src": "391:137:24", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 5015, "src": "283:247:24" } ], "src": "0:531:24" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-31T09:02:05.440Z" }