@dnextco/tokenboost-solidity-erc223token
Version:
Solidity contracts for TokenBoost (ERC223Token)
1,224 lines (1,223 loc) • 59.9 kB
JSON
{
"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:25:-;;;469:215;8:9:-1;5:2;;;30:1;27;20:12;5:2;469:215:25;;;;;;;;;;;;;;;;;;;;;;;;;;567:5:43;:18;;-1:-1:-1;;;;;;567:18:43;575:10;567:18;;;469:215:25;;;;;;;;649:38:40;668:18;649;;;;:38;:::i;:::-;-1:-1:-1;;;;;568:20:22;;;;560:29;;;;;;600:8;:31;;620:10;-1:-1:-1;;;;;;600:31:22;;;;;;;-1:-1:-1;641:14:22;;;;;-1:-1:-1;;;;;641:14:22;;;;;666:40;685:20;666:18;;;;:40;:::i;:::-;-1:-1:-1;591:12:25;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;613:16:25;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;640:37:25;659:17;640:18;;;;:37;:::i;:::-;469:215;;;82:702;;987:156:40;1065:26;;;;;;1057:35;;;;;;1098:33;;;;;;1134:4;1098:33;;;;;;;;:40;;-1:-1:-1;;1098:40:40;;;;;;987:156::o;82:702:25:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82:702:25;;;-1:-1:-1;82:702:25;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;",
"deployedSourceMap": "82:702:25:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:40;-1:-1:-1;;775:142:40;;;;;;;;;;;;;;;;;;;;;;;418:18:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;418:18:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;690:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;690:92:25;;;;358:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;358:53:25;;;;;;;;-1:-1:-1;;358:53:25;;;;;;;;;;;;;;53:21:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:21:21;;;;230:54:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:40;;;;484:24:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;484:24:22;;;;;;;;-1:-1:-1;;;;;484:24:22;;;;;;;;;;;;;;1001:111:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:43;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:43;;;;442::25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;442:20:25;;;;1274:103:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:43;-1:-1:-1;;;;;1274:103:43;;;;;421:56:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;421:56:22;;;;775:142:40;-1:-1:-1;;879:33:40;858:4;879:33;;;:19;:33;;;;;;;;;775:142::o;418:18:25:-;;;;;;;;;;;;;;;-1:-1:-1;;418:18:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;690:92::-;736:4;719:5:43;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;759:16:25;:14;:16::i;:::-;752:23;;690:92;:::o;358:53::-;;;:::o;53:21:21:-;;;;;;;;;:::o;230:54:40:-;;;:::o;484:24:22:-;;;-1:-1:-1;;;;;484:24:22;;:::o;1001:111:43:-;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:43;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:43;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:43;;:::o;442::25:-;;;;;;;;;;;;;;;-1:-1:-1;;442:20:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:103:43;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;421:56:22:-;;;:::o;235:96:21:-;287:9;:16;;-1:-1:-1;;287:16:21;;;;;299:4;235:96;:::o;1512:171:43:-;-1:-1:-1;;;;;1582:23:43;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:43;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:43;-1:-1:-1;;;;;1661:17:43;;;;;;;;;;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": [
3520
]
},
"id": 3521,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3469,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:25"
},
{
"absolutePath": "tokenboost-solidity/contracts/Contract.sol",
"file": "../Contract.sol",
"id": 3470,
"nodeType": "ImportDirective",
"scope": 3521,
"sourceUnit": 3213,
"src": "26:25:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "tokenboost-solidity/contracts/Activatable.sol",
"file": "../Activatable.sol",
"id": 3471,
"nodeType": "ImportDirective",
"scope": 3521,
"sourceUnit": 3169,
"src": "52:28:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3472,
"name": "Contract",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 3212,
"src": "100:8:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Contract_$3212",
"typeString": "contract Contract"
}
},
"id": 3473,
"nodeType": "InheritanceSpecifier",
"src": "100:8:25"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3474,
"name": "Activatable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 3168,
"src": "110:11:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Activatable_$3168",
"typeString": "contract Activatable"
}
},
"id": 3475,
"nodeType": "InheritanceSpecifier",
"src": "110:11:25"
}
],
"contractDependencies": [
3168,
3212,
6611,
6662,
6902
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 3520,
"linearizedBaseContracts": [
3520,
3168,
3212,
6662,
6611,
6902
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 3478,
"name": "InterfaceId_Token",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "358:53:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 3476,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "358:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30786664313535633637",
"id": 3477,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "401:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4246035559_by_1",
"typeString": "int_const 4246035559"
},
"value": "0xfd155c67"
},
"visibility": "public"
},
{
"constant": false,
"id": 3480,
"name": "name",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "418:18:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 3479,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "418:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 3482,
"name": "symbol",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "442:20:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 3481,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "442:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 3506,
"nodeType": "Block",
"src": "581:103:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3496,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3494,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3480,
"src": "591:4:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3495,
"name": "_name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3486,
"src": "598:5:25",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "591:12:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3497,
"nodeType": "ExpressionStatement",
"src": "591:12:25"
},
{
"expression": {
"argumentTypes": null,
"id": 3500,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3498,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3482,
"src": "613:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3499,
"name": "_symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3488,
"src": "622:7:25",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "613:16:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3501,
"nodeType": "ExpressionStatement",
"src": "613:16:25"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3503,
"name": "InterfaceId_Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3478,
"src": "659:17:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 3502,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6661,
"src": "640:18:25",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 3504,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "640:37:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3505,
"nodeType": "ExpressionStatement",
"src": "640:37:25"
}
]
},
"documentation": null,
"id": 3507,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 3491,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3484,
"src": "573:6:25",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"id": 3492,
"modifierName": {
"argumentTypes": null,
"id": 3490,
"name": "Contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3212,
"src": "564:8:25",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Contract_$3212_$",
"typeString": "type(contract Contract)"
}
},
"nodeType": "ModifierInvocation",
"src": "564:16:25"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3489,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3484,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 3507,
"src": "490:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3483,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "490:7:25",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3486,
"name": "_name",
"nodeType": "VariableDeclaration",
"scope": 3507,
"src": "514:12:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3485,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "514:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3488,
"name": "_symbol",
"nodeType": "VariableDeclaration",
"scope": 3507,
"src": "536:14:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3487,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "536:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "480:76:25"
},
"payable": false,
"returnParameters": {
"id": 3493,
"nodeType": "ParameterList",
"parameters": [],
"src": "581:0:25"
},
"scope": 3520,
"src": "469:215:25",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 3518,
"nodeType": "Block",
"src": "742:40:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 3514,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7712,
"src": "759:5:25",
"typeDescriptions": {
"typeIdentifier": "t_super$_Token_$3520",
"typeString": "contract super Token"
}
},
"id": 3515,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "activate",
"nodeType": "MemberAccess",
"referencedDeclaration": 3167,
"src": "759:14:25",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$_t_bool_$",
"typeString": "function () returns (bool)"
}
},
"id": 3516,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "759:16:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 3513,
"id": 3517,
"nodeType": "Return",
"src": "752:23:25"
}
]
},
"documentation": null,
"id": 3519,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3510,
"modifierName": {
"argumentTypes": null,
"id": 3509,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6850,
"src": "710:9:25",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "710:9:25"
}
],
"name": "activate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3508,
"nodeType": "ParameterList",
"parameters": [],
"src": "707:2:25"
},
"payable": false,
"returnParameters": {
"id": 3513,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3512,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3519,
"src": "736:4:25",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3511,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "736:4:25",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "735:6:25"
},
"scope": 3520,
"src": "690:92:25",
"stateMutability": "nonpayable",
"superFunction": 3167,
"visibility": "public"
}
],
"scope": 3521,
"src": "82:702:25"
}
],
"src": "0:785:25"
},
"legacyAST": {
"absolutePath": "tokenboost-solidity/contracts/token/Token.sol",
"exportedSymbols": {
"Token": [
3520
]
},
"id": 3521,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3469,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:25"
},
{
"absolutePath": "tokenboost-solidity/contracts/Contract.sol",
"file": "../Contract.sol",
"id": 3470,
"nodeType": "ImportDirective",
"scope": 3521,
"sourceUnit": 3213,
"src": "26:25:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "tokenboost-solidity/contracts/Activatable.sol",
"file": "../Activatable.sol",
"id": 3471,
"nodeType": "ImportDirective",
"scope": 3521,
"sourceUnit": 3169,
"src": "52:28:25",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3472,
"name": "Contract",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 3212,
"src": "100:8:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Contract_$3212",
"typeString": "contract Contract"
}
},
"id": 3473,
"nodeType": "InheritanceSpecifier",
"src": "100:8:25"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3474,
"name": "Activatable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 3168,
"src": "110:11:25",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Activatable_$3168",
"typeString": "contract Activatable"
}
},
"id": 3475,
"nodeType": "InheritanceSpecifier",
"src": "110:11:25"
}
],
"contractDependencies": [
3168,
3212,
6611,
6662,
6902
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 3520,
"linearizedBaseContracts": [
3520,
3168,
3212,
6662,
6611,
6902
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 3478,
"name": "InterfaceId_Token",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "358:53:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 3476,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "358:6:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30786664313535633637",
"id": 3477,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "401:10:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4246035559_by_1",
"typeString": "int_const 4246035559"
},
"value": "0xfd155c67"
},
"visibility": "public"
},
{
"constant": false,
"id": 3480,
"name": "name",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "418:18:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 3479,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "418:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 3482,
"name": "symbol",
"nodeType": "VariableDeclaration",
"scope": 3520,
"src": "442:20:25",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 3481,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "442:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 3506,
"nodeType": "Block",
"src": "581:103:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3496,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3494,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3480,
"src": "591:4:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3495,
"name": "_name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3486,
"src": "598:5:25",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "591:12:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3497,
"nodeType": "ExpressionStatement",
"src": "591:12:25"
},
{
"expression": {
"argumentTypes": null,
"id": 3500,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3498,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3482,
"src": "613:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3499,
"name": "_symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3488,
"src": "622:7:25",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "613:16:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3501,
"nodeType": "ExpressionStatement",
"src": "613:16:25"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3503,
"name": "InterfaceId_Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3478,
"src": "659:17:25",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 3502,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6661,
"src": "640:18:25",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 3504,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "640:37:25",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3505,
"nodeType": "ExpressionStatement",
"src": "640:37:25"
}
]
},
"documentation": null,
"id": 3507,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,