tokenboost-solidity-erc20token
Version:
Solidity contracts for TokenBoost (ERC20Token)
1,099 lines (1,098 loc) • 55.2 kB
JSON
{
"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": "0x608060405260008054600160a060020a031916331790556106db806100256000396000f30060806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100715780638da5cb5b14610088578063ed3487fe146100b9578063f2fde38b1461018e578063f65a5c1b146101af575b600080fd5b34801561007d57600080fd5b506100866102bb565b005b34801561009457600080fd5b5061009d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156100c557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261008694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506103369650505050505050565b34801561019a57600080fd5b50610086600160a060020a0360043516610423565b3480156101bb57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261024694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506104469650505050505050565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610280578181015183820152602001610268565b50505050905090810190601f1680156102ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600054600160a060020a031633146102d257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461034d57600080fd5b806001846040518082805190602001908083835b602083106103805780518252601f199092019160209182019101610361565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842087519094889450925082918401908083835b602083106103dc5780518252601f1990920191602091820191016103bd565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101909320845161041d9591949190910192509050610614565b50505050565b600054600160a060020a0316331461043a57600080fd5b61044381610597565b50565b60606001836040518082805190602001908083835b6020831061047a5780518252601f19909201916020918201910161045b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842086519094879450925082918401908083835b602083106104d65780518252601f1990920191602091820191016104b7565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188208054601f600260018316159098029095011695909504928301829004820288018201905281875292945092505083018282801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b5050505050905092915050565b600160a060020a03811615156105ac57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061065557805160ff1916838001178555610682565b82800160010185558215610682579182015b82811115610682578251825591602001919060010190610667565b5061068e929150610692565b5090565b6106ac91905b8082111561068e5760008155600101610698565b905600a165627a7a72305820c3e34ec4241964beb215739f65c31917b346e305628ef083f7a7a411d95c40280029",
"deployedBytecode": "0x60806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a681146100715780638da5cb5b14610088578063ed3487fe146100b9578063f2fde38b1461018e578063f65a5c1b146101af575b600080fd5b34801561007d57600080fd5b506100866102bb565b005b34801561009457600080fd5b5061009d610327565b60408051600160a060020a039092168252519081900360200190f35b3480156100c557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261008694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506103369650505050505050565b34801561019a57600080fd5b50610086600160a060020a0360043516610423565b3480156101bb57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261024694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506104469650505050505050565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610280578181015183820152602001610268565b50505050905090810190601f1680156102ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b600054600160a060020a031633146102d257600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461034d57600080fd5b806001846040518082805190602001908083835b602083106103805780518252601f199092019160209182019101610361565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842087519094889450925082918401908083835b602083106103dc5780518252601f1990920191602091820191016103bd565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101909320845161041d9591949190910192509050610614565b50505050565b600054600160a060020a0316331461043a57600080fd5b61044381610597565b50565b60606001836040518082805190602001908083835b6020831061047a5780518252601f19909201916020918201910161045b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842086519094879450925082918401908083835b602083106104d65780518252601f1990920191602091820191016104b7565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188208054601f600260018316159098029095011695909504928301829004820288018201905281875292945092505083018282801561058a5780601f1061055f5761010080835404028352916020019161058a565b820191906000526020600020905b81548152906001019060200180831161056d57829003601f168201915b5050505050905092915050565b600160a060020a03811615156105ac57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061065557805160ff1916838001178555610682565b82800160010185558215610682579182015b82811115610682578251825591602001919060010190610667565b5061068e929150610692565b5090565b6106ac91905b8082111561068e5760008155600101610698565b905600a165627a7a72305820c3e34ec4241964beb215739f65c31917b346e305628ef083f7a7a411d95c40280029",
"sourceMap": "87:353:12:-;;;567:5:21;:18;;-1:-1:-1;;;;;;567:18:21;575:10;567:18;;;87:353:12;;;;;;",
"deployedSourceMap": "87:353:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:21;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:21;;;;;;;;-1:-1:-1;;;;;238:20:21;;;;;;;;;;;;;;186:126:12;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;186:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;186:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:12;;;;-1:-1:-1;186:126:12;-1:-1:-1;186:126:12;;-1:-1:-1;186:126:12;;;;;;;;-1:-1:-1;;186:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:12;;;;-1:-1:-1;186:126:12;-1:-1:-1;186:126:12;;-1:-1:-1;186:126:12;;;;;;;;-1:-1:-1;186:126:12;;-1:-1:-1;186:126:12;;-1:-1:-1;;;;;;;186:126:12;1274:103:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:21;-1:-1:-1;;;;;1274:103:21;;;;;318:120:12;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;318:120:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;318:120:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;318:120:12;;;;-1:-1:-1;318:120:12;-1:-1:-1;318:120:12;;-1:-1:-1;318:120:12;;;;;;;;-1:-1:-1;318:120:12;;-1:-1:-1;318:120:12;;-1:-1:-1;;;;;;;318:120: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;318:120:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:21;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:21;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:21;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:21;;:::o;186:126:12:-;719:5:21;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;300:5:12;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:12;;;;;-1:-1:-1;275:17:12;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;275:17:12;-1:-1:-1;275:17:12;;: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:12;;;;;-1:-1:-1;275:22:12;;;;;;;;;;;:30;;;;:22;;:30;;;;;-1:-1:-1;275:30:12;-1:-1:-1;275:30:12;:::i;:::-;;186:126;;;:::o;1274:103:21:-;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;318:120:12:-;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:12;;;;;-1:-1:-1;409:17:12;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;409:17:12;-1:-1:-1;409:17:12;;: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:12;;;;;;;;;;;;;;;;;;402:29;;;;274:1:-1;402:29:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;409:22;;-1:-1:-1;402:29:12;-1:-1:-1;;402:29:12;;409:22;402:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;318:120;;;;:::o;1512:171:21:-;-1:-1:-1;;;;;1582:23:21;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:21;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:21;-1:-1:-1;;;;;1661:17:21;;;;;;;;;;1512:171::o;87:353:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87:353:12;;;-1:-1:-1;87:353:12;:::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": "tokenboost-solidity/contracts/widget/Localizable.sol",
"ast": {
"absolutePath": "tokenboost-solidity/contracts/widget/Localizable.sol",
"exportedSymbols": {
"Localizable": [
3125
]
},
"id": 3126,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3079,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 3080,
"nodeType": "ImportDirective",
"scope": 3126,
"sourceUnit": 4123,
"src": "26:59:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3081,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4122,
"src": "111:7:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4122",
"typeString": "contract Ownable"
}
},
"id": 3082,
"nodeType": "InheritanceSpecifier",
"src": "111:7:12"
}
],
"contractDependencies": [
4122
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 3125,
"linearizedBaseContracts": [
3125,
4122
],
"name": "Localizable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3088,
"name": "resources",
"nodeType": "VariableDeclaration",
"scope": 3125,
"src": "125:54:12",
"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": 3087,
"keyType": {
"id": 3083,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "133:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "125:44:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$",
"typeString": "mapping(string => mapping(string => string))"
},
"valueType": {
"id": 3086,
"keyType": {
"id": 3084,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "151:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "143:25:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string => string)"
},
"valueType": {
"id": 3085,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "161:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 3107,
"nodeType": "Block",
"src": "265:47:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3105,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 3099,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3088,
"src": "275:9:12",
"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": 3102,
"indexExpression": {
"argumentTypes": null,
"id": 3100,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3090,
"src": "285:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "275:17:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 3103,
"indexExpression": {
"argumentTypes": null,
"id": 3101,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3092,
"src": "293:3:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "275:22:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3104,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3094,
"src": "300:5:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "275:30:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3106,
"nodeType": "ExpressionStatement",
"src": "275:30:12"
}
]
},
"documentation": null,
"id": 3108,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3097,
"modifierName": {
"argumentTypes": null,
"id": 3096,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4070,
"src": "255:9:12",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "255:9:12"
}
],
"name": "setResource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3095,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3090,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "207:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3089,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "207:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3092,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "222:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3091,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "222:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3094,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "234:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3093,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "234:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "206:41:12"
},
"payable": false,
"returnParameters": {
"id": 3098,
"nodeType": "ParameterList",
"parameters": [],
"src": "265:0:12"
},
"scope": 3125,
"src": "186:126:12",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 3123,
"nodeType": "Block",
"src": "392:46:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 3117,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3088,
"src": "409:9:12",
"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": 3119,
"indexExpression": {
"argumentTypes": null,
"id": 3118,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3110,
"src": "419:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:17:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 3121,
"indexExpression": {
"argumentTypes": null,
"id": 3120,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3112,
"src": "427:3:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:22:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"functionReturnParameters": 3116,
"id": 3122,
"nodeType": "Return",
"src": "402:29:12"
}
]
},
"documentation": null,
"id": 3124,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "resource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3113,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3110,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 3124,
"src": "336:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3109,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "336:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3112,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 3124,
"src": "351:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3111,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "351:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "335:27:12"
},
"payable": false,
"returnParameters": {
"id": 3116,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3115,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3124,
"src": "384:6:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3114,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "384:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "383:8:12"
},
"scope": 3125,
"src": "318:120:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 3126,
"src": "87:353:12"
}
],
"src": "0:441:12"
},
"legacyAST": {
"absolutePath": "tokenboost-solidity/contracts/widget/Localizable.sol",
"exportedSymbols": {
"Localizable": [
3125
]
},
"id": 3126,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3079,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 3080,
"nodeType": "ImportDirective",
"scope": 3126,
"sourceUnit": 4123,
"src": "26:59:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3081,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4122,
"src": "111:7:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4122",
"typeString": "contract Ownable"
}
},
"id": 3082,
"nodeType": "InheritanceSpecifier",
"src": "111:7:12"
}
],
"contractDependencies": [
4122
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 3125,
"linearizedBaseContracts": [
3125,
4122
],
"name": "Localizable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3088,
"name": "resources",
"nodeType": "VariableDeclaration",
"scope": 3125,
"src": "125:54:12",
"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": 3087,
"keyType": {
"id": 3083,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "133:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "125:44:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$",
"typeString": "mapping(string => mapping(string => string))"
},
"valueType": {
"id": 3086,
"keyType": {
"id": 3084,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "151:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "143:25:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string => string)"
},
"valueType": {
"id": 3085,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "161:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 3107,
"nodeType": "Block",
"src": "265:47:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3105,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 3099,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3088,
"src": "275:9:12",
"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": 3102,
"indexExpression": {
"argumentTypes": null,
"id": 3100,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3090,
"src": "285:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "275:17:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 3103,
"indexExpression": {
"argumentTypes": null,
"id": 3101,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3092,
"src": "293:3:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "275:22:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 3104,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3094,
"src": "300:5:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "275:30:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 3106,
"nodeType": "ExpressionStatement",
"src": "275:30:12"
}
]
},
"documentation": null,
"id": 3108,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3097,
"modifierName": {
"argumentTypes": null,
"id": 3096,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4070,
"src": "255:9:12",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "255:9:12"
}
],
"name": "setResource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3095,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3090,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "207:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3089,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "207:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3092,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "222:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3091,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "222:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3094,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3108,
"src": "234:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3093,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "234:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "206:41:12"
},
"payable": false,
"returnParameters": {
"id": 3098,
"nodeType": "ParameterList",
"parameters": [],
"src": "265:0:12"
},
"scope": 3125,
"src": "186:126:12",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 3123,
"nodeType": "Block",
"src": "392:46:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 3117,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3088,
"src": "409:9:12",
"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": 3119,
"indexExpression": {
"argumentTypes": null,
"id": 3118,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3110,
"src": "419:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:17:12",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 3121,
"indexExpression": {
"argumentTypes": null,