UNPKG

@dnextco/tokenboost-solidity-erc223token

Version:

Solidity contracts for TokenBoost (ERC223Token)

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": [ 7112 ] }, "id": 7113, "nodeType": "SourceUnit", "nodes": [ { "id": 7071, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:46" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 7072, "nodeType": "ImportDirective", "scope": 7113, "sourceUnit": 7145, "src": "26:26:46", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7073, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 7144, "src": "162:10:46", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$7144", "typeString": "contract ERC20Basic" } }, "id": 7074, "nodeType": "InheritanceSpecifier", "src": "162:10:46" } ], "contractDependencies": [ 7144 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 7112, "linearizedBaseContracts": [ 7112, 7144 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 7083, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 7079, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7076, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 7083, "src": "196:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7075, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7078, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 7083, "src": "212:16:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7077, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:46" }, "payable": false, "returnParameters": { "id": 7082, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7081, "name": "", "nodeType": "VariableDeclaration", "scope": 7083, "src": "255:7:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7080, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:46" }, "scope": 7112, "src": "177:87:46", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 7094, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7090, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7085, "name": "_from", "nodeType": "VariableDeclaration", "scope": 7094, "src": "290:13:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7084, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7087, "name": "_to", "nodeType": "VariableDeclaration", "scope": 7094, "src": "305:11:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7086, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7089, "name": "_value", "nodeType": "VariableDeclaration", "scope": 7094, "src": "318:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7088, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:46" }, "payable": false, "returnParameters": { "id": 7093, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7092, "name": "", "nodeType": "VariableDeclaration", "scope": 7094, "src": "354:4:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7091, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:46", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:46" }, "scope": 7112, "src": "268:92:46", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 7103, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 7099, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7096, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 7103, "src": "381:16:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7095, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7098, "name": "_value", "nodeType": "VariableDeclaration", "scope": 7103, "src": "399:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7097, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:46" }, "payable": false, "returnParameters": { "id": 7102, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7101, "name": "", "nodeType": "VariableDeclaration", "scope": 7103, "src": "431:4:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7100, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:46", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:46" }, "scope": 7112, "src": "364:73:46", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 7111, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 7110, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7105, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7111, "src": "460:21:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7104, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7107, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 7111, "src": "487:23:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7106, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7109, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 7111, "src": "516:13:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7108, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:46" }, "src": "440:94:46" } ], "scope": 7113, "src": "144:392:46" } ], "src": "0:537:46" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 7112 ] }, "id": 7113, "nodeType": "SourceUnit", "nodes": [ { "id": 7071, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:46" }, { "absolutePath": "zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 7072, "nodeType": "ImportDirective", "scope": 7113, "sourceUnit": 7145, "src": "26:26:46", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7073, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 7144, "src": "162:10:46", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$7144", "typeString": "contract ERC20Basic" } }, "id": 7074, "nodeType": "InheritanceSpecifier", "src": "162:10:46" } ], "contractDependencies": [ 7144 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 7112, "linearizedBaseContracts": [ 7112, 7144 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 7083, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 7079, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7076, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 7083, "src": "196:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7075, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7078, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 7083, "src": "212:16:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7077, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:46" }, "payable": false, "returnParameters": { "id": 7082, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7081, "name": "", "nodeType": "VariableDeclaration", "scope": 7083, "src": "255:7:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7080, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:46" }, "scope": 7112, "src": "177:87:46", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 7094, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7090, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7085, "name": "_from", "nodeType": "VariableDeclaration", "scope": 7094, "src": "290:13:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7084, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7087, "name": "_to", "nodeType": "VariableDeclaration", "scope": 7094, "src": "305:11:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7086, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7089, "name": "_value", "nodeType": "VariableDeclaration", "scope": 7094, "src": "318:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7088, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:46" }, "payable": false, "returnParameters": { "id": 7093, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7092, "name": "", "nodeType": "VariableDeclaration", "scope": 7094, "src": "354:4:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7091, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:46", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:46" }, "scope": 7112, "src": "268:92:46", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 7103, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 7099, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7096, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 7103, "src": "381:16:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7095, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7098, "name": "_value", "nodeType": "VariableDeclaration", "scope": 7103, "src": "399:14:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7097, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:46" }, "payable": false, "returnParameters": { "id": 7102, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7101, "name": "", "nodeType": "VariableDeclaration", "scope": 7103, "src": "431:4:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7100, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:46", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:46" }, "scope": 7112, "src": "364:73:46", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 7111, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 7110, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7105, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7111, "src": "460:21:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7104, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7107, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 7111, "src": "487:23:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7106, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:46", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7109, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 7111, "src": "516:13:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7108, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:46" }, "src": "440:94:46" } ], "scope": 7113, "src": "144:392:46" } ], "src": "0:537:46" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-24T12:40:22.250Z" }