UNPKG

@dnextco/tokenboost-solidity-erc223token

Version:

Solidity contracts for TokenBoost (ERC223Token)

1,023 lines 34 kB
{ "contractName": "ERC223", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" }, { "indexed": false, "name": "data", "type": "bytes" } ], "name": "Transfer", "type": "event" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "transfer", "outputs": [ { "name": "ok", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" }, { "name": "data", "type": "bytes" }, { "name": "custom_fallback", "type": "string" } ], "name": "transfer", "outputs": [ { "name": "ok", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\ncontract ERC223 {\n\n function transfer(address to, uint value, bytes data) public returns (bool ok);\n\n function transfer(address to, uint value, bytes data, string custom_fallback) public returns (bool ok);\n\n event Transfer(address indexed from, address indexed to, uint value, bytes data);\n}\n", "sourcePath": "/Users/dowonlee/Desktop/dowon/DNext/tokenboost/tokenboost-solidity-erc223token/contracts/token/erc223/ERC223.sol", "ast": { "absolutePath": "/Users/dowonlee/Desktop/dowon/DNext/tokenboost/tokenboost-solidity-erc223token/contracts/token/erc223/ERC223.sol", "exportedSymbols": { "ERC223": [ 321 ] }, "id": 322, "nodeType": "SourceUnit", "nodes": [ { "id": 286, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:3" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 321, "linearizedBaseContracts": [ 321 ], "name": "ERC223", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 297, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 293, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 288, "name": "to", "nodeType": "VariableDeclaration", "scope": 297, "src": "67:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 287, "name": "address", "nodeType": "ElementaryTypeName", "src": "67:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 290, "name": "value", "nodeType": "VariableDeclaration", "scope": 297, "src": "79:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 289, "name": "uint", "nodeType": "ElementaryTypeName", "src": "79:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 292, "name": "data", "nodeType": "VariableDeclaration", "scope": 297, "src": "91:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 291, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "91:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "66:36:3" }, "payable": false, "returnParameters": { "id": 296, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 295, "name": "ok", "nodeType": "VariableDeclaration", "scope": 297, "src": "119:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 294, "name": "bool", "nodeType": "ElementaryTypeName", "src": "119:4:3", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "118:9:3" }, "scope": 321, "src": "49:79:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 310, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 306, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 299, "name": "to", "nodeType": "VariableDeclaration", "scope": 310, "src": "152:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 298, "name": "address", "nodeType": "ElementaryTypeName", "src": "152:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 301, "name": "value", "nodeType": "VariableDeclaration", "scope": 310, "src": "164:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 300, "name": "uint", "nodeType": "ElementaryTypeName", "src": "164:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 303, "name": "data", "nodeType": "VariableDeclaration", "scope": 310, "src": "176:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 302, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "176:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 305, "name": "custom_fallback", "nodeType": "VariableDeclaration", "scope": 310, "src": "188:22:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 304, "name": "string", "nodeType": "ElementaryTypeName", "src": "188:6:3", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "151:60:3" }, "payable": false, "returnParameters": { "id": 309, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 308, "name": "ok", "nodeType": "VariableDeclaration", "scope": 310, "src": "228:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 307, "name": "bool", "nodeType": "ElementaryTypeName", "src": "228:4:3", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "227:9:3" }, "scope": 321, "src": "134:103:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 320, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 319, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 312, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 320, "src": "258:20:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 311, "name": "address", "nodeType": "ElementaryTypeName", "src": "258:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 314, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 320, "src": "280:18:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 313, "name": "address", "nodeType": "ElementaryTypeName", "src": "280:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 316, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 320, "src": "300:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 315, "name": "uint", "nodeType": "ElementaryTypeName", "src": "300:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 318, "indexed": false, "name": "data", "nodeType": "VariableDeclaration", "scope": 320, "src": "312:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 317, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "312:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "257:66:3" }, "src": "243:81:3" } ], "scope": 322, "src": "26:300:3" } ], "src": "0:327:3" }, "legacyAST": { "absolutePath": "/Users/dowonlee/Desktop/dowon/DNext/tokenboost/tokenboost-solidity-erc223token/contracts/token/erc223/ERC223.sol", "exportedSymbols": { "ERC223": [ 321 ] }, "id": 322, "nodeType": "SourceUnit", "nodes": [ { "id": 286, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:3" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": false, "id": 321, "linearizedBaseContracts": [ 321 ], "name": "ERC223", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 297, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 293, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 288, "name": "to", "nodeType": "VariableDeclaration", "scope": 297, "src": "67:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 287, "name": "address", "nodeType": "ElementaryTypeName", "src": "67:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 290, "name": "value", "nodeType": "VariableDeclaration", "scope": 297, "src": "79:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 289, "name": "uint", "nodeType": "ElementaryTypeName", "src": "79:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 292, "name": "data", "nodeType": "VariableDeclaration", "scope": 297, "src": "91:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 291, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "91:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "66:36:3" }, "payable": false, "returnParameters": { "id": 296, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 295, "name": "ok", "nodeType": "VariableDeclaration", "scope": 297, "src": "119:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 294, "name": "bool", "nodeType": "ElementaryTypeName", "src": "119:4:3", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "118:9:3" }, "scope": 321, "src": "49:79:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 310, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 306, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 299, "name": "to", "nodeType": "VariableDeclaration", "scope": 310, "src": "152:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 298, "name": "address", "nodeType": "ElementaryTypeName", "src": "152:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 301, "name": "value", "nodeType": "VariableDeclaration", "scope": 310, "src": "164:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 300, "name": "uint", "nodeType": "ElementaryTypeName", "src": "164:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 303, "name": "data", "nodeType": "VariableDeclaration", "scope": 310, "src": "176:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 302, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "176:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 305, "name": "custom_fallback", "nodeType": "VariableDeclaration", "scope": 310, "src": "188:22:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 304, "name": "string", "nodeType": "ElementaryTypeName", "src": "188:6:3", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "151:60:3" }, "payable": false, "returnParameters": { "id": 309, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 308, "name": "ok", "nodeType": "VariableDeclaration", "scope": 310, "src": "228:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 307, "name": "bool", "nodeType": "ElementaryTypeName", "src": "228:4:3", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "227:9:3" }, "scope": 321, "src": "134:103:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 320, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 319, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 312, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 320, "src": "258:20:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 311, "name": "address", "nodeType": "ElementaryTypeName", "src": "258:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 314, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 320, "src": "280:18:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 313, "name": "address", "nodeType": "ElementaryTypeName", "src": "280:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 316, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 320, "src": "300:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 315, "name": "uint", "nodeType": "ElementaryTypeName", "src": "300:4:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 318, "indexed": false, "name": "data", "nodeType": "VariableDeclaration", "scope": 320, "src": "312:10:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 317, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "312:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "257:66:3" }, "src": "243:81:3" } ], "scope": 322, "src": "26:300:3" } ], "src": "0:327:3" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-24T12:40:22.221Z" }