diff --git a/packages/client/src/_theme.scss b/packages/client/src/_theme.scss index 3ef6e75e..1065a3f6 100644 --- a/packages/client/src/_theme.scss +++ b/packages/client/src/_theme.scss @@ -1 +1 @@ -$cellSize: 72px; \ No newline at end of file +$cellSize: 48px; \ No newline at end of file diff --git a/packages/client/src/pages/game/index.tsx b/packages/client/src/pages/game/index.tsx index 78ffa8a3..29598a9b 100644 --- a/packages/client/src/pages/game/index.tsx +++ b/packages/client/src/pages/game/index.tsx @@ -44,7 +44,7 @@ const Game = () => { const navigate = useNavigate(); const { components: { Player, PlayerAddon, BattleList, BoxList, GlobalConfig, LootList1, LootList2, PlayerLocationLock, PlayerSeason, SyncProgress }, - systemCalls: { move, openBox, revealBox, getCollections, battleInvitation, unlockUserLocation, submitGem, goHome }, + systemCalls: { move, openBox, revealBox, getCollections, battleInvitation, unlockUserLocation, submitGem, goHome, joinBattlefield }, network, } = useMUD(); @@ -256,7 +256,7 @@ const Game = () => { message.success('You win the battle'); } else { // 对方跑了 - message.info('Target has escaped'); + message.info('Target has escaped,You are locked'); timeout = setTimeout(() => { unlockUserLocation(); timeout = null @@ -383,10 +383,26 @@ const Game = () => { setUserInfoVisible(true); } + const goHomeFun = async () => { + if (!curPlayer.waiting) { + try { + await goHome(); + await joinBattlefield() + } catch (error) { + console.log(error) + } + } else { + console.log('waiting') + setTimeout(() => { + goHomeFun(); + }, 500) + } + } + const submitGemFun = async () => { setUserInfoVisible(true); try { - goHome(); + goHomeFun() if (curPlayer.oreBalance > 0) { await submitGem(); setContent( diff --git a/packages/client/src/pages/home/index.tsx b/packages/client/src/pages/home/index.tsx index f6ecfd04..6c546ff6 100644 --- a/packages/client/src/pages/home/index.tsx +++ b/packages/client/src/pages/home/index.tsx @@ -21,7 +21,6 @@ import indexDuckImg from '@/assets/img/duck_index.svg'; import lootAbi from '../../../../contracts/out/Loot.sol/MLoot.abi.json' import userAbi from '../../../../contracts/out/User.sol/MUser.abi.json' import pluginAbi from '../../../../contracts/out/Plugin.sol/MPlugin.abi.json' -import { async } from 'rxjs'; let userContract: any let lootContract: any @@ -223,10 +222,14 @@ const Home = () => { }) await mint() } - // if (curPlayer?.state >= 2) { - // navigate('/game'); - // return; - // } + if (curPlayer?.state >= 2) { + navigate('/game'); + return; + } else if (curPlayer?.state == 1) { + await joinBattlefield() + navigate('/game'); + return + } let userTokenId = userTokenIds[userTokenIds?.length - 1].toString() let lootTokenId = lootTokenIds[lootTokenIds?.length - 1].toString() diff --git a/packages/client/src/pages/test/index.jsx b/packages/client/src/pages/test/index.jsx index fac71f19..c7940df2 100644 --- a/packages/client/src/pages/test/index.jsx +++ b/packages/client/src/pages/test/index.jsx @@ -317,7 +317,7 @@ const Test = () => { setBattlesData(battlesDataTemp) } - const CreateBoxFun = async (boxi) => { + const CreateBoxMoreFun = async (boxi) => { if (boxi == undefined) boxi = 0 let box = boxData1[boxi] console.log(box, 'box', boxi,boxData1 ) @@ -332,6 +332,10 @@ const Test = () => { } } + const CreateBoxFun = async () => { + CreateBox(boxData[0], boxData[1]); + } + const openBoxFun = () => { openBox(boxId); } @@ -496,14 +500,20 @@ const Test = () => {
确认
+
+
批量创建宝箱
+
+
CreateBoxMoreFun(0)}>确认
+
创建宝箱
boxChange(e, 0)} placeholder='x' /> boxChange(e, 1)} placeholder='y' />
-
CreateBoxFun(0)}>确认
+
确认
+
打开宝箱
diff --git a/packages/contracts/mud.config.ts b/packages/contracts/mud.config.ts index 0c8e23ec..90d184d8 100644 --- a/packages/contracts/mud.config.ts +++ b/packages/contracts/mud.config.ts @@ -58,8 +58,6 @@ export default mudConfig({ addr: "address", }, schema: { - suitId : "uint256", - equipmentId : "uint256", x : "uint16", y : "uint16", hp : "uint256", @@ -75,7 +73,6 @@ export default mudConfig({ maxHp: "uint256", name: "string", url: "string", - } }, PlayerAddon:{ diff --git a/packages/contracts/out/IWorld.sol/IWorld.json b/packages/contracts/out/IWorld.sol/IWorld.json index bda29724..40cf72b2 100644 --- a/packages/contracts/out/IWorld.sol/IWorld.json +++ b/packages/contracts/out/IWorld.sol/IWorld.json @@ -3451,47 +3451,47 @@ }, "ast": { "absolutePath": "src/codegen/world/IWorld.sol", - "id": 119346, + "id": 118826, "exportedSymbols": { "IBaseWorld": [ 71348 ], "IBattleForceSystem": [ - 119076 + 118556 ], "IBattleInfoSystem": [ - 119088 + 118568 ], "IBattlePrepareSystem": [ - 119122 + 118602 ], "IBattleSystem": [ - 119141 + 118621 ], "IBoxSystem": [ - 119163 + 118643 ], "IGMSystem": [ - 119199 + 118679 ], "IGameSystem": [ - 119205 + 118685 ], "IMoveSystem": [ - 119220 + 118700 ], "IPlayerSystem": [ - 119301 + 118781 ], "IWorld": [ - 119345 + 118825 ] }, "nodeType": "SourceUnit", "src": "32:952:169", "nodes": [ { - "id": 119303, + "id": 118783, "nodeType": "PragmaDirective", "src": "32:24:169", "nodes": [], @@ -3503,19 +3503,19 @@ ] }, { - "id": 119305, + "id": 118785, "nodeType": "ImportDirective", "src": "107:77:169", "nodes": [], "absolutePath": "node_modules/@latticexyz/world/src/interfaces/IBaseWorld.sol", "file": "@latticexyz/world/src/interfaces/IBaseWorld.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, + "scope": 118826, "sourceUnit": 71349, "symbolAliases": [ { "foreign": { - "id": 119304, + "id": 118784, "name": "IBaseWorld", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -3529,23 +3529,23 @@ "unitAlias": "" }, { - "id": 119307, + "id": 118787, "nodeType": "ImportDirective", "src": "186:62:169", "nodes": [], "absolutePath": "src/codegen/world/IBattleForceSystem.sol", "file": "./IBattleForceSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119077, + "scope": 118826, + "sourceUnit": 118557, "symbolAliases": [ { "foreign": { - "id": 119306, + "id": 118786, "name": "IBattleForceSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119076, + "referencedDeclaration": 118556, "src": "195:18:169", "typeDescriptions": {} }, @@ -3555,23 +3555,23 @@ "unitAlias": "" }, { - "id": 119309, + "id": 118789, "nodeType": "ImportDirective", "src": "249:60:169", "nodes": [], "absolutePath": "src/codegen/world/IBattleInfoSystem.sol", "file": "./IBattleInfoSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119089, + "scope": 118826, + "sourceUnit": 118569, "symbolAliases": [ { "foreign": { - "id": 119308, + "id": 118788, "name": "IBattleInfoSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119088, + "referencedDeclaration": 118568, "src": "258:17:169", "typeDescriptions": {} }, @@ -3581,23 +3581,23 @@ "unitAlias": "" }, { - "id": 119311, + "id": 118791, "nodeType": "ImportDirective", "src": "310:66:169", "nodes": [], "absolutePath": "src/codegen/world/IBattlePrepareSystem.sol", "file": "./IBattlePrepareSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119123, + "scope": 118826, + "sourceUnit": 118603, "symbolAliases": [ { "foreign": { - "id": 119310, + "id": 118790, "name": "IBattlePrepareSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119122, + "referencedDeclaration": 118602, "src": "319:20:169", "typeDescriptions": {} }, @@ -3607,23 +3607,23 @@ "unitAlias": "" }, { - "id": 119313, + "id": 118793, "nodeType": "ImportDirective", "src": "377:52:169", "nodes": [], "absolutePath": "src/codegen/world/IBattleSystem.sol", "file": "./IBattleSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119142, + "scope": 118826, + "sourceUnit": 118622, "symbolAliases": [ { "foreign": { - "id": 119312, + "id": 118792, "name": "IBattleSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 118621, "src": "386:13:169", "typeDescriptions": {} }, @@ -3633,23 +3633,23 @@ "unitAlias": "" }, { - "id": 119315, + "id": 118795, "nodeType": "ImportDirective", "src": "430:46:169", "nodes": [], "absolutePath": "src/codegen/world/IBoxSystem.sol", "file": "./IBoxSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119164, + "scope": 118826, + "sourceUnit": 118644, "symbolAliases": [ { "foreign": { - "id": 119314, + "id": 118794, "name": "IBoxSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119163, + "referencedDeclaration": 118643, "src": "439:10:169", "typeDescriptions": {} }, @@ -3659,23 +3659,23 @@ "unitAlias": "" }, { - "id": 119317, + "id": 118797, "nodeType": "ImportDirective", "src": "477:48:169", "nodes": [], "absolutePath": "src/codegen/world/IGameSystem.sol", "file": "./IGameSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119206, + "scope": 118826, + "sourceUnit": 118686, "symbolAliases": [ { "foreign": { - "id": 119316, + "id": 118796, "name": "IGameSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119205, + "referencedDeclaration": 118685, "src": "486:11:169", "typeDescriptions": {} }, @@ -3685,23 +3685,23 @@ "unitAlias": "" }, { - "id": 119319, + "id": 118799, "nodeType": "ImportDirective", "src": "526:44:169", "nodes": [], "absolutePath": "src/codegen/world/IGMSystem.sol", "file": "./IGMSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119200, + "scope": 118826, + "sourceUnit": 118680, "symbolAliases": [ { "foreign": { - "id": 119318, + "id": 118798, "name": "IGMSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119199, + "referencedDeclaration": 118679, "src": "535:9:169", "typeDescriptions": {} }, @@ -3711,23 +3711,23 @@ "unitAlias": "" }, { - "id": 119321, + "id": 118801, "nodeType": "ImportDirective", "src": "571:48:169", "nodes": [], "absolutePath": "src/codegen/world/IMoveSystem.sol", "file": "./IMoveSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119221, + "scope": 118826, + "sourceUnit": 118701, "symbolAliases": [ { "foreign": { - "id": 119320, + "id": 118800, "name": "IMoveSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119220, + "referencedDeclaration": 118700, "src": "580:11:169", "typeDescriptions": {} }, @@ -3737,23 +3737,23 @@ "unitAlias": "" }, { - "id": 119323, + "id": 118803, "nodeType": "ImportDirective", "src": "620:52:169", "nodes": [], "absolutePath": "src/codegen/world/IPlayerSystem.sol", "file": "./IPlayerSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 119346, - "sourceUnit": 119302, + "scope": 118826, + "sourceUnit": 118782, "symbolAliases": [ { "foreign": { - "id": 119322, + "id": 118802, "name": "IPlayerSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119301, + "referencedDeclaration": 118781, "src": "629:13:169", "typeDescriptions": {} }, @@ -3763,7 +3763,7 @@ "unitAlias": "" }, { - "id": 119345, + "id": 118825, "nodeType": "ContractDefinition", "src": "788:195:169", "nodes": [], @@ -3771,121 +3771,121 @@ "baseContracts": [ { "baseName": { - "id": 119325, + "id": 118805, "name": "IBaseWorld", "nodeType": "IdentifierPath", "referencedDeclaration": 71348, "src": "810:10:169" }, - "id": 119326, + "id": 118806, "nodeType": "InheritanceSpecifier", "src": "810:10:169" }, { "baseName": { - "id": 119327, + "id": 118807, "name": "IBattleForceSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119076, + "referencedDeclaration": 118556, "src": "824:18:169" }, - "id": 119328, + "id": 118808, "nodeType": "InheritanceSpecifier", "src": "824:18:169" }, { "baseName": { - "id": 119329, + "id": 118809, "name": "IBattleInfoSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119088, + "referencedDeclaration": 118568, "src": "846:17:169" }, - "id": 119330, + "id": 118810, "nodeType": "InheritanceSpecifier", "src": "846:17:169" }, { "baseName": { - "id": 119331, + "id": 118811, "name": "IBattlePrepareSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119122, + "referencedDeclaration": 118602, "src": "867:20:169" }, - "id": 119332, + "id": 118812, "nodeType": "InheritanceSpecifier", "src": "867:20:169" }, { "baseName": { - "id": 119333, + "id": 118813, "name": "IBattleSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119141, + "referencedDeclaration": 118621, "src": "891:13:169" }, - "id": 119334, + "id": 118814, "nodeType": "InheritanceSpecifier", "src": "891:13:169" }, { "baseName": { - "id": 119335, + "id": 118815, "name": "IBoxSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119163, + "referencedDeclaration": 118643, "src": "908:10:169" }, - "id": 119336, + "id": 118816, "nodeType": "InheritanceSpecifier", "src": "908:10:169" }, { "baseName": { - "id": 119337, + "id": 118817, "name": "IGameSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119205, + "referencedDeclaration": 118685, "src": "922:11:169" }, - "id": 119338, + "id": 118818, "nodeType": "InheritanceSpecifier", "src": "922:11:169" }, { "baseName": { - "id": 119339, + "id": 118819, "name": "IGMSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119199, + "referencedDeclaration": 118679, "src": "937:9:169" }, - "id": 119340, + "id": 118820, "nodeType": "InheritanceSpecifier", "src": "937:9:169" }, { "baseName": { - "id": 119341, + "id": 118821, "name": "IMoveSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119220, + "referencedDeclaration": 118700, "src": "950:11:169" }, - "id": 119342, + "id": 118822, "nodeType": "InheritanceSpecifier", "src": "950:11:169" }, { "baseName": { - "id": 119343, + "id": 118823, "name": "IPlayerSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 119301, + "referencedDeclaration": 118781, "src": "965:13:169" }, - "id": 119344, + "id": 118824, "nodeType": "InheritanceSpecifier", "src": "965:13:169" } @@ -3894,34 +3894,34 @@ "contractDependencies": [], "contractKind": "interface", "documentation": { - "id": 119324, + "id": 118804, "nodeType": "StructuredDocumentation", "src": "674:113:169", "text": " The IWorld interface includes all systems dynamically added to the World\n during the deploy process." }, "fullyImplemented": false, "linearizedBaseContracts": [ - 119345, - 119301, - 119220, - 119199, - 119205, - 119163, - 119141, - 119122, - 119088, - 119076, + 118825, + 118781, + 118700, + 118679, + 118685, + 118643, + 118621, + 118602, + 118568, + 118556, 71348, - 130436, - 130345, - 130329, - 130332, - 130384, - 174094, - 130374, - 130363, + 129934, + 129843, + 129827, + 129830, + 129882, + 173592, + 129872, + 129861, 64435, - 127602, + 127100, 64393, 64426, 64399, @@ -3930,24 +3930,24 @@ ], "name": "IWorld", "nameLocation": "798:6:169", - "scope": 119346, + "scope": 118826, "usedErrors": [ - 127567, - 127573, - 127575, - 127577, - 127583, - 127589, - 127595, - 127601, - 174063, - 174067, - 174073, - 174077, - 174081, - 174085, - 174089, - 174093 + 127065, + 127071, + 127073, + 127075, + 127081, + 127087, + 127093, + 127099, + 173561, + 173565, + 173571, + 173575, + 173579, + 173583, + 173587, + 173591 ] } ], diff --git a/packages/contracts/out/Loot.sol/MLoot.json b/packages/contracts/out/Loot.sol/MLoot.json index 21dbe8ef..006f23c5 100644 --- a/packages/contracts/out/Loot.sol/MLoot.json +++ b/packages/contracts/out/Loot.sol/MLoot.json @@ -1633,62 +1633,62 @@ }, "ast": { "absolutePath": "src/other/Loot.sol", - "id": 120387, + "id": 119867, "exportedSymbols": { "Address": [ - 131973 + 131471 ], "Base64": [ - 119403 + 118883 ], "Context": [ - 131995 + 131493 ], "ERC165": [ - 132019 + 131517 ], "ERC721": [ 72425 ], "IERC165": [ - 174300 + 173798 ], "IERC20": [ 71498 ], "IERC721": [ - 131598 + 131096 ], "IERC721Metadata": [ - 131643 + 131141 ], "IERC721Receiver": [ - 131616 + 131114 ], "MLoot": [ - 120386 + 119866 ], "MRandom": [ - 120834 + 120314 ], "Math": [ - 132885 + 132383 ], "SignedMath": [ - 132990 + 132488 ], "Strings": [ 72654 ], "Suit": [ - 120637 + 120117 ] }, "nodeType": "SourceUnit", "src": "32:8695:171", "nodes": [ { - "id": 119405, + "id": 118885, "nodeType": "PragmaDirective", "src": "32:24:171", "nodes": [], @@ -1700,103 +1700,103 @@ ] }, { - "id": 119406, + "id": 118886, "nodeType": "ImportDirective", "src": "57:24:171", "nodes": [], "absolutePath": "src/other/LootSuit.sol", "file": "./LootSuit.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, - "sourceUnit": 120638, + "scope": 119867, + "sourceUnit": 120118, "symbolAliases": [], "unitAlias": "" }, { - "id": 119407, + "id": 118887, "nodeType": "ImportDirective", "src": "82:22:171", "nodes": [], "absolutePath": "src/other/Base64.sol", "file": "./Base64.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, - "sourceUnit": 119404, + "scope": 119867, + "sourceUnit": 118884, "symbolAliases": [], "unitAlias": "" }, { - "id": 119408, + "id": 118888, "nodeType": "ImportDirective", "src": "105:23:171", "nodes": [], "absolutePath": "src/other/MRandom.sol", "file": "./MRandom.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, - "sourceUnit": 120835, + "scope": 119867, + "sourceUnit": 120315, "symbolAliases": [], "unitAlias": "" }, { - "id": 119409, + "id": 118889, "nodeType": "ImportDirective", "src": "129:51:171", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/utils/Strings.sol", "file": "@openzeppelin/contracts/utils/Strings.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, + "scope": 119867, "sourceUnit": 72655, "symbolAliases": [], "unitAlias": "" }, { - "id": 119410, + "id": 118890, "nodeType": "ImportDirective", "src": "181:57:171", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol", "file": "@openzeppelin/contracts/token/ERC721/ERC721.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, + "scope": 119867, "sourceUnit": 72426, "symbolAliases": [], "unitAlias": "" }, { - "id": 119411, + "id": 118891, "nodeType": "ImportDirective", "src": "239:56:171", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "nameLocation": "-1:-1:-1", - "scope": 120387, + "scope": 119867, "sourceUnit": 71499, "symbolAliases": [], "unitAlias": "" }, { - "id": 120386, + "id": 119866, "nodeType": "ContractDefinition", "src": "297:8429:171", "nodes": [ { - "id": 119420, + "id": 118900, "nodeType": "UsingForDirective", "src": "342:26:171", "nodes": [], "global": false, "libraryName": { - "id": 119418, + "id": 118898, "name": "Strings", "nodeType": "IdentifierPath", "referencedDeclaration": 72654, "src": "348:7:171" }, "typeName": { - "id": 119419, + "id": 118899, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "360:7:171", @@ -1807,29 +1807,29 @@ } }, { - "id": 119455, + "id": 118935, "nodeType": "FunctionDefinition", "src": "374:342:171", "nodes": [], "body": { - "id": 119454, + "id": 118934, "nodeType": "Block", "src": "573:143:171", "nodes": [], "statements": [ { "expression": { - "id": 119439, + "id": 118919, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119437, + "id": 118917, "name": "desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119487, + "referencedDeclaration": 118967, "src": "583:4:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -1839,11 +1839,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119438, + "id": 118918, "name": "_desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119422, + "referencedDeclaration": 118902, "src": "590:5:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -1856,23 +1856,23 @@ "typeString": "string storage ref" } }, - "id": 119440, + "id": 118920, "nodeType": "ExpressionStatement", "src": "583:12:171" }, { "expression": { - "id": 119444, + "id": 118924, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119441, + "id": 118921, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119485, + "referencedDeclaration": 118965, "src": "605:5:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1883,7 +1883,7 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119442, + "id": 118922, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -1894,7 +1894,7 @@ "typeString": "msg" } }, - "id": 119443, + "id": 118923, "isConstant": false, "isLValue": false, "isPure": false, @@ -1913,23 +1913,23 @@ "typeString": "address" } }, - "id": 119445, + "id": 118925, "nodeType": "ExpressionStatement", "src": "605:18:171" }, { "expression": { - "id": 119448, + "id": 118928, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119446, + "id": 118926, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119483, + "referencedDeclaration": 118963, "src": "633:14:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1939,11 +1939,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119447, + "id": 118927, "name": "_waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119430, + "referencedDeclaration": 118910, "src": "650:15:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1956,23 +1956,23 @@ "typeString": "uint256" } }, - "id": 119449, + "id": 118929, "nodeType": "ExpressionStatement", "src": "633:32:171" }, { "expression": { - "id": 119452, + "id": 118932, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119450, + "id": 118930, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119489, + "referencedDeclaration": 118969, "src": "675:15:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -1982,11 +1982,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119451, + "id": 118931, "name": "_notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119428, + "referencedDeclaration": 118908, "src": "693:16:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -1999,7 +1999,7 @@ "typeString": "string storage ref" } }, - "id": 119453, + "id": 118933, "nodeType": "ExpressionStatement", "src": "675:34:171" } @@ -2011,11 +2011,11 @@ { "arguments": [ { - "id": 119433, + "id": 118913, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119424, + "referencedDeclaration": 118904, "src": "559:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2023,11 +2023,11 @@ } }, { - "id": 119434, + "id": 118914, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119426, + "referencedDeclaration": 118906, "src": "567:4:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2035,10 +2035,10 @@ } } ], - "id": 119435, + "id": 118915, "kind": "baseConstructorSpecifier", "modifierName": { - "id": 119432, + "id": 118912, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, @@ -2051,17 +2051,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 119431, + "id": 118911, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119422, + "id": 118902, "mutability": "mutable", "name": "_desc", "nameLocation": "409:5:171", "nodeType": "VariableDeclaration", - "scope": 119455, + "scope": 118935, "src": "395:19:171", "stateVariable": false, "storageLocation": "memory", @@ -2070,7 +2070,7 @@ "typeString": "string" }, "typeName": { - "id": 119421, + "id": 118901, "name": "string", "nodeType": "ElementaryTypeName", "src": "395:6:171", @@ -2083,12 +2083,12 @@ }, { "constant": false, - "id": 119424, + "id": 118904, "mutability": "mutable", "name": "symbol", "nameLocation": "438:6:171", "nodeType": "VariableDeclaration", - "scope": 119455, + "scope": 118935, "src": "424:20:171", "stateVariable": false, "storageLocation": "memory", @@ -2097,7 +2097,7 @@ "typeString": "string" }, "typeName": { - "id": 119423, + "id": 118903, "name": "string", "nodeType": "ElementaryTypeName", "src": "424:6:171", @@ -2110,12 +2110,12 @@ }, { "constant": false, - "id": 119426, + "id": 118906, "mutability": "mutable", "name": "name", "nameLocation": "468:4:171", "nodeType": "VariableDeclaration", - "scope": 119455, + "scope": 118935, "src": "454:18:171", "stateVariable": false, "storageLocation": "memory", @@ -2124,7 +2124,7 @@ "typeString": "string" }, "typeName": { - "id": 119425, + "id": 118905, "name": "string", "nodeType": "ElementaryTypeName", "src": "454:6:171", @@ -2137,12 +2137,12 @@ }, { "constant": false, - "id": 119428, + "id": 118908, "mutability": "mutable", "name": "_notRevealedInfo", "nameLocation": "496:16:171", "nodeType": "VariableDeclaration", - "scope": 119455, + "scope": 118935, "src": "482:30:171", "stateVariable": false, "storageLocation": "memory", @@ -2151,7 +2151,7 @@ "typeString": "string" }, "typeName": { - "id": 119427, + "id": 118907, "name": "string", "nodeType": "ElementaryTypeName", "src": "482:6:171", @@ -2164,12 +2164,12 @@ }, { "constant": false, - "id": 119430, + "id": 118910, "mutability": "mutable", "name": "_waitBlockCount", "nameLocation": "530:15:171", "nodeType": "VariableDeclaration", - "scope": 119455, + "scope": 118935, "src": "522:23:171", "stateVariable": false, "storageLocation": "default", @@ -2178,7 +2178,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119429, + "id": 118909, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "522:7:171", @@ -2193,18 +2193,18 @@ "src": "385:166:171" }, "returnParameters": { - "id": 119436, + "id": 118916, "nodeType": "ParameterList", "parameters": [], "src": "573:0:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 119479, + "id": 118959, "nodeType": "StructDefinition", "src": "732:267:171", "nodes": [], @@ -2212,12 +2212,12 @@ "members": [ { "constant": false, - "id": 119457, + "id": 118937, "mutability": "mutable", "name": "randomId", "nameLocation": "762:8:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "754:16:171", "stateVariable": false, "storageLocation": "default", @@ -2226,7 +2226,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119456, + "id": 118936, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "754:7:171", @@ -2239,12 +2239,12 @@ }, { "constant": false, - "id": 119459, + "id": 118939, "mutability": "mutable", "name": "owner", "nameLocation": "788:5:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "780:13:171", "stateVariable": false, "storageLocation": "default", @@ -2253,7 +2253,7 @@ "typeString": "address" }, "typeName": { - "id": 119458, + "id": 118938, "name": "address", "nodeType": "ElementaryTypeName", "src": "780:7:171", @@ -2267,12 +2267,12 @@ }, { "constant": false, - "id": 119461, + "id": 118941, "mutability": "mutable", "name": "Weapon", "nameLocation": "810:6:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "803:13:171", "stateVariable": false, "storageLocation": "default", @@ -2281,7 +2281,7 @@ "typeString": "string" }, "typeName": { - "id": 119460, + "id": 118940, "name": "string", "nodeType": "ElementaryTypeName", "src": "803:6:171", @@ -2294,12 +2294,12 @@ }, { "constant": false, - "id": 119463, + "id": 118943, "mutability": "mutable", "name": "Chest", "nameLocation": "833:5:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "826:12:171", "stateVariable": false, "storageLocation": "default", @@ -2308,7 +2308,7 @@ "typeString": "string" }, "typeName": { - "id": 119462, + "id": 118942, "name": "string", "nodeType": "ElementaryTypeName", "src": "826:6:171", @@ -2321,12 +2321,12 @@ }, { "constant": false, - "id": 119465, + "id": 118945, "mutability": "mutable", "name": "Head", "nameLocation": "855:4:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "848:11:171", "stateVariable": false, "storageLocation": "default", @@ -2335,7 +2335,7 @@ "typeString": "string" }, "typeName": { - "id": 119464, + "id": 118944, "name": "string", "nodeType": "ElementaryTypeName", "src": "848:6:171", @@ -2348,12 +2348,12 @@ }, { "constant": false, - "id": 119467, + "id": 118947, "mutability": "mutable", "name": "Waist", "nameLocation": "876:5:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "869:12:171", "stateVariable": false, "storageLocation": "default", @@ -2362,7 +2362,7 @@ "typeString": "string" }, "typeName": { - "id": 119466, + "id": 118946, "name": "string", "nodeType": "ElementaryTypeName", "src": "869:6:171", @@ -2375,12 +2375,12 @@ }, { "constant": false, - "id": 119469, + "id": 118949, "mutability": "mutable", "name": "Foot", "nameLocation": "898:4:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "891:11:171", "stateVariable": false, "storageLocation": "default", @@ -2389,7 +2389,7 @@ "typeString": "string" }, "typeName": { - "id": 119468, + "id": 118948, "name": "string", "nodeType": "ElementaryTypeName", "src": "891:6:171", @@ -2402,12 +2402,12 @@ }, { "constant": false, - "id": 119471, + "id": 118951, "mutability": "mutable", "name": "Hand", "nameLocation": "919:4:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "912:11:171", "stateVariable": false, "storageLocation": "default", @@ -2416,7 +2416,7 @@ "typeString": "string" }, "typeName": { - "id": 119470, + "id": 118950, "name": "string", "nodeType": "ElementaryTypeName", "src": "912:6:171", @@ -2429,12 +2429,12 @@ }, { "constant": false, - "id": 119473, + "id": 118953, "mutability": "mutable", "name": "Neck", "nameLocation": "940:4:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "933:11:171", "stateVariable": false, "storageLocation": "default", @@ -2443,7 +2443,7 @@ "typeString": "string" }, "typeName": { - "id": 119472, + "id": 118952, "name": "string", "nodeType": "ElementaryTypeName", "src": "933:6:171", @@ -2456,12 +2456,12 @@ }, { "constant": false, - "id": 119475, + "id": 118955, "mutability": "mutable", "name": "Ring", "nameLocation": "961:4:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "954:11:171", "stateVariable": false, "storageLocation": "default", @@ -2470,7 +2470,7 @@ "typeString": "string" }, "typeName": { - "id": 119474, + "id": 118954, "name": "string", "nodeType": "ElementaryTypeName", "src": "954:6:171", @@ -2483,33 +2483,33 @@ }, { "constant": false, - "id": 119478, + "id": 118958, "mutability": "mutable", "name": "state", "nameLocation": "987:5:171", "nodeType": "VariableDeclaration", - "scope": 119479, + "scope": 118959, "src": "975:17:171", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, "typeName": { - "id": 119477, + "id": 118957, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119476, + "id": 118956, "name": "RandomState", "nodeType": "IdentifierPath", - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "975:11:171" }, - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "975:11:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -2518,11 +2518,11 @@ ], "name": "Loot", "nameLocation": "739:4:171", - "scope": 120386, + "scope": 119866, "visibility": "public" }, { - "id": 119481, + "id": 118961, "nodeType": "VariableDeclaration", "src": "1005:22:171", "nodes": [], @@ -2531,7 +2531,7 @@ "mutability": "mutable", "name": "tokenId", "nameLocation": "1020:7:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2539,7 +2539,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119480, + "id": 118960, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1005:7:171", @@ -2551,7 +2551,7 @@ "visibility": "public" }, { - "id": 119483, + "id": 118963, "nodeType": "VariableDeclaration", "src": "1033:29:171", "nodes": [], @@ -2560,7 +2560,7 @@ "mutability": "mutable", "name": "waitBlockCount", "nameLocation": "1048:14:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2568,7 +2568,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119482, + "id": 118962, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1033:7:171", @@ -2580,7 +2580,7 @@ "visibility": "public" }, { - "id": 119485, + "id": 118965, "nodeType": "VariableDeclaration", "src": "1070:13:171", "nodes": [], @@ -2588,7 +2588,7 @@ "mutability": "mutable", "name": "owner", "nameLocation": "1078:5:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2596,7 +2596,7 @@ "typeString": "address" }, "typeName": { - "id": 119484, + "id": 118964, "name": "address", "nodeType": "ElementaryTypeName", "src": "1070:7:171", @@ -2609,7 +2609,7 @@ "visibility": "internal" }, { - "id": 119487, + "id": 118967, "nodeType": "VariableDeclaration", "src": "1089:11:171", "nodes": [], @@ -2617,7 +2617,7 @@ "mutability": "mutable", "name": "desc", "nameLocation": "1096:4:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2625,7 +2625,7 @@ "typeString": "string" }, "typeName": { - "id": 119486, + "id": 118966, "name": "string", "nodeType": "ElementaryTypeName", "src": "1089:6:171", @@ -2637,7 +2637,7 @@ "visibility": "internal" }, { - "id": 119489, + "id": 118969, "nodeType": "VariableDeclaration", "src": "1106:22:171", "nodes": [], @@ -2645,7 +2645,7 @@ "mutability": "mutable", "name": "notRevealedInfo", "nameLocation": "1113:15:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2653,7 +2653,7 @@ "typeString": "string" }, "typeName": { - "id": 119488, + "id": 118968, "name": "string", "nodeType": "ElementaryTypeName", "src": "1106:6:171", @@ -2665,7 +2665,7 @@ "visibility": "internal" }, { - "id": 119494, + "id": 118974, "nodeType": "VariableDeclaration", "src": "1135:40:171", "nodes": [], @@ -2674,17 +2674,17 @@ "mutability": "mutable", "name": "lootList", "nameLocation": "1167:8:171", - "scope": 120386, + "scope": 119866, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot)" }, "typeName": { - "id": 119493, + "id": 118973, "keyType": { - "id": 119490, + "id": 118970, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1143:7:171", @@ -2696,23 +2696,23 @@ "nodeType": "Mapping", "src": "1135:24:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot)" }, "valueType": { - "id": 119492, + "id": 118972, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119491, + "id": 118971, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "1154:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "1154:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } } @@ -2720,12 +2720,12 @@ "visibility": "public" }, { - "id": 119505, + "id": 118985, "nodeType": "ModifierDefinition", "src": "1182:77:171", "nodes": [], "body": { - "id": 119504, + "id": 118984, "nodeType": "Block", "src": "1203:56:171", "nodes": [], @@ -2738,14 +2738,14 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 119500, + "id": 118980, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119497, + "id": 118977, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2756,7 +2756,7 @@ "typeString": "msg" } }, - "id": 119498, + "id": 118978, "isConstant": false, "isLValue": false, "isPure": false, @@ -2772,11 +2772,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 119499, + "id": 118979, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119485, + "referencedDeclaration": 118965, "src": "1235:5:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2797,7 +2797,7 @@ "typeString": "bool" } ], - "id": 119496, + "id": 118976, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -2811,7 +2811,7 @@ "typeString": "function (bool) pure" } }, - "id": 119501, + "id": 118981, "isConstant": false, "isLValue": false, "isPure": false, @@ -2826,12 +2826,12 @@ "typeString": "tuple()" } }, - "id": 119502, + "id": 118982, "nodeType": "ExpressionStatement", "src": "1213:28:171" }, { - "id": 119503, + "id": 118983, "nodeType": "PlaceholderStatement", "src": "1251:1:171" } @@ -2840,7 +2840,7 @@ "name": "onlyOwner", "nameLocation": "1191:9:171", "parameters": { - "id": 119495, + "id": 118975, "nodeType": "ParameterList", "parameters": [], "src": "1200:2:171" @@ -2849,29 +2849,29 @@ "visibility": "internal" }, { - "id": 119780, + "id": 119260, "nodeType": "FunctionDefinition", "src": "1266:2832:171", "nodes": [], "body": { - "id": 119779, + "id": 119259, "nodeType": "Block", "src": "1361:2737:171", "nodes": [], "statements": [ { "assignments": [ - 119518 + 118998 ], "declarations": [ { "constant": false, - "id": 119518, + "id": 118998, "mutability": "mutable", "name": "parts", "nameLocation": "1389:5:171", "nodeType": "VariableDeclaration", - "scope": 119779, + "scope": 119259, "src": "1371:23:171", "stateVariable": false, "storageLocation": "memory", @@ -2881,7 +2881,7 @@ }, "typeName": { "baseType": { - "id": 119516, + "id": 118996, "name": "string", "nodeType": "ElementaryTypeName", "src": "1371:6:171", @@ -2890,10 +2890,10 @@ "typeString": "string" } }, - "id": 119517, + "id": 118997, "length": { "hexValue": "3137", - "id": 119515, + "id": 118995, "isConstant": false, "isLValue": false, "isPure": true, @@ -2917,71 +2917,71 @@ "visibility": "internal" } ], - "id": 119519, + "id": 118999, "nodeType": "VariableDeclarationStatement", "src": "1371:23:171" }, { "assignments": [ - 119522 + 119002 ], "declarations": [ { "constant": false, - "id": 119522, + "id": 119002, "mutability": "mutable", "name": "loot", "nameLocation": "1416:4:171", "nodeType": "VariableDeclaration", - "scope": 119779, + "scope": 119259, "src": "1404:16:171", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 119521, + "id": 119001, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119520, + "id": 119000, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "1404:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "1404:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 119526, + "id": 119006, "initialValue": { "baseExpression": { - "id": 119523, + "id": 119003, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119494, + "referencedDeclaration": 118974, "src": "1423:8:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 119525, + "id": 119005, "indexExpression": { - "id": 119524, + "id": 119004, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119507, + "referencedDeclaration": 118987, "src": "1432:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2995,7 +2995,7 @@ "nodeType": "IndexAccess", "src": "1423:18:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage", + "typeIdentifier": "t_struct$_Loot_$118959_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -3005,38 +3005,38 @@ { "condition": { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 119531, + "id": 119011, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119527, + "id": 119007, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "1454:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119528, + "id": 119008, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "1454:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -3044,28 +3044,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 119529, + "id": 119009, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "1468:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 119530, + "id": 119010, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 120641, + "referencedDeclaration": 120121, "src": "1468:19:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -3075,27 +3075,27 @@ "typeString": "bool" } }, - "id": 119546, + "id": 119026, "nodeType": "IfStatement", "src": "1451:244:171", "trueBody": { - "id": 119545, + "id": 119025, "nodeType": "Block", "src": "1488:207:171", "statements": [ { "assignments": [ - 119533 + 119013 ], "declarations": [ { "constant": false, - "id": 119533, + "id": 119013, "mutability": "mutable", "name": "r", "nameLocation": "1516:1:171", "nodeType": "VariableDeclaration", - "scope": 119545, + "scope": 119025, "src": "1502:15:171", "stateVariable": false, "storageLocation": "memory", @@ -3104,7 +3104,7 @@ "typeString": "string" }, "typeName": { - "id": 119532, + "id": 119012, "name": "string", "nodeType": "ElementaryTypeName", "src": "1502:6:171", @@ -3116,14 +3116,14 @@ "visibility": "internal" } ], - "id": 119542, + "id": 119022, "initialValue": { "arguments": [ { "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 119538, + "id": 119018, "isConstant": false, "isLValue": false, "isPure": true, @@ -3138,11 +3138,11 @@ "value": "data:application/json;base64," }, { - "id": 119539, + "id": 119019, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119489, + "referencedDeclaration": 118969, "src": "1623:15:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -3162,7 +3162,7 @@ } ], "expression": { - "id": 119536, + "id": 119016, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -3173,7 +3173,7 @@ "typeString": "abi" } }, - "id": 119537, + "id": 119017, "isConstant": false, "isLValue": false, "isPure": true, @@ -3186,7 +3186,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119540, + "id": 119020, "isConstant": false, "isLValue": false, "isPure": false, @@ -3209,7 +3209,7 @@ "typeString": "bytes memory" } ], - "id": 119535, + "id": 119015, "isConstant": false, "isLValue": false, "isPure": true, @@ -3221,14 +3221,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119534, + "id": 119014, "name": "string", "nodeType": "ElementaryTypeName", "src": "1520:6:171", "typeDescriptions": {} } }, - "id": 119541, + "id": 119021, "isConstant": false, "isLValue": false, "isPure": false, @@ -3248,19 +3248,19 @@ }, { "expression": { - "id": 119543, + "id": 119023, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119533, + "referencedDeclaration": 119013, "src": "1683:1:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 119512, - "id": 119544, + "functionReturnParameters": 118992, + "id": 119024, "nodeType": "Return", "src": "1676:8:171" } @@ -3272,38 +3272,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 119552, + "id": 119032, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119548, + "id": 119028, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "1712:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119549, + "id": 119029, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "1712:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -3311,28 +3311,28 @@ "operator": "!=", "rightExpression": { "expression": { - "id": 119550, + "id": 119030, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "1726:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 119551, + "id": 119031, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Inited", "nodeType": "MemberAccess", - "referencedDeclaration": 120640, + "referencedDeclaration": 120120, "src": "1726:18:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -3344,7 +3344,7 @@ }, { "hexValue": "426f78206e6f742065786973746564", - "id": 119553, + "id": 119033, "isConstant": false, "isLValue": false, "isPure": true, @@ -3370,7 +3370,7 @@ "typeString": "literal_string \"Box not existed\"" } ], - "id": 119547, + "id": 119027, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -3384,7 +3384,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 119554, + "id": 119034, "isConstant": false, "isLValue": false, "isPure": false, @@ -3399,34 +3399,34 @@ "typeString": "tuple()" } }, - "id": 119555, + "id": 119035, "nodeType": "ExpressionStatement", "src": "1704:60:171" }, { "expression": { - "id": 119560, + "id": 119040, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119556, + "id": 119036, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "1775:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119558, + "id": 119038, "indexExpression": { "hexValue": "30", - "id": 119557, + "id": 119037, "isConstant": false, "isLValue": false, "isPure": true, @@ -3455,7 +3455,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e", - "id": 119559, + "id": 119039, "isConstant": false, "isLValue": false, "isPure": true, @@ -3475,34 +3475,34 @@ "typeString": "string memory" } }, - "id": 119561, + "id": 119041, "nodeType": "ExpressionStatement", "src": "1775:288:171" }, { "expression": { - "id": 119567, + "id": 119047, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119562, + "id": 119042, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2074:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119564, + "id": 119044, "indexExpression": { "hexValue": "31", - "id": 119563, + "id": 119043, "isConstant": false, "isLValue": false, "isPure": true, @@ -3531,25 +3531,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119565, + "id": 119045, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2085:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119566, + "id": 119046, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 119461, + "referencedDeclaration": 118941, "src": "2085:11:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3562,34 +3562,34 @@ "typeString": "string memory" } }, - "id": 119568, + "id": 119048, "nodeType": "ExpressionStatement", "src": "2074:22:171" }, { "expression": { - "id": 119573, + "id": 119053, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119569, + "id": 119049, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2107:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119571, + "id": 119051, "indexExpression": { "hexValue": "32", - "id": 119570, + "id": 119050, "isConstant": false, "isLValue": false, "isPure": true, @@ -3618,7 +3618,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e", - "id": 119572, + "id": 119052, "isConstant": false, "isLValue": false, "isPure": true, @@ -3638,34 +3638,34 @@ "typeString": "string memory" } }, - "id": 119574, + "id": 119054, "nodeType": "ExpressionStatement", "src": "2107:53:171" }, { "expression": { - "id": 119580, + "id": 119060, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119575, + "id": 119055, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2171:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119577, + "id": 119057, "indexExpression": { "hexValue": "33", - "id": 119576, + "id": 119056, "isConstant": false, "isLValue": false, "isPure": true, @@ -3694,25 +3694,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119578, + "id": 119058, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2182:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119579, + "id": 119059, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 119463, + "referencedDeclaration": 118943, "src": "2182:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3725,34 +3725,34 @@ "typeString": "string memory" } }, - "id": 119581, + "id": 119061, "nodeType": "ExpressionStatement", "src": "2171:21:171" }, { "expression": { - "id": 119586, + "id": 119066, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119582, + "id": 119062, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2203:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119584, + "id": 119064, "indexExpression": { "hexValue": "34", - "id": 119583, + "id": 119063, "isConstant": false, "isLValue": false, "isPure": true, @@ -3781,7 +3781,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e", - "id": 119585, + "id": 119065, "isConstant": false, "isLValue": false, "isPure": true, @@ -3801,34 +3801,34 @@ "typeString": "string memory" } }, - "id": 119587, + "id": 119067, "nodeType": "ExpressionStatement", "src": "2203:53:171" }, { "expression": { - "id": 119593, + "id": 119073, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119588, + "id": 119068, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2267:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119590, + "id": 119070, "indexExpression": { "hexValue": "35", - "id": 119589, + "id": 119069, "isConstant": false, "isLValue": false, "isPure": true, @@ -3857,25 +3857,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119591, + "id": 119071, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2278:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119592, + "id": 119072, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 119465, + "referencedDeclaration": 118945, "src": "2278:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3888,34 +3888,34 @@ "typeString": "string memory" } }, - "id": 119594, + "id": 119074, "nodeType": "ExpressionStatement", "src": "2267:20:171" }, { "expression": { - "id": 119599, + "id": 119079, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119595, + "id": 119075, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2298:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119597, + "id": 119077, "indexExpression": { "hexValue": "36", - "id": 119596, + "id": 119076, "isConstant": false, "isLValue": false, "isPure": true, @@ -3944,7 +3944,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e", - "id": 119598, + "id": 119078, "isConstant": false, "isLValue": false, "isPure": true, @@ -3964,34 +3964,34 @@ "typeString": "string memory" } }, - "id": 119600, + "id": 119080, "nodeType": "ExpressionStatement", "src": "2298:53:171" }, { "expression": { - "id": 119606, + "id": 119086, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119601, + "id": 119081, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2362:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119603, + "id": 119083, "indexExpression": { "hexValue": "37", - "id": 119602, + "id": 119082, "isConstant": false, "isLValue": false, "isPure": true, @@ -4020,25 +4020,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119604, + "id": 119084, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2373:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119605, + "id": 119085, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 119467, + "referencedDeclaration": 118947, "src": "2373:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4051,34 +4051,34 @@ "typeString": "string memory" } }, - "id": 119607, + "id": 119087, "nodeType": "ExpressionStatement", "src": "2362:21:171" }, { "expression": { - "id": 119612, + "id": 119092, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119608, + "id": 119088, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2394:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119610, + "id": 119090, "indexExpression": { "hexValue": "38", - "id": 119609, + "id": 119089, "isConstant": false, "isLValue": false, "isPure": true, @@ -4107,7 +4107,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e", - "id": 119611, + "id": 119091, "isConstant": false, "isLValue": false, "isPure": true, @@ -4127,34 +4127,34 @@ "typeString": "string memory" } }, - "id": 119613, + "id": 119093, "nodeType": "ExpressionStatement", "src": "2394:54:171" }, { "expression": { - "id": 119619, + "id": 119099, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119614, + "id": 119094, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2459:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119616, + "id": 119096, "indexExpression": { "hexValue": "39", - "id": 119615, + "id": 119095, "isConstant": false, "isLValue": false, "isPure": true, @@ -4183,25 +4183,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119617, + "id": 119097, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2470:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119618, + "id": 119098, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 119469, + "referencedDeclaration": 118949, "src": "2470:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4214,34 +4214,34 @@ "typeString": "string memory" } }, - "id": 119620, + "id": 119100, "nodeType": "ExpressionStatement", "src": "2459:20:171" }, { "expression": { - "id": 119625, + "id": 119105, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119621, + "id": 119101, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2490:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119623, + "id": 119103, "indexExpression": { "hexValue": "3130", - "id": 119622, + "id": 119102, "isConstant": false, "isLValue": false, "isPure": true, @@ -4270,7 +4270,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e", - "id": 119624, + "id": 119104, "isConstant": false, "isLValue": false, "isPure": true, @@ -4290,34 +4290,34 @@ "typeString": "string memory" } }, - "id": 119626, + "id": 119106, "nodeType": "ExpressionStatement", "src": "2490:55:171" }, { "expression": { - "id": 119632, + "id": 119112, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119627, + "id": 119107, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2556:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119629, + "id": 119109, "indexExpression": { "hexValue": "3131", - "id": 119628, + "id": 119108, "isConstant": false, "isLValue": false, "isPure": true, @@ -4346,25 +4346,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119630, + "id": 119110, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2568:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119631, + "id": 119111, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 119471, + "referencedDeclaration": 118951, "src": "2568:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4377,34 +4377,34 @@ "typeString": "string memory" } }, - "id": 119633, + "id": 119113, "nodeType": "ExpressionStatement", "src": "2556:21:171" }, { "expression": { - "id": 119638, + "id": 119118, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119634, + "id": 119114, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2588:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119636, + "id": 119116, "indexExpression": { "hexValue": "3132", - "id": 119635, + "id": 119115, "isConstant": false, "isLValue": false, "isPure": true, @@ -4433,7 +4433,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e", - "id": 119637, + "id": 119117, "isConstant": false, "isLValue": false, "isPure": true, @@ -4453,34 +4453,34 @@ "typeString": "string memory" } }, - "id": 119639, + "id": 119119, "nodeType": "ExpressionStatement", "src": "2588:55:171" }, { "expression": { - "id": 119645, + "id": 119125, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119640, + "id": 119120, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2654:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119642, + "id": 119122, "indexExpression": { "hexValue": "3133", - "id": 119641, + "id": 119121, "isConstant": false, "isLValue": false, "isPure": true, @@ -4509,25 +4509,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119643, + "id": 119123, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2666:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119644, + "id": 119124, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 119473, + "referencedDeclaration": 118953, "src": "2666:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4540,34 +4540,34 @@ "typeString": "string memory" } }, - "id": 119646, + "id": 119126, "nodeType": "ExpressionStatement", "src": "2654:21:171" }, { "expression": { - "id": 119651, + "id": 119131, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119647, + "id": 119127, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2686:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119649, + "id": 119129, "indexExpression": { "hexValue": "3134", - "id": 119648, + "id": 119128, "isConstant": false, "isLValue": false, "isPure": true, @@ -4596,7 +4596,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e", - "id": 119650, + "id": 119130, "isConstant": false, "isLValue": false, "isPure": true, @@ -4616,34 +4616,34 @@ "typeString": "string memory" } }, - "id": 119652, + "id": 119132, "nodeType": "ExpressionStatement", "src": "2686:55:171" }, { "expression": { - "id": 119658, + "id": 119138, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119653, + "id": 119133, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2752:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119655, + "id": 119135, "indexExpression": { "hexValue": "3135", - "id": 119654, + "id": 119134, "isConstant": false, "isLValue": false, "isPure": true, @@ -4672,25 +4672,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119656, + "id": 119136, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119522, + "referencedDeclaration": 119002, "src": "2764:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119657, + "id": 119137, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 119475, + "referencedDeclaration": 118955, "src": "2764:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4703,34 +4703,34 @@ "typeString": "string memory" } }, - "id": 119659, + "id": 119139, "nodeType": "ExpressionStatement", "src": "2752:21:171" }, { "expression": { - "id": 119664, + "id": 119144, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119660, + "id": 119140, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2784:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119662, + "id": 119142, "indexExpression": { "hexValue": "3136", - "id": 119661, + "id": 119141, "isConstant": false, "isLValue": false, "isPure": true, @@ -4759,7 +4759,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c2f7376673e", - "id": 119663, + "id": 119143, "isConstant": false, "isLValue": false, "isPure": true, @@ -4779,23 +4779,23 @@ "typeString": "string memory" } }, - "id": 119665, + "id": 119145, "nodeType": "ExpressionStatement", "src": "2784:27:171" }, { "assignments": [ - 119667 + 119147 ], "declarations": [ { "constant": false, - "id": 119667, + "id": 119147, "mutability": "mutable", "name": "output", "nameLocation": "2836:6:171", "nodeType": "VariableDeclaration", - "scope": 119779, + "scope": 119259, "src": "2822:20:171", "stateVariable": false, "storageLocation": "memory", @@ -4804,7 +4804,7 @@ "typeString": "string" }, "typeName": { - "id": 119666, + "id": 119146, "name": "string", "nodeType": "ElementaryTypeName", "src": "2822:6:171", @@ -4816,28 +4816,28 @@ "visibility": "internal" } ], - "id": 119701, + "id": 119181, "initialValue": { "arguments": [ { "arguments": [ { "baseExpression": { - "id": 119672, + "id": 119152, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2899:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119674, + "id": 119154, "indexExpression": { "hexValue": "30", - "id": 119673, + "id": 119153, "isConstant": false, "isLValue": false, "isPure": true, @@ -4864,21 +4864,21 @@ }, { "baseExpression": { - "id": 119675, + "id": 119155, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2925:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119677, + "id": 119157, "indexExpression": { "hexValue": "31", - "id": 119676, + "id": 119156, "isConstant": false, "isLValue": false, "isPure": true, @@ -4905,21 +4905,21 @@ }, { "baseExpression": { - "id": 119678, + "id": 119158, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2951:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119680, + "id": 119160, "indexExpression": { "hexValue": "32", - "id": 119679, + "id": 119159, "isConstant": false, "isLValue": false, "isPure": true, @@ -4946,21 +4946,21 @@ }, { "baseExpression": { - "id": 119681, + "id": 119161, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "2977:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119683, + "id": 119163, "indexExpression": { "hexValue": "33", - "id": 119682, + "id": 119162, "isConstant": false, "isLValue": false, "isPure": true, @@ -4987,21 +4987,21 @@ }, { "baseExpression": { - "id": 119684, + "id": 119164, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3003:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119686, + "id": 119166, "indexExpression": { "hexValue": "34", - "id": 119685, + "id": 119165, "isConstant": false, "isLValue": false, "isPure": true, @@ -5028,21 +5028,21 @@ }, { "baseExpression": { - "id": 119687, + "id": 119167, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3029:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119689, + "id": 119169, "indexExpression": { "hexValue": "35", - "id": 119688, + "id": 119168, "isConstant": false, "isLValue": false, "isPure": true, @@ -5069,21 +5069,21 @@ }, { "baseExpression": { - "id": 119690, + "id": 119170, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3055:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119692, + "id": 119172, "indexExpression": { "hexValue": "36", - "id": 119691, + "id": 119171, "isConstant": false, "isLValue": false, "isPure": true, @@ -5110,21 +5110,21 @@ }, { "baseExpression": { - "id": 119693, + "id": 119173, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3081:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119695, + "id": 119175, "indexExpression": { "hexValue": "37", - "id": 119694, + "id": 119174, "isConstant": false, "isLValue": false, "isPure": true, @@ -5151,21 +5151,21 @@ }, { "baseExpression": { - "id": 119696, + "id": 119176, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3107:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119698, + "id": 119178, "indexExpression": { "hexValue": "38", - "id": 119697, + "id": 119177, "isConstant": false, "isLValue": false, "isPure": true, @@ -5231,7 +5231,7 @@ } ], "expression": { - "id": 119670, + "id": 119150, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -5242,7 +5242,7 @@ "typeString": "abi" } }, - "id": 119671, + "id": 119151, "isConstant": false, "isLValue": false, "isPure": true, @@ -5255,7 +5255,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119699, + "id": 119179, "isConstant": false, "isLValue": false, "isPure": false, @@ -5278,7 +5278,7 @@ "typeString": "bytes memory" } ], - "id": 119669, + "id": 119149, "isConstant": false, "isLValue": false, "isPure": true, @@ -5290,14 +5290,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119668, + "id": 119148, "name": "string", "nodeType": "ElementaryTypeName", "src": "2845:6:171", "typeDescriptions": {} } }, - "id": 119700, + "id": 119180, "isConstant": false, "isLValue": false, "isPure": false, @@ -5317,17 +5317,17 @@ }, { "expression": { - "id": 119734, + "id": 119214, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119702, + "id": 119182, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119667, + "referencedDeclaration": 119147, "src": "3149:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5341,11 +5341,11 @@ { "arguments": [ { - "id": 119707, + "id": 119187, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119667, + "referencedDeclaration": 119147, "src": "3212:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5354,21 +5354,21 @@ }, { "baseExpression": { - "id": 119708, + "id": 119188, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3236:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119710, + "id": 119190, "indexExpression": { "hexValue": "39", - "id": 119709, + "id": 119189, "isConstant": false, "isLValue": false, "isPure": true, @@ -5395,21 +5395,21 @@ }, { "baseExpression": { - "id": 119711, + "id": 119191, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3262:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119713, + "id": 119193, "indexExpression": { "hexValue": "3130", - "id": 119712, + "id": 119192, "isConstant": false, "isLValue": false, "isPure": true, @@ -5436,21 +5436,21 @@ }, { "baseExpression": { - "id": 119714, + "id": 119194, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3289:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119716, + "id": 119196, "indexExpression": { "hexValue": "3131", - "id": 119715, + "id": 119195, "isConstant": false, "isLValue": false, "isPure": true, @@ -5477,21 +5477,21 @@ }, { "baseExpression": { - "id": 119717, + "id": 119197, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3316:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119719, + "id": 119199, "indexExpression": { "hexValue": "3132", - "id": 119718, + "id": 119198, "isConstant": false, "isLValue": false, "isPure": true, @@ -5518,21 +5518,21 @@ }, { "baseExpression": { - "id": 119720, + "id": 119200, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3343:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119722, + "id": 119202, "indexExpression": { "hexValue": "3133", - "id": 119721, + "id": 119201, "isConstant": false, "isLValue": false, "isPure": true, @@ -5559,21 +5559,21 @@ }, { "baseExpression": { - "id": 119723, + "id": 119203, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3370:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119725, + "id": 119205, "indexExpression": { "hexValue": "3134", - "id": 119724, + "id": 119204, "isConstant": false, "isLValue": false, "isPure": true, @@ -5600,21 +5600,21 @@ }, { "baseExpression": { - "id": 119726, + "id": 119206, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3397:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119728, + "id": 119208, "indexExpression": { "hexValue": "3135", - "id": 119727, + "id": 119207, "isConstant": false, "isLValue": false, "isPure": true, @@ -5641,21 +5641,21 @@ }, { "baseExpression": { - "id": 119729, + "id": 119209, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119518, + "referencedDeclaration": 118998, "src": "3424:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 119731, + "id": 119211, "indexExpression": { "hexValue": "3136", - "id": 119730, + "id": 119210, "isConstant": false, "isLValue": false, "isPure": true, @@ -5721,7 +5721,7 @@ } ], "expression": { - "id": 119705, + "id": 119185, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -5732,7 +5732,7 @@ "typeString": "abi" } }, - "id": 119706, + "id": 119186, "isConstant": false, "isLValue": false, "isPure": true, @@ -5745,7 +5745,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119732, + "id": 119212, "isConstant": false, "isLValue": false, "isPure": false, @@ -5768,7 +5768,7 @@ "typeString": "bytes memory" } ], - "id": 119704, + "id": 119184, "isConstant": false, "isLValue": false, "isPure": true, @@ -5780,14 +5780,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119703, + "id": 119183, "name": "string", "nodeType": "ElementaryTypeName", "src": "3158:6:171", "typeDescriptions": {} } }, - "id": 119733, + "id": 119213, "isConstant": false, "isLValue": false, "isPure": false, @@ -5808,23 +5808,23 @@ "typeString": "string memory" } }, - "id": 119735, + "id": 119215, "nodeType": "ExpressionStatement", "src": "3149:308:171" }, { "assignments": [ - 119737 + 119217 ], "declarations": [ { "constant": false, - "id": 119737, + "id": 119217, "mutability": "mutable", "name": "json", "nameLocation": "3482:4:171", "nodeType": "VariableDeclaration", - "scope": 119779, + "scope": 119259, "src": "3468:18:171", "stateVariable": false, "storageLocation": "memory", @@ -5833,7 +5833,7 @@ "typeString": "string" }, "typeName": { - "id": 119736, + "id": 119216, "name": "string", "nodeType": "ElementaryTypeName", "src": "3468:6:171", @@ -5845,7 +5845,7 @@ "visibility": "internal" } ], - "id": 119765, + "id": 119245, "initialValue": { "arguments": [ { @@ -5856,7 +5856,7 @@ "arguments": [ { "hexValue": "7b226e616d65223a20224d4c6f6f742023", - "id": 119746, + "id": 119226, "isConstant": false, "isLValue": false, "isPure": true, @@ -5875,18 +5875,18 @@ "expression": { "argumentTypes": [], "expression": { - "id": 119747, + "id": 119227, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119507, + "referencedDeclaration": 118987, "src": "3654:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 119748, + "id": 119228, "isConstant": false, "isLValue": false, "isPure": false, @@ -5900,7 +5900,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 119749, + "id": 119229, "isConstant": false, "isLValue": false, "isPure": false, @@ -5917,7 +5917,7 @@ }, { "hexValue": "222c20226465736372697074696f6e223a22", - "id": 119750, + "id": 119230, "isConstant": false, "isLValue": false, "isPure": true, @@ -5932,11 +5932,11 @@ "value": "\", \"description\":\"" }, { - "id": 119751, + "id": 119231, "name": "desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119487, + "referencedDeclaration": 118967, "src": "3745:4:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -5945,7 +5945,7 @@ }, { "hexValue": "222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c", - "id": 119752, + "id": 119232, "isConstant": false, "isLValue": false, "isPure": true, @@ -5964,11 +5964,11 @@ { "arguments": [ { - "id": 119757, + "id": 119237, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119667, + "referencedDeclaration": 119147, "src": "3861:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5983,7 +5983,7 @@ "typeString": "string memory" } ], - "id": 119756, + "id": 119236, "isConstant": false, "isLValue": false, "isPure": true, @@ -5995,14 +5995,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 119755, + "id": 119235, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3855:5:171", "typeDescriptions": {} } }, - "id": 119758, + "id": 119238, "isConstant": false, "isLValue": false, "isPure": false, @@ -6026,32 +6026,32 @@ } ], "expression": { - "id": 119753, + "id": 119233, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119403, + "referencedDeclaration": 118883, "src": "3841:6:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$119403_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118883_$", "typeString": "type(library Base64)" } }, - "id": 119754, + "id": 119234, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 119402, + "referencedDeclaration": 118882, "src": "3841:13:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 119759, + "id": 119239, "isConstant": false, "isLValue": false, "isPure": false, @@ -6068,7 +6068,7 @@ }, { "hexValue": "227d", - "id": 119760, + "id": 119240, "isConstant": false, "isLValue": false, "isPure": true, @@ -6115,7 +6115,7 @@ } ], "expression": { - "id": 119744, + "id": 119224, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6126,7 +6126,7 @@ "typeString": "abi" } }, - "id": 119745, + "id": 119225, "isConstant": false, "isLValue": false, "isPure": true, @@ -6139,7 +6139,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119761, + "id": 119241, "isConstant": false, "isLValue": false, "isPure": false, @@ -6162,7 +6162,7 @@ "typeString": "bytes memory" } ], - "id": 119743, + "id": 119223, "isConstant": false, "isLValue": false, "isPure": true, @@ -6174,14 +6174,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119742, + "id": 119222, "name": "string", "nodeType": "ElementaryTypeName", "src": "3539:6:171", "typeDescriptions": {} } }, - "id": 119762, + "id": 119242, "isConstant": false, "isLValue": false, "isPure": false, @@ -6204,7 +6204,7 @@ "typeString": "string memory" } ], - "id": 119741, + "id": 119221, "isConstant": false, "isLValue": false, "isPure": true, @@ -6216,14 +6216,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 119740, + "id": 119220, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3516:5:171", "typeDescriptions": {} } }, - "id": 119763, + "id": 119243, "isConstant": false, "isLValue": false, "isPure": false, @@ -6247,32 +6247,32 @@ } ], "expression": { - "id": 119738, + "id": 119218, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119403, + "referencedDeclaration": 118883, "src": "3489:6:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$119403_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118883_$", "typeString": "type(library Base64)" } }, - "id": 119739, + "id": 119219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 119402, + "referencedDeclaration": 118882, "src": "3489:13:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 119764, + "id": 119244, "isConstant": false, "isLValue": false, "isPure": false, @@ -6292,17 +6292,17 @@ }, { "expression": { - "id": 119775, + "id": 119255, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119766, + "id": 119246, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119667, + "referencedDeclaration": 119147, "src": "3973:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6317,7 +6317,7 @@ "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 119771, + "id": 119251, "isConstant": false, "isLValue": false, "isPure": true, @@ -6332,11 +6332,11 @@ "value": "data:application/json;base64," }, { - "id": 119772, + "id": 119252, "name": "json", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119737, + "referencedDeclaration": 119217, "src": "4052:4:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6356,7 +6356,7 @@ } ], "expression": { - "id": 119769, + "id": 119249, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6367,7 +6367,7 @@ "typeString": "abi" } }, - "id": 119770, + "id": 119250, "isConstant": false, "isLValue": false, "isPure": true, @@ -6380,7 +6380,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119773, + "id": 119253, "isConstant": false, "isLValue": false, "isPure": false, @@ -6403,7 +6403,7 @@ "typeString": "bytes memory" } ], - "id": 119768, + "id": 119248, "isConstant": false, "isLValue": false, "isPure": true, @@ -6415,14 +6415,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119767, + "id": 119247, "name": "string", "nodeType": "ElementaryTypeName", "src": "3982:6:171", "typeDescriptions": {} } }, - "id": 119774, + "id": 119254, "isConstant": false, "isLValue": false, "isPure": false, @@ -6443,25 +6443,25 @@ "typeString": "string memory" } }, - "id": 119776, + "id": 119256, "nodeType": "ExpressionStatement", "src": "3973:94:171" }, { "expression": { - "id": 119777, + "id": 119257, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119667, + "referencedDeclaration": 119147, "src": "4085:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 119512, - "id": 119778, + "functionReturnParameters": 118992, + "id": 119258, "nodeType": "Return", "src": "4078:13:171" } @@ -6477,23 +6477,23 @@ "name": "tokenURI", "nameLocation": "1275:8:171", "overrides": { - "id": 119509, + "id": 118989, "nodeType": "OverrideSpecifier", "overrides": [], "src": "1328:8:171" }, "parameters": { - "id": 119508, + "id": 118988, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119507, + "id": 118987, "mutability": "mutable", "name": "_tokenId", "nameLocation": "1301:8:171", "nodeType": "VariableDeclaration", - "scope": 119780, + "scope": 119260, "src": "1293:16:171", "stateVariable": false, "storageLocation": "default", @@ -6502,7 +6502,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119506, + "id": 118986, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1293:7:171", @@ -6517,17 +6517,17 @@ "src": "1283:32:171" }, "returnParameters": { - "id": 119512, + "id": 118992, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119511, + "id": 118991, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119780, + "scope": 119260, "src": "1346:13:171", "stateVariable": false, "storageLocation": "memory", @@ -6536,7 +6536,7 @@ "typeString": "string" }, "typeName": { - "id": 119510, + "id": 118990, "name": "string", "nodeType": "ElementaryTypeName", "src": "1346:6:171", @@ -6550,35 +6550,35 @@ ], "src": "1345:15:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "view", "virtual": false, "visibility": "public" }, { - "id": 119909, + "id": 119389, "nodeType": "FunctionDefinition", "src": "4104:1153:171", "nodes": [], "body": { - "id": 119908, + "id": 119388, "nodeType": "Block", "src": "4219:1038:171", "nodes": [], "statements": [ { "assignments": [ - 119791 + 119271 ], "declarations": [ { "constant": false, - "id": 119791, + "id": 119271, "mutability": "mutable", "name": "output", "nameLocation": "4243:6:171", "nodeType": "VariableDeclaration", - "scope": 119908, + "scope": 119388, "src": "4229:20:171", "stateVariable": false, "storageLocation": "memory", @@ -6587,7 +6587,7 @@ "typeString": "string" }, "typeName": { - "id": 119790, + "id": 119270, "name": "string", "nodeType": "ElementaryTypeName", "src": "4229:6:171", @@ -6599,37 +6599,37 @@ "visibility": "internal" } ], - "id": 119798, + "id": 119278, "initialValue": { "baseExpression": { - "id": 119792, + "id": 119272, "name": "sourceArray", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119785, + "referencedDeclaration": 119265, "src": "4252:11:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 119797, + "id": 119277, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119796, + "id": 119276, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119793, + "id": 119273, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119262, "src": "4264:4:171", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6640,18 +6640,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 119794, + "id": 119274, "name": "sourceArray", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119785, + "referencedDeclaration": 119265, "src": "4271:11:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 119795, + "id": 119275, "isConstant": false, "isLValue": false, "isPure": false, @@ -6686,17 +6686,17 @@ }, { "assignments": [ - 119800 + 119280 ], "declarations": [ { "constant": false, - "id": 119800, + "id": 119280, "mutability": "mutable", "name": "greatness", "nameLocation": "4309:9:171", "nodeType": "VariableDeclaration", - "scope": 119908, + "scope": 119388, "src": "4301:17:171", "stateVariable": false, "storageLocation": "default", @@ -6705,7 +6705,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119799, + "id": 119279, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4301:7:171", @@ -6717,23 +6717,23 @@ "visibility": "internal" } ], - "id": 119804, + "id": 119284, "initialValue": { "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, - "id": 119803, + "id": 119283, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119801, + "id": 119281, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119262, "src": "4321:4:171", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6744,7 +6744,7 @@ "operator": "%", "rightExpression": { "hexValue": "3231", - "id": 119802, + "id": 119282, "isConstant": false, "isLValue": false, "isPure": true, @@ -6773,17 +6773,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119807, + "id": 119287, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119805, + "id": 119285, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119800, + "referencedDeclaration": 119280, "src": "4344:9:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6794,7 +6794,7 @@ "operator": ">", "rightExpression": { "hexValue": "3134", - "id": 119806, + "id": 119286, "isConstant": false, "isLValue": false, "isPure": true, @@ -6814,27 +6814,27 @@ "typeString": "bool" } }, - "id": 119826, + "id": 119306, "nodeType": "IfStatement", "src": "4340:155:171", "trueBody": { - "id": 119825, + "id": 119305, "nodeType": "Block", "src": "4360:135:171", "statements": [ { "expression": { - "id": 119823, + "id": 119303, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119808, + "id": 119288, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "4374:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6848,11 +6848,11 @@ { "arguments": [ { - "id": 119813, + "id": 119293, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "4424:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6861,7 +6861,7 @@ }, { "hexValue": "20", - "id": 119814, + "id": 119294, "isConstant": false, "isLValue": false, "isPure": true, @@ -6877,34 +6877,34 @@ }, { "baseExpression": { - "id": 119815, + "id": 119295, "name": "suffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120541, + "referencedDeclaration": 120021, "src": "4437:8:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119820, + "id": 119300, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119819, + "id": 119299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119816, + "id": 119296, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119262, "src": "4446:4:171", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6915,18 +6915,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 119817, + "id": 119297, "name": "suffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120541, + "referencedDeclaration": 120021, "src": "4453:8:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119818, + "id": 119298, "isConstant": false, "isLValue": false, "isPure": false, @@ -6973,7 +6973,7 @@ } ], "expression": { - "id": 119811, + "id": 119291, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6984,7 +6984,7 @@ "typeString": "abi" } }, - "id": 119812, + "id": 119292, "isConstant": false, "isLValue": false, "isPure": true, @@ -6997,7 +6997,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119821, + "id": 119301, "isConstant": false, "isLValue": false, "isPure": false, @@ -7020,7 +7020,7 @@ "typeString": "bytes memory" } ], - "id": 119810, + "id": 119290, "isConstant": false, "isLValue": false, "isPure": true, @@ -7032,14 +7032,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119809, + "id": 119289, "name": "string", "nodeType": "ElementaryTypeName", "src": "4383:6:171", "typeDescriptions": {} } }, - "id": 119822, + "id": 119302, "isConstant": false, "isLValue": false, "isPure": false, @@ -7060,7 +7060,7 @@ "typeString": "string memory" } }, - "id": 119824, + "id": 119304, "nodeType": "ExpressionStatement", "src": "4374:110:171" } @@ -7073,17 +7073,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119829, + "id": 119309, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119827, + "id": 119307, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119800, + "referencedDeclaration": 119280, "src": "4508:9:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7094,7 +7094,7 @@ "operator": ">=", "rightExpression": { "hexValue": "3139", - "id": 119828, + "id": 119308, "isConstant": false, "isLValue": false, "isPure": true, @@ -7114,27 +7114,27 @@ "typeString": "bool" } }, - "id": 119905, + "id": 119385, "nodeType": "IfStatement", "src": "4504:724:171", "trueBody": { - "id": 119904, + "id": 119384, "nodeType": "Block", "src": "4525:703:171", "statements": [ { "assignments": [ - 119835 + 119315 ], "declarations": [ { "constant": false, - "id": 119835, + "id": 119315, "mutability": "mutable", "name": "name", "nameLocation": "4556:4:171", "nodeType": "VariableDeclaration", - "scope": 119904, + "scope": 119384, "src": "4539:21:171", "stateVariable": false, "storageLocation": "memory", @@ -7144,7 +7144,7 @@ }, "typeName": { "baseType": { - "id": 119833, + "id": 119313, "name": "string", "nodeType": "ElementaryTypeName", "src": "4539:6:171", @@ -7153,10 +7153,10 @@ "typeString": "string" } }, - "id": 119834, + "id": 119314, "length": { "hexValue": "32", - "id": 119832, + "id": 119312, "isConstant": false, "isLValue": false, "isPure": true, @@ -7180,34 +7180,34 @@ "visibility": "internal" } ], - "id": 119836, + "id": 119316, "nodeType": "VariableDeclarationStatement", "src": "4539:21:171" }, { "expression": { - "id": 119846, + "id": 119326, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119837, + "id": 119317, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "4574:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119839, + "id": 119319, "indexExpression": { "hexValue": "30", - "id": 119838, + "id": 119318, "isConstant": false, "isLValue": false, "isPure": true, @@ -7236,34 +7236,34 @@ "operator": "=", "rightHandSide": { "baseExpression": { - "id": 119840, + "id": 119320, "name": "namePrefixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120614, + "referencedDeclaration": 120094, "src": "4584:12:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119845, + "id": 119325, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119844, + "id": 119324, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119841, + "id": 119321, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119262, "src": "4597:4:171", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -7274,18 +7274,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 119842, + "id": 119322, "name": "namePrefixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120614, + "referencedDeclaration": 120094, "src": "4604:12:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119843, + "id": 119323, "isConstant": false, "isLValue": false, "isPure": false, @@ -7321,34 +7321,34 @@ "typeString": "string memory" } }, - "id": 119847, + "id": 119327, "nodeType": "ExpressionStatement", "src": "4574:50:171" }, { "expression": { - "id": 119857, + "id": 119337, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119848, + "id": 119328, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "4638:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119850, + "id": 119330, "indexExpression": { "hexValue": "31", - "id": 119849, + "id": 119329, "isConstant": false, "isLValue": false, "isPure": true, @@ -7377,34 +7377,34 @@ "operator": "=", "rightHandSide": { "baseExpression": { - "id": 119851, + "id": 119331, "name": "nameSuffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120636, + "referencedDeclaration": 120116, "src": "4648:12:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119856, + "id": 119336, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119855, + "id": 119335, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119852, + "id": 119332, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119262, "src": "4661:4:171", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -7415,18 +7415,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 119853, + "id": 119333, "name": "nameSuffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120636, + "referencedDeclaration": 120116, "src": "4668:12:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 119854, + "id": 119334, "isConstant": false, "isLValue": false, "isPure": false, @@ -7462,7 +7462,7 @@ "typeString": "string memory" } }, - "id": 119858, + "id": 119338, "nodeType": "ExpressionStatement", "src": "4638:50:171" }, @@ -7472,17 +7472,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119861, + "id": 119341, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119859, + "id": 119339, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119800, + "referencedDeclaration": 119280, "src": "4706:9:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7493,7 +7493,7 @@ "operator": "==", "rightExpression": { "hexValue": "3139", - "id": 119860, + "id": 119340, "isConstant": false, "isLValue": false, "isPure": true, @@ -7514,23 +7514,23 @@ } }, "falseBody": { - "id": 119902, + "id": 119382, "nodeType": "Block", "src": "4875:343:171", "statements": [ { "expression": { - "id": 119900, + "id": 119380, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119882, + "id": 119362, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "4893:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7545,7 +7545,7 @@ "arguments": [ { "hexValue": "22", - "id": 119887, + "id": 119367, "isConstant": false, "isLValue": false, "isPure": true, @@ -7561,21 +7561,21 @@ }, { "baseExpression": { - "id": 119888, + "id": 119368, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "5001:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119890, + "id": 119370, "indexExpression": { "hexValue": "30", - "id": 119889, + "id": 119369, "isConstant": false, "isLValue": false, "isPure": true, @@ -7602,7 +7602,7 @@ }, { "hexValue": "20", - "id": 119891, + "id": 119371, "isConstant": false, "isLValue": false, "isPure": true, @@ -7618,21 +7618,21 @@ }, { "baseExpression": { - "id": 119892, + "id": 119372, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "5063:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119894, + "id": 119374, "indexExpression": { "hexValue": "31", - "id": 119893, + "id": 119373, "isConstant": false, "isLValue": false, "isPure": true, @@ -7659,7 +7659,7 @@ }, { "hexValue": "2220", - "id": 119895, + "id": 119375, "isConstant": false, "isLValue": false, "isPure": true, @@ -7674,11 +7674,11 @@ "value": "\" " }, { - "id": 119896, + "id": 119376, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "5126:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7687,7 +7687,7 @@ }, { "hexValue": "202b31", - "id": 119897, + "id": 119377, "isConstant": false, "isLValue": false, "isPure": true, @@ -7734,7 +7734,7 @@ } ], "expression": { - "id": 119885, + "id": 119365, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -7745,7 +7745,7 @@ "typeString": "abi" } }, - "id": 119886, + "id": 119366, "isConstant": false, "isLValue": false, "isPure": true, @@ -7758,7 +7758,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119898, + "id": 119378, "isConstant": false, "isLValue": false, "isPure": false, @@ -7781,7 +7781,7 @@ "typeString": "bytes memory" } ], - "id": 119884, + "id": 119364, "isConstant": false, "isLValue": false, "isPure": true, @@ -7793,14 +7793,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119883, + "id": 119363, "name": "string", "nodeType": "ElementaryTypeName", "src": "4902:6:171", "typeDescriptions": {} } }, - "id": 119899, + "id": 119379, "isConstant": false, "isLValue": false, "isPure": false, @@ -7821,33 +7821,33 @@ "typeString": "string memory" } }, - "id": 119901, + "id": 119381, "nodeType": "ExpressionStatement", "src": "4893:310:171" } ] }, - "id": 119903, + "id": 119383, "nodeType": "IfStatement", "src": "4702:516:171", "trueBody": { - "id": 119881, + "id": 119361, "nodeType": "Block", "src": "4723:146:171", "statements": [ { "expression": { - "id": 119879, + "id": 119359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119862, + "id": 119342, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "4741:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7862,7 +7862,7 @@ "arguments": [ { "hexValue": "22", - "id": 119867, + "id": 119347, "isConstant": false, "isLValue": false, "isPure": true, @@ -7878,21 +7878,21 @@ }, { "baseExpression": { - "id": 119868, + "id": 119348, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "4800:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119870, + "id": 119350, "indexExpression": { "hexValue": "30", - "id": 119869, + "id": 119349, "isConstant": false, "isLValue": false, "isPure": true, @@ -7919,7 +7919,7 @@ }, { "hexValue": "20", - "id": 119871, + "id": 119351, "isConstant": false, "isLValue": false, "isPure": true, @@ -7935,21 +7935,21 @@ }, { "baseExpression": { - "id": 119872, + "id": 119352, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119835, + "referencedDeclaration": 119315, "src": "4814:4:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 119874, + "id": 119354, "indexExpression": { "hexValue": "31", - "id": 119873, + "id": 119353, "isConstant": false, "isLValue": false, "isPure": true, @@ -7976,7 +7976,7 @@ }, { "hexValue": "2220", - "id": 119875, + "id": 119355, "isConstant": false, "isLValue": false, "isPure": true, @@ -7991,11 +7991,11 @@ "value": "\" " }, { - "id": 119876, + "id": 119356, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "4829:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8031,7 +8031,7 @@ } ], "expression": { - "id": 119865, + "id": 119345, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8042,7 +8042,7 @@ "typeString": "abi" } }, - "id": 119866, + "id": 119346, "isConstant": false, "isLValue": false, "isPure": true, @@ -8055,7 +8055,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119877, + "id": 119357, "isConstant": false, "isLValue": false, "isPure": false, @@ -8078,7 +8078,7 @@ "typeString": "bytes memory" } ], - "id": 119864, + "id": 119344, "isConstant": false, "isLValue": false, "isPure": true, @@ -8090,14 +8090,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 119863, + "id": 119343, "name": "string", "nodeType": "ElementaryTypeName", "src": "4750:6:171", "typeDescriptions": {} } }, - "id": 119878, + "id": 119358, "isConstant": false, "isLValue": false, "isPure": false, @@ -8118,7 +8118,7 @@ "typeString": "string memory" } }, - "id": 119880, + "id": 119360, "nodeType": "ExpressionStatement", "src": "4741:113:171" } @@ -8130,19 +8130,19 @@ }, { "expression": { - "id": 119906, + "id": 119386, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119791, + "referencedDeclaration": 119271, "src": "5244:6:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 119789, - "id": 119907, + "functionReturnParameters": 119269, + "id": 119387, "nodeType": "Return", "src": "5237:13:171" } @@ -8154,17 +8154,17 @@ "name": "luck", "nameLocation": "4113:4:171", "parameters": { - "id": 119786, + "id": 119266, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119782, + "id": 119262, "mutability": "mutable", "name": "rand", "nameLocation": "4133:4:171", "nodeType": "VariableDeclaration", - "scope": 119909, + "scope": 119389, "src": "4127:10:171", "stateVariable": false, "storageLocation": "default", @@ -8173,7 +8173,7 @@ "typeString": "uint8" }, "typeName": { - "id": 119781, + "id": 119261, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "4127:5:171", @@ -8186,12 +8186,12 @@ }, { "constant": false, - "id": 119785, + "id": 119265, "mutability": "mutable", "name": "sourceArray", "nameLocation": "4163:11:171", "nodeType": "VariableDeclaration", - "scope": 119909, + "scope": 119389, "src": "4147:27:171", "stateVariable": false, "storageLocation": "memory", @@ -8201,7 +8201,7 @@ }, "typeName": { "baseType": { - "id": 119783, + "id": 119263, "name": "string", "nodeType": "ElementaryTypeName", "src": "4147:6:171", @@ -8210,7 +8210,7 @@ "typeString": "string" } }, - "id": 119784, + "id": 119264, "nodeType": "ArrayTypeName", "src": "4147:8:171", "typeDescriptions": { @@ -8224,17 +8224,17 @@ "src": "4117:63:171" }, "returnParameters": { - "id": 119789, + "id": 119269, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119788, + "id": 119268, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119909, + "scope": 119389, "src": "4204:13:171", "stateVariable": false, "storageLocation": "memory", @@ -8243,7 +8243,7 @@ "typeString": "string" }, "typeName": { - "id": 119787, + "id": 119267, "name": "string", "nodeType": "ElementaryTypeName", "src": "4204:6:171", @@ -8257,83 +8257,83 @@ ], "src": "4203:15:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "view", "virtual": false, "visibility": "internal" }, { - "id": 120029, + "id": 119509, "nodeType": "FunctionDefinition", "src": "5263:677:171", "nodes": [], "body": { - "id": 120028, + "id": 119508, "nodeType": "Block", "src": "5309:631:171", "nodes": [], "statements": [ { "assignments": [ - 119916 + 119396 ], "declarations": [ { "constant": false, - "id": 119916, + "id": 119396, "mutability": "mutable", "name": "loot", "nameLocation": "5332:4:171", "nodeType": "VariableDeclaration", - "scope": 120028, + "scope": 119508, "src": "5319:17:171", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 119915, + "id": 119395, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119914, + "id": 119394, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "5319:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "5319:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 119920, + "id": 119400, "initialValue": { "baseExpression": { - "id": 119917, + "id": 119397, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119494, + "referencedDeclaration": 118974, "src": "5339:8:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 119919, + "id": 119399, "indexExpression": { - "id": 119918, + "id": 119398, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119911, + "referencedDeclaration": 119391, "src": "5348:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8347,7 +8347,7 @@ "nodeType": "IndexAccess", "src": "5339:18:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage", + "typeIdentifier": "t_struct$_Loot_$118959_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -8356,17 +8356,17 @@ }, { "assignments": [ - 119925 + 119405 ], "declarations": [ { "constant": false, - "id": 119925, + "id": 119405, "mutability": "mutable", "name": "random_numbers", "nameLocation": "5382:14:171", "nodeType": "VariableDeclaration", - "scope": 120028, + "scope": 119508, "src": "5367:29:171", "stateVariable": false, "storageLocation": "memory", @@ -8376,7 +8376,7 @@ }, "typeName": { "baseType": { - "id": 119923, + "id": 119403, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "5367:5:171", @@ -8385,7 +8385,7 @@ "typeString": "uint8" } }, - "id": 119924, + "id": 119404, "nodeType": "ArrayTypeName", "src": "5367:7:171", "typeDescriptions": { @@ -8396,30 +8396,30 @@ "visibility": "internal" } ], - "id": 119932, + "id": 119412, "initialValue": { "arguments": [ { "expression": { - "id": 119927, + "id": 119407, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5409:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119928, + "id": 119408, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 119457, + "referencedDeclaration": 118937, "src": "5409:13:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8428,7 +8428,7 @@ }, { "hexValue": "38", - "id": 119929, + "id": 119409, "isConstant": false, "isLValue": false, "isPure": true, @@ -8443,11 +8443,11 @@ "value": "8" }, { - "id": 119930, + "id": 119410, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119483, + "referencedDeclaration": 118963, "src": "5426:14:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8470,18 +8470,18 @@ "typeString": "uint256" } ], - "id": 119926, + "id": 119406, "name": "getRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120811, + "referencedDeclaration": 120291, "src": "5399:9:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint8_$dyn_memory_ptr_$", "typeString": "function (uint256,uint256,uint256) view returns (uint8[] memory)" } }, - "id": 119931, + "id": 119411, "isConstant": false, "isLValue": false, "isPure": false, @@ -8501,32 +8501,32 @@ }, { "expression": { - "id": 119942, + "id": 119422, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119933, + "id": 119413, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5451:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119935, + "id": 119415, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 119461, + "referencedDeclaration": 118941, "src": "5451:11:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8539,21 +8539,21 @@ "arguments": [ { "baseExpression": { - "id": 119937, + "id": 119417, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5470:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119939, + "id": 119419, "indexExpression": { "hexValue": "30", - "id": 119938, + "id": 119418, "isConstant": false, "isLValue": false, "isPure": true, @@ -8579,11 +8579,11 @@ } }, { - "id": 119940, + "id": 119420, "name": "weapons", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120410, + "referencedDeclaration": 119890, "src": "5489:7:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8602,18 +8602,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119936, + "id": 119416, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5465:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119941, + "id": 119421, "isConstant": false, "isLValue": false, "isPure": false, @@ -8634,38 +8634,38 @@ "typeString": "string storage ref" } }, - "id": 119943, + "id": 119423, "nodeType": "ExpressionStatement", "src": "5451:46:171" }, { "expression": { - "id": 119953, + "id": 119433, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119944, + "id": 119424, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5507:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119946, + "id": 119426, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 119463, + "referencedDeclaration": 118943, "src": "5507:10:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8678,21 +8678,21 @@ "arguments": [ { "baseExpression": { - "id": 119948, + "id": 119428, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5525:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119950, + "id": 119430, "indexExpression": { "hexValue": "31", - "id": 119949, + "id": 119429, "isConstant": false, "isLValue": false, "isPure": true, @@ -8718,11 +8718,11 @@ } }, { - "id": 119951, + "id": 119431, "name": "chestArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 119909, "src": "5544:10:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8741,18 +8741,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119947, + "id": 119427, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5520:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119952, + "id": 119432, "isConstant": false, "isLValue": false, "isPure": false, @@ -8773,38 +8773,38 @@ "typeString": "string storage ref" } }, - "id": 119954, + "id": 119434, "nodeType": "ExpressionStatement", "src": "5507:48:171" }, { "expression": { - "id": 119964, + "id": 119444, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119955, + "id": 119435, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5565:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119957, + "id": 119437, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 119465, + "referencedDeclaration": 118945, "src": "5565:9:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8817,21 +8817,21 @@ "arguments": [ { "baseExpression": { - "id": 119959, + "id": 119439, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5582:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119961, + "id": 119441, "indexExpression": { "hexValue": "32", - "id": 119960, + "id": 119440, "isConstant": false, "isLValue": false, "isPure": true, @@ -8857,11 +8857,11 @@ } }, { - "id": 119962, + "id": 119442, "name": "headArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120448, + "referencedDeclaration": 119928, "src": "5601:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8880,18 +8880,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119958, + "id": 119438, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5577:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119963, + "id": 119443, "isConstant": false, "isLValue": false, "isPure": false, @@ -8912,38 +8912,38 @@ "typeString": "string storage ref" } }, - "id": 119965, + "id": 119445, "nodeType": "ExpressionStatement", "src": "5565:46:171" }, { "expression": { - "id": 119975, + "id": 119455, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119966, + "id": 119446, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5621:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119968, + "id": 119448, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 119467, + "referencedDeclaration": 118947, "src": "5621:10:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8956,21 +8956,21 @@ "arguments": [ { "baseExpression": { - "id": 119970, + "id": 119450, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5639:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119972, + "id": 119452, "indexExpression": { "hexValue": "33", - "id": 119971, + "id": 119451, "isConstant": false, "isLValue": false, "isPure": true, @@ -8996,11 +8996,11 @@ } }, { - "id": 119973, + "id": 119453, "name": "waistArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120467, + "referencedDeclaration": 119947, "src": "5658:10:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9019,18 +9019,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119969, + "id": 119449, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5634:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119974, + "id": 119454, "isConstant": false, "isLValue": false, "isPure": false, @@ -9051,38 +9051,38 @@ "typeString": "string storage ref" } }, - "id": 119976, + "id": 119456, "nodeType": "ExpressionStatement", "src": "5621:48:171" }, { "expression": { - "id": 119986, + "id": 119466, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119977, + "id": 119457, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5679:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119979, + "id": 119459, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 119469, + "referencedDeclaration": 118949, "src": "5679:9:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9095,21 +9095,21 @@ "arguments": [ { "baseExpression": { - "id": 119981, + "id": 119461, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5696:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119983, + "id": 119463, "indexExpression": { "hexValue": "34", - "id": 119982, + "id": 119462, "isConstant": false, "isLValue": false, "isPure": true, @@ -9135,11 +9135,11 @@ } }, { - "id": 119984, + "id": 119464, "name": "footArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 119966, "src": "5715:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9158,18 +9158,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119980, + "id": 119460, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5691:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119985, + "id": 119465, "isConstant": false, "isLValue": false, "isPure": false, @@ -9190,38 +9190,38 @@ "typeString": "string storage ref" } }, - "id": 119987, + "id": 119467, "nodeType": "ExpressionStatement", "src": "5679:46:171" }, { "expression": { - "id": 119997, + "id": 119477, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119988, + "id": 119468, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5735:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 119990, + "id": 119470, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 119471, + "referencedDeclaration": 118951, "src": "5735:9:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9234,21 +9234,21 @@ "arguments": [ { "baseExpression": { - "id": 119992, + "id": 119472, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5752:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 119994, + "id": 119474, "indexExpression": { "hexValue": "35", - "id": 119993, + "id": 119473, "isConstant": false, "isLValue": false, "isPure": true, @@ -9274,11 +9274,11 @@ } }, { - "id": 119995, + "id": 119475, "name": "handArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120505, + "referencedDeclaration": 119985, "src": "5771:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9297,18 +9297,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 119991, + "id": 119471, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5747:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 119996, + "id": 119476, "isConstant": false, "isLValue": false, "isPure": false, @@ -9329,38 +9329,38 @@ "typeString": "string storage ref" } }, - "id": 119998, + "id": 119478, "nodeType": "ExpressionStatement", "src": "5735:46:171" }, { "expression": { - "id": 120008, + "id": 119488, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119999, + "id": 119479, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5791:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120001, + "id": 119481, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 119473, + "referencedDeclaration": 118953, "src": "5791:9:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9373,21 +9373,21 @@ "arguments": [ { "baseExpression": { - "id": 120003, + "id": 119483, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5808:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120005, + "id": 119485, "indexExpression": { "hexValue": "36", - "id": 120004, + "id": 119484, "isConstant": false, "isLValue": false, "isPure": true, @@ -9413,11 +9413,11 @@ } }, { - "id": 120006, + "id": 119486, "name": "necklaces", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120512, + "referencedDeclaration": 119992, "src": "5827:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9436,18 +9436,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 120002, + "id": 119482, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5803:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 120007, + "id": 119487, "isConstant": false, "isLValue": false, "isPure": false, @@ -9468,38 +9468,38 @@ "typeString": "string storage ref" } }, - "id": 120009, + "id": 119489, "nodeType": "ExpressionStatement", "src": "5791:46:171" }, { "expression": { - "id": 120019, + "id": 119499, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120010, + "id": 119490, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5847:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120012, + "id": 119492, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 119475, + "referencedDeclaration": 118955, "src": "5847:9:171", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9512,21 +9512,21 @@ "arguments": [ { "baseExpression": { - "id": 120014, + "id": 119494, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119925, + "referencedDeclaration": 119405, "src": "5864:14:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120016, + "id": 119496, "indexExpression": { "hexValue": "37", - "id": 120015, + "id": 119495, "isConstant": false, "isLValue": false, "isPure": true, @@ -9552,11 +9552,11 @@ } }, { - "id": 120017, + "id": 119497, "name": "rings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120521, + "referencedDeclaration": 120001, "src": "5883:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9575,18 +9575,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 120013, + "id": 119493, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119909, + "referencedDeclaration": 119389, "src": "5859:4:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint8_$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (uint8,string memory[] memory) view returns (string memory)" } }, - "id": 120018, + "id": 119498, "isConstant": false, "isLValue": false, "isPure": false, @@ -9607,41 +9607,41 @@ "typeString": "string storage ref" } }, - "id": 120020, + "id": 119500, "nodeType": "ExpressionStatement", "src": "5847:42:171" }, { "expression": { - "id": 120026, + "id": 119506, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120021, + "id": 119501, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119396, "src": "5899:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120023, + "id": 119503, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "5899:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -9649,38 +9649,38 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 120024, + "id": 119504, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "5912:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120025, + "id": 119505, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 120642, + "referencedDeclaration": 120122, "src": "5912:21:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, "src": "5899:34:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, - "id": 120027, + "id": 119507, "nodeType": "ExpressionStatement", "src": "5899:34:171" } @@ -9693,17 +9693,17 @@ "name": "revealNFT", "nameLocation": "5272:9:171", "parameters": { - "id": 119912, + "id": 119392, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119911, + "id": 119391, "mutability": "mutable", "name": "_tokenId", "nameLocation": "5290:8:171", "nodeType": "VariableDeclaration", - "scope": 120029, + "scope": 119509, "src": "5282:16:171", "stateVariable": false, "storageLocation": "default", @@ -9712,7 +9712,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119910, + "id": 119390, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5282:7:171", @@ -9727,88 +9727,88 @@ "src": "5281:18:171" }, "returnParameters": { - "id": 119913, + "id": 119393, "nodeType": "ParameterList", "parameters": [], "src": "5309:0:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120076, + "id": 119556, "nodeType": "FunctionDefinition", "src": "5946:324:171", "nodes": [], "body": { - "id": 120075, + "id": 119555, "nodeType": "Block", "src": "5984:286:171", "nodes": [], "statements": [ { "assignments": [ - 120036 + 119516 ], "declarations": [ { "constant": false, - "id": 120036, + "id": 119516, "mutability": "mutable", "name": "loot", "nameLocation": "6032:4:171", "nodeType": "VariableDeclaration", - "scope": 120075, + "scope": 119555, "src": "6019:17:171", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 120035, + "id": 119515, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120034, + "id": 119514, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "6019:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "6019:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 120040, + "id": 119520, "initialValue": { "baseExpression": { - "id": 120037, + "id": 119517, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119494, + "referencedDeclaration": 118974, "src": "6039:8:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 120039, + "id": 119519, "indexExpression": { - "id": 120038, + "id": 119518, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119481, + "referencedDeclaration": 118961, "src": "6048:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9822,7 +9822,7 @@ "nodeType": "IndexAccess", "src": "6039:17:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage", + "typeIdentifier": "t_struct$_Loot_$118959_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -9831,32 +9831,32 @@ }, { "expression": { - "id": 120045, + "id": 119525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120041, + "id": 119521, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120036, + "referencedDeclaration": 119516, "src": "6066:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120043, + "id": 119523, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 119459, + "referencedDeclaration": 118939, "src": "6066:10:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9866,11 +9866,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120044, + "id": 119524, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120031, + "referencedDeclaration": 119511, "src": "6079:5:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9883,41 +9883,41 @@ "typeString": "address" } }, - "id": 120046, + "id": 119526, "nodeType": "ExpressionStatement", "src": "6066:18:171" }, { "expression": { - "id": 120052, + "id": 119532, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120047, + "id": 119527, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120036, + "referencedDeclaration": 119516, "src": "6094:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120049, + "id": 119529, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "6094:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -9925,69 +9925,69 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 120050, + "id": 119530, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "6107:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120051, + "id": 119531, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 120641, + "referencedDeclaration": 120121, "src": "6107:19:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, "src": "6094:32:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, - "id": 120053, + "id": 119533, "nodeType": "ExpressionStatement", "src": "6094:32:171" }, { "expression": { - "id": 120058, + "id": 119538, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120054, + "id": 119534, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120036, + "referencedDeclaration": 119516, "src": "6136:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 120056, + "id": 119536, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 119457, + "referencedDeclaration": 118937, "src": "6136:13:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9997,11 +9997,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120057, + "id": 119537, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "6152:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10014,7 +10014,7 @@ "typeString": "uint256" } }, - "id": 120059, + "id": 119539, "nodeType": "ExpressionStatement", "src": "6136:24:171" }, @@ -10022,11 +10022,11 @@ "expression": { "arguments": [ { - "id": 120061, + "id": 119541, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "6184:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10041,18 +10041,18 @@ "typeString": "uint256" } ], - "id": 120060, + "id": 119540, "name": "requestRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120694, + "referencedDeclaration": 120174, "src": "6170:13:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 120062, + "id": 119542, "isConstant": false, "isLValue": false, "isPure": false, @@ -10067,7 +10067,7 @@ "typeString": "tuple()" } }, - "id": 120063, + "id": 119543, "nodeType": "ExpressionStatement", "src": "6170:23:171" }, @@ -10075,11 +10075,11 @@ "expression": { "arguments": [ { - "id": 120065, + "id": 119545, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120031, + "referencedDeclaration": 119511, "src": "6209:5:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10087,11 +10087,11 @@ } }, { - "id": 120066, + "id": 119546, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119481, + "referencedDeclaration": 118961, "src": "6216:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10110,7 +10110,7 @@ "typeString": "uint256" } ], - "id": 120064, + "id": 119544, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -10121,7 +10121,7 @@ "typeString": "function (address,uint256)" } }, - "id": 120067, + "id": 119547, "isConstant": false, "isLValue": false, "isPure": false, @@ -10136,13 +10136,13 @@ "typeString": "tuple()" } }, - "id": 120068, + "id": 119548, "nodeType": "ExpressionStatement", "src": "6203:21:171" }, { "expression": { - "id": 120070, + "id": 119550, "isConstant": false, "isLValue": false, "isPure": false, @@ -10152,11 +10152,11 @@ "prefix": false, "src": "6234:9:171", "subExpression": { - "id": 120069, + "id": 119549, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119481, + "referencedDeclaration": 118961, "src": "6234:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10168,13 +10168,13 @@ "typeString": "uint256" } }, - "id": 120071, + "id": 119551, "nodeType": "ExpressionStatement", "src": "6234:9:171" }, { "expression": { - "id": 120073, + "id": 119553, "isConstant": false, "isLValue": false, "isPure": false, @@ -10184,11 +10184,11 @@ "prefix": false, "src": "6253:10:171", "subExpression": { - "id": 120072, + "id": 119552, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "6253:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10200,7 +10200,7 @@ "typeString": "uint256" } }, - "id": 120074, + "id": 119554, "nodeType": "ExpressionStatement", "src": "6253:10:171" } @@ -10213,17 +10213,17 @@ "name": "mint", "nameLocation": "5955:4:171", "parameters": { - "id": 120032, + "id": 119512, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120031, + "id": 119511, "mutability": "mutable", "name": "_addr", "nameLocation": "5968:5:171", "nodeType": "VariableDeclaration", - "scope": 120076, + "scope": 119556, "src": "5960:13:171", "stateVariable": false, "storageLocation": "default", @@ -10232,7 +10232,7 @@ "typeString": "address" }, "typeName": { - "id": 120030, + "id": 119510, "name": "address", "nodeType": "ElementaryTypeName", "src": "5960:7:171", @@ -10248,40 +10248,40 @@ "src": "5959:15:171" }, "returnParameters": { - "id": 120033, + "id": 119513, "nodeType": "ParameterList", "parameters": [], "src": "5984:0:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120107, + "id": 119587, "nodeType": "FunctionDefinition", "src": "6282:192:171", "nodes": [], "body": { - "id": 120106, + "id": 119586, "nodeType": "Block", "src": "6329:145:171", "nodes": [], "statements": [ { "assignments": [ - 120084 + 119564 ], "declarations": [ { "constant": false, - "id": 120084, + "id": 119564, "mutability": "mutable", "name": "balance", "nameLocation": "6347:7:171", "nodeType": "VariableDeclaration", - "scope": 120106, + "scope": 119586, "src": "6339:15:171", "stateVariable": false, "storageLocation": "default", @@ -10290,7 +10290,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120083, + "id": 119563, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6339:7:171", @@ -10302,19 +10302,19 @@ "visibility": "internal" } ], - "id": 120090, + "id": 119570, "initialValue": { "expression": { "arguments": [ { - "id": 120087, + "id": 119567, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "6365:4:171", "typeDescriptions": { - "typeIdentifier": "t_contract$_MLoot_$120386", + "typeIdentifier": "t_contract$_MLoot_$119866", "typeString": "contract MLoot" } } @@ -10322,11 +10322,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_MLoot_$120386", + "typeIdentifier": "t_contract$_MLoot_$119866", "typeString": "contract MLoot" } ], - "id": 120086, + "id": 119566, "isConstant": false, "isLValue": false, "isPure": true, @@ -10338,14 +10338,14 @@ "typeString": "type(address)" }, "typeName": { - "id": 120085, + "id": 119565, "name": "address", "nodeType": "ElementaryTypeName", "src": "6357:7:171", "typeDescriptions": {} } }, - "id": 120088, + "id": 119568, "isConstant": false, "isLValue": false, "isPure": false, @@ -10360,7 +10360,7 @@ "typeString": "address" } }, - "id": 120089, + "id": 119569, "isConstant": false, "isLValue": false, "isPure": false, @@ -10384,17 +10384,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120094, + "id": 119574, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120092, + "id": 119572, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120084, + "referencedDeclaration": 119564, "src": "6396:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10405,7 +10405,7 @@ "operator": ">", "rightExpression": { "hexValue": "30", - "id": 120093, + "id": 119573, "isConstant": false, "isLValue": false, "isPure": true, @@ -10427,7 +10427,7 @@ }, { "hexValue": "73756666696369656e742066756e6473", - "id": 120095, + "id": 119575, "isConstant": false, "isLValue": false, "isPure": true, @@ -10453,7 +10453,7 @@ "typeString": "literal_string \"sufficient funds\"" } ], - "id": 120091, + "id": 119571, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -10467,7 +10467,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120096, + "id": 119576, "isConstant": false, "isLValue": false, "isPure": false, @@ -10482,7 +10482,7 @@ "typeString": "tuple()" } }, - "id": 120097, + "id": 119577, "nodeType": "ExpressionStatement", "src": "6388:40:171" }, @@ -10490,11 +10490,11 @@ "expression": { "arguments": [ { - "id": 120103, + "id": 119583, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120084, + "referencedDeclaration": 119564, "src": "6459:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10512,11 +10512,11 @@ "expression": { "arguments": [ { - "id": 120100, + "id": 119580, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120078, + "referencedDeclaration": 119558, "src": "6446:2:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10531,7 +10531,7 @@ "typeString": "address" } ], - "id": 120099, + "id": 119579, "isConstant": false, "isLValue": false, "isPure": true, @@ -10543,7 +10543,7 @@ "typeString": "type(address payable)" }, "typeName": { - "id": 120098, + "id": 119578, "name": "address", "nodeType": "ElementaryTypeName", "src": "6438:8:171", @@ -10551,7 +10551,7 @@ "typeDescriptions": {} } }, - "id": 120101, + "id": 119581, "isConstant": false, "isLValue": false, "isPure": false, @@ -10566,7 +10566,7 @@ "typeString": "address payable" } }, - "id": 120102, + "id": 119582, "isConstant": false, "isLValue": false, "isPure": false, @@ -10579,7 +10579,7 @@ "typeString": "function (uint256)" } }, - "id": 120104, + "id": 119584, "isConstant": false, "isLValue": false, "isPure": false, @@ -10594,7 +10594,7 @@ "typeString": "tuple()" } }, - "id": 120105, + "id": 119585, "nodeType": "ExpressionStatement", "src": "6438:29:171" } @@ -10605,13 +10605,13 @@ "kind": "function", "modifiers": [ { - "id": 120081, + "id": 119561, "kind": "modifierInvocation", "modifierName": { - "id": 120080, + "id": 119560, "name": "onlyOwner", "nodeType": "IdentifierPath", - "referencedDeclaration": 119505, + "referencedDeclaration": 118985, "src": "6319:9:171" }, "nodeType": "ModifierInvocation", @@ -10621,17 +10621,17 @@ "name": "withdraw", "nameLocation": "6291:8:171", "parameters": { - "id": 120079, + "id": 119559, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120078, + "id": 119558, "mutability": "mutable", "name": "to", "nameLocation": "6308:2:171", "nodeType": "VariableDeclaration", - "scope": 120107, + "scope": 119587, "src": "6300:10:171", "stateVariable": false, "storageLocation": "default", @@ -10640,7 +10640,7 @@ "typeString": "address" }, "typeName": { - "id": 120077, + "id": 119557, "name": "address", "nodeType": "ElementaryTypeName", "src": "6300:7:171", @@ -10656,23 +10656,23 @@ "src": "6299:12:171" }, "returnParameters": { - "id": 120082, + "id": 119562, "nodeType": "ParameterList", "parameters": [], "src": "6329:0:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 120127, + "id": 119607, "nodeType": "FunctionDefinition", "src": "6480:214:171", "nodes": [], "body": { - "id": 120126, + "id": 119606, "nodeType": "Block", "src": "6619:75:171", "nodes": [], @@ -10681,11 +10681,11 @@ "expression": { "arguments": [ { - "id": 120122, + "id": 119602, "name": "_targetAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120109, + "referencedDeclaration": 119589, "src": "6663:14:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10693,11 +10693,11 @@ } }, { - "id": 120123, + "id": 119603, "name": "_amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120113, + "referencedDeclaration": 119593, "src": "6679:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10719,11 +10719,11 @@ "expression": { "arguments": [ { - "id": 120119, + "id": 119599, "name": "_contractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120111, + "referencedDeclaration": 119591, "src": "6636:16:171", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10738,7 +10738,7 @@ "typeString": "address" } ], - "id": 120118, + "id": 119598, "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -10749,7 +10749,7 @@ "typeString": "type(contract IERC20)" } }, - "id": 120120, + "id": 119600, "isConstant": false, "isLValue": false, "isPure": false, @@ -10764,7 +10764,7 @@ "typeString": "contract IERC20" } }, - "id": 120121, + "id": 119601, "isConstant": false, "isLValue": false, "isPure": false, @@ -10778,7 +10778,7 @@ "typeString": "function (address,uint256) external returns (bool)" } }, - "id": 120124, + "id": 119604, "isConstant": false, "isLValue": false, "isPure": false, @@ -10793,7 +10793,7 @@ "typeString": "bool" } }, - "id": 120125, + "id": 119605, "nodeType": "ExpressionStatement", "src": "6629:58:171" } @@ -10804,13 +10804,13 @@ "kind": "function", "modifiers": [ { - "id": 120116, + "id": 119596, "kind": "modifierInvocation", "modifierName": { - "id": 120115, + "id": 119595, "name": "onlyOwner", "nodeType": "IdentifierPath", - "referencedDeclaration": 119505, + "referencedDeclaration": 118985, "src": "6609:9:171" }, "nodeType": "ModifierInvocation", @@ -10820,17 +10820,17 @@ "name": "withdrawErc20", "nameLocation": "6489:13:171", "parameters": { - "id": 120114, + "id": 119594, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120109, + "id": 119589, "mutability": "mutable", "name": "_targetAddress", "nameLocation": "6520:14:171", "nodeType": "VariableDeclaration", - "scope": 120127, + "scope": 119607, "src": "6512:22:171", "stateVariable": false, "storageLocation": "default", @@ -10839,7 +10839,7 @@ "typeString": "address" }, "typeName": { - "id": 120108, + "id": 119588, "name": "address", "nodeType": "ElementaryTypeName", "src": "6512:7:171", @@ -10853,12 +10853,12 @@ }, { "constant": false, - "id": 120111, + "id": 119591, "mutability": "mutable", "name": "_contractAddress", "nameLocation": "6552:16:171", "nodeType": "VariableDeclaration", - "scope": 120127, + "scope": 119607, "src": "6544:24:171", "stateVariable": false, "storageLocation": "default", @@ -10867,7 +10867,7 @@ "typeString": "address" }, "typeName": { - "id": 120110, + "id": 119590, "name": "address", "nodeType": "ElementaryTypeName", "src": "6544:7:171", @@ -10881,12 +10881,12 @@ }, { "constant": false, - "id": 120113, + "id": 119593, "mutability": "mutable", "name": "_amount", "nameLocation": "6586:7:171", "nodeType": "VariableDeclaration", - "scope": 120127, + "scope": 119607, "src": "6578:15:171", "stateVariable": false, "storageLocation": "default", @@ -10895,7 +10895,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120112, + "id": 119592, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6578:7:171", @@ -10910,88 +10910,88 @@ "src": "6502:97:171" }, "returnParameters": { - "id": 120117, + "id": 119597, "nodeType": "ParameterList", "parameters": [], "src": "6619:0:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120183, + "id": 119663, "nodeType": "FunctionDefinition", "src": "6699:515:171", "nodes": [], "body": { - "id": 120182, + "id": 119662, "nodeType": "Block", "src": "6874:340:171", "nodes": [], "statements": [ { "assignments": [ - 120150 + 119630 ], "declarations": [ { "constant": false, - "id": 120150, + "id": 119630, "mutability": "mutable", "name": "loot", "nameLocation": "6896:4:171", "nodeType": "VariableDeclaration", - "scope": 120182, + "scope": 119662, "src": "6884:16:171", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 120149, + "id": 119629, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120148, + "id": 119628, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "6884:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "6884:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 120154, + "id": 119634, "initialValue": { "baseExpression": { - "id": 120151, + "id": 119631, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119494, + "referencedDeclaration": 118974, "src": "6903:8:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 120153, + "id": 119633, "indexExpression": { - "id": 120152, + "id": 119632, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120129, + "referencedDeclaration": 119609, "src": "6912:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11005,7 +11005,7 @@ "nodeType": "IndexAccess", "src": "6903:18:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage", + "typeIdentifier": "t_struct$_Loot_$118959_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -11017,38 +11017,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 120160, + "id": 119640, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120156, + "id": 119636, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "6939:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120157, + "id": 119637, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "6939:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -11056,28 +11056,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120158, + "id": 119638, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "6953:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120159, + "id": 119639, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 120642, + "referencedDeclaration": 120122, "src": "6953:21:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -11089,7 +11089,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 120161, + "id": 119641, "isConstant": false, "isLValue": false, "isPure": true, @@ -11115,7 +11115,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 120155, + "id": 119635, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -11129,7 +11129,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120162, + "id": 119642, "isConstant": false, "isLValue": false, "isPure": false, @@ -11144,7 +11144,7 @@ "typeString": "tuple()" } }, - "id": 120163, + "id": 119643, "nodeType": "ExpressionStatement", "src": "6931:62:171" }, @@ -11153,25 +11153,25 @@ "components": [ { "expression": { - "id": 120164, + "id": 119644, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7023:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120165, + "id": 119645, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 119461, + "referencedDeclaration": 118941, "src": "7023:11:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11180,25 +11180,25 @@ }, { "expression": { - "id": 120166, + "id": 119646, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7048:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120167, + "id": 119647, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 119463, + "referencedDeclaration": 118943, "src": "7048:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11207,25 +11207,25 @@ }, { "expression": { - "id": 120168, + "id": 119648, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7072:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120169, + "id": 119649, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 119465, + "referencedDeclaration": 118945, "src": "7072:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11234,25 +11234,25 @@ }, { "expression": { - "id": 120170, + "id": 119650, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7095:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120171, + "id": 119651, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 119467, + "referencedDeclaration": 118947, "src": "7095:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11261,25 +11261,25 @@ }, { "expression": { - "id": 120172, + "id": 119652, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7119:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120173, + "id": 119653, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 119469, + "referencedDeclaration": 118949, "src": "7119:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11288,25 +11288,25 @@ }, { "expression": { - "id": 120174, + "id": 119654, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7142:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120175, + "id": 119655, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 119471, + "referencedDeclaration": 118951, "src": "7142:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11315,25 +11315,25 @@ }, { "expression": { - "id": 120176, + "id": 119656, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7165:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120177, + "id": 119657, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 119473, + "referencedDeclaration": 118953, "src": "7165:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11342,25 +11342,25 @@ }, { "expression": { - "id": 120178, + "id": 119658, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120150, + "referencedDeclaration": 119630, "src": "7188:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120179, + "id": 119659, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 119475, + "referencedDeclaration": 118955, "src": "7188:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11368,7 +11368,7 @@ } } ], - "id": 120180, + "id": 119660, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -11381,8 +11381,8 @@ "typeString": "tuple(string memory,string memory,string memory,string memory,string memory,string memory,string memory,string memory)" } }, - "functionReturnParameters": 120147, - "id": 120181, + "functionReturnParameters": 119627, + "id": 119661, "nodeType": "Return", "src": "7003:204:171" } @@ -11395,17 +11395,17 @@ "name": "getStructInfo", "nameLocation": "6708:13:171", "parameters": { - "id": 120130, + "id": 119610, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120129, + "id": 119609, "mutability": "mutable", "name": "_tokenId", "nameLocation": "6730:8:171", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6722:16:171", "stateVariable": false, "storageLocation": "default", @@ -11414,7 +11414,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120128, + "id": 119608, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6722:7:171", @@ -11429,17 +11429,17 @@ "src": "6721:18:171" }, "returnParameters": { - "id": 120147, + "id": 119627, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120132, + "id": 119612, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6762:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11448,7 +11448,7 @@ "typeString": "string" }, "typeName": { - "id": 120131, + "id": 119611, "name": "string", "nodeType": "ElementaryTypeName", "src": "6762:6:171", @@ -11461,12 +11461,12 @@ }, { "constant": false, - "id": 120134, + "id": 119614, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6776:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11475,7 +11475,7 @@ "typeString": "string" }, "typeName": { - "id": 120133, + "id": 119613, "name": "string", "nodeType": "ElementaryTypeName", "src": "6776:6:171", @@ -11488,12 +11488,12 @@ }, { "constant": false, - "id": 120136, + "id": 119616, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6790:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11502,7 +11502,7 @@ "typeString": "string" }, "typeName": { - "id": 120135, + "id": 119615, "name": "string", "nodeType": "ElementaryTypeName", "src": "6790:6:171", @@ -11515,12 +11515,12 @@ }, { "constant": false, - "id": 120138, + "id": 119618, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6804:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11529,7 +11529,7 @@ "typeString": "string" }, "typeName": { - "id": 120137, + "id": 119617, "name": "string", "nodeType": "ElementaryTypeName", "src": "6804:6:171", @@ -11542,12 +11542,12 @@ }, { "constant": false, - "id": 120140, + "id": 119620, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6818:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11556,7 +11556,7 @@ "typeString": "string" }, "typeName": { - "id": 120139, + "id": 119619, "name": "string", "nodeType": "ElementaryTypeName", "src": "6818:6:171", @@ -11569,12 +11569,12 @@ }, { "constant": false, - "id": 120142, + "id": 119622, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6832:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11583,7 +11583,7 @@ "typeString": "string" }, "typeName": { - "id": 120141, + "id": 119621, "name": "string", "nodeType": "ElementaryTypeName", "src": "6832:6:171", @@ -11596,12 +11596,12 @@ }, { "constant": false, - "id": 120144, + "id": 119624, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6846:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11610,7 +11610,7 @@ "typeString": "string" }, "typeName": { - "id": 120143, + "id": 119623, "name": "string", "nodeType": "ElementaryTypeName", "src": "6846:6:171", @@ -11623,12 +11623,12 @@ }, { "constant": false, - "id": 120146, + "id": 119626, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120183, + "scope": 119663, "src": "6860:13:171", "stateVariable": false, "storageLocation": "memory", @@ -11637,7 +11637,7 @@ "typeString": "string" }, "typeName": { - "id": 120145, + "id": 119625, "name": "string", "nodeType": "ElementaryTypeName", "src": "6860:6:171", @@ -11651,83 +11651,83 @@ ], "src": "6761:113:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 120263, + "id": 119743, "nodeType": "FunctionDefinition", "src": "7219:620:171", "nodes": [], "body": { - "id": 120262, + "id": 119742, "nodeType": "Block", "src": "7351:488:171", "nodes": [], "statements": [ { "assignments": [ - 120206 + 119686 ], "declarations": [ { "constant": false, - "id": 120206, + "id": 119686, "mutability": "mutable", "name": "loot", "nameLocation": "7373:4:171", "nodeType": "VariableDeclaration", - "scope": 120262, + "scope": 119742, "src": "7361:16:171", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 120205, + "id": 119685, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120204, + "id": 119684, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "7361:4:171" }, - "referencedDeclaration": 119479, + "referencedDeclaration": 118959, "src": "7361:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 120210, + "id": 119690, "initialValue": { "baseExpression": { - "id": 120207, + "id": 119687, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119494, + "referencedDeclaration": 118974, "src": "7380:8:171", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$119479_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118959_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 120209, + "id": 119689, "indexExpression": { - "id": 120208, + "id": 119688, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120185, + "referencedDeclaration": 119665, "src": "7389:8:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11741,7 +11741,7 @@ "nodeType": "IndexAccess", "src": "7380:18:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_storage", + "typeIdentifier": "t_struct$_Loot_$118959_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -11753,38 +11753,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 120216, + "id": 119696, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120212, + "id": 119692, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7416:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120213, + "id": 119693, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119478, + "referencedDeclaration": 118958, "src": "7416:10:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -11792,28 +11792,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120214, + "id": 119694, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "7430:11:171", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120215, + "id": 119695, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 120642, + "referencedDeclaration": 120122, "src": "7430:21:171", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -11825,7 +11825,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 120217, + "id": 119697, "isConstant": false, "isLValue": false, "isPure": true, @@ -11851,7 +11851,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 120211, + "id": 119691, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -11865,7 +11865,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120218, + "id": 119698, "isConstant": false, "isLValue": false, "isPure": false, @@ -11880,7 +11880,7 @@ "typeString": "tuple()" } }, - "id": 120219, + "id": 119699, "nodeType": "ExpressionStatement", "src": "7408:62:171" }, @@ -11890,11 +11890,11 @@ { "arguments": [ { - "id": 120221, + "id": 119701, "name": "weapons", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120410, + "referencedDeclaration": 119890, "src": "7508:7:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -11903,25 +11903,25 @@ }, { "expression": { - "id": 120222, + "id": 119702, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7516:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120223, + "id": 119703, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 119461, + "referencedDeclaration": 118941, "src": "7516:11:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11940,18 +11940,18 @@ "typeString": "string memory" } ], - "id": 120220, + "id": 119700, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7500:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120224, + "id": 119704, "isConstant": false, "isLValue": false, "isPure": false, @@ -11969,11 +11969,11 @@ { "arguments": [ { - "id": 120226, + "id": 119706, "name": "chestArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 119909, "src": "7550:10:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -11982,25 +11982,25 @@ }, { "expression": { - "id": 120227, + "id": 119707, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7561:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120228, + "id": 119708, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 119463, + "referencedDeclaration": 118943, "src": "7561:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12019,18 +12019,18 @@ "typeString": "string memory" } ], - "id": 120225, + "id": 119705, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7542:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120229, + "id": 119709, "isConstant": false, "isLValue": false, "isPure": false, @@ -12048,11 +12048,11 @@ { "arguments": [ { - "id": 120231, + "id": 119711, "name": "headArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120448, + "referencedDeclaration": 119928, "src": "7594:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12061,25 +12061,25 @@ }, { "expression": { - "id": 120232, + "id": 119712, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7604:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120233, + "id": 119713, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 119465, + "referencedDeclaration": 118945, "src": "7604:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12098,18 +12098,18 @@ "typeString": "string memory" } ], - "id": 120230, + "id": 119710, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7586:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120234, + "id": 119714, "isConstant": false, "isLValue": false, "isPure": false, @@ -12127,11 +12127,11 @@ { "arguments": [ { - "id": 120236, + "id": 119716, "name": "waistArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120467, + "referencedDeclaration": 119947, "src": "7636:10:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12140,25 +12140,25 @@ }, { "expression": { - "id": 120237, + "id": 119717, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7647:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120238, + "id": 119718, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 119467, + "referencedDeclaration": 118947, "src": "7647:10:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12177,18 +12177,18 @@ "typeString": "string memory" } ], - "id": 120235, + "id": 119715, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7628:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120239, + "id": 119719, "isConstant": false, "isLValue": false, "isPure": false, @@ -12206,11 +12206,11 @@ { "arguments": [ { - "id": 120241, + "id": 119721, "name": "footArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 119966, "src": "7680:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12219,25 +12219,25 @@ }, { "expression": { - "id": 120242, + "id": 119722, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7690:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120243, + "id": 119723, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 119469, + "referencedDeclaration": 118949, "src": "7690:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12256,18 +12256,18 @@ "typeString": "string memory" } ], - "id": 120240, + "id": 119720, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7672:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120244, + "id": 119724, "isConstant": false, "isLValue": false, "isPure": false, @@ -12285,11 +12285,11 @@ { "arguments": [ { - "id": 120246, + "id": 119726, "name": "handArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120505, + "referencedDeclaration": 119985, "src": "7722:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12298,25 +12298,25 @@ }, { "expression": { - "id": 120247, + "id": 119727, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7732:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120248, + "id": 119728, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 119471, + "referencedDeclaration": 118951, "src": "7732:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12335,18 +12335,18 @@ "typeString": "string memory" } ], - "id": 120245, + "id": 119725, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7714:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120249, + "id": 119729, "isConstant": false, "isLValue": false, "isPure": false, @@ -12364,11 +12364,11 @@ { "arguments": [ { - "id": 120251, + "id": 119731, "name": "necklaces", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120512, + "referencedDeclaration": 119992, "src": "7764:9:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12377,25 +12377,25 @@ }, { "expression": { - "id": 120252, + "id": 119732, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7774:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120253, + "id": 119733, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 119473, + "referencedDeclaration": 118953, "src": "7774:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12414,18 +12414,18 @@ "typeString": "string memory" } ], - "id": 120250, + "id": 119730, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7756:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120254, + "id": 119734, "isConstant": false, "isLValue": false, "isPure": false, @@ -12443,11 +12443,11 @@ { "arguments": [ { - "id": 120256, + "id": 119736, "name": "rings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120521, + "referencedDeclaration": 120001, "src": "7806:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12456,25 +12456,25 @@ }, { "expression": { - "id": 120257, + "id": 119737, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120206, + "referencedDeclaration": 119686, "src": "7812:4:171", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$119479_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118959_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 120258, + "id": 119738, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 119475, + "referencedDeclaration": 118955, "src": "7812:9:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12493,18 +12493,18 @@ "typeString": "string memory" } ], - "id": 120255, + "id": 119735, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120385, + "referencedDeclaration": 119865, "src": "7798:7:171", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (string memory[] memory,string memory) pure returns (uint256)" } }, - "id": 120259, + "id": 119739, "isConstant": false, "isLValue": false, "isPure": false, @@ -12520,7 +12520,7 @@ } } ], - "id": 120260, + "id": 119740, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -12533,8 +12533,8 @@ "typeString": "tuple(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 120203, - "id": 120261, + "functionReturnParameters": 119683, + "id": 119741, "nodeType": "Return", "src": "7480:352:171" } @@ -12547,17 +12547,17 @@ "name": "getStructIndexInfo", "nameLocation": "7228:18:171", "parameters": { - "id": 120186, + "id": 119666, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120185, + "id": 119665, "mutability": "mutable", "name": "_tokenId", "nameLocation": "7255:8:171", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7247:16:171", "stateVariable": false, "storageLocation": "default", @@ -12566,7 +12566,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120184, + "id": 119664, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7247:7:171", @@ -12581,17 +12581,17 @@ "src": "7246:18:171" }, "returnParameters": { - "id": 120203, + "id": 119683, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120188, + "id": 119668, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7287:7:171", "stateVariable": false, "storageLocation": "default", @@ -12600,7 +12600,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120187, + "id": 119667, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7287:7:171", @@ -12613,12 +12613,12 @@ }, { "constant": false, - "id": 120190, + "id": 119670, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7295:7:171", "stateVariable": false, "storageLocation": "default", @@ -12627,7 +12627,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120189, + "id": 119669, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7295:7:171", @@ -12640,12 +12640,12 @@ }, { "constant": false, - "id": 120192, + "id": 119672, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7303:7:171", "stateVariable": false, "storageLocation": "default", @@ -12654,7 +12654,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120191, + "id": 119671, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7303:7:171", @@ -12667,12 +12667,12 @@ }, { "constant": false, - "id": 120194, + "id": 119674, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7311:7:171", "stateVariable": false, "storageLocation": "default", @@ -12681,7 +12681,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120193, + "id": 119673, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7311:7:171", @@ -12694,12 +12694,12 @@ }, { "constant": false, - "id": 120196, + "id": 119676, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7319:7:171", "stateVariable": false, "storageLocation": "default", @@ -12708,7 +12708,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120195, + "id": 119675, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7319:7:171", @@ -12721,12 +12721,12 @@ }, { "constant": false, - "id": 120198, + "id": 119678, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7327:7:171", "stateVariable": false, "storageLocation": "default", @@ -12735,7 +12735,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120197, + "id": 119677, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7327:7:171", @@ -12748,12 +12748,12 @@ }, { "constant": false, - "id": 120200, + "id": 119680, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7335:7:171", "stateVariable": false, "storageLocation": "default", @@ -12762,7 +12762,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120199, + "id": 119679, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7335:7:171", @@ -12775,12 +12775,12 @@ }, { "constant": false, - "id": 120202, + "id": 119682, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120263, + "scope": 119743, "src": "7343:7:171", "stateVariable": false, "storageLocation": "default", @@ -12789,7 +12789,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120201, + "id": 119681, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7343:7:171", @@ -12803,35 +12803,35 @@ ], "src": "7286:65:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 120327, + "id": 119807, "nodeType": "FunctionDefinition", "src": "7845:482:171", "nodes": [], "body": { - "id": 120326, + "id": 119806, "nodeType": "Block", "src": "7914:413:171", "nodes": [], "statements": [ { "assignments": [ - 120270 + 119750 ], "declarations": [ { "constant": false, - "id": 120270, + "id": 119750, "mutability": "mutable", "name": "balance", "nameLocation": "7932:7:171", "nodeType": "VariableDeclaration", - "scope": 120326, + "scope": 119806, "src": "7924:15:171", "stateVariable": false, "storageLocation": "default", @@ -12840,7 +12840,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120269, + "id": 119749, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7924:7:171", @@ -12852,12 +12852,12 @@ "visibility": "internal" } ], - "id": 120275, + "id": 119755, "initialValue": { "arguments": [ { "expression": { - "id": 120272, + "id": 119752, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -12868,7 +12868,7 @@ "typeString": "msg" } }, - "id": 120273, + "id": 119753, "isConstant": false, "isLValue": false, "isPure": false, @@ -12889,7 +12889,7 @@ "typeString": "address" } ], - "id": 120271, + "id": 119751, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -12900,7 +12900,7 @@ "typeString": "function (address) view returns (uint256)" } }, - "id": 120274, + "id": 119754, "isConstant": false, "isLValue": false, "isPure": false, @@ -12920,17 +12920,17 @@ }, { "assignments": [ - 120280 + 119760 ], "declarations": [ { "constant": false, - "id": 120280, + "id": 119760, "mutability": "mutable", "name": "tokenIds", "nameLocation": "7990:8:171", "nodeType": "VariableDeclaration", - "scope": 120326, + "scope": 119806, "src": "7973:25:171", "stateVariable": false, "storageLocation": "memory", @@ -12940,7 +12940,7 @@ }, "typeName": { "baseType": { - "id": 120278, + "id": 119758, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7973:7:171", @@ -12949,7 +12949,7 @@ "typeString": "uint256" } }, - "id": 120279, + "id": 119759, "nodeType": "ArrayTypeName", "src": "7973:9:171", "typeDescriptions": { @@ -12960,15 +12960,15 @@ "visibility": "internal" } ], - "id": 120286, + "id": 119766, "initialValue": { "arguments": [ { - "id": 120284, + "id": 119764, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120270, + "referencedDeclaration": 119750, "src": "8015:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12983,7 +12983,7 @@ "typeString": "uint256" } ], - "id": 120283, + "id": 119763, "isConstant": false, "isLValue": false, "isPure": true, @@ -12996,7 +12996,7 @@ }, "typeName": { "baseType": { - "id": 120281, + "id": 119761, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8005:7:171", @@ -13005,7 +13005,7 @@ "typeString": "uint256" } }, - "id": 120282, + "id": 119762, "nodeType": "ArrayTypeName", "src": "8005:9:171", "typeDescriptions": { @@ -13014,7 +13014,7 @@ } } }, - "id": 120285, + "id": 119765, "isConstant": false, "isLValue": false, "isPure": false, @@ -13034,17 +13034,17 @@ }, { "assignments": [ - 120288 + 119768 ], "declarations": [ { "constant": false, - "id": 120288, + "id": 119768, "mutability": "mutable", "name": "index", "nameLocation": "8041:5:171", "nodeType": "VariableDeclaration", - "scope": 120326, + "scope": 119806, "src": "8033:13:171", "stateVariable": false, "storageLocation": "default", @@ -13053,7 +13053,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120287, + "id": 119767, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8033:7:171", @@ -13065,13 +13065,13 @@ "visibility": "internal" } ], - "id": 120289, + "id": 119769, "nodeType": "VariableDeclarationStatement", "src": "8033:13:171" }, { "body": { - "id": 120322, + "id": 119802, "nodeType": "Block", "src": "8084:212:171", "statements": [ @@ -13081,7 +13081,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 120304, + "id": 119784, "isConstant": false, "isLValue": false, "isPure": false, @@ -13089,11 +13089,11 @@ "leftExpression": { "arguments": [ { - "id": 120300, + "id": 119780, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120291, + "referencedDeclaration": 119771, "src": "8109:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13108,7 +13108,7 @@ "typeString": "uint256" } ], - "id": 120299, + "id": 119779, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13119,7 +13119,7 @@ "typeString": "function (uint256) view returns (address)" } }, - "id": 120301, + "id": 119781, "isConstant": false, "isLValue": false, "isPure": false, @@ -13138,7 +13138,7 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120302, + "id": 119782, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13149,7 +13149,7 @@ "typeString": "msg" } }, - "id": 120303, + "id": 119783, "isConstant": false, "isLValue": false, "isPure": false, @@ -13168,41 +13168,41 @@ "typeString": "bool" } }, - "id": 120321, + "id": 119801, "nodeType": "IfStatement", "src": "8098:188:171", "trueBody": { - "id": 120320, + "id": 119800, "nodeType": "Block", "src": "8126:160:171", "statements": [ { "expression": { - "id": 120309, + "id": 119789, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120305, + "id": 119785, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120280, + "referencedDeclaration": 119760, "src": "8144:8:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "id": 120307, + "id": 119787, "indexExpression": { - "id": 120306, + "id": 119786, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 119768, "src": "8153:5:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13223,11 +13223,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120308, + "id": 119788, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120291, + "referencedDeclaration": 119771, "src": "8162:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13240,13 +13240,13 @@ "typeString": "uint256" } }, - "id": 120310, + "id": 119790, "nodeType": "ExpressionStatement", "src": "8144:19:171" }, { "expression": { - "id": 120312, + "id": 119792, "isConstant": false, "isLValue": false, "isPure": false, @@ -13256,11 +13256,11 @@ "prefix": false, "src": "8181:7:171", "subExpression": { - "id": 120311, + "id": 119791, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 119768, "src": "8181:5:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13272,7 +13272,7 @@ "typeString": "uint256" } }, - "id": 120313, + "id": 119793, "nodeType": "ExpressionStatement", "src": "8181:7:171" }, @@ -13282,17 +13282,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120316, + "id": 119796, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120314, + "id": 119794, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 119768, "src": "8209:5:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13302,11 +13302,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 120315, + "id": 119795, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120270, + "referencedDeclaration": 119750, "src": "8218:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13319,16 +13319,16 @@ "typeString": "bool" } }, - "id": 120319, + "id": 119799, "nodeType": "IfStatement", "src": "8206:66:171", "trueBody": { - "id": 120318, + "id": 119798, "nodeType": "Block", "src": "8226:46:171", "statements": [ { - "id": 120317, + "id": 119797, "nodeType": "Break", "src": "8248:5:171" } @@ -13345,17 +13345,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120295, + "id": 119775, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120293, + "id": 119773, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120291, + "referencedDeclaration": 119771, "src": "8070:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13365,11 +13365,11 @@ "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { - "id": 120294, + "id": 119774, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119481, + "referencedDeclaration": 118961, "src": "8072:7:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13382,20 +13382,20 @@ "typeString": "bool" } }, - "id": 120323, + "id": 119803, "initializationExpression": { "assignments": [ - 120291 + 119771 ], "declarations": [ { "constant": false, - "id": 120291, + "id": 119771, "mutability": "mutable", "name": "i", "nameLocation": "8068:1:171", "nodeType": "VariableDeclaration", - "scope": 120323, + "scope": 119803, "src": "8060:9:171", "stateVariable": false, "storageLocation": "default", @@ -13404,7 +13404,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120290, + "id": 119770, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8060:7:171", @@ -13416,13 +13416,13 @@ "visibility": "internal" } ], - "id": 120292, + "id": 119772, "nodeType": "VariableDeclarationStatement", "src": "8060:9:171" }, "loopExpression": { "expression": { - "id": 120297, + "id": 119777, "isConstant": false, "isLValue": false, "isPure": false, @@ -13432,11 +13432,11 @@ "prefix": false, "src": "8080:3:171", "subExpression": { - "id": 120296, + "id": 119776, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120291, + "referencedDeclaration": 119771, "src": "8080:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13448,7 +13448,7 @@ "typeString": "uint256" } }, - "id": 120298, + "id": 119778, "nodeType": "ExpressionStatement", "src": "8080:3:171" }, @@ -13457,19 +13457,19 @@ }, { "expression": { - "id": 120324, + "id": 119804, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120280, + "referencedDeclaration": 119760, "src": "8312:8:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "functionReturnParameters": 120268, - "id": 120325, + "functionReturnParameters": 119748, + "id": 119805, "nodeType": "Return", "src": "8305:15:171" } @@ -13482,23 +13482,23 @@ "name": "getUserTokenIdList", "nameLocation": "7854:18:171", "parameters": { - "id": 120264, + "id": 119744, "nodeType": "ParameterList", "parameters": [], "src": "7872:2:171" }, "returnParameters": { - "id": 120268, + "id": 119748, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120267, + "id": 119747, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120327, + "scope": 119807, "src": "7897:16:171", "stateVariable": false, "storageLocation": "memory", @@ -13508,7 +13508,7 @@ }, "typeName": { "baseType": { - "id": 120265, + "id": 119745, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7897:7:171", @@ -13517,7 +13517,7 @@ "typeString": "uint256" } }, - "id": 120266, + "id": 119746, "nodeType": "ArrayTypeName", "src": "7897:9:171", "typeDescriptions": { @@ -13530,35 +13530,35 @@ ], "src": "7896:18:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 120385, + "id": 119865, "nodeType": "FunctionDefinition", "src": "8333:391:171", "nodes": [], "body": { - "id": 120384, + "id": 119864, "nodeType": "Block", "src": "8423:301:171", "nodes": [], "statements": [ { "assignments": [ - 120338 + 119818 ], "declarations": [ { "constant": false, - "id": 120338, + "id": 119818, "mutability": "mutable", "name": "r", "nameLocation": "8441:1:171", "nodeType": "VariableDeclaration", - "scope": 120384, + "scope": 119864, "src": "8433:9:171", "stateVariable": false, "storageLocation": "default", @@ -13567,7 +13567,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120337, + "id": 119817, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8433:7:171", @@ -13579,7 +13579,7 @@ "visibility": "internal" } ], - "id": 120339, + "id": 119819, "nodeType": "VariableDeclarationStatement", "src": "8433:9:171" }, @@ -13591,25 +13591,25 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120344, + "id": 119824, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120341, + "id": 119821, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120330, + "referencedDeclaration": 119810, "src": "8460:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 120342, + "id": 119822, "isConstant": false, "isLValue": false, "isPure": false, @@ -13626,7 +13626,7 @@ "operator": ">", "rightExpression": { "hexValue": "30", - "id": 120343, + "id": 119823, "isConstant": false, "isLValue": false, "isPure": true, @@ -13648,7 +13648,7 @@ }, { "hexValue": "6c69737420697320656d707479", - "id": 120345, + "id": 119825, "isConstant": false, "isLValue": false, "isPure": true, @@ -13674,7 +13674,7 @@ "typeString": "literal_string \"list is empty\"" } ], - "id": 120340, + "id": 119820, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -13688,7 +13688,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120346, + "id": 119826, "isConstant": false, "isLValue": false, "isPure": false, @@ -13703,13 +13703,13 @@ "typeString": "tuple()" } }, - "id": 120347, + "id": 119827, "nodeType": "ExpressionStatement", "src": "8452:41:171" }, { "body": { - "id": 120380, + "id": 119860, "nodeType": "Block", "src": "8536:164:171", "statements": [ @@ -13719,7 +13719,7 @@ "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, - "id": 120372, + "id": 119852, "isConstant": false, "isLValue": false, "isPure": false, @@ -13730,24 +13730,24 @@ "arguments": [ { "baseExpression": { - "id": 120361, + "id": 119841, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120330, + "referencedDeclaration": 119810, "src": "8580:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 120363, + "id": 119843, "indexExpression": { - "id": 120362, + "id": 119842, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120349, + "referencedDeclaration": 119829, "src": "8586:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13774,7 +13774,7 @@ } ], "expression": { - "id": 120359, + "id": 119839, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13785,7 +13785,7 @@ "typeString": "abi" } }, - "id": 120360, + "id": 119840, "isConstant": false, "isLValue": false, "isPure": true, @@ -13798,7 +13798,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120364, + "id": 119844, "isConstant": false, "isLValue": false, "isPure": false, @@ -13821,7 +13821,7 @@ "typeString": "bytes memory" } ], - "id": 120358, + "id": 119838, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13832,7 +13832,7 @@ "typeString": "function (bytes memory) pure returns (bytes32)" } }, - "id": 120365, + "id": 119845, "isConstant": false, "isLValue": false, "isPure": false, @@ -13854,11 +13854,11 @@ { "arguments": [ { - "id": 120369, + "id": 119849, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120332, + "referencedDeclaration": 119812, "src": "8621:5:171", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -13874,7 +13874,7 @@ } ], "expression": { - "id": 120367, + "id": 119847, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13885,7 +13885,7 @@ "typeString": "abi" } }, - "id": 120368, + "id": 119848, "isConstant": false, "isLValue": false, "isPure": true, @@ -13898,7 +13898,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120370, + "id": 119850, "isConstant": false, "isLValue": false, "isPure": false, @@ -13921,7 +13921,7 @@ "typeString": "bytes memory" } ], - "id": 120366, + "id": 119846, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13932,7 +13932,7 @@ "typeString": "function (bytes memory) pure returns (bytes32)" } }, - "id": 120371, + "id": 119851, "isConstant": false, "isLValue": false, "isPure": false, @@ -13953,27 +13953,27 @@ "typeString": "bool" } }, - "id": 120379, + "id": 119859, "nodeType": "IfStatement", "src": "8550:140:171", "trueBody": { - "id": 120378, + "id": 119858, "nodeType": "Block", "src": "8629:61:171", "statements": [ { "expression": { - "id": 120375, + "id": 119855, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120373, + "id": 119853, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120338, + "referencedDeclaration": 119818, "src": "8647:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13983,11 +13983,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120374, + "id": 119854, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120349, + "referencedDeclaration": 119829, "src": "8651:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14000,12 +14000,12 @@ "typeString": "uint256" } }, - "id": 120376, + "id": 119856, "nodeType": "ExpressionStatement", "src": "8647:5:171" }, { - "id": 120377, + "id": 119857, "nodeType": "Break", "src": "8670:5:171" } @@ -14019,17 +14019,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120354, + "id": 119834, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120351, + "id": 119831, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120349, + "referencedDeclaration": 119829, "src": "8517:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14040,18 +14040,18 @@ "operator": "<", "rightExpression": { "expression": { - "id": 120352, + "id": 119832, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120330, + "referencedDeclaration": 119810, "src": "8519:5:171", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 120353, + "id": 119833, "isConstant": false, "isLValue": false, "isPure": false, @@ -14070,20 +14070,20 @@ "typeString": "bool" } }, - "id": 120381, + "id": 119861, "initializationExpression": { "assignments": [ - 120349 + 119829 ], "declarations": [ { "constant": false, - "id": 120349, + "id": 119829, "mutability": "mutable", "name": "i", "nameLocation": "8515:1:171", "nodeType": "VariableDeclaration", - "scope": 120381, + "scope": 119861, "src": "8507:9:171", "stateVariable": false, "storageLocation": "default", @@ -14092,7 +14092,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120348, + "id": 119828, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8507:7:171", @@ -14104,13 +14104,13 @@ "visibility": "internal" } ], - "id": 120350, + "id": 119830, "nodeType": "VariableDeclarationStatement", "src": "8507:9:171" }, "loopExpression": { "expression": { - "id": 120356, + "id": 119836, "isConstant": false, "isLValue": false, "isPure": false, @@ -14120,11 +14120,11 @@ "prefix": false, "src": "8532:3:171", "subExpression": { - "id": 120355, + "id": 119835, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120349, + "referencedDeclaration": 119829, "src": "8532:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14136,7 +14136,7 @@ "typeString": "uint256" } }, - "id": 120357, + "id": 119837, "nodeType": "ExpressionStatement", "src": "8532:3:171" }, @@ -14145,19 +14145,19 @@ }, { "expression": { - "id": 120382, + "id": 119862, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120338, + "referencedDeclaration": 119818, "src": "8716:1:171", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 120336, - "id": 120383, + "functionReturnParameters": 119816, + "id": 119863, "nodeType": "Return", "src": "8709:8:171" } @@ -14169,17 +14169,17 @@ "name": "indexOf", "nameLocation": "8342:7:171", "parameters": { - "id": 120333, + "id": 119813, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120330, + "id": 119810, "mutability": "mutable", "name": "_list", "nameLocation": "8366:5:171", "nodeType": "VariableDeclaration", - "scope": 120385, + "scope": 119865, "src": "8350:21:171", "stateVariable": false, "storageLocation": "memory", @@ -14189,7 +14189,7 @@ }, "typeName": { "baseType": { - "id": 120328, + "id": 119808, "name": "string", "nodeType": "ElementaryTypeName", "src": "8350:6:171", @@ -14198,7 +14198,7 @@ "typeString": "string" } }, - "id": 120329, + "id": 119809, "nodeType": "ArrayTypeName", "src": "8350:8:171", "typeDescriptions": { @@ -14210,12 +14210,12 @@ }, { "constant": false, - "id": 120332, + "id": 119812, "mutability": "mutable", "name": "_name", "nameLocation": "8386:5:171", "nodeType": "VariableDeclaration", - "scope": 120385, + "scope": 119865, "src": "8372:19:171", "stateVariable": false, "storageLocation": "memory", @@ -14224,7 +14224,7 @@ "typeString": "string" }, "typeName": { - "id": 120331, + "id": 119811, "name": "string", "nodeType": "ElementaryTypeName", "src": "8372:6:171", @@ -14239,17 +14239,17 @@ "src": "8349:43:171" }, "returnParameters": { - "id": 120336, + "id": 119816, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120335, + "id": 119815, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120385, + "scope": 119865, "src": "8415:7:171", "stateVariable": false, "storageLocation": "default", @@ -14258,7 +14258,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120334, + "id": 119814, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8415:7:171", @@ -14272,7 +14272,7 @@ ], "src": "8414:9:171" }, - "scope": 120386, + "scope": 119866, "stateMutability": "pure", "virtual": false, "visibility": "internal" @@ -14282,37 +14282,37 @@ "baseContracts": [ { "baseName": { - "id": 119412, + "id": 118892, "name": "Suit", "nodeType": "IdentifierPath", - "referencedDeclaration": 120637, + "referencedDeclaration": 120117, "src": "315:4:171" }, - "id": 119413, + "id": 118893, "nodeType": "InheritanceSpecifier", "src": "315:4:171" }, { "baseName": { - "id": 119414, + "id": 118894, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, "src": "321:6:171" }, - "id": 119415, + "id": 118895, "nodeType": "InheritanceSpecifier", "src": "321:6:171" }, { "baseName": { - "id": 119416, + "id": 118896, "name": "MRandom", "nodeType": "IdentifierPath", - "referencedDeclaration": 120834, + "referencedDeclaration": 120314, "src": "328:7:171" }, - "id": 119417, + "id": 118897, "nodeType": "InheritanceSpecifier", "src": "328:7:171" } @@ -14322,19 +14322,19 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 120386, - 120834, + 119866, + 120314, 72425, - 131643, - 131598, - 132019, - 174300, - 131995, - 120637 + 131141, + 131096, + 131517, + 173798, + 131493, + 120117 ], "name": "MLoot", "nameLocation": "306:5:171", - "scope": 120387, + "scope": 119867, "usedErrors": [] } ], diff --git a/packages/contracts/out/Plugin.sol/MPlugin.json b/packages/contracts/out/Plugin.sol/MPlugin.json index b34aaeae..e1084454 100644 --- a/packages/contracts/out/Plugin.sol/MPlugin.json +++ b/packages/contracts/out/Plugin.sol/MPlugin.json @@ -214,23 +214,23 @@ }, "ast": { "absolutePath": "src/other/Plugin.sol", - "id": 120930, + "id": 120410, "exportedSymbols": { "Loot": [ - 125266 + 124764 ], "MPlugin": [ - 120929 + 120409 ], "User": [ - 125227 + 124725 ] }, "nodeType": "SourceUnit", "src": "32:765:174", "nodes": [ { - "id": 120836, + "id": 120316, "nodeType": "PragmaDirective", "src": "32:24:174", "nodes": [], @@ -242,23 +242,23 @@ ] }, { - "id": 120839, + "id": 120319, "nodeType": "ImportDirective", "src": "57:61:174", "nodes": [], "absolutePath": "src/systems/library/Interface.sol", "file": "@systems/library/Interface.sol", "nameLocation": "-1:-1:-1", - "scope": 120930, - "sourceUnit": 125267, + "scope": 120410, + "sourceUnit": 124765, "symbolAliases": [ { "foreign": { - "id": 120837, + "id": 120317, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "66:4:174", "typeDescriptions": {} }, @@ -266,11 +266,11 @@ }, { "foreign": { - "id": 120838, + "id": 120318, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "72:4:174", "typeDescriptions": {} }, @@ -280,12 +280,12 @@ "unitAlias": "" }, { - "id": 120929, + "id": 120409, "nodeType": "ContractDefinition", "src": "121:676:174", "nodes": [ { - "id": 120841, + "id": 120321, "nodeType": "VariableDeclaration", "src": "144:26:174", "nodes": [], @@ -294,7 +294,7 @@ "mutability": "mutable", "name": "lootAddress", "nameLocation": "159:11:174", - "scope": 120929, + "scope": 120409, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -302,7 +302,7 @@ "typeString": "address" }, "typeName": { - "id": 120840, + "id": 120320, "name": "address", "nodeType": "ElementaryTypeName", "src": "144:7:174", @@ -315,7 +315,7 @@ "visibility": "public" }, { - "id": 120843, + "id": 120323, "nodeType": "VariableDeclaration", "src": "176:26:174", "nodes": [], @@ -324,7 +324,7 @@ "mutability": "mutable", "name": "userAddress", "nameLocation": "191:11:174", - "scope": 120929, + "scope": 120409, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -332,7 +332,7 @@ "typeString": "address" }, "typeName": { - "id": 120842, + "id": 120322, "name": "address", "nodeType": "ElementaryTypeName", "src": "176:7:174", @@ -345,29 +345,29 @@ "visibility": "public" }, { - "id": 120859, + "id": 120339, "nodeType": "FunctionDefinition", "src": "209:134:174", "nodes": [], "body": { - "id": 120858, + "id": 120338, "nodeType": "Block", "src": "264:79:174", "nodes": [], "statements": [ { "expression": { - "id": 120852, + "id": 120332, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120850, + "id": 120330, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120841, + "referencedDeclaration": 120321, "src": "274:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -377,11 +377,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120851, + "id": 120331, "name": "_lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120845, + "referencedDeclaration": 120325, "src": "288:12:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -394,23 +394,23 @@ "typeString": "address" } }, - "id": 120853, + "id": 120333, "nodeType": "ExpressionStatement", "src": "274:26:174" }, { "expression": { - "id": 120856, + "id": 120336, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120854, + "id": 120334, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120843, + "referencedDeclaration": 120323, "src": "310:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -420,11 +420,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120855, + "id": 120335, "name": "_userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120847, + "referencedDeclaration": 120327, "src": "324:12:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -437,7 +437,7 @@ "typeString": "address" } }, - "id": 120857, + "id": 120337, "nodeType": "ExpressionStatement", "src": "310:26:174" } @@ -449,17 +449,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 120848, + "id": 120328, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120845, + "id": 120325, "mutability": "mutable", "name": "_lootAddress", "nameLocation": "229:12:174", "nodeType": "VariableDeclaration", - "scope": 120859, + "scope": 120339, "src": "221:20:174", "stateVariable": false, "storageLocation": "default", @@ -468,7 +468,7 @@ "typeString": "address" }, "typeName": { - "id": 120844, + "id": 120324, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:174", @@ -482,12 +482,12 @@ }, { "constant": false, - "id": 120847, + "id": 120327, "mutability": "mutable", "name": "_userAddress", "nameLocation": "250:12:174", "nodeType": "VariableDeclaration", - "scope": 120859, + "scope": 120339, "src": "242:20:174", "stateVariable": false, "storageLocation": "default", @@ -496,7 +496,7 @@ "typeString": "address" }, "typeName": { - "id": 120846, + "id": 120326, "name": "address", "nodeType": "ElementaryTypeName", "src": "242:7:174", @@ -512,76 +512,76 @@ "src": "220:43:174" }, "returnParameters": { - "id": 120849, + "id": 120329, "nodeType": "ParameterList", "parameters": [], "src": "264:0:174" }, - "scope": 120929, + "scope": 120409, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 120894, + "id": 120374, "nodeType": "FunctionDefinition", "src": "350:202:174", "nodes": [], "body": { - "id": 120893, + "id": 120373, "nodeType": "Block", "src": "379:173:174", "nodes": [], "statements": [ { "assignments": [ - 120864 + 120344 ], "declarations": [ { "constant": false, - "id": 120864, + "id": 120344, "mutability": "mutable", "name": "user", "nameLocation": "394:4:174", "nodeType": "VariableDeclaration", - "scope": 120893, + "scope": 120373, "src": "389:9:174", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" }, "typeName": { - "id": 120863, + "id": 120343, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120862, + "id": 120342, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "389:4:174" }, - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "389:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, "visibility": "internal" } ], - "id": 120868, + "id": 120348, "initialValue": { "arguments": [ { - "id": 120866, + "id": 120346, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120843, + "referencedDeclaration": 120323, "src": "406:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -596,18 +596,18 @@ "typeString": "address" } ], - "id": 120865, + "id": 120345, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "401:4:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_User_$125227_$", + "typeIdentifier": "t_type$_t_contract$_User_$124725_$", "typeString": "type(contract User)" } }, - "id": 120867, + "id": 120347, "isConstant": false, "isLValue": false, "isPure": false, @@ -618,7 +618,7 @@ "src": "401:17:174", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, @@ -627,53 +627,53 @@ }, { "assignments": [ - 120871 + 120351 ], "declarations": [ { "constant": false, - "id": 120871, + "id": 120351, "mutability": "mutable", "name": "loot", "nameLocation": "433:4:174", "nodeType": "VariableDeclaration", - "scope": 120893, + "scope": 120373, "src": "428:9:174", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" }, "typeName": { - "id": 120870, + "id": 120350, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120869, + "id": 120349, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "428:4:174" }, - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "428:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, "visibility": "internal" } ], - "id": 120875, + "id": 120355, "initialValue": { "arguments": [ { - "id": 120873, + "id": 120353, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120841, + "referencedDeclaration": 120321, "src": "445:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -688,18 +688,18 @@ "typeString": "address" } ], - "id": 120872, + "id": 120352, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "440:4:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Loot_$125266_$", + "typeIdentifier": "t_type$_t_contract$_Loot_$124764_$", "typeString": "type(contract Loot)" } }, - "id": 120874, + "id": 120354, "isConstant": false, "isLValue": false, "isPure": false, @@ -710,7 +710,7 @@ "src": "440:17:174", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, @@ -719,17 +719,17 @@ }, { "assignments": [ - 120877 + 120357 ], "declarations": [ { "constant": false, - "id": 120877, + "id": 120357, "mutability": "mutable", "name": "_user", "nameLocation": "475:5:174", "nodeType": "VariableDeclaration", - "scope": 120893, + "scope": 120373, "src": "467:13:174", "stateVariable": false, "storageLocation": "default", @@ -738,7 +738,7 @@ "typeString": "address" }, "typeName": { - "id": 120876, + "id": 120356, "name": "address", "nodeType": "ElementaryTypeName", "src": "467:7:174", @@ -751,10 +751,10 @@ "visibility": "internal" } ], - "id": 120880, + "id": 120360, "initialValue": { "expression": { - "id": 120878, + "id": 120358, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -765,7 +765,7 @@ "typeString": "msg" } }, - "id": 120879, + "id": 120359, "isConstant": false, "isLValue": false, "isPure": false, @@ -785,11 +785,11 @@ "expression": { "arguments": [ { - "id": 120884, + "id": 120364, "name": "_user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120877, + "referencedDeclaration": 120357, "src": "513:5:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -805,32 +805,32 @@ } ], "expression": { - "id": 120881, + "id": 120361, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120864, + "referencedDeclaration": 120344, "src": "503:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, - "id": 120883, + "id": 120363, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mint", "nodeType": "MemberAccess", - "referencedDeclaration": 125221, + "referencedDeclaration": 124719, "src": "503:9:174", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$", "typeString": "function (address) external" } }, - "id": 120885, + "id": 120365, "isConstant": false, "isLValue": false, "isPure": false, @@ -845,7 +845,7 @@ "typeString": "tuple()" } }, - "id": 120886, + "id": 120366, "nodeType": "ExpressionStatement", "src": "503:16:174" }, @@ -853,11 +853,11 @@ "expression": { "arguments": [ { - "id": 120890, + "id": 120370, "name": "_user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120877, + "referencedDeclaration": 120357, "src": "539:5:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -873,32 +873,32 @@ } ], "expression": { - "id": 120887, + "id": 120367, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120871, + "referencedDeclaration": 120351, "src": "529:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, - "id": 120889, + "id": 120369, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mint", "nodeType": "MemberAccess", - "referencedDeclaration": 125260, + "referencedDeclaration": 124758, "src": "529:9:174", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$", "typeString": "function (address) external" } }, - "id": 120891, + "id": 120371, "isConstant": false, "isLValue": false, "isPure": false, @@ -913,7 +913,7 @@ "typeString": "tuple()" } }, - "id": 120892, + "id": 120372, "nodeType": "ExpressionStatement", "src": "529:16:174" } @@ -926,82 +926,82 @@ "name": "multMint", "nameLocation": "359:8:174", "parameters": { - "id": 120860, + "id": 120340, "nodeType": "ParameterList", "parameters": [], "src": "367:2:174" }, "returnParameters": { - "id": 120861, + "id": 120341, "nodeType": "ParameterList", "parameters": [], "src": "379:0:174" }, - "scope": 120929, + "scope": 120409, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120928, + "id": 120408, "nodeType": "FunctionDefinition", "src": "558:236:174", "nodes": [], "body": { - "id": 120927, + "id": 120407, "nodeType": "Block", "src": "633:161:174", "nodes": [], "statements": [ { "assignments": [ - 120903 + 120383 ], "declarations": [ { "constant": false, - "id": 120903, + "id": 120383, "mutability": "mutable", "name": "user", "nameLocation": "648:4:174", "nodeType": "VariableDeclaration", - "scope": 120927, + "scope": 120407, "src": "643:9:174", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" }, "typeName": { - "id": 120902, + "id": 120382, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120901, + "id": 120381, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "643:4:174" }, - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "643:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, "visibility": "internal" } ], - "id": 120907, + "id": 120387, "initialValue": { "arguments": [ { - "id": 120905, + "id": 120385, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120843, + "referencedDeclaration": 120323, "src": "660:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1016,18 +1016,18 @@ "typeString": "address" } ], - "id": 120904, + "id": 120384, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125227, + "referencedDeclaration": 124725, "src": "655:4:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_User_$125227_$", + "typeIdentifier": "t_type$_t_contract$_User_$124725_$", "typeString": "type(contract User)" } }, - "id": 120906, + "id": 120386, "isConstant": false, "isLValue": false, "isPure": false, @@ -1038,7 +1038,7 @@ "src": "655:17:174", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, @@ -1047,53 +1047,53 @@ }, { "assignments": [ - 120910 + 120390 ], "declarations": [ { "constant": false, - "id": 120910, + "id": 120390, "mutability": "mutable", "name": "loot", "nameLocation": "687:4:174", "nodeType": "VariableDeclaration", - "scope": 120927, + "scope": 120407, "src": "682:9:174", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" }, "typeName": { - "id": 120909, + "id": 120389, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120908, + "id": 120388, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "682:4:174" }, - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "682:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, "visibility": "internal" } ], - "id": 120914, + "id": 120394, "initialValue": { "arguments": [ { - "id": 120912, + "id": 120392, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120841, + "referencedDeclaration": 120321, "src": "699:11:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1108,18 +1108,18 @@ "typeString": "address" } ], - "id": 120911, + "id": 120391, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 125266, + "referencedDeclaration": 124764, "src": "694:4:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Loot_$125266_$", + "typeIdentifier": "t_type$_t_contract$_Loot_$124764_$", "typeString": "type(contract Loot)" } }, - "id": 120913, + "id": 120393, "isConstant": false, "isLValue": false, "isPure": false, @@ -1130,7 +1130,7 @@ "src": "694:17:174", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, @@ -1141,11 +1141,11 @@ "expression": { "arguments": [ { - "id": 120918, + "id": 120398, "name": "_lootTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120896, + "referencedDeclaration": 120376, "src": "736:12:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1161,32 +1161,32 @@ } ], "expression": { - "id": 120915, + "id": 120395, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120910, + "referencedDeclaration": 120390, "src": "721:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$125266", + "typeIdentifier": "t_contract$_Loot_$124764", "typeString": "contract Loot" } }, - "id": 120917, + "id": 120397, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "revealNFT", "nodeType": "MemberAccess", - "referencedDeclaration": 125265, + "referencedDeclaration": 124763, "src": "721:14:174", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 120919, + "id": 120399, "isConstant": false, "isLValue": false, "isPure": false, @@ -1201,7 +1201,7 @@ "typeString": "tuple()" } }, - "id": 120920, + "id": 120400, "nodeType": "ExpressionStatement", "src": "721:28:174" }, @@ -1209,11 +1209,11 @@ "expression": { "arguments": [ { - "id": 120924, + "id": 120404, "name": "_userTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120898, + "referencedDeclaration": 120378, "src": "774:12:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1229,32 +1229,32 @@ } ], "expression": { - "id": 120921, + "id": 120401, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120903, + "referencedDeclaration": 120383, "src": "759:4:174", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$125227", + "typeIdentifier": "t_contract$_User_$124725", "typeString": "contract User" } }, - "id": 120923, + "id": 120403, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "revealNFT", "nodeType": "MemberAccess", - "referencedDeclaration": 125226, + "referencedDeclaration": 124724, "src": "759:14:174", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 120925, + "id": 120405, "isConstant": false, "isLValue": false, "isPure": false, @@ -1269,7 +1269,7 @@ "typeString": "tuple()" } }, - "id": 120926, + "id": 120406, "nodeType": "ExpressionStatement", "src": "759:28:174" } @@ -1282,17 +1282,17 @@ "name": "multRevealNFT", "nameLocation": "567:13:174", "parameters": { - "id": 120899, + "id": 120379, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120896, + "id": 120376, "mutability": "mutable", "name": "_lootTokenId", "nameLocation": "589:12:174", "nodeType": "VariableDeclaration", - "scope": 120928, + "scope": 120408, "src": "581:20:174", "stateVariable": false, "storageLocation": "default", @@ -1301,7 +1301,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120895, + "id": 120375, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "581:7:174", @@ -1314,12 +1314,12 @@ }, { "constant": false, - "id": 120898, + "id": 120378, "mutability": "mutable", "name": "_userTokenId", "nameLocation": "610:12:174", "nodeType": "VariableDeclaration", - "scope": 120928, + "scope": 120408, "src": "602:20:174", "stateVariable": false, "storageLocation": "default", @@ -1328,7 +1328,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120897, + "id": 120377, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "602:7:174", @@ -1343,12 +1343,12 @@ "src": "580:43:174" }, "returnParameters": { - "id": 120900, + "id": 120380, "nodeType": "ParameterList", "parameters": [], "src": "633:0:174" }, - "scope": 120929, + "scope": 120409, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" @@ -1361,11 +1361,11 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 120929 + 120409 ], "name": "MPlugin", "nameLocation": "130:7:174", - "scope": 120930, + "scope": 120410, "usedErrors": [] } ], diff --git a/packages/contracts/out/User.sol/MUser.json b/packages/contracts/out/User.sol/MUser.json index 3cabc635..57967ea0 100644 --- a/packages/contracts/out/User.sol/MUser.json +++ b/packages/contracts/out/User.sol/MUser.json @@ -1423,46 +1423,46 @@ }, "ast": { "absolutePath": "src/other/User.sol", - "id": 121589, + "id": 121069, "exportedSymbols": { "Address": [ - 131973 + 131471 ], "Base64": [ - 119403 + 118883 ], "Context": [ - 131995 + 131493 ], "ERC165": [ - 132019 + 131517 ], "ERC721": [ 72425 ], "IERC165": [ - 174300 + 173798 ], "IERC721": [ - 131598 + 131096 ], "IERC721Metadata": [ - 131643 + 131141 ], "IERC721Receiver": [ - 131616 + 131114 ], "MRandom": [ - 120834 + 120314 ], "MUser": [ - 121588 + 121068 ], "Math": [ - 132885 + 132383 ], "SignedMath": [ - 132990 + 132488 ], "Strings": [ 72654 @@ -1472,7 +1472,7 @@ "src": "32:6006:175", "nodes": [ { - "id": 120931, + "id": 120411, "nodeType": "PragmaDirective", "src": "32:24:175", "nodes": [], @@ -1484,64 +1484,64 @@ ] }, { - "id": 120932, + "id": 120412, "nodeType": "ImportDirective", "src": "57:57:175", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol", "file": "@openzeppelin/contracts/token/ERC721/ERC721.sol", "nameLocation": "-1:-1:-1", - "scope": 121589, + "scope": 121069, "sourceUnit": 72426, "symbolAliases": [], "unitAlias": "" }, { - "id": 120933, + "id": 120413, "nodeType": "ImportDirective", "src": "115:23:175", "nodes": [], "absolutePath": "src/other/MRandom.sol", "file": "./MRandom.sol", "nameLocation": "-1:-1:-1", - "scope": 121589, - "sourceUnit": 120835, + "scope": 121069, + "sourceUnit": 120315, "symbolAliases": [], "unitAlias": "" }, { - "id": 120934, + "id": 120414, "nodeType": "ImportDirective", "src": "139:22:175", "nodes": [], "absolutePath": "src/other/Base64.sol", "file": "./Base64.sol", "nameLocation": "-1:-1:-1", - "scope": 121589, - "sourceUnit": 119404, + "scope": 121069, + "sourceUnit": 118884, "symbolAliases": [], "unitAlias": "" }, { - "id": 121588, + "id": 121068, "nodeType": "ContractDefinition", "src": "163:5874:175", "nodes": [ { - "id": 120941, + "id": 120421, "nodeType": "UsingForDirective", "src": "203:26:175", "nodes": [], "global": false, "libraryName": { - "id": 120939, + "id": 120419, "name": "Strings", "nodeType": "IdentifierPath", "referencedDeclaration": 72654, "src": "209:7:175" }, "typeName": { - "id": 120940, + "id": 120420, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "221:7:175", @@ -1552,7 +1552,7 @@ } }, { - "id": 120961, + "id": 120441, "nodeType": "StructDefinition", "src": "235:240:175", "nodes": [], @@ -1560,12 +1560,12 @@ "members": [ { "constant": false, - "id": 120943, + "id": 120423, "mutability": "mutable", "name": "randomId", "nameLocation": "265:8:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "257:16:175", "stateVariable": false, "storageLocation": "default", @@ -1574,7 +1574,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120942, + "id": 120422, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "257:7:175", @@ -1587,12 +1587,12 @@ }, { "constant": false, - "id": 120945, + "id": 120425, "mutability": "mutable", "name": "owner", "nameLocation": "291:5:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "283:13:175", "stateVariable": false, "storageLocation": "default", @@ -1601,7 +1601,7 @@ "typeString": "address" }, "typeName": { - "id": 120944, + "id": 120424, "name": "address", "nodeType": "ElementaryTypeName", "src": "283:7:175", @@ -1615,12 +1615,12 @@ }, { "constant": false, - "id": 120947, + "id": 120427, "mutability": "mutable", "name": "HP", "nameLocation": "314:2:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "306:10:175", "stateVariable": false, "storageLocation": "default", @@ -1629,7 +1629,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120946, + "id": 120426, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "306:7:175", @@ -1642,12 +1642,12 @@ }, { "constant": false, - "id": 120949, + "id": 120429, "mutability": "mutable", "name": "Attack", "nameLocation": "334:6:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "326:14:175", "stateVariable": false, "storageLocation": "default", @@ -1656,7 +1656,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120948, + "id": 120428, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "326:7:175", @@ -1669,12 +1669,12 @@ }, { "constant": false, - "id": 120951, + "id": 120431, "mutability": "mutable", "name": "AttackRange", "nameLocation": "358:11:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "350:19:175", "stateVariable": false, "storageLocation": "default", @@ -1683,7 +1683,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120950, + "id": 120430, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "350:7:175", @@ -1696,12 +1696,12 @@ }, { "constant": false, - "id": 120953, + "id": 120433, "mutability": "mutable", "name": "Speed", "nameLocation": "387:5:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "379:13:175", "stateVariable": false, "storageLocation": "default", @@ -1710,7 +1710,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120952, + "id": 120432, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "379:7:175", @@ -1723,12 +1723,12 @@ }, { "constant": false, - "id": 120955, + "id": 120435, "mutability": "mutable", "name": "Strength", "nameLocation": "410:8:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "402:16:175", "stateVariable": false, "storageLocation": "default", @@ -1737,7 +1737,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120954, + "id": 120434, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "402:7:175", @@ -1750,12 +1750,12 @@ }, { "constant": false, - "id": 120957, + "id": 120437, "mutability": "mutable", "name": "Space", "nameLocation": "436:5:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "428:13:175", "stateVariable": false, "storageLocation": "default", @@ -1764,7 +1764,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120956, + "id": 120436, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "428:7:175", @@ -1777,33 +1777,33 @@ }, { "constant": false, - "id": 120960, + "id": 120440, "mutability": "mutable", "name": "state", "nameLocation": "463:5:175", "nodeType": "VariableDeclaration", - "scope": 120961, + "scope": 120441, "src": "451:17:175", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, "typeName": { - "id": 120959, + "id": 120439, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120958, + "id": 120438, "name": "RandomState", "nodeType": "IdentifierPath", - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "451:11:175" }, - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "451:11:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -1812,11 +1812,11 @@ ], "name": "User", "nameLocation": "242:4:175", - "scope": 121588, + "scope": 121068, "visibility": "public" }, { - "id": 120963, + "id": 120443, "nodeType": "VariableDeclaration", "src": "481:22:175", "nodes": [], @@ -1825,7 +1825,7 @@ "mutability": "mutable", "name": "tokenId", "nameLocation": "496:7:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1833,7 +1833,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120962, + "id": 120442, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "481:7:175", @@ -1845,7 +1845,7 @@ "visibility": "public" }, { - "id": 120965, + "id": 120445, "nodeType": "VariableDeclaration", "src": "509:29:175", "nodes": [], @@ -1854,7 +1854,7 @@ "mutability": "mutable", "name": "waitBlockCount", "nameLocation": "524:14:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1862,7 +1862,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120964, + "id": 120444, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "509:7:175", @@ -1874,7 +1874,7 @@ "visibility": "public" }, { - "id": 120967, + "id": 120447, "nodeType": "VariableDeclaration", "src": "544:20:175", "nodes": [], @@ -1883,7 +1883,7 @@ "mutability": "mutable", "name": "owner", "nameLocation": "559:5:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1891,7 +1891,7 @@ "typeString": "address" }, "typeName": { - "id": 120966, + "id": 120446, "name": "address", "nodeType": "ElementaryTypeName", "src": "544:7:175", @@ -1904,7 +1904,7 @@ "visibility": "public" }, { - "id": 120969, + "id": 120449, "nodeType": "VariableDeclaration", "src": "570:22:175", "nodes": [], @@ -1912,7 +1912,7 @@ "mutability": "mutable", "name": "notRevealedInfo", "nameLocation": "577:15:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1920,7 +1920,7 @@ "typeString": "string" }, "typeName": { - "id": 120968, + "id": 120448, "name": "string", "nodeType": "ElementaryTypeName", "src": "570:6:175", @@ -1932,7 +1932,7 @@ "visibility": "internal" }, { - "id": 120971, + "id": 120451, "nodeType": "VariableDeclaration", "src": "598:19:175", "nodes": [], @@ -1940,7 +1940,7 @@ "mutability": "mutable", "name": "revealedDesc", "nameLocation": "605:12:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1948,7 +1948,7 @@ "typeString": "string" }, "typeName": { - "id": 120970, + "id": 120450, "name": "string", "nodeType": "ElementaryTypeName", "src": "598:6:175", @@ -1960,29 +1960,29 @@ "visibility": "internal" }, { - "id": 121006, + "id": 120486, "nodeType": "FunctionDefinition", "src": "624:370:175", "nodes": [], "body": { - "id": 121005, + "id": 120485, "nodeType": "Block", "src": "835:159:175", "nodes": [], "statements": [ { "expression": { - "id": 120991, + "id": 120471, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120988, + "id": 120468, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120967, + "referencedDeclaration": 120447, "src": "845:5:175", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1993,7 +1993,7 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 120989, + "id": 120469, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2004,7 +2004,7 @@ "typeString": "msg" } }, - "id": 120990, + "id": 120470, "isConstant": false, "isLValue": false, "isPure": false, @@ -2023,23 +2023,23 @@ "typeString": "address" } }, - "id": 120992, + "id": 120472, "nodeType": "ExpressionStatement", "src": "845:18:175" }, { "expression": { - "id": 120995, + "id": 120475, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120993, + "id": 120473, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120965, + "referencedDeclaration": 120445, "src": "873:14:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2049,11 +2049,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120994, + "id": 120474, "name": "_waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120973, + "referencedDeclaration": 120453, "src": "890:15:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2066,23 +2066,23 @@ "typeString": "uint256" } }, - "id": 120996, + "id": 120476, "nodeType": "ExpressionStatement", "src": "873:32:175" }, { "expression": { - "id": 120999, + "id": 120479, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120997, + "id": 120477, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120969, + "referencedDeclaration": 120449, "src": "915:15:175", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -2092,11 +2092,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120998, + "id": 120478, "name": "_notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120979, + "referencedDeclaration": 120459, "src": "933:16:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2109,23 +2109,23 @@ "typeString": "string storage ref" } }, - "id": 121000, + "id": 120480, "nodeType": "ExpressionStatement", "src": "915:34:175" }, { "expression": { - "id": 121003, + "id": 120483, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 121001, + "id": 120481, "name": "revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120971, + "referencedDeclaration": 120451, "src": "959:12:175", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -2135,11 +2135,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 121002, + "id": 120482, "name": "_revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120981, + "referencedDeclaration": 120461, "src": "974:13:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2152,7 +2152,7 @@ "typeString": "string storage ref" } }, - "id": 121004, + "id": 120484, "nodeType": "ExpressionStatement", "src": "959:28:175" } @@ -2164,11 +2164,11 @@ { "arguments": [ { - "id": 120984, + "id": 120464, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120975, + "referencedDeclaration": 120455, "src": "819:7:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2176,11 +2176,11 @@ } }, { - "id": 120985, + "id": 120465, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120977, + "referencedDeclaration": 120457, "src": "828:5:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2188,10 +2188,10 @@ } } ], - "id": 120986, + "id": 120466, "kind": "baseConstructorSpecifier", "modifierName": { - "id": 120983, + "id": 120463, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, @@ -2204,17 +2204,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 120982, + "id": 120462, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120973, + "id": 120453, "mutability": "mutable", "name": "_waitBlockCount", "nameLocation": "653:15:175", "nodeType": "VariableDeclaration", - "scope": 121006, + "scope": 120486, "src": "645:23:175", "stateVariable": false, "storageLocation": "default", @@ -2223,7 +2223,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120972, + "id": 120452, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "645:7:175", @@ -2236,12 +2236,12 @@ }, { "constant": false, - "id": 120975, + "id": 120455, "mutability": "mutable", "name": "_symbol", "nameLocation": "692:7:175", "nodeType": "VariableDeclaration", - "scope": 121006, + "scope": 120486, "src": "678:21:175", "stateVariable": false, "storageLocation": "memory", @@ -2250,7 +2250,7 @@ "typeString": "string" }, "typeName": { - "id": 120974, + "id": 120454, "name": "string", "nodeType": "ElementaryTypeName", "src": "678:6:175", @@ -2263,12 +2263,12 @@ }, { "constant": false, - "id": 120977, + "id": 120457, "mutability": "mutable", "name": "_name", "nameLocation": "723:5:175", "nodeType": "VariableDeclaration", - "scope": 121006, + "scope": 120486, "src": "709:19:175", "stateVariable": false, "storageLocation": "memory", @@ -2277,7 +2277,7 @@ "typeString": "string" }, "typeName": { - "id": 120976, + "id": 120456, "name": "string", "nodeType": "ElementaryTypeName", "src": "709:6:175", @@ -2290,12 +2290,12 @@ }, { "constant": false, - "id": 120979, + "id": 120459, "mutability": "mutable", "name": "_notRevealedInfo", "nameLocation": "752:16:175", "nodeType": "VariableDeclaration", - "scope": 121006, + "scope": 120486, "src": "738:30:175", "stateVariable": false, "storageLocation": "memory", @@ -2304,7 +2304,7 @@ "typeString": "string" }, "typeName": { - "id": 120978, + "id": 120458, "name": "string", "nodeType": "ElementaryTypeName", "src": "738:6:175", @@ -2317,12 +2317,12 @@ }, { "constant": false, - "id": 120981, + "id": 120461, "mutability": "mutable", "name": "_revealedDesc", "nameLocation": "792:13:175", "nodeType": "VariableDeclaration", - "scope": 121006, + "scope": 120486, "src": "778:27:175", "stateVariable": false, "storageLocation": "memory", @@ -2331,7 +2331,7 @@ "typeString": "string" }, "typeName": { - "id": 120980, + "id": 120460, "name": "string", "nodeType": "ElementaryTypeName", "src": "778:6:175", @@ -2346,18 +2346,18 @@ "src": "635:176:175" }, "returnParameters": { - "id": 120987, + "id": 120467, "nodeType": "ParameterList", "parameters": [], "src": "835:0:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 121011, + "id": 120491, "nodeType": "VariableDeclaration", "src": "1000:40:175", "nodes": [], @@ -2366,17 +2366,17 @@ "mutability": "mutable", "name": "userList", "nameLocation": "1032:8:175", - "scope": 121588, + "scope": 121068, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User)" }, "typeName": { - "id": 121010, + "id": 120490, "keyType": { - "id": 121007, + "id": 120487, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1008:7:175", @@ -2388,23 +2388,23 @@ "nodeType": "Mapping", "src": "1000:24:175", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User)" }, "valueType": { - "id": 121009, + "id": 120489, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121008, + "id": 120488, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1019:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1019:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } } @@ -2412,77 +2412,77 @@ "visibility": "public" }, { - "id": 121058, + "id": 120538, "nodeType": "FunctionDefinition", "src": "1047:324:175", "nodes": [], "body": { - "id": 121057, + "id": 120537, "nodeType": "Block", "src": "1085:286:175", "nodes": [], "statements": [ { "assignments": [ - 121018 + 120498 ], "declarations": [ { "constant": false, - "id": 121018, + "id": 120498, "mutability": "mutable", "name": "user", "nameLocation": "1133:4:175", "nodeType": "VariableDeclaration", - "scope": 121057, + "scope": 120537, "src": "1120:17:175", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 121017, + "id": 120497, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121016, + "id": 120496, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1120:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1120:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 121022, + "id": 120502, "initialValue": { "baseExpression": { - "id": 121019, + "id": 120499, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121011, + "referencedDeclaration": 120491, "src": "1140:8:175", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 121021, + "id": 120501, "indexExpression": { - "id": 121020, + "id": 120500, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120963, + "referencedDeclaration": 120443, "src": "1149:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2496,7 +2496,7 @@ "nodeType": "IndexAccess", "src": "1140:17:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage", + "typeIdentifier": "t_struct$_User_$120441_storage", "typeString": "struct MUser.User storage ref" } }, @@ -2505,32 +2505,32 @@ }, { "expression": { - "id": 121027, + "id": 120507, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121023, + "id": 120503, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121018, + "referencedDeclaration": 120498, "src": "1167:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121025, + "id": 120505, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 120945, + "referencedDeclaration": 120425, "src": "1167:10:175", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2540,11 +2540,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 121026, + "id": 120506, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121013, + "referencedDeclaration": 120493, "src": "1180:5:175", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2557,41 +2557,41 @@ "typeString": "address" } }, - "id": 121028, + "id": 120508, "nodeType": "ExpressionStatement", "src": "1167:18:175" }, { "expression": { - "id": 121034, + "id": 120514, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121029, + "id": 120509, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121018, + "referencedDeclaration": 120498, "src": "1195:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121031, + "id": 120511, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 120960, + "referencedDeclaration": 120440, "src": "1195:10:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -2599,69 +2599,69 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 121032, + "id": 120512, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "1208:11:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 121033, + "id": 120513, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 120641, + "referencedDeclaration": 120121, "src": "1208:19:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, "src": "1195:32:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, - "id": 121035, + "id": 120515, "nodeType": "ExpressionStatement", "src": "1195:32:175" }, { "expression": { - "id": 121040, + "id": 120520, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121036, + "id": 120516, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121018, + "referencedDeclaration": 120498, "src": "1237:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121038, + "id": 120518, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 120943, + "referencedDeclaration": 120423, "src": "1237:13:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2671,11 +2671,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 121039, + "id": 120519, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "1253:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2688,7 +2688,7 @@ "typeString": "uint256" } }, - "id": 121041, + "id": 120521, "nodeType": "ExpressionStatement", "src": "1237:24:175" }, @@ -2696,11 +2696,11 @@ "expression": { "arguments": [ { - "id": 121043, + "id": 120523, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "1285:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2715,18 +2715,18 @@ "typeString": "uint256" } ], - "id": 121042, + "id": 120522, "name": "requestRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120694, + "referencedDeclaration": 120174, "src": "1271:13:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 121044, + "id": 120524, "isConstant": false, "isLValue": false, "isPure": false, @@ -2741,7 +2741,7 @@ "typeString": "tuple()" } }, - "id": 121045, + "id": 120525, "nodeType": "ExpressionStatement", "src": "1271:23:175" }, @@ -2749,11 +2749,11 @@ "expression": { "arguments": [ { - "id": 121047, + "id": 120527, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121013, + "referencedDeclaration": 120493, "src": "1310:5:175", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2761,11 +2761,11 @@ } }, { - "id": 121048, + "id": 120528, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120963, + "referencedDeclaration": 120443, "src": "1317:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2784,7 +2784,7 @@ "typeString": "uint256" } ], - "id": 121046, + "id": 120526, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2795,7 +2795,7 @@ "typeString": "function (address,uint256)" } }, - "id": 121049, + "id": 120529, "isConstant": false, "isLValue": false, "isPure": false, @@ -2810,13 +2810,13 @@ "typeString": "tuple()" } }, - "id": 121050, + "id": 120530, "nodeType": "ExpressionStatement", "src": "1304:21:175" }, { "expression": { - "id": 121052, + "id": 120532, "isConstant": false, "isLValue": false, "isPure": false, @@ -2826,11 +2826,11 @@ "prefix": false, "src": "1335:9:175", "subExpression": { - "id": 121051, + "id": 120531, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120963, + "referencedDeclaration": 120443, "src": "1335:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2842,13 +2842,13 @@ "typeString": "uint256" } }, - "id": 121053, + "id": 120533, "nodeType": "ExpressionStatement", "src": "1335:9:175" }, { "expression": { - "id": 121055, + "id": 120535, "isConstant": false, "isLValue": false, "isPure": false, @@ -2858,11 +2858,11 @@ "prefix": false, "src": "1354:10:175", "subExpression": { - "id": 121054, + "id": 120534, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120650, + "referencedDeclaration": 120130, "src": "1354:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2874,7 +2874,7 @@ "typeString": "uint256" } }, - "id": 121056, + "id": 120536, "nodeType": "ExpressionStatement", "src": "1354:10:175" } @@ -2887,17 +2887,17 @@ "name": "mint", "nameLocation": "1056:4:175", "parameters": { - "id": 121014, + "id": 120494, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121013, + "id": 120493, "mutability": "mutable", "name": "_addr", "nameLocation": "1069:5:175", "nodeType": "VariableDeclaration", - "scope": 121058, + "scope": 120538, "src": "1061:13:175", "stateVariable": false, "storageLocation": "default", @@ -2906,7 +2906,7 @@ "typeString": "address" }, "typeName": { - "id": 121012, + "id": 120492, "name": "address", "nodeType": "ElementaryTypeName", "src": "1061:7:175", @@ -2922,88 +2922,88 @@ "src": "1060:15:175" }, "returnParameters": { - "id": 121015, + "id": 120495, "nodeType": "ParameterList", "parameters": [], "src": "1085:0:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 121168, + "id": 120648, "nodeType": "FunctionDefinition", "src": "1377:680:175", "nodes": [], "body": { - "id": 121167, + "id": 120647, "nodeType": "Block", "src": "1423:634:175", "nodes": [], "statements": [ { "assignments": [ - 121065 + 120545 ], "declarations": [ { "constant": false, - "id": 121065, + "id": 120545, "mutability": "mutable", "name": "user", "nameLocation": "1446:4:175", "nodeType": "VariableDeclaration", - "scope": 121167, + "scope": 120647, "src": "1433:17:175", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 121064, + "id": 120544, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121063, + "id": 120543, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1433:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "1433:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 121069, + "id": 120549, "initialValue": { "baseExpression": { - "id": 121066, + "id": 120546, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121011, + "referencedDeclaration": 120491, "src": "1453:8:175", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 121068, + "id": 120548, "indexExpression": { - "id": 121067, + "id": 120547, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121060, + "referencedDeclaration": 120540, "src": "1462:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3017,7 +3017,7 @@ "nodeType": "IndexAccess", "src": "1453:18:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage", + "typeIdentifier": "t_struct$_User_$120441_storage", "typeString": "struct MUser.User storage ref" } }, @@ -3026,17 +3026,17 @@ }, { "assignments": [ - 121074 + 120554 ], "declarations": [ { "constant": false, - "id": 121074, + "id": 120554, "mutability": "mutable", "name": "random_numbers", "nameLocation": "1496:14:175", "nodeType": "VariableDeclaration", - "scope": 121167, + "scope": 120647, "src": "1481:29:175", "stateVariable": false, "storageLocation": "memory", @@ -3046,7 +3046,7 @@ }, "typeName": { "baseType": { - "id": 121072, + "id": 120552, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1481:5:175", @@ -3055,7 +3055,7 @@ "typeString": "uint8" } }, - "id": 121073, + "id": 120553, "nodeType": "ArrayTypeName", "src": "1481:7:175", "typeDescriptions": { @@ -3066,30 +3066,30 @@ "visibility": "internal" } ], - "id": 121081, + "id": 120561, "initialValue": { "arguments": [ { "expression": { - "id": 121076, + "id": 120556, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1536:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121077, + "id": 120557, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 120943, + "referencedDeclaration": 120423, "src": "1536:13:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3098,7 +3098,7 @@ }, { "hexValue": "38", - "id": 121078, + "id": 120558, "isConstant": false, "isLValue": false, "isPure": true, @@ -3113,11 +3113,11 @@ "value": "8" }, { - "id": 121079, + "id": 120559, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120965, + "referencedDeclaration": 120445, "src": "1578:14:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3140,18 +3140,18 @@ "typeString": "uint256" } ], - "id": 121075, + "id": 120555, "name": "getRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120811, + "referencedDeclaration": 120291, "src": "1513:9:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint8_$dyn_memory_ptr_$", "typeString": "function (uint256,uint256,uint256) view returns (uint8[] memory)" } }, - "id": 121080, + "id": 120560, "isConstant": false, "isLValue": false, "isPure": false, @@ -3171,32 +3171,32 @@ }, { "expression": { - "id": 121093, + "id": 120573, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121082, + "id": 120562, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1613:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121084, + "id": 120564, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 120947, + "referencedDeclaration": 120427, "src": "1613:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3209,21 +3209,21 @@ "arguments": [ { "baseExpression": { - "id": 121086, + "id": 120566, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1632:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121088, + "id": 120568, "indexExpression": { "hexValue": "30", - "id": 121087, + "id": 120567, "isConstant": false, "isLValue": false, "isPure": true, @@ -3250,7 +3250,7 @@ }, { "hexValue": "313030", - "id": 121089, + "id": 120569, "isConstant": false, "isLValue": false, "isPure": true, @@ -3266,7 +3266,7 @@ }, { "hexValue": "3130", - "id": 121090, + "id": 120570, "isConstant": false, "isLValue": false, "isPure": true, @@ -3282,7 +3282,7 @@ }, { "hexValue": "35", - "id": 121091, + "id": 120571, "isConstant": false, "isLValue": false, "isPure": true, @@ -3316,18 +3316,18 @@ "typeString": "int_const 5" } ], - "id": 121085, + "id": 120565, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1623:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121092, + "id": 120572, "isConstant": false, "isLValue": false, "isPure": false, @@ -3348,38 +3348,38 @@ "typeString": "uint256" } }, - "id": 121094, + "id": 120574, "nodeType": "ExpressionStatement", "src": "1613:49:175" }, { "expression": { - "id": 121106, + "id": 120586, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121095, + "id": 120575, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1672:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121097, + "id": 120577, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 120949, + "referencedDeclaration": 120429, "src": "1672:11:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3392,21 +3392,21 @@ "arguments": [ { "baseExpression": { - "id": 121099, + "id": 120579, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1695:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121101, + "id": 120581, "indexExpression": { "hexValue": "31", - "id": 121100, + "id": 120580, "isConstant": false, "isLValue": false, "isPure": true, @@ -3433,7 +3433,7 @@ }, { "hexValue": "3330", - "id": 121102, + "id": 120582, "isConstant": false, "isLValue": false, "isPure": true, @@ -3449,7 +3449,7 @@ }, { "hexValue": "3130", - "id": 121103, + "id": 120583, "isConstant": false, "isLValue": false, "isPure": true, @@ -3465,7 +3465,7 @@ }, { "hexValue": "32", - "id": 121104, + "id": 120584, "isConstant": false, "isLValue": false, "isPure": true, @@ -3499,18 +3499,18 @@ "typeString": "int_const 2" } ], - "id": 121098, + "id": 120578, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1686:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121105, + "id": 120585, "isConstant": false, "isLValue": false, "isPure": false, @@ -3531,38 +3531,38 @@ "typeString": "uint256" } }, - "id": 121107, + "id": 120587, "nodeType": "ExpressionStatement", "src": "1672:52:175" }, { "expression": { - "id": 121119, + "id": 120599, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121108, + "id": 120588, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1734:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121110, + "id": 120590, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 120951, + "referencedDeclaration": 120431, "src": "1734:16:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3575,21 +3575,21 @@ "arguments": [ { "baseExpression": { - "id": 121112, + "id": 120592, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1762:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121114, + "id": 120594, "indexExpression": { "hexValue": "32", - "id": 121113, + "id": 120593, "isConstant": false, "isLValue": false, "isPure": true, @@ -3616,7 +3616,7 @@ }, { "hexValue": "33", - "id": 121115, + "id": 120595, "isConstant": false, "isLValue": false, "isPure": true, @@ -3632,7 +3632,7 @@ }, { "hexValue": "3530", - "id": 121116, + "id": 120596, "isConstant": false, "isLValue": false, "isPure": true, @@ -3648,7 +3648,7 @@ }, { "hexValue": "31", - "id": 121117, + "id": 120597, "isConstant": false, "isLValue": false, "isPure": true, @@ -3682,18 +3682,18 @@ "typeString": "int_const 1" } ], - "id": 121111, + "id": 120591, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1753:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121118, + "id": 120598, "isConstant": false, "isLValue": false, "isPure": false, @@ -3714,38 +3714,38 @@ "typeString": "uint256" } }, - "id": 121120, + "id": 120600, "nodeType": "ExpressionStatement", "src": "1734:56:175" }, { "expression": { - "id": 121132, + "id": 120612, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121121, + "id": 120601, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1819:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121123, + "id": 120603, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 120953, + "referencedDeclaration": 120433, "src": "1819:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3758,21 +3758,21 @@ "arguments": [ { "baseExpression": { - "id": 121125, + "id": 120605, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1841:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121127, + "id": 120607, "indexExpression": { "hexValue": "33", - "id": 121126, + "id": 120606, "isConstant": false, "isLValue": false, "isPure": true, @@ -3799,7 +3799,7 @@ }, { "hexValue": "34", - "id": 121128, + "id": 120608, "isConstant": false, "isLValue": false, "isPure": true, @@ -3815,7 +3815,7 @@ }, { "hexValue": "3330", - "id": 121129, + "id": 120609, "isConstant": false, "isLValue": false, "isPure": true, @@ -3831,7 +3831,7 @@ }, { "hexValue": "31", - "id": 121130, + "id": 120610, "isConstant": false, "isLValue": false, "isPure": true, @@ -3865,18 +3865,18 @@ "typeString": "int_const 1" } ], - "id": 121124, + "id": 120604, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1832:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121131, + "id": 120611, "isConstant": false, "isLValue": false, "isPure": false, @@ -3897,38 +3897,38 @@ "typeString": "uint256" } }, - "id": 121133, + "id": 120613, "nodeType": "ExpressionStatement", "src": "1819:50:175" }, { "expression": { - "id": 121145, + "id": 120625, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121134, + "id": 120614, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1891:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121136, + "id": 120616, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 120955, + "referencedDeclaration": 120435, "src": "1891:13:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3941,21 +3941,21 @@ "arguments": [ { "baseExpression": { - "id": 121138, + "id": 120618, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1916:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121140, + "id": 120620, "indexExpression": { "hexValue": "34", - "id": 121139, + "id": 120619, "isConstant": false, "isLValue": false, "isPure": true, @@ -3982,7 +3982,7 @@ }, { "hexValue": "3230", - "id": 121141, + "id": 120621, "isConstant": false, "isLValue": false, "isPure": true, @@ -3998,7 +3998,7 @@ }, { "hexValue": "3130", - "id": 121142, + "id": 120622, "isConstant": false, "isLValue": false, "isPure": true, @@ -4014,7 +4014,7 @@ }, { "hexValue": "33", - "id": 121143, + "id": 120623, "isConstant": false, "isLValue": false, "isPure": true, @@ -4048,18 +4048,18 @@ "typeString": "int_const 3" } ], - "id": 121137, + "id": 120617, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1907:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121144, + "id": 120624, "isConstant": false, "isLValue": false, "isPure": false, @@ -4080,38 +4080,38 @@ "typeString": "uint256" } }, - "id": 121146, + "id": 120626, "nodeType": "ExpressionStatement", "src": "1891:54:175" }, { "expression": { - "id": 121158, + "id": 120638, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121147, + "id": 120627, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "1955:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121149, + "id": 120629, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 120957, + "referencedDeclaration": 120437, "src": "1955:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4124,21 +4124,21 @@ "arguments": [ { "baseExpression": { - "id": 121151, + "id": 120631, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121074, + "referencedDeclaration": 120554, "src": "1977:14:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 121153, + "id": 120633, "indexExpression": { "hexValue": "35", - "id": 121152, + "id": 120632, "isConstant": false, "isLValue": false, "isPure": true, @@ -4165,7 +4165,7 @@ }, { "hexValue": "32", - "id": 121154, + "id": 120634, "isConstant": false, "isLValue": false, "isPure": true, @@ -4181,7 +4181,7 @@ }, { "hexValue": "3530", - "id": 121155, + "id": 120635, "isConstant": false, "isLValue": false, "isPure": true, @@ -4197,7 +4197,7 @@ }, { "hexValue": "31", - "id": 121156, + "id": 120636, "isConstant": false, "isLValue": false, "isPure": true, @@ -4231,18 +4231,18 @@ "typeString": "int_const 1" } ], - "id": 121150, + "id": 120630, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121200, + "referencedDeclaration": 120680, "src": "1968:8:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint8,uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 121157, + "id": 120637, "isConstant": false, "isLValue": false, "isPure": false, @@ -4263,41 +4263,41 @@ "typeString": "uint256" } }, - "id": 121159, + "id": 120639, "nodeType": "ExpressionStatement", "src": "1955:50:175" }, { "expression": { - "id": 121165, + "id": 120645, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 121160, + "id": 120640, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121065, + "referencedDeclaration": 120545, "src": "2015:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 121162, + "id": 120642, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 120960, + "referencedDeclaration": 120440, "src": "2015:10:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -4305,38 +4305,38 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 121163, + "id": 120643, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "2028:11:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 121164, + "id": 120644, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 120642, + "referencedDeclaration": 120122, "src": "2028:21:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, "src": "2015:34:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, - "id": 121166, + "id": 120646, "nodeType": "ExpressionStatement", "src": "2015:34:175" } @@ -4349,17 +4349,17 @@ "name": "revealNFT", "nameLocation": "1386:9:175", "parameters": { - "id": 121061, + "id": 120541, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121060, + "id": 120540, "mutability": "mutable", "name": "_tokenId", "nameLocation": "1404:8:175", "nodeType": "VariableDeclaration", - "scope": 121168, + "scope": 120648, "src": "1396:16:175", "stateVariable": false, "storageLocation": "default", @@ -4368,7 +4368,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121059, + "id": 120539, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1396:7:175", @@ -4383,40 +4383,40 @@ "src": "1395:18:175" }, "returnParameters": { - "id": 121062, + "id": 120542, "nodeType": "ParameterList", "parameters": [], "src": "1423:0:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 121200, + "id": 120680, "nodeType": "FunctionDefinition", "src": "2063:259:175", "nodes": [], "body": { - "id": 121199, + "id": 120679, "nodeType": "Block", "src": "2216:106:175", "nodes": [], "statements": [ { "assignments": [ - 121182 + 120662 ], "declarations": [ { "constant": false, - "id": 121182, + "id": 120662, "mutability": "mutable", "name": "times", "nameLocation": "2234:5:175", "nodeType": "VariableDeclaration", - "scope": 121199, + "scope": 120679, "src": "2226:13:175", "stateVariable": false, "storageLocation": "default", @@ -4425,7 +4425,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121181, + "id": 120661, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2226:7:175", @@ -4437,7 +4437,7 @@ "visibility": "internal" } ], - "id": 121192, + "id": 120672, "initialValue": { "arguments": [ { @@ -4445,7 +4445,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121190, + "id": 120670, "isConstant": false, "isLValue": false, "isPure": false, @@ -4457,17 +4457,17 @@ "typeIdentifier": "t_uint8", "typeString": "uint8" }, - "id": 121187, + "id": 120667, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121185, + "id": 120665, "name": "_rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121170, + "referencedDeclaration": 120650, "src": "2251:5:175", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -4478,7 +4478,7 @@ "operator": "+", "rightExpression": { "hexValue": "31", - "id": 121186, + "id": 120666, "isConstant": false, "isLValue": false, "isPure": true, @@ -4499,7 +4499,7 @@ } } ], - "id": 121188, + "id": 120668, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -4515,11 +4515,11 @@ "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { - "id": 121189, + "id": 120669, "name": "_step", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121174, + "referencedDeclaration": 120654, "src": "2264:5:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4540,7 +4540,7 @@ "typeString": "uint256" } ], - "id": 121184, + "id": 120664, "isConstant": false, "isLValue": false, "isPure": true, @@ -4552,14 +4552,14 @@ "typeString": "type(uint256)" }, "typeName": { - "id": 121183, + "id": 120663, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2242:7:175", "typeDescriptions": {} } }, - "id": 121191, + "id": 120671, "isConstant": false, "isLValue": false, "isPure": false, @@ -4583,17 +4583,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121197, + "id": 120677, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121193, + "id": 120673, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121172, + "referencedDeclaration": 120652, "src": "2287:6:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4607,17 +4607,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121196, + "id": 120676, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121194, + "id": 120674, "name": "times", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121182, + "referencedDeclaration": 120662, "src": "2296:5:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4627,11 +4627,11 @@ "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { - "id": 121195, + "id": 120675, "name": "_stepLength", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121176, + "referencedDeclaration": 120656, "src": "2304:11:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4650,8 +4650,8 @@ "typeString": "uint256" } }, - "functionReturnParameters": 121180, - "id": 121198, + "functionReturnParameters": 120660, + "id": 120678, "nodeType": "Return", "src": "2280:35:175" } @@ -4663,17 +4663,17 @@ "name": "getRange", "nameLocation": "2072:8:175", "parameters": { - "id": 121177, + "id": 120657, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121170, + "id": 120650, "mutability": "mutable", "name": "_rand", "nameLocation": "2096:5:175", "nodeType": "VariableDeclaration", - "scope": 121200, + "scope": 120680, "src": "2090:11:175", "stateVariable": false, "storageLocation": "default", @@ -4682,7 +4682,7 @@ "typeString": "uint8" }, "typeName": { - "id": 121169, + "id": 120649, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2090:5:175", @@ -4695,12 +4695,12 @@ }, { "constant": false, - "id": 121172, + "id": 120652, "mutability": "mutable", "name": "_start", "nameLocation": "2119:6:175", "nodeType": "VariableDeclaration", - "scope": 121200, + "scope": 120680, "src": "2111:14:175", "stateVariable": false, "storageLocation": "default", @@ -4709,7 +4709,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121171, + "id": 120651, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2111:7:175", @@ -4722,12 +4722,12 @@ }, { "constant": false, - "id": 121174, + "id": 120654, "mutability": "mutable", "name": "_step", "nameLocation": "2143:5:175", "nodeType": "VariableDeclaration", - "scope": 121200, + "scope": 120680, "src": "2135:13:175", "stateVariable": false, "storageLocation": "default", @@ -4736,7 +4736,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121173, + "id": 120653, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2135:7:175", @@ -4749,12 +4749,12 @@ }, { "constant": false, - "id": 121176, + "id": 120656, "mutability": "mutable", "name": "_stepLength", "nameLocation": "2166:11:175", "nodeType": "VariableDeclaration", - "scope": 121200, + "scope": 120680, "src": "2158:19:175", "stateVariable": false, "storageLocation": "default", @@ -4763,7 +4763,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121175, + "id": 120655, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2158:7:175", @@ -4778,17 +4778,17 @@ "src": "2080:103:175" }, "returnParameters": { - "id": 121180, + "id": 120660, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121179, + "id": 120659, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121200, + "scope": 120680, "src": "2207:7:175", "stateVariable": false, "storageLocation": "default", @@ -4797,7 +4797,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121178, + "id": 120658, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2207:7:175", @@ -4811,18 +4811,18 @@ ], "src": "2206:9:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 121220, + "id": 120700, "nodeType": "FunctionDefinition", "src": "2328:187:175", "nodes": [], "body": { - "id": 121219, + "id": 120699, "nodeType": "Block", "src": "2446:69:175", "nodes": [], @@ -4833,11 +4833,11 @@ { "arguments": [ { - "id": 121213, + "id": 120693, "name": "_key", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121202, + "referencedDeclaration": 120682, "src": "2487:4:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4846,7 +4846,7 @@ }, { "hexValue": "203a20", - "id": 121214, + "id": 120694, "isConstant": false, "isLValue": false, "isPure": true, @@ -4861,11 +4861,11 @@ "value": " : " }, { - "id": 121215, + "id": 120695, "name": "_value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121204, + "referencedDeclaration": 120684, "src": "2500:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4889,7 +4889,7 @@ } ], "expression": { - "id": 121211, + "id": 120691, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -4900,7 +4900,7 @@ "typeString": "abi" } }, - "id": 121212, + "id": 120692, "isConstant": false, "isLValue": false, "isPure": true, @@ -4913,7 +4913,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 121216, + "id": 120696, "isConstant": false, "isLValue": false, "isPure": false, @@ -4936,7 +4936,7 @@ "typeString": "bytes memory" } ], - "id": 121210, + "id": 120690, "isConstant": false, "isLValue": false, "isPure": true, @@ -4948,14 +4948,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 121209, + "id": 120689, "name": "string", "nodeType": "ElementaryTypeName", "src": "2463:6:175", "typeDescriptions": {} } }, - "id": 121217, + "id": 120697, "isConstant": false, "isLValue": false, "isPure": false, @@ -4970,8 +4970,8 @@ "typeString": "string memory" } }, - "functionReturnParameters": 121208, - "id": 121218, + "functionReturnParameters": 120688, + "id": 120698, "nodeType": "Return", "src": "2456:52:175" } @@ -4983,17 +4983,17 @@ "name": "concat", "nameLocation": "2337:6:175", "parameters": { - "id": 121205, + "id": 120685, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121202, + "id": 120682, "mutability": "mutable", "name": "_key", "nameLocation": "2367:4:175", "nodeType": "VariableDeclaration", - "scope": 121220, + "scope": 120700, "src": "2353:18:175", "stateVariable": false, "storageLocation": "memory", @@ -5002,7 +5002,7 @@ "typeString": "string" }, "typeName": { - "id": 121201, + "id": 120681, "name": "string", "nodeType": "ElementaryTypeName", "src": "2353:6:175", @@ -5015,12 +5015,12 @@ }, { "constant": false, - "id": 121204, + "id": 120684, "mutability": "mutable", "name": "_value", "nameLocation": "2395:6:175", "nodeType": "VariableDeclaration", - "scope": 121220, + "scope": 120700, "src": "2381:20:175", "stateVariable": false, "storageLocation": "memory", @@ -5029,7 +5029,7 @@ "typeString": "string" }, "typeName": { - "id": 121203, + "id": 120683, "name": "string", "nodeType": "ElementaryTypeName", "src": "2381:6:175", @@ -5044,17 +5044,17 @@ "src": "2343:64:175" }, "returnParameters": { - "id": 121208, + "id": 120688, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121207, + "id": 120687, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121220, + "scope": 120700, "src": "2431:13:175", "stateVariable": false, "storageLocation": "memory", @@ -5063,7 +5063,7 @@ "typeString": "string" }, "typeName": { - "id": 121206, + "id": 120686, "name": "string", "nodeType": "ElementaryTypeName", "src": "2431:6:175", @@ -5077,35 +5077,35 @@ ], "src": "2430:15:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 121380, + "id": 120860, "nodeType": "FunctionDefinition", "src": "2521:1348:175", "nodes": [], "body": { - "id": 121379, + "id": 120859, "nodeType": "Block", "src": "2596:1273:175", "nodes": [], "statements": [ { "assignments": [ - 121233 + 120713 ], "declarations": [ { "constant": false, - "id": 121233, + "id": 120713, "mutability": "mutable", "name": "parts", "nameLocation": "2624:5:175", "nodeType": "VariableDeclaration", - "scope": 121379, + "scope": 120859, "src": "2606:23:175", "stateVariable": false, "storageLocation": "memory", @@ -5115,7 +5115,7 @@ }, "typeName": { "baseType": { - "id": 121231, + "id": 120711, "name": "string", "nodeType": "ElementaryTypeName", "src": "2606:6:175", @@ -5124,10 +5124,10 @@ "typeString": "string" } }, - "id": 121232, + "id": 120712, "length": { "hexValue": "3133", - "id": 121230, + "id": 120710, "isConstant": false, "isLValue": false, "isPure": true, @@ -5151,34 +5151,34 @@ "visibility": "internal" } ], - "id": 121234, + "id": 120714, "nodeType": "VariableDeclarationStatement", "src": "2606:23:175" }, { "expression": { - "id": 121239, + "id": 120719, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121235, + "id": 120715, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "2640:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121237, + "id": 120717, "indexExpression": { "hexValue": "30", - "id": 121236, + "id": 120716, "isConstant": false, "isLValue": false, "isPure": true, @@ -5207,7 +5207,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e", - "id": 121238, + "id": 120718, "isConstant": false, "isLValue": false, "isPure": true, @@ -5227,34 +5227,34 @@ "typeString": "string memory" } }, - "id": 121240, + "id": 120720, "nodeType": "ExpressionStatement", "src": "2640:288:175" }, { "expression": { - "id": 121251, + "id": 120731, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121241, + "id": 120721, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "2939:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121243, + "id": 120723, "indexExpression": { "hexValue": "31", - "id": 121242, + "id": 120722, "isConstant": false, "isLValue": false, "isPure": true, @@ -5285,7 +5285,7 @@ "arguments": [ { "hexValue": "4850", - "id": 121245, + "id": 120725, "isConstant": false, "isLValue": false, "isPure": true, @@ -5305,32 +5305,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121246, + "id": 120726, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "2963:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121247, + "id": 120727, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 120947, + "referencedDeclaration": 120427, "src": "2963:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121248, + "id": 120728, "isConstant": false, "isLValue": false, "isPure": false, @@ -5344,7 +5344,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121249, + "id": 120729, "isConstant": false, "isLValue": false, "isPure": false, @@ -5371,18 +5371,18 @@ "typeString": "string memory" } ], - "id": 121244, + "id": 120724, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "2950:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121250, + "id": 120730, "isConstant": false, "isLValue": false, "isPure": false, @@ -5403,34 +5403,34 @@ "typeString": "string memory" } }, - "id": 121252, + "id": 120732, "nodeType": "ExpressionStatement", "src": "2939:43:175" }, { "expression": { - "id": 121257, + "id": 120737, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121253, + "id": 120733, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "2993:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121255, + "id": 120735, "indexExpression": { "hexValue": "32", - "id": 121254, + "id": 120734, "isConstant": false, "isLValue": false, "isPure": true, @@ -5459,7 +5459,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e", - "id": 121256, + "id": 120736, "isConstant": false, "isLValue": false, "isPure": true, @@ -5479,34 +5479,34 @@ "typeString": "string memory" } }, - "id": 121258, + "id": 120738, "nodeType": "ExpressionStatement", "src": "2993:53:175" }, { "expression": { - "id": 121269, + "id": 120749, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121259, + "id": 120739, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3057:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121261, + "id": 120741, "indexExpression": { "hexValue": "33", - "id": 121260, + "id": 120740, "isConstant": false, "isLValue": false, "isPure": true, @@ -5537,7 +5537,7 @@ "arguments": [ { "hexValue": "41747461636b", - "id": 121263, + "id": 120743, "isConstant": false, "isLValue": false, "isPure": true, @@ -5557,32 +5557,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121264, + "id": 120744, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "3085:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121265, + "id": 120745, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 120949, + "referencedDeclaration": 120429, "src": "3085:11:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121266, + "id": 120746, "isConstant": false, "isLValue": false, "isPure": false, @@ -5596,7 +5596,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121267, + "id": 120747, "isConstant": false, "isLValue": false, "isPure": false, @@ -5623,18 +5623,18 @@ "typeString": "string memory" } ], - "id": 121262, + "id": 120742, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "3068:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121268, + "id": 120748, "isConstant": false, "isLValue": false, "isPure": false, @@ -5655,34 +5655,34 @@ "typeString": "string memory" } }, - "id": 121270, + "id": 120750, "nodeType": "ExpressionStatement", "src": "3057:51:175" }, { "expression": { - "id": 121275, + "id": 120755, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121271, + "id": 120751, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3119:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121273, + "id": 120753, "indexExpression": { "hexValue": "34", - "id": 121272, + "id": 120752, "isConstant": false, "isLValue": false, "isPure": true, @@ -5711,7 +5711,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e", - "id": 121274, + "id": 120754, "isConstant": false, "isLValue": false, "isPure": true, @@ -5731,34 +5731,34 @@ "typeString": "string memory" } }, - "id": 121276, + "id": 120756, "nodeType": "ExpressionStatement", "src": "3119:53:175" }, { "expression": { - "id": 121287, + "id": 120767, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121277, + "id": 120757, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3183:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121279, + "id": 120759, "indexExpression": { "hexValue": "35", - "id": 121278, + "id": 120758, "isConstant": false, "isLValue": false, "isPure": true, @@ -5789,7 +5789,7 @@ "arguments": [ { "hexValue": "41747461636b52616e6765", - "id": 121281, + "id": 120761, "isConstant": false, "isLValue": false, "isPure": true, @@ -5809,32 +5809,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121282, + "id": 120762, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "3216:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121283, + "id": 120763, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 120951, + "referencedDeclaration": 120431, "src": "3216:16:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121284, + "id": 120764, "isConstant": false, "isLValue": false, "isPure": false, @@ -5848,7 +5848,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121285, + "id": 120765, "isConstant": false, "isLValue": false, "isPure": false, @@ -5875,18 +5875,18 @@ "typeString": "string memory" } ], - "id": 121280, + "id": 120760, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "3194:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121286, + "id": 120766, "isConstant": false, "isLValue": false, "isPure": false, @@ -5907,34 +5907,34 @@ "typeString": "string memory" } }, - "id": 121288, + "id": 120768, "nodeType": "ExpressionStatement", "src": "3183:61:175" }, { "expression": { - "id": 121293, + "id": 120773, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121289, + "id": 120769, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3255:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121291, + "id": 120771, "indexExpression": { "hexValue": "36", - "id": 121290, + "id": 120770, "isConstant": false, "isLValue": false, "isPure": true, @@ -5963,7 +5963,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e", - "id": 121292, + "id": 120772, "isConstant": false, "isLValue": false, "isPure": true, @@ -5983,34 +5983,34 @@ "typeString": "string memory" } }, - "id": 121294, + "id": 120774, "nodeType": "ExpressionStatement", "src": "3255:53:175" }, { "expression": { - "id": 121305, + "id": 120785, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121295, + "id": 120775, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3319:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121297, + "id": 120777, "indexExpression": { "hexValue": "37", - "id": 121296, + "id": 120776, "isConstant": false, "isLValue": false, "isPure": true, @@ -6041,7 +6041,7 @@ "arguments": [ { "hexValue": "5370656564", - "id": 121299, + "id": 120779, "isConstant": false, "isLValue": false, "isPure": true, @@ -6061,32 +6061,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121300, + "id": 120780, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "3345:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121301, + "id": 120781, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 120953, + "referencedDeclaration": 120433, "src": "3345:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121302, + "id": 120782, "isConstant": false, "isLValue": false, "isPure": false, @@ -6100,7 +6100,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121303, + "id": 120783, "isConstant": false, "isLValue": false, "isPure": false, @@ -6127,18 +6127,18 @@ "typeString": "string memory" } ], - "id": 121298, + "id": 120778, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "3330:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121304, + "id": 120784, "isConstant": false, "isLValue": false, "isPure": false, @@ -6159,34 +6159,34 @@ "typeString": "string memory" } }, - "id": 121306, + "id": 120786, "nodeType": "ExpressionStatement", "src": "3319:48:175" }, { "expression": { - "id": 121311, + "id": 120791, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121307, + "id": 120787, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3378:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121309, + "id": 120789, "indexExpression": { "hexValue": "38", - "id": 121308, + "id": 120788, "isConstant": false, "isLValue": false, "isPure": true, @@ -6215,7 +6215,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e", - "id": 121310, + "id": 120790, "isConstant": false, "isLValue": false, "isPure": true, @@ -6235,34 +6235,34 @@ "typeString": "string memory" } }, - "id": 121312, + "id": 120792, "nodeType": "ExpressionStatement", "src": "3378:54:175" }, { "expression": { - "id": 121323, + "id": 120803, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121313, + "id": 120793, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3443:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121315, + "id": 120795, "indexExpression": { "hexValue": "39", - "id": 121314, + "id": 120794, "isConstant": false, "isLValue": false, "isPure": true, @@ -6293,7 +6293,7 @@ "arguments": [ { "hexValue": "537472656e677468", - "id": 121317, + "id": 120797, "isConstant": false, "isLValue": false, "isPure": true, @@ -6313,32 +6313,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121318, + "id": 120798, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "3473:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121319, + "id": 120799, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 120955, + "referencedDeclaration": 120435, "src": "3473:13:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121320, + "id": 120800, "isConstant": false, "isLValue": false, "isPure": false, @@ -6352,7 +6352,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121321, + "id": 120801, "isConstant": false, "isLValue": false, "isPure": false, @@ -6379,18 +6379,18 @@ "typeString": "string memory" } ], - "id": 121316, + "id": 120796, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "3454:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121322, + "id": 120802, "isConstant": false, "isLValue": false, "isPure": false, @@ -6411,34 +6411,34 @@ "typeString": "string memory" } }, - "id": 121324, + "id": 120804, "nodeType": "ExpressionStatement", "src": "3443:55:175" }, { "expression": { - "id": 121329, + "id": 120809, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121325, + "id": 120805, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3509:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121327, + "id": 120807, "indexExpression": { "hexValue": "3130", - "id": 121326, + "id": 120806, "isConstant": false, "isLValue": false, "isPure": true, @@ -6467,7 +6467,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e", - "id": 121328, + "id": 120808, "isConstant": false, "isLValue": false, "isPure": true, @@ -6487,34 +6487,34 @@ "typeString": "string memory" } }, - "id": 121330, + "id": 120810, "nodeType": "ExpressionStatement", "src": "3509:55:175" }, { "expression": { - "id": 121341, + "id": 120821, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121331, + "id": 120811, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3575:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121333, + "id": 120813, "indexExpression": { "hexValue": "3131", - "id": 121332, + "id": 120812, "isConstant": false, "isLValue": false, "isPure": true, @@ -6545,7 +6545,7 @@ "arguments": [ { "hexValue": "5370616365", - "id": 121335, + "id": 120815, "isConstant": false, "isLValue": false, "isPure": true, @@ -6565,32 +6565,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 121336, + "id": 120816, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121223, + "referencedDeclaration": 120703, "src": "3603:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121337, + "id": 120817, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 120957, + "referencedDeclaration": 120437, "src": "3603:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121338, + "id": 120818, "isConstant": false, "isLValue": false, "isPure": false, @@ -6604,7 +6604,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121339, + "id": 120819, "isConstant": false, "isLValue": false, "isPure": false, @@ -6631,18 +6631,18 @@ "typeString": "string memory" } ], - "id": 121334, + "id": 120814, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121220, + "referencedDeclaration": 120700, "src": "3587:6:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, - "id": 121340, + "id": 120820, "isConstant": false, "isLValue": false, "isPure": false, @@ -6663,34 +6663,34 @@ "typeString": "string memory" } }, - "id": 121342, + "id": 120822, "nodeType": "ExpressionStatement", "src": "3575:50:175" }, { "expression": { - "id": 121347, + "id": 120827, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121343, + "id": 120823, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3636:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121345, + "id": 120825, "indexExpression": { "hexValue": "3132", - "id": 121344, + "id": 120824, "isConstant": false, "isLValue": false, "isPure": true, @@ -6719,7 +6719,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c2f7376673e", - "id": 121346, + "id": 120826, "isConstant": false, "isLValue": false, "isPure": true, @@ -6739,23 +6739,23 @@ "typeString": "string memory" } }, - "id": 121348, + "id": 120828, "nodeType": "ExpressionStatement", "src": "3636:27:175" }, { "assignments": [ - 121350 + 120830 ], "declarations": [ { "constant": false, - "id": 121350, + "id": 120830, "mutability": "mutable", "name": "output", "nameLocation": "3688:6:175", "nodeType": "VariableDeclaration", - "scope": 121379, + "scope": 120859, "src": "3674:20:175", "stateVariable": false, "storageLocation": "memory", @@ -6764,7 +6764,7 @@ "typeString": "string" }, "typeName": { - "id": 121349, + "id": 120829, "name": "string", "nodeType": "ElementaryTypeName", "src": "3674:6:175", @@ -6776,29 +6776,29 @@ "visibility": "internal" } ], - "id": 121351, + "id": 120831, "nodeType": "VariableDeclarationStatement", "src": "3674:20:175" }, { "body": { - "id": 121375, + "id": 120855, "nodeType": "Block", "src": "3738:102:175", "statements": [ { "expression": { - "id": 121373, + "id": 120853, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 121362, + "id": 120842, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121350, + "referencedDeclaration": 120830, "src": "3752:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6812,11 +6812,11 @@ { "arguments": [ { - "id": 121367, + "id": 120847, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121350, + "referencedDeclaration": 120830, "src": "3798:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6825,24 +6825,24 @@ }, { "baseExpression": { - "id": 121368, + "id": 120848, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3806:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121370, + "id": 120850, "indexExpression": { - "id": 121369, + "id": 120849, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121353, + "referencedDeclaration": 120833, "src": "3812:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6873,7 +6873,7 @@ } ], "expression": { - "id": 121365, + "id": 120845, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6884,7 +6884,7 @@ "typeString": "abi" } }, - "id": 121366, + "id": 120846, "isConstant": false, "isLValue": false, "isPure": true, @@ -6897,7 +6897,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 121371, + "id": 120851, "isConstant": false, "isLValue": false, "isPure": false, @@ -6920,7 +6920,7 @@ "typeString": "bytes memory" } ], - "id": 121364, + "id": 120844, "isConstant": false, "isLValue": false, "isPure": true, @@ -6932,14 +6932,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 121363, + "id": 120843, "name": "string", "nodeType": "ElementaryTypeName", "src": "3761:6:175", "typeDescriptions": {} } }, - "id": 121372, + "id": 120852, "isConstant": false, "isLValue": false, "isPure": false, @@ -6960,7 +6960,7 @@ "typeString": "string memory" } }, - "id": 121374, + "id": 120854, "nodeType": "ExpressionStatement", "src": "3752:77:175" } @@ -6971,17 +6971,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121358, + "id": 120838, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121355, + "id": 120835, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121353, + "referencedDeclaration": 120833, "src": "3719:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6992,18 +6992,18 @@ "operator": "<", "rightExpression": { "expression": { - "id": 121356, + "id": 120836, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121233, + "referencedDeclaration": 120713, "src": "3721:5:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 121357, + "id": 120837, "isConstant": false, "isLValue": false, "isPure": false, @@ -7022,20 +7022,20 @@ "typeString": "bool" } }, - "id": 121376, + "id": 120856, "initializationExpression": { "assignments": [ - 121353 + 120833 ], "declarations": [ { "constant": false, - "id": 121353, + "id": 120833, "mutability": "mutable", "name": "i", "nameLocation": "3717:1:175", "nodeType": "VariableDeclaration", - "scope": 121376, + "scope": 120856, "src": "3709:9:175", "stateVariable": false, "storageLocation": "default", @@ -7044,7 +7044,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121352, + "id": 120832, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3709:7:175", @@ -7056,13 +7056,13 @@ "visibility": "internal" } ], - "id": 121354, + "id": 120834, "nodeType": "VariableDeclarationStatement", "src": "3709:9:175" }, "loopExpression": { "expression": { - "id": 121360, + "id": 120840, "isConstant": false, "isLValue": false, "isPure": false, @@ -7072,11 +7072,11 @@ "prefix": false, "src": "3734:3:175", "subExpression": { - "id": 121359, + "id": 120839, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121353, + "referencedDeclaration": 120833, "src": "3734:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7088,7 +7088,7 @@ "typeString": "uint256" } }, - "id": 121361, + "id": 120841, "nodeType": "ExpressionStatement", "src": "3734:3:175" }, @@ -7097,19 +7097,19 @@ }, { "expression": { - "id": 121377, + "id": 120857, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121350, + "referencedDeclaration": 120830, "src": "3856:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 121227, - "id": 121378, + "functionReturnParameters": 120707, + "id": 120858, "nodeType": "Return", "src": "3849:13:175" } @@ -7121,38 +7121,38 @@ "name": "createSVG", "nameLocation": "2530:9:175", "parameters": { - "id": 121224, + "id": 120704, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121223, + "id": 120703, "mutability": "mutable", "name": "user", "nameLocation": "2552:4:175", "nodeType": "VariableDeclaration", - "scope": 121380, + "scope": 120860, "src": "2540:16:175", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 121222, + "id": 120702, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121221, + "id": 120701, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "2540:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "2540:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } }, @@ -7162,17 +7162,17 @@ "src": "2539:18:175" }, "returnParameters": { - "id": 121227, + "id": 120707, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121226, + "id": 120706, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121380, + "scope": 120860, "src": "2581:13:175", "stateVariable": false, "storageLocation": "memory", @@ -7181,7 +7181,7 @@ "typeString": "string" }, "typeName": { - "id": 121225, + "id": 120705, "name": "string", "nodeType": "ElementaryTypeName", "src": "2581:6:175", @@ -7195,83 +7195,83 @@ ], "src": "2580:15:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 121475, + "id": 120955, "nodeType": "FunctionDefinition", "src": "3875:1284:175", "nodes": [], "body": { - "id": 121474, + "id": 120954, "nodeType": "Block", "src": "3970:1189:175", "nodes": [], "statements": [ { "assignments": [ - 121390 + 120870 ], "declarations": [ { "constant": false, - "id": 121390, + "id": 120870, "mutability": "mutable", "name": "user", "nameLocation": "3992:4:175", "nodeType": "VariableDeclaration", - "scope": 121474, + "scope": 120954, "src": "3980:16:175", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 121389, + "id": 120869, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121388, + "id": 120868, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "3980:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "3980:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 121394, + "id": 120874, "initialValue": { "baseExpression": { - "id": 121391, + "id": 120871, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121011, + "referencedDeclaration": 120491, "src": "3999:8:175", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 121393, + "id": 120873, "indexExpression": { - "id": 121392, + "id": 120872, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121382, + "referencedDeclaration": 120862, "src": "4008:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7285,7 +7285,7 @@ "nodeType": "IndexAccess", "src": "3999:18:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage", + "typeIdentifier": "t_struct$_User_$120441_storage", "typeString": "struct MUser.User storage ref" } }, @@ -7295,38 +7295,38 @@ { "condition": { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 121399, + "id": 120879, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 121395, + "id": 120875, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121390, + "referencedDeclaration": 120870, "src": "4031:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121396, + "id": 120876, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 120960, + "referencedDeclaration": 120440, "src": "4031:10:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -7334,28 +7334,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 121397, + "id": 120877, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "4045:11:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 121398, + "id": 120878, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 120641, + "referencedDeclaration": 120121, "src": "4045:19:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -7366,7 +7366,7 @@ } }, "falseBody": { - "id": 121472, + "id": 120952, "nodeType": "Block", "src": "4299:854:175", "statements": [ @@ -7375,38 +7375,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 121419, + "id": 120899, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 121415, + "id": 120895, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121390, + "referencedDeclaration": 120870, "src": "4321:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121416, + "id": 120896, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 120960, + "referencedDeclaration": 120440, "src": "4321:10:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -7414,28 +7414,28 @@ "operator": "!=", "rightExpression": { "expression": { - "id": 121417, + "id": 120897, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "4335:11:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 121418, + "id": 120898, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Inited", "nodeType": "MemberAccess", - "referencedDeclaration": 120640, + "referencedDeclaration": 120120, "src": "4335:18:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -7447,7 +7447,7 @@ }, { "hexValue": "426f78206e6f742065786973746564", - "id": 121420, + "id": 120900, "isConstant": false, "isLValue": false, "isPure": true, @@ -7473,7 +7473,7 @@ "typeString": "literal_string \"Box not existed\"" } ], - "id": 121414, + "id": 120894, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -7487,7 +7487,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 121421, + "id": 120901, "isConstant": false, "isLValue": false, "isPure": false, @@ -7502,23 +7502,23 @@ "typeString": "tuple()" } }, - "id": 121422, + "id": 120902, "nodeType": "ExpressionStatement", "src": "4313:60:175" }, { "assignments": [ - 121424 + 120904 ], "declarations": [ { "constant": false, - "id": 121424, + "id": 120904, "mutability": "mutable", "name": "output", "nameLocation": "4401:6:175", "nodeType": "VariableDeclaration", - "scope": 121472, + "scope": 120952, "src": "4387:20:175", "stateVariable": false, "storageLocation": "memory", @@ -7527,7 +7527,7 @@ "typeString": "string" }, "typeName": { - "id": 121423, + "id": 120903, "name": "string", "nodeType": "ElementaryTypeName", "src": "4387:6:175", @@ -7539,18 +7539,18 @@ "visibility": "internal" } ], - "id": 121428, + "id": 120908, "initialValue": { "arguments": [ { - "id": 121426, + "id": 120906, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121390, + "referencedDeclaration": 120870, "src": "4420:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } } @@ -7558,22 +7558,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } ], - "id": 121425, + "id": 120905, "name": "createSVG", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121380, + "referencedDeclaration": 120860, "src": "4410:9:175", "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_struct$_User_$120961_memory_ptr_$returns$_t_string_memory_ptr_$", + "typeIdentifier": "t_function_internal_pure$_t_struct$_User_$120441_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (struct MUser.User memory) pure returns (string memory)" } }, - "id": 121427, + "id": 120907, "isConstant": false, "isLValue": false, "isPure": false, @@ -7593,17 +7593,17 @@ }, { "assignments": [ - 121430 + 120910 ], "declarations": [ { "constant": false, - "id": 121430, + "id": 120910, "mutability": "mutable", "name": "json", "nameLocation": "4453:4:175", "nodeType": "VariableDeclaration", - "scope": 121472, + "scope": 120952, "src": "4439:18:175", "stateVariable": false, "storageLocation": "memory", @@ -7612,7 +7612,7 @@ "typeString": "string" }, "typeName": { - "id": 121429, + "id": 120909, "name": "string", "nodeType": "ElementaryTypeName", "src": "4439:6:175", @@ -7624,7 +7624,7 @@ "visibility": "internal" } ], - "id": 121458, + "id": 120938, "initialValue": { "arguments": [ { @@ -7635,7 +7635,7 @@ "arguments": [ { "hexValue": "7b226e616d65223a20224d557365722023", - "id": 121439, + "id": 120919, "isConstant": false, "isLValue": false, "isPure": true, @@ -7654,18 +7654,18 @@ "expression": { "argumentTypes": [], "expression": { - "id": 121440, + "id": 120920, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121382, + "referencedDeclaration": 120862, "src": "4645:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121441, + "id": 120921, "isConstant": false, "isLValue": false, "isPure": false, @@ -7679,7 +7679,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 121442, + "id": 120922, "isConstant": false, "isLValue": false, "isPure": false, @@ -7696,7 +7696,7 @@ }, { "hexValue": "222c20226465736372697074696f6e223a22", - "id": 121443, + "id": 120923, "isConstant": false, "isLValue": false, "isPure": true, @@ -7711,11 +7711,11 @@ "value": "\", \"description\":\"" }, { - "id": 121444, + "id": 120924, "name": "revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120971, + "referencedDeclaration": 120451, "src": "4744:12:175", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -7724,7 +7724,7 @@ }, { "hexValue": "222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c", - "id": 121445, + "id": 120925, "isConstant": false, "isLValue": false, "isPure": true, @@ -7743,11 +7743,11 @@ { "arguments": [ { - "id": 121450, + "id": 120930, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121424, + "referencedDeclaration": 120904, "src": "4876:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7762,7 +7762,7 @@ "typeString": "string memory" } ], - "id": 121449, + "id": 120929, "isConstant": false, "isLValue": false, "isPure": true, @@ -7774,14 +7774,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 121448, + "id": 120928, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4870:5:175", "typeDescriptions": {} } }, - "id": 121451, + "id": 120931, "isConstant": false, "isLValue": false, "isPure": false, @@ -7805,32 +7805,32 @@ } ], "expression": { - "id": 121446, + "id": 120926, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119403, + "referencedDeclaration": 118883, "src": "4856:6:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$119403_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118883_$", "typeString": "type(library Base64)" } }, - "id": 121447, + "id": 120927, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 119402, + "referencedDeclaration": 118882, "src": "4856:13:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 121452, + "id": 120932, "isConstant": false, "isLValue": false, "isPure": false, @@ -7847,7 +7847,7 @@ }, { "hexValue": "227d", - "id": 121453, + "id": 120933, "isConstant": false, "isLValue": false, "isPure": true, @@ -7894,7 +7894,7 @@ } ], "expression": { - "id": 121437, + "id": 120917, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -7905,7 +7905,7 @@ "typeString": "abi" } }, - "id": 121438, + "id": 120918, "isConstant": false, "isLValue": false, "isPure": true, @@ -7918,7 +7918,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 121454, + "id": 120934, "isConstant": false, "isLValue": false, "isPure": false, @@ -7941,7 +7941,7 @@ "typeString": "bytes memory" } ], - "id": 121436, + "id": 120916, "isConstant": false, "isLValue": false, "isPure": true, @@ -7953,14 +7953,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 121435, + "id": 120915, "name": "string", "nodeType": "ElementaryTypeName", "src": "4518:6:175", "typeDescriptions": {} } }, - "id": 121455, + "id": 120935, "isConstant": false, "isLValue": false, "isPure": false, @@ -7983,7 +7983,7 @@ "typeString": "string memory" } ], - "id": 121434, + "id": 120914, "isConstant": false, "isLValue": false, "isPure": true, @@ -7995,14 +7995,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 121433, + "id": 120913, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4491:5:175", "typeDescriptions": {} } }, - "id": 121456, + "id": 120936, "isConstant": false, "isLValue": false, "isPure": false, @@ -8026,32 +8026,32 @@ } ], "expression": { - "id": 121431, + "id": 120911, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119403, + "referencedDeclaration": 118883, "src": "4460:6:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$119403_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118883_$", "typeString": "type(library Base64)" } }, - "id": 121432, + "id": 120912, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 119402, + "referencedDeclaration": 118882, "src": "4460:13:175", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 121457, + "id": 120937, "isConstant": false, "isLValue": false, "isPure": false, @@ -8071,17 +8071,17 @@ }, { "expression": { - "id": 121468, + "id": 120948, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 121459, + "id": 120939, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121424, + "referencedDeclaration": 120904, "src": "5012:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8096,7 +8096,7 @@ "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 121464, + "id": 120944, "isConstant": false, "isLValue": false, "isPure": true, @@ -8111,11 +8111,11 @@ "value": "data:application/json;base64," }, { - "id": 121465, + "id": 120945, "name": "json", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121430, + "referencedDeclaration": 120910, "src": "5095:4:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8135,7 +8135,7 @@ } ], "expression": { - "id": 121462, + "id": 120942, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8146,7 +8146,7 @@ "typeString": "abi" } }, - "id": 121463, + "id": 120943, "isConstant": false, "isLValue": false, "isPure": true, @@ -8159,7 +8159,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 121466, + "id": 120946, "isConstant": false, "isLValue": false, "isPure": false, @@ -8182,7 +8182,7 @@ "typeString": "bytes memory" } ], - "id": 121461, + "id": 120941, "isConstant": false, "isLValue": false, "isPure": true, @@ -8194,14 +8194,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 121460, + "id": 120940, "name": "string", "nodeType": "ElementaryTypeName", "src": "5021:6:175", "typeDescriptions": {} } }, - "id": 121467, + "id": 120947, "isConstant": false, "isLValue": false, "isPure": false, @@ -8222,51 +8222,51 @@ "typeString": "string memory" } }, - "id": 121469, + "id": 120949, "nodeType": "ExpressionStatement", "src": "5012:102:175" }, { "expression": { - "id": 121470, + "id": 120950, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121424, + "referencedDeclaration": 120904, "src": "5136:6:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 121387, - "id": 121471, + "functionReturnParameters": 120867, + "id": 120951, "nodeType": "Return", "src": "5129:13:175" } ] }, - "id": 121473, + "id": 120953, "nodeType": "IfStatement", "src": "4027:1126:175", "trueBody": { - "id": 121413, + "id": 120893, "nodeType": "Block", "src": "4066:227:175", "statements": [ { "assignments": [ - 121401 + 120881 ], "declarations": [ { "constant": false, - "id": 121401, + "id": 120881, "mutability": "mutable", "name": "r", "nameLocation": "4094:1:175", "nodeType": "VariableDeclaration", - "scope": 121413, + "scope": 120893, "src": "4080:15:175", "stateVariable": false, "storageLocation": "memory", @@ -8275,7 +8275,7 @@ "typeString": "string" }, "typeName": { - "id": 121400, + "id": 120880, "name": "string", "nodeType": "ElementaryTypeName", "src": "4080:6:175", @@ -8287,14 +8287,14 @@ "visibility": "internal" } ], - "id": 121410, + "id": 120890, "initialValue": { "arguments": [ { "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 121406, + "id": 120886, "isConstant": false, "isLValue": false, "isPure": true, @@ -8309,11 +8309,11 @@ "value": "data:application/json;base64," }, { - "id": 121407, + "id": 120887, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120969, + "referencedDeclaration": 120449, "src": "4213:15:175", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8333,7 +8333,7 @@ } ], "expression": { - "id": 121404, + "id": 120884, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8344,7 +8344,7 @@ "typeString": "abi" } }, - "id": 121405, + "id": 120885, "isConstant": false, "isLValue": false, "isPure": true, @@ -8357,7 +8357,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 121408, + "id": 120888, "isConstant": false, "isLValue": false, "isPure": false, @@ -8380,7 +8380,7 @@ "typeString": "bytes memory" } ], - "id": 121403, + "id": 120883, "isConstant": false, "isLValue": false, "isPure": true, @@ -8392,14 +8392,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 121402, + "id": 120882, "name": "string", "nodeType": "ElementaryTypeName", "src": "4098:6:175", "typeDescriptions": {} } }, - "id": 121409, + "id": 120889, "isConstant": false, "isLValue": false, "isPure": false, @@ -8419,19 +8419,19 @@ }, { "expression": { - "id": 121411, + "id": 120891, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121401, + "referencedDeclaration": 120881, "src": "4281:1:175", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 121387, - "id": 121412, + "functionReturnParameters": 120867, + "id": 120892, "nodeType": "Return", "src": "4274:8:175" } @@ -8450,23 +8450,23 @@ "name": "tokenURI", "nameLocation": "3884:8:175", "overrides": { - "id": 121384, + "id": 120864, "nodeType": "OverrideSpecifier", "overrides": [], "src": "3937:8:175" }, "parameters": { - "id": 121383, + "id": 120863, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121382, + "id": 120862, "mutability": "mutable", "name": "_tokenId", "nameLocation": "3910:8:175", "nodeType": "VariableDeclaration", - "scope": 121475, + "scope": 120955, "src": "3902:16:175", "stateVariable": false, "storageLocation": "default", @@ -8475,7 +8475,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121381, + "id": 120861, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3902:7:175", @@ -8490,17 +8490,17 @@ "src": "3892:32:175" }, "returnParameters": { - "id": 121387, + "id": 120867, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121386, + "id": 120866, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121475, + "scope": 120955, "src": "3955:13:175", "stateVariable": false, "storageLocation": "memory", @@ -8509,7 +8509,7 @@ "typeString": "string" }, "typeName": { - "id": 121385, + "id": 120865, "name": "string", "nodeType": "ElementaryTypeName", "src": "3955:6:175", @@ -8523,83 +8523,83 @@ ], "src": "3954:15:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "view", "virtual": false, "visibility": "public" }, { - "id": 121523, + "id": 121003, "nodeType": "FunctionDefinition", "src": "5169:372:175", "nodes": [], "body": { - "id": 121522, + "id": 121002, "nodeType": "Block", "src": "5280:261:175", "nodes": [], "statements": [ { "assignments": [ - 121494 + 120974 ], "declarations": [ { "constant": false, - "id": 121494, + "id": 120974, "mutability": "mutable", "name": "user", "nameLocation": "5302:4:175", "nodeType": "VariableDeclaration", - "scope": 121522, + "scope": 121002, "src": "5290:16:175", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 121493, + "id": 120973, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 121492, + "id": 120972, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "5290:4:175" }, - "referencedDeclaration": 120961, + "referencedDeclaration": 120441, "src": "5290:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage_ptr", + "typeIdentifier": "t_struct$_User_$120441_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 121498, + "id": 120978, "initialValue": { "baseExpression": { - "id": 121495, + "id": 120975, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121011, + "referencedDeclaration": 120491, "src": "5309:8:175", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120961_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$120441_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 121497, + "id": 120977, "indexExpression": { - "id": 121496, + "id": 120976, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121477, + "referencedDeclaration": 120957, "src": "5318:8:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8613,7 +8613,7 @@ "nodeType": "IndexAccess", "src": "5309:18:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_storage", + "typeIdentifier": "t_struct$_User_$120441_storage", "typeString": "struct MUser.User storage ref" } }, @@ -8625,38 +8625,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" }, - "id": 121504, + "id": 120984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 121500, + "id": 120980, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5345:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121501, + "id": 120981, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 120960, + "referencedDeclaration": 120440, "src": "5345:10:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -8664,28 +8664,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 121502, + "id": 120982, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120643, + "referencedDeclaration": 120123, "src": "5359:11:175", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$120643_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$120123_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 121503, + "id": 120983, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 120642, + "referencedDeclaration": 120122, "src": "5359:21:175", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$120643", + "typeIdentifier": "t_enum$_RandomState_$120123", "typeString": "enum MRandom.RandomState" } }, @@ -8697,7 +8697,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 121505, + "id": 120985, "isConstant": false, "isLValue": false, "isPure": true, @@ -8723,7 +8723,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 121499, + "id": 120979, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -8737,7 +8737,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 121506, + "id": 120986, "isConstant": false, "isLValue": false, "isPure": false, @@ -8752,7 +8752,7 @@ "typeString": "tuple()" } }, - "id": 121507, + "id": 120987, "nodeType": "ExpressionStatement", "src": "5337:62:175" }, @@ -8761,25 +8761,25 @@ "components": [ { "expression": { - "id": 121508, + "id": 120988, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5416:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121509, + "id": 120989, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 120947, + "referencedDeclaration": 120427, "src": "5416:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8788,25 +8788,25 @@ }, { "expression": { - "id": 121510, + "id": 120990, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5433:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121511, + "id": 120991, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 120949, + "referencedDeclaration": 120429, "src": "5433:11:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8815,25 +8815,25 @@ }, { "expression": { - "id": 121512, + "id": 120992, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5454:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121513, + "id": 120993, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 120951, + "referencedDeclaration": 120431, "src": "5454:16:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8842,25 +8842,25 @@ }, { "expression": { - "id": 121514, + "id": 120994, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5480:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121515, + "id": 120995, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 120953, + "referencedDeclaration": 120433, "src": "5480:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8869,25 +8869,25 @@ }, { "expression": { - "id": 121516, + "id": 120996, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5500:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121517, + "id": 120997, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 120955, + "referencedDeclaration": 120435, "src": "5500:13:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8896,25 +8896,25 @@ }, { "expression": { - "id": 121518, + "id": 120998, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121494, + "referencedDeclaration": 120974, "src": "5523:4:175", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$120961_memory_ptr", + "typeIdentifier": "t_struct$_User_$120441_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 121519, + "id": 120999, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 120957, + "referencedDeclaration": 120437, "src": "5523:10:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8922,7 +8922,7 @@ } } ], - "id": 121520, + "id": 121000, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -8935,8 +8935,8 @@ "typeString": "tuple(uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 121491, - "id": 121521, + "functionReturnParameters": 120971, + "id": 121001, "nodeType": "Return", "src": "5409:125:175" } @@ -8949,17 +8949,17 @@ "name": "getStructInfo", "nameLocation": "5178:13:175", "parameters": { - "id": 121478, + "id": 120958, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121477, + "id": 120957, "mutability": "mutable", "name": "_tokenId", "nameLocation": "5200:8:175", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5192:16:175", "stateVariable": false, "storageLocation": "default", @@ -8968,7 +8968,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121476, + "id": 120956, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5192:7:175", @@ -8983,17 +8983,17 @@ "src": "5191:18:175" }, "returnParameters": { - "id": 121491, + "id": 120971, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121480, + "id": 120960, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5232:7:175", "stateVariable": false, "storageLocation": "default", @@ -9002,7 +9002,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121479, + "id": 120959, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5232:7:175", @@ -9015,12 +9015,12 @@ }, { "constant": false, - "id": 121482, + "id": 120962, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5240:7:175", "stateVariable": false, "storageLocation": "default", @@ -9029,7 +9029,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121481, + "id": 120961, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5240:7:175", @@ -9042,12 +9042,12 @@ }, { "constant": false, - "id": 121484, + "id": 120964, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5248:7:175", "stateVariable": false, "storageLocation": "default", @@ -9056,7 +9056,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121483, + "id": 120963, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5248:7:175", @@ -9069,12 +9069,12 @@ }, { "constant": false, - "id": 121486, + "id": 120966, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5256:7:175", "stateVariable": false, "storageLocation": "default", @@ -9083,7 +9083,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121485, + "id": 120965, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5256:7:175", @@ -9096,12 +9096,12 @@ }, { "constant": false, - "id": 121488, + "id": 120968, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5264:7:175", "stateVariable": false, "storageLocation": "default", @@ -9110,7 +9110,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121487, + "id": 120967, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5264:7:175", @@ -9123,12 +9123,12 @@ }, { "constant": false, - "id": 121490, + "id": 120970, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121523, + "scope": 121003, "src": "5272:7:175", "stateVariable": false, "storageLocation": "default", @@ -9137,7 +9137,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121489, + "id": 120969, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5272:7:175", @@ -9151,35 +9151,35 @@ ], "src": "5231:49:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 121587, + "id": 121067, "nodeType": "FunctionDefinition", "src": "5547:482:175", "nodes": [], "body": { - "id": 121586, + "id": 121066, "nodeType": "Block", "src": "5616:413:175", "nodes": [], "statements": [ { "assignments": [ - 121530 + 121010 ], "declarations": [ { "constant": false, - "id": 121530, + "id": 121010, "mutability": "mutable", "name": "balance", "nameLocation": "5634:7:175", "nodeType": "VariableDeclaration", - "scope": 121586, + "scope": 121066, "src": "5626:15:175", "stateVariable": false, "storageLocation": "default", @@ -9188,7 +9188,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121529, + "id": 121009, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5626:7:175", @@ -9200,12 +9200,12 @@ "visibility": "internal" } ], - "id": 121535, + "id": 121015, "initialValue": { "arguments": [ { "expression": { - "id": 121532, + "id": 121012, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9216,7 +9216,7 @@ "typeString": "msg" } }, - "id": 121533, + "id": 121013, "isConstant": false, "isLValue": false, "isPure": false, @@ -9237,7 +9237,7 @@ "typeString": "address" } ], - "id": 121531, + "id": 121011, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9248,7 +9248,7 @@ "typeString": "function (address) view returns (uint256)" } }, - "id": 121534, + "id": 121014, "isConstant": false, "isLValue": false, "isPure": false, @@ -9268,17 +9268,17 @@ }, { "assignments": [ - 121540 + 121020 ], "declarations": [ { "constant": false, - "id": 121540, + "id": 121020, "mutability": "mutable", "name": "tokenIds", "nameLocation": "5692:8:175", "nodeType": "VariableDeclaration", - "scope": 121586, + "scope": 121066, "src": "5675:25:175", "stateVariable": false, "storageLocation": "memory", @@ -9288,7 +9288,7 @@ }, "typeName": { "baseType": { - "id": 121538, + "id": 121018, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5675:7:175", @@ -9297,7 +9297,7 @@ "typeString": "uint256" } }, - "id": 121539, + "id": 121019, "nodeType": "ArrayTypeName", "src": "5675:9:175", "typeDescriptions": { @@ -9308,15 +9308,15 @@ "visibility": "internal" } ], - "id": 121546, + "id": 121026, "initialValue": { "arguments": [ { - "id": 121544, + "id": 121024, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121530, + "referencedDeclaration": 121010, "src": "5717:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9331,7 +9331,7 @@ "typeString": "uint256" } ], - "id": 121543, + "id": 121023, "isConstant": false, "isLValue": false, "isPure": true, @@ -9344,7 +9344,7 @@ }, "typeName": { "baseType": { - "id": 121541, + "id": 121021, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5707:7:175", @@ -9353,7 +9353,7 @@ "typeString": "uint256" } }, - "id": 121542, + "id": 121022, "nodeType": "ArrayTypeName", "src": "5707:9:175", "typeDescriptions": { @@ -9362,7 +9362,7 @@ } } }, - "id": 121545, + "id": 121025, "isConstant": false, "isLValue": false, "isPure": false, @@ -9382,17 +9382,17 @@ }, { "assignments": [ - 121548 + 121028 ], "declarations": [ { "constant": false, - "id": 121548, + "id": 121028, "mutability": "mutable", "name": "index", "nameLocation": "5743:5:175", "nodeType": "VariableDeclaration", - "scope": 121586, + "scope": 121066, "src": "5735:13:175", "stateVariable": false, "storageLocation": "default", @@ -9401,7 +9401,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121547, + "id": 121027, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5735:7:175", @@ -9413,13 +9413,13 @@ "visibility": "internal" } ], - "id": 121549, + "id": 121029, "nodeType": "VariableDeclarationStatement", "src": "5735:13:175" }, { "body": { - "id": 121582, + "id": 121062, "nodeType": "Block", "src": "5786:212:175", "statements": [ @@ -9429,7 +9429,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 121564, + "id": 121044, "isConstant": false, "isLValue": false, "isPure": false, @@ -9437,11 +9437,11 @@ "leftExpression": { "arguments": [ { - "id": 121560, + "id": 121040, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121551, + "referencedDeclaration": 121031, "src": "5811:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9456,7 +9456,7 @@ "typeString": "uint256" } ], - "id": 121559, + "id": 121039, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9467,7 +9467,7 @@ "typeString": "function (uint256) view returns (address)" } }, - "id": 121561, + "id": 121041, "isConstant": false, "isLValue": false, "isPure": false, @@ -9486,7 +9486,7 @@ "operator": "==", "rightExpression": { "expression": { - "id": 121562, + "id": 121042, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9497,7 +9497,7 @@ "typeString": "msg" } }, - "id": 121563, + "id": 121043, "isConstant": false, "isLValue": false, "isPure": false, @@ -9516,41 +9516,41 @@ "typeString": "bool" } }, - "id": 121581, + "id": 121061, "nodeType": "IfStatement", "src": "5800:188:175", "trueBody": { - "id": 121580, + "id": 121060, "nodeType": "Block", "src": "5828:160:175", "statements": [ { "expression": { - "id": 121569, + "id": 121049, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 121565, + "id": 121045, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121540, + "referencedDeclaration": 121020, "src": "5846:8:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "id": 121567, + "id": 121047, "indexExpression": { - "id": 121566, + "id": 121046, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121548, + "referencedDeclaration": 121028, "src": "5855:5:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9571,11 +9571,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 121568, + "id": 121048, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121551, + "referencedDeclaration": 121031, "src": "5864:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9588,13 +9588,13 @@ "typeString": "uint256" } }, - "id": 121570, + "id": 121050, "nodeType": "ExpressionStatement", "src": "5846:19:175" }, { "expression": { - "id": 121572, + "id": 121052, "isConstant": false, "isLValue": false, "isPure": false, @@ -9604,11 +9604,11 @@ "prefix": false, "src": "5883:7:175", "subExpression": { - "id": 121571, + "id": 121051, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121548, + "referencedDeclaration": 121028, "src": "5883:5:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9620,7 +9620,7 @@ "typeString": "uint256" } }, - "id": 121573, + "id": 121053, "nodeType": "ExpressionStatement", "src": "5883:7:175" }, @@ -9630,17 +9630,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121576, + "id": 121056, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121574, + "id": 121054, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121548, + "referencedDeclaration": 121028, "src": "5911:5:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9650,11 +9650,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 121575, + "id": 121055, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121530, + "referencedDeclaration": 121010, "src": "5920:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9667,16 +9667,16 @@ "typeString": "bool" } }, - "id": 121579, + "id": 121059, "nodeType": "IfStatement", "src": "5908:66:175", "trueBody": { - "id": 121578, + "id": 121058, "nodeType": "Block", "src": "5928:46:175", "statements": [ { - "id": 121577, + "id": 121057, "nodeType": "Break", "src": "5950:5:175" } @@ -9693,17 +9693,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 121555, + "id": 121035, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 121553, + "id": 121033, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121551, + "referencedDeclaration": 121031, "src": "5772:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9713,11 +9713,11 @@ "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { - "id": 121554, + "id": 121034, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120963, + "referencedDeclaration": 120443, "src": "5774:7:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9730,20 +9730,20 @@ "typeString": "bool" } }, - "id": 121583, + "id": 121063, "initializationExpression": { "assignments": [ - 121551 + 121031 ], "declarations": [ { "constant": false, - "id": 121551, + "id": 121031, "mutability": "mutable", "name": "i", "nameLocation": "5770:1:175", "nodeType": "VariableDeclaration", - "scope": 121583, + "scope": 121063, "src": "5762:9:175", "stateVariable": false, "storageLocation": "default", @@ -9752,7 +9752,7 @@ "typeString": "uint256" }, "typeName": { - "id": 121550, + "id": 121030, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5762:7:175", @@ -9764,13 +9764,13 @@ "visibility": "internal" } ], - "id": 121552, + "id": 121032, "nodeType": "VariableDeclarationStatement", "src": "5762:9:175" }, "loopExpression": { "expression": { - "id": 121557, + "id": 121037, "isConstant": false, "isLValue": false, "isPure": false, @@ -9780,11 +9780,11 @@ "prefix": false, "src": "5782:3:175", "subExpression": { - "id": 121556, + "id": 121036, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121551, + "referencedDeclaration": 121031, "src": "5782:1:175", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9796,7 +9796,7 @@ "typeString": "uint256" } }, - "id": 121558, + "id": 121038, "nodeType": "ExpressionStatement", "src": "5782:3:175" }, @@ -9805,19 +9805,19 @@ }, { "expression": { - "id": 121584, + "id": 121064, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 121540, + "referencedDeclaration": 121020, "src": "6014:8:175", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "functionReturnParameters": 121528, - "id": 121585, + "functionReturnParameters": 121008, + "id": 121065, "nodeType": "Return", "src": "6007:15:175" } @@ -9830,23 +9830,23 @@ "name": "getUserTokenIdList", "nameLocation": "5556:18:175", "parameters": { - "id": 121524, + "id": 121004, "nodeType": "ParameterList", "parameters": [], "src": "5574:2:175" }, "returnParameters": { - "id": 121528, + "id": 121008, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 121527, + "id": 121007, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 121587, + "scope": 121067, "src": "5599:16:175", "stateVariable": false, "storageLocation": "memory", @@ -9856,7 +9856,7 @@ }, "typeName": { "baseType": { - "id": 121525, + "id": 121005, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5599:7:175", @@ -9865,7 +9865,7 @@ "typeString": "uint256" } }, - "id": 121526, + "id": 121006, "nodeType": "ArrayTypeName", "src": "5599:9:175", "typeDescriptions": { @@ -9878,7 +9878,7 @@ ], "src": "5598:18:175" }, - "scope": 121588, + "scope": 121068, "stateMutability": "view", "virtual": false, "visibility": "external" @@ -9888,25 +9888,25 @@ "baseContracts": [ { "baseName": { - "id": 120935, + "id": 120415, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, "src": "181:6:175" }, - "id": 120936, + "id": 120416, "nodeType": "InheritanceSpecifier", "src": "181:6:175" }, { "baseName": { - "id": 120937, + "id": 120417, "name": "MRandom", "nodeType": "IdentifierPath", - "referencedDeclaration": 120834, + "referencedDeclaration": 120314, "src": "189:7:175" }, - "id": 120938, + "id": 120418, "nodeType": "InheritanceSpecifier", "src": "189:7:175" } @@ -9916,18 +9916,18 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 121588, - 120834, + 121068, + 120314, 72425, - 131643, - 131598, - 132019, - 174300, - 131995 + 131141, + 131096, + 131517, + 173798, + 131493 ], "name": "MUser", "nameLocation": "172:5:175", - "scope": 121589, + "scope": 121069, "usedErrors": [] } ], diff --git a/packages/contracts/src/systems/BattleSystem.sol b/packages/contracts/src/systems/BattleSystem.sol index 6d777de1..12a935e9 100644 --- a/packages/contracts/src/systems/BattleSystem.sol +++ b/packages/contracts/src/systems/BattleSystem.sol @@ -102,6 +102,10 @@ contract BattleSystem is System { Player.setHp(_battle.defender, BattleList.getDefenderHP(_battleId)); BattleList.setIsEnd(_battleId, true); BattleList.setWinner(_battleId, address(0)); + Player.setLastBattleTime(_battle.attacker, block.timestamp); + Player.setLastBattleTime(_battle.defender, block.timestamp); + + } // @@ -120,9 +124,11 @@ contract BattleSystem is System { PlayerLocationLock.set(battle.defender, block.timestamp); Player.setState(battle.attacker, PlayerState.Exploring); Player.setHp(battle.attacker, BattleList.getAttackerHP(_battleId)); + Player.setLastBattleTime(battle.attacker, block.timestamp); // console.log(" defender escape success"); Player.setState(battle.defender, PlayerState.Exploring); Player.setHp(battle.defender, BattleList.getDefenderHP(_battleId)); + Player.setLastBattleTime(battle.defender, block.timestamp); }else{ // 逃跑失败 diff --git a/packages/contracts/src/systems/BoxSystem.sol b/packages/contracts/src/systems/BoxSystem.sol index 30a29c30..48a5991f 100644 --- a/packages/contracts/src/systems/BoxSystem.sol +++ b/packages/contracts/src/systems/BoxSystem.sol @@ -37,7 +37,6 @@ contract BoxSystem is System { function revealBox(uint256 _boxId) external { BoxListData memory _box = BoxList.get(_boxId); - require(_box.owner == _msgSender(), "you are not the owner"); console.log("randomId ", _box.randomId); @@ -52,7 +51,6 @@ contract BoxSystem is System { function getCollections(uint256 _boxId, uint16 _oreAmount, uint16 _treasureAmount) public { BoxListData memory _box = BoxList.get(_boxId); - require(_box.owner == _msgSender(), "you are not the owner"); PlayerData memory _player = Player.get(_box.owner); require(CommonUtils.isNear(_box.x, _player.x, _box.y, _player.y), "You are not near the box"); diff --git a/packages/contracts/src/systems/library/BattleUtils.sol b/packages/contracts/src/systems/library/BattleUtils.sol index 5938ff13..3ed0733c 100644 --- a/packages/contracts/src/systems/library/BattleUtils.sol +++ b/packages/contracts/src/systems/library/BattleUtils.sol @@ -8,7 +8,7 @@ import { BATTLE_CONFIG_KEY, GAME_CONFIG_KEY } from "../../Constants.sol"; library BattleUtils { function compareBuff(Buff _myBuff, Buff _targetBuff) internal pure returns (uint256) { // 0: fail , 1: equal , 2: success - // Wind > Water > Fire + // "Fire"< "Water"<"Wind" if ( (_myBuff == Buff.Water && _targetBuff == Buff.Fire) || diff --git a/packages/contracts/worlds.json b/packages/contracts/worlds.json index 8891b458..bd383a52 100644 --- a/packages/contracts/worlds.json +++ b/packages/contracts/worlds.json @@ -4,11 +4,11 @@ "blockNumber": 29582781 }, "31337": { - "address": "0xc0c5618f0F3Fa66b496F2940f373DC366d765BAe" + "address": "0xD28F3246f047Efd4059B24FA1fa587eD9fa3e77F" }, "33784": { - "address": "0x97D9A81b61bE843968a68fB75aeF2196cB636AbD", - "blockNumber": 337282 + "address": "0x72BABF88732ddEc1e78A71B638B4E9D6A233206c", + "blockNumber": 355200 }, "421613": { "address": "0x2Bc1034975c3df48D6f3026802f372677844b85d",