tokenboost-solidity-erc20sale
Version:
Solidity contracts for TokenBoost (ERC20Sale)
866 lines • 28.1 kB
JSON
{
"contractName": "ERC20Basic",
"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"
},
{
"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"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * See https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address _who) public view returns (uint256);\n function transfer(address _to, uint256 _value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n",
"sourcePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"ast": {
"absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"exportedSymbols": {
"ERC20Basic": [
5430
]
},
"id": 5431,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5400,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:29"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179",
"fullyImplemented": false,
"id": 5430,
"linearizedBaseContracts": [
5430
],
"name": "ERC20Basic",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 5405,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5401,
"nodeType": "ParameterList",
"parameters": [],
"src": "194:2:29"
},
"payable": false,
"returnParameters": {
"id": 5404,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5403,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5405,
"src": "218:7:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5402,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:29"
},
"scope": 5430,
"src": "174:53:29",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 5412,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5408,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5407,
"name": "_who",
"nodeType": "VariableDeclaration",
"scope": 5412,
"src": "249:12:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5406,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "249:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "248:14:29"
},
"payable": false,
"returnParameters": {
"id": 5411,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5410,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5412,
"src": "284:7:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5409,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "284:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "283:9:29"
},
"scope": 5430,
"src": "230:63:29",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 5421,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5417,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5414,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "314:11:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5413,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "314:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5416,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "327:14:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5415,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "327:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "313:29:29"
},
"payable": false,
"returnParameters": {
"id": 5420,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5419,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "359:4:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5418,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "359:4:29",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "358:6:29"
},
"scope": 5430,
"src": "296:69:29",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 5429,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 5428,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5423,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "383:20:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "383:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5425,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "405:18:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5424,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "405:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5427,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "425:13:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5426,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "425:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "382:57:29"
},
"src": "368:72:29"
}
],
"scope": 5431,
"src": "150:292:29"
}
],
"src": "0:443:29"
},
"legacyAST": {
"absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"exportedSymbols": {
"ERC20Basic": [
5430
]
},
"id": 5431,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5400,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:29"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179",
"fullyImplemented": false,
"id": 5430,
"linearizedBaseContracts": [
5430
],
"name": "ERC20Basic",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 5405,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5401,
"nodeType": "ParameterList",
"parameters": [],
"src": "194:2:29"
},
"payable": false,
"returnParameters": {
"id": 5404,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5403,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5405,
"src": "218:7:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5402,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:29"
},
"scope": 5430,
"src": "174:53:29",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 5412,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5408,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5407,
"name": "_who",
"nodeType": "VariableDeclaration",
"scope": 5412,
"src": "249:12:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5406,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "249:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "248:14:29"
},
"payable": false,
"returnParameters": {
"id": 5411,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5410,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5412,
"src": "284:7:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5409,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "284:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "283:9:29"
},
"scope": 5430,
"src": "230:63:29",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 5421,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5417,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5414,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "314:11:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5413,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "314:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5416,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "327:14:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5415,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "327:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "313:29:29"
},
"payable": false,
"returnParameters": {
"id": 5420,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5419,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5421,
"src": "359:4:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5418,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "359:4:29",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "358:6:29"
},
"scope": 5430,
"src": "296:69:29",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 5429,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 5428,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5423,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "383:20:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "383:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5425,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "405:18:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5424,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "405:7:29",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5427,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 5429,
"src": "425:13:29",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5426,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "425:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "382:57:29"
},
"src": "368:72:29"
}
],
"scope": 5431,
"src": "150:292:29"
}
],
"src": "0:443:29"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-11-01T09:01:02.408Z"
}