@dnextco/tokenboost-solidity-erc223token
Version:
Solidity contracts for TokenBoost (ERC223Token)
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:33:-;;;567:5:43;:18;;-1:-1:-1;;;;;;567:18:43;575:10;567:18;;;87:353:33;;;;;;",
"deployedSourceMap": "87:353:33:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:43;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:43;;;;;;;;-1:-1:-1;;;;;238:20:43;;;;;;;;;;;;;;186:126:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;186:126:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;186:126:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:33;;;;-1:-1:-1;186:126:33;-1:-1:-1;186:126:33;;-1:-1:-1;186:126:33;;;;;;;;-1:-1:-1;;186:126:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:126:33;;;;-1:-1:-1;186:126:33;-1:-1:-1;186:126:33;;-1:-1:-1;186:126:33;;;;;;;;-1:-1:-1;186:126:33;;-1:-1:-1;186:126:33;;-1:-1:-1;;;;;;;186:126:33;1274:103:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:43;-1:-1:-1;;;;;1274:103:43;;;;;318:120:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;318:120:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;318:120:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;318:120:33;;;;-1:-1:-1;318:120:33;-1:-1:-1;318:120:33;;-1:-1:-1;318:120:33;;;;;;;;-1:-1:-1;318:120:33;;-1:-1:-1;318:120:33;;-1:-1:-1;;;;;;;318:120:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111:43;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:43;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:43;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:43;;:::o;186:126:33:-;719:5:43;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;300:5:33;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:33;;;;;-1:-1:-1;275:17:33;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;275:17:33;-1:-1:-1;275:17:33;;: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:33;;;;;-1:-1:-1;275:22:33;;;;;;;;;;;:30;;;;:22;;:30;;;;;-1:-1:-1;275:30:33;-1:-1:-1;275:30:33;:::i;:::-;;186:126;;;:::o;1274:103:43:-;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;318:120:33:-;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:33;;;;;-1:-1:-1;409:17:33;;;;;;;;;;:22;;:17;;:22;;-1:-1:-1;409:17:33;-1:-1:-1;409:17:33;;: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:33;;;;;;;;;;;;;;;;;;402:29;;;;274:1:-1;402:29:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;409:22;;-1:-1:-1;402:29:33;-1:-1:-1;;402:29:33;;409:22;402:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;318:120;;;;:::o;1512:171:43:-;-1:-1:-1;;;;;1582:23:43;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:43;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:43;-1:-1:-1;;;;;1661:17:43;;;;;;;;;;1512:171::o;87:353:33:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87:353:33;;;-1:-1:-1;87:353:33;:::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": [
5881
]
},
"id": 5882,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5835,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:33"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 5836,
"nodeType": "ImportDirective",
"scope": 5882,
"sourceUnit": 6903,
"src": "26:59:33",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 5837,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 6902,
"src": "111:7:33",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$6902",
"typeString": "contract Ownable"
}
},
"id": 5838,
"nodeType": "InheritanceSpecifier",
"src": "111:7:33"
}
],
"contractDependencies": [
6902
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 5881,
"linearizedBaseContracts": [
5881,
6902
],
"name": "Localizable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 5844,
"name": "resources",
"nodeType": "VariableDeclaration",
"scope": 5881,
"src": "125:54:33",
"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": 5843,
"keyType": {
"id": 5839,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "133:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "125:44:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$",
"typeString": "mapping(string => mapping(string => string))"
},
"valueType": {
"id": 5842,
"keyType": {
"id": 5840,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "151:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "143:25:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string => string)"
},
"valueType": {
"id": 5841,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "161:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 5863,
"nodeType": "Block",
"src": "265:47:33",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5861,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5855,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5844,
"src": "275:9:33",
"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": 5858,
"indexExpression": {
"argumentTypes": null,
"id": 5856,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5846,
"src": "285:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "275:17:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 5859,
"indexExpression": {
"argumentTypes": null,
"id": 5857,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5848,
"src": "293:3:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "275:22:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 5860,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5850,
"src": "300:5:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "275:30:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 5862,
"nodeType": "ExpressionStatement",
"src": "275:30:33"
}
]
},
"documentation": null,
"id": 5864,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5853,
"modifierName": {
"argumentTypes": null,
"id": 5852,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6850,
"src": "255:9:33",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "255:9:33"
}
],
"name": "setResource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5851,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5846,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "207:13:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5845,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "207:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5848,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "222:10:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5847,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "222:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5850,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "234:12:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5849,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "234:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "206:41:33"
},
"payable": false,
"returnParameters": {
"id": 5854,
"nodeType": "ParameterList",
"parameters": [],
"src": "265:0:33"
},
"scope": 5881,
"src": "186:126:33",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5879,
"nodeType": "Block",
"src": "392:46:33",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5873,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5844,
"src": "409:9:33",
"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": 5875,
"indexExpression": {
"argumentTypes": null,
"id": 5874,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5866,
"src": "419:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:17:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 5877,
"indexExpression": {
"argumentTypes": null,
"id": 5876,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5868,
"src": "427:3:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:22:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"functionReturnParameters": 5872,
"id": 5878,
"nodeType": "Return",
"src": "402:29:33"
}
]
},
"documentation": null,
"id": 5880,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "resource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5869,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5866,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 5880,
"src": "336:13:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5865,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "336:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5868,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 5880,
"src": "351:10:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5867,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "351:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "335:27:33"
},
"payable": false,
"returnParameters": {
"id": 5872,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5871,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 5880,
"src": "384:6:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5870,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "384:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "383:8:33"
},
"scope": 5881,
"src": "318:120:33",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 5882,
"src": "87:353:33"
}
],
"src": "0:441:33"
},
"legacyAST": {
"absolutePath": "tokenboost-solidity/contracts/widget/Localizable.sol",
"exportedSymbols": {
"Localizable": [
5881
]
},
"id": 5882,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5835,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:33"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"id": 5836,
"nodeType": "ImportDirective",
"scope": 5882,
"sourceUnit": 6903,
"src": "26:59:33",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 5837,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 6902,
"src": "111:7:33",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$6902",
"typeString": "contract Ownable"
}
},
"id": 5838,
"nodeType": "InheritanceSpecifier",
"src": "111:7:33"
}
],
"contractDependencies": [
6902
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 5881,
"linearizedBaseContracts": [
5881,
6902
],
"name": "Localizable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 5844,
"name": "resources",
"nodeType": "VariableDeclaration",
"scope": 5881,
"src": "125:54:33",
"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": 5843,
"keyType": {
"id": 5839,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "133:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "125:44:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_mapping$_t_string_memory_$_t_string_storage_$_$",
"typeString": "mapping(string => mapping(string => string))"
},
"valueType": {
"id": 5842,
"keyType": {
"id": 5840,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "151:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "143:25:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string => string)"
},
"valueType": {
"id": 5841,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "161:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 5863,
"nodeType": "Block",
"src": "265:47:33",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5861,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5855,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5844,
"src": "275:9:33",
"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": 5858,
"indexExpression": {
"argumentTypes": null,
"id": 5856,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5846,
"src": "285:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "275:17:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 5859,
"indexExpression": {
"argumentTypes": null,
"id": 5857,
"name": "key",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5848,
"src": "293:3:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "275:22:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 5860,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5850,
"src": "300:5:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "275:30:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 5862,
"nodeType": "ExpressionStatement",
"src": "275:30:33"
}
]
},
"documentation": null,
"id": 5864,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5853,
"modifierName": {
"argumentTypes": null,
"id": 5852,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6850,
"src": "255:9:33",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "255:9:33"
}
],
"name": "setResource",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5851,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5846,
"name": "locale",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "207:13:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5845,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "207:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5848,
"name": "key",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "222:10:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5847,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "222:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5850,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 5864,
"src": "234:12:33",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 5849,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "234:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "206:41:33"
},
"payable": false,
"returnParameters": {
"id": 5854,
"nodeType": "ParameterList",
"parameters": [],
"src": "265:0:33"
},
"scope": 5881,
"src": "186:126:33",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5879,
"nodeType": "Block",
"src": "392:46:33",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 5873,
"name": "resources",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5844,
"src": "409:9:33",
"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": 5875,
"indexExpression": {
"argumentTypes": null,
"id": 5874,
"name": "locale",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5866,
"src": "419:6:33",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "409:17:33",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$",
"typeString": "mapping(string memory => string storage ref)"
}
},
"id": 5877,
"indexExpression": {
"argumentTypes": null,