tokenboost-solidity
Version:
Solidity contracts for TokenBoost
1,226 lines (1,225 loc) • 53 kB
JSON
{
"contractName": "Contract",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "_interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"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": 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"
}
],
"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"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506040516020806104d8833981016040525160008054600160a060020a031916331790556100667f01ffc9a7000000000000000000000000000000000000000000000000000000006401000000006100dc810204565b600160a060020a038116151561007b57600080fd5b6002805433600160a060020a03199182161790915560008054909116600160a060020a0383161790556100d67f6125ede5000000000000000000000000000000000000000000000000000000006401000000006100dc810204565b5061014b565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561010b57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600160208190526040909120805460ff19169091179055565b61037e8061015a6000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461008757806319fa8f50146100d25780636f2ddd9314610119578063715018a61461014a5780638da5cb5b14610161578063f2fde38b14610176578063fbf964eb14610197575b600080fd5b34801561009357600080fd5b506100be7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166101ac565b604080519115158252519081900360200190f35b3480156100de57600080fd5b506100e76101e0565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b34801561012557600080fd5b5061012e610204565b60408051600160a060020a039092168252519081900360200190f35b34801561015657600080fd5b5061015f610213565b005b34801561016d57600080fd5b5061012e61027f565b34801561018257600080fd5b5061015f600160a060020a036004351661028e565b3480156101a357600080fd5b506100e76102b1565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461022a57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a031633146102a557600080fd5b6102ae816102d5565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b600160a060020a03811615156102ea57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820662a96655bbc1063820d18a290094ea20352e7ea4fcc087c89d52a6c923aa42c0029",
"deployedBytecode": "0x6080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461008757806319fa8f50146100d25780636f2ddd9314610119578063715018a61461014a5780638da5cb5b14610161578063f2fde38b14610176578063fbf964eb14610197575b600080fd5b34801561009357600080fd5b506100be7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166101ac565b604080519115158252519081900360200190f35b3480156100de57600080fd5b506100e76101e0565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b34801561012557600080fd5b5061012e610204565b60408051600160a060020a039092168252519081900360200190f35b34801561015657600080fd5b5061015f610213565b005b34801561016d57600080fd5b5061012e61027f565b34801561018257600080fd5b5061015f600160a060020a036004351661028e565b3480156101a357600080fd5b506100e76102b1565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526001602052604090205460ff1690565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b600254600160a060020a031681565b600054600160a060020a0316331461022a57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a031633146102a557600080fd5b6102ae816102d5565b50565b7f6125ede50000000000000000000000000000000000000000000000000000000081565b600160a060020a03811615156102ea57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820662a96655bbc1063820d18a290094ea20352e7ea4fcc087c89d52a6c923aa42c0029",
"sourceMap": "205:510:2:-;;;515:198;8:9:-1;5:2;;;30:1;27;20:12;5:2;515:198:2;;;;;;;;;;;;;567:5:22;:18;;-1:-1:-1;;;;;;567:18:22;575:10;567:18;;;649:38:20;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;:::-;515:198;205:510;;987:156:20;1065:26;;;;;;1057:35;;;;;;1098:33;;;;;;1134:4;1098:33;;;;;;;;:40;;-1:-1:-1;;1098:40:20;;;;;;987:156::o;205:510:2:-;;;;;;;",
"deployedSourceMap": "205:510:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:142:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;775:142:20;-1:-1:-1;;775:142:20;;;;;;;;;;;;;;;;;;;;;;;230:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;230:54:20;;;;;;;;-1:-1:-1;;230:54:20;;;;;;;;;;;;;;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:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:22;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:22;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:22;-1:-1:-1;;;;;1274:103:22;;;;;421:56:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;421:56:2;;;;775:142:20;-1:-1:-1;;879:33:20;858:4;879:33;;;:19;:33;;;;;;;;;775:142::o;230:54::-;;;:::o;484:24:2:-;;;-1:-1:-1;;;;;484:24:2;;:::o;1001:111:22:-;719:5;;-1:-1:-1;;;;;719:5:22;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:22;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:22;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:22;;:::o;1274:103::-;719:5;;-1:-1:-1;;;;;719:5:22;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;421:56:2:-;;;:::o;1512:171:22:-;-1:-1:-1;;;;;1582:23:22;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:22;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:22;-1:-1:-1;;;;;1661:17:22;;;;;;;;;;1512:171::o",
"source": "pragma solidity ^0.4.24;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport \"zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol\";\nimport \"./template/Template.sol\";\n\ncontract Contract is Ownable, SupportsInterfaceWithLookup {\n /**\n * @notice this.owner.selector ^ this.renounceOwnership.selector ^ this.transferOwnership.selector\n ^ this.template.selector\n */\n bytes4 public constant InterfaceId_Contract = 0x6125ede5;\n\n Template public template;\n\n constructor(address _owner) public {\n require(_owner != address(0));\n\n template = Template(msg.sender);\n owner = _owner;\n\n _registerInterface(InterfaceId_Contract);\n }\n}\n",
"sourcePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Contract.sol",
"ast": {
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Contract.sol",
"exportedSymbols": {
"Contract": [
89
]
},
"id": 90,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 47,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:2"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 48,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 4885,
"src": "26:59:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"file": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"id": 49,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 4705,
"src": "86:83:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/template/Template.sol",
"file": "./template/Template.sol",
"id": 50,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 1689,
"src": "170:33:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 51,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4884,
"src": "226:7:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4884",
"typeString": "contract Ownable"
}
},
"id": 52,
"nodeType": "InheritanceSpecifier",
"src": "226:7:2"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 53,
"name": "SupportsInterfaceWithLookup",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4704,
"src": "235:27:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SupportsInterfaceWithLookup_$4704",
"typeString": "contract SupportsInterfaceWithLookup"
}
},
"id": 54,
"nodeType": "InheritanceSpecifier",
"src": "235:27:2"
}
],
"contractDependencies": [
4653,
4704,
4884
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 89,
"linearizedBaseContracts": [
89,
4704,
4653,
4884
],
"name": "Contract",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 57,
"name": "InterfaceId_Contract",
"nodeType": "VariableDeclaration",
"scope": 89,
"src": "421:56:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 55,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "421:6:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783631323565646535",
"id": 56,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "467:10:2",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1629875685_by_1",
"typeString": "int_const 1629875685"
},
"value": "0x6125ede5"
},
"visibility": "public"
},
{
"constant": false,
"id": 59,
"name": "template",
"nodeType": "VariableDeclaration",
"scope": 89,
"src": "484:24:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
},
"typeName": {
"contractScope": null,
"id": 58,
"name": "Template",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1688,
"src": "484:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 87,
"nodeType": "Block",
"src": "550:163:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 69,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 65,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 61,
"src": "568:6:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 67,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "586:1:2",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 66,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "578:7:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 68,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "578:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "568:20:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 64,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
6576,
6577
],
"referencedDeclaration": 6576,
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 70,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:29:2",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 71,
"nodeType": "ExpressionStatement",
"src": "560:29:2"
},
{
"expression": {
"argumentTypes": null,
"id": 77,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 72,
"name": "template",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 59,
"src": "600:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 74,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6573,
"src": "620:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 75,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "620:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 73,
"name": "Template",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1688,
"src": "611:8:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Template_$1688_$",
"typeString": "type(contract Template)"
}
},
"id": 76,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "611:20:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"src": "600:31:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"id": 78,
"nodeType": "ExpressionStatement",
"src": "600:31:2"
},
{
"expression": {
"argumentTypes": null,
"id": 81,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 79,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4802,
"src": "641:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 80,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 61,
"src": "649:6:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "641:14:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 82,
"nodeType": "ExpressionStatement",
"src": "641:14:2"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 84,
"name": "InterfaceId_Contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 57,
"src": "685:20:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 83,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4703,
"src": "666:18:2",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$",
"typeString": "function (bytes4)"
}
},
"id": 85,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "666:40:2",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 86,
"nodeType": "ExpressionStatement",
"src": "666:40:2"
}
]
},
"documentation": null,
"id": 88,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 62,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 61,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "527:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 60,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "527:7:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "526:16:2"
},
"payable": false,
"returnParameters": {
"id": 63,
"nodeType": "ParameterList",
"parameters": [],
"src": "550:0:2"
},
"scope": 89,
"src": "515:198:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 90,
"src": "205:510:2"
}
],
"src": "0:716:2"
},
"legacyAST": {
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/Contract.sol",
"exportedSymbols": {
"Contract": [
89
]
},
"id": 90,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 47,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:2"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 48,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 4885,
"src": "26:59:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"file": "zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol",
"id": 49,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 4705,
"src": "86:83:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/template/Template.sol",
"file": "./template/Template.sol",
"id": 50,
"nodeType": "ImportDirective",
"scope": 90,
"sourceUnit": 1689,
"src": "170:33:2",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 51,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4884,
"src": "226:7:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4884",
"typeString": "contract Ownable"
}
},
"id": 52,
"nodeType": "InheritanceSpecifier",
"src": "226:7:2"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 53,
"name": "SupportsInterfaceWithLookup",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4704,
"src": "235:27:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SupportsInterfaceWithLookup_$4704",
"typeString": "contract SupportsInterfaceWithLookup"
}
},
"id": 54,
"nodeType": "InheritanceSpecifier",
"src": "235:27:2"
}
],
"contractDependencies": [
4653,
4704,
4884
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 89,
"linearizedBaseContracts": [
89,
4704,
4653,
4884
],
"name": "Contract",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 57,
"name": "InterfaceId_Contract",
"nodeType": "VariableDeclaration",
"scope": 89,
"src": "421:56:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 55,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "421:6:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": {
"argumentTypes": null,
"hexValue": "30783631323565646535",
"id": 56,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "467:10:2",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1629875685_by_1",
"typeString": "int_const 1629875685"
},
"value": "0x6125ede5"
},
"visibility": "public"
},
{
"constant": false,
"id": 59,
"name": "template",
"nodeType": "VariableDeclaration",
"scope": 89,
"src": "484:24:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
},
"typeName": {
"contractScope": null,
"id": 58,
"name": "Template",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1688,
"src": "484:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 87,
"nodeType": "Block",
"src": "550:163:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 69,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 65,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 61,
"src": "568:6:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 67,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "586:1:2",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 66,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "578:7:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 68,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "578:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "568:20:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 64,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
6576,
6577
],
"referencedDeclaration": 6576,
"src": "560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 70,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:29:2",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 71,
"nodeType": "ExpressionStatement",
"src": "560:29:2"
},
{
"expression": {
"argumentTypes": null,
"id": 77,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 72,
"name": "template",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 59,
"src": "600:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 74,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6573,
"src": "620:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 75,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "620:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 73,
"name": "Template",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1688,
"src": "611:8:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Template_$1688_$",
"typeString": "type(contract Template)"
}
},
"id": 76,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "611:20:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"src": "600:31:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Template_$1688",
"typeString": "contract Template"
}
},
"id": 78,
"nodeType": "ExpressionStatement",
"src": "600:31:2"
},
{
"expression": {
"argumentTypes": null,
"id": 81,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 79,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4802,
"src": "641:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 80,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 61,
"src": "649:6:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "641:14:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 82,
"nodeType": "ExpressionStatement",
"src": "641:14:2"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 84,
"name": "InterfaceId_Contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 57,
"src": "685:20:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"id": 83,
"name": "_registerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4703,
"src": "666:18:2",
"typeDescriptions": {