tokenboost-solidity
Version:
Solidity contracts for TokenBoost
1,218 lines • 60 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": "0x608060405234801561001057600080fd5b50604051610889380380610889833981016040908152815160208301519183015160008054600160a060020a03191633179055909291820191018261007d7f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000610150810204565b600160a060020a038116151561009257600080fd5b6002805433600160a060020a03199182161790915560008054909116600160a060020a0383161790556100ed7f6125ede500000000000000000000000000000000000000000000000000000000640100000000610150810204565b5081516101019060039060208501906101bf565b5080516101159060049060208401906101bf565b506101487ffd155c6700000000000000000000000000000000000000000000000000000000640100000000610150810204565b50505061025a565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561017f57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600160208190526040909120805460ff19169091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020057805160ff191683800117855561022d565b8280016001018555821561022d579182015b8281111561022d578251825591602001919060010190610212565b5061023992915061023d565b5090565b61025791905b808211156102395760008155600101610243565b90565b610620806102696000396000f3006080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146100be57806306fdde03146101095780630f15f4c014610193578063172d02bd146101a8578063186601ca146101ef57806319fa8f50146102045780636f2ddd9314610219578063715018a61461024a5780638da5cb5b1461026157806395d89b4114610276578063f2fde38b1461028b578063fbf964eb146102ac575b600080fd5b3480156100ca57600080fd5b506100f57bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166102c1565b604080519115158252519081900360200190f35b34801561011557600080fd5b5061011e6102f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610158578181015183820152602001610140565b50505050905090810190601f1680156101855780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019f57600080fd5b506100f5610383565b3480156101b457600080fd5b506101bd6103a8565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b3480156101fb57600080fd5b506100f56103cc565b34801561021057600080fd5b506101bd6103ed565b34801561022557600080fd5b5061022e610411565b60408051600160a060020a039092168252519081900360200190f35b34801561025657600080fd5b5061025f610420565b005b34801561026d57600080fd5b5061022e61048c565b34801561028257600080fd5b5061011e61049b565b34801561029757600080fd5b5061025f600160a060020a03600435166104f6565b3480156102b857600080fd5b506101bd610519565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b820191906000526020600020905b81548152906001019060200180831161035e57829003601f168201915b505050505081565b60008054600160a060020a0316331461039b57600080fd5b6103a361053d565b905090565b7ffd155c670000000000000000000000000000000000000000000000000000000081565b60025474010000000000000000000000000000000000000000900460ff1681565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461043757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b600054600160a060020a0316331461050d57600080fd5b61051681610577565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055600190565b600160a060020a038116151561058c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b2c90e63821b9513f05184ddfc1eeb74cc8276d36f9826c35f9750b417829f890029",
"deployedBytecode": "0x6080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146100be57806306fdde03146101095780630f15f4c014610193578063172d02bd146101a8578063186601ca146101ef57806319fa8f50146102045780636f2ddd9314610219578063715018a61461024a5780638da5cb5b1461026157806395d89b4114610276578063f2fde38b1461028b578063fbf964eb146102ac575b600080fd5b3480156100ca57600080fd5b506100f57bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166102c1565b604080519115158252519081900360200190f35b34801561011557600080fd5b5061011e6102f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610158578181015183820152602001610140565b50505050905090810190601f1680156101855780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019f57600080fd5b506100f5610383565b3480156101b457600080fd5b506101bd6103a8565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b3480156101fb57600080fd5b506100f56103cc565b34801561021057600080fd5b506101bd6103ed565b34801561022557600080fd5b5061022e610411565b60408051600160a060020a039092168252519081900360200190f35b34801561025657600080fd5b5061025f610420565b005b34801561026d57600080fd5b5061022e61048c565b34801561028257600080fd5b5061011e61049b565b34801561029757600080fd5b5061025f600160a060020a03600435166104f6565b3480156102b857600080fd5b506101bd610519565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b820191906000526020600020905b81548152906001019060200180831161035e57829003601f168201915b505050505081565b60008054600160a060020a0316331461039b57600080fd5b6103a361053d565b905090565b7ffd155c670000000000000000000000000000000000000000000000000000000081565b60025474010000000000000000000000000000000000000000900460ff1681565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461043757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561037b5780601f106103505761010080835404028352916020019161037b565b600054600160a060020a0316331461050d57600080fd5b61051681610577565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055600190565b600160a060020a038116151561058c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b2c90e63821b9513f05184ddfc1eeb74cc8276d36f9826c35f9750b417829f890029",
"sourceMap": "82:702:12:-;;;469:215;8:9:-1;5:2;;;30:1;27;20:12;5:2;469:215:12;;;;;;;;;;;;;;;;;;;;;;;;;;567:5:24;:18;;-1:-1:-1;;;;;;567:18:24;575:10;567:18;;;469:215:12;;;;;;;;649:38:22;668:18;649;;;;:38;:::i;:::-;-1:-1:-1;;;;;568:20:2;;;;560:29;;;;;;600:8;:31;;620:10;-1:-1:-1;;;;;;600:31:2;;;;;;;-1:-1:-1;641:14:2;;;;;-1:-1:-1;;;;;641:14:2;;;;;666:40;685:20;666:18;;;;:40;:::i;:::-;-1:-1:-1;591:12:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;613:16:12;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;640:37:12;659:17;640:18;;;;:37;:::i;:::-;469:215;;;82:702;;987:156:22;1065:26;;;;;;1057:35;;;;;;1098:33;;;;;;1134:4;1098:33;;;;;;;;:40;;-1:-1:-1;;1098:40:22;;;;;;987:156::o;82:702:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82:702:12;;;-1:-1:-1;82:702:12;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;",
"deployedSourceMap": "82:702:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:22;-1:-1:-1;;775:142:22;;;;;;;;;;;;;;;;;;;;;;;418:18:12;;8:9:-1;5:2;;;30:1;27;20:12;5:2;418:18:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;690:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;690:92:12;;;;358:53;;8:9:-1;5:2;;;30:1;27;20:12;5:2;358:53:12;;;;;;;;-1:-1:-1;;358:53:12;;;;;;;;;;;;;;53:21:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:21:0;;;;230:54:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:22;;;;484:24:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;484:24:2;;;;;;;;-1:-1:-1;;;;;484:24:2;;;;;;;;;;;;;;1001:111:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:24;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:24;;;;442::12;;8:9:-1;5:2;;;30:1;27;20:12;5:2;442:20:12;;;;1274:103:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:24;-1:-1:-1;;;;;1274:103:24;;;;;421:56:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;421:56:2;;;;775:142:22;-1:-1:-1;;879:33:22;858:4;879:33;;;:19;:33;;;;;;;;;775:142::o;418:18:12:-;;;;;;;;;;;;;;;-1:-1:-1;;418:18:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;690:92::-;736:4;719:5:24;;-1:-1:-1;;;;;719:5:24;705:10;:19;697:28;;;;;;759:16:12;:14;:16::i;:::-;752:23;;690:92;:::o;358:53::-;;;:::o;53:21:0:-;;;;;;;;;:::o;230:54:22:-;;;:::o;484:24:2:-;;;-1:-1:-1;;;;;484:24:2;;:::o;1001:111:24:-;719:5;;-1:-1:-1;;;;;719:5:24;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:24;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:24;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:24;;:::o;442::12:-;;;;;;;;;;;;;;;-1:-1:-1;;442:20:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:103:24;719:5;;-1:-1:-1;;;;;719:5:24;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;421:56:2:-;;;:::o;235:96:0:-;287:9;:16;;-1:-1:-1;;287:16:0;;;;;299:4;235:96;:::o;1512:171:24:-;-1:-1:-1;;;;;1582:23:24;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:24;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:24;-1:-1:-1;;;;;1661:17:24;;;;;;;;;;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": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/token/Token.sol",
"ast": {
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/token/Token.sol",
"exportedSymbols": {
"Token": [
1885
]
},
"id": 1886,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1834,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Contract.sol",
"file": "../Contract.sol",
"id": 1835,
"nodeType": "ImportDirective",
"scope": 1886,
"sourceUnit": 90,
"src": "26:25:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Activatable.sol",
"file": "../Activatable.sol",
"id": 1836,
"nodeType": "ImportDirective",
"scope": 1886,
"sourceUnit": 34,
"src": "52:28:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1837,
"name": "Contract",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 89,
"src": "100:8:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Contract_$89",
"typeString": "contract Contract"
}
},
"id": 1838,
"nodeType": "InheritanceSpecifier",
"src": "100:8:12"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1839,
"name": "Activatable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 33,
"src": "110:11:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Activatable_$33",
"typeString": "contract Activatable"
}
},
"id": 1840,
"nodeType": "InheritanceSpecifier",
"src": "110:11:12"
}
],
"contractDependencies": [
33,
89,
4697,
4748,
4928
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1885,
"linearizedBaseContracts": [
1885,
33,
89,
4748,
4697,
4928
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 1843,
"name": "InterfaceId_Token",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "358:53:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 1841,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "358:6:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30786664313535633637",
"id": 1842,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "401:10:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4246035559_by_1",
"typeString": "int_const 4246035559"
},
"value": "0xfd155c67"
},
"visibility": "public"
},
{
"constant": false,
"id": 1845,
"name": "name",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "418:18:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 1844,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "418:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 1847,
"name": "symbol",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "442:20:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 1846,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "442:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 1871,
"nodeType": "Block",
"src": "581:103:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1861,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1859,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1845,
"src": "591:4:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1860,
"name": "_name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1851,
"src": "598:5:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "591:12:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 1862,
"nodeType": "ExpressionStatement",
"src": "591:12:12"
},
{
"expression": {
"argumentTypes": null,
"id": 1865,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1863,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1847,
"src": "613:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1864,
"name": "_symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1853,
"src": "622:7:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "613:16:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 1866,
"nodeType": "ExpressionStatement",
"src": "613:16:12"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1868,
"name": "InterfaceId_Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1843,
"src": "659:17:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 1867,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4747,
"src": "640:18:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 1869,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "640:37:12",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1870,
"nodeType": "ExpressionStatement",
"src": "640:37:12"
}
]
},
"documentation": null,
"id": 1872,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 1856,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1849,
"src": "573:6:12",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"id": 1857,
"modifierName": {
"argumentTypes": null,
"id": 1855,
"name": "Contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 89,
"src": "564:8:12",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Contract_$89_$",
"typeString": "type(contract Contract)"
}
},
"nodeType": "ModifierInvocation",
"src": "564:16:12"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1854,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1849,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 1872,
"src": "490:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1848,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "490:7:12",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1851,
"name": "_name",
"nodeType": "VariableDeclaration",
"scope": 1872,
"src": "514:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1850,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "514:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1853,
"name": "_symbol",
"nodeType": "VariableDeclaration",
"scope": 1872,
"src": "536:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1852,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "536:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "480:76:12"
},
"payable": false,
"returnParameters": {
"id": 1858,
"nodeType": "ParameterList",
"parameters": [],
"src": "581:0:12"
},
"scope": 1885,
"src": "469:215:12",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 1883,
"nodeType": "Block",
"src": "742:40:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 1879,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6689,
"src": "759:5:12",
"typeDescriptions": {
"typeIdentifier": "t_super$_Token_$1885",
"typeString": "contract super Token"
}
},
"id": 1880,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "activate",
"nodeType": "MemberAccess",
"referencedDeclaration": 32,
"src": "759:14:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$_t_bool_$",
"typeString": "function () returns (bool)"
}
},
"id": 1881,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "759:16:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 1878,
"id": 1882,
"nodeType": "Return",
"src": "752:23:12"
}
]
},
"documentation": null,
"id": 1884,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 1875,
"modifierName": {
"argumentTypes": null,
"id": 1874,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4876,
"src": "710:9:12",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "710:9:12"
}
],
"name": "activate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1873,
"nodeType": "ParameterList",
"parameters": [],
"src": "707:2:12"
},
"payable": false,
"returnParameters": {
"id": 1878,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1877,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1884,
"src": "736:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1876,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "736:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "735:6:12"
},
"scope": 1885,
"src": "690:92:12",
"stateMutability": "nonpayable",
"superFunction": 32,
"visibility": "public"
}
],
"scope": 1886,
"src": "82:702:12"
}
],
"src": "0:785:12"
},
"legacyAST": {
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/token/Token.sol",
"exportedSymbols": {
"Token": [
1885
]
},
"id": 1886,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1834,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Contract.sol",
"file": "../Contract.sol",
"id": 1835,
"nodeType": "ImportDirective",
"scope": 1886,
"sourceUnit": 90,
"src": "26:25:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Activatable.sol",
"file": "../Activatable.sol",
"id": 1836,
"nodeType": "ImportDirective",
"scope": 1886,
"sourceUnit": 34,
"src": "52:28:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1837,
"name": "Contract",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 89,
"src": "100:8:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Contract_$89",
"typeString": "contract Contract"
}
},
"id": 1838,
"nodeType": "InheritanceSpecifier",
"src": "100:8:12"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1839,
"name": "Activatable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 33,
"src": "110:11:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Activatable_$33",
"typeString": "contract Activatable"
}
},
"id": 1840,
"nodeType": "InheritanceSpecifier",
"src": "110:11:12"
}
],
"contractDependencies": [
33,
89,
4697,
4748,
4928
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1885,
"linearizedBaseContracts": [
1885,
33,
89,
4748,
4697,
4928
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 1843,
"name": "InterfaceId_Token",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "358:53:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 1841,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "358:6:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30786664313535633637",
"id": 1842,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "401:10:12",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_4246035559_by_1",
"typeString": "int_const 4246035559"
},
"value": "0xfd155c67"
},
"visibility": "public"
},
{
"constant": false,
"id": 1845,
"name": "name",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "418:18:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 1844,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "418:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 1847,
"name": "symbol",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "442:20:12",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 1846,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "442:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 1871,
"nodeType": "Block",
"src": "581:103:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 1861,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1859,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1845,
"src": "591:4:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1860,
"name": "_name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1851,
"src": "598:5:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "591:12:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 1862,
"nodeType": "ExpressionStatement",
"src": "591:12:12"
},
{
"expression": {
"argumentTypes": null,
"id": 1865,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 1863,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1847,
"src": "613:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 1864,
"name": "_symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1853,
"src": "622:7:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "613:16:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 1866,
"nodeType": "ExpressionStatement",
"src": "613:16:12"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1868,
"name": "InterfaceId_Token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1843,
"src": "659:17:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 1867,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4747,
"src": "640:18:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 1869,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "640:37:12",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1870,
"nodeType": "ExpressionStatement",
"src": "640:37:12"
}
]
},
"documentation": null,
"id": 1872,
"implemented": true,
"isConstructor": true,
"isDeclaredConst"