UNPKG

tokenboost-solidity-erc20token

Version:
1,230 lines 59.6 kB
{ "contractName": "Token", "abi": [ { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "InterfaceId_Token", "outputs": [ { "name": "", "type": "bytes4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "activated", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "InterfaceId_ERC165", "outputs": [ { "name": "", "type": "bytes4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "template", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "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": "_newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "InterfaceId_Contract", "outputs": [ { "name": "", "type": "bytes4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_name", "type": "string" }, { "name": "_symbol", "type": "string" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" } ], "name": "OwnershipRenounced", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "constant": false, "inputs": [], "name": "activate", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b50604051610889380380610889833981016040908152815160208301519183015160008054600160a060020a03191633179055909291820191018261007d7f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000610150810204565b600160a060020a038116151561009257600080fd5b6002805433600160a060020a03199182161790915560008054909116600160a060020a0383161790556100ed7f6125ede500000000000000000000000000000000000000000000000000000000640100000000610150810204565b5081516101019060039060208501906101bf565b5080516101159060049060208401906101bf565b506101487ffd155c6700000000000000000000000000000000000000000000000000000000640100000000610150810204565b50505061025a565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561017f57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600160208190526040909120805460ff19169091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020057805160ff191683800117855561022d565b8280016001018555821561022d579182015b8281111561022d578251825591602001919060010190610212565b5061023992915061023d565b5090565b61025791905b808211156102395760008155600101610243565b90565b610620806102696000396000f3006080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146100be57806306fdde03146101095780630f15f4c014610193578063172d02bd146101a8578063186601ca146101ef57806319fa8f50146102045780636f2ddd9314610219578063715018a61461024a5780638da5cb5b1461026157806395d89b4114610276578063f2fde38b1461028b578063fbf964eb146102ac575b600080fd5b3480156100ca57600080fd5b506100f57bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166102c1565b604080519115158252519081900360200190f35b34801561011557600080fd5b5061011e6102f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610158578181015183820152602001610140565b50505050905090810190601f1680156101855780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019f57600080fd5b506100f5610383565b3480156101b457600080fd5b506101bd6103a8565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b3480156101fb57600080fd5b506100f56103cc565b34801561021057600080fd5b506101bd6103ed565b34801561022557600080fd5b5061022e610411565b60408051600160a060020a039092168252519081900360200190f35b34801561025657600080fd5b5061025f610420565b005b34801561026d57600080fd5b5061022e61048c565b34801561028257600080fd5b5061011e61049b565b34801561029757600080fd5b5061025f600160a060020a03600435166104f6565b3480156102b857600080fd5b506101bd610519565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b820191906000526020600020905b81548152906001019060200180831161035e57829003601f168201915b505050505081565b60008054600160a060020a0316331461039b57600080fd5b6103a361053d565b905090565b7ffd155c670000000000000000000000000000000000000000000000000000000081565b60025474010000000000000000000000000000000000000000900460ff1681565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461043757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b600054600160a060020a0316331461050d57600080fd5b61051681610577565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055600190565b600160a060020a038116151561058c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820ab7a40e1b1910d790c070e3bd8577723ffbb2990e6053d814eca209c880054d20029", "deployedBytecode": "0x6080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146100be57806306fdde03146101095780630f15f4c014610193578063172d02bd146101a8578063186601ca146101ef57806319fa8f50146102045780636f2ddd9314610219578063715018a61461024a5780638da5cb5b1461026157806395d89b4114610276578063f2fde38b1461028b578063fbf964eb146102ac575b600080fd5b3480156100ca57600080fd5b506100f57bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166102c1565b604080519115158252519081900360200190f35b34801561011557600080fd5b5061011e6102f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610158578181015183820152602001610140565b50505050905090810190601f1680156101855780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019f57600080fd5b506100f5610383565b3480156101b457600080fd5b506101bd6103a8565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b3480156101fb57600080fd5b506100f56103cc565b34801561021057600080fd5b506101bd6103ed565b34801561022557600080fd5b5061022e610411565b60408051600160a060020a039092168252519081900360200190f35b34801561025657600080fd5b5061025f610420565b005b34801561026d57600080fd5b5061022e61048c565b34801561028257600080fd5b5061011e61049b565b34801561029757600080fd5b5061025f600160a060020a03600435166104f6565b3480156102b857600080fd5b506101bd610519565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b820191906000526020600020905b81548152906001019060200180831161035e57829003601f168201915b505050505081565b60008054600160a060020a0316331461039b57600080fd5b6103a361053d565b905090565b7ffd155c670000000000000000000000000000000000000000000000000000000081565b60025474010000000000000000000000000000000000000000900460ff1681565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461043757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b600054600160a060020a0316331461050d57600080fd5b61051681610577565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055600190565b600160a060020a038116151561058c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820ab7a40e1b1910d790c070e3bd8577723ffbb2990e6053d814eca209c880054d20029", "sourceMap": "82:702:6:-;;;469:215;8:9:-1;5:2;;;30:1;27;20:12;5:2;469:215:6;;;;;;;;;;;;;;;;;;;;;;;;;;567:5:21;:18;;-1:-1:-1;;;;;;567:18:21;575:10;567:18;;;469:215:6;;;;;;;;649:38:18;668:18;649;;;;:38;:::i;:::-;-1:-1:-1;;;;;568:20:4;;;;560:29;;;;;;600:8;:31;;620:10;-1:-1:-1;;;;;;600:31:4;;;;;;;-1:-1:-1;641:14:4;;;;;-1:-1:-1;;;;;641:14:4;;;;;666:40;685:20;666:18;;;;:40;:::i;:::-;-1:-1:-1;591:12:6;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;613:16:6;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;640:37:6;659:17;640:18;;;;:37;:::i;:::-;469:215;;;82:702;;987:156:18;1065:26;;;;;;1057:35;;;;;;1098:33;;;;;;1134:4;1098:33;;;;;;;;:40;;-1:-1:-1;;1098:40:18;;;;;;987:156::o;82:702:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82:702:6;;;-1:-1:-1;82:702:6;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "82:702:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:18;-1:-1:-1;;775:142:18;;;;;;;;;;;;;;;;;;;;;;;418:18:6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;418:18:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;418:18:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;690:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;690:92:6;;;;358:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;358:53:6;;;;;;;;-1:-1:-1;;358:53:6;;;;;;;;;;;;;;53:21:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:21:3;;;;230:54:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:18;;;;484:24:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;484:24:4;;;;;;;;-1:-1:-1;;;;;484:24:4;;;;;;;;;;;;;;1001:111:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:21;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:21;;;;442::6;;8:9:-1;5:2;;;30:1;27;20:12;5:2;442:20:6;;;;1274:103:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:21;-1:-1:-1;;;;;1274:103:21;;;;;421:56:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;421:56:4;;;;775:142:18;-1:-1:-1;;879:33:18;858:4;879:33;;;:19;:33;;;;;;;;;775:142::o;418:18:6:-;;;;;;;;;;;;;;;-1:-1:-1;;418:18:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;690:92::-;736:4;719:5:21;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;759:16:6;:14;:16::i;:::-;752:23;;690:92;:::o;358:53::-;;;:::o;53:21:3:-;;;;;;;;;:::o;230:54:18:-;;;:::o;484:24:4:-;;;-1:-1:-1;;;;;484:24:4;;:::o;1001:111:21:-;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:21;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:21;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:21;;:::o;442::6:-;;;;;;;;;;;;;;;-1:-1:-1;;442:20:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:103:21;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;421:56:4:-;;;:::o;235:96:3:-;287:9;:16;;-1:-1:-1;;287:16:3;;;;;299:4;235:96;:::o;1512:171:21:-;-1:-1:-1;;;;;1582:23:21;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:21;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:21;-1:-1:-1;;;;;1661:17:21;;;;;;;;;;1512:171::o", "source": "pragma solidity ^0.4.24;\n\nimport \"../Contract.sol\";\nimport \"../Activatable.sol\";\n\ncontract Token is Contract, Activatable {\n\n /**\n * @notice this.owner.selector ^ this.renounceOwnership.selector ^ this.transferOwnership.selector\n ^ this.template.selector ^ this.activate.selector\n ^ this.name.selector ^ this.symbol.selector\n */\n bytes4 public constant InterfaceId_Token = 0xfd155c67;\n\n string public name;\n string public symbol;\n\n constructor(\n address _owner,\n string _name,\n string _symbol\n ) public Contract(_owner) {\n name = _name;\n symbol = _symbol;\n\n _registerInterface(InterfaceId_Token);\n }\n\n function activate() onlyOwner public returns (bool) {\n return super.activate();\n }\n}\n", "sourcePath": "tokenboost-solidity/contracts/token/Token.sol", "ast": { "absolutePath": "tokenboost-solidity/contracts/token/Token.sol", "exportedSymbols": { "Token": [ 813 ] }, "id": 814, "nodeType": "SourceUnit", "nodes": [ { "id": 762, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "absolutePath": "tokenboost-solidity/contracts/Contract.sol", "file": "../Contract.sol", "id": 763, "nodeType": "ImportDirective", "scope": 814, "sourceUnit": 557, "src": "26:25:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "tokenboost-solidity/contracts/Activatable.sol", "file": "../Activatable.sol", "id": 764, "nodeType": "ImportDirective", "scope": 814, "sourceUnit": 513, "src": "52:28:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 765, "name": "Contract", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 556, "src": "100:8:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Contract_$556", "typeString": "contract Contract" } }, "id": 766, "nodeType": "InheritanceSpecifier", "src": "100:8:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 767, "name": "Activatable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 512, "src": "110:11:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Activatable_$512", "typeString": "contract Activatable" } }, "id": 768, "nodeType": "InheritanceSpecifier", "src": "110:11:6" } ], "contractDependencies": [ 512, 556, 3831, 3882, 4122 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 813, "linearizedBaseContracts": [ 813, 512, 556, 3882, 3831, 4122 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 771, "name": "InterfaceId_Token", "nodeType": "VariableDeclaration", "scope": 813, "src": "358:53:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 769, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "358:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30786664313535633637", "id": 770, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "401:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4246035559_by_1", "typeString": "int_const 4246035559" }, "value": "0xfd155c67" }, "visibility": "public" }, { "constant": false, "id": 773, "name": "name", "nodeType": "VariableDeclaration", "scope": 813, "src": "418:18:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 772, "name": "string", "nodeType": "ElementaryTypeName", "src": "418:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 775, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 813, "src": "442:20:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 774, "name": "string", "nodeType": "ElementaryTypeName", "src": "442:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "body": { "id": 799, "nodeType": "Block", "src": "581:103:6", "statements": [ { "expression": { "argumentTypes": null, "id": 789, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 787, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "591:4:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 788, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 779, "src": "598:5:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "591:12:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 790, "nodeType": "ExpressionStatement", "src": "591:12:6" }, { "expression": { "argumentTypes": null, "id": 793, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 791, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 775, "src": "613:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 792, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 781, "src": "622:7:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "613:16:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 794, "nodeType": "ExpressionStatement", "src": "613:16:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 796, "name": "InterfaceId_Token", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 771, "src": "659:17:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 795, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3881, "src": "640:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 797, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "640:37:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 798, "nodeType": "ExpressionStatement", "src": "640:37:6" } ] }, "documentation": null, "id": 800, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 784, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 777, "src": "573:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "id": 785, "modifierName": { "argumentTypes": null, "id": 783, "name": "Contract", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 556, "src": "564:8:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Contract_$556_$", "typeString": "type(contract Contract)" } }, "nodeType": "ModifierInvocation", "src": "564:16:6" } ], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 782, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 777, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 800, "src": "490:14:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 776, "name": "address", "nodeType": "ElementaryTypeName", "src": "490:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 779, "name": "_name", "nodeType": "VariableDeclaration", "scope": 800, "src": "514:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 778, "name": "string", "nodeType": "ElementaryTypeName", "src": "514:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 781, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 800, "src": "536:14:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 780, "name": "string", "nodeType": "ElementaryTypeName", "src": "536:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "480:76:6" }, "payable": false, "returnParameters": { "id": 786, "nodeType": "ParameterList", "parameters": [], "src": "581:0:6" }, "scope": 813, "src": "469:215:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 811, "nodeType": "Block", "src": "742:40:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "expression": { "argumentTypes": null, "id": 807, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4966, "src": "759:5:6", "typeDescriptions": { "typeIdentifier": "t_super$_Token_$813", "typeString": "contract super Token" } }, "id": 808, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "activate", "nodeType": "MemberAccess", "referencedDeclaration": 511, "src": "759:14:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$_t_bool_$", "typeString": "function () returns (bool)" } }, "id": 809, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "759:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 806, "id": 810, "nodeType": "Return", "src": "752:23:6" } ] }, "documentation": null, "id": 812, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 803, "modifierName": { "argumentTypes": null, "id": 802, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4070, "src": "710:9:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "710:9:6" } ], "name": "activate", "nodeType": "FunctionDefinition", "parameters": { "id": 801, "nodeType": "ParameterList", "parameters": [], "src": "707:2:6" }, "payable": false, "returnParameters": { "id": 806, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 805, "name": "", "nodeType": "VariableDeclaration", "scope": 812, "src": "736:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 804, "name": "bool", "nodeType": "ElementaryTypeName", "src": "736:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "735:6:6" }, "scope": 813, "src": "690:92:6", "stateMutability": "nonpayable", "superFunction": 511, "visibility": "public" } ], "scope": 814, "src": "82:702:6" } ], "src": "0:785:6" }, "legacyAST": { "absolutePath": "tokenboost-solidity/contracts/token/Token.sol", "exportedSymbols": { "Token": [ 813 ] }, "id": 814, "nodeType": "SourceUnit", "nodes": [ { "id": 762, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "absolutePath": "tokenboost-solidity/contracts/Contract.sol", "file": "../Contract.sol", "id": 763, "nodeType": "ImportDirective", "scope": 814, "sourceUnit": 557, "src": "26:25:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "tokenboost-solidity/contracts/Activatable.sol", "file": "../Activatable.sol", "id": 764, "nodeType": "ImportDirective", "scope": 814, "sourceUnit": 513, "src": "52:28:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 765, "name": "Contract", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 556, "src": "100:8:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Contract_$556", "typeString": "contract Contract" } }, "id": 766, "nodeType": "InheritanceSpecifier", "src": "100:8:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 767, "name": "Activatable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 512, "src": "110:11:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Activatable_$512", "typeString": "contract Activatable" } }, "id": 768, "nodeType": "InheritanceSpecifier", "src": "110:11:6" } ], "contractDependencies": [ 512, 556, 3831, 3882, 4122 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 813, "linearizedBaseContracts": [ 813, 512, 556, 3882, 3831, 4122 ], "name": "Token", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 771, "name": "InterfaceId_Token", "nodeType": "VariableDeclaration", "scope": 813, "src": "358:53:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 769, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "358:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30786664313535633637", "id": 770, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "401:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4246035559_by_1", "typeString": "int_const 4246035559" }, "value": "0xfd155c67" }, "visibility": "public" }, { "constant": false, "id": 773, "name": "name", "nodeType": "VariableDeclaration", "scope": 813, "src": "418:18:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 772, "name": "string", "nodeType": "ElementaryTypeName", "src": "418:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 775, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 813, "src": "442:20:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 774, "name": "string", "nodeType": "ElementaryTypeName", "src": "442:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "public" }, { "body": { "id": 799, "nodeType": "Block", "src": "581:103:6", "statements": [ { "expression": { "argumentTypes": null, "id": 789, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 787, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "591:4:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 788, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 779, "src": "598:5:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "591:12:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 790, "nodeType": "ExpressionStatement", "src": "591:12:6" }, { "expression": { "argumentTypes": null, "id": 793, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 791, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 775, "src": "613:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 792, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 781, "src": "622:7:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "613:16:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 794, "nodeType": "ExpressionStatement", "src": "613:16:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 796, "name": "InterfaceId_Token", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 771, "src": "659:17:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 795, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3881, "src": "640:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 797, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "640:37:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 798, "nodeType": "ExpressionStatement", "src": "640:37:6" } ] }, "documentation": null, "id": 800, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 784, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 777, "src": "573:6:6", "