{ "contractName": "ERC20Detailed", "abi": [ { "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": "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" }, { "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": "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": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.2;\n\nimport \"./IERC20.sol\";\n\n/**\n * @title ERC20Detailed 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 ERC20Detailed is IERC20 {\n string private _name;\n string private _symbol;\n uint8 private _decimals;\n\n constructor (string memory name, string memory symbol, uint8 decimals) public {\n _name = name;\n _symbol = symbol;\n _decimals = decimals;\n }\n\n /**\n * @return the name of the token.\n */\n function name() public view returns (string memory) {\n return _name;\n }\n\n /**\n * @return the symbol of the token.\n */\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n /**\n * @return the number of decimals of the token.\n */\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol", "exportedSymbols": { "ERC20Detailed": [ 3205 ] }, "id": 3206, "nodeType": "SourceUnit", "nodes": [ { "id": 3149, "literals": [ "solidity", "^", "0.5", ".2" ], "nodeType": "PragmaDirective", "src": "0:23:10" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", "id": 3150, "nodeType": "ImportDirective", "scope": 3206, "sourceUnit": 3275, "src": "25:22:10", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 3151, "name": "IERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3274, "src": "308:6:10", "typeDescriptions": { "typeIdentifier": "t_contract$_IERC20_$3274", "typeString": "contract IERC20" } }, "id": 3152, "nodeType": "InheritanceSpecifier", "src": "308:6:10" } ], "contractDependencies": [ 3274 ], "contractKind": "contract", "documentation": "@title ERC20Detailed 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": 3205, "linearizedBaseContracts": [ 3205, 3274 ], "name": "ERC20Detailed", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 3154, "name": "_name", "nodeType": "VariableDeclaration", "scope": 3205, "src": "321:20:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 3153, "name": "string", "nodeType": "ElementaryTypeName", "src": "321:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 3156, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 3205, "src": "347:22:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 3155, "name": "string", "nodeType": "ElementaryTypeName", "src": "347:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 3158, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 3205, "src": "375:23:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3157, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "375:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "private" }, { "body": { "id": 3179, "nodeType": "Block", "src": "483:85:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3169, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3167, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3154, "src": "493:5:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3168, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3160, "src": "501:4:10", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "493:12:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 3170, "nodeType": "ExpressionStatement", "src": "493:12:10" }, { "expression": { "argumentTypes": null, "id": 3173, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3171, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3156, "src": "515:7:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3172, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3162, "src": "525:6:10", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "515:16:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 3174, "nodeType": "ExpressionStatement", "src": "515:16:10" }, { "expression": { "argumentTypes": null, "id": 3177, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3175, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3158, "src": "541:9:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3176, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3164, "src": "553:8:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "541:20:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 3178, "nodeType": "ExpressionStatement", "src": "541:20:10" } ] }, "documentation": null, "id": 3180, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 3165, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3160, "name": "name", "nodeType": "VariableDeclaration", "scope": 3180, "src": "418:18:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3159, "name": "string", "nodeType": "ElementaryTypeName", "src": "418:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3162, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 3180, "src": "438:20:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3161, "name": "string", "nodeType": "ElementaryTypeName", "src": "438:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3164, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 3180, "src": "460:14:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3163, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "460:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "417:58:10" }, "returnParameters": { "id": 3166, "nodeType": "ParameterList", "parameters": [], "src": "483:0:10" }, "scope": 3205, "src": "405:163:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 3187, "nodeType": "Block", "src": "680:29:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3185, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3154, "src": "697:5:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 3184, "id": 3186, "nodeType": "Return", "src": "690:12:10" } ] }, "documentation": "@return the name of the token.", "id": 3188, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { "id": 3181, "nodeType": "ParameterList", "parameters": [], "src": "641:2:10" }, "returnParameters": { "id": 3184, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3183, "name": "", "nodeType": "VariableDeclaration", "scope": 3188, "src": "665:13:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3182, "name": "string", "nodeType": "ElementaryTypeName", "src": "665:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "664:15:10" }, "scope": 3205, "src": "628:81:10", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 3195, "nodeType": "Block", "src": "825:31:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3193, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3156, "src": "842:7:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 3192, "id": 3194, "nodeType": "Return", "src": "835:14:10" } ] }, "documentation": "@return the symbol of the token.", "id": 3196, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { "id": 3189, "nodeType": "ParameterList", "parameters": [], "src": "786:2:10" }, "returnParameters": { "id": 3192, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3191, "name": "", "nodeType": "VariableDeclaration", "scope": 3196, "src": "810:13:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3190, "name": "string", "nodeType": "ElementaryTypeName", "src": "810:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "809:15:10" }, "scope": 3205, "src": "771:85:10", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 3203, "nodeType": "Block", "src": "978:33:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3201, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3158, "src": "995:9:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "functionReturnParameters": 3200, "id": 3202, "nodeType": "Return", "src": "988:16:10" } ] }, "documentation": "@return the number of decimals of the token.", "id": 3204, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { "id": 3197, "nodeType": "ParameterList", "parameters": [], "src": "947:2:10" }, "returnParameters": { "id": 3200, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3199, "name": "", "nodeType": "VariableDeclaration", "scope": 3204, "src": "971:5:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3198, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "971:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "970:7:10" }, "scope": 3205, "src": "930:81:10", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 3206, "src": "282:731:10" } ], "src": "0:1014:10" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol", "exportedSymbols": { "ERC20Detailed": [ 3205 ] }, "id": 3206, "nodeType": "SourceUnit", "nodes": [ { "id": 3149, "literals": [ "solidity", "^", "0.5", ".2" ], "nodeType": "PragmaDirective", "src": "0:23:10" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", "id": 3150, "nodeType": "ImportDirective", "scope": 3206, "sourceUnit": 3275, "src": "25:22:10", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 3151, "name": "IERC20", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 3274, "src": "308:6:10", "typeDescriptions": { "typeIdentifier": "t_contract$_IERC20_$3274", "typeString": "contract IERC20" } }, "id": 3152, "nodeType": "InheritanceSpecifier", "src": "308:6:10" } ], "contractDependencies": [ 3274 ], "contractKind": "contract", "documentation": "@title ERC20Detailed 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": 3205, "linearizedBaseContracts": [ 3205, 3274 ], "name": "ERC20Detailed", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 3154, "name": "_name", "nodeType": "VariableDeclaration", "scope": 3205, "src": "321:20:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 3153, "name": "string", "nodeType": "ElementaryTypeName", "src": "321:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 3156, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 3205, "src": "347:22:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 3155, "name": "string", "nodeType": "ElementaryTypeName", "src": "347:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 3158, "name": "_decimals", "nodeType": "VariableDeclaration", "scope": 3205, "src": "375:23:10", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3157, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "375:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "private" }, { "body": { "id": 3179, "nodeType": "Block", "src": "483:85:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3169, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3167, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3154, "src": "493:5:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3168, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3160, "src": "501:4:10", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "493:12:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 3170, "nodeType": "ExpressionStatement", "src": "493:12:10" }, { "expression": { "argumentTypes": null, "id": 3173, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3171, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3156, "src": "515:7:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3172, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3162, "src": "525:6:10", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "515:16:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 3174, "nodeType": "ExpressionStatement", "src": "515:16:10" }, { "expression": { "argumentTypes": null, "id": 3177, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3175, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3158, "src": "541:9:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3176, "name": "decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3164, "src": "553:8:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "src": "541:20:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "id": 3178, "nodeType": "ExpressionStatement", "src": "541:20:10" } ] }, "documentation": null, "id": 3180, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 3165, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3160, "name": "name", "nodeType": "VariableDeclaration", "scope": 3180, "src": "418:18:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3159, "name": "string", "nodeType": "ElementaryTypeName", "src": "418:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3162, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 3180, "src": "438:20:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3161, "name": "string", "nodeType": "ElementaryTypeName", "src": "438:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3164, "name": "decimals", "nodeType": "VariableDeclaration", "scope": 3180, "src": "460:14:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3163, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "460:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "417:58:10" }, "returnParameters": { "id": 3166, "nodeType": "ParameterList", "parameters": [], "src": "483:0:10" }, "scope": 3205, "src": "405:163:10", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 3187, "nodeType": "Block", "src": "680:29:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3185, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3154, "src": "697:5:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 3184, "id": 3186, "nodeType": "Return", "src": "690:12:10" } ] }, "documentation": "@return the name of the token.", "id": 3188, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { "id": 3181, "nodeType": "ParameterList", "parameters": [], "src": "641:2:10" }, "returnParameters": { "id": 3184, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3183, "name": "", "nodeType": "VariableDeclaration", "scope": 3188, "src": "665:13:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3182, "name": "string", "nodeType": "ElementaryTypeName", "src": "665:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "664:15:10" }, "scope": 3205, "src": "628:81:10", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 3195, "nodeType": "Block", "src": "825:31:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3193, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3156, "src": "842:7:10", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 3192, "id": 3194, "nodeType": "Return", "src": "835:14:10" } ] }, "documentation": "@return the symbol of the token.", "id": 3196, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { "id": 3189, "nodeType": "ParameterList", "parameters": [], "src": "786:2:10" }, "returnParameters": { "id": 3192, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3191, "name": "", "nodeType": "VariableDeclaration", "scope": 3196, "src": "810:13:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3190, "name": "string", "nodeType": "ElementaryTypeName", "src": "810:6:10", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "809:15:10" }, "scope": 3205, "src": "771:85:10", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 3203, "nodeType": "Block", "src": "978:33:10", "statements": [ { "expression": { "argumentTypes": null, "id": 3201, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3158, "src": "995:9:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "functionReturnParameters": 3200, "id": 3202, "nodeType": "Return", "src": "988:16:10" } ] }, "documentation": "@return the number of decimals of the token.", "id": 3204, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { "id": 3197, "nodeType": "ParameterList", "parameters": [], "src": "947:2:10" }, "returnParameters": { "id": 3200, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3199, "name": "", "nodeType": "VariableDeclaration", "scope": 3204, "src": "971:5:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3198, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "971:5:10", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "970:7:10" }, "scope": 3205, "src": "930:81:10", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 3206, "src": "282:731:10" } ], "src": "0:1014:10" }, "compiler": { "name": "solc", "version": "0.5.2+commit.1df8f40c.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.5", "updatedAt": "2019-06-04T10:01:11.417Z", "devdoc": { "details": "The decimals are only for visualization purposes. All the operations are done using the smallest and indivisible token unit, just as on Ethereum all the operations are done in wei.", "methods": { "decimals()": { "return": "the number of decimals of the token." }, "name()": { "return": "the name of the token." }, "symbol()": { "return": "the symbol of the token." } }, "title": "ERC20Detailed token" }, "userdoc": { "methods": {} } }