UNPKG

tokenboost-solidity

Version:
1,096 lines 55.3 kB
{ "contractName": "Localizable", "abi": [ { "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" }, { "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": "locale", "type": "string" }, { "name": "key", "type": "string" }, { "name": "value", "type": "string" } ], "name": "setResource", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "locale", "type": "string" }, { "name": "key", "type": "string" } ], "name": "resource", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x608060405260008054600160a060020a031916331790556106db806100256000396000f30060806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100715780638da5cb5b14610088578063ed3487fe146100b9578063f2fde38b1461018e578063f65a5c1b146101af575b600080fd5b34801561007d57600080fd5b506100866102bb565b005b34801561009457600080fd5b5061009d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156100c557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261008694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506103369650505050505050565b34801561019a57600080fd5b50610086600160a060020a0360043516610423565b3480156101bb57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261024694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506104469650505050505050565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610280578181015183820152602001610268565b50505050905090810190601f1680156102ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600054600160a060020a031633146102d257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461034d57600080fd5b806001846040518082805190602001908083835b602083106103805780518252601f199092019160209182019101610361565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842087519094889450925082918401908083835b602083106103dc5780518252601f1990920191602091820191016103bd565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101909320845161041d9591949190910192509050610614565b50505050565b600054600160a060020a0316331461043a57600080fd5b61044381610597565b50565b60606001836040518082805190602001908083835b6020831061047a5780518252601f19909201916020918201910161045b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842086519094879450925082918401908083835b602083106104d65780518252601f1990920191602091820191016104b7565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188208054601f600260018316159098029095011695909504928301829004820288018201905281875292945092505083018282801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b5050505050905092915050565b600160a060020a03811615156105ac57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061065557805160ff1916838001178555610682565b82800160010185558215610682579182015b82811115610682578251825591602001919060010190610667565b5061068e929150610692565b5090565b6106ac91905b8082111561068e5760008155600101610698565b905600a165627a7a723058208d660d3d92af30c80bd7e6cc6d5d157b8435e5cb60b3835d36fd35675e3a1a710029", "deployedBytecode": "0x60806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100715780638da5cb5b14610088578063ed3487fe146100b9578063f2fde38b1461018e578063f65a5c1b146101af575b600080fd5b34801561007d57600080fd5b506100866102bb565b005b34801561009457600080fd5b5061009d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156100c557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261008694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506103369650505050505050565b34801561019a57600080fd5b50610086600160a060020a0360043516610423565b3480156101bb57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261024694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506104469650505050505050565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610280578181015183820152602001610268565b50505050905090810190601f1680156102ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600054600160a060020a031633146102d257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461034d57600080fd5b806001846040518082805190602001908083835b602083106103805780518252601f199092019160209182019101610361565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842087519094889450925082918401908083835b602083106103dc5780518252601f1990920191602091820191016103bd565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101909320845161041d9591949190910192509050610614565b50505050565b600054600160a060020a0316331461043a57600080fd5b61044381610597565b50565b60606001836040518082805190602001908083835b6020831061047a5780518252601f19909201916020918201910161045b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842086519094879450925082918401908083835b602083106104d65780518252601f1990920191602091820191016104b7565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188208054601f600260018316159098029095011695909504928301829004820288018201905281875292945092505083018282801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b5050505050905092915050565b600160a060020a03811615156105ac57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061065557805160ff1916838001178555610682565b82800160010185558215610682579182015b82811115610682578251825591602001919060010190610667565b5061068e929150610692565b5090565b6106ac91905b8082111561068e5760008155600101610698565b905600a165627a7a723058208d660d3d92af30c80bd7e6cc6d5d157b8435e5cb60b3835d36fd35675e3a1a710029", "sourceMap": "87:353:26:-;;;567:5:34;:18;;-1:-1:-1;;;;;;567:18:34;575:10;567:18;;;87:353:26;;;;;;", "deployedSourceMap": "87:353:26:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:34;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:34;;;;;;;;-1:-1:-1;;;;;238:20:34;;;;;;;;;;;;;;186:126:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;186:126:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;186:126:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:26;;;;-1:-1:-1;186:126:26;-1:-1:-1;186:126:26;;-1:-1:-1;186:126:26;;;;;;;;-1:-1:-1;;186:126:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:26;;;;-1:-1:-1;186:126:26;-1:-1:-1;186:126:26;;-1:-1:-1;186:126:26;;;;;;;;-1:-1:-1;186:126:26;;-1:-1:-1;186:126:26;;-1:-1:-1;;;;;;;186:126:26;1274:103:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:34;-1:-1:-1;;;;;1274:103:34;;;;;318:120:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;318:120:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;318:120:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;318:120:26;;;;-1:-1:-1;318:120:26;-1:-1:-1;318:120:26;;-1:-1:-1;318:120:26;;;;;;;;-1:-1:-1;318:120:26;;-1:-1:-1;318:120:26;;-1:-1:-1;;;;;;;318:120:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;318:120:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:34;719:5;;-1:-1:-1;;;;;719:5:34;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:34;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:34;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:34;;:::o;186:126:26:-;719:5:34;;-1:-1:-1;;;;;719:5:34;705:10;:19;697:28;;;;;;300:5:26;275:9;285:6;275:17;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;275:17:26;;;;;-1:-1:-1;275:17:26;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;275:17:26;-1:-1:-1;275:17:26;;:22;;;;:17;:22;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;275:22:26;;;;;-1:-1:-1;275:22:26;;;;;;;;;;;:30;;;;:22;;:30;;;;;-1:-1:-1;275:30:26;-1:-1:-1;275:30:26;:::i;:::-;;186:126;;;:::o;1274:103:34:-;719:5;;-1:-1:-1;;;;;719:5:34;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;318:120:26:-;384:6;409:9;419:6;409:17;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;409:17:26;;;;;-1:-1:-1;409:17:26;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;409:17:26;-1:-1:-1;409:17:26;;:22;;;;:17;:22;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;-1:-1;;263:2;259:12;;;254:3;250:22;;;246:30;;340:21;;;311:9;;295:26;;;;377:20;;;;365:33;;;409:22:26;;;;;;;;;;;;;;;;;;402:29;;;;274:1:-1;402:29:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;409:22;;-1:-1:-1;402:29:26;-1:-1:-1;;402:29:26;;409:22;402:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;318:120;;;;:::o;1512:171:34:-;-1:-1:-1;;;;;1582:23:34;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:34;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:34;-1:-1:-1;;;;;1661:17:34;;;;;;;;;;1512:171::o;87:353:26:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87:353:26;;;-1:-1:-1;87:353:26;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o", "source": "pragma solidity ^0.4.24;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\n\ncontract Localizable is Ownable {\n mapping(string => mapping(string => string)) resources;\n\n function setResource(string locale, string key, string value) public onlyOwner {\n resources[locale][key] = value;\n }\n\n function resource(string locale, string key) public view returns (string) {\n return resources[locale][key];\n }\n}\n", "sourcePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/widget/Localizable.sol", "ast": { "absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/widget/Localizable.sol", "exportedSymbols": { "Localizable": [ 4626 ] }, "id": 4627, "nodeType": "SourceUnit", "nodes": [ { "id": 4580, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:26" }, { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "file": "zeppelin-solidity/contracts/ownership/Ownable.sol", "id": 4581, "nodeType": "ImportDirective", "scope": 4627, "sourceUnit": 5430, "src": "26:59:26", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4582, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5429, "src": "111:7:26", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$5429", "typeString": "contract Ownable" } }, "id": 4583, "nodeType": "InheritanceSpecifier", "src": "111:7:26" } ], "contractDependencies": [ 5429 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 4626, "linearizedBaseContracts": [ 4626, 5429 ], "name": "Localizable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4589, "name": "resources", "nodeType": "VariableDeclaration", "scope": 4626, "src": "125:54:26", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string => mapping(string => string))" }, "typeName": { "id": 4588, "keyType": { "id": 4584, "name": "string", "nodeType": "ElementaryTypeName", "src": "133:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "nodeType": "Mapping", "src": "125:44:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string => mapping(string => string))" }, "valueType": { "id": 4587, "keyType": { "id": 4585, "name": "string", "nodeType": "ElementaryTypeName", "src": "151:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "nodeType": "Mapping", "src": "143:25:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string => string)" }, "valueType": { "id": 4586, "name": "string", "nodeType": "ElementaryTypeName", "src": "161:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } } } }, "value": null, "visibility": "internal" }, { "body": { "id": 4608, "nodeType": "Block", "src": "265:47:26", "statements": [ { "expression": { "argumentTypes": null, "id": 4606, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4600, "name": "resources", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4589, "src": "275:9:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string memory => mapping(string memory => string storage ref))" } }, "id": 4603, "indexExpression": { "argumentTypes": null, "id": 4601, "name": "locale", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4591, "src": "285:6:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "275:17:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string memory => string storage ref)" } }, "id": 4604, "indexExpression": { "argumentTypes": null, "id": 4602, "name": "key", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4593, "src": "293:3:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "275:22:26", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 4605, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4595, "src": "300:5:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "275:30:26", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 4607, "nodeType": "ExpressionStatement", "src": "275:30:26" } ] }, "documentation": null, "id": 4609, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 4598, "modifierName": { "argumentTypes": null, "id": 4597, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5377, "src": "255:9:26", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "255:9:26" } ], "name": "setResource", "nodeType": "FunctionDefinition", "parameters": { "id": 4596, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4591, "name": "locale", "nodeType": "VariableDeclaration", "scope": 4609, "src": "207:13:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4590, "name": "string", "nodeType": "ElementaryTypeName", "src": "207:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4593, "name": "key", "nodeType": "VariableDeclaration", "scope": 4609, "src": "222:10:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4592, "name": "string", "nodeType": "ElementaryTypeName", "src": "222:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4595, "name": "value", "nodeType": "VariableDeclaration", "scope": 4609, "src": "234:12:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4594, "name": "string", "nodeType": "ElementaryTypeName", "src": "234:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "206:41:26" }, "payable": false, "returnParameters": { "id": 4599, "nodeType": "ParameterList", "parameters": [], "src": "265:0:26" }, "scope": 4626, "src": "186:126:26", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 4624, "nodeType": "Block", "src": "392:46:26", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4618, "name": "resources", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4589, "src": "409:9:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string memory => mapping(string memory => string storage ref))" } }, "id": 4620, "indexExpression": { "argumentTypes": null, "id": 4619, "name": "locale", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4611, "src": "419:6:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "409:17:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string memory => string storage ref)" } }, "id": 4622, "indexExpression": { "argumentTypes": null, "id": 4621, "name": "key", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4613, "src": "427:3:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "409:22:26", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 4617, "id": 4623, "nodeType": "Return", "src": "402:29:26" } ] }, "documentation": null, "id": 4625, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "resource", "nodeType": "FunctionDefinition", "parameters": { "id": 4614, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4611, "name": "locale", "nodeType": "VariableDeclaration", "scope": 4625, "src": "336:13:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4610, "name": "string", "nodeType": "ElementaryTypeName", "src": "336:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4613, "name": "key", "nodeType": "VariableDeclaration", "scope": 4625, "src": "351:10:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4612, "name": "string", "nodeType": "ElementaryTypeName", "src": "351:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "335:27:26" }, "payable": false, "returnParameters": { "id": 4617, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4616, "name": "", "nodeType": "VariableDeclaration", "scope": 4625, "src": "384:6:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4615, "name": "string", "nodeType": "ElementaryTypeName", "src": "384:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "383:8:26" }, "scope": 4626, "src": "318:120:26", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 4627, "src": "87:353:26" } ], "src": "0:441:26" }, "legacyAST": { "absolutePath": "/Users/yoonjae/SolidityProjects/tokenboost-solidity/contracts/widget/Localizable.sol", "exportedSymbols": { "Localizable": [ 4626 ] }, "id": 4627, "nodeType": "SourceUnit", "nodes": [ { "id": 4580, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:26" }, { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "file": "zeppelin-solidity/contracts/ownership/Ownable.sol", "id": 4581, "nodeType": "ImportDirective", "scope": 4627, "sourceUnit": 5430, "src": "26:59:26", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 4582, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5429, "src": "111:7:26", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$5429", "typeString": "contract Ownable" } }, "id": 4583, "nodeType": "InheritanceSpecifier", "src": "111:7:26" } ], "contractDependencies": [ 5429 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 4626, "linearizedBaseContracts": [ 4626, 5429 ], "name": "Localizable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4589, "name": "resources", "nodeType": "VariableDeclaration", "scope": 4626, "src": "125:54:26", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string => mapping(string => string))" }, "typeName": { "id": 4588, "keyType": { "id": 4584, "name": "string", "nodeType": "ElementaryTypeName", "src": "133:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "nodeType": "Mapping", "src": "125:44:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string => mapping(string => string))" }, "valueType": { "id": 4587, "keyType": { "id": 4585, "name": "string", "nodeType": "ElementaryTypeName", "src": "151:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "nodeType": "Mapping", "src": "143:25:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string => string)" }, "valueType": { "id": 4586, "name": "string", "nodeType": "ElementaryTypeName", "src": "161:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } } } }, "value": null, "visibility": "internal" }, { "body": { "id": 4608, "nodeType": "Block", "src": "265:47:26", "statements": [ { "expression": { "argumentTypes": null, "id": 4606, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4600, "name": "resources", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4589, "src": "275:9:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string memory => mapping(string memory => string storage ref))" } }, "id": 4603, "indexExpression": { "argumentTypes": null, "id": 4601, "name": "locale", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4591, "src": "285:6:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "275:17:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string memory => string storage ref)" } }, "id": 4604, "indexExpression": { "argumentTypes": null, "id": 4602, "name": "key", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4593, "src": "293:3:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "275:22:26", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 4605, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4595, "src": "300:5:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "275:30:26", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 4607, "nodeType": "ExpressionStatement", "src": "275:30:26" } ] }, "documentation": null, "id": 4609, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 4598, "modifierName": { "argumentTypes": null, "id": 4597, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5377, "src": "255:9:26", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "255:9:26" } ], "name": "setResource", "nodeType": "FunctionDefinition", "parameters": { "id": 4596, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4591, "name": "locale", "nodeType": "VariableDeclaration", "scope": 4609, "src": "207:13:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4590, "name": "string", "nodeType": "ElementaryTypeName", "src": "207:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4593, "name": "key", "nodeType": "VariableDeclaration", "scope": 4609, "src": "222:10:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4592, "name": "string", "nodeType": "ElementaryTypeName", "src": "222:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4595, "name": "value", "nodeType": "VariableDeclaration", "scope": 4609, "src": "234:12:26", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4594, "name": "string", "nodeType": "ElementaryTypeName", "src": "234:6:26", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "206:41:26" }, "payable": false, "returnParameters": { "id": 4599, "nodeType": "ParameterList", "parameters": [], "src": "265:0:26" }, "scope": 4626, "src": "186:126:26", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 4624, "nodeType": "Block", "src": "392:46:26", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 4618, "name": "resources", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4589, "src": "409:9:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$", "typeString": "mapping(string memory => mapping(string memory => string storage ref))" } }, "id": 4620, "indexExpression": { "argumentTypes": null, "id": 4619, "name": "locale", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4611, "src": "419:6:26", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "409:17:26", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", "typeString": "mapping(string memory => string storage ref)" } }, "id": 4622