From 0a33023ff8ff3295baf03138fbda1a764e347453 Mon Sep 17 00:00:00 2001 From: lewis <71866430+xingxinglian@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:02:17 +0800 Subject: [PATCH] chore: optimze battle player hp logic --- .../contracts/out/IWorld.sol/IWorld.abi.json | 23 - packages/contracts/out/IWorld.sol/IWorld.json | 302 +- packages/contracts/out/Loot.sol/MLoot.json | 2978 ++++++++--------- .../contracts/out/Plugin.sol/MPlugin.json | 342 +- packages/contracts/out/User.sol/MUser.json | 2018 +++++------ .../src/systems/BattleForceSystem.sol | 4 +- .../src/systems/BattleInfoSystem.sol | 7 +- .../src/systems/BattlePrepareSystem.sol | 3 +- .../contracts/src/systems/BattleSystem.sol | 3 + .../src/systems/library/BattleUtils.sol | 2 +- 10 files changed, 2809 insertions(+), 2873 deletions(-) diff --git a/packages/contracts/out/IWorld.sol/IWorld.abi.json b/packages/contracts/out/IWorld.sol/IWorld.abi.json index 29916cab..42d39984 100644 --- a/packages/contracts/out/IWorld.sol/IWorld.abi.json +++ b/packages/contracts/out/IWorld.sol/IWorld.abi.json @@ -1083,29 +1083,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_targetHP", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_percent", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_player", - "type": "address" - } - ], - "name": "raisePlayerHp", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { diff --git a/packages/contracts/out/IWorld.sol/IWorld.json b/packages/contracts/out/IWorld.sol/IWorld.json index d76523c7..5956ec10 100644 --- a/packages/contracts/out/IWorld.sol/IWorld.json +++ b/packages/contracts/out/IWorld.sol/IWorld.json @@ -1084,29 +1084,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_targetHP", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_percent", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_player", - "type": "address" - } - ], - "name": "raisePlayerHp", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { @@ -1595,7 +1572,6 @@ "openBox(uint256)": "b1e5e2b7", "popFromField(bytes32,bytes32[],uint8,uint256,bytes32)": "6e161b76", "pushToField(bytes32,bytes32[],uint8,bytes,bytes32)": "0edac7fd", - "raisePlayerHp(uint256,uint256,address)": "4e04dcff", "registerFunctionSelector(bytes32,string,string)": "3c03a51c", "registerNamespace(bytes16)": "a886545e", "registerRootFunctionSelector(bytes32,bytes4,bytes4)": "b7a3c756", @@ -1619,7 +1595,7 @@ "unlockUserLocation()": "7ad5cf14", "updateInField(bytes32,bytes32[],uint8,uint256,bytes,bytes32)": "31914148" }, - "rawMetadata": "{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"AccessDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"functionSelector\",\"type\":\"bytes4\"}],\"name\":\"FunctionSelectorExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"functionSelector\",\"type\":\"bytes4\"}],\"name\":\"FunctionSelectorNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"InvalidSelector\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"module\",\"type\":\"string\"}],\"name\":\"ModuleAlreadyInstalled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"ResourceExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"ResourceNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_DataIndexOverflow\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidDataLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidFieldNamesLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidKeyNamesLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StoreCore_NotDynamicField\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StoreCore_NotImplemented\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tableId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"tableIdString\",\"type\":\"string\"}],\"name\":\"StoreCore_TableAlreadyExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tableId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"tableIdString\",\"type\":\"string\"}],\"name\":\"StoreCore_TableNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"system\",\"type\":\"address\"}],\"name\":\"SystemExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"HelloWorld\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"}],\"name\":\"StoreDeleteRecord\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreEphemeralRecord\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreSetField\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreSetRecord\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_y\",\"type\":\"uint16\"}],\"name\":\"CreateBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetSeasonInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_root\",\"type\":\"bytes32\"}],\"name\":\"SetMapMerkleRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_end\",\"type\":\"uint256\"}],\"name\":\"SetSeasonInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"SetUserContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_targetAddress\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"internalType\":\"struct Position[]\",\"name\":\"positionList\",\"type\":\"tuple[]\"}],\"name\":\"battleInvitation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"funcSelectorAndArgs\",\"type\":\"bytes\"}],\"name\":\"call\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_buffHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"confirmBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"createLootBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"deleteRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dropLoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"emitEphemeralRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"forceEnd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getBattlePlayerHp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_oreAmount\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_treasureAmount\",\"type\":\"uint16\"}],\"name\":\"getCollections\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getField\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getFieldLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getFieldSlice\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"}],\"name\":\"getKeySchema\",\"outputs\":[{\"internalType\":\"Schema\",\"name\":\"schema\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getPosition\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getRecord\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSenderPosition\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getUserInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"}],\"name\":\"getValueSchema\",\"outputs\":[{\"internalType\":\"Schema\",\"name\":\"schema\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"goHome\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"grantAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_player\",\"type\":\"address\"}],\"name\":\"initPlayerHp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initUserInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IModule\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IModule\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installRootModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"joinBattlefield\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"internalType\":\"struct Position[]\",\"name\":\"moveList\",\"type\":\"tuple[]\"}],\"name\":\"move\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"}],\"name\":\"openBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"byteLengthToPop\",\"type\":\"uint256\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"popFromField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"dataToPush\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"pushToField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_targetHP\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_percent\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_player\",\"type\":\"address\"}],\"name\":\"raisePlayerHp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"systemFunctionName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"systemFunctionArguments\",\"type\":\"string\"}],\"name\":\"registerFunctionSelector\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"worldFunctionSelector\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"namespace\",\"type\":\"bytes16\"}],\"name\":\"registerNamespace\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"bytes4\",\"name\":\"worldFunctionSelector\",\"type\":\"bytes4\"},{\"internalType\":\"bytes4\",\"name\":\"systemFunctionSelector\",\"type\":\"bytes4\"}],\"name\":\"registerRootFunctionSelector\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"contract IStoreHook\",\"name\":\"hook\",\"type\":\"address\"}],\"name\":\"registerStoreHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"contract System\",\"name\":\"system\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"publicAccess\",\"type\":\"bool\"}],\"name\":\"registerSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"contract ISystemHook\",\"name\":\"hook\",\"type\":\"address\"}],\"name\":\"registerSystemHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"Schema\",\"name\":\"keySchema\",\"type\":\"bytes32\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"},{\"internalType\":\"string[]\",\"name\":\"keyNames\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"fieldNames\",\"type\":\"string[]\"}],\"name\":\"registerTable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_action\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_arg\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_nonce\",\"type\":\"bytes32\"}],\"name\":\"revealBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"}],\"name\":\"revealBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"revealWinner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"revokeAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_userTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_lootTokenId\",\"type\":\"uint256\"}],\"name\":\"selectBothNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"selectLootNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"selectUserNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"setField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"}],\"name\":\"setInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"setRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"settleBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"takeLoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockUserLocation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"startByteIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dataToSet\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"updateInField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"call(bytes32,bytes)\":{\"notice\":\"Call the system at the given resource selector (namespace + name) If the system is not public, the caller must have access to the namespace or name.\"},\"installRootModule(address,bytes)\":{\"notice\":\"Install the given root module in the World. Requires the caller to own the root namespace. The module is delegatecalled and installed in the root namespace.\"}},\"notice\":\"The IWorld interface includes all systems dynamically added to the World during the deploy process.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/codegen/world/IWorld.sol\":\"IWorld\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@codegen/=src/codegen/\",\":@latticexyz/=node_modules/@latticexyz/\",\":@library/=src/systems/library/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@src/=src/\",\":@systems/=src/systems/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol\":{\"keccak256\":\"0x7e86f39f7e0d29342d79144af3c48a3f9f103aca38603318e999483f33cbd966\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a7956d2a9b27689d615ae66d0e85f96c86509274fd8f1dc4c4f8dbd204936cea\",\"dweb:/ipfs/QmTgn4tdtbcDEoVcYcgQzS1u8epSbFnefWc9Nbt9eBkjbT\"]},\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0x52bd79fd98b47bddbc4ccae178b9258cf308c15d41ecbbce57ee46beb17e6787\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0a48beb7750a813f1b351299de1b78287e9b8e41e4a35762aaa11fb28679c2d8\",\"dweb:/ipfs/Qmcnm5Tb6mUcSjC22z4Ke6DBV1rkYJmZcU1w442QpgTbff\"]},\"node_modules/@latticexyz/store/src/IStore.sol\":{\"keccak256\":\"0x0a2728e859ae0ade6b6d425ac8656c83a4e665aa8192a2a4397948869bdc2eea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d06c0fa440f8572adadd3c743791bdb8ffc4468d7cc475e03406acd75be38145\",\"dweb:/ipfs/QmezfepEFeDECZ3kZAwW2p3xuVmmJUbFRTDPnBPH6TAbdB\"]},\"node_modules/@latticexyz/store/src/IStoreErrors.sol\":{\"keccak256\":\"0x9db1089c5ae5ad585fdbc87f0ec14bdb82ec5098ebd27b67b1c6111853b72749\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fa6b81aa9d63d9bcf5e9a5b82b03df8c135519d10fa69d232f1ae658ed780b71\",\"dweb:/ipfs/QmNnf8KEDtMYofpT7iDd89chmw7zpvuZGVDhzjZXarQHE2\"]},\"node_modules/@latticexyz/store/src/Memory.sol\":{\"keccak256\":\"0x1edc427b0d26609d1ce739b82b78fc03ae9f7463c3a81e8f8c608516ca7b0089\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://41cfaaf85af74c83b20ef308daa69ac65101ffbb2690d6888a06cbb55bf37146\",\"dweb:/ipfs/QmQp4Sf98TfifmsSNU5nVeG7UABWobaUf5oVR38Dh1kpw1\"]},\"node_modules/@latticexyz/store/src/PackedCounter.sol\":{\"keccak256\":\"0x5b653faa6c1d6732f6d5e5feaff282bbea099d8d01c8f6d54b4f7732f5e2a8b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://57e75c7aac764d3194a196daeea17a78f0bdc1471aa0c0fb5ba93b7f41ad2c01\",\"dweb:/ipfs/QmQHnzXtDLc9eryiXH1DopezvbQgnHChbxQS1ZNpscqHuw\"]},\"node_modules/@latticexyz/store/src/Schema.sol\":{\"keccak256\":\"0xb5952acdf7eb89759e1a09a698935c23b8f3cadad2dbb2c5629fc265189c9337\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b841654b762ac86a139e0bc5df49334ab5133f61e8fab59a66fbd57f9b6607e7\",\"dweb:/ipfs/Qmdn4DRGcU843BdWDWTk4n9aP79c4ybB9X92ejQxKvCYid\"]},\"node_modules/@latticexyz/store/src/Slice.sol\":{\"keccak256\":\"0x617c3624e15cb755857ac172a49ae11e0db688984c4d16a8de8e3c172a13ef7d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://71916605d89da3be4ac1b434e877dfac95dadea8b61b720a5204efac1ca94487\",\"dweb:/ipfs/QmTeZJRJ8Ev8LFQSCHuc6tYG7Vz6VtkBozbWzZgPWSXtcP\"]},\"node_modules/@latticexyz/store/src/Storage.sol\":{\"keccak256\":\"0xd3319f1bf70094e2a436419a7ed9cb4ea6a46efe2df3ccf64fa1b5b4107b54cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ff7173aa1002730caade98fa7c8b8b8a7ad34b8f40dd405abae28269124aaf51\",\"dweb:/ipfs/QmdRrsS9yf27xHdgRuNwX7JoqttzyKmVGWQSnZeTmiMksm\"]},\"node_modules/@latticexyz/store/src/StoreCore.sol\":{\"keccak256\":\"0x0b65c36067dfff4ad8168dc2006ff9e53cde2469e4e21eccde010cff9ea78b2b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a5af9eadfefe1b54a13e402161783d697160bfe658e33803a11f55e9fa6b494\",\"dweb:/ipfs/QmbvEYmiLbSC1jpu65R93QkiB6DpsGHhzyauH9XyQdtfC9\"]},\"node_modules/@latticexyz/store/src/StoreSwitch.sol\":{\"keccak256\":\"0x853651c0be864e7f4f81dbbba4536bb159a5cb77c0b5ceb977a633321b1ff3e4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ec9b809cc7016225fee4781db22a360d65b4cddcb44a6ae315937b471f46363c\",\"dweb:/ipfs/QmTDUoqqXppFNvGnVUUZPpz1LNECYqX6bX341vUVwpYSDL\"]},\"node_modules/@latticexyz/store/src/Utils.sol\":{\"keccak256\":\"0x50a3bf74a64f0846c3212b599d2ebd6f220ae562a7ddd01584398d05c5206578\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4c44640063d30f054c20dc701b92cbefe64ef4c2cdde686746de4a11c76dfa5c\",\"dweb:/ipfs/QmawdG9zbqoMTCKGJUYfHNuBqeBgdKCdy18BftGd4c9hJA\"]},\"node_modules/@latticexyz/store/src/codegen/Tables.sol\":{\"keccak256\":\"0x567dac75ee912726ad29744f9ba7ef527e8148c213d62442c79010b406710273\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f744bcbd592a8ae5bfe8f99f8952665c44a61413184859080df1bc5947880979\",\"dweb:/ipfs/QmcRG7yXyEgfL8pSQXqjYNZ6G1DUdJkkDMRYCagMZLYUXT\"]},\"node_modules/@latticexyz/store/src/codegen/Types.sol\":{\"keccak256\":\"0x23ba2a20a16a4265f122c5e08e5b9881fd827f2cd7a92427740ee1eb3c4e7628\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://01236b9e7ffec2b6468e4b7dbc418453c2e5d73eaa14ebf4f5056619f46ad6b7\",\"dweb:/ipfs/QmSHA9efL43SUYbFtgCGv9ucZPD9ULi8o8ENpURAvDGhdB\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Callbacks.sol\":{\"keccak256\":\"0x8da9b947da2ce09f06aa0e8ef03c459f9a209de4546c1b48ff856306958d06bf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ea33ce2a5cd10189c223a5553ccb8f07707328748f5ebf15ead50c1eeb72e47\",\"dweb:/ipfs/QmcPvNJ1992qaz278co4Yhjhr6eZCaY6PchqMHPMiuZRSj\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Hooks.sol\":{\"keccak256\":\"0xcdf71af7def6c165fdf07ae749baaf82717c1869a5c26e4cb8241c89fe82a6ca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d5cf5cdc0ce87d3dcc9d71997410ca0bae5fdedeb71f4bf1b64363d83bc4e7fe\",\"dweb:/ipfs/QmPYAVErLNYZsF1iySgYvjUq3PuoXEW5MXyKDDQVuvM8fq\"]},\"node_modules/@latticexyz/store/src/codegen/tables/KeyEncoding.sol\":{\"keccak256\":\"0xdb8111fcf15adc44e70ecffe8147d831681bbd02f903e4018598802e8b40d16c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9a183262de5687b2d91f607c6d18b5b116d792bc3c45c09a92231cb6c9067df6\",\"dweb:/ipfs/QmNdwHZsVBRuMQjtntxuMbtYv9bXDZMepvhqge6h4rU6Nc\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Mixed.sol\":{\"keccak256\":\"0x1df0bb93269b94e8d5ef7e396e4d2cfb6aba795194799a5c7fc4b8d494a1fc16\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dffc44bb6386a0fdfba116088a0dc66901e705c9079cd24ce613babb981a587f\",\"dweb:/ipfs/QmapF8fhrjG9uei97ANRdoMaxpv6tcA6nBts51bW8XVY8C\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Tables.sol\":{\"keccak256\":\"0x0fc67f4823698339c9316a8dccd99cf11cd2f189d961ddd6fe5e0ea766e0e02a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8937de034e2170d0eb9df2dfdb16fd13cc1826870831dfd071f2e85fffc84283\",\"dweb:/ipfs/QmVgfTWnBSreNJEd17bTt1GLrMGZ74DvGfzy7JSYiUMuhx\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Vector2.sol\":{\"keccak256\":\"0x9a0205729b68a920b554a9b5c3407f07fee5717aa5e6d9541d10a837f2ee9254\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5c873ef09df14a045a0ba9371ada2786460996d8279496f674eb0a530807f065\",\"dweb:/ipfs/QmaM1EhCyTt2CGEktTgKFfpZZNdarUXQWTNamcwpqL7gCC\"]},\"node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol\":{\"keccak256\":\"0x63fa0cb7b7a2c225d17a3d22c3ba81e543da1388495c8747dfb3e129a3787d66\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a0f7bfe7f001bb00d95ad493e12b5220f4fb7d175161c747464e2d59c0a93eb8\",\"dweb:/ipfs/QmZeDyzinRWnfoQme8R9mbMpCu9KiUw1AzjPb1SQzNV5oC\"]},\"node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol\":{\"keccak256\":\"0xbf4ea9fa659ffb1581d417de93082ec9b4586bf7aeda078c2649bd382f0c54dd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6860d8f58c2e8f0dde310a1b1e94d2aa355ad060f3797708fcc978be304faf1e\",\"dweb:/ipfs/QmeypWegTQ89bUHab3yptatH6CA8xirJbCMGHqZ7WcXnzA\"]},\"node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol\":{\"keccak256\":\"0x844f8ffa93563ff87cb959947879868a79c53aa0c034f2fa9beba4b571a8d304\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1686477bec31cff0460212420bf69e02be62288039a20f0d76d33dbb98615755\",\"dweb:/ipfs/QmWLijVaJk7FKTsBq7Cc2YuJom1ioRaGLX69NQybN9dNBR\"]},\"node_modules/@latticexyz/world/src/System.sol\":{\"keccak256\":\"0xf1342c8461adb4c5821c1ca106a67ba34402b36265fa63bf766eed937bd92bf9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ea41f96a27a26d56d62824e007b3b0234d44fcd94361e5c8f40fdb334cbf444b\",\"dweb:/ipfs/QmRfj4iS5Lu9V4e47wsPQy4op1qQ6hqaJpERLB5EyzqW38\"]},\"node_modules/@latticexyz/world/src/WorldContext.sol\":{\"keccak256\":\"0x2f2c8c55627287b9519ef57dae24c72bb82ec5abbd33ab9142bcdd931e62c1f8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d78c65acf3452474b023978dd13491f58ce4b98b3c2b87a1e0e6827d605d791a\",\"dweb:/ipfs/QmVHDrC2Jp4tp1nWLuzDVK5D8VLBP52w2pYVLtfkCKpLiC\"]},\"node_modules/@latticexyz/world/src/interfaces/IAccessManagementSystem.sol\":{\"keccak256\":\"0xb98e1732343d23c9c2d4bc59643da1798bf651b7c272cecd7b74e3d37ac7363c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8e81c35c04c7deb9cbbea43c93d50bd685dd252eea3e4e2d25f0a29f8dcf4252\",\"dweb:/ipfs/QmZDUvrsFdTmBq5aTgP976Rbd3Yt1CHLpLeaUJQEVW4jCC\"]},\"node_modules/@latticexyz/world/src/interfaces/IBaseWorld.sol\":{\"keccak256\":\"0x9d15d5ac7512631590eda71cb19937d10a9b253d8a9b61bec54e7b0471b3b785\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://09b18f736784a0f38d5d6b62733fba106ecb84fc8d1b2390236ab8b162511e38\",\"dweb:/ipfs/QmPdvnPupSTBv8Vi2fRFe7A9NYfVuf2LtbdS1DiWXjHf9D\"]},\"node_modules/@latticexyz/world/src/interfaces/ICoreSystem.sol\":{\"keccak256\":\"0x21e72828243fbf26d21594a423e9a32e86df07d3e435ea216a27c326546df106\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8ac8c4b2cdeddaf458e562e3f236a5c798664443eca1658038540d5585ee090\",\"dweb:/ipfs/QmPbh7JmBcxqJV4YP78zVXpsmCSGnSN6g7M27MTkyUjRgG\"]},\"node_modules/@latticexyz/world/src/interfaces/IModule.sol\":{\"keccak256\":\"0x0c9f5a12f8b27ae6f02b6ca7ccfd7ab1de349e5c4773f99cfab1fd4721bc4a06\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cafb66fbd4b3587121a2f2ff6fc5e4c32796e6469719899e181c3abac1479178\",\"dweb:/ipfs/QmT6GKskhqmLadhuNVVbgDEgJ92jMsCdyLcfrSaiVQeZYf\"]},\"node_modules/@latticexyz/world/src/interfaces/IModuleInstallationSystem.sol\":{\"keccak256\":\"0x77b05ecc98755a3b48f0296af3146486890d140eff7b1cc6e95be95a6aab80c0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://684155a7539c00796d2e00c3d67dc8d9c5e707e3fac37089df84a346607efdc2\",\"dweb:/ipfs/QmeAPVzvTmaiHBtvFVw92XNmWmQ63RqWAgzNqBGRYwyzkz\"]},\"node_modules/@latticexyz/world/src/interfaces/ISystemHook.sol\":{\"keccak256\":\"0x1dc2adc81b6e82cd5c1040f5885b2b762647166ff1114ee0c79cd478bd8ce5da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5f86a4cf46f35d4514c9c3a8f47dfa359d8a7fbf726636010296e6955a1f0\",\"dweb:/ipfs/QmPePQhXzCnF4kmTvjcQwwJQZuNPuvnEtkJKccrvRErG6B\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldErrors.sol\":{\"keccak256\":\"0x214a9f68915fb01baad4a4ca2c65545d26e481fc14b0ceadb9e4f378c4eec08a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://54b93db1cb7d5212d54fe776587d5ceddf56ab276cc72c969f28604bddb8b665\",\"dweb:/ipfs/QmSQJ82HRvBaknXWnwXWNYJj9EHuaiBCPe7W9C9uwyUNCW\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldKernel.sol\":{\"keccak256\":\"0x6e69614573bd17550f9d0f820a7ed9077678b4aa00c71bfca51be8346a06bcb8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b49527c2f3396ccc4cacce17ef4c2aae1dc4bf74b07d2127543918579d424210\",\"dweb:/ipfs/QmQV8a2CeAHXwqzLshBcvK9EwEayLemzJCsjHfrTxPYkH6\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldRegistrationSystem.sol\":{\"keccak256\":\"0x918e79655a2724496ffd1130925e2cfbd7711e7e2759d47d15fd174e7ddd1540\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9d2854beec35e9047b41d5669eaa0cb4840f0331f0232164f659b67c5377f3ad\",\"dweb:/ipfs/QmfWzr97XvWTHwrfZ2RF3QZq6QKvd5fvNydSKyQAFDuuDs\"]},\"src/codegen/world/IBattleForceSystem.sol\":{\"keccak256\":\"0x99957a0151894f7611439537e3e13a3cd1f0ae2341bd17173fd9d5d18e25486a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ecb3cbbe4824412fa22af7caed4a61de198da4611cce3a5e2d91393c9dbe0a0\",\"dweb:/ipfs/QmViuB8Lr2yQ9xnQhvpB8wJLUJqoSoHLRf1tkVF8oedzif\"]},\"src/codegen/world/IBattleInfoSystem.sol\":{\"keccak256\":\"0x701b6f952a844e62a90e0a5905a7c6d739aa192e91a1ea130408d8ebf017ecd4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d2671e2dca71aacbf3ab470193d367f8dcd48935462f458443ddb7144143b7db\",\"dweb:/ipfs/QmUT8NoXG64SUPbWmMBNXZbnc18EqDikZjYfCCSvaV5h91\"]},\"src/codegen/world/IBattlePrepareSystem.sol\":{\"keccak256\":\"0xf879dd7c48f63abb4fc274002ef1f072df1cf903f8b7af04760eab1c3976148b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://042882e2a02b030ffa8a881f40458ec6c6740b751a94a81231d7322b6b622a4d\",\"dweb:/ipfs/QmUXAdDwfJ5MtE4AufNAMbNWPeh8zQdrjXLiPKXcSojfVa\"]},\"src/codegen/world/IBattleSystem.sol\":{\"keccak256\":\"0x3a3900f49d7f50416838f03cb1d978a40cee79664919b01c61a1aa0d7cb758a6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bae16a85aa3f8c45adb539d28f422076958b434f3ff739059c1e63a5e0f70e9e\",\"dweb:/ipfs/QmW8mxoaKYu5vNozpBjNBGtNzMxfDfSMRavHnTv7qDv4pG\"]},\"src/codegen/world/IBoxSystem.sol\":{\"keccak256\":\"0x0a77ebe6ff0a0025b8e0c8f32ae08945c3215a1e993411d510fc09c73242e734\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da8b753ad86100470dc3888be59c7ac0e619a7c33ad447aaa31088a5c00512d3\",\"dweb:/ipfs/QmcAJ8gmG6KM8MLdekHagaGVhat51AuqD2TmgJdoDTbCHc\"]},\"src/codegen/world/IGMSystem.sol\":{\"keccak256\":\"0xc3e1a06c9e4f8fc4821da947bdd325e89a37b121af59f670ba553a29b02f35f6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6154d1c9a0e0494bc5e8940ae516d24a17bd8aa162b8532fa5afa34d3599d74\",\"dweb:/ipfs/QmSWwbvcLQNbWdgueSgV2XdV1bY1NVRDYwY4t2RnXDabrf\"]},\"src/codegen/world/IGameSystem.sol\":{\"keccak256\":\"0x19d283b6769cdf0837f5965a6eef8c811be44292b4cedcaa817c245bf303c476\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2dbd2a98c3eaf4d14e0b3b3adf43d5b79bd2b99f7579d047d673ddb8bd750651\",\"dweb:/ipfs/QmZBNwmU4N9AnUpHu959yzyJGakc9bW7qao6GSYFoJtuGf\"]},\"src/codegen/world/IMoveSystem.sol\":{\"keccak256\":\"0x575faa695b3b5e5fe7ad93a0ba629a43bac28e5fe3b155551b383ac3411ff6ef\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://16e8701115764ff051937aaffe7fb7bad7a5aee311ac787b936dfeaa160c2f9a\",\"dweb:/ipfs/QmSDS2wqBNfeQEPqiygXSjHjCNYbQWnJ17cbphsG4p8v8s\"]},\"src/codegen/world/IPlayerSystem.sol\":{\"keccak256\":\"0xabf6b1e495a2e6ea98ccb6508f9299ff89d128c71839ace40235ceabb941484f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f957b593598bc6b7712b630721b39707a10ae2f751b37d3adebe46aef0ff1a5\",\"dweb:/ipfs/QmWGwKzUQ8sy7koUM5APnGAGAsCHKdJEpTF8UUnTsupZZN\"]},\"src/codegen/world/IWorld.sol\":{\"keccak256\":\"0xc0ab5afcd25eb6ef00e9d480f87d80893c0bf3b1e8461bd28f3487bd29efb092\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://adae613b8fa01b76e2182c7a8a392f942bf36bb9a881e1c53ff07903bb5af07a\",\"dweb:/ipfs/QmdSih7Ust1BCqcuwXERF4fqnXJur2d2mLEj5LvJWZgfhr\"]},\"src/systems/Common.sol\":{\"keccak256\":\"0x94f44237e02a0392a6542a124571bf9bac94333cad8a9264bc5e97bf894d3a3c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ee4a62de88381b07854c231c6b90ab34445d949b8140043ec66cca50c4ea140b\",\"dweb:/ipfs/QmSSJyVtLSYiPcc4f8t3eCyJ8kUsh4weaMp6rG1H95TQBR\"]}},\"version\":1}", + "rawMetadata": "{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"AccessDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"functionSelector\",\"type\":\"bytes4\"}],\"name\":\"FunctionSelectorExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"functionSelector\",\"type\":\"bytes4\"}],\"name\":\"FunctionSelectorNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"InvalidSelector\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"module\",\"type\":\"string\"}],\"name\":\"ModuleAlreadyInstalled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"ResourceExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"}],\"name\":\"ResourceNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_DataIndexOverflow\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidDataLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidFieldNamesLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"StoreCore_InvalidKeyNamesLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StoreCore_NotDynamicField\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StoreCore_NotImplemented\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tableId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"tableIdString\",\"type\":\"string\"}],\"name\":\"StoreCore_TableAlreadyExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tableId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"tableIdString\",\"type\":\"string\"}],\"name\":\"StoreCore_TableNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"system\",\"type\":\"address\"}],\"name\":\"SystemExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"HelloWorld\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"}],\"name\":\"StoreDeleteRecord\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreEphemeralRecord\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreSetField\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StoreSetRecord\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_y\",\"type\":\"uint16\"}],\"name\":\"CreateBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetSeasonInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_root\",\"type\":\"bytes32\"}],\"name\":\"SetMapMerkleRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_end\",\"type\":\"uint256\"}],\"name\":\"SetSeasonInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"SetUserContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_targetAddress\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"internalType\":\"struct Position[]\",\"name\":\"positionList\",\"type\":\"tuple[]\"}],\"name\":\"battleInvitation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"funcSelectorAndArgs\",\"type\":\"bytes\"}],\"name\":\"call\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_buffHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"confirmBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"createLootBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"deleteRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dropLoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"emitEphemeralRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"forceEnd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getBattlePlayerHp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_oreAmount\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_treasureAmount\",\"type\":\"uint16\"}],\"name\":\"getCollections\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getField\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getFieldLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getFieldSlice\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"}],\"name\":\"getKeySchema\",\"outputs\":[{\"internalType\":\"Schema\",\"name\":\"schema\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getPosition\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"getRecord\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSenderPosition\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getUserInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"}],\"name\":\"getValueSchema\",\"outputs\":[{\"internalType\":\"Schema\",\"name\":\"schema\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"goHome\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"grantAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_player\",\"type\":\"address\"}],\"name\":\"initPlayerHp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initUserInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IModule\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IModule\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installRootModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"joinBattlefield\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"internalType\":\"struct Position[]\",\"name\":\"moveList\",\"type\":\"tuple[]\"}],\"name\":\"move\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"}],\"name\":\"openBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"byteLengthToPop\",\"type\":\"uint256\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"popFromField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"dataToPush\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"pushToField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"systemFunctionName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"systemFunctionArguments\",\"type\":\"string\"}],\"name\":\"registerFunctionSelector\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"worldFunctionSelector\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"namespace\",\"type\":\"bytes16\"}],\"name\":\"registerNamespace\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"bytes4\",\"name\":\"worldFunctionSelector\",\"type\":\"bytes4\"},{\"internalType\":\"bytes4\",\"name\":\"systemFunctionSelector\",\"type\":\"bytes4\"}],\"name\":\"registerRootFunctionSelector\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"contract IStoreHook\",\"name\":\"hook\",\"type\":\"address\"}],\"name\":\"registerStoreHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"contract System\",\"name\":\"system\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"publicAccess\",\"type\":\"bool\"}],\"name\":\"registerSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"contract ISystemHook\",\"name\":\"hook\",\"type\":\"address\"}],\"name\":\"registerSystemHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"Schema\",\"name\":\"keySchema\",\"type\":\"bytes32\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"},{\"internalType\":\"string[]\",\"name\":\"keyNames\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"fieldNames\",\"type\":\"string[]\"}],\"name\":\"registerTable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_action\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_arg\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_nonce\",\"type\":\"bytes32\"}],\"name\":\"revealBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_boxId\",\"type\":\"uint256\"}],\"name\":\"revealBox\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_battleId\",\"type\":\"uint256\"}],\"name\":\"revealWinner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceSelector\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"revokeAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_userTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_lootTokenId\",\"type\":\"uint256\"}],\"name\":\"selectBothNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"selectLootNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"selectUserNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"setField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"}],\"name\":\"setInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"setRecord\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"settleBattle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"takeLoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"x\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"y\",\"type\":\"uint16\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockUserLocation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"table\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"key\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint8\",\"name\":\"schemaIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"startByteIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dataToSet\",\"type\":\"bytes\"},{\"internalType\":\"Schema\",\"name\":\"valueSchema\",\"type\":\"bytes32\"}],\"name\":\"updateInField\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"call(bytes32,bytes)\":{\"notice\":\"Call the system at the given resource selector (namespace + name) If the system is not public, the caller must have access to the namespace or name.\"},\"installRootModule(address,bytes)\":{\"notice\":\"Install the given root module in the World. Requires the caller to own the root namespace. The module is delegatecalled and installed in the root namespace.\"}},\"notice\":\"The IWorld interface includes all systems dynamically added to the World during the deploy process.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/codegen/world/IWorld.sol\":\"IWorld\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@codegen/=src/codegen/\",\":@latticexyz/=node_modules/@latticexyz/\",\":@library/=src/systems/library/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@src/=src/\",\":@systems/=src/systems/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol\":{\"keccak256\":\"0x7e86f39f7e0d29342d79144af3c48a3f9f103aca38603318e999483f33cbd966\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a7956d2a9b27689d615ae66d0e85f96c86509274fd8f1dc4c4f8dbd204936cea\",\"dweb:/ipfs/QmTgn4tdtbcDEoVcYcgQzS1u8epSbFnefWc9Nbt9eBkjbT\"]},\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0x52bd79fd98b47bddbc4ccae178b9258cf308c15d41ecbbce57ee46beb17e6787\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0a48beb7750a813f1b351299de1b78287e9b8e41e4a35762aaa11fb28679c2d8\",\"dweb:/ipfs/Qmcnm5Tb6mUcSjC22z4Ke6DBV1rkYJmZcU1w442QpgTbff\"]},\"node_modules/@latticexyz/store/src/IStore.sol\":{\"keccak256\":\"0x0a2728e859ae0ade6b6d425ac8656c83a4e665aa8192a2a4397948869bdc2eea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d06c0fa440f8572adadd3c743791bdb8ffc4468d7cc475e03406acd75be38145\",\"dweb:/ipfs/QmezfepEFeDECZ3kZAwW2p3xuVmmJUbFRTDPnBPH6TAbdB\"]},\"node_modules/@latticexyz/store/src/IStoreErrors.sol\":{\"keccak256\":\"0x9db1089c5ae5ad585fdbc87f0ec14bdb82ec5098ebd27b67b1c6111853b72749\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fa6b81aa9d63d9bcf5e9a5b82b03df8c135519d10fa69d232f1ae658ed780b71\",\"dweb:/ipfs/QmNnf8KEDtMYofpT7iDd89chmw7zpvuZGVDhzjZXarQHE2\"]},\"node_modules/@latticexyz/store/src/Memory.sol\":{\"keccak256\":\"0x1edc427b0d26609d1ce739b82b78fc03ae9f7463c3a81e8f8c608516ca7b0089\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://41cfaaf85af74c83b20ef308daa69ac65101ffbb2690d6888a06cbb55bf37146\",\"dweb:/ipfs/QmQp4Sf98TfifmsSNU5nVeG7UABWobaUf5oVR38Dh1kpw1\"]},\"node_modules/@latticexyz/store/src/PackedCounter.sol\":{\"keccak256\":\"0x5b653faa6c1d6732f6d5e5feaff282bbea099d8d01c8f6d54b4f7732f5e2a8b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://57e75c7aac764d3194a196daeea17a78f0bdc1471aa0c0fb5ba93b7f41ad2c01\",\"dweb:/ipfs/QmQHnzXtDLc9eryiXH1DopezvbQgnHChbxQS1ZNpscqHuw\"]},\"node_modules/@latticexyz/store/src/Schema.sol\":{\"keccak256\":\"0xb5952acdf7eb89759e1a09a698935c23b8f3cadad2dbb2c5629fc265189c9337\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b841654b762ac86a139e0bc5df49334ab5133f61e8fab59a66fbd57f9b6607e7\",\"dweb:/ipfs/Qmdn4DRGcU843BdWDWTk4n9aP79c4ybB9X92ejQxKvCYid\"]},\"node_modules/@latticexyz/store/src/Slice.sol\":{\"keccak256\":\"0x617c3624e15cb755857ac172a49ae11e0db688984c4d16a8de8e3c172a13ef7d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://71916605d89da3be4ac1b434e877dfac95dadea8b61b720a5204efac1ca94487\",\"dweb:/ipfs/QmTeZJRJ8Ev8LFQSCHuc6tYG7Vz6VtkBozbWzZgPWSXtcP\"]},\"node_modules/@latticexyz/store/src/Storage.sol\":{\"keccak256\":\"0xd3319f1bf70094e2a436419a7ed9cb4ea6a46efe2df3ccf64fa1b5b4107b54cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ff7173aa1002730caade98fa7c8b8b8a7ad34b8f40dd405abae28269124aaf51\",\"dweb:/ipfs/QmdRrsS9yf27xHdgRuNwX7JoqttzyKmVGWQSnZeTmiMksm\"]},\"node_modules/@latticexyz/store/src/StoreCore.sol\":{\"keccak256\":\"0x0b65c36067dfff4ad8168dc2006ff9e53cde2469e4e21eccde010cff9ea78b2b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a5af9eadfefe1b54a13e402161783d697160bfe658e33803a11f55e9fa6b494\",\"dweb:/ipfs/QmbvEYmiLbSC1jpu65R93QkiB6DpsGHhzyauH9XyQdtfC9\"]},\"node_modules/@latticexyz/store/src/StoreSwitch.sol\":{\"keccak256\":\"0x853651c0be864e7f4f81dbbba4536bb159a5cb77c0b5ceb977a633321b1ff3e4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ec9b809cc7016225fee4781db22a360d65b4cddcb44a6ae315937b471f46363c\",\"dweb:/ipfs/QmTDUoqqXppFNvGnVUUZPpz1LNECYqX6bX341vUVwpYSDL\"]},\"node_modules/@latticexyz/store/src/Utils.sol\":{\"keccak256\":\"0x50a3bf74a64f0846c3212b599d2ebd6f220ae562a7ddd01584398d05c5206578\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4c44640063d30f054c20dc701b92cbefe64ef4c2cdde686746de4a11c76dfa5c\",\"dweb:/ipfs/QmawdG9zbqoMTCKGJUYfHNuBqeBgdKCdy18BftGd4c9hJA\"]},\"node_modules/@latticexyz/store/src/codegen/Tables.sol\":{\"keccak256\":\"0x567dac75ee912726ad29744f9ba7ef527e8148c213d62442c79010b406710273\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f744bcbd592a8ae5bfe8f99f8952665c44a61413184859080df1bc5947880979\",\"dweb:/ipfs/QmcRG7yXyEgfL8pSQXqjYNZ6G1DUdJkkDMRYCagMZLYUXT\"]},\"node_modules/@latticexyz/store/src/codegen/Types.sol\":{\"keccak256\":\"0x23ba2a20a16a4265f122c5e08e5b9881fd827f2cd7a92427740ee1eb3c4e7628\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://01236b9e7ffec2b6468e4b7dbc418453c2e5d73eaa14ebf4f5056619f46ad6b7\",\"dweb:/ipfs/QmSHA9efL43SUYbFtgCGv9ucZPD9ULi8o8ENpURAvDGhdB\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Callbacks.sol\":{\"keccak256\":\"0x8da9b947da2ce09f06aa0e8ef03c459f9a209de4546c1b48ff856306958d06bf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ea33ce2a5cd10189c223a5553ccb8f07707328748f5ebf15ead50c1eeb72e47\",\"dweb:/ipfs/QmcPvNJ1992qaz278co4Yhjhr6eZCaY6PchqMHPMiuZRSj\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Hooks.sol\":{\"keccak256\":\"0xcdf71af7def6c165fdf07ae749baaf82717c1869a5c26e4cb8241c89fe82a6ca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d5cf5cdc0ce87d3dcc9d71997410ca0bae5fdedeb71f4bf1b64363d83bc4e7fe\",\"dweb:/ipfs/QmPYAVErLNYZsF1iySgYvjUq3PuoXEW5MXyKDDQVuvM8fq\"]},\"node_modules/@latticexyz/store/src/codegen/tables/KeyEncoding.sol\":{\"keccak256\":\"0xdb8111fcf15adc44e70ecffe8147d831681bbd02f903e4018598802e8b40d16c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9a183262de5687b2d91f607c6d18b5b116d792bc3c45c09a92231cb6c9067df6\",\"dweb:/ipfs/QmNdwHZsVBRuMQjtntxuMbtYv9bXDZMepvhqge6h4rU6Nc\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Mixed.sol\":{\"keccak256\":\"0x1df0bb93269b94e8d5ef7e396e4d2cfb6aba795194799a5c7fc4b8d494a1fc16\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dffc44bb6386a0fdfba116088a0dc66901e705c9079cd24ce613babb981a587f\",\"dweb:/ipfs/QmapF8fhrjG9uei97ANRdoMaxpv6tcA6nBts51bW8XVY8C\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Tables.sol\":{\"keccak256\":\"0x0fc67f4823698339c9316a8dccd99cf11cd2f189d961ddd6fe5e0ea766e0e02a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8937de034e2170d0eb9df2dfdb16fd13cc1826870831dfd071f2e85fffc84283\",\"dweb:/ipfs/QmVgfTWnBSreNJEd17bTt1GLrMGZ74DvGfzy7JSYiUMuhx\"]},\"node_modules/@latticexyz/store/src/codegen/tables/Vector2.sol\":{\"keccak256\":\"0x9a0205729b68a920b554a9b5c3407f07fee5717aa5e6d9541d10a837f2ee9254\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5c873ef09df14a045a0ba9371ada2786460996d8279496f674eb0a530807f065\",\"dweb:/ipfs/QmaM1EhCyTt2CGEktTgKFfpZZNdarUXQWTNamcwpqL7gCC\"]},\"node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol\":{\"keccak256\":\"0x63fa0cb7b7a2c225d17a3d22c3ba81e543da1388495c8747dfb3e129a3787d66\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a0f7bfe7f001bb00d95ad493e12b5220f4fb7d175161c747464e2d59c0a93eb8\",\"dweb:/ipfs/QmZeDyzinRWnfoQme8R9mbMpCu9KiUw1AzjPb1SQzNV5oC\"]},\"node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol\":{\"keccak256\":\"0xbf4ea9fa659ffb1581d417de93082ec9b4586bf7aeda078c2649bd382f0c54dd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6860d8f58c2e8f0dde310a1b1e94d2aa355ad060f3797708fcc978be304faf1e\",\"dweb:/ipfs/QmeypWegTQ89bUHab3yptatH6CA8xirJbCMGHqZ7WcXnzA\"]},\"node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol\":{\"keccak256\":\"0x844f8ffa93563ff87cb959947879868a79c53aa0c034f2fa9beba4b571a8d304\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1686477bec31cff0460212420bf69e02be62288039a20f0d76d33dbb98615755\",\"dweb:/ipfs/QmWLijVaJk7FKTsBq7Cc2YuJom1ioRaGLX69NQybN9dNBR\"]},\"node_modules/@latticexyz/world/src/System.sol\":{\"keccak256\":\"0xf1342c8461adb4c5821c1ca106a67ba34402b36265fa63bf766eed937bd92bf9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ea41f96a27a26d56d62824e007b3b0234d44fcd94361e5c8f40fdb334cbf444b\",\"dweb:/ipfs/QmRfj4iS5Lu9V4e47wsPQy4op1qQ6hqaJpERLB5EyzqW38\"]},\"node_modules/@latticexyz/world/src/WorldContext.sol\":{\"keccak256\":\"0x2f2c8c55627287b9519ef57dae24c72bb82ec5abbd33ab9142bcdd931e62c1f8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d78c65acf3452474b023978dd13491f58ce4b98b3c2b87a1e0e6827d605d791a\",\"dweb:/ipfs/QmVHDrC2Jp4tp1nWLuzDVK5D8VLBP52w2pYVLtfkCKpLiC\"]},\"node_modules/@latticexyz/world/src/interfaces/IAccessManagementSystem.sol\":{\"keccak256\":\"0xb98e1732343d23c9c2d4bc59643da1798bf651b7c272cecd7b74e3d37ac7363c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8e81c35c04c7deb9cbbea43c93d50bd685dd252eea3e4e2d25f0a29f8dcf4252\",\"dweb:/ipfs/QmZDUvrsFdTmBq5aTgP976Rbd3Yt1CHLpLeaUJQEVW4jCC\"]},\"node_modules/@latticexyz/world/src/interfaces/IBaseWorld.sol\":{\"keccak256\":\"0x9d15d5ac7512631590eda71cb19937d10a9b253d8a9b61bec54e7b0471b3b785\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://09b18f736784a0f38d5d6b62733fba106ecb84fc8d1b2390236ab8b162511e38\",\"dweb:/ipfs/QmPdvnPupSTBv8Vi2fRFe7A9NYfVuf2LtbdS1DiWXjHf9D\"]},\"node_modules/@latticexyz/world/src/interfaces/ICoreSystem.sol\":{\"keccak256\":\"0x21e72828243fbf26d21594a423e9a32e86df07d3e435ea216a27c326546df106\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8ac8c4b2cdeddaf458e562e3f236a5c798664443eca1658038540d5585ee090\",\"dweb:/ipfs/QmPbh7JmBcxqJV4YP78zVXpsmCSGnSN6g7M27MTkyUjRgG\"]},\"node_modules/@latticexyz/world/src/interfaces/IModule.sol\":{\"keccak256\":\"0x0c9f5a12f8b27ae6f02b6ca7ccfd7ab1de349e5c4773f99cfab1fd4721bc4a06\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cafb66fbd4b3587121a2f2ff6fc5e4c32796e6469719899e181c3abac1479178\",\"dweb:/ipfs/QmT6GKskhqmLadhuNVVbgDEgJ92jMsCdyLcfrSaiVQeZYf\"]},\"node_modules/@latticexyz/world/src/interfaces/IModuleInstallationSystem.sol\":{\"keccak256\":\"0x77b05ecc98755a3b48f0296af3146486890d140eff7b1cc6e95be95a6aab80c0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://684155a7539c00796d2e00c3d67dc8d9c5e707e3fac37089df84a346607efdc2\",\"dweb:/ipfs/QmeAPVzvTmaiHBtvFVw92XNmWmQ63RqWAgzNqBGRYwyzkz\"]},\"node_modules/@latticexyz/world/src/interfaces/ISystemHook.sol\":{\"keccak256\":\"0x1dc2adc81b6e82cd5c1040f5885b2b762647166ff1114ee0c79cd478bd8ce5da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://77e5f86a4cf46f35d4514c9c3a8f47dfa359d8a7fbf726636010296e6955a1f0\",\"dweb:/ipfs/QmPePQhXzCnF4kmTvjcQwwJQZuNPuvnEtkJKccrvRErG6B\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldErrors.sol\":{\"keccak256\":\"0x214a9f68915fb01baad4a4ca2c65545d26e481fc14b0ceadb9e4f378c4eec08a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://54b93db1cb7d5212d54fe776587d5ceddf56ab276cc72c969f28604bddb8b665\",\"dweb:/ipfs/QmSQJ82HRvBaknXWnwXWNYJj9EHuaiBCPe7W9C9uwyUNCW\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldKernel.sol\":{\"keccak256\":\"0x6e69614573bd17550f9d0f820a7ed9077678b4aa00c71bfca51be8346a06bcb8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b49527c2f3396ccc4cacce17ef4c2aae1dc4bf74b07d2127543918579d424210\",\"dweb:/ipfs/QmQV8a2CeAHXwqzLshBcvK9EwEayLemzJCsjHfrTxPYkH6\"]},\"node_modules/@latticexyz/world/src/interfaces/IWorldRegistrationSystem.sol\":{\"keccak256\":\"0x918e79655a2724496ffd1130925e2cfbd7711e7e2759d47d15fd174e7ddd1540\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9d2854beec35e9047b41d5669eaa0cb4840f0331f0232164f659b67c5377f3ad\",\"dweb:/ipfs/QmfWzr97XvWTHwrfZ2RF3QZq6QKvd5fvNydSKyQAFDuuDs\"]},\"src/codegen/world/IBattleForceSystem.sol\":{\"keccak256\":\"0x99957a0151894f7611439537e3e13a3cd1f0ae2341bd17173fd9d5d18e25486a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ecb3cbbe4824412fa22af7caed4a61de198da4611cce3a5e2d91393c9dbe0a0\",\"dweb:/ipfs/QmViuB8Lr2yQ9xnQhvpB8wJLUJqoSoHLRf1tkVF8oedzif\"]},\"src/codegen/world/IBattleInfoSystem.sol\":{\"keccak256\":\"0x99558a0ef33e4b84354fcd8fd6e0db1260da9ede0e8f5f0d6545774fad91cc0c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3903ffa69ba2b60a2b9f4928d375dd5a7d11c0d9f971a7d5f63a67d87322cffb\",\"dweb:/ipfs/QmduAGo4xsU4A6Xd7cpFUQJMkYMmcyeDWoT8Ur5ki2Tz1k\"]},\"src/codegen/world/IBattlePrepareSystem.sol\":{\"keccak256\":\"0xf879dd7c48f63abb4fc274002ef1f072df1cf903f8b7af04760eab1c3976148b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://042882e2a02b030ffa8a881f40458ec6c6740b751a94a81231d7322b6b622a4d\",\"dweb:/ipfs/QmUXAdDwfJ5MtE4AufNAMbNWPeh8zQdrjXLiPKXcSojfVa\"]},\"src/codegen/world/IBattleSystem.sol\":{\"keccak256\":\"0x3a3900f49d7f50416838f03cb1d978a40cee79664919b01c61a1aa0d7cb758a6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bae16a85aa3f8c45adb539d28f422076958b434f3ff739059c1e63a5e0f70e9e\",\"dweb:/ipfs/QmW8mxoaKYu5vNozpBjNBGtNzMxfDfSMRavHnTv7qDv4pG\"]},\"src/codegen/world/IBoxSystem.sol\":{\"keccak256\":\"0x0a77ebe6ff0a0025b8e0c8f32ae08945c3215a1e993411d510fc09c73242e734\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da8b753ad86100470dc3888be59c7ac0e619a7c33ad447aaa31088a5c00512d3\",\"dweb:/ipfs/QmcAJ8gmG6KM8MLdekHagaGVhat51AuqD2TmgJdoDTbCHc\"]},\"src/codegen/world/IGMSystem.sol\":{\"keccak256\":\"0xc3e1a06c9e4f8fc4821da947bdd325e89a37b121af59f670ba553a29b02f35f6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6154d1c9a0e0494bc5e8940ae516d24a17bd8aa162b8532fa5afa34d3599d74\",\"dweb:/ipfs/QmSWwbvcLQNbWdgueSgV2XdV1bY1NVRDYwY4t2RnXDabrf\"]},\"src/codegen/world/IGameSystem.sol\":{\"keccak256\":\"0x19d283b6769cdf0837f5965a6eef8c811be44292b4cedcaa817c245bf303c476\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2dbd2a98c3eaf4d14e0b3b3adf43d5b79bd2b99f7579d047d673ddb8bd750651\",\"dweb:/ipfs/QmZBNwmU4N9AnUpHu959yzyJGakc9bW7qao6GSYFoJtuGf\"]},\"src/codegen/world/IMoveSystem.sol\":{\"keccak256\":\"0x575faa695b3b5e5fe7ad93a0ba629a43bac28e5fe3b155551b383ac3411ff6ef\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://16e8701115764ff051937aaffe7fb7bad7a5aee311ac787b936dfeaa160c2f9a\",\"dweb:/ipfs/QmSDS2wqBNfeQEPqiygXSjHjCNYbQWnJ17cbphsG4p8v8s\"]},\"src/codegen/world/IPlayerSystem.sol\":{\"keccak256\":\"0xabf6b1e495a2e6ea98ccb6508f9299ff89d128c71839ace40235ceabb941484f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f957b593598bc6b7712b630721b39707a10ae2f751b37d3adebe46aef0ff1a5\",\"dweb:/ipfs/QmWGwKzUQ8sy7koUM5APnGAGAsCHKdJEpTF8UUnTsupZZN\"]},\"src/codegen/world/IWorld.sol\":{\"keccak256\":\"0xc0ab5afcd25eb6ef00e9d480f87d80893c0bf3b1e8461bd28f3487bd29efb092\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://adae613b8fa01b76e2182c7a8a392f942bf36bb9a881e1c53ff07903bb5af07a\",\"dweb:/ipfs/QmdSih7Ust1BCqcuwXERF4fqnXJur2d2mLEj5LvJWZgfhr\"]},\"src/systems/Common.sol\":{\"keccak256\":\"0x25b1b37460f5741acb0549e81117b148505f656a8f93a0aff47720167e92e4e0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3c0ecd5e7ac72fb5f98f794ddb82bba865cf7fd72d95a19e7e6a51f6dd214983\",\"dweb:/ipfs/QmYPRFyZN6eWs9xCnU9k5Yz9vErMdHPyxBKP7UXwAsJ6gc\"]}},\"version\":1}", "metadata": { "compiler": { "version": "0.8.13+commit.abaa5c0e" @@ -2689,28 +2665,6 @@ "type": "function", "name": "pushToField" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_targetHP", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_percent", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_player", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function", - "name": "raisePlayerHp" - }, { "inputs": [ { @@ -3455,10 +3409,10 @@ "license": "MIT" }, "src/codegen/world/IBattleInfoSystem.sol": { - "keccak256": "0x701b6f952a844e62a90e0a5905a7c6d739aa192e91a1ea130408d8ebf017ecd4", + "keccak256": "0x99558a0ef33e4b84354fcd8fd6e0db1260da9ede0e8f5f0d6545774fad91cc0c", "urls": [ - "bzz-raw://d2671e2dca71aacbf3ab470193d367f8dcd48935462f458443ddb7144143b7db", - "dweb:/ipfs/QmUT8NoXG64SUPbWmMBNXZbnc18EqDikZjYfCCSvaV5h91" + "bzz-raw://3903ffa69ba2b60a2b9f4928d375dd5a7d11c0d9f971a7d5f63a67d87322cffb", + "dweb:/ipfs/QmduAGo4xsU4A6Xd7cpFUQJMkYMmcyeDWoT8Ur5ki2Tz1k" ], "license": "MIT" }, @@ -3527,10 +3481,10 @@ "license": "MIT" }, "src/systems/Common.sol": { - "keccak256": "0x94f44237e02a0392a6542a124571bf9bac94333cad8a9264bc5e97bf894d3a3c", + "keccak256": "0x25b1b37460f5741acb0549e81117b148505f656a8f93a0aff47720167e92e4e0", "urls": [ - "bzz-raw://ee4a62de88381b07854c231c6b90ab34445d949b8140043ec66cca50c4ea140b", - "dweb:/ipfs/QmSSJyVtLSYiPcc4f8t3eCyJ8kUsh4weaMp6rG1H95TQBR" + "bzz-raw://3c0ecd5e7ac72fb5f98f794ddb82bba865cf7fd72d95a19e7e6a51f6dd214983", + "dweb:/ipfs/QmYPRFyZN6eWs9xCnU9k5Yz9vErMdHPyxBKP7UXwAsJ6gc" ], "license": "MIT" } @@ -3539,7 +3493,7 @@ }, "ast": { "absolutePath": "src/codegen/world/IWorld.sol", - "id": 118281, + "id": 118272, "exportedSymbols": { "IBaseWorld": [ 71348 @@ -3548,38 +3502,38 @@ 117993 ], "IBattleInfoSystem": [ - 118014 + 118005 ], "IBattlePrepareSystem": [ - 118048 + 118039 ], "IBattleSystem": [ - 118067 + 118058 ], "IBoxSystem": [ - 118089 + 118080 ], "IGMSystem": [ - 118125 + 118116 ], "IGameSystem": [ - 118140 + 118131 ], "IMoveSystem": [ - 118155 + 118146 ], "IPlayerSystem": [ - 118236 + 118227 ], "IWorld": [ - 118280 + 118271 ] }, "nodeType": "SourceUnit", "src": "32:952:168", "nodes": [ { - "id": 118238, + "id": 118229, "nodeType": "PragmaDirective", "src": "32:24:168", "nodes": [], @@ -3591,19 +3545,19 @@ ] }, { - "id": 118240, + "id": 118231, "nodeType": "ImportDirective", "src": "107:77:168", "nodes": [], "absolutePath": "node_modules/@latticexyz/world/src/interfaces/IBaseWorld.sol", "file": "@latticexyz/world/src/interfaces/IBaseWorld.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, + "scope": 118272, "sourceUnit": 71349, "symbolAliases": [ { "foreign": { - "id": 118239, + "id": 118230, "name": "IBaseWorld", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -3617,19 +3571,19 @@ "unitAlias": "" }, { - "id": 118242, + "id": 118233, "nodeType": "ImportDirective", "src": "186:62:168", "nodes": [], "absolutePath": "src/codegen/world/IBattleForceSystem.sol", "file": "./IBattleForceSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, + "scope": 118272, "sourceUnit": 117994, "symbolAliases": [ { "foreign": { - "id": 118241, + "id": 118232, "name": "IBattleForceSystem", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -3643,23 +3597,23 @@ "unitAlias": "" }, { - "id": 118244, + "id": 118235, "nodeType": "ImportDirective", "src": "249:60:168", "nodes": [], "absolutePath": "src/codegen/world/IBattleInfoSystem.sol", "file": "./IBattleInfoSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118015, + "scope": 118272, + "sourceUnit": 118006, "symbolAliases": [ { "foreign": { - "id": 118243, + "id": 118234, "name": "IBattleInfoSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118014, + "referencedDeclaration": 118005, "src": "258:17:168", "typeDescriptions": {} }, @@ -3669,23 +3623,23 @@ "unitAlias": "" }, { - "id": 118246, + "id": 118237, "nodeType": "ImportDirective", "src": "310:66:168", "nodes": [], "absolutePath": "src/codegen/world/IBattlePrepareSystem.sol", "file": "./IBattlePrepareSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118049, + "scope": 118272, + "sourceUnit": 118040, "symbolAliases": [ { "foreign": { - "id": 118245, + "id": 118236, "name": "IBattlePrepareSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118048, + "referencedDeclaration": 118039, "src": "319:20:168", "typeDescriptions": {} }, @@ -3695,23 +3649,23 @@ "unitAlias": "" }, { - "id": 118248, + "id": 118239, "nodeType": "ImportDirective", "src": "377:52:168", "nodes": [], "absolutePath": "src/codegen/world/IBattleSystem.sol", "file": "./IBattleSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118068, + "scope": 118272, + "sourceUnit": 118059, "symbolAliases": [ { "foreign": { - "id": 118247, + "id": 118238, "name": "IBattleSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118067, + "referencedDeclaration": 118058, "src": "386:13:168", "typeDescriptions": {} }, @@ -3721,23 +3675,23 @@ "unitAlias": "" }, { - "id": 118250, + "id": 118241, "nodeType": "ImportDirective", "src": "430:46:168", "nodes": [], "absolutePath": "src/codegen/world/IBoxSystem.sol", "file": "./IBoxSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118090, + "scope": 118272, + "sourceUnit": 118081, "symbolAliases": [ { "foreign": { - "id": 118249, + "id": 118240, "name": "IBoxSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118089, + "referencedDeclaration": 118080, "src": "439:10:168", "typeDescriptions": {} }, @@ -3747,23 +3701,23 @@ "unitAlias": "" }, { - "id": 118252, + "id": 118243, "nodeType": "ImportDirective", "src": "477:48:168", "nodes": [], "absolutePath": "src/codegen/world/IGameSystem.sol", "file": "./IGameSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118141, + "scope": 118272, + "sourceUnit": 118132, "symbolAliases": [ { "foreign": { - "id": 118251, + "id": 118242, "name": "IGameSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118140, + "referencedDeclaration": 118131, "src": "486:11:168", "typeDescriptions": {} }, @@ -3773,23 +3727,23 @@ "unitAlias": "" }, { - "id": 118254, + "id": 118245, "nodeType": "ImportDirective", "src": "526:44:168", "nodes": [], "absolutePath": "src/codegen/world/IGMSystem.sol", "file": "./IGMSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118126, + "scope": 118272, + "sourceUnit": 118117, "symbolAliases": [ { "foreign": { - "id": 118253, + "id": 118244, "name": "IGMSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118125, + "referencedDeclaration": 118116, "src": "535:9:168", "typeDescriptions": {} }, @@ -3799,23 +3753,23 @@ "unitAlias": "" }, { - "id": 118256, + "id": 118247, "nodeType": "ImportDirective", "src": "571:48:168", "nodes": [], "absolutePath": "src/codegen/world/IMoveSystem.sol", "file": "./IMoveSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118156, + "scope": 118272, + "sourceUnit": 118147, "symbolAliases": [ { "foreign": { - "id": 118255, + "id": 118246, "name": "IMoveSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118155, + "referencedDeclaration": 118146, "src": "580:11:168", "typeDescriptions": {} }, @@ -3825,23 +3779,23 @@ "unitAlias": "" }, { - "id": 118258, + "id": 118249, "nodeType": "ImportDirective", "src": "620:52:168", "nodes": [], "absolutePath": "src/codegen/world/IPlayerSystem.sol", "file": "./IPlayerSystem.sol", "nameLocation": "-1:-1:-1", - "scope": 118281, - "sourceUnit": 118237, + "scope": 118272, + "sourceUnit": 118228, "symbolAliases": [ { "foreign": { - "id": 118257, + "id": 118248, "name": "IPlayerSystem", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118236, + "referencedDeclaration": 118227, "src": "629:13:168", "typeDescriptions": {} }, @@ -3851,7 +3805,7 @@ "unitAlias": "" }, { - "id": 118280, + "id": 118271, "nodeType": "ContractDefinition", "src": "788:195:168", "nodes": [], @@ -3859,121 +3813,121 @@ "baseContracts": [ { "baseName": { - "id": 118260, + "id": 118251, "name": "IBaseWorld", "nodeType": "IdentifierPath", "referencedDeclaration": 71348, "src": "810:10:168" }, - "id": 118261, + "id": 118252, "nodeType": "InheritanceSpecifier", "src": "810:10:168" }, { "baseName": { - "id": 118262, + "id": 118253, "name": "IBattleForceSystem", "nodeType": "IdentifierPath", "referencedDeclaration": 117993, "src": "824:18:168" }, - "id": 118263, + "id": 118254, "nodeType": "InheritanceSpecifier", "src": "824:18:168" }, { "baseName": { - "id": 118264, + "id": 118255, "name": "IBattleInfoSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118014, + "referencedDeclaration": 118005, "src": "846:17:168" }, - "id": 118265, + "id": 118256, "nodeType": "InheritanceSpecifier", "src": "846:17:168" }, { "baseName": { - "id": 118266, + "id": 118257, "name": "IBattlePrepareSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118048, + "referencedDeclaration": 118039, "src": "867:20:168" }, - "id": 118267, + "id": 118258, "nodeType": "InheritanceSpecifier", "src": "867:20:168" }, { "baseName": { - "id": 118268, + "id": 118259, "name": "IBattleSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118067, + "referencedDeclaration": 118058, "src": "891:13:168" }, - "id": 118269, + "id": 118260, "nodeType": "InheritanceSpecifier", "src": "891:13:168" }, { "baseName": { - "id": 118270, + "id": 118261, "name": "IBoxSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118089, + "referencedDeclaration": 118080, "src": "908:10:168" }, - "id": 118271, + "id": 118262, "nodeType": "InheritanceSpecifier", "src": "908:10:168" }, { "baseName": { - "id": 118272, + "id": 118263, "name": "IGameSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118140, + "referencedDeclaration": 118131, "src": "922:11:168" }, - "id": 118273, + "id": 118264, "nodeType": "InheritanceSpecifier", "src": "922:11:168" }, { "baseName": { - "id": 118274, + "id": 118265, "name": "IGMSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118125, + "referencedDeclaration": 118116, "src": "937:9:168" }, - "id": 118275, + "id": 118266, "nodeType": "InheritanceSpecifier", "src": "937:9:168" }, { "baseName": { - "id": 118276, + "id": 118267, "name": "IMoveSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118155, + "referencedDeclaration": 118146, "src": "950:11:168" }, - "id": 118277, + "id": 118268, "nodeType": "InheritanceSpecifier", "src": "950:11:168" }, { "baseName": { - "id": 118278, + "id": 118269, "name": "IPlayerSystem", "nodeType": "IdentifierPath", - "referencedDeclaration": 118236, + "referencedDeclaration": 118227, "src": "965:13:168" }, - "id": 118279, + "id": 118270, "nodeType": "InheritanceSpecifier", "src": "965:13:168" } @@ -3982,34 +3936,34 @@ "contractDependencies": [], "contractKind": "interface", "documentation": { - "id": 118259, + "id": 118250, "nodeType": "StructuredDocumentation", "src": "674:113:168", "text": " The IWorld interface includes all systems dynamically added to the World\n during the deploy process." }, "fullyImplemented": false, "linearizedBaseContracts": [ - 118280, - 118236, - 118155, - 118125, - 118140, - 118089, - 118067, - 118048, - 118014, + 118271, + 118227, + 118146, + 118116, + 118131, + 118080, + 118058, + 118039, + 118005, 117993, 71348, - 129459, - 129368, - 129352, - 129355, - 129407, - 173117, - 129397, - 129386, + 129479, + 129388, + 129372, + 129375, + 129427, + 173137, + 129417, + 129406, 64435, - 126625, + 126645, 64393, 64426, 64399, @@ -4018,24 +3972,24 @@ ], "name": "IWorld", "nameLocation": "798:6:168", - "scope": 118281, + "scope": 118272, "usedErrors": [ - 126590, - 126596, - 126598, - 126600, - 126606, - 126612, + 126610, + 126616, 126618, - 126624, - 173086, - 173090, - 173096, - 173100, - 173104, - 173108, - 173112, - 173116 + 126620, + 126626, + 126632, + 126638, + 126644, + 173106, + 173110, + 173116, + 173120, + 173124, + 173128, + 173132, + 173136 ] } ], diff --git a/packages/contracts/out/Loot.sol/MLoot.json b/packages/contracts/out/Loot.sol/MLoot.json index 575f5174..18920c9e 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": 119322, + "id": 119313, "exportedSymbols": { "Address": [ - 130996 + 131016 ], "Base64": [ - 118338 + 118329 ], "Context": [ - 131018 + 131038 ], "ERC165": [ - 131042 + 131062 ], "ERC721": [ 72425 ], "IERC165": [ - 173323 + 173343 ], "IERC20": [ 71498 ], "IERC721": [ - 130621 + 130641 ], "IERC721Metadata": [ - 130666 + 130686 ], "IERC721Receiver": [ - 130639 + 130659 ], "MLoot": [ - 119321 + 119312 ], "MRandom": [ - 119769 + 119760 ], "Math": [ - 131908 + 131928 ], "SignedMath": [ - 132013 + 132033 ], "Strings": [ 72654 ], "Suit": [ - 119572 + 119563 ] }, "nodeType": "SourceUnit", "src": "32:8695:170", "nodes": [ { - "id": 118340, + "id": 118331, "nodeType": "PragmaDirective", "src": "32:24:170", "nodes": [], @@ -1700,103 +1700,103 @@ ] }, { - "id": 118341, + "id": 118332, "nodeType": "ImportDirective", "src": "57:24:170", "nodes": [], "absolutePath": "src/other/LootSuit.sol", "file": "./LootSuit.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, - "sourceUnit": 119573, + "scope": 119313, + "sourceUnit": 119564, "symbolAliases": [], "unitAlias": "" }, { - "id": 118342, + "id": 118333, "nodeType": "ImportDirective", "src": "82:22:170", "nodes": [], "absolutePath": "src/other/Base64.sol", "file": "./Base64.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, - "sourceUnit": 118339, + "scope": 119313, + "sourceUnit": 118330, "symbolAliases": [], "unitAlias": "" }, { - "id": 118343, + "id": 118334, "nodeType": "ImportDirective", "src": "105:23:170", "nodes": [], "absolutePath": "src/other/MRandom.sol", "file": "./MRandom.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, - "sourceUnit": 119770, + "scope": 119313, + "sourceUnit": 119761, "symbolAliases": [], "unitAlias": "" }, { - "id": 118344, + "id": 118335, "nodeType": "ImportDirective", "src": "129:51:170", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/utils/Strings.sol", "file": "@openzeppelin/contracts/utils/Strings.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, + "scope": 119313, "sourceUnit": 72655, "symbolAliases": [], "unitAlias": "" }, { - "id": 118345, + "id": 118336, "nodeType": "ImportDirective", "src": "181:57:170", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol", "file": "@openzeppelin/contracts/token/ERC721/ERC721.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, + "scope": 119313, "sourceUnit": 72426, "symbolAliases": [], "unitAlias": "" }, { - "id": 118346, + "id": 118337, "nodeType": "ImportDirective", "src": "239:56:170", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol", "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "nameLocation": "-1:-1:-1", - "scope": 119322, + "scope": 119313, "sourceUnit": 71499, "symbolAliases": [], "unitAlias": "" }, { - "id": 119321, + "id": 119312, "nodeType": "ContractDefinition", "src": "297:8429:170", "nodes": [ { - "id": 118355, + "id": 118346, "nodeType": "UsingForDirective", "src": "342:26:170", "nodes": [], "global": false, "libraryName": { - "id": 118353, + "id": 118344, "name": "Strings", "nodeType": "IdentifierPath", "referencedDeclaration": 72654, "src": "348:7:170" }, "typeName": { - "id": 118354, + "id": 118345, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "360:7:170", @@ -1807,29 +1807,29 @@ } }, { - "id": 118390, + "id": 118381, "nodeType": "FunctionDefinition", "src": "374:342:170", "nodes": [], "body": { - "id": 118389, + "id": 118380, "nodeType": "Block", "src": "573:143:170", "nodes": [], "statements": [ { "expression": { - "id": 118374, + "id": 118365, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118372, + "id": 118363, "name": "desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118422, + "referencedDeclaration": 118413, "src": "583:4:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -1839,11 +1839,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 118373, + "id": 118364, "name": "_desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118357, + "referencedDeclaration": 118348, "src": "590:5:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -1856,23 +1856,23 @@ "typeString": "string storage ref" } }, - "id": 118375, + "id": 118366, "nodeType": "ExpressionStatement", "src": "583:12:170" }, { "expression": { - "id": 118379, + "id": 118370, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118376, + "id": 118367, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118420, + "referencedDeclaration": 118411, "src": "605:5:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1883,7 +1883,7 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118377, + "id": 118368, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -1894,7 +1894,7 @@ "typeString": "msg" } }, - "id": 118378, + "id": 118369, "isConstant": false, "isLValue": false, "isPure": false, @@ -1913,23 +1913,23 @@ "typeString": "address" } }, - "id": 118380, + "id": 118371, "nodeType": "ExpressionStatement", "src": "605:18:170" }, { "expression": { - "id": 118383, + "id": 118374, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118381, + "id": 118372, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118418, + "referencedDeclaration": 118409, "src": "633:14:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1939,11 +1939,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 118382, + "id": 118373, "name": "_waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118365, + "referencedDeclaration": 118356, "src": "650:15:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1956,23 +1956,23 @@ "typeString": "uint256" } }, - "id": 118384, + "id": 118375, "nodeType": "ExpressionStatement", "src": "633:32:170" }, { "expression": { - "id": 118387, + "id": 118378, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118385, + "id": 118376, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118424, + "referencedDeclaration": 118415, "src": "675:15:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -1982,11 +1982,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 118386, + "id": 118377, "name": "_notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118363, + "referencedDeclaration": 118354, "src": "693:16:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -1999,7 +1999,7 @@ "typeString": "string storage ref" } }, - "id": 118388, + "id": 118379, "nodeType": "ExpressionStatement", "src": "675:34:170" } @@ -2011,11 +2011,11 @@ { "arguments": [ { - "id": 118368, + "id": 118359, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118359, + "referencedDeclaration": 118350, "src": "559:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2023,11 +2023,11 @@ } }, { - "id": 118369, + "id": 118360, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118361, + "referencedDeclaration": 118352, "src": "567:4:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2035,10 +2035,10 @@ } } ], - "id": 118370, + "id": 118361, "kind": "baseConstructorSpecifier", "modifierName": { - "id": 118367, + "id": 118358, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, @@ -2051,17 +2051,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 118366, + "id": 118357, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118357, + "id": 118348, "mutability": "mutable", "name": "_desc", "nameLocation": "409:5:170", "nodeType": "VariableDeclaration", - "scope": 118390, + "scope": 118381, "src": "395:19:170", "stateVariable": false, "storageLocation": "memory", @@ -2070,7 +2070,7 @@ "typeString": "string" }, "typeName": { - "id": 118356, + "id": 118347, "name": "string", "nodeType": "ElementaryTypeName", "src": "395:6:170", @@ -2083,12 +2083,12 @@ }, { "constant": false, - "id": 118359, + "id": 118350, "mutability": "mutable", "name": "symbol", "nameLocation": "438:6:170", "nodeType": "VariableDeclaration", - "scope": 118390, + "scope": 118381, "src": "424:20:170", "stateVariable": false, "storageLocation": "memory", @@ -2097,7 +2097,7 @@ "typeString": "string" }, "typeName": { - "id": 118358, + "id": 118349, "name": "string", "nodeType": "ElementaryTypeName", "src": "424:6:170", @@ -2110,12 +2110,12 @@ }, { "constant": false, - "id": 118361, + "id": 118352, "mutability": "mutable", "name": "name", "nameLocation": "468:4:170", "nodeType": "VariableDeclaration", - "scope": 118390, + "scope": 118381, "src": "454:18:170", "stateVariable": false, "storageLocation": "memory", @@ -2124,7 +2124,7 @@ "typeString": "string" }, "typeName": { - "id": 118360, + "id": 118351, "name": "string", "nodeType": "ElementaryTypeName", "src": "454:6:170", @@ -2137,12 +2137,12 @@ }, { "constant": false, - "id": 118363, + "id": 118354, "mutability": "mutable", "name": "_notRevealedInfo", "nameLocation": "496:16:170", "nodeType": "VariableDeclaration", - "scope": 118390, + "scope": 118381, "src": "482:30:170", "stateVariable": false, "storageLocation": "memory", @@ -2151,7 +2151,7 @@ "typeString": "string" }, "typeName": { - "id": 118362, + "id": 118353, "name": "string", "nodeType": "ElementaryTypeName", "src": "482:6:170", @@ -2164,12 +2164,12 @@ }, { "constant": false, - "id": 118365, + "id": 118356, "mutability": "mutable", "name": "_waitBlockCount", "nameLocation": "530:15:170", "nodeType": "VariableDeclaration", - "scope": 118390, + "scope": 118381, "src": "522:23:170", "stateVariable": false, "storageLocation": "default", @@ -2178,7 +2178,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118364, + "id": 118355, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "522:7:170", @@ -2193,18 +2193,18 @@ "src": "385:166:170" }, "returnParameters": { - "id": 118371, + "id": 118362, "nodeType": "ParameterList", "parameters": [], "src": "573:0:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 118414, + "id": 118405, "nodeType": "StructDefinition", "src": "732:267:170", "nodes": [], @@ -2212,12 +2212,12 @@ "members": [ { "constant": false, - "id": 118392, + "id": 118383, "mutability": "mutable", "name": "randomId", "nameLocation": "762:8:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "754:16:170", "stateVariable": false, "storageLocation": "default", @@ -2226,7 +2226,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118391, + "id": 118382, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "754:7:170", @@ -2239,12 +2239,12 @@ }, { "constant": false, - "id": 118394, + "id": 118385, "mutability": "mutable", "name": "owner", "nameLocation": "788:5:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "780:13:170", "stateVariable": false, "storageLocation": "default", @@ -2253,7 +2253,7 @@ "typeString": "address" }, "typeName": { - "id": 118393, + "id": 118384, "name": "address", "nodeType": "ElementaryTypeName", "src": "780:7:170", @@ -2267,12 +2267,12 @@ }, { "constant": false, - "id": 118396, + "id": 118387, "mutability": "mutable", "name": "Weapon", "nameLocation": "810:6:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "803:13:170", "stateVariable": false, "storageLocation": "default", @@ -2281,7 +2281,7 @@ "typeString": "string" }, "typeName": { - "id": 118395, + "id": 118386, "name": "string", "nodeType": "ElementaryTypeName", "src": "803:6:170", @@ -2294,12 +2294,12 @@ }, { "constant": false, - "id": 118398, + "id": 118389, "mutability": "mutable", "name": "Chest", "nameLocation": "833:5:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "826:12:170", "stateVariable": false, "storageLocation": "default", @@ -2308,7 +2308,7 @@ "typeString": "string" }, "typeName": { - "id": 118397, + "id": 118388, "name": "string", "nodeType": "ElementaryTypeName", "src": "826:6:170", @@ -2321,12 +2321,12 @@ }, { "constant": false, - "id": 118400, + "id": 118391, "mutability": "mutable", "name": "Head", "nameLocation": "855:4:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "848:11:170", "stateVariable": false, "storageLocation": "default", @@ -2335,7 +2335,7 @@ "typeString": "string" }, "typeName": { - "id": 118399, + "id": 118390, "name": "string", "nodeType": "ElementaryTypeName", "src": "848:6:170", @@ -2348,12 +2348,12 @@ }, { "constant": false, - "id": 118402, + "id": 118393, "mutability": "mutable", "name": "Waist", "nameLocation": "876:5:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "869:12:170", "stateVariable": false, "storageLocation": "default", @@ -2362,7 +2362,7 @@ "typeString": "string" }, "typeName": { - "id": 118401, + "id": 118392, "name": "string", "nodeType": "ElementaryTypeName", "src": "869:6:170", @@ -2375,12 +2375,12 @@ }, { "constant": false, - "id": 118404, + "id": 118395, "mutability": "mutable", "name": "Foot", "nameLocation": "898:4:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "891:11:170", "stateVariable": false, "storageLocation": "default", @@ -2389,7 +2389,7 @@ "typeString": "string" }, "typeName": { - "id": 118403, + "id": 118394, "name": "string", "nodeType": "ElementaryTypeName", "src": "891:6:170", @@ -2402,12 +2402,12 @@ }, { "constant": false, - "id": 118406, + "id": 118397, "mutability": "mutable", "name": "Hand", "nameLocation": "919:4:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "912:11:170", "stateVariable": false, "storageLocation": "default", @@ -2416,7 +2416,7 @@ "typeString": "string" }, "typeName": { - "id": 118405, + "id": 118396, "name": "string", "nodeType": "ElementaryTypeName", "src": "912:6:170", @@ -2429,12 +2429,12 @@ }, { "constant": false, - "id": 118408, + "id": 118399, "mutability": "mutable", "name": "Neck", "nameLocation": "940:4:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "933:11:170", "stateVariable": false, "storageLocation": "default", @@ -2443,7 +2443,7 @@ "typeString": "string" }, "typeName": { - "id": 118407, + "id": 118398, "name": "string", "nodeType": "ElementaryTypeName", "src": "933:6:170", @@ -2456,12 +2456,12 @@ }, { "constant": false, - "id": 118410, + "id": 118401, "mutability": "mutable", "name": "Ring", "nameLocation": "961:4:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "954:11:170", "stateVariable": false, "storageLocation": "default", @@ -2470,7 +2470,7 @@ "typeString": "string" }, "typeName": { - "id": 118409, + "id": 118400, "name": "string", "nodeType": "ElementaryTypeName", "src": "954:6:170", @@ -2483,33 +2483,33 @@ }, { "constant": false, - "id": 118413, + "id": 118404, "mutability": "mutable", "name": "state", "nameLocation": "987:5:170", "nodeType": "VariableDeclaration", - "scope": 118414, + "scope": 118405, "src": "975:17:170", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, "typeName": { - "id": 118412, + "id": 118403, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 118411, + "id": 118402, "name": "RandomState", "nodeType": "IdentifierPath", - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "975:11:170" }, - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "975:11:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -2518,11 +2518,11 @@ ], "name": "Loot", "nameLocation": "739:4:170", - "scope": 119321, + "scope": 119312, "visibility": "public" }, { - "id": 118416, + "id": 118407, "nodeType": "VariableDeclaration", "src": "1005:22:170", "nodes": [], @@ -2531,7 +2531,7 @@ "mutability": "mutable", "name": "tokenId", "nameLocation": "1020:7:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2539,7 +2539,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118415, + "id": 118406, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1005:7:170", @@ -2551,7 +2551,7 @@ "visibility": "public" }, { - "id": 118418, + "id": 118409, "nodeType": "VariableDeclaration", "src": "1033:29:170", "nodes": [], @@ -2560,7 +2560,7 @@ "mutability": "mutable", "name": "waitBlockCount", "nameLocation": "1048:14:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2568,7 +2568,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118417, + "id": 118408, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1033:7:170", @@ -2580,7 +2580,7 @@ "visibility": "public" }, { - "id": 118420, + "id": 118411, "nodeType": "VariableDeclaration", "src": "1070:13:170", "nodes": [], @@ -2588,7 +2588,7 @@ "mutability": "mutable", "name": "owner", "nameLocation": "1078:5:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2596,7 +2596,7 @@ "typeString": "address" }, "typeName": { - "id": 118419, + "id": 118410, "name": "address", "nodeType": "ElementaryTypeName", "src": "1070:7:170", @@ -2609,7 +2609,7 @@ "visibility": "internal" }, { - "id": 118422, + "id": 118413, "nodeType": "VariableDeclaration", "src": "1089:11:170", "nodes": [], @@ -2617,7 +2617,7 @@ "mutability": "mutable", "name": "desc", "nameLocation": "1096:4:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2625,7 +2625,7 @@ "typeString": "string" }, "typeName": { - "id": 118421, + "id": 118412, "name": "string", "nodeType": "ElementaryTypeName", "src": "1089:6:170", @@ -2637,7 +2637,7 @@ "visibility": "internal" }, { - "id": 118424, + "id": 118415, "nodeType": "VariableDeclaration", "src": "1106:22:170", "nodes": [], @@ -2645,7 +2645,7 @@ "mutability": "mutable", "name": "notRevealedInfo", "nameLocation": "1113:15:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2653,7 +2653,7 @@ "typeString": "string" }, "typeName": { - "id": 118423, + "id": 118414, "name": "string", "nodeType": "ElementaryTypeName", "src": "1106:6:170", @@ -2665,7 +2665,7 @@ "visibility": "internal" }, { - "id": 118429, + "id": 118420, "nodeType": "VariableDeclaration", "src": "1135:40:170", "nodes": [], @@ -2674,17 +2674,17 @@ "mutability": "mutable", "name": "lootList", "nameLocation": "1167:8:170", - "scope": 119321, + "scope": 119312, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot)" }, "typeName": { - "id": 118428, + "id": 118419, "keyType": { - "id": 118425, + "id": 118416, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1143:7:170", @@ -2696,23 +2696,23 @@ "nodeType": "Mapping", "src": "1135:24:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot)" }, "valueType": { - "id": 118427, + "id": 118418, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 118426, + "id": 118417, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "1154:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "1154:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } } @@ -2720,12 +2720,12 @@ "visibility": "public" }, { - "id": 118440, + "id": 118431, "nodeType": "ModifierDefinition", "src": "1182:77:170", "nodes": [], "body": { - "id": 118439, + "id": 118430, "nodeType": "Block", "src": "1203:56:170", "nodes": [], @@ -2738,14 +2738,14 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 118435, + "id": 118426, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 118432, + "id": 118423, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2756,7 +2756,7 @@ "typeString": "msg" } }, - "id": 118433, + "id": 118424, "isConstant": false, "isLValue": false, "isPure": false, @@ -2772,11 +2772,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 118434, + "id": 118425, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118420, + "referencedDeclaration": 118411, "src": "1235:5:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2797,7 +2797,7 @@ "typeString": "bool" } ], - "id": 118431, + "id": 118422, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -2811,7 +2811,7 @@ "typeString": "function (bool) pure" } }, - "id": 118436, + "id": 118427, "isConstant": false, "isLValue": false, "isPure": false, @@ -2826,12 +2826,12 @@ "typeString": "tuple()" } }, - "id": 118437, + "id": 118428, "nodeType": "ExpressionStatement", "src": "1213:28:170" }, { - "id": 118438, + "id": 118429, "nodeType": "PlaceholderStatement", "src": "1251:1:170" } @@ -2840,7 +2840,7 @@ "name": "onlyOwner", "nameLocation": "1191:9:170", "parameters": { - "id": 118430, + "id": 118421, "nodeType": "ParameterList", "parameters": [], "src": "1200:2:170" @@ -2849,29 +2849,29 @@ "visibility": "internal" }, { - "id": 118715, + "id": 118706, "nodeType": "FunctionDefinition", "src": "1266:2832:170", "nodes": [], "body": { - "id": 118714, + "id": 118705, "nodeType": "Block", "src": "1361:2737:170", "nodes": [], "statements": [ { "assignments": [ - 118453 + 118444 ], "declarations": [ { "constant": false, - "id": 118453, + "id": 118444, "mutability": "mutable", "name": "parts", "nameLocation": "1389:5:170", "nodeType": "VariableDeclaration", - "scope": 118714, + "scope": 118705, "src": "1371:23:170", "stateVariable": false, "storageLocation": "memory", @@ -2881,7 +2881,7 @@ }, "typeName": { "baseType": { - "id": 118451, + "id": 118442, "name": "string", "nodeType": "ElementaryTypeName", "src": "1371:6:170", @@ -2890,10 +2890,10 @@ "typeString": "string" } }, - "id": 118452, + "id": 118443, "length": { "hexValue": "3137", - "id": 118450, + "id": 118441, "isConstant": false, "isLValue": false, "isPure": true, @@ -2917,71 +2917,71 @@ "visibility": "internal" } ], - "id": 118454, + "id": 118445, "nodeType": "VariableDeclarationStatement", "src": "1371:23:170" }, { "assignments": [ - 118457 + 118448 ], "declarations": [ { "constant": false, - "id": 118457, + "id": 118448, "mutability": "mutable", "name": "loot", "nameLocation": "1416:4:170", "nodeType": "VariableDeclaration", - "scope": 118714, + "scope": 118705, "src": "1404:16:170", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 118456, + "id": 118447, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 118455, + "id": 118446, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "1404:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "1404:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 118461, + "id": 118452, "initialValue": { "baseExpression": { - "id": 118458, + "id": 118449, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118429, + "referencedDeclaration": 118420, "src": "1423:8:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 118460, + "id": 118451, "indexExpression": { - "id": 118459, + "id": 118450, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118442, + "referencedDeclaration": 118433, "src": "1432:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2995,7 +2995,7 @@ "nodeType": "IndexAccess", "src": "1423:18:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage", + "typeIdentifier": "t_struct$_Loot_$118405_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -3005,38 +3005,38 @@ { "condition": { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 118466, + "id": 118457, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 118462, + "id": 118453, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "1454:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118463, + "id": 118454, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "1454:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -3044,28 +3044,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 118464, + "id": 118455, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "1468:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 118465, + "id": 118456, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 119576, + "referencedDeclaration": 119567, "src": "1468:19:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -3075,27 +3075,27 @@ "typeString": "bool" } }, - "id": 118481, + "id": 118472, "nodeType": "IfStatement", "src": "1451:244:170", "trueBody": { - "id": 118480, + "id": 118471, "nodeType": "Block", "src": "1488:207:170", "statements": [ { "assignments": [ - 118468 + 118459 ], "declarations": [ { "constant": false, - "id": 118468, + "id": 118459, "mutability": "mutable", "name": "r", "nameLocation": "1516:1:170", "nodeType": "VariableDeclaration", - "scope": 118480, + "scope": 118471, "src": "1502:15:170", "stateVariable": false, "storageLocation": "memory", @@ -3104,7 +3104,7 @@ "typeString": "string" }, "typeName": { - "id": 118467, + "id": 118458, "name": "string", "nodeType": "ElementaryTypeName", "src": "1502:6:170", @@ -3116,14 +3116,14 @@ "visibility": "internal" } ], - "id": 118477, + "id": 118468, "initialValue": { "arguments": [ { "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 118473, + "id": 118464, "isConstant": false, "isLValue": false, "isPure": true, @@ -3138,11 +3138,11 @@ "value": "data:application/json;base64," }, { - "id": 118474, + "id": 118465, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118424, + "referencedDeclaration": 118415, "src": "1623:15:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -3162,7 +3162,7 @@ } ], "expression": { - "id": 118471, + "id": 118462, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -3173,7 +3173,7 @@ "typeString": "abi" } }, - "id": 118472, + "id": 118463, "isConstant": false, "isLValue": false, "isPure": true, @@ -3186,7 +3186,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118475, + "id": 118466, "isConstant": false, "isLValue": false, "isPure": false, @@ -3209,7 +3209,7 @@ "typeString": "bytes memory" } ], - "id": 118470, + "id": 118461, "isConstant": false, "isLValue": false, "isPure": true, @@ -3221,14 +3221,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118469, + "id": 118460, "name": "string", "nodeType": "ElementaryTypeName", "src": "1520:6:170", "typeDescriptions": {} } }, - "id": 118476, + "id": 118467, "isConstant": false, "isLValue": false, "isPure": false, @@ -3248,19 +3248,19 @@ }, { "expression": { - "id": 118478, + "id": 118469, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118468, + "referencedDeclaration": 118459, "src": "1683:1:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 118447, - "id": 118479, + "functionReturnParameters": 118438, + "id": 118470, "nodeType": "Return", "src": "1676:8:170" } @@ -3272,38 +3272,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 118487, + "id": 118478, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 118483, + "id": 118474, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "1712:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118484, + "id": 118475, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "1712:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -3311,28 +3311,28 @@ "operator": "!=", "rightExpression": { "expression": { - "id": 118485, + "id": 118476, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "1726:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 118486, + "id": 118477, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Inited", "nodeType": "MemberAccess", - "referencedDeclaration": 119575, + "referencedDeclaration": 119566, "src": "1726:18:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -3344,7 +3344,7 @@ }, { "hexValue": "426f78206e6f742065786973746564", - "id": 118488, + "id": 118479, "isConstant": false, "isLValue": false, "isPure": true, @@ -3370,7 +3370,7 @@ "typeString": "literal_string \"Box not existed\"" } ], - "id": 118482, + "id": 118473, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -3384,7 +3384,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 118489, + "id": 118480, "isConstant": false, "isLValue": false, "isPure": false, @@ -3399,34 +3399,34 @@ "typeString": "tuple()" } }, - "id": 118490, + "id": 118481, "nodeType": "ExpressionStatement", "src": "1704:60:170" }, { "expression": { - "id": 118495, + "id": 118486, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118491, + "id": 118482, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "1775:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118493, + "id": 118484, "indexExpression": { "hexValue": "30", - "id": 118492, + "id": 118483, "isConstant": false, "isLValue": false, "isPure": true, @@ -3455,7 +3455,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e", - "id": 118494, + "id": 118485, "isConstant": false, "isLValue": false, "isPure": true, @@ -3475,34 +3475,34 @@ "typeString": "string memory" } }, - "id": 118496, + "id": 118487, "nodeType": "ExpressionStatement", "src": "1775:288:170" }, { "expression": { - "id": 118502, + "id": 118493, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118497, + "id": 118488, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2074:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118499, + "id": 118490, "indexExpression": { "hexValue": "31", - "id": 118498, + "id": 118489, "isConstant": false, "isLValue": false, "isPure": true, @@ -3531,25 +3531,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118500, + "id": 118491, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2085:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118501, + "id": 118492, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 118396, + "referencedDeclaration": 118387, "src": "2085:11:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3562,34 +3562,34 @@ "typeString": "string memory" } }, - "id": 118503, + "id": 118494, "nodeType": "ExpressionStatement", "src": "2074:22:170" }, { "expression": { - "id": 118508, + "id": 118499, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118504, + "id": 118495, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2107:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118506, + "id": 118497, "indexExpression": { "hexValue": "32", - "id": 118505, + "id": 118496, "isConstant": false, "isLValue": false, "isPure": true, @@ -3618,7 +3618,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e", - "id": 118507, + "id": 118498, "isConstant": false, "isLValue": false, "isPure": true, @@ -3638,34 +3638,34 @@ "typeString": "string memory" } }, - "id": 118509, + "id": 118500, "nodeType": "ExpressionStatement", "src": "2107:53:170" }, { "expression": { - "id": 118515, + "id": 118506, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118510, + "id": 118501, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2171:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118512, + "id": 118503, "indexExpression": { "hexValue": "33", - "id": 118511, + "id": 118502, "isConstant": false, "isLValue": false, "isPure": true, @@ -3694,25 +3694,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118513, + "id": 118504, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2182:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118514, + "id": 118505, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 118398, + "referencedDeclaration": 118389, "src": "2182:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3725,34 +3725,34 @@ "typeString": "string memory" } }, - "id": 118516, + "id": 118507, "nodeType": "ExpressionStatement", "src": "2171:21:170" }, { "expression": { - "id": 118521, + "id": 118512, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118517, + "id": 118508, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2203:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118519, + "id": 118510, "indexExpression": { "hexValue": "34", - "id": 118518, + "id": 118509, "isConstant": false, "isLValue": false, "isPure": true, @@ -3781,7 +3781,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e", - "id": 118520, + "id": 118511, "isConstant": false, "isLValue": false, "isPure": true, @@ -3801,34 +3801,34 @@ "typeString": "string memory" } }, - "id": 118522, + "id": 118513, "nodeType": "ExpressionStatement", "src": "2203:53:170" }, { "expression": { - "id": 118528, + "id": 118519, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118523, + "id": 118514, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2267:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118525, + "id": 118516, "indexExpression": { "hexValue": "35", - "id": 118524, + "id": 118515, "isConstant": false, "isLValue": false, "isPure": true, @@ -3857,25 +3857,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118526, + "id": 118517, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2278:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118527, + "id": 118518, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 118400, + "referencedDeclaration": 118391, "src": "2278:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3888,34 +3888,34 @@ "typeString": "string memory" } }, - "id": 118529, + "id": 118520, "nodeType": "ExpressionStatement", "src": "2267:20:170" }, { "expression": { - "id": 118534, + "id": 118525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118530, + "id": 118521, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2298:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118532, + "id": 118523, "indexExpression": { "hexValue": "36", - "id": 118531, + "id": 118522, "isConstant": false, "isLValue": false, "isPure": true, @@ -3944,7 +3944,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e", - "id": 118533, + "id": 118524, "isConstant": false, "isLValue": false, "isPure": true, @@ -3964,34 +3964,34 @@ "typeString": "string memory" } }, - "id": 118535, + "id": 118526, "nodeType": "ExpressionStatement", "src": "2298:53:170" }, { "expression": { - "id": 118541, + "id": 118532, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118536, + "id": 118527, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2362:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118538, + "id": 118529, "indexExpression": { "hexValue": "37", - "id": 118537, + "id": 118528, "isConstant": false, "isLValue": false, "isPure": true, @@ -4020,25 +4020,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118539, + "id": 118530, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2373:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118540, + "id": 118531, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 118402, + "referencedDeclaration": 118393, "src": "2373:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4051,34 +4051,34 @@ "typeString": "string memory" } }, - "id": 118542, + "id": 118533, "nodeType": "ExpressionStatement", "src": "2362:21:170" }, { "expression": { - "id": 118547, + "id": 118538, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118543, + "id": 118534, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2394:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118545, + "id": 118536, "indexExpression": { "hexValue": "38", - "id": 118544, + "id": 118535, "isConstant": false, "isLValue": false, "isPure": true, @@ -4107,7 +4107,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e", - "id": 118546, + "id": 118537, "isConstant": false, "isLValue": false, "isPure": true, @@ -4127,34 +4127,34 @@ "typeString": "string memory" } }, - "id": 118548, + "id": 118539, "nodeType": "ExpressionStatement", "src": "2394:54:170" }, { "expression": { - "id": 118554, + "id": 118545, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118549, + "id": 118540, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2459:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118551, + "id": 118542, "indexExpression": { "hexValue": "39", - "id": 118550, + "id": 118541, "isConstant": false, "isLValue": false, "isPure": true, @@ -4183,25 +4183,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118552, + "id": 118543, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2470:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118553, + "id": 118544, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 118404, + "referencedDeclaration": 118395, "src": "2470:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4214,34 +4214,34 @@ "typeString": "string memory" } }, - "id": 118555, + "id": 118546, "nodeType": "ExpressionStatement", "src": "2459:20:170" }, { "expression": { - "id": 118560, + "id": 118551, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118556, + "id": 118547, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2490:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118558, + "id": 118549, "indexExpression": { "hexValue": "3130", - "id": 118557, + "id": 118548, "isConstant": false, "isLValue": false, "isPure": true, @@ -4270,7 +4270,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e", - "id": 118559, + "id": 118550, "isConstant": false, "isLValue": false, "isPure": true, @@ -4290,34 +4290,34 @@ "typeString": "string memory" } }, - "id": 118561, + "id": 118552, "nodeType": "ExpressionStatement", "src": "2490:55:170" }, { "expression": { - "id": 118567, + "id": 118558, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118562, + "id": 118553, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2556:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118564, + "id": 118555, "indexExpression": { "hexValue": "3131", - "id": 118563, + "id": 118554, "isConstant": false, "isLValue": false, "isPure": true, @@ -4346,25 +4346,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118565, + "id": 118556, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2568:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118566, + "id": 118557, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 118406, + "referencedDeclaration": 118397, "src": "2568:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4377,34 +4377,34 @@ "typeString": "string memory" } }, - "id": 118568, + "id": 118559, "nodeType": "ExpressionStatement", "src": "2556:21:170" }, { "expression": { - "id": 118573, + "id": 118564, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118569, + "id": 118560, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2588:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118571, + "id": 118562, "indexExpression": { "hexValue": "3132", - "id": 118570, + "id": 118561, "isConstant": false, "isLValue": false, "isPure": true, @@ -4433,7 +4433,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e", - "id": 118572, + "id": 118563, "isConstant": false, "isLValue": false, "isPure": true, @@ -4453,34 +4453,34 @@ "typeString": "string memory" } }, - "id": 118574, + "id": 118565, "nodeType": "ExpressionStatement", "src": "2588:55:170" }, { "expression": { - "id": 118580, + "id": 118571, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118575, + "id": 118566, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2654:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118577, + "id": 118568, "indexExpression": { "hexValue": "3133", - "id": 118576, + "id": 118567, "isConstant": false, "isLValue": false, "isPure": true, @@ -4509,25 +4509,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118578, + "id": 118569, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2666:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118579, + "id": 118570, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 118408, + "referencedDeclaration": 118399, "src": "2666:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4540,34 +4540,34 @@ "typeString": "string memory" } }, - "id": 118581, + "id": 118572, "nodeType": "ExpressionStatement", "src": "2654:21:170" }, { "expression": { - "id": 118586, + "id": 118577, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118582, + "id": 118573, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2686:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118584, + "id": 118575, "indexExpression": { "hexValue": "3134", - "id": 118583, + "id": 118574, "isConstant": false, "isLValue": false, "isPure": true, @@ -4596,7 +4596,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e", - "id": 118585, + "id": 118576, "isConstant": false, "isLValue": false, "isPure": true, @@ -4616,34 +4616,34 @@ "typeString": "string memory" } }, - "id": 118587, + "id": 118578, "nodeType": "ExpressionStatement", "src": "2686:55:170" }, { "expression": { - "id": 118593, + "id": 118584, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118588, + "id": 118579, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2752:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118590, + "id": 118581, "indexExpression": { "hexValue": "3135", - "id": 118589, + "id": 118580, "isConstant": false, "isLValue": false, "isPure": true, @@ -4672,25 +4672,25 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118591, + "id": 118582, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118457, + "referencedDeclaration": 118448, "src": "2764:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 118592, + "id": 118583, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 118410, + "referencedDeclaration": 118401, "src": "2764:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4703,34 +4703,34 @@ "typeString": "string memory" } }, - "id": 118594, + "id": 118585, "nodeType": "ExpressionStatement", "src": "2752:21:170" }, { "expression": { - "id": 118599, + "id": 118590, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118595, + "id": 118586, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2784:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118597, + "id": 118588, "indexExpression": { "hexValue": "3136", - "id": 118596, + "id": 118587, "isConstant": false, "isLValue": false, "isPure": true, @@ -4759,7 +4759,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c2f7376673e", - "id": 118598, + "id": 118589, "isConstant": false, "isLValue": false, "isPure": true, @@ -4779,23 +4779,23 @@ "typeString": "string memory" } }, - "id": 118600, + "id": 118591, "nodeType": "ExpressionStatement", "src": "2784:27:170" }, { "assignments": [ - 118602 + 118593 ], "declarations": [ { "constant": false, - "id": 118602, + "id": 118593, "mutability": "mutable", "name": "output", "nameLocation": "2836:6:170", "nodeType": "VariableDeclaration", - "scope": 118714, + "scope": 118705, "src": "2822:20:170", "stateVariable": false, "storageLocation": "memory", @@ -4804,7 +4804,7 @@ "typeString": "string" }, "typeName": { - "id": 118601, + "id": 118592, "name": "string", "nodeType": "ElementaryTypeName", "src": "2822:6:170", @@ -4816,28 +4816,28 @@ "visibility": "internal" } ], - "id": 118636, + "id": 118627, "initialValue": { "arguments": [ { "arguments": [ { "baseExpression": { - "id": 118607, + "id": 118598, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2899:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118609, + "id": 118600, "indexExpression": { "hexValue": "30", - "id": 118608, + "id": 118599, "isConstant": false, "isLValue": false, "isPure": true, @@ -4864,21 +4864,21 @@ }, { "baseExpression": { - "id": 118610, + "id": 118601, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2925:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118612, + "id": 118603, "indexExpression": { "hexValue": "31", - "id": 118611, + "id": 118602, "isConstant": false, "isLValue": false, "isPure": true, @@ -4905,21 +4905,21 @@ }, { "baseExpression": { - "id": 118613, + "id": 118604, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2951:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118615, + "id": 118606, "indexExpression": { "hexValue": "32", - "id": 118614, + "id": 118605, "isConstant": false, "isLValue": false, "isPure": true, @@ -4946,21 +4946,21 @@ }, { "baseExpression": { - "id": 118616, + "id": 118607, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "2977:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118618, + "id": 118609, "indexExpression": { "hexValue": "33", - "id": 118617, + "id": 118608, "isConstant": false, "isLValue": false, "isPure": true, @@ -4987,21 +4987,21 @@ }, { "baseExpression": { - "id": 118619, + "id": 118610, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3003:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118621, + "id": 118612, "indexExpression": { "hexValue": "34", - "id": 118620, + "id": 118611, "isConstant": false, "isLValue": false, "isPure": true, @@ -5028,21 +5028,21 @@ }, { "baseExpression": { - "id": 118622, + "id": 118613, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3029:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118624, + "id": 118615, "indexExpression": { "hexValue": "35", - "id": 118623, + "id": 118614, "isConstant": false, "isLValue": false, "isPure": true, @@ -5069,21 +5069,21 @@ }, { "baseExpression": { - "id": 118625, + "id": 118616, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3055:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118627, + "id": 118618, "indexExpression": { "hexValue": "36", - "id": 118626, + "id": 118617, "isConstant": false, "isLValue": false, "isPure": true, @@ -5110,21 +5110,21 @@ }, { "baseExpression": { - "id": 118628, + "id": 118619, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3081:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118630, + "id": 118621, "indexExpression": { "hexValue": "37", - "id": 118629, + "id": 118620, "isConstant": false, "isLValue": false, "isPure": true, @@ -5151,21 +5151,21 @@ }, { "baseExpression": { - "id": 118631, + "id": 118622, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3107:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118633, + "id": 118624, "indexExpression": { "hexValue": "38", - "id": 118632, + "id": 118623, "isConstant": false, "isLValue": false, "isPure": true, @@ -5231,7 +5231,7 @@ } ], "expression": { - "id": 118605, + "id": 118596, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -5242,7 +5242,7 @@ "typeString": "abi" } }, - "id": 118606, + "id": 118597, "isConstant": false, "isLValue": false, "isPure": true, @@ -5255,7 +5255,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118634, + "id": 118625, "isConstant": false, "isLValue": false, "isPure": false, @@ -5278,7 +5278,7 @@ "typeString": "bytes memory" } ], - "id": 118604, + "id": 118595, "isConstant": false, "isLValue": false, "isPure": true, @@ -5290,14 +5290,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118603, + "id": 118594, "name": "string", "nodeType": "ElementaryTypeName", "src": "2845:6:170", "typeDescriptions": {} } }, - "id": 118635, + "id": 118626, "isConstant": false, "isLValue": false, "isPure": false, @@ -5317,17 +5317,17 @@ }, { "expression": { - "id": 118669, + "id": 118660, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118637, + "id": 118628, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118602, + "referencedDeclaration": 118593, "src": "3149:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5341,11 +5341,11 @@ { "arguments": [ { - "id": 118642, + "id": 118633, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118602, + "referencedDeclaration": 118593, "src": "3212:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5354,21 +5354,21 @@ }, { "baseExpression": { - "id": 118643, + "id": 118634, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3236:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118645, + "id": 118636, "indexExpression": { "hexValue": "39", - "id": 118644, + "id": 118635, "isConstant": false, "isLValue": false, "isPure": true, @@ -5395,21 +5395,21 @@ }, { "baseExpression": { - "id": 118646, + "id": 118637, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3262:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118648, + "id": 118639, "indexExpression": { "hexValue": "3130", - "id": 118647, + "id": 118638, "isConstant": false, "isLValue": false, "isPure": true, @@ -5436,21 +5436,21 @@ }, { "baseExpression": { - "id": 118649, + "id": 118640, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3289:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118651, + "id": 118642, "indexExpression": { "hexValue": "3131", - "id": 118650, + "id": 118641, "isConstant": false, "isLValue": false, "isPure": true, @@ -5477,21 +5477,21 @@ }, { "baseExpression": { - "id": 118652, + "id": 118643, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3316:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118654, + "id": 118645, "indexExpression": { "hexValue": "3132", - "id": 118653, + "id": 118644, "isConstant": false, "isLValue": false, "isPure": true, @@ -5518,21 +5518,21 @@ }, { "baseExpression": { - "id": 118655, + "id": 118646, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3343:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118657, + "id": 118648, "indexExpression": { "hexValue": "3133", - "id": 118656, + "id": 118647, "isConstant": false, "isLValue": false, "isPure": true, @@ -5559,21 +5559,21 @@ }, { "baseExpression": { - "id": 118658, + "id": 118649, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3370:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118660, + "id": 118651, "indexExpression": { "hexValue": "3134", - "id": 118659, + "id": 118650, "isConstant": false, "isLValue": false, "isPure": true, @@ -5600,21 +5600,21 @@ }, { "baseExpression": { - "id": 118661, + "id": 118652, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3397:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118663, + "id": 118654, "indexExpression": { "hexValue": "3135", - "id": 118662, + "id": 118653, "isConstant": false, "isLValue": false, "isPure": true, @@ -5641,21 +5641,21 @@ }, { "baseExpression": { - "id": 118664, + "id": 118655, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118453, + "referencedDeclaration": 118444, "src": "3424:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$17_memory_ptr", "typeString": "string memory[17] memory" } }, - "id": 118666, + "id": 118657, "indexExpression": { "hexValue": "3136", - "id": 118665, + "id": 118656, "isConstant": false, "isLValue": false, "isPure": true, @@ -5721,7 +5721,7 @@ } ], "expression": { - "id": 118640, + "id": 118631, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -5732,7 +5732,7 @@ "typeString": "abi" } }, - "id": 118641, + "id": 118632, "isConstant": false, "isLValue": false, "isPure": true, @@ -5745,7 +5745,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118667, + "id": 118658, "isConstant": false, "isLValue": false, "isPure": false, @@ -5768,7 +5768,7 @@ "typeString": "bytes memory" } ], - "id": 118639, + "id": 118630, "isConstant": false, "isLValue": false, "isPure": true, @@ -5780,14 +5780,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118638, + "id": 118629, "name": "string", "nodeType": "ElementaryTypeName", "src": "3158:6:170", "typeDescriptions": {} } }, - "id": 118668, + "id": 118659, "isConstant": false, "isLValue": false, "isPure": false, @@ -5808,23 +5808,23 @@ "typeString": "string memory" } }, - "id": 118670, + "id": 118661, "nodeType": "ExpressionStatement", "src": "3149:308:170" }, { "assignments": [ - 118672 + 118663 ], "declarations": [ { "constant": false, - "id": 118672, + "id": 118663, "mutability": "mutable", "name": "json", "nameLocation": "3482:4:170", "nodeType": "VariableDeclaration", - "scope": 118714, + "scope": 118705, "src": "3468:18:170", "stateVariable": false, "storageLocation": "memory", @@ -5833,7 +5833,7 @@ "typeString": "string" }, "typeName": { - "id": 118671, + "id": 118662, "name": "string", "nodeType": "ElementaryTypeName", "src": "3468:6:170", @@ -5845,7 +5845,7 @@ "visibility": "internal" } ], - "id": 118700, + "id": 118691, "initialValue": { "arguments": [ { @@ -5856,7 +5856,7 @@ "arguments": [ { "hexValue": "7b226e616d65223a20224d4c6f6f742023", - "id": 118681, + "id": 118672, "isConstant": false, "isLValue": false, "isPure": true, @@ -5875,18 +5875,18 @@ "expression": { "argumentTypes": [], "expression": { - "id": 118682, + "id": 118673, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118442, + "referencedDeclaration": 118433, "src": "3654:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 118683, + "id": 118674, "isConstant": false, "isLValue": false, "isPure": false, @@ -5900,7 +5900,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 118684, + "id": 118675, "isConstant": false, "isLValue": false, "isPure": false, @@ -5917,7 +5917,7 @@ }, { "hexValue": "222c20226465736372697074696f6e223a22", - "id": 118685, + "id": 118676, "isConstant": false, "isLValue": false, "isPure": true, @@ -5932,11 +5932,11 @@ "value": "\", \"description\":\"" }, { - "id": 118686, + "id": 118677, "name": "desc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118422, + "referencedDeclaration": 118413, "src": "3745:4:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -5945,7 +5945,7 @@ }, { "hexValue": "222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c", - "id": 118687, + "id": 118678, "isConstant": false, "isLValue": false, "isPure": true, @@ -5964,11 +5964,11 @@ { "arguments": [ { - "id": 118692, + "id": 118683, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118602, + "referencedDeclaration": 118593, "src": "3861:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -5983,7 +5983,7 @@ "typeString": "string memory" } ], - "id": 118691, + "id": 118682, "isConstant": false, "isLValue": false, "isPure": true, @@ -5995,14 +5995,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 118690, + "id": 118681, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3855:5:170", "typeDescriptions": {} } }, - "id": 118693, + "id": 118684, "isConstant": false, "isLValue": false, "isPure": false, @@ -6026,32 +6026,32 @@ } ], "expression": { - "id": 118688, + "id": 118679, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118338, + "referencedDeclaration": 118329, "src": "3841:6:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$118338_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118329_$", "typeString": "type(library Base64)" } }, - "id": 118689, + "id": 118680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 118337, + "referencedDeclaration": 118328, "src": "3841:13:170", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 118694, + "id": 118685, "isConstant": false, "isLValue": false, "isPure": false, @@ -6068,7 +6068,7 @@ }, { "hexValue": "227d", - "id": 118695, + "id": 118686, "isConstant": false, "isLValue": false, "isPure": true, @@ -6115,7 +6115,7 @@ } ], "expression": { - "id": 118679, + "id": 118670, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6126,7 +6126,7 @@ "typeString": "abi" } }, - "id": 118680, + "id": 118671, "isConstant": false, "isLValue": false, "isPure": true, @@ -6139,7 +6139,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118696, + "id": 118687, "isConstant": false, "isLValue": false, "isPure": false, @@ -6162,7 +6162,7 @@ "typeString": "bytes memory" } ], - "id": 118678, + "id": 118669, "isConstant": false, "isLValue": false, "isPure": true, @@ -6174,14 +6174,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118677, + "id": 118668, "name": "string", "nodeType": "ElementaryTypeName", "src": "3539:6:170", "typeDescriptions": {} } }, - "id": 118697, + "id": 118688, "isConstant": false, "isLValue": false, "isPure": false, @@ -6204,7 +6204,7 @@ "typeString": "string memory" } ], - "id": 118676, + "id": 118667, "isConstant": false, "isLValue": false, "isPure": true, @@ -6216,14 +6216,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 118675, + "id": 118666, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "3516:5:170", "typeDescriptions": {} } }, - "id": 118698, + "id": 118689, "isConstant": false, "isLValue": false, "isPure": false, @@ -6247,32 +6247,32 @@ } ], "expression": { - "id": 118673, + "id": 118664, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118338, + "referencedDeclaration": 118329, "src": "3489:6:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$118338_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118329_$", "typeString": "type(library Base64)" } }, - "id": 118674, + "id": 118665, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 118337, + "referencedDeclaration": 118328, "src": "3489:13:170", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 118699, + "id": 118690, "isConstant": false, "isLValue": false, "isPure": false, @@ -6292,17 +6292,17 @@ }, { "expression": { - "id": 118710, + "id": 118701, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118701, + "id": 118692, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118602, + "referencedDeclaration": 118593, "src": "3973:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6317,7 +6317,7 @@ "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 118706, + "id": 118697, "isConstant": false, "isLValue": false, "isPure": true, @@ -6332,11 +6332,11 @@ "value": "data:application/json;base64," }, { - "id": 118707, + "id": 118698, "name": "json", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118672, + "referencedDeclaration": 118663, "src": "4052:4:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6356,7 +6356,7 @@ } ], "expression": { - "id": 118704, + "id": 118695, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6367,7 +6367,7 @@ "typeString": "abi" } }, - "id": 118705, + "id": 118696, "isConstant": false, "isLValue": false, "isPure": true, @@ -6380,7 +6380,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118708, + "id": 118699, "isConstant": false, "isLValue": false, "isPure": false, @@ -6403,7 +6403,7 @@ "typeString": "bytes memory" } ], - "id": 118703, + "id": 118694, "isConstant": false, "isLValue": false, "isPure": true, @@ -6415,14 +6415,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118702, + "id": 118693, "name": "string", "nodeType": "ElementaryTypeName", "src": "3982:6:170", "typeDescriptions": {} } }, - "id": 118709, + "id": 118700, "isConstant": false, "isLValue": false, "isPure": false, @@ -6443,25 +6443,25 @@ "typeString": "string memory" } }, - "id": 118711, + "id": 118702, "nodeType": "ExpressionStatement", "src": "3973:94:170" }, { "expression": { - "id": 118712, + "id": 118703, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118602, + "referencedDeclaration": 118593, "src": "4085:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 118447, - "id": 118713, + "functionReturnParameters": 118438, + "id": 118704, "nodeType": "Return", "src": "4078:13:170" } @@ -6477,23 +6477,23 @@ "name": "tokenURI", "nameLocation": "1275:8:170", "overrides": { - "id": 118444, + "id": 118435, "nodeType": "OverrideSpecifier", "overrides": [], "src": "1328:8:170" }, "parameters": { - "id": 118443, + "id": 118434, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118442, + "id": 118433, "mutability": "mutable", "name": "_tokenId", "nameLocation": "1301:8:170", "nodeType": "VariableDeclaration", - "scope": 118715, + "scope": 118706, "src": "1293:16:170", "stateVariable": false, "storageLocation": "default", @@ -6502,7 +6502,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118441, + "id": 118432, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1293:7:170", @@ -6517,17 +6517,17 @@ "src": "1283:32:170" }, "returnParameters": { - "id": 118447, + "id": 118438, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118446, + "id": 118437, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 118715, + "scope": 118706, "src": "1346:13:170", "stateVariable": false, "storageLocation": "memory", @@ -6536,7 +6536,7 @@ "typeString": "string" }, "typeName": { - "id": 118445, + "id": 118436, "name": "string", "nodeType": "ElementaryTypeName", "src": "1346:6:170", @@ -6550,35 +6550,35 @@ ], "src": "1345:15:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "view", "virtual": false, "visibility": "public" }, { - "id": 118844, + "id": 118835, "nodeType": "FunctionDefinition", "src": "4104:1153:170", "nodes": [], "body": { - "id": 118843, + "id": 118834, "nodeType": "Block", "src": "4219:1038:170", "nodes": [], "statements": [ { "assignments": [ - 118726 + 118717 ], "declarations": [ { "constant": false, - "id": 118726, + "id": 118717, "mutability": "mutable", "name": "output", "nameLocation": "4243:6:170", "nodeType": "VariableDeclaration", - "scope": 118843, + "scope": 118834, "src": "4229:20:170", "stateVariable": false, "storageLocation": "memory", @@ -6587,7 +6587,7 @@ "typeString": "string" }, "typeName": { - "id": 118725, + "id": 118716, "name": "string", "nodeType": "ElementaryTypeName", "src": "4229:6:170", @@ -6599,37 +6599,37 @@ "visibility": "internal" } ], - "id": 118733, + "id": 118724, "initialValue": { "baseExpression": { - "id": 118727, + "id": 118718, "name": "sourceArray", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118720, + "referencedDeclaration": 118711, "src": "4252:11:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 118732, + "id": 118723, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118731, + "id": 118722, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118728, + "id": 118719, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118717, + "referencedDeclaration": 118708, "src": "4264:4:170", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6640,18 +6640,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 118729, + "id": 118720, "name": "sourceArray", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118720, + "referencedDeclaration": 118711, "src": "4271:11:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 118730, + "id": 118721, "isConstant": false, "isLValue": false, "isPure": false, @@ -6686,17 +6686,17 @@ }, { "assignments": [ - 118735 + 118726 ], "declarations": [ { "constant": false, - "id": 118735, + "id": 118726, "mutability": "mutable", "name": "greatness", "nameLocation": "4309:9:170", "nodeType": "VariableDeclaration", - "scope": 118843, + "scope": 118834, "src": "4301:17:170", "stateVariable": false, "storageLocation": "default", @@ -6705,7 +6705,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118734, + "id": 118725, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4301:7:170", @@ -6717,23 +6717,23 @@ "visibility": "internal" } ], - "id": 118739, + "id": 118730, "initialValue": { "commonType": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, - "id": 118738, + "id": 118729, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118736, + "id": 118727, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118717, + "referencedDeclaration": 118708, "src": "4321:4:170", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6744,7 +6744,7 @@ "operator": "%", "rightExpression": { "hexValue": "3231", - "id": 118737, + "id": 118728, "isConstant": false, "isLValue": false, "isPure": true, @@ -6773,17 +6773,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118742, + "id": 118733, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118740, + "id": 118731, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118735, + "referencedDeclaration": 118726, "src": "4344:9:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6794,7 +6794,7 @@ "operator": ">", "rightExpression": { "hexValue": "3134", - "id": 118741, + "id": 118732, "isConstant": false, "isLValue": false, "isPure": true, @@ -6814,27 +6814,27 @@ "typeString": "bool" } }, - "id": 118761, + "id": 118752, "nodeType": "IfStatement", "src": "4340:155:170", "trueBody": { - "id": 118760, + "id": 118751, "nodeType": "Block", "src": "4360:135:170", "statements": [ { "expression": { - "id": 118758, + "id": 118749, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118743, + "id": 118734, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "4374:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6848,11 +6848,11 @@ { "arguments": [ { - "id": 118748, + "id": 118739, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "4424:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6861,7 +6861,7 @@ }, { "hexValue": "20", - "id": 118749, + "id": 118740, "isConstant": false, "isLValue": false, "isPure": true, @@ -6877,34 +6877,34 @@ }, { "baseExpression": { - "id": 118750, + "id": 118741, "name": "suffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119476, + "referencedDeclaration": 119467, "src": "4437:8:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118755, + "id": 118746, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118754, + "id": 118745, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118751, + "id": 118742, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118717, + "referencedDeclaration": 118708, "src": "4446:4:170", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -6915,18 +6915,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 118752, + "id": 118743, "name": "suffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119476, + "referencedDeclaration": 119467, "src": "4453:8:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118753, + "id": 118744, "isConstant": false, "isLValue": false, "isPure": false, @@ -6973,7 +6973,7 @@ } ], "expression": { - "id": 118746, + "id": 118737, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6984,7 +6984,7 @@ "typeString": "abi" } }, - "id": 118747, + "id": 118738, "isConstant": false, "isLValue": false, "isPure": true, @@ -6997,7 +6997,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118756, + "id": 118747, "isConstant": false, "isLValue": false, "isPure": false, @@ -7020,7 +7020,7 @@ "typeString": "bytes memory" } ], - "id": 118745, + "id": 118736, "isConstant": false, "isLValue": false, "isPure": true, @@ -7032,14 +7032,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118744, + "id": 118735, "name": "string", "nodeType": "ElementaryTypeName", "src": "4383:6:170", "typeDescriptions": {} } }, - "id": 118757, + "id": 118748, "isConstant": false, "isLValue": false, "isPure": false, @@ -7060,7 +7060,7 @@ "typeString": "string memory" } }, - "id": 118759, + "id": 118750, "nodeType": "ExpressionStatement", "src": "4374:110:170" } @@ -7073,17 +7073,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118764, + "id": 118755, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118762, + "id": 118753, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118735, + "referencedDeclaration": 118726, "src": "4508:9:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7094,7 +7094,7 @@ "operator": ">=", "rightExpression": { "hexValue": "3139", - "id": 118763, + "id": 118754, "isConstant": false, "isLValue": false, "isPure": true, @@ -7114,27 +7114,27 @@ "typeString": "bool" } }, - "id": 118840, + "id": 118831, "nodeType": "IfStatement", "src": "4504:724:170", "trueBody": { - "id": 118839, + "id": 118830, "nodeType": "Block", "src": "4525:703:170", "statements": [ { "assignments": [ - 118770 + 118761 ], "declarations": [ { "constant": false, - "id": 118770, + "id": 118761, "mutability": "mutable", "name": "name", "nameLocation": "4556:4:170", "nodeType": "VariableDeclaration", - "scope": 118839, + "scope": 118830, "src": "4539:21:170", "stateVariable": false, "storageLocation": "memory", @@ -7144,7 +7144,7 @@ }, "typeName": { "baseType": { - "id": 118768, + "id": 118759, "name": "string", "nodeType": "ElementaryTypeName", "src": "4539:6:170", @@ -7153,10 +7153,10 @@ "typeString": "string" } }, - "id": 118769, + "id": 118760, "length": { "hexValue": "32", - "id": 118767, + "id": 118758, "isConstant": false, "isLValue": false, "isPure": true, @@ -7180,34 +7180,34 @@ "visibility": "internal" } ], - "id": 118771, + "id": 118762, "nodeType": "VariableDeclarationStatement", "src": "4539:21:170" }, { "expression": { - "id": 118781, + "id": 118772, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118772, + "id": 118763, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "4574:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118774, + "id": 118765, "indexExpression": { "hexValue": "30", - "id": 118773, + "id": 118764, "isConstant": false, "isLValue": false, "isPure": true, @@ -7236,34 +7236,34 @@ "operator": "=", "rightHandSide": { "baseExpression": { - "id": 118775, + "id": 118766, "name": "namePrefixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119549, + "referencedDeclaration": 119540, "src": "4584:12:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118780, + "id": 118771, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118779, + "id": 118770, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118776, + "id": 118767, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118717, + "referencedDeclaration": 118708, "src": "4597:4:170", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -7274,18 +7274,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 118777, + "id": 118768, "name": "namePrefixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119549, + "referencedDeclaration": 119540, "src": "4604:12:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118778, + "id": 118769, "isConstant": false, "isLValue": false, "isPure": false, @@ -7321,34 +7321,34 @@ "typeString": "string memory" } }, - "id": 118782, + "id": 118773, "nodeType": "ExpressionStatement", "src": "4574:50:170" }, { "expression": { - "id": 118792, + "id": 118783, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 118783, + "id": 118774, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "4638:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118785, + "id": 118776, "indexExpression": { "hexValue": "31", - "id": 118784, + "id": 118775, "isConstant": false, "isLValue": false, "isPure": true, @@ -7377,34 +7377,34 @@ "operator": "=", "rightHandSide": { "baseExpression": { - "id": 118786, + "id": 118777, "name": "nameSuffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119571, + "referencedDeclaration": 119562, "src": "4648:12:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118791, + "id": 118782, "indexExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118790, + "id": 118781, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118787, + "id": 118778, "name": "rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118717, + "referencedDeclaration": 118708, "src": "4661:4:170", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -7415,18 +7415,18 @@ "operator": "%", "rightExpression": { "expression": { - "id": 118788, + "id": 118779, "name": "nameSuffixes", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119571, + "referencedDeclaration": 119562, "src": "4668:12:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", "typeString": "string storage ref[] storage ref" } }, - "id": 118789, + "id": 118780, "isConstant": false, "isLValue": false, "isPure": false, @@ -7462,7 +7462,7 @@ "typeString": "string memory" } }, - "id": 118793, + "id": 118784, "nodeType": "ExpressionStatement", "src": "4638:50:170" }, @@ -7472,17 +7472,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 118796, + "id": 118787, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 118794, + "id": 118785, "name": "greatness", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118735, + "referencedDeclaration": 118726, "src": "4706:9:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7493,7 +7493,7 @@ "operator": "==", "rightExpression": { "hexValue": "3139", - "id": 118795, + "id": 118786, "isConstant": false, "isLValue": false, "isPure": true, @@ -7514,23 +7514,23 @@ } }, "falseBody": { - "id": 118837, + "id": 118828, "nodeType": "Block", "src": "4875:343:170", "statements": [ { "expression": { - "id": 118835, + "id": 118826, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118817, + "id": 118808, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "4893:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7545,7 +7545,7 @@ "arguments": [ { "hexValue": "22", - "id": 118822, + "id": 118813, "isConstant": false, "isLValue": false, "isPure": true, @@ -7561,21 +7561,21 @@ }, { "baseExpression": { - "id": 118823, + "id": 118814, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "5001:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118825, + "id": 118816, "indexExpression": { "hexValue": "30", - "id": 118824, + "id": 118815, "isConstant": false, "isLValue": false, "isPure": true, @@ -7602,7 +7602,7 @@ }, { "hexValue": "20", - "id": 118826, + "id": 118817, "isConstant": false, "isLValue": false, "isPure": true, @@ -7618,21 +7618,21 @@ }, { "baseExpression": { - "id": 118827, + "id": 118818, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "5063:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118829, + "id": 118820, "indexExpression": { "hexValue": "31", - "id": 118828, + "id": 118819, "isConstant": false, "isLValue": false, "isPure": true, @@ -7659,7 +7659,7 @@ }, { "hexValue": "2220", - "id": 118830, + "id": 118821, "isConstant": false, "isLValue": false, "isPure": true, @@ -7674,11 +7674,11 @@ "value": "\" " }, { - "id": 118831, + "id": 118822, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "5126:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7687,7 +7687,7 @@ }, { "hexValue": "202b31", - "id": 118832, + "id": 118823, "isConstant": false, "isLValue": false, "isPure": true, @@ -7734,7 +7734,7 @@ } ], "expression": { - "id": 118820, + "id": 118811, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -7745,7 +7745,7 @@ "typeString": "abi" } }, - "id": 118821, + "id": 118812, "isConstant": false, "isLValue": false, "isPure": true, @@ -7758,7 +7758,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118833, + "id": 118824, "isConstant": false, "isLValue": false, "isPure": false, @@ -7781,7 +7781,7 @@ "typeString": "bytes memory" } ], - "id": 118819, + "id": 118810, "isConstant": false, "isLValue": false, "isPure": true, @@ -7793,14 +7793,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118818, + "id": 118809, "name": "string", "nodeType": "ElementaryTypeName", "src": "4902:6:170", "typeDescriptions": {} } }, - "id": 118834, + "id": 118825, "isConstant": false, "isLValue": false, "isPure": false, @@ -7821,33 +7821,33 @@ "typeString": "string memory" } }, - "id": 118836, + "id": 118827, "nodeType": "ExpressionStatement", "src": "4893:310:170" } ] }, - "id": 118838, + "id": 118829, "nodeType": "IfStatement", "src": "4702:516:170", "trueBody": { - "id": 118816, + "id": 118807, "nodeType": "Block", "src": "4723:146:170", "statements": [ { "expression": { - "id": 118814, + "id": 118805, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 118797, + "id": 118788, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "4741:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7862,7 +7862,7 @@ "arguments": [ { "hexValue": "22", - "id": 118802, + "id": 118793, "isConstant": false, "isLValue": false, "isPure": true, @@ -7878,21 +7878,21 @@ }, { "baseExpression": { - "id": 118803, + "id": 118794, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "4800:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118805, + "id": 118796, "indexExpression": { "hexValue": "30", - "id": 118804, + "id": 118795, "isConstant": false, "isLValue": false, "isPure": true, @@ -7919,7 +7919,7 @@ }, { "hexValue": "20", - "id": 118806, + "id": 118797, "isConstant": false, "isLValue": false, "isPure": true, @@ -7935,21 +7935,21 @@ }, { "baseExpression": { - "id": 118807, + "id": 118798, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118770, + "referencedDeclaration": 118761, "src": "4814:4:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$2_memory_ptr", "typeString": "string memory[2] memory" } }, - "id": 118809, + "id": 118800, "indexExpression": { "hexValue": "31", - "id": 118808, + "id": 118799, "isConstant": false, "isLValue": false, "isPure": true, @@ -7976,7 +7976,7 @@ }, { "hexValue": "2220", - "id": 118810, + "id": 118801, "isConstant": false, "isLValue": false, "isPure": true, @@ -7991,11 +7991,11 @@ "value": "\" " }, { - "id": 118811, + "id": 118802, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "4829:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8031,7 +8031,7 @@ } ], "expression": { - "id": 118800, + "id": 118791, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8042,7 +8042,7 @@ "typeString": "abi" } }, - "id": 118801, + "id": 118792, "isConstant": false, "isLValue": false, "isPure": true, @@ -8055,7 +8055,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 118812, + "id": 118803, "isConstant": false, "isLValue": false, "isPure": false, @@ -8078,7 +8078,7 @@ "typeString": "bytes memory" } ], - "id": 118799, + "id": 118790, "isConstant": false, "isLValue": false, "isPure": true, @@ -8090,14 +8090,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 118798, + "id": 118789, "name": "string", "nodeType": "ElementaryTypeName", "src": "4750:6:170", "typeDescriptions": {} } }, - "id": 118813, + "id": 118804, "isConstant": false, "isLValue": false, "isPure": false, @@ -8118,7 +8118,7 @@ "typeString": "string memory" } }, - "id": 118815, + "id": 118806, "nodeType": "ExpressionStatement", "src": "4741:113:170" } @@ -8130,19 +8130,19 @@ }, { "expression": { - "id": 118841, + "id": 118832, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118726, + "referencedDeclaration": 118717, "src": "5244:6:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 118724, - "id": 118842, + "functionReturnParameters": 118715, + "id": 118833, "nodeType": "Return", "src": "5237:13:170" } @@ -8154,17 +8154,17 @@ "name": "luck", "nameLocation": "4113:4:170", "parameters": { - "id": 118721, + "id": 118712, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118717, + "id": 118708, "mutability": "mutable", "name": "rand", "nameLocation": "4133:4:170", "nodeType": "VariableDeclaration", - "scope": 118844, + "scope": 118835, "src": "4127:10:170", "stateVariable": false, "storageLocation": "default", @@ -8173,7 +8173,7 @@ "typeString": "uint8" }, "typeName": { - "id": 118716, + "id": 118707, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "4127:5:170", @@ -8186,12 +8186,12 @@ }, { "constant": false, - "id": 118720, + "id": 118711, "mutability": "mutable", "name": "sourceArray", "nameLocation": "4163:11:170", "nodeType": "VariableDeclaration", - "scope": 118844, + "scope": 118835, "src": "4147:27:170", "stateVariable": false, "storageLocation": "memory", @@ -8201,7 +8201,7 @@ }, "typeName": { "baseType": { - "id": 118718, + "id": 118709, "name": "string", "nodeType": "ElementaryTypeName", "src": "4147:6:170", @@ -8210,7 +8210,7 @@ "typeString": "string" } }, - "id": 118719, + "id": 118710, "nodeType": "ArrayTypeName", "src": "4147:8:170", "typeDescriptions": { @@ -8224,17 +8224,17 @@ "src": "4117:63:170" }, "returnParameters": { - "id": 118724, + "id": 118715, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118723, + "id": 118714, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 118844, + "scope": 118835, "src": "4204:13:170", "stateVariable": false, "storageLocation": "memory", @@ -8243,7 +8243,7 @@ "typeString": "string" }, "typeName": { - "id": 118722, + "id": 118713, "name": "string", "nodeType": "ElementaryTypeName", "src": "4204:6:170", @@ -8257,83 +8257,83 @@ ], "src": "4203:15:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "view", "virtual": false, "visibility": "internal" }, { - "id": 118964, + "id": 118955, "nodeType": "FunctionDefinition", "src": "5263:677:170", "nodes": [], "body": { - "id": 118963, + "id": 118954, "nodeType": "Block", "src": "5309:631:170", "nodes": [], "statements": [ { "assignments": [ - 118851 + 118842 ], "declarations": [ { "constant": false, - "id": 118851, + "id": 118842, "mutability": "mutable", "name": "loot", "nameLocation": "5332:4:170", "nodeType": "VariableDeclaration", - "scope": 118963, + "scope": 118954, "src": "5319:17:170", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 118850, + "id": 118841, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 118849, + "id": 118840, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "5319:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "5319:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 118855, + "id": 118846, "initialValue": { "baseExpression": { - "id": 118852, + "id": 118843, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118429, + "referencedDeclaration": 118420, "src": "5339:8:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 118854, + "id": 118845, "indexExpression": { - "id": 118853, + "id": 118844, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118846, + "referencedDeclaration": 118837, "src": "5348:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8347,7 +8347,7 @@ "nodeType": "IndexAccess", "src": "5339:18:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage", + "typeIdentifier": "t_struct$_Loot_$118405_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -8356,17 +8356,17 @@ }, { "assignments": [ - 118860 + 118851 ], "declarations": [ { "constant": false, - "id": 118860, + "id": 118851, "mutability": "mutable", "name": "random_numbers", "nameLocation": "5382:14:170", "nodeType": "VariableDeclaration", - "scope": 118963, + "scope": 118954, "src": "5367:29:170", "stateVariable": false, "storageLocation": "memory", @@ -8376,7 +8376,7 @@ }, "typeName": { "baseType": { - "id": 118858, + "id": 118849, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "5367:5:170", @@ -8385,7 +8385,7 @@ "typeString": "uint8" } }, - "id": 118859, + "id": 118850, "nodeType": "ArrayTypeName", "src": "5367:7:170", "typeDescriptions": { @@ -8396,30 +8396,30 @@ "visibility": "internal" } ], - "id": 118867, + "id": 118858, "initialValue": { "arguments": [ { "expression": { - "id": 118862, + "id": 118853, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5409:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118863, + "id": 118854, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 118392, + "referencedDeclaration": 118383, "src": "5409:13:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8428,7 +8428,7 @@ }, { "hexValue": "38", - "id": 118864, + "id": 118855, "isConstant": false, "isLValue": false, "isPure": true, @@ -8443,11 +8443,11 @@ "value": "8" }, { - "id": 118865, + "id": 118856, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118418, + "referencedDeclaration": 118409, "src": "5426:14:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8470,18 +8470,18 @@ "typeString": "uint256" } ], - "id": 118861, + "id": 118852, "name": "getRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119746, + "referencedDeclaration": 119737, "src": "5399:9:170", "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": 118866, + "id": 118857, "isConstant": false, "isLValue": false, "isPure": false, @@ -8501,32 +8501,32 @@ }, { "expression": { - "id": 118877, + "id": 118868, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118868, + "id": 118859, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5451:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118870, + "id": 118861, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 118396, + "referencedDeclaration": 118387, "src": "5451:11:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8539,21 +8539,21 @@ "arguments": [ { "baseExpression": { - "id": 118872, + "id": 118863, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5470:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118874, + "id": 118865, "indexExpression": { "hexValue": "30", - "id": 118873, + "id": 118864, "isConstant": false, "isLValue": false, "isPure": true, @@ -8579,11 +8579,11 @@ } }, { - "id": 118875, + "id": 118866, "name": "weapons", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119345, + "referencedDeclaration": 119336, "src": "5489:7:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8602,18 +8602,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118871, + "id": 118862, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5465:4:170", "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": 118876, + "id": 118867, "isConstant": false, "isLValue": false, "isPure": false, @@ -8634,38 +8634,38 @@ "typeString": "string storage ref" } }, - "id": 118878, + "id": 118869, "nodeType": "ExpressionStatement", "src": "5451:46:170" }, { "expression": { - "id": 118888, + "id": 118879, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118879, + "id": 118870, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5507:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118881, + "id": 118872, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 118398, + "referencedDeclaration": 118389, "src": "5507:10:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8678,21 +8678,21 @@ "arguments": [ { "baseExpression": { - "id": 118883, + "id": 118874, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5525:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118885, + "id": 118876, "indexExpression": { "hexValue": "31", - "id": 118884, + "id": 118875, "isConstant": false, "isLValue": false, "isPure": true, @@ -8718,11 +8718,11 @@ } }, { - "id": 118886, + "id": 118877, "name": "chestArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119364, + "referencedDeclaration": 119355, "src": "5544:10:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8741,18 +8741,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118882, + "id": 118873, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5520:4:170", "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": 118887, + "id": 118878, "isConstant": false, "isLValue": false, "isPure": false, @@ -8773,38 +8773,38 @@ "typeString": "string storage ref" } }, - "id": 118889, + "id": 118880, "nodeType": "ExpressionStatement", "src": "5507:48:170" }, { "expression": { - "id": 118899, + "id": 118890, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118890, + "id": 118881, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5565:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118892, + "id": 118883, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 118400, + "referencedDeclaration": 118391, "src": "5565:9:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8817,21 +8817,21 @@ "arguments": [ { "baseExpression": { - "id": 118894, + "id": 118885, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5582:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118896, + "id": 118887, "indexExpression": { "hexValue": "32", - "id": 118895, + "id": 118886, "isConstant": false, "isLValue": false, "isPure": true, @@ -8857,11 +8857,11 @@ } }, { - "id": 118897, + "id": 118888, "name": "headArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119383, + "referencedDeclaration": 119374, "src": "5601:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -8880,18 +8880,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118893, + "id": 118884, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5577:4:170", "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": 118898, + "id": 118889, "isConstant": false, "isLValue": false, "isPure": false, @@ -8912,38 +8912,38 @@ "typeString": "string storage ref" } }, - "id": 118900, + "id": 118891, "nodeType": "ExpressionStatement", "src": "5565:46:170" }, { "expression": { - "id": 118910, + "id": 118901, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118901, + "id": 118892, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5621:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118903, + "id": 118894, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 118402, + "referencedDeclaration": 118393, "src": "5621:10:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8956,21 +8956,21 @@ "arguments": [ { "baseExpression": { - "id": 118905, + "id": 118896, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5639:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118907, + "id": 118898, "indexExpression": { "hexValue": "33", - "id": 118906, + "id": 118897, "isConstant": false, "isLValue": false, "isPure": true, @@ -8996,11 +8996,11 @@ } }, { - "id": 118908, + "id": 118899, "name": "waistArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119402, + "referencedDeclaration": 119393, "src": "5658:10:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9019,18 +9019,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118904, + "id": 118895, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5634:4:170", "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": 118909, + "id": 118900, "isConstant": false, "isLValue": false, "isPure": false, @@ -9051,38 +9051,38 @@ "typeString": "string storage ref" } }, - "id": 118911, + "id": 118902, "nodeType": "ExpressionStatement", "src": "5621:48:170" }, { "expression": { - "id": 118921, + "id": 118912, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118912, + "id": 118903, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5679:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118914, + "id": 118905, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 118404, + "referencedDeclaration": 118395, "src": "5679:9:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9095,21 +9095,21 @@ "arguments": [ { "baseExpression": { - "id": 118916, + "id": 118907, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5696:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118918, + "id": 118909, "indexExpression": { "hexValue": "34", - "id": 118917, + "id": 118908, "isConstant": false, "isLValue": false, "isPure": true, @@ -9135,11 +9135,11 @@ } }, { - "id": 118919, + "id": 118910, "name": "footArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119421, + "referencedDeclaration": 119412, "src": "5715:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9158,18 +9158,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118915, + "id": 118906, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5691:4:170", "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": 118920, + "id": 118911, "isConstant": false, "isLValue": false, "isPure": false, @@ -9190,38 +9190,38 @@ "typeString": "string storage ref" } }, - "id": 118922, + "id": 118913, "nodeType": "ExpressionStatement", "src": "5679:46:170" }, { "expression": { - "id": 118932, + "id": 118923, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118923, + "id": 118914, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5735:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118925, + "id": 118916, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 118406, + "referencedDeclaration": 118397, "src": "5735:9:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9234,21 +9234,21 @@ "arguments": [ { "baseExpression": { - "id": 118927, + "id": 118918, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5752:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118929, + "id": 118920, "indexExpression": { "hexValue": "35", - "id": 118928, + "id": 118919, "isConstant": false, "isLValue": false, "isPure": true, @@ -9274,11 +9274,11 @@ } }, { - "id": 118930, + "id": 118921, "name": "handArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119440, + "referencedDeclaration": 119431, "src": "5771:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9297,18 +9297,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118926, + "id": 118917, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5747:4:170", "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": 118931, + "id": 118922, "isConstant": false, "isLValue": false, "isPure": false, @@ -9329,38 +9329,38 @@ "typeString": "string storage ref" } }, - "id": 118933, + "id": 118924, "nodeType": "ExpressionStatement", "src": "5735:46:170" }, { "expression": { - "id": 118943, + "id": 118934, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118934, + "id": 118925, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5791:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118936, + "id": 118927, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 118408, + "referencedDeclaration": 118399, "src": "5791:9:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9373,21 +9373,21 @@ "arguments": [ { "baseExpression": { - "id": 118938, + "id": 118929, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5808:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118940, + "id": 118931, "indexExpression": { "hexValue": "36", - "id": 118939, + "id": 118930, "isConstant": false, "isLValue": false, "isPure": true, @@ -9413,11 +9413,11 @@ } }, { - "id": 118941, + "id": 118932, "name": "necklaces", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119447, + "referencedDeclaration": 119438, "src": "5827:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9436,18 +9436,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118937, + "id": 118928, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5803:4:170", "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": 118942, + "id": 118933, "isConstant": false, "isLValue": false, "isPure": false, @@ -9468,38 +9468,38 @@ "typeString": "string storage ref" } }, - "id": 118944, + "id": 118935, "nodeType": "ExpressionStatement", "src": "5791:46:170" }, { "expression": { - "id": 118954, + "id": 118945, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118945, + "id": 118936, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5847:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118947, + "id": 118938, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 118410, + "referencedDeclaration": 118401, "src": "5847:9:170", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -9512,21 +9512,21 @@ "arguments": [ { "baseExpression": { - "id": 118949, + "id": 118940, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118860, + "referencedDeclaration": 118851, "src": "5864:14:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 118951, + "id": 118942, "indexExpression": { "hexValue": "37", - "id": 118950, + "id": 118941, "isConstant": false, "isLValue": false, "isPure": true, @@ -9552,11 +9552,11 @@ } }, { - "id": 118952, + "id": 118943, "name": "rings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119456, + "referencedDeclaration": 119447, "src": "5883:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -9575,18 +9575,18 @@ "typeString": "string storage ref[] storage ref" } ], - "id": 118948, + "id": 118939, "name": "luck", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118844, + "referencedDeclaration": 118835, "src": "5859:4:170", "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": 118953, + "id": 118944, "isConstant": false, "isLValue": false, "isPure": false, @@ -9607,41 +9607,41 @@ "typeString": "string storage ref" } }, - "id": 118955, + "id": 118946, "nodeType": "ExpressionStatement", "src": "5847:42:170" }, { "expression": { - "id": 118961, + "id": 118952, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118956, + "id": 118947, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118851, + "referencedDeclaration": 118842, "src": "5899:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118958, + "id": 118949, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "5899:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -9649,38 +9649,38 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118959, + "id": 118950, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "5912:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 118960, + "id": 118951, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 119577, + "referencedDeclaration": 119568, "src": "5912:21:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, "src": "5899:34:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, - "id": 118962, + "id": 118953, "nodeType": "ExpressionStatement", "src": "5899:34:170" } @@ -9693,17 +9693,17 @@ "name": "revealNFT", "nameLocation": "5272:9:170", "parameters": { - "id": 118847, + "id": 118838, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118846, + "id": 118837, "mutability": "mutable", "name": "_tokenId", "nameLocation": "5290:8:170", "nodeType": "VariableDeclaration", - "scope": 118964, + "scope": 118955, "src": "5282:16:170", "stateVariable": false, "storageLocation": "default", @@ -9712,7 +9712,7 @@ "typeString": "uint256" }, "typeName": { - "id": 118845, + "id": 118836, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5282:7:170", @@ -9727,88 +9727,88 @@ "src": "5281:18:170" }, "returnParameters": { - "id": 118848, + "id": 118839, "nodeType": "ParameterList", "parameters": [], "src": "5309:0:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 119011, + "id": 119002, "nodeType": "FunctionDefinition", "src": "5946:324:170", "nodes": [], "body": { - "id": 119010, + "id": 119001, "nodeType": "Block", "src": "5984:286:170", "nodes": [], "statements": [ { "assignments": [ - 118971 + 118962 ], "declarations": [ { "constant": false, - "id": 118971, + "id": 118962, "mutability": "mutable", "name": "loot", "nameLocation": "6032:4:170", "nodeType": "VariableDeclaration", - "scope": 119010, + "scope": 119001, "src": "6019:17:170", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 118970, + "id": 118961, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 118969, + "id": 118960, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "6019:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "6019:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 118975, + "id": 118966, "initialValue": { "baseExpression": { - "id": 118972, + "id": 118963, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118429, + "referencedDeclaration": 118420, "src": "6039:8:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 118974, + "id": 118965, "indexExpression": { - "id": 118973, + "id": 118964, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118416, + "referencedDeclaration": 118407, "src": "6048:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9822,7 +9822,7 @@ "nodeType": "IndexAccess", "src": "6039:17:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage", + "typeIdentifier": "t_struct$_Loot_$118405_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -9831,32 +9831,32 @@ }, { "expression": { - "id": 118980, + "id": 118971, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118976, + "id": 118967, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118971, + "referencedDeclaration": 118962, "src": "6066:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118978, + "id": 118969, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 118394, + "referencedDeclaration": 118385, "src": "6066:10:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9866,11 +9866,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 118979, + "id": 118970, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118966, + "referencedDeclaration": 118957, "src": "6079:5:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9883,41 +9883,41 @@ "typeString": "address" } }, - "id": 118981, + "id": 118972, "nodeType": "ExpressionStatement", "src": "6066:18:170" }, { "expression": { - "id": 118987, + "id": 118978, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118982, + "id": 118973, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118971, + "referencedDeclaration": 118962, "src": "6094:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118984, + "id": 118975, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "6094:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -9925,69 +9925,69 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 118985, + "id": 118976, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "6107:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 118986, + "id": 118977, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 119576, + "referencedDeclaration": 119567, "src": "6107:19:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, "src": "6094:32:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, - "id": 118988, + "id": 118979, "nodeType": "ExpressionStatement", "src": "6094:32:170" }, { "expression": { - "id": 118993, + "id": 118984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 118989, + "id": 118980, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118971, + "referencedDeclaration": 118962, "src": "6136:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot storage pointer" } }, - "id": 118991, + "id": 118982, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 118392, + "referencedDeclaration": 118383, "src": "6136:13:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9997,11 +9997,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 118992, + "id": 118983, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "6152:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10014,7 +10014,7 @@ "typeString": "uint256" } }, - "id": 118994, + "id": 118985, "nodeType": "ExpressionStatement", "src": "6136:24:170" }, @@ -10022,11 +10022,11 @@ "expression": { "arguments": [ { - "id": 118996, + "id": 118987, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "6184:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10041,18 +10041,18 @@ "typeString": "uint256" } ], - "id": 118995, + "id": 118986, "name": "requestRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119629, + "referencedDeclaration": 119620, "src": "6170:13:170", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 118997, + "id": 118988, "isConstant": false, "isLValue": false, "isPure": false, @@ -10067,7 +10067,7 @@ "typeString": "tuple()" } }, - "id": 118998, + "id": 118989, "nodeType": "ExpressionStatement", "src": "6170:23:170" }, @@ -10075,11 +10075,11 @@ "expression": { "arguments": [ { - "id": 119000, + "id": 118991, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118966, + "referencedDeclaration": 118957, "src": "6209:5:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10087,11 +10087,11 @@ } }, { - "id": 119001, + "id": 118992, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118416, + "referencedDeclaration": 118407, "src": "6216:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10110,7 +10110,7 @@ "typeString": "uint256" } ], - "id": 118999, + "id": 118990, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -10121,7 +10121,7 @@ "typeString": "function (address,uint256)" } }, - "id": 119002, + "id": 118993, "isConstant": false, "isLValue": false, "isPure": false, @@ -10136,13 +10136,13 @@ "typeString": "tuple()" } }, - "id": 119003, + "id": 118994, "nodeType": "ExpressionStatement", "src": "6203:21:170" }, { "expression": { - "id": 119005, + "id": 118996, "isConstant": false, "isLValue": false, "isPure": false, @@ -10152,11 +10152,11 @@ "prefix": false, "src": "6234:9:170", "subExpression": { - "id": 119004, + "id": 118995, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118416, + "referencedDeclaration": 118407, "src": "6234:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10168,13 +10168,13 @@ "typeString": "uint256" } }, - "id": 119006, + "id": 118997, "nodeType": "ExpressionStatement", "src": "6234:9:170" }, { "expression": { - "id": 119008, + "id": 118999, "isConstant": false, "isLValue": false, "isPure": false, @@ -10184,11 +10184,11 @@ "prefix": false, "src": "6253:10:170", "subExpression": { - "id": 119007, + "id": 118998, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "6253:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10200,7 +10200,7 @@ "typeString": "uint256" } }, - "id": 119009, + "id": 119000, "nodeType": "ExpressionStatement", "src": "6253:10:170" } @@ -10213,17 +10213,17 @@ "name": "mint", "nameLocation": "5955:4:170", "parameters": { - "id": 118967, + "id": 118958, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 118966, + "id": 118957, "mutability": "mutable", "name": "_addr", "nameLocation": "5968:5:170", "nodeType": "VariableDeclaration", - "scope": 119011, + "scope": 119002, "src": "5960:13:170", "stateVariable": false, "storageLocation": "default", @@ -10232,7 +10232,7 @@ "typeString": "address" }, "typeName": { - "id": 118965, + "id": 118956, "name": "address", "nodeType": "ElementaryTypeName", "src": "5960:7:170", @@ -10248,40 +10248,40 @@ "src": "5959:15:170" }, "returnParameters": { - "id": 118968, + "id": 118959, "nodeType": "ParameterList", "parameters": [], "src": "5984:0:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 119042, + "id": 119033, "nodeType": "FunctionDefinition", "src": "6282:192:170", "nodes": [], "body": { - "id": 119041, + "id": 119032, "nodeType": "Block", "src": "6329:145:170", "nodes": [], "statements": [ { "assignments": [ - 119019 + 119010 ], "declarations": [ { "constant": false, - "id": 119019, + "id": 119010, "mutability": "mutable", "name": "balance", "nameLocation": "6347:7:170", "nodeType": "VariableDeclaration", - "scope": 119041, + "scope": 119032, "src": "6339:15:170", "stateVariable": false, "storageLocation": "default", @@ -10290,7 +10290,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119018, + "id": 119009, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6339:7:170", @@ -10302,19 +10302,19 @@ "visibility": "internal" } ], - "id": 119025, + "id": 119016, "initialValue": { "expression": { "arguments": [ { - "id": 119022, + "id": 119013, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "6365:4:170", "typeDescriptions": { - "typeIdentifier": "t_contract$_MLoot_$119321", + "typeIdentifier": "t_contract$_MLoot_$119312", "typeString": "contract MLoot" } } @@ -10322,11 +10322,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_MLoot_$119321", + "typeIdentifier": "t_contract$_MLoot_$119312", "typeString": "contract MLoot" } ], - "id": 119021, + "id": 119012, "isConstant": false, "isLValue": false, "isPure": true, @@ -10338,14 +10338,14 @@ "typeString": "type(address)" }, "typeName": { - "id": 119020, + "id": 119011, "name": "address", "nodeType": "ElementaryTypeName", "src": "6357:7:170", "typeDescriptions": {} } }, - "id": 119023, + "id": 119014, "isConstant": false, "isLValue": false, "isPure": false, @@ -10360,7 +10360,7 @@ "typeString": "address" } }, - "id": 119024, + "id": 119015, "isConstant": false, "isLValue": false, "isPure": false, @@ -10384,17 +10384,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119029, + "id": 119020, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119027, + "id": 119018, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119019, + "referencedDeclaration": 119010, "src": "6396:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10405,7 +10405,7 @@ "operator": ">", "rightExpression": { "hexValue": "30", - "id": 119028, + "id": 119019, "isConstant": false, "isLValue": false, "isPure": true, @@ -10427,7 +10427,7 @@ }, { "hexValue": "73756666696369656e742066756e6473", - "id": 119030, + "id": 119021, "isConstant": false, "isLValue": false, "isPure": true, @@ -10453,7 +10453,7 @@ "typeString": "literal_string \"sufficient funds\"" } ], - "id": 119026, + "id": 119017, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -10467,7 +10467,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 119031, + "id": 119022, "isConstant": false, "isLValue": false, "isPure": false, @@ -10482,7 +10482,7 @@ "typeString": "tuple()" } }, - "id": 119032, + "id": 119023, "nodeType": "ExpressionStatement", "src": "6388:40:170" }, @@ -10490,11 +10490,11 @@ "expression": { "arguments": [ { - "id": 119038, + "id": 119029, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119019, + "referencedDeclaration": 119010, "src": "6459:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10512,11 +10512,11 @@ "expression": { "arguments": [ { - "id": 119035, + "id": 119026, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119013, + "referencedDeclaration": 119004, "src": "6446:2:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10531,7 +10531,7 @@ "typeString": "address" } ], - "id": 119034, + "id": 119025, "isConstant": false, "isLValue": false, "isPure": true, @@ -10543,7 +10543,7 @@ "typeString": "type(address payable)" }, "typeName": { - "id": 119033, + "id": 119024, "name": "address", "nodeType": "ElementaryTypeName", "src": "6438:8:170", @@ -10551,7 +10551,7 @@ "typeDescriptions": {} } }, - "id": 119036, + "id": 119027, "isConstant": false, "isLValue": false, "isPure": false, @@ -10566,7 +10566,7 @@ "typeString": "address payable" } }, - "id": 119037, + "id": 119028, "isConstant": false, "isLValue": false, "isPure": false, @@ -10579,7 +10579,7 @@ "typeString": "function (uint256)" } }, - "id": 119039, + "id": 119030, "isConstant": false, "isLValue": false, "isPure": false, @@ -10594,7 +10594,7 @@ "typeString": "tuple()" } }, - "id": 119040, + "id": 119031, "nodeType": "ExpressionStatement", "src": "6438:29:170" } @@ -10605,13 +10605,13 @@ "kind": "function", "modifiers": [ { - "id": 119016, + "id": 119007, "kind": "modifierInvocation", "modifierName": { - "id": 119015, + "id": 119006, "name": "onlyOwner", "nodeType": "IdentifierPath", - "referencedDeclaration": 118440, + "referencedDeclaration": 118431, "src": "6319:9:170" }, "nodeType": "ModifierInvocation", @@ -10621,17 +10621,17 @@ "name": "withdraw", "nameLocation": "6291:8:170", "parameters": { - "id": 119014, + "id": 119005, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119013, + "id": 119004, "mutability": "mutable", "name": "to", "nameLocation": "6308:2:170", "nodeType": "VariableDeclaration", - "scope": 119042, + "scope": 119033, "src": "6300:10:170", "stateVariable": false, "storageLocation": "default", @@ -10640,7 +10640,7 @@ "typeString": "address" }, "typeName": { - "id": 119012, + "id": 119003, "name": "address", "nodeType": "ElementaryTypeName", "src": "6300:7:170", @@ -10656,23 +10656,23 @@ "src": "6299:12:170" }, "returnParameters": { - "id": 119017, + "id": 119008, "nodeType": "ParameterList", "parameters": [], "src": "6329:0:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 119062, + "id": 119053, "nodeType": "FunctionDefinition", "src": "6480:214:170", "nodes": [], "body": { - "id": 119061, + "id": 119052, "nodeType": "Block", "src": "6619:75:170", "nodes": [], @@ -10681,11 +10681,11 @@ "expression": { "arguments": [ { - "id": 119057, + "id": 119048, "name": "_targetAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119044, + "referencedDeclaration": 119035, "src": "6663:14:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10693,11 +10693,11 @@ } }, { - "id": 119058, + "id": 119049, "name": "_amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119048, + "referencedDeclaration": 119039, "src": "6679:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10719,11 +10719,11 @@ "expression": { "arguments": [ { - "id": 119054, + "id": 119045, "name": "_contractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119046, + "referencedDeclaration": 119037, "src": "6636:16:170", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10738,7 +10738,7 @@ "typeString": "address" } ], - "id": 119053, + "id": 119044, "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -10749,7 +10749,7 @@ "typeString": "type(contract IERC20)" } }, - "id": 119055, + "id": 119046, "isConstant": false, "isLValue": false, "isPure": false, @@ -10764,7 +10764,7 @@ "typeString": "contract IERC20" } }, - "id": 119056, + "id": 119047, "isConstant": false, "isLValue": false, "isPure": false, @@ -10778,7 +10778,7 @@ "typeString": "function (address,uint256) external returns (bool)" } }, - "id": 119059, + "id": 119050, "isConstant": false, "isLValue": false, "isPure": false, @@ -10793,7 +10793,7 @@ "typeString": "bool" } }, - "id": 119060, + "id": 119051, "nodeType": "ExpressionStatement", "src": "6629:58:170" } @@ -10804,13 +10804,13 @@ "kind": "function", "modifiers": [ { - "id": 119051, + "id": 119042, "kind": "modifierInvocation", "modifierName": { - "id": 119050, + "id": 119041, "name": "onlyOwner", "nodeType": "IdentifierPath", - "referencedDeclaration": 118440, + "referencedDeclaration": 118431, "src": "6609:9:170" }, "nodeType": "ModifierInvocation", @@ -10820,17 +10820,17 @@ "name": "withdrawErc20", "nameLocation": "6489:13:170", "parameters": { - "id": 119049, + "id": 119040, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119044, + "id": 119035, "mutability": "mutable", "name": "_targetAddress", "nameLocation": "6520:14:170", "nodeType": "VariableDeclaration", - "scope": 119062, + "scope": 119053, "src": "6512:22:170", "stateVariable": false, "storageLocation": "default", @@ -10839,7 +10839,7 @@ "typeString": "address" }, "typeName": { - "id": 119043, + "id": 119034, "name": "address", "nodeType": "ElementaryTypeName", "src": "6512:7:170", @@ -10853,12 +10853,12 @@ }, { "constant": false, - "id": 119046, + "id": 119037, "mutability": "mutable", "name": "_contractAddress", "nameLocation": "6552:16:170", "nodeType": "VariableDeclaration", - "scope": 119062, + "scope": 119053, "src": "6544:24:170", "stateVariable": false, "storageLocation": "default", @@ -10867,7 +10867,7 @@ "typeString": "address" }, "typeName": { - "id": 119045, + "id": 119036, "name": "address", "nodeType": "ElementaryTypeName", "src": "6544:7:170", @@ -10881,12 +10881,12 @@ }, { "constant": false, - "id": 119048, + "id": 119039, "mutability": "mutable", "name": "_amount", "nameLocation": "6586:7:170", "nodeType": "VariableDeclaration", - "scope": 119062, + "scope": 119053, "src": "6578:15:170", "stateVariable": false, "storageLocation": "default", @@ -10895,7 +10895,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119047, + "id": 119038, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6578:7:170", @@ -10910,88 +10910,88 @@ "src": "6502:97:170" }, "returnParameters": { - "id": 119052, + "id": 119043, "nodeType": "ParameterList", "parameters": [], "src": "6619:0:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 119118, + "id": 119109, "nodeType": "FunctionDefinition", "src": "6699:515:170", "nodes": [], "body": { - "id": 119117, + "id": 119108, "nodeType": "Block", "src": "6874:340:170", "nodes": [], "statements": [ { "assignments": [ - 119085 + 119076 ], "declarations": [ { "constant": false, - "id": 119085, + "id": 119076, "mutability": "mutable", "name": "loot", "nameLocation": "6896:4:170", "nodeType": "VariableDeclaration", - "scope": 119117, + "scope": 119108, "src": "6884:16:170", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 119084, + "id": 119075, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119083, + "id": 119074, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "6884:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "6884:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 119089, + "id": 119080, "initialValue": { "baseExpression": { - "id": 119086, + "id": 119077, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118429, + "referencedDeclaration": 118420, "src": "6903:8:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 119088, + "id": 119079, "indexExpression": { - "id": 119087, + "id": 119078, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119064, + "referencedDeclaration": 119055, "src": "6912:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11005,7 +11005,7 @@ "nodeType": "IndexAccess", "src": "6903:18:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage", + "typeIdentifier": "t_struct$_Loot_$118405_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -11017,38 +11017,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 119095, + "id": 119086, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119091, + "id": 119082, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "6939:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119092, + "id": 119083, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "6939:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -11056,28 +11056,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 119093, + "id": 119084, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "6953:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 119094, + "id": 119085, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 119577, + "referencedDeclaration": 119568, "src": "6953:21:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -11089,7 +11089,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 119096, + "id": 119087, "isConstant": false, "isLValue": false, "isPure": true, @@ -11115,7 +11115,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 119090, + "id": 119081, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -11129,7 +11129,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 119097, + "id": 119088, "isConstant": false, "isLValue": false, "isPure": false, @@ -11144,7 +11144,7 @@ "typeString": "tuple()" } }, - "id": 119098, + "id": 119089, "nodeType": "ExpressionStatement", "src": "6931:62:170" }, @@ -11153,25 +11153,25 @@ "components": [ { "expression": { - "id": 119099, + "id": 119090, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7023:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119100, + "id": 119091, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 118396, + "referencedDeclaration": 118387, "src": "7023:11:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11180,25 +11180,25 @@ }, { "expression": { - "id": 119101, + "id": 119092, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7048:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119102, + "id": 119093, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 118398, + "referencedDeclaration": 118389, "src": "7048:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11207,25 +11207,25 @@ }, { "expression": { - "id": 119103, + "id": 119094, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7072:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119104, + "id": 119095, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 118400, + "referencedDeclaration": 118391, "src": "7072:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11234,25 +11234,25 @@ }, { "expression": { - "id": 119105, + "id": 119096, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7095:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119106, + "id": 119097, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 118402, + "referencedDeclaration": 118393, "src": "7095:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11261,25 +11261,25 @@ }, { "expression": { - "id": 119107, + "id": 119098, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7119:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119108, + "id": 119099, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 118404, + "referencedDeclaration": 118395, "src": "7119:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11288,25 +11288,25 @@ }, { "expression": { - "id": 119109, + "id": 119100, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7142:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119110, + "id": 119101, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 118406, + "referencedDeclaration": 118397, "src": "7142:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11315,25 +11315,25 @@ }, { "expression": { - "id": 119111, + "id": 119102, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7165:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119112, + "id": 119103, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 118408, + "referencedDeclaration": 118399, "src": "7165:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11342,25 +11342,25 @@ }, { "expression": { - "id": 119113, + "id": 119104, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119085, + "referencedDeclaration": 119076, "src": "7188:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119114, + "id": 119105, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 118410, + "referencedDeclaration": 118401, "src": "7188:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11368,7 +11368,7 @@ } } ], - "id": 119115, + "id": 119106, "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": 119082, - "id": 119116, + "functionReturnParameters": 119073, + "id": 119107, "nodeType": "Return", "src": "7003:204:170" } @@ -11395,17 +11395,17 @@ "name": "getStructInfo", "nameLocation": "6708:13:170", "parameters": { - "id": 119065, + "id": 119056, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119064, + "id": 119055, "mutability": "mutable", "name": "_tokenId", "nameLocation": "6730:8:170", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6722:16:170", "stateVariable": false, "storageLocation": "default", @@ -11414,7 +11414,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119063, + "id": 119054, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6722:7:170", @@ -11429,17 +11429,17 @@ "src": "6721:18:170" }, "returnParameters": { - "id": 119082, + "id": 119073, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119067, + "id": 119058, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6762:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11448,7 +11448,7 @@ "typeString": "string" }, "typeName": { - "id": 119066, + "id": 119057, "name": "string", "nodeType": "ElementaryTypeName", "src": "6762:6:170", @@ -11461,12 +11461,12 @@ }, { "constant": false, - "id": 119069, + "id": 119060, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6776:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11475,7 +11475,7 @@ "typeString": "string" }, "typeName": { - "id": 119068, + "id": 119059, "name": "string", "nodeType": "ElementaryTypeName", "src": "6776:6:170", @@ -11488,12 +11488,12 @@ }, { "constant": false, - "id": 119071, + "id": 119062, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6790:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11502,7 +11502,7 @@ "typeString": "string" }, "typeName": { - "id": 119070, + "id": 119061, "name": "string", "nodeType": "ElementaryTypeName", "src": "6790:6:170", @@ -11515,12 +11515,12 @@ }, { "constant": false, - "id": 119073, + "id": 119064, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6804:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11529,7 +11529,7 @@ "typeString": "string" }, "typeName": { - "id": 119072, + "id": 119063, "name": "string", "nodeType": "ElementaryTypeName", "src": "6804:6:170", @@ -11542,12 +11542,12 @@ }, { "constant": false, - "id": 119075, + "id": 119066, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6818:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11556,7 +11556,7 @@ "typeString": "string" }, "typeName": { - "id": 119074, + "id": 119065, "name": "string", "nodeType": "ElementaryTypeName", "src": "6818:6:170", @@ -11569,12 +11569,12 @@ }, { "constant": false, - "id": 119077, + "id": 119068, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6832:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11583,7 +11583,7 @@ "typeString": "string" }, "typeName": { - "id": 119076, + "id": 119067, "name": "string", "nodeType": "ElementaryTypeName", "src": "6832:6:170", @@ -11596,12 +11596,12 @@ }, { "constant": false, - "id": 119079, + "id": 119070, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6846:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11610,7 +11610,7 @@ "typeString": "string" }, "typeName": { - "id": 119078, + "id": 119069, "name": "string", "nodeType": "ElementaryTypeName", "src": "6846:6:170", @@ -11623,12 +11623,12 @@ }, { "constant": false, - "id": 119081, + "id": 119072, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119118, + "scope": 119109, "src": "6860:13:170", "stateVariable": false, "storageLocation": "memory", @@ -11637,7 +11637,7 @@ "typeString": "string" }, "typeName": { - "id": 119080, + "id": 119071, "name": "string", "nodeType": "ElementaryTypeName", "src": "6860:6:170", @@ -11651,83 +11651,83 @@ ], "src": "6761:113:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 119198, + "id": 119189, "nodeType": "FunctionDefinition", "src": "7219:620:170", "nodes": [], "body": { - "id": 119197, + "id": 119188, "nodeType": "Block", "src": "7351:488:170", "nodes": [], "statements": [ { "assignments": [ - 119141 + 119132 ], "declarations": [ { "constant": false, - "id": 119141, + "id": 119132, "mutability": "mutable", "name": "loot", "nameLocation": "7373:4:170", "nodeType": "VariableDeclaration", - "scope": 119197, + "scope": 119188, "src": "7361:16:170", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot" }, "typeName": { - "id": 119140, + "id": 119131, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119139, + "id": 119130, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "7361:4:170" }, - "referencedDeclaration": 118414, + "referencedDeclaration": 118405, "src": "7361:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_storage_ptr", "typeString": "struct MLoot.Loot" } }, "visibility": "internal" } ], - "id": 119145, + "id": 119136, "initialValue": { "baseExpression": { - "id": 119142, + "id": 119133, "name": "lootList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118429, + "referencedDeclaration": 118420, "src": "7380:8:170", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118414_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Loot_$118405_storage_$", "typeString": "mapping(uint256 => struct MLoot.Loot storage ref)" } }, - "id": 119144, + "id": 119135, "indexExpression": { - "id": 119143, + "id": 119134, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119120, + "referencedDeclaration": 119111, "src": "7389:8:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11741,7 +11741,7 @@ "nodeType": "IndexAccess", "src": "7380:18:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_storage", + "typeIdentifier": "t_struct$_Loot_$118405_storage", "typeString": "struct MLoot.Loot storage ref" } }, @@ -11753,38 +11753,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 119151, + "id": 119142, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119147, + "id": 119138, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7416:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119148, + "id": 119139, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 118413, + "referencedDeclaration": 118404, "src": "7416:10:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -11792,28 +11792,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 119149, + "id": 119140, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "7430:11:170", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 119150, + "id": 119141, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 119577, + "referencedDeclaration": 119568, "src": "7430:21:170", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -11825,7 +11825,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 119152, + "id": 119143, "isConstant": false, "isLValue": false, "isPure": true, @@ -11851,7 +11851,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 119146, + "id": 119137, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -11865,7 +11865,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 119153, + "id": 119144, "isConstant": false, "isLValue": false, "isPure": false, @@ -11880,7 +11880,7 @@ "typeString": "tuple()" } }, - "id": 119154, + "id": 119145, "nodeType": "ExpressionStatement", "src": "7408:62:170" }, @@ -11890,11 +11890,11 @@ { "arguments": [ { - "id": 119156, + "id": 119147, "name": "weapons", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119345, + "referencedDeclaration": 119336, "src": "7508:7:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -11903,25 +11903,25 @@ }, { "expression": { - "id": 119157, + "id": 119148, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7516:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119158, + "id": 119149, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Weapon", "nodeType": "MemberAccess", - "referencedDeclaration": 118396, + "referencedDeclaration": 118387, "src": "7516:11:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -11940,18 +11940,18 @@ "typeString": "string memory" } ], - "id": 119155, + "id": 119146, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7500:7:170", "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": 119159, + "id": 119150, "isConstant": false, "isLValue": false, "isPure": false, @@ -11969,11 +11969,11 @@ { "arguments": [ { - "id": 119161, + "id": 119152, "name": "chestArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119364, + "referencedDeclaration": 119355, "src": "7550:10:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -11982,25 +11982,25 @@ }, { "expression": { - "id": 119162, + "id": 119153, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7561:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119163, + "id": 119154, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Chest", "nodeType": "MemberAccess", - "referencedDeclaration": 118398, + "referencedDeclaration": 118389, "src": "7561:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12019,18 +12019,18 @@ "typeString": "string memory" } ], - "id": 119160, + "id": 119151, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7542:7:170", "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": 119164, + "id": 119155, "isConstant": false, "isLValue": false, "isPure": false, @@ -12048,11 +12048,11 @@ { "arguments": [ { - "id": 119166, + "id": 119157, "name": "headArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119383, + "referencedDeclaration": 119374, "src": "7594:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12061,25 +12061,25 @@ }, { "expression": { - "id": 119167, + "id": 119158, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7604:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119168, + "id": 119159, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Head", "nodeType": "MemberAccess", - "referencedDeclaration": 118400, + "referencedDeclaration": 118391, "src": "7604:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12098,18 +12098,18 @@ "typeString": "string memory" } ], - "id": 119165, + "id": 119156, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7586:7:170", "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": 119169, + "id": 119160, "isConstant": false, "isLValue": false, "isPure": false, @@ -12127,11 +12127,11 @@ { "arguments": [ { - "id": 119171, + "id": 119162, "name": "waistArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119402, + "referencedDeclaration": 119393, "src": "7636:10:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12140,25 +12140,25 @@ }, { "expression": { - "id": 119172, + "id": 119163, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7647:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119173, + "id": 119164, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Waist", "nodeType": "MemberAccess", - "referencedDeclaration": 118402, + "referencedDeclaration": 118393, "src": "7647:10:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12177,18 +12177,18 @@ "typeString": "string memory" } ], - "id": 119170, + "id": 119161, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7628:7:170", "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": 119174, + "id": 119165, "isConstant": false, "isLValue": false, "isPure": false, @@ -12206,11 +12206,11 @@ { "arguments": [ { - "id": 119176, + "id": 119167, "name": "footArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119421, + "referencedDeclaration": 119412, "src": "7680:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12219,25 +12219,25 @@ }, { "expression": { - "id": 119177, + "id": 119168, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7690:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119178, + "id": 119169, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Foot", "nodeType": "MemberAccess", - "referencedDeclaration": 118404, + "referencedDeclaration": 118395, "src": "7690:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12256,18 +12256,18 @@ "typeString": "string memory" } ], - "id": 119175, + "id": 119166, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7672:7:170", "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": 119179, + "id": 119170, "isConstant": false, "isLValue": false, "isPure": false, @@ -12285,11 +12285,11 @@ { "arguments": [ { - "id": 119181, + "id": 119172, "name": "handArmor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119440, + "referencedDeclaration": 119431, "src": "7722:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12298,25 +12298,25 @@ }, { "expression": { - "id": 119182, + "id": 119173, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7732:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119183, + "id": 119174, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Hand", "nodeType": "MemberAccess", - "referencedDeclaration": 118406, + "referencedDeclaration": 118397, "src": "7732:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12335,18 +12335,18 @@ "typeString": "string memory" } ], - "id": 119180, + "id": 119171, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7714:7:170", "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": 119184, + "id": 119175, "isConstant": false, "isLValue": false, "isPure": false, @@ -12364,11 +12364,11 @@ { "arguments": [ { - "id": 119186, + "id": 119177, "name": "necklaces", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119447, + "referencedDeclaration": 119438, "src": "7764:9:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12377,25 +12377,25 @@ }, { "expression": { - "id": 119187, + "id": 119178, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7774:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119188, + "id": 119179, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Neck", "nodeType": "MemberAccess", - "referencedDeclaration": 118408, + "referencedDeclaration": 118399, "src": "7774:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12414,18 +12414,18 @@ "typeString": "string memory" } ], - "id": 119185, + "id": 119176, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7756:7:170", "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": 119189, + "id": 119180, "isConstant": false, "isLValue": false, "isPure": false, @@ -12443,11 +12443,11 @@ { "arguments": [ { - "id": 119191, + "id": 119182, "name": "rings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119456, + "referencedDeclaration": 119447, "src": "7806:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", @@ -12456,25 +12456,25 @@ }, { "expression": { - "id": 119192, + "id": 119183, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119141, + "referencedDeclaration": 119132, "src": "7812:4:170", "typeDescriptions": { - "typeIdentifier": "t_struct$_Loot_$118414_memory_ptr", + "typeIdentifier": "t_struct$_Loot_$118405_memory_ptr", "typeString": "struct MLoot.Loot memory" } }, - "id": 119193, + "id": 119184, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Ring", "nodeType": "MemberAccess", - "referencedDeclaration": 118410, + "referencedDeclaration": 118401, "src": "7812:9:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -12493,18 +12493,18 @@ "typeString": "string memory" } ], - "id": 119190, + "id": 119181, "name": "indexOf", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119320, + "referencedDeclaration": 119311, "src": "7798:7:170", "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": 119194, + "id": 119185, "isConstant": false, "isLValue": false, "isPure": false, @@ -12520,7 +12520,7 @@ } } ], - "id": 119195, + "id": 119186, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -12533,8 +12533,8 @@ "typeString": "tuple(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 119138, - "id": 119196, + "functionReturnParameters": 119129, + "id": 119187, "nodeType": "Return", "src": "7480:352:170" } @@ -12547,17 +12547,17 @@ "name": "getStructIndexInfo", "nameLocation": "7228:18:170", "parameters": { - "id": 119121, + "id": 119112, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119120, + "id": 119111, "mutability": "mutable", "name": "_tokenId", "nameLocation": "7255:8:170", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7247:16:170", "stateVariable": false, "storageLocation": "default", @@ -12566,7 +12566,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119119, + "id": 119110, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7247:7:170", @@ -12581,17 +12581,17 @@ "src": "7246:18:170" }, "returnParameters": { - "id": 119138, + "id": 119129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119123, + "id": 119114, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7287:7:170", "stateVariable": false, "storageLocation": "default", @@ -12600,7 +12600,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119122, + "id": 119113, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7287:7:170", @@ -12613,12 +12613,12 @@ }, { "constant": false, - "id": 119125, + "id": 119116, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7295:7:170", "stateVariable": false, "storageLocation": "default", @@ -12627,7 +12627,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119124, + "id": 119115, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7295:7:170", @@ -12640,12 +12640,12 @@ }, { "constant": false, - "id": 119127, + "id": 119118, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7303:7:170", "stateVariable": false, "storageLocation": "default", @@ -12654,7 +12654,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119126, + "id": 119117, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7303:7:170", @@ -12667,12 +12667,12 @@ }, { "constant": false, - "id": 119129, + "id": 119120, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7311:7:170", "stateVariable": false, "storageLocation": "default", @@ -12681,7 +12681,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119128, + "id": 119119, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7311:7:170", @@ -12694,12 +12694,12 @@ }, { "constant": false, - "id": 119131, + "id": 119122, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7319:7:170", "stateVariable": false, "storageLocation": "default", @@ -12708,7 +12708,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119130, + "id": 119121, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7319:7:170", @@ -12721,12 +12721,12 @@ }, { "constant": false, - "id": 119133, + "id": 119124, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7327:7:170", "stateVariable": false, "storageLocation": "default", @@ -12735,7 +12735,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119132, + "id": 119123, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7327:7:170", @@ -12748,12 +12748,12 @@ }, { "constant": false, - "id": 119135, + "id": 119126, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7335:7:170", "stateVariable": false, "storageLocation": "default", @@ -12762,7 +12762,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119134, + "id": 119125, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7335:7:170", @@ -12775,12 +12775,12 @@ }, { "constant": false, - "id": 119137, + "id": 119128, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119198, + "scope": 119189, "src": "7343:7:170", "stateVariable": false, "storageLocation": "default", @@ -12789,7 +12789,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119136, + "id": 119127, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7343:7:170", @@ -12803,35 +12803,35 @@ ], "src": "7286:65:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 119262, + "id": 119253, "nodeType": "FunctionDefinition", "src": "7845:482:170", "nodes": [], "body": { - "id": 119261, + "id": 119252, "nodeType": "Block", "src": "7914:413:170", "nodes": [], "statements": [ { "assignments": [ - 119205 + 119196 ], "declarations": [ { "constant": false, - "id": 119205, + "id": 119196, "mutability": "mutable", "name": "balance", "nameLocation": "7932:7:170", "nodeType": "VariableDeclaration", - "scope": 119261, + "scope": 119252, "src": "7924:15:170", "stateVariable": false, "storageLocation": "default", @@ -12840,7 +12840,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119204, + "id": 119195, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7924:7:170", @@ -12852,12 +12852,12 @@ "visibility": "internal" } ], - "id": 119210, + "id": 119201, "initialValue": { "arguments": [ { "expression": { - "id": 119207, + "id": 119198, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -12868,7 +12868,7 @@ "typeString": "msg" } }, - "id": 119208, + "id": 119199, "isConstant": false, "isLValue": false, "isPure": false, @@ -12889,7 +12889,7 @@ "typeString": "address" } ], - "id": 119206, + "id": 119197, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -12900,7 +12900,7 @@ "typeString": "function (address) view returns (uint256)" } }, - "id": 119209, + "id": 119200, "isConstant": false, "isLValue": false, "isPure": false, @@ -12920,17 +12920,17 @@ }, { "assignments": [ - 119215 + 119206 ], "declarations": [ { "constant": false, - "id": 119215, + "id": 119206, "mutability": "mutable", "name": "tokenIds", "nameLocation": "7990:8:170", "nodeType": "VariableDeclaration", - "scope": 119261, + "scope": 119252, "src": "7973:25:170", "stateVariable": false, "storageLocation": "memory", @@ -12940,7 +12940,7 @@ }, "typeName": { "baseType": { - "id": 119213, + "id": 119204, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7973:7:170", @@ -12949,7 +12949,7 @@ "typeString": "uint256" } }, - "id": 119214, + "id": 119205, "nodeType": "ArrayTypeName", "src": "7973:9:170", "typeDescriptions": { @@ -12960,15 +12960,15 @@ "visibility": "internal" } ], - "id": 119221, + "id": 119212, "initialValue": { "arguments": [ { - "id": 119219, + "id": 119210, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119205, + "referencedDeclaration": 119196, "src": "8015:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12983,7 +12983,7 @@ "typeString": "uint256" } ], - "id": 119218, + "id": 119209, "isConstant": false, "isLValue": false, "isPure": true, @@ -12996,7 +12996,7 @@ }, "typeName": { "baseType": { - "id": 119216, + "id": 119207, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8005:7:170", @@ -13005,7 +13005,7 @@ "typeString": "uint256" } }, - "id": 119217, + "id": 119208, "nodeType": "ArrayTypeName", "src": "8005:9:170", "typeDescriptions": { @@ -13014,7 +13014,7 @@ } } }, - "id": 119220, + "id": 119211, "isConstant": false, "isLValue": false, "isPure": false, @@ -13034,17 +13034,17 @@ }, { "assignments": [ - 119223 + 119214 ], "declarations": [ { "constant": false, - "id": 119223, + "id": 119214, "mutability": "mutable", "name": "index", "nameLocation": "8041:5:170", "nodeType": "VariableDeclaration", - "scope": 119261, + "scope": 119252, "src": "8033:13:170", "stateVariable": false, "storageLocation": "default", @@ -13053,7 +13053,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119222, + "id": 119213, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8033:7:170", @@ -13065,13 +13065,13 @@ "visibility": "internal" } ], - "id": 119224, + "id": 119215, "nodeType": "VariableDeclarationStatement", "src": "8033:13:170" }, { "body": { - "id": 119257, + "id": 119248, "nodeType": "Block", "src": "8084:212:170", "statements": [ @@ -13081,7 +13081,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 119239, + "id": 119230, "isConstant": false, "isLValue": false, "isPure": false, @@ -13089,11 +13089,11 @@ "leftExpression": { "arguments": [ { - "id": 119235, + "id": 119226, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119226, + "referencedDeclaration": 119217, "src": "8109:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13108,7 +13108,7 @@ "typeString": "uint256" } ], - "id": 119234, + "id": 119225, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13119,7 +13119,7 @@ "typeString": "function (uint256) view returns (address)" } }, - "id": 119236, + "id": 119227, "isConstant": false, "isLValue": false, "isPure": false, @@ -13138,7 +13138,7 @@ "operator": "==", "rightExpression": { "expression": { - "id": 119237, + "id": 119228, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13149,7 +13149,7 @@ "typeString": "msg" } }, - "id": 119238, + "id": 119229, "isConstant": false, "isLValue": false, "isPure": false, @@ -13168,41 +13168,41 @@ "typeString": "bool" } }, - "id": 119256, + "id": 119247, "nodeType": "IfStatement", "src": "8098:188:170", "trueBody": { - "id": 119255, + "id": 119246, "nodeType": "Block", "src": "8126:160:170", "statements": [ { "expression": { - "id": 119244, + "id": 119235, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 119240, + "id": 119231, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119215, + "referencedDeclaration": 119206, "src": "8144:8:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "id": 119242, + "id": 119233, "indexExpression": { - "id": 119241, + "id": 119232, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119223, + "referencedDeclaration": 119214, "src": "8153:5:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13223,11 +13223,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119243, + "id": 119234, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119226, + "referencedDeclaration": 119217, "src": "8162:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13240,13 +13240,13 @@ "typeString": "uint256" } }, - "id": 119245, + "id": 119236, "nodeType": "ExpressionStatement", "src": "8144:19:170" }, { "expression": { - "id": 119247, + "id": 119238, "isConstant": false, "isLValue": false, "isPure": false, @@ -13256,11 +13256,11 @@ "prefix": false, "src": "8181:7:170", "subExpression": { - "id": 119246, + "id": 119237, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119223, + "referencedDeclaration": 119214, "src": "8181:5:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13272,7 +13272,7 @@ "typeString": "uint256" } }, - "id": 119248, + "id": 119239, "nodeType": "ExpressionStatement", "src": "8181:7:170" }, @@ -13282,17 +13282,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119251, + "id": 119242, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119249, + "id": 119240, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119223, + "referencedDeclaration": 119214, "src": "8209:5:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13302,11 +13302,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 119250, + "id": 119241, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119205, + "referencedDeclaration": 119196, "src": "8218:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13319,16 +13319,16 @@ "typeString": "bool" } }, - "id": 119254, + "id": 119245, "nodeType": "IfStatement", "src": "8206:66:170", "trueBody": { - "id": 119253, + "id": 119244, "nodeType": "Block", "src": "8226:46:170", "statements": [ { - "id": 119252, + "id": 119243, "nodeType": "Break", "src": "8248:5:170" } @@ -13345,17 +13345,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119230, + "id": 119221, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119228, + "id": 119219, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119226, + "referencedDeclaration": 119217, "src": "8070:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13365,11 +13365,11 @@ "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { - "id": 119229, + "id": 119220, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118416, + "referencedDeclaration": 118407, "src": "8072:7:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13382,20 +13382,20 @@ "typeString": "bool" } }, - "id": 119258, + "id": 119249, "initializationExpression": { "assignments": [ - 119226 + 119217 ], "declarations": [ { "constant": false, - "id": 119226, + "id": 119217, "mutability": "mutable", "name": "i", "nameLocation": "8068:1:170", "nodeType": "VariableDeclaration", - "scope": 119258, + "scope": 119249, "src": "8060:9:170", "stateVariable": false, "storageLocation": "default", @@ -13404,7 +13404,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119225, + "id": 119216, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8060:7:170", @@ -13416,13 +13416,13 @@ "visibility": "internal" } ], - "id": 119227, + "id": 119218, "nodeType": "VariableDeclarationStatement", "src": "8060:9:170" }, "loopExpression": { "expression": { - "id": 119232, + "id": 119223, "isConstant": false, "isLValue": false, "isPure": false, @@ -13432,11 +13432,11 @@ "prefix": false, "src": "8080:3:170", "subExpression": { - "id": 119231, + "id": 119222, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119226, + "referencedDeclaration": 119217, "src": "8080:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13448,7 +13448,7 @@ "typeString": "uint256" } }, - "id": 119233, + "id": 119224, "nodeType": "ExpressionStatement", "src": "8080:3:170" }, @@ -13457,19 +13457,19 @@ }, { "expression": { - "id": 119259, + "id": 119250, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119215, + "referencedDeclaration": 119206, "src": "8312:8:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "functionReturnParameters": 119203, - "id": 119260, + "functionReturnParameters": 119194, + "id": 119251, "nodeType": "Return", "src": "8305:15:170" } @@ -13482,23 +13482,23 @@ "name": "getUserTokenIdList", "nameLocation": "7854:18:170", "parameters": { - "id": 119199, + "id": 119190, "nodeType": "ParameterList", "parameters": [], "src": "7872:2:170" }, "returnParameters": { - "id": 119203, + "id": 119194, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119202, + "id": 119193, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119262, + "scope": 119253, "src": "7897:16:170", "stateVariable": false, "storageLocation": "memory", @@ -13508,7 +13508,7 @@ }, "typeName": { "baseType": { - "id": 119200, + "id": 119191, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7897:7:170", @@ -13517,7 +13517,7 @@ "typeString": "uint256" } }, - "id": 119201, + "id": 119192, "nodeType": "ArrayTypeName", "src": "7897:9:170", "typeDescriptions": { @@ -13530,35 +13530,35 @@ ], "src": "7896:18:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 119320, + "id": 119311, "nodeType": "FunctionDefinition", "src": "8333:391:170", "nodes": [], "body": { - "id": 119319, + "id": 119310, "nodeType": "Block", "src": "8423:301:170", "nodes": [], "statements": [ { "assignments": [ - 119273 + 119264 ], "declarations": [ { "constant": false, - "id": 119273, + "id": 119264, "mutability": "mutable", "name": "r", "nameLocation": "8441:1:170", "nodeType": "VariableDeclaration", - "scope": 119319, + "scope": 119310, "src": "8433:9:170", "stateVariable": false, "storageLocation": "default", @@ -13567,7 +13567,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119272, + "id": 119263, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8433:7:170", @@ -13579,7 +13579,7 @@ "visibility": "internal" } ], - "id": 119274, + "id": 119265, "nodeType": "VariableDeclarationStatement", "src": "8433:9:170" }, @@ -13591,25 +13591,25 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119279, + "id": 119270, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 119276, + "id": 119267, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119265, + "referencedDeclaration": 119256, "src": "8460:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 119277, + "id": 119268, "isConstant": false, "isLValue": false, "isPure": false, @@ -13626,7 +13626,7 @@ "operator": ">", "rightExpression": { "hexValue": "30", - "id": 119278, + "id": 119269, "isConstant": false, "isLValue": false, "isPure": true, @@ -13648,7 +13648,7 @@ }, { "hexValue": "6c69737420697320656d707479", - "id": 119280, + "id": 119271, "isConstant": false, "isLValue": false, "isPure": true, @@ -13674,7 +13674,7 @@ "typeString": "literal_string \"list is empty\"" } ], - "id": 119275, + "id": 119266, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -13688,7 +13688,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 119281, + "id": 119272, "isConstant": false, "isLValue": false, "isPure": false, @@ -13703,13 +13703,13 @@ "typeString": "tuple()" } }, - "id": 119282, + "id": 119273, "nodeType": "ExpressionStatement", "src": "8452:41:170" }, { "body": { - "id": 119315, + "id": 119306, "nodeType": "Block", "src": "8536:164:170", "statements": [ @@ -13719,7 +13719,7 @@ "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, - "id": 119307, + "id": 119298, "isConstant": false, "isLValue": false, "isPure": false, @@ -13730,24 +13730,24 @@ "arguments": [ { "baseExpression": { - "id": 119296, + "id": 119287, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119265, + "referencedDeclaration": 119256, "src": "8580:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 119298, + "id": 119289, "indexExpression": { - "id": 119297, + "id": 119288, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119284, + "referencedDeclaration": 119275, "src": "8586:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13774,7 +13774,7 @@ } ], "expression": { - "id": 119294, + "id": 119285, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13785,7 +13785,7 @@ "typeString": "abi" } }, - "id": 119295, + "id": 119286, "isConstant": false, "isLValue": false, "isPure": true, @@ -13798,7 +13798,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119299, + "id": 119290, "isConstant": false, "isLValue": false, "isPure": false, @@ -13821,7 +13821,7 @@ "typeString": "bytes memory" } ], - "id": 119293, + "id": 119284, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13832,7 +13832,7 @@ "typeString": "function (bytes memory) pure returns (bytes32)" } }, - "id": 119300, + "id": 119291, "isConstant": false, "isLValue": false, "isPure": false, @@ -13854,11 +13854,11 @@ { "arguments": [ { - "id": 119304, + "id": 119295, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119267, + "referencedDeclaration": 119258, "src": "8621:5:170", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -13874,7 +13874,7 @@ } ], "expression": { - "id": 119302, + "id": 119293, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13885,7 +13885,7 @@ "typeString": "abi" } }, - "id": 119303, + "id": 119294, "isConstant": false, "isLValue": false, "isPure": true, @@ -13898,7 +13898,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 119305, + "id": 119296, "isConstant": false, "isLValue": false, "isPure": false, @@ -13921,7 +13921,7 @@ "typeString": "bytes memory" } ], - "id": 119301, + "id": 119292, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -13932,7 +13932,7 @@ "typeString": "function (bytes memory) pure returns (bytes32)" } }, - "id": 119306, + "id": 119297, "isConstant": false, "isLValue": false, "isPure": false, @@ -13953,27 +13953,27 @@ "typeString": "bool" } }, - "id": 119314, + "id": 119305, "nodeType": "IfStatement", "src": "8550:140:170", "trueBody": { - "id": 119313, + "id": 119304, "nodeType": "Block", "src": "8629:61:170", "statements": [ { "expression": { - "id": 119310, + "id": 119301, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119308, + "id": 119299, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119273, + "referencedDeclaration": 119264, "src": "8647:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13983,11 +13983,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119309, + "id": 119300, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119284, + "referencedDeclaration": 119275, "src": "8651:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14000,12 +14000,12 @@ "typeString": "uint256" } }, - "id": 119311, + "id": 119302, "nodeType": "ExpressionStatement", "src": "8647:5:170" }, { - "id": 119312, + "id": 119303, "nodeType": "Break", "src": "8670:5:170" } @@ -14019,17 +14019,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 119289, + "id": 119280, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 119286, + "id": 119277, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119284, + "referencedDeclaration": 119275, "src": "8517:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14040,18 +14040,18 @@ "operator": "<", "rightExpression": { "expression": { - "id": 119287, + "id": 119278, "name": "_list", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119265, + "referencedDeclaration": 119256, "src": "8519:5:170", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, - "id": 119288, + "id": 119279, "isConstant": false, "isLValue": false, "isPure": false, @@ -14070,20 +14070,20 @@ "typeString": "bool" } }, - "id": 119316, + "id": 119307, "initializationExpression": { "assignments": [ - 119284 + 119275 ], "declarations": [ { "constant": false, - "id": 119284, + "id": 119275, "mutability": "mutable", "name": "i", "nameLocation": "8515:1:170", "nodeType": "VariableDeclaration", - "scope": 119316, + "scope": 119307, "src": "8507:9:170", "stateVariable": false, "storageLocation": "default", @@ -14092,7 +14092,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119283, + "id": 119274, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8507:7:170", @@ -14104,13 +14104,13 @@ "visibility": "internal" } ], - "id": 119285, + "id": 119276, "nodeType": "VariableDeclarationStatement", "src": "8507:9:170" }, "loopExpression": { "expression": { - "id": 119291, + "id": 119282, "isConstant": false, "isLValue": false, "isPure": false, @@ -14120,11 +14120,11 @@ "prefix": false, "src": "8532:3:170", "subExpression": { - "id": 119290, + "id": 119281, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119284, + "referencedDeclaration": 119275, "src": "8532:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14136,7 +14136,7 @@ "typeString": "uint256" } }, - "id": 119292, + "id": 119283, "nodeType": "ExpressionStatement", "src": "8532:3:170" }, @@ -14145,19 +14145,19 @@ }, { "expression": { - "id": 119317, + "id": 119308, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119273, + "referencedDeclaration": 119264, "src": "8716:1:170", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 119271, - "id": 119318, + "functionReturnParameters": 119262, + "id": 119309, "nodeType": "Return", "src": "8709:8:170" } @@ -14169,17 +14169,17 @@ "name": "indexOf", "nameLocation": "8342:7:170", "parameters": { - "id": 119268, + "id": 119259, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119265, + "id": 119256, "mutability": "mutable", "name": "_list", "nameLocation": "8366:5:170", "nodeType": "VariableDeclaration", - "scope": 119320, + "scope": 119311, "src": "8350:21:170", "stateVariable": false, "storageLocation": "memory", @@ -14189,7 +14189,7 @@ }, "typeName": { "baseType": { - "id": 119263, + "id": 119254, "name": "string", "nodeType": "ElementaryTypeName", "src": "8350:6:170", @@ -14198,7 +14198,7 @@ "typeString": "string" } }, - "id": 119264, + "id": 119255, "nodeType": "ArrayTypeName", "src": "8350:8:170", "typeDescriptions": { @@ -14210,12 +14210,12 @@ }, { "constant": false, - "id": 119267, + "id": 119258, "mutability": "mutable", "name": "_name", "nameLocation": "8386:5:170", "nodeType": "VariableDeclaration", - "scope": 119320, + "scope": 119311, "src": "8372:19:170", "stateVariable": false, "storageLocation": "memory", @@ -14224,7 +14224,7 @@ "typeString": "string" }, "typeName": { - "id": 119266, + "id": 119257, "name": "string", "nodeType": "ElementaryTypeName", "src": "8372:6:170", @@ -14239,17 +14239,17 @@ "src": "8349:43:170" }, "returnParameters": { - "id": 119271, + "id": 119262, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119270, + "id": 119261, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 119320, + "scope": 119311, "src": "8415:7:170", "stateVariable": false, "storageLocation": "default", @@ -14258,7 +14258,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119269, + "id": 119260, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8415:7:170", @@ -14272,7 +14272,7 @@ ], "src": "8414:9:170" }, - "scope": 119321, + "scope": 119312, "stateMutability": "pure", "virtual": false, "visibility": "internal" @@ -14282,37 +14282,37 @@ "baseContracts": [ { "baseName": { - "id": 118347, + "id": 118338, "name": "Suit", "nodeType": "IdentifierPath", - "referencedDeclaration": 119572, + "referencedDeclaration": 119563, "src": "315:4:170" }, - "id": 118348, + "id": 118339, "nodeType": "InheritanceSpecifier", "src": "315:4:170" }, { "baseName": { - "id": 118349, + "id": 118340, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, "src": "321:6:170" }, - "id": 118350, + "id": 118341, "nodeType": "InheritanceSpecifier", "src": "321:6:170" }, { "baseName": { - "id": 118351, + "id": 118342, "name": "MRandom", "nodeType": "IdentifierPath", - "referencedDeclaration": 119769, + "referencedDeclaration": 119760, "src": "328:7:170" }, - "id": 118352, + "id": 118343, "nodeType": "InheritanceSpecifier", "src": "328:7:170" } @@ -14322,19 +14322,19 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 119321, - 119769, + 119312, + 119760, 72425, - 130666, - 130621, - 131042, - 173323, - 131018, - 119572 + 130686, + 130641, + 131062, + 173343, + 131038, + 119563 ], "name": "MLoot", "nameLocation": "306:5:170", - "scope": 119322, + "scope": 119313, "usedErrors": [] } ], diff --git a/packages/contracts/out/Plugin.sol/MPlugin.json b/packages/contracts/out/Plugin.sol/MPlugin.json index 67a81728..66156f53 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": 119865, + "id": 119856, "exportedSymbols": { "Loot": [ - 124355 + 124375 ], "MPlugin": [ - 119864 + 119855 ], "User": [ - 124316 + 124336 ] }, "nodeType": "SourceUnit", "src": "32:765:173", "nodes": [ { - "id": 119771, + "id": 119762, "nodeType": "PragmaDirective", "src": "32:24:173", "nodes": [], @@ -242,23 +242,23 @@ ] }, { - "id": 119774, + "id": 119765, "nodeType": "ImportDirective", "src": "57:61:173", "nodes": [], "absolutePath": "src/systems/library/Interface.sol", "file": "@systems/library/Interface.sol", "nameLocation": "-1:-1:-1", - "scope": 119865, - "sourceUnit": 124356, + "scope": 119856, + "sourceUnit": 124376, "symbolAliases": [ { "foreign": { - "id": 119772, + "id": 119763, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "66:4:173", "typeDescriptions": {} }, @@ -266,11 +266,11 @@ }, { "foreign": { - "id": 119773, + "id": 119764, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "72:4:173", "typeDescriptions": {} }, @@ -280,12 +280,12 @@ "unitAlias": "" }, { - "id": 119864, + "id": 119855, "nodeType": "ContractDefinition", "src": "121:676:173", "nodes": [ { - "id": 119776, + "id": 119767, "nodeType": "VariableDeclaration", "src": "144:26:173", "nodes": [], @@ -294,7 +294,7 @@ "mutability": "mutable", "name": "lootAddress", "nameLocation": "159:11:173", - "scope": 119864, + "scope": 119855, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -302,7 +302,7 @@ "typeString": "address" }, "typeName": { - "id": 119775, + "id": 119766, "name": "address", "nodeType": "ElementaryTypeName", "src": "144:7:173", @@ -315,7 +315,7 @@ "visibility": "public" }, { - "id": 119778, + "id": 119769, "nodeType": "VariableDeclaration", "src": "176:26:173", "nodes": [], @@ -324,7 +324,7 @@ "mutability": "mutable", "name": "userAddress", "nameLocation": "191:11:173", - "scope": 119864, + "scope": 119855, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -332,7 +332,7 @@ "typeString": "address" }, "typeName": { - "id": 119777, + "id": 119768, "name": "address", "nodeType": "ElementaryTypeName", "src": "176:7:173", @@ -345,29 +345,29 @@ "visibility": "public" }, { - "id": 119794, + "id": 119785, "nodeType": "FunctionDefinition", "src": "209:134:173", "nodes": [], "body": { - "id": 119793, + "id": 119784, "nodeType": "Block", "src": "264:79:173", "nodes": [], "statements": [ { "expression": { - "id": 119787, + "id": 119778, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119785, + "id": 119776, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119776, + "referencedDeclaration": 119767, "src": "274:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -377,11 +377,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119786, + "id": 119777, "name": "_lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119780, + "referencedDeclaration": 119771, "src": "288:12:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -394,23 +394,23 @@ "typeString": "address" } }, - "id": 119788, + "id": 119779, "nodeType": "ExpressionStatement", "src": "274:26:173" }, { "expression": { - "id": 119791, + "id": 119782, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119789, + "id": 119780, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119778, + "referencedDeclaration": 119769, "src": "310:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -420,11 +420,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119790, + "id": 119781, "name": "_userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119782, + "referencedDeclaration": 119773, "src": "324:12:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -437,7 +437,7 @@ "typeString": "address" } }, - "id": 119792, + "id": 119783, "nodeType": "ExpressionStatement", "src": "310:26:173" } @@ -449,17 +449,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 119783, + "id": 119774, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119780, + "id": 119771, "mutability": "mutable", "name": "_lootAddress", "nameLocation": "229:12:173", "nodeType": "VariableDeclaration", - "scope": 119794, + "scope": 119785, "src": "221:20:173", "stateVariable": false, "storageLocation": "default", @@ -468,7 +468,7 @@ "typeString": "address" }, "typeName": { - "id": 119779, + "id": 119770, "name": "address", "nodeType": "ElementaryTypeName", "src": "221:7:173", @@ -482,12 +482,12 @@ }, { "constant": false, - "id": 119782, + "id": 119773, "mutability": "mutable", "name": "_userAddress", "nameLocation": "250:12:173", "nodeType": "VariableDeclaration", - "scope": 119794, + "scope": 119785, "src": "242:20:173", "stateVariable": false, "storageLocation": "default", @@ -496,7 +496,7 @@ "typeString": "address" }, "typeName": { - "id": 119781, + "id": 119772, "name": "address", "nodeType": "ElementaryTypeName", "src": "242:7:173", @@ -512,76 +512,76 @@ "src": "220:43:173" }, "returnParameters": { - "id": 119784, + "id": 119775, "nodeType": "ParameterList", "parameters": [], "src": "264:0:173" }, - "scope": 119864, + "scope": 119855, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 119829, + "id": 119820, "nodeType": "FunctionDefinition", "src": "350:202:173", "nodes": [], "body": { - "id": 119828, + "id": 119819, "nodeType": "Block", "src": "379:173:173", "nodes": [], "statements": [ { "assignments": [ - 119799 + 119790 ], "declarations": [ { "constant": false, - "id": 119799, + "id": 119790, "mutability": "mutable", "name": "user", "nameLocation": "394:4:173", "nodeType": "VariableDeclaration", - "scope": 119828, + "scope": 119819, "src": "389:9:173", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" }, "typeName": { - "id": 119798, + "id": 119789, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119797, + "id": 119788, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "389:4:173" }, - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "389:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, "visibility": "internal" } ], - "id": 119803, + "id": 119794, "initialValue": { "arguments": [ { - "id": 119801, + "id": 119792, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119778, + "referencedDeclaration": 119769, "src": "406:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -596,18 +596,18 @@ "typeString": "address" } ], - "id": 119800, + "id": 119791, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "401:4:173", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_User_$124316_$", + "typeIdentifier": "t_type$_t_contract$_User_$124336_$", "typeString": "type(contract User)" } }, - "id": 119802, + "id": 119793, "isConstant": false, "isLValue": false, "isPure": false, @@ -618,7 +618,7 @@ "src": "401:17:173", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, @@ -627,53 +627,53 @@ }, { "assignments": [ - 119806 + 119797 ], "declarations": [ { "constant": false, - "id": 119806, + "id": 119797, "mutability": "mutable", "name": "loot", "nameLocation": "433:4:173", "nodeType": "VariableDeclaration", - "scope": 119828, + "scope": 119819, "src": "428:9:173", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" }, "typeName": { - "id": 119805, + "id": 119796, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119804, + "id": 119795, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "428:4:173" }, - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "428:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, "visibility": "internal" } ], - "id": 119810, + "id": 119801, "initialValue": { "arguments": [ { - "id": 119808, + "id": 119799, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119776, + "referencedDeclaration": 119767, "src": "445:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -688,18 +688,18 @@ "typeString": "address" } ], - "id": 119807, + "id": 119798, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "440:4:173", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Loot_$124355_$", + "typeIdentifier": "t_type$_t_contract$_Loot_$124375_$", "typeString": "type(contract Loot)" } }, - "id": 119809, + "id": 119800, "isConstant": false, "isLValue": false, "isPure": false, @@ -710,7 +710,7 @@ "src": "440:17:173", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, @@ -719,17 +719,17 @@ }, { "assignments": [ - 119812 + 119803 ], "declarations": [ { "constant": false, - "id": 119812, + "id": 119803, "mutability": "mutable", "name": "_user", "nameLocation": "475:5:173", "nodeType": "VariableDeclaration", - "scope": 119828, + "scope": 119819, "src": "467:13:173", "stateVariable": false, "storageLocation": "default", @@ -738,7 +738,7 @@ "typeString": "address" }, "typeName": { - "id": 119811, + "id": 119802, "name": "address", "nodeType": "ElementaryTypeName", "src": "467:7:173", @@ -751,10 +751,10 @@ "visibility": "internal" } ], - "id": 119815, + "id": 119806, "initialValue": { "expression": { - "id": 119813, + "id": 119804, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -765,7 +765,7 @@ "typeString": "msg" } }, - "id": 119814, + "id": 119805, "isConstant": false, "isLValue": false, "isPure": false, @@ -785,11 +785,11 @@ "expression": { "arguments": [ { - "id": 119819, + "id": 119810, "name": "_user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119812, + "referencedDeclaration": 119803, "src": "513:5:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -805,32 +805,32 @@ } ], "expression": { - "id": 119816, + "id": 119807, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119799, + "referencedDeclaration": 119790, "src": "503:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, - "id": 119818, + "id": 119809, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mint", "nodeType": "MemberAccess", - "referencedDeclaration": 124310, + "referencedDeclaration": 124330, "src": "503:9:173", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$", "typeString": "function (address) external" } }, - "id": 119820, + "id": 119811, "isConstant": false, "isLValue": false, "isPure": false, @@ -845,7 +845,7 @@ "typeString": "tuple()" } }, - "id": 119821, + "id": 119812, "nodeType": "ExpressionStatement", "src": "503:16:173" }, @@ -853,11 +853,11 @@ "expression": { "arguments": [ { - "id": 119825, + "id": 119816, "name": "_user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119812, + "referencedDeclaration": 119803, "src": "539:5:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -873,32 +873,32 @@ } ], "expression": { - "id": 119822, + "id": 119813, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119806, + "referencedDeclaration": 119797, "src": "529:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, - "id": 119824, + "id": 119815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mint", "nodeType": "MemberAccess", - "referencedDeclaration": 124349, + "referencedDeclaration": 124369, "src": "529:9:173", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$returns$__$", "typeString": "function (address) external" } }, - "id": 119826, + "id": 119817, "isConstant": false, "isLValue": false, "isPure": false, @@ -913,7 +913,7 @@ "typeString": "tuple()" } }, - "id": 119827, + "id": 119818, "nodeType": "ExpressionStatement", "src": "529:16:173" } @@ -926,82 +926,82 @@ "name": "multMint", "nameLocation": "359:8:173", "parameters": { - "id": 119795, + "id": 119786, "nodeType": "ParameterList", "parameters": [], "src": "367:2:173" }, "returnParameters": { - "id": 119796, + "id": 119787, "nodeType": "ParameterList", "parameters": [], "src": "379:0:173" }, - "scope": 119864, + "scope": 119855, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 119863, + "id": 119854, "nodeType": "FunctionDefinition", "src": "558:236:173", "nodes": [], "body": { - "id": 119862, + "id": 119853, "nodeType": "Block", "src": "633:161:173", "nodes": [], "statements": [ { "assignments": [ - 119838 + 119829 ], "declarations": [ { "constant": false, - "id": 119838, + "id": 119829, "mutability": "mutable", "name": "user", "nameLocation": "648:4:173", "nodeType": "VariableDeclaration", - "scope": 119862, + "scope": 119853, "src": "643:9:173", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" }, "typeName": { - "id": 119837, + "id": 119828, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119836, + "id": 119827, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "643:4:173" }, - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "643:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, "visibility": "internal" } ], - "id": 119842, + "id": 119833, "initialValue": { "arguments": [ { - "id": 119840, + "id": 119831, "name": "userAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119778, + "referencedDeclaration": 119769, "src": "660:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1016,18 +1016,18 @@ "typeString": "address" } ], - "id": 119839, + "id": 119830, "name": "User", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124316, + "referencedDeclaration": 124336, "src": "655:4:173", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_User_$124316_$", + "typeIdentifier": "t_type$_t_contract$_User_$124336_$", "typeString": "type(contract User)" } }, - "id": 119841, + "id": 119832, "isConstant": false, "isLValue": false, "isPure": false, @@ -1038,7 +1038,7 @@ "src": "655:17:173", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, @@ -1047,53 +1047,53 @@ }, { "assignments": [ - 119845 + 119836 ], "declarations": [ { "constant": false, - "id": 119845, + "id": 119836, "mutability": "mutable", "name": "loot", "nameLocation": "687:4:173", "nodeType": "VariableDeclaration", - "scope": 119862, + "scope": 119853, "src": "682:9:173", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" }, "typeName": { - "id": 119844, + "id": 119835, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119843, + "id": 119834, "name": "Loot", "nodeType": "IdentifierPath", - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "682:4:173" }, - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "682:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, "visibility": "internal" } ], - "id": 119849, + "id": 119840, "initialValue": { "arguments": [ { - "id": 119847, + "id": 119838, "name": "lootAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119776, + "referencedDeclaration": 119767, "src": "699:11:173", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1108,18 +1108,18 @@ "typeString": "address" } ], - "id": 119846, + "id": 119837, "name": "Loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 124355, + "referencedDeclaration": 124375, "src": "694:4:173", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Loot_$124355_$", + "typeIdentifier": "t_type$_t_contract$_Loot_$124375_$", "typeString": "type(contract Loot)" } }, - "id": 119848, + "id": 119839, "isConstant": false, "isLValue": false, "isPure": false, @@ -1130,7 +1130,7 @@ "src": "694:17:173", "tryCall": false, "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, @@ -1141,11 +1141,11 @@ "expression": { "arguments": [ { - "id": 119853, + "id": 119844, "name": "_lootTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119831, + "referencedDeclaration": 119822, "src": "736:12:173", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1161,32 +1161,32 @@ } ], "expression": { - "id": 119850, + "id": 119841, "name": "loot", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119845, + "referencedDeclaration": 119836, "src": "721:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_Loot_$124355", + "typeIdentifier": "t_contract$_Loot_$124375", "typeString": "contract Loot" } }, - "id": 119852, + "id": 119843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "revealNFT", "nodeType": "MemberAccess", - "referencedDeclaration": 124354, + "referencedDeclaration": 124374, "src": "721:14:173", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 119854, + "id": 119845, "isConstant": false, "isLValue": false, "isPure": false, @@ -1201,7 +1201,7 @@ "typeString": "tuple()" } }, - "id": 119855, + "id": 119846, "nodeType": "ExpressionStatement", "src": "721:28:173" }, @@ -1209,11 +1209,11 @@ "expression": { "arguments": [ { - "id": 119859, + "id": 119850, "name": "_userTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119833, + "referencedDeclaration": 119824, "src": "774:12:173", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1229,32 +1229,32 @@ } ], "expression": { - "id": 119856, + "id": 119847, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119838, + "referencedDeclaration": 119829, "src": "759:4:173", "typeDescriptions": { - "typeIdentifier": "t_contract$_User_$124316", + "typeIdentifier": "t_contract$_User_$124336", "typeString": "contract User" } }, - "id": 119858, + "id": 119849, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "revealNFT", "nodeType": "MemberAccess", - "referencedDeclaration": 124315, + "referencedDeclaration": 124335, "src": "759:14:173", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 119860, + "id": 119851, "isConstant": false, "isLValue": false, "isPure": false, @@ -1269,7 +1269,7 @@ "typeString": "tuple()" } }, - "id": 119861, + "id": 119852, "nodeType": "ExpressionStatement", "src": "759:28:173" } @@ -1282,17 +1282,17 @@ "name": "multRevealNFT", "nameLocation": "567:13:173", "parameters": { - "id": 119834, + "id": 119825, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119831, + "id": 119822, "mutability": "mutable", "name": "_lootTokenId", "nameLocation": "589:12:173", "nodeType": "VariableDeclaration", - "scope": 119863, + "scope": 119854, "src": "581:20:173", "stateVariable": false, "storageLocation": "default", @@ -1301,7 +1301,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119830, + "id": 119821, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "581:7:173", @@ -1314,12 +1314,12 @@ }, { "constant": false, - "id": 119833, + "id": 119824, "mutability": "mutable", "name": "_userTokenId", "nameLocation": "610:12:173", "nodeType": "VariableDeclaration", - "scope": 119863, + "scope": 119854, "src": "602:20:173", "stateVariable": false, "storageLocation": "default", @@ -1328,7 +1328,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119832, + "id": 119823, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "602:7:173", @@ -1343,12 +1343,12 @@ "src": "580:43:173" }, "returnParameters": { - "id": 119835, + "id": 119826, "nodeType": "ParameterList", "parameters": [], "src": "633:0:173" }, - "scope": 119864, + "scope": 119855, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" @@ -1361,11 +1361,11 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 119864 + 119855 ], "name": "MPlugin", "nameLocation": "130:7:173", - "scope": 119865, + "scope": 119856, "usedErrors": [] } ], diff --git a/packages/contracts/out/User.sol/MUser.json b/packages/contracts/out/User.sol/MUser.json index addd5aed..b57b5075 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": 120524, + "id": 120515, "exportedSymbols": { "Address": [ - 130996 + 131016 ], "Base64": [ - 118338 + 118329 ], "Context": [ - 131018 + 131038 ], "ERC165": [ - 131042 + 131062 ], "ERC721": [ 72425 ], "IERC165": [ - 173323 + 173343 ], "IERC721": [ - 130621 + 130641 ], "IERC721Metadata": [ - 130666 + 130686 ], "IERC721Receiver": [ - 130639 + 130659 ], "MRandom": [ - 119769 + 119760 ], "MUser": [ - 120523 + 120514 ], "Math": [ - 131908 + 131928 ], "SignedMath": [ - 132013 + 132033 ], "Strings": [ 72654 @@ -1472,7 +1472,7 @@ "src": "32:5975:174", "nodes": [ { - "id": 119866, + "id": 119857, "nodeType": "PragmaDirective", "src": "32:24:174", "nodes": [], @@ -1484,64 +1484,64 @@ ] }, { - "id": 119867, + "id": 119858, "nodeType": "ImportDirective", "src": "57:57:174", "nodes": [], "absolutePath": "node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol", "file": "@openzeppelin/contracts/token/ERC721/ERC721.sol", "nameLocation": "-1:-1:-1", - "scope": 120524, + "scope": 120515, "sourceUnit": 72426, "symbolAliases": [], "unitAlias": "" }, { - "id": 119868, + "id": 119859, "nodeType": "ImportDirective", "src": "115:23:174", "nodes": [], "absolutePath": "src/other/MRandom.sol", "file": "./MRandom.sol", "nameLocation": "-1:-1:-1", - "scope": 120524, - "sourceUnit": 119770, + "scope": 120515, + "sourceUnit": 119761, "symbolAliases": [], "unitAlias": "" }, { - "id": 119869, + "id": 119860, "nodeType": "ImportDirective", "src": "139:22:174", "nodes": [], "absolutePath": "src/other/Base64.sol", "file": "./Base64.sol", "nameLocation": "-1:-1:-1", - "scope": 120524, - "sourceUnit": 118339, + "scope": 120515, + "sourceUnit": 118330, "symbolAliases": [], "unitAlias": "" }, { - "id": 120523, + "id": 120514, "nodeType": "ContractDefinition", "src": "163:5843:174", "nodes": [ { - "id": 119876, + "id": 119867, "nodeType": "UsingForDirective", "src": "203:26:174", "nodes": [], "global": false, "libraryName": { - "id": 119874, + "id": 119865, "name": "Strings", "nodeType": "IdentifierPath", "referencedDeclaration": 72654, "src": "209:7:174" }, "typeName": { - "id": 119875, + "id": 119866, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "221:7:174", @@ -1552,7 +1552,7 @@ } }, { - "id": 119896, + "id": 119887, "nodeType": "StructDefinition", "src": "235:240:174", "nodes": [], @@ -1560,12 +1560,12 @@ "members": [ { "constant": false, - "id": 119878, + "id": 119869, "mutability": "mutable", "name": "randomId", "nameLocation": "265:8:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "257:16:174", "stateVariable": false, "storageLocation": "default", @@ -1574,7 +1574,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119877, + "id": 119868, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "257:7:174", @@ -1587,12 +1587,12 @@ }, { "constant": false, - "id": 119880, + "id": 119871, "mutability": "mutable", "name": "owner", "nameLocation": "291:5:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "283:13:174", "stateVariable": false, "storageLocation": "default", @@ -1601,7 +1601,7 @@ "typeString": "address" }, "typeName": { - "id": 119879, + "id": 119870, "name": "address", "nodeType": "ElementaryTypeName", "src": "283:7:174", @@ -1615,12 +1615,12 @@ }, { "constant": false, - "id": 119882, + "id": 119873, "mutability": "mutable", "name": "HP", "nameLocation": "314:2:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "306:10:174", "stateVariable": false, "storageLocation": "default", @@ -1629,7 +1629,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119881, + "id": 119872, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "306:7:174", @@ -1642,12 +1642,12 @@ }, { "constant": false, - "id": 119884, + "id": 119875, "mutability": "mutable", "name": "Attack", "nameLocation": "334:6:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "326:14:174", "stateVariable": false, "storageLocation": "default", @@ -1656,7 +1656,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119883, + "id": 119874, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "326:7:174", @@ -1669,12 +1669,12 @@ }, { "constant": false, - "id": 119886, + "id": 119877, "mutability": "mutable", "name": "AttackRange", "nameLocation": "358:11:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "350:19:174", "stateVariable": false, "storageLocation": "default", @@ -1683,7 +1683,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119885, + "id": 119876, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "350:7:174", @@ -1696,12 +1696,12 @@ }, { "constant": false, - "id": 119888, + "id": 119879, "mutability": "mutable", "name": "Speed", "nameLocation": "387:5:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "379:13:174", "stateVariable": false, "storageLocation": "default", @@ -1710,7 +1710,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119887, + "id": 119878, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "379:7:174", @@ -1723,12 +1723,12 @@ }, { "constant": false, - "id": 119890, + "id": 119881, "mutability": "mutable", "name": "Strength", "nameLocation": "410:8:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "402:16:174", "stateVariable": false, "storageLocation": "default", @@ -1737,7 +1737,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119889, + "id": 119880, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "402:7:174", @@ -1750,12 +1750,12 @@ }, { "constant": false, - "id": 119892, + "id": 119883, "mutability": "mutable", "name": "Space", "nameLocation": "436:5:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "428:13:174", "stateVariable": false, "storageLocation": "default", @@ -1764,7 +1764,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119891, + "id": 119882, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "428:7:174", @@ -1777,33 +1777,33 @@ }, { "constant": false, - "id": 119895, + "id": 119886, "mutability": "mutable", "name": "state", "nameLocation": "463:5:174", "nodeType": "VariableDeclaration", - "scope": 119896, + "scope": 119887, "src": "451:17:174", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, "typeName": { - "id": 119894, + "id": 119885, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119893, + "id": 119884, "name": "RandomState", "nodeType": "IdentifierPath", - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "451:11:174" }, - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "451:11:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -1812,11 +1812,11 @@ ], "name": "User", "nameLocation": "242:4:174", - "scope": 120523, + "scope": 120514, "visibility": "public" }, { - "id": 119898, + "id": 119889, "nodeType": "VariableDeclaration", "src": "481:22:174", "nodes": [], @@ -1825,7 +1825,7 @@ "mutability": "mutable", "name": "tokenId", "nameLocation": "496:7:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1833,7 +1833,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119897, + "id": 119888, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "481:7:174", @@ -1845,7 +1845,7 @@ "visibility": "public" }, { - "id": 119900, + "id": 119891, "nodeType": "VariableDeclaration", "src": "509:29:174", "nodes": [], @@ -1854,7 +1854,7 @@ "mutability": "mutable", "name": "waitBlockCount", "nameLocation": "524:14:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1862,7 +1862,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119899, + "id": 119890, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "509:7:174", @@ -1874,7 +1874,7 @@ "visibility": "public" }, { - "id": 119902, + "id": 119893, "nodeType": "VariableDeclaration", "src": "544:20:174", "nodes": [], @@ -1883,7 +1883,7 @@ "mutability": "mutable", "name": "owner", "nameLocation": "559:5:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1891,7 +1891,7 @@ "typeString": "address" }, "typeName": { - "id": 119901, + "id": 119892, "name": "address", "nodeType": "ElementaryTypeName", "src": "544:7:174", @@ -1904,7 +1904,7 @@ "visibility": "public" }, { - "id": 119904, + "id": 119895, "nodeType": "VariableDeclaration", "src": "570:22:174", "nodes": [], @@ -1912,7 +1912,7 @@ "mutability": "mutable", "name": "notRevealedInfo", "nameLocation": "577:15:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1920,7 +1920,7 @@ "typeString": "string" }, "typeName": { - "id": 119903, + "id": 119894, "name": "string", "nodeType": "ElementaryTypeName", "src": "570:6:174", @@ -1932,7 +1932,7 @@ "visibility": "internal" }, { - "id": 119906, + "id": 119897, "nodeType": "VariableDeclaration", "src": "598:19:174", "nodes": [], @@ -1940,7 +1940,7 @@ "mutability": "mutable", "name": "revealedDesc", "nameLocation": "605:12:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1948,7 +1948,7 @@ "typeString": "string" }, "typeName": { - "id": 119905, + "id": 119896, "name": "string", "nodeType": "ElementaryTypeName", "src": "598:6:174", @@ -1960,29 +1960,29 @@ "visibility": "internal" }, { - "id": 119941, + "id": 119932, "nodeType": "FunctionDefinition", "src": "624:370:174", "nodes": [], "body": { - "id": 119940, + "id": 119931, "nodeType": "Block", "src": "835:159:174", "nodes": [], "statements": [ { "expression": { - "id": 119926, + "id": 119917, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119923, + "id": 119914, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119902, + "referencedDeclaration": 119893, "src": "845:5:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1993,7 +1993,7 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119924, + "id": 119915, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2004,7 +2004,7 @@ "typeString": "msg" } }, - "id": 119925, + "id": 119916, "isConstant": false, "isLValue": false, "isPure": false, @@ -2023,23 +2023,23 @@ "typeString": "address" } }, - "id": 119927, + "id": 119918, "nodeType": "ExpressionStatement", "src": "845:18:174" }, { "expression": { - "id": 119930, + "id": 119921, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119928, + "id": 119919, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119900, + "referencedDeclaration": 119891, "src": "873:14:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2049,11 +2049,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119929, + "id": 119920, "name": "_waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119908, + "referencedDeclaration": 119899, "src": "890:15:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2066,23 +2066,23 @@ "typeString": "uint256" } }, - "id": 119931, + "id": 119922, "nodeType": "ExpressionStatement", "src": "873:32:174" }, { "expression": { - "id": 119934, + "id": 119925, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119932, + "id": 119923, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119904, + "referencedDeclaration": 119895, "src": "915:15:174", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -2092,11 +2092,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119933, + "id": 119924, "name": "_notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119914, + "referencedDeclaration": 119905, "src": "933:16:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2109,23 +2109,23 @@ "typeString": "string storage ref" } }, - "id": 119935, + "id": 119926, "nodeType": "ExpressionStatement", "src": "915:34:174" }, { "expression": { - "id": 119938, + "id": 119929, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 119936, + "id": 119927, "name": "revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119906, + "referencedDeclaration": 119897, "src": "959:12:174", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -2135,11 +2135,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119937, + "id": 119928, "name": "_revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119916, + "referencedDeclaration": 119907, "src": "974:13:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2152,7 +2152,7 @@ "typeString": "string storage ref" } }, - "id": 119939, + "id": 119930, "nodeType": "ExpressionStatement", "src": "959:28:174" } @@ -2164,11 +2164,11 @@ { "arguments": [ { - "id": 119919, + "id": 119910, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119910, + "referencedDeclaration": 119901, "src": "819:7:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2176,11 +2176,11 @@ } }, { - "id": 119920, + "id": 119911, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119912, + "referencedDeclaration": 119903, "src": "828:5:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2188,10 +2188,10 @@ } } ], - "id": 119921, + "id": 119912, "kind": "baseConstructorSpecifier", "modifierName": { - "id": 119918, + "id": 119909, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, @@ -2204,17 +2204,17 @@ "name": "", "nameLocation": "-1:-1:-1", "parameters": { - "id": 119917, + "id": 119908, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119908, + "id": 119899, "mutability": "mutable", "name": "_waitBlockCount", "nameLocation": "653:15:174", "nodeType": "VariableDeclaration", - "scope": 119941, + "scope": 119932, "src": "645:23:174", "stateVariable": false, "storageLocation": "default", @@ -2223,7 +2223,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119907, + "id": 119898, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "645:7:174", @@ -2236,12 +2236,12 @@ }, { "constant": false, - "id": 119910, + "id": 119901, "mutability": "mutable", "name": "_symbol", "nameLocation": "692:7:174", "nodeType": "VariableDeclaration", - "scope": 119941, + "scope": 119932, "src": "678:21:174", "stateVariable": false, "storageLocation": "memory", @@ -2250,7 +2250,7 @@ "typeString": "string" }, "typeName": { - "id": 119909, + "id": 119900, "name": "string", "nodeType": "ElementaryTypeName", "src": "678:6:174", @@ -2263,12 +2263,12 @@ }, { "constant": false, - "id": 119912, + "id": 119903, "mutability": "mutable", "name": "_name", "nameLocation": "723:5:174", "nodeType": "VariableDeclaration", - "scope": 119941, + "scope": 119932, "src": "709:19:174", "stateVariable": false, "storageLocation": "memory", @@ -2277,7 +2277,7 @@ "typeString": "string" }, "typeName": { - "id": 119911, + "id": 119902, "name": "string", "nodeType": "ElementaryTypeName", "src": "709:6:174", @@ -2290,12 +2290,12 @@ }, { "constant": false, - "id": 119914, + "id": 119905, "mutability": "mutable", "name": "_notRevealedInfo", "nameLocation": "752:16:174", "nodeType": "VariableDeclaration", - "scope": 119941, + "scope": 119932, "src": "738:30:174", "stateVariable": false, "storageLocation": "memory", @@ -2304,7 +2304,7 @@ "typeString": "string" }, "typeName": { - "id": 119913, + "id": 119904, "name": "string", "nodeType": "ElementaryTypeName", "src": "738:6:174", @@ -2317,12 +2317,12 @@ }, { "constant": false, - "id": 119916, + "id": 119907, "mutability": "mutable", "name": "_revealedDesc", "nameLocation": "792:13:174", "nodeType": "VariableDeclaration", - "scope": 119941, + "scope": 119932, "src": "778:27:174", "stateVariable": false, "storageLocation": "memory", @@ -2331,7 +2331,7 @@ "typeString": "string" }, "typeName": { - "id": 119915, + "id": 119906, "name": "string", "nodeType": "ElementaryTypeName", "src": "778:6:174", @@ -2346,18 +2346,18 @@ "src": "635:176:174" }, "returnParameters": { - "id": 119922, + "id": 119913, "nodeType": "ParameterList", "parameters": [], "src": "835:0:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { - "id": 119946, + "id": 119937, "nodeType": "VariableDeclaration", "src": "1000:40:174", "nodes": [], @@ -2366,17 +2366,17 @@ "mutability": "mutable", "name": "userList", "nameLocation": "1032:8:174", - "scope": 120523, + "scope": 120514, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User)" }, "typeName": { - "id": 119945, + "id": 119936, "keyType": { - "id": 119942, + "id": 119933, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1008:7:174", @@ -2388,23 +2388,23 @@ "nodeType": "Mapping", "src": "1000:24:174", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User)" }, "valueType": { - "id": 119944, + "id": 119935, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119943, + "id": 119934, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1019:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1019:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } } @@ -2412,77 +2412,77 @@ "visibility": "public" }, { - "id": 119993, + "id": 119984, "nodeType": "FunctionDefinition", "src": "1047:324:174", "nodes": [], "body": { - "id": 119992, + "id": 119983, "nodeType": "Block", "src": "1085:286:174", "nodes": [], "statements": [ { "assignments": [ - 119953 + 119944 ], "declarations": [ { "constant": false, - "id": 119953, + "id": 119944, "mutability": "mutable", "name": "user", "nameLocation": "1133:4:174", "nodeType": "VariableDeclaration", - "scope": 119992, + "scope": 119983, "src": "1120:17:174", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 119952, + "id": 119943, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119951, + "id": 119942, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1120:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1120:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 119957, + "id": 119948, "initialValue": { "baseExpression": { - "id": 119954, + "id": 119945, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119946, + "referencedDeclaration": 119937, "src": "1140:8:174", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 119956, + "id": 119947, "indexExpression": { - "id": 119955, + "id": 119946, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119898, + "referencedDeclaration": 119889, "src": "1149:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2496,7 +2496,7 @@ "nodeType": "IndexAccess", "src": "1140:17:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage", + "typeIdentifier": "t_struct$_User_$119887_storage", "typeString": "struct MUser.User storage ref" } }, @@ -2505,32 +2505,32 @@ }, { "expression": { - "id": 119962, + "id": 119953, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119958, + "id": 119949, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119953, + "referencedDeclaration": 119944, "src": "1167:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 119960, + "id": 119951, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 119880, + "referencedDeclaration": 119871, "src": "1167:10:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2540,11 +2540,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119961, + "id": 119952, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119948, + "referencedDeclaration": 119939, "src": "1180:5:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2557,41 +2557,41 @@ "typeString": "address" } }, - "id": 119963, + "id": 119954, "nodeType": "ExpressionStatement", "src": "1167:18:174" }, { "expression": { - "id": 119969, + "id": 119960, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119964, + "id": 119955, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119953, + "referencedDeclaration": 119944, "src": "1195:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 119966, + "id": 119957, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119895, + "referencedDeclaration": 119886, "src": "1195:10:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -2599,69 +2599,69 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 119967, + "id": 119958, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "1208:11:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 119968, + "id": 119959, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 119576, + "referencedDeclaration": 119567, "src": "1208:19:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, "src": "1195:32:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, - "id": 119970, + "id": 119961, "nodeType": "ExpressionStatement", "src": "1195:32:174" }, { "expression": { - "id": 119975, + "id": 119966, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 119971, + "id": 119962, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119953, + "referencedDeclaration": 119944, "src": "1237:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 119973, + "id": 119964, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 119878, + "referencedDeclaration": 119869, "src": "1237:13:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2671,11 +2671,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 119974, + "id": 119965, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "1253:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2688,7 +2688,7 @@ "typeString": "uint256" } }, - "id": 119976, + "id": 119967, "nodeType": "ExpressionStatement", "src": "1237:24:174" }, @@ -2696,11 +2696,11 @@ "expression": { "arguments": [ { - "id": 119978, + "id": 119969, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "1285:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2715,18 +2715,18 @@ "typeString": "uint256" } ], - "id": 119977, + "id": 119968, "name": "requestRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119629, + "referencedDeclaration": 119620, "src": "1271:13:174", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 119979, + "id": 119970, "isConstant": false, "isLValue": false, "isPure": false, @@ -2741,7 +2741,7 @@ "typeString": "tuple()" } }, - "id": 119980, + "id": 119971, "nodeType": "ExpressionStatement", "src": "1271:23:174" }, @@ -2749,11 +2749,11 @@ "expression": { "arguments": [ { - "id": 119982, + "id": 119973, "name": "_addr", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119948, + "referencedDeclaration": 119939, "src": "1310:5:174", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2761,11 +2761,11 @@ } }, { - "id": 119983, + "id": 119974, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119898, + "referencedDeclaration": 119889, "src": "1317:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2784,7 +2784,7 @@ "typeString": "uint256" } ], - "id": 119981, + "id": 119972, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -2795,7 +2795,7 @@ "typeString": "function (address,uint256)" } }, - "id": 119984, + "id": 119975, "isConstant": false, "isLValue": false, "isPure": false, @@ -2810,13 +2810,13 @@ "typeString": "tuple()" } }, - "id": 119985, + "id": 119976, "nodeType": "ExpressionStatement", "src": "1304:21:174" }, { "expression": { - "id": 119987, + "id": 119978, "isConstant": false, "isLValue": false, "isPure": false, @@ -2826,11 +2826,11 @@ "prefix": false, "src": "1335:9:174", "subExpression": { - "id": 119986, + "id": 119977, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119898, + "referencedDeclaration": 119889, "src": "1335:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2842,13 +2842,13 @@ "typeString": "uint256" } }, - "id": 119988, + "id": 119979, "nodeType": "ExpressionStatement", "src": "1335:9:174" }, { "expression": { - "id": 119990, + "id": 119981, "isConstant": false, "isLValue": false, "isPure": false, @@ -2858,11 +2858,11 @@ "prefix": false, "src": "1354:10:174", "subExpression": { - "id": 119989, + "id": 119980, "name": "randomId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119585, + "referencedDeclaration": 119576, "src": "1354:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2874,7 +2874,7 @@ "typeString": "uint256" } }, - "id": 119991, + "id": 119982, "nodeType": "ExpressionStatement", "src": "1354:10:174" } @@ -2887,17 +2887,17 @@ "name": "mint", "nameLocation": "1056:4:174", "parameters": { - "id": 119949, + "id": 119940, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119948, + "id": 119939, "mutability": "mutable", "name": "_addr", "nameLocation": "1069:5:174", "nodeType": "VariableDeclaration", - "scope": 119993, + "scope": 119984, "src": "1061:13:174", "stateVariable": false, "storageLocation": "default", @@ -2906,7 +2906,7 @@ "typeString": "address" }, "typeName": { - "id": 119947, + "id": 119938, "name": "address", "nodeType": "ElementaryTypeName", "src": "1061:7:174", @@ -2922,88 +2922,88 @@ "src": "1060:15:174" }, "returnParameters": { - "id": 119950, + "id": 119941, "nodeType": "ParameterList", "parameters": [], "src": "1085:0:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120103, + "id": 120094, "nodeType": "FunctionDefinition", "src": "1377:649:174", "nodes": [], "body": { - "id": 120102, + "id": 120093, "nodeType": "Block", "src": "1423:603:174", "nodes": [], "statements": [ { "assignments": [ - 120000 + 119991 ], "declarations": [ { "constant": false, - "id": 120000, + "id": 119991, "mutability": "mutable", "name": "user", "nameLocation": "1446:4:174", "nodeType": "VariableDeclaration", - "scope": 120102, + "scope": 120093, "src": "1433:17:174", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 119999, + "id": 119990, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 119998, + "id": 119989, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1433:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "1433:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 120004, + "id": 119995, "initialValue": { "baseExpression": { - "id": 120001, + "id": 119992, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119946, + "referencedDeclaration": 119937, "src": "1453:8:174", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 120003, + "id": 119994, "indexExpression": { - "id": 120002, + "id": 119993, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119995, + "referencedDeclaration": 119986, "src": "1462:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3017,7 +3017,7 @@ "nodeType": "IndexAccess", "src": "1453:18:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage", + "typeIdentifier": "t_struct$_User_$119887_storage", "typeString": "struct MUser.User storage ref" } }, @@ -3026,17 +3026,17 @@ }, { "assignments": [ - 120009 + 120000 ], "declarations": [ { "constant": false, - "id": 120009, + "id": 120000, "mutability": "mutable", "name": "random_numbers", "nameLocation": "1496:14:174", "nodeType": "VariableDeclaration", - "scope": 120102, + "scope": 120093, "src": "1481:29:174", "stateVariable": false, "storageLocation": "memory", @@ -3046,7 +3046,7 @@ }, "typeName": { "baseType": { - "id": 120007, + "id": 119998, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1481:5:174", @@ -3055,7 +3055,7 @@ "typeString": "uint8" } }, - "id": 120008, + "id": 119999, "nodeType": "ArrayTypeName", "src": "1481:7:174", "typeDescriptions": { @@ -3066,30 +3066,30 @@ "visibility": "internal" } ], - "id": 120016, + "id": 120007, "initialValue": { "arguments": [ { "expression": { - "id": 120011, + "id": 120002, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1536:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120012, + "id": 120003, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "randomId", "nodeType": "MemberAccess", - "referencedDeclaration": 119878, + "referencedDeclaration": 119869, "src": "1536:13:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3098,7 +3098,7 @@ }, { "hexValue": "38", - "id": 120013, + "id": 120004, "isConstant": false, "isLValue": false, "isPure": true, @@ -3113,11 +3113,11 @@ "value": "8" }, { - "id": 120014, + "id": 120005, "name": "waitBlockCount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119900, + "referencedDeclaration": 119891, "src": "1578:14:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3140,18 +3140,18 @@ "typeString": "uint256" } ], - "id": 120010, + "id": 120001, "name": "getRandom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119746, + "referencedDeclaration": 119737, "src": "1513:9:174", "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": 120015, + "id": 120006, "isConstant": false, "isLValue": false, "isPure": false, @@ -3171,32 +3171,32 @@ }, { "expression": { - "id": 120028, + "id": 120019, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120017, + "id": 120008, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1613:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120019, + "id": 120010, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 119882, + "referencedDeclaration": 119873, "src": "1613:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3209,21 +3209,21 @@ "arguments": [ { "baseExpression": { - "id": 120021, + "id": 120012, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1632:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120023, + "id": 120014, "indexExpression": { "hexValue": "30", - "id": 120022, + "id": 120013, "isConstant": false, "isLValue": false, "isPure": true, @@ -3250,7 +3250,7 @@ }, { "hexValue": "313030", - "id": 120024, + "id": 120015, "isConstant": false, "isLValue": false, "isPure": true, @@ -3266,7 +3266,7 @@ }, { "hexValue": "3130", - "id": 120025, + "id": 120016, "isConstant": false, "isLValue": false, "isPure": true, @@ -3282,7 +3282,7 @@ }, { "hexValue": "35", - "id": 120026, + "id": 120017, "isConstant": false, "isLValue": false, "isPure": true, @@ -3316,18 +3316,18 @@ "typeString": "int_const 5" } ], - "id": 120020, + "id": 120011, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1623:8:174", "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": 120027, + "id": 120018, "isConstant": false, "isLValue": false, "isPure": false, @@ -3348,38 +3348,38 @@ "typeString": "uint256" } }, - "id": 120029, + "id": 120020, "nodeType": "ExpressionStatement", "src": "1613:49:174" }, { "expression": { - "id": 120041, + "id": 120032, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120030, + "id": 120021, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1672:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120032, + "id": 120023, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 119884, + "referencedDeclaration": 119875, "src": "1672:11:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3392,21 +3392,21 @@ "arguments": [ { "baseExpression": { - "id": 120034, + "id": 120025, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1695:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120036, + "id": 120027, "indexExpression": { "hexValue": "31", - "id": 120035, + "id": 120026, "isConstant": false, "isLValue": false, "isPure": true, @@ -3433,7 +3433,7 @@ }, { "hexValue": "3330", - "id": 120037, + "id": 120028, "isConstant": false, "isLValue": false, "isPure": true, @@ -3449,7 +3449,7 @@ }, { "hexValue": "3130", - "id": 120038, + "id": 120029, "isConstant": false, "isLValue": false, "isPure": true, @@ -3465,7 +3465,7 @@ }, { "hexValue": "32", - "id": 120039, + "id": 120030, "isConstant": false, "isLValue": false, "isPure": true, @@ -3499,18 +3499,18 @@ "typeString": "int_const 2" } ], - "id": 120033, + "id": 120024, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1686:8:174", "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": 120040, + "id": 120031, "isConstant": false, "isLValue": false, "isPure": false, @@ -3531,38 +3531,38 @@ "typeString": "uint256" } }, - "id": 120042, + "id": 120033, "nodeType": "ExpressionStatement", "src": "1672:52:174" }, { "expression": { - "id": 120054, + "id": 120045, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120043, + "id": 120034, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1734:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120045, + "id": 120036, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 119886, + "referencedDeclaration": 119877, "src": "1734:16:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3575,21 +3575,21 @@ "arguments": [ { "baseExpression": { - "id": 120047, + "id": 120038, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1762:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120049, + "id": 120040, "indexExpression": { "hexValue": "32", - "id": 120048, + "id": 120039, "isConstant": false, "isLValue": false, "isPure": true, @@ -3616,7 +3616,7 @@ }, { "hexValue": "32", - "id": 120050, + "id": 120041, "isConstant": false, "isLValue": false, "isPure": true, @@ -3632,7 +3632,7 @@ }, { "hexValue": "3530", - "id": 120051, + "id": 120042, "isConstant": false, "isLValue": false, "isPure": true, @@ -3648,7 +3648,7 @@ }, { "hexValue": "31", - "id": 120052, + "id": 120043, "isConstant": false, "isLValue": false, "isPure": true, @@ -3682,18 +3682,18 @@ "typeString": "int_const 1" } ], - "id": 120046, + "id": 120037, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1753:8:174", "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": 120053, + "id": 120044, "isConstant": false, "isLValue": false, "isPure": false, @@ -3714,38 +3714,38 @@ "typeString": "uint256" } }, - "id": 120055, + "id": 120046, "nodeType": "ExpressionStatement", "src": "1734:56:174" }, { "expression": { - "id": 120067, + "id": 120058, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120056, + "id": 120047, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1800:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120058, + "id": 120049, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 119888, + "referencedDeclaration": 119879, "src": "1800:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3758,21 +3758,21 @@ "arguments": [ { "baseExpression": { - "id": 120060, + "id": 120051, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1822:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120062, + "id": 120053, "indexExpression": { "hexValue": "33", - "id": 120061, + "id": 120052, "isConstant": false, "isLValue": false, "isPure": true, @@ -3799,7 +3799,7 @@ }, { "hexValue": "33", - "id": 120063, + "id": 120054, "isConstant": false, "isLValue": false, "isPure": true, @@ -3815,7 +3815,7 @@ }, { "hexValue": "3530", - "id": 120064, + "id": 120055, "isConstant": false, "isLValue": false, "isPure": true, @@ -3831,7 +3831,7 @@ }, { "hexValue": "32", - "id": 120065, + "id": 120056, "isConstant": false, "isLValue": false, "isPure": true, @@ -3865,18 +3865,18 @@ "typeString": "int_const 2" } ], - "id": 120059, + "id": 120050, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1813:8:174", "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": 120066, + "id": 120057, "isConstant": false, "isLValue": false, "isPure": false, @@ -3897,38 +3897,38 @@ "typeString": "uint256" } }, - "id": 120068, + "id": 120059, "nodeType": "ExpressionStatement", "src": "1800:50:174" }, { "expression": { - "id": 120080, + "id": 120071, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120069, + "id": 120060, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1860:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120071, + "id": 120062, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 119890, + "referencedDeclaration": 119881, "src": "1860:13:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3941,21 +3941,21 @@ "arguments": [ { "baseExpression": { - "id": 120073, + "id": 120064, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1885:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120075, + "id": 120066, "indexExpression": { "hexValue": "34", - "id": 120074, + "id": 120065, "isConstant": false, "isLValue": false, "isPure": true, @@ -3982,7 +3982,7 @@ }, { "hexValue": "3230", - "id": 120076, + "id": 120067, "isConstant": false, "isLValue": false, "isPure": true, @@ -3998,7 +3998,7 @@ }, { "hexValue": "3130", - "id": 120077, + "id": 120068, "isConstant": false, "isLValue": false, "isPure": true, @@ -4014,7 +4014,7 @@ }, { "hexValue": "33", - "id": 120078, + "id": 120069, "isConstant": false, "isLValue": false, "isPure": true, @@ -4048,18 +4048,18 @@ "typeString": "int_const 3" } ], - "id": 120072, + "id": 120063, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1876:8:174", "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": 120079, + "id": 120070, "isConstant": false, "isLValue": false, "isPure": false, @@ -4080,38 +4080,38 @@ "typeString": "uint256" } }, - "id": 120081, + "id": 120072, "nodeType": "ExpressionStatement", "src": "1860:54:174" }, { "expression": { - "id": 120093, + "id": 120084, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120082, + "id": 120073, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1924:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120084, + "id": 120075, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 119892, + "referencedDeclaration": 119883, "src": "1924:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4124,21 +4124,21 @@ "arguments": [ { "baseExpression": { - "id": 120086, + "id": 120077, "name": "random_numbers", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120009, + "referencedDeclaration": 120000, "src": "1946:14:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint8_$dyn_memory_ptr", "typeString": "uint8[] memory" } }, - "id": 120088, + "id": 120079, "indexExpression": { "hexValue": "35", - "id": 120087, + "id": 120078, "isConstant": false, "isLValue": false, "isPure": true, @@ -4165,7 +4165,7 @@ }, { "hexValue": "32", - "id": 120089, + "id": 120080, "isConstant": false, "isLValue": false, "isPure": true, @@ -4181,7 +4181,7 @@ }, { "hexValue": "3530", - "id": 120090, + "id": 120081, "isConstant": false, "isLValue": false, "isPure": true, @@ -4197,7 +4197,7 @@ }, { "hexValue": "31", - "id": 120091, + "id": 120082, "isConstant": false, "isLValue": false, "isPure": true, @@ -4231,18 +4231,18 @@ "typeString": "int_const 1" } ], - "id": 120085, + "id": 120076, "name": "getRange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120135, + "referencedDeclaration": 120126, "src": "1937:8:174", "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": 120092, + "id": 120083, "isConstant": false, "isLValue": false, "isPure": false, @@ -4263,41 +4263,41 @@ "typeString": "uint256" } }, - "id": 120094, + "id": 120085, "nodeType": "ExpressionStatement", "src": "1924:50:174" }, { "expression": { - "id": 120100, + "id": 120091, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "expression": { - "id": 120095, + "id": 120086, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120000, + "referencedDeclaration": 119991, "src": "1985:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User storage pointer" } }, - "id": 120097, + "id": 120088, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119895, + "referencedDeclaration": 119886, "src": "1985:10:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -4305,38 +4305,38 @@ "operator": "=", "rightHandSide": { "expression": { - "id": 120098, + "id": 120089, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "1998:11:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120099, + "id": 120090, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 119577, + "referencedDeclaration": 119568, "src": "1998:21:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, "src": "1985:34:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, - "id": 120101, + "id": 120092, "nodeType": "ExpressionStatement", "src": "1985:34:174" } @@ -4349,17 +4349,17 @@ "name": "revealNFT", "nameLocation": "1386:9:174", "parameters": { - "id": 119996, + "id": 119987, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 119995, + "id": 119986, "mutability": "mutable", "name": "_tokenId", "nameLocation": "1404:8:174", "nodeType": "VariableDeclaration", - "scope": 120103, + "scope": 120094, "src": "1396:16:174", "stateVariable": false, "storageLocation": "default", @@ -4368,7 +4368,7 @@ "typeString": "uint256" }, "typeName": { - "id": 119994, + "id": 119985, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1396:7:174", @@ -4383,40 +4383,40 @@ "src": "1395:18:174" }, "returnParameters": { - "id": 119997, + "id": 119988, "nodeType": "ParameterList", "parameters": [], "src": "1423:0:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { - "id": 120135, + "id": 120126, "nodeType": "FunctionDefinition", "src": "2032:259:174", "nodes": [], "body": { - "id": 120134, + "id": 120125, "nodeType": "Block", "src": "2185:106:174", "nodes": [], "statements": [ { "assignments": [ - 120117 + 120108 ], "declarations": [ { "constant": false, - "id": 120117, + "id": 120108, "mutability": "mutable", "name": "times", "nameLocation": "2203:5:174", "nodeType": "VariableDeclaration", - "scope": 120134, + "scope": 120125, "src": "2195:13:174", "stateVariable": false, "storageLocation": "default", @@ -4425,7 +4425,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120116, + "id": 120107, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2195:7:174", @@ -4437,7 +4437,7 @@ "visibility": "internal" } ], - "id": 120127, + "id": 120118, "initialValue": { "arguments": [ { @@ -4445,7 +4445,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120125, + "id": 120116, "isConstant": false, "isLValue": false, "isPure": false, @@ -4457,17 +4457,17 @@ "typeIdentifier": "t_uint8", "typeString": "uint8" }, - "id": 120122, + "id": 120113, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120120, + "id": 120111, "name": "_rand", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120105, + "referencedDeclaration": 120096, "src": "2220:5:174", "typeDescriptions": { "typeIdentifier": "t_uint8", @@ -4478,7 +4478,7 @@ "operator": "+", "rightExpression": { "hexValue": "31", - "id": 120121, + "id": 120112, "isConstant": false, "isLValue": false, "isPure": true, @@ -4499,7 +4499,7 @@ } } ], - "id": 120123, + "id": 120114, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -4515,11 +4515,11 @@ "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { - "id": 120124, + "id": 120115, "name": "_step", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120109, + "referencedDeclaration": 120100, "src": "2233:5:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4540,7 +4540,7 @@ "typeString": "uint256" } ], - "id": 120119, + "id": 120110, "isConstant": false, "isLValue": false, "isPure": true, @@ -4552,14 +4552,14 @@ "typeString": "type(uint256)" }, "typeName": { - "id": 120118, + "id": 120109, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2211:7:174", "typeDescriptions": {} } }, - "id": 120126, + "id": 120117, "isConstant": false, "isLValue": false, "isPure": false, @@ -4583,17 +4583,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120132, + "id": 120123, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120128, + "id": 120119, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120107, + "referencedDeclaration": 120098, "src": "2256:6:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4607,17 +4607,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120131, + "id": 120122, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120129, + "id": 120120, "name": "times", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120117, + "referencedDeclaration": 120108, "src": "2265:5:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4627,11 +4627,11 @@ "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { - "id": 120130, + "id": 120121, "name": "_stepLength", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120111, + "referencedDeclaration": 120102, "src": "2273:11:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4650,8 +4650,8 @@ "typeString": "uint256" } }, - "functionReturnParameters": 120115, - "id": 120133, + "functionReturnParameters": 120106, + "id": 120124, "nodeType": "Return", "src": "2249:35:174" } @@ -4663,17 +4663,17 @@ "name": "getRange", "nameLocation": "2041:8:174", "parameters": { - "id": 120112, + "id": 120103, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120105, + "id": 120096, "mutability": "mutable", "name": "_rand", "nameLocation": "2065:5:174", "nodeType": "VariableDeclaration", - "scope": 120135, + "scope": 120126, "src": "2059:11:174", "stateVariable": false, "storageLocation": "default", @@ -4682,7 +4682,7 @@ "typeString": "uint8" }, "typeName": { - "id": 120104, + "id": 120095, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2059:5:174", @@ -4695,12 +4695,12 @@ }, { "constant": false, - "id": 120107, + "id": 120098, "mutability": "mutable", "name": "_start", "nameLocation": "2088:6:174", "nodeType": "VariableDeclaration", - "scope": 120135, + "scope": 120126, "src": "2080:14:174", "stateVariable": false, "storageLocation": "default", @@ -4709,7 +4709,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120106, + "id": 120097, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2080:7:174", @@ -4722,12 +4722,12 @@ }, { "constant": false, - "id": 120109, + "id": 120100, "mutability": "mutable", "name": "_step", "nameLocation": "2112:5:174", "nodeType": "VariableDeclaration", - "scope": 120135, + "scope": 120126, "src": "2104:13:174", "stateVariable": false, "storageLocation": "default", @@ -4736,7 +4736,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120108, + "id": 120099, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2104:7:174", @@ -4749,12 +4749,12 @@ }, { "constant": false, - "id": 120111, + "id": 120102, "mutability": "mutable", "name": "_stepLength", "nameLocation": "2135:11:174", "nodeType": "VariableDeclaration", - "scope": 120135, + "scope": 120126, "src": "2127:19:174", "stateVariable": false, "storageLocation": "default", @@ -4763,7 +4763,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120110, + "id": 120101, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2127:7:174", @@ -4778,17 +4778,17 @@ "src": "2049:103:174" }, "returnParameters": { - "id": 120115, + "id": 120106, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120114, + "id": 120105, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120135, + "scope": 120126, "src": "2176:7:174", "stateVariable": false, "storageLocation": "default", @@ -4797,7 +4797,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120113, + "id": 120104, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2176:7:174", @@ -4811,18 +4811,18 @@ ], "src": "2175:9:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 120155, + "id": 120146, "nodeType": "FunctionDefinition", "src": "2297:187:174", "nodes": [], "body": { - "id": 120154, + "id": 120145, "nodeType": "Block", "src": "2415:69:174", "nodes": [], @@ -4833,11 +4833,11 @@ { "arguments": [ { - "id": 120148, + "id": 120139, "name": "_key", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120137, + "referencedDeclaration": 120128, "src": "2456:4:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4846,7 +4846,7 @@ }, { "hexValue": "203a20", - "id": 120149, + "id": 120140, "isConstant": false, "isLValue": false, "isPure": true, @@ -4861,11 +4861,11 @@ "value": " : " }, { - "id": 120150, + "id": 120141, "name": "_value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120139, + "referencedDeclaration": 120130, "src": "2469:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4889,7 +4889,7 @@ } ], "expression": { - "id": 120146, + "id": 120137, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -4900,7 +4900,7 @@ "typeString": "abi" } }, - "id": 120147, + "id": 120138, "isConstant": false, "isLValue": false, "isPure": true, @@ -4913,7 +4913,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120151, + "id": 120142, "isConstant": false, "isLValue": false, "isPure": false, @@ -4936,7 +4936,7 @@ "typeString": "bytes memory" } ], - "id": 120145, + "id": 120136, "isConstant": false, "isLValue": false, "isPure": true, @@ -4948,14 +4948,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 120144, + "id": 120135, "name": "string", "nodeType": "ElementaryTypeName", "src": "2432:6:174", "typeDescriptions": {} } }, - "id": 120152, + "id": 120143, "isConstant": false, "isLValue": false, "isPure": false, @@ -4970,8 +4970,8 @@ "typeString": "string memory" } }, - "functionReturnParameters": 120143, - "id": 120153, + "functionReturnParameters": 120134, + "id": 120144, "nodeType": "Return", "src": "2425:52:174" } @@ -4983,17 +4983,17 @@ "name": "concat", "nameLocation": "2306:6:174", "parameters": { - "id": 120140, + "id": 120131, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120137, + "id": 120128, "mutability": "mutable", "name": "_key", "nameLocation": "2336:4:174", "nodeType": "VariableDeclaration", - "scope": 120155, + "scope": 120146, "src": "2322:18:174", "stateVariable": false, "storageLocation": "memory", @@ -5002,7 +5002,7 @@ "typeString": "string" }, "typeName": { - "id": 120136, + "id": 120127, "name": "string", "nodeType": "ElementaryTypeName", "src": "2322:6:174", @@ -5015,12 +5015,12 @@ }, { "constant": false, - "id": 120139, + "id": 120130, "mutability": "mutable", "name": "_value", "nameLocation": "2364:6:174", "nodeType": "VariableDeclaration", - "scope": 120155, + "scope": 120146, "src": "2350:20:174", "stateVariable": false, "storageLocation": "memory", @@ -5029,7 +5029,7 @@ "typeString": "string" }, "typeName": { - "id": 120138, + "id": 120129, "name": "string", "nodeType": "ElementaryTypeName", "src": "2350:6:174", @@ -5044,17 +5044,17 @@ "src": "2312:64:174" }, "returnParameters": { - "id": 120143, + "id": 120134, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120142, + "id": 120133, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120155, + "scope": 120146, "src": "2400:13:174", "stateVariable": false, "storageLocation": "memory", @@ -5063,7 +5063,7 @@ "typeString": "string" }, "typeName": { - "id": 120141, + "id": 120132, "name": "string", "nodeType": "ElementaryTypeName", "src": "2400:6:174", @@ -5077,35 +5077,35 @@ ], "src": "2399:15:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 120315, + "id": 120306, "nodeType": "FunctionDefinition", "src": "2490:1348:174", "nodes": [], "body": { - "id": 120314, + "id": 120305, "nodeType": "Block", "src": "2565:1273:174", "nodes": [], "statements": [ { "assignments": [ - 120168 + 120159 ], "declarations": [ { "constant": false, - "id": 120168, + "id": 120159, "mutability": "mutable", "name": "parts", "nameLocation": "2593:5:174", "nodeType": "VariableDeclaration", - "scope": 120314, + "scope": 120305, "src": "2575:23:174", "stateVariable": false, "storageLocation": "memory", @@ -5115,7 +5115,7 @@ }, "typeName": { "baseType": { - "id": 120166, + "id": 120157, "name": "string", "nodeType": "ElementaryTypeName", "src": "2575:6:174", @@ -5124,10 +5124,10 @@ "typeString": "string" } }, - "id": 120167, + "id": 120158, "length": { "hexValue": "3133", - "id": 120165, + "id": 120156, "isConstant": false, "isLValue": false, "isPure": true, @@ -5151,34 +5151,34 @@ "visibility": "internal" } ], - "id": 120169, + "id": 120160, "nodeType": "VariableDeclarationStatement", "src": "2575:23:174" }, { "expression": { - "id": 120174, + "id": 120165, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120170, + "id": 120161, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "2609:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120172, + "id": 120163, "indexExpression": { "hexValue": "30", - "id": 120171, + "id": 120162, "isConstant": false, "isLValue": false, "isPure": true, @@ -5207,7 +5207,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e", - "id": 120173, + "id": 120164, "isConstant": false, "isLValue": false, "isPure": true, @@ -5227,34 +5227,34 @@ "typeString": "string memory" } }, - "id": 120175, + "id": 120166, "nodeType": "ExpressionStatement", "src": "2609:288:174" }, { "expression": { - "id": 120186, + "id": 120177, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120176, + "id": 120167, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "2908:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120178, + "id": 120169, "indexExpression": { "hexValue": "31", - "id": 120177, + "id": 120168, "isConstant": false, "isLValue": false, "isPure": true, @@ -5285,7 +5285,7 @@ "arguments": [ { "hexValue": "4850", - "id": 120180, + "id": 120171, "isConstant": false, "isLValue": false, "isPure": true, @@ -5305,32 +5305,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120181, + "id": 120172, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "2932:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120182, + "id": 120173, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 119882, + "referencedDeclaration": 119873, "src": "2932:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120183, + "id": 120174, "isConstant": false, "isLValue": false, "isPure": false, @@ -5344,7 +5344,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120184, + "id": 120175, "isConstant": false, "isLValue": false, "isPure": false, @@ -5371,18 +5371,18 @@ "typeString": "string memory" } ], - "id": 120179, + "id": 120170, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "2919:6:174", "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": 120185, + "id": 120176, "isConstant": false, "isLValue": false, "isPure": false, @@ -5403,34 +5403,34 @@ "typeString": "string memory" } }, - "id": 120187, + "id": 120178, "nodeType": "ExpressionStatement", "src": "2908:43:174" }, { "expression": { - "id": 120192, + "id": 120183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120188, + "id": 120179, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "2962:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120190, + "id": 120181, "indexExpression": { "hexValue": "32", - "id": 120189, + "id": 120180, "isConstant": false, "isLValue": false, "isPure": true, @@ -5459,7 +5459,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e", - "id": 120191, + "id": 120182, "isConstant": false, "isLValue": false, "isPure": true, @@ -5479,34 +5479,34 @@ "typeString": "string memory" } }, - "id": 120193, + "id": 120184, "nodeType": "ExpressionStatement", "src": "2962:53:174" }, { "expression": { - "id": 120204, + "id": 120195, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120194, + "id": 120185, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3026:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120196, + "id": 120187, "indexExpression": { "hexValue": "33", - "id": 120195, + "id": 120186, "isConstant": false, "isLValue": false, "isPure": true, @@ -5537,7 +5537,7 @@ "arguments": [ { "hexValue": "41747461636b", - "id": 120198, + "id": 120189, "isConstant": false, "isLValue": false, "isPure": true, @@ -5557,32 +5557,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120199, + "id": 120190, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "3054:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120200, + "id": 120191, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 119884, + "referencedDeclaration": 119875, "src": "3054:11:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120201, + "id": 120192, "isConstant": false, "isLValue": false, "isPure": false, @@ -5596,7 +5596,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120202, + "id": 120193, "isConstant": false, "isLValue": false, "isPure": false, @@ -5623,18 +5623,18 @@ "typeString": "string memory" } ], - "id": 120197, + "id": 120188, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "3037:6:174", "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": 120203, + "id": 120194, "isConstant": false, "isLValue": false, "isPure": false, @@ -5655,34 +5655,34 @@ "typeString": "string memory" } }, - "id": 120205, + "id": 120196, "nodeType": "ExpressionStatement", "src": "3026:51:174" }, { "expression": { - "id": 120210, + "id": 120201, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120206, + "id": 120197, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3088:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120208, + "id": 120199, "indexExpression": { "hexValue": "34", - "id": 120207, + "id": 120198, "isConstant": false, "isLValue": false, "isPure": true, @@ -5711,7 +5711,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e", - "id": 120209, + "id": 120200, "isConstant": false, "isLValue": false, "isPure": true, @@ -5731,34 +5731,34 @@ "typeString": "string memory" } }, - "id": 120211, + "id": 120202, "nodeType": "ExpressionStatement", "src": "3088:53:174" }, { "expression": { - "id": 120222, + "id": 120213, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120212, + "id": 120203, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3152:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120214, + "id": 120205, "indexExpression": { "hexValue": "35", - "id": 120213, + "id": 120204, "isConstant": false, "isLValue": false, "isPure": true, @@ -5789,7 +5789,7 @@ "arguments": [ { "hexValue": "41747461636b52616e6765", - "id": 120216, + "id": 120207, "isConstant": false, "isLValue": false, "isPure": true, @@ -5809,32 +5809,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120217, + "id": 120208, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "3185:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120218, + "id": 120209, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 119886, + "referencedDeclaration": 119877, "src": "3185:16:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120219, + "id": 120210, "isConstant": false, "isLValue": false, "isPure": false, @@ -5848,7 +5848,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120220, + "id": 120211, "isConstant": false, "isLValue": false, "isPure": false, @@ -5875,18 +5875,18 @@ "typeString": "string memory" } ], - "id": 120215, + "id": 120206, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "3163:6:174", "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": 120221, + "id": 120212, "isConstant": false, "isLValue": false, "isPure": false, @@ -5907,34 +5907,34 @@ "typeString": "string memory" } }, - "id": 120223, + "id": 120214, "nodeType": "ExpressionStatement", "src": "3152:61:174" }, { "expression": { - "id": 120228, + "id": 120219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120224, + "id": 120215, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3224:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120226, + "id": 120217, "indexExpression": { "hexValue": "36", - "id": 120225, + "id": 120216, "isConstant": false, "isLValue": false, "isPure": true, @@ -5963,7 +5963,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e", - "id": 120227, + "id": 120218, "isConstant": false, "isLValue": false, "isPure": true, @@ -5983,34 +5983,34 @@ "typeString": "string memory" } }, - "id": 120229, + "id": 120220, "nodeType": "ExpressionStatement", "src": "3224:53:174" }, { "expression": { - "id": 120240, + "id": 120231, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120230, + "id": 120221, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3288:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120232, + "id": 120223, "indexExpression": { "hexValue": "37", - "id": 120231, + "id": 120222, "isConstant": false, "isLValue": false, "isPure": true, @@ -6041,7 +6041,7 @@ "arguments": [ { "hexValue": "5370656564", - "id": 120234, + "id": 120225, "isConstant": false, "isLValue": false, "isPure": true, @@ -6061,32 +6061,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120235, + "id": 120226, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "3314:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120236, + "id": 120227, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 119888, + "referencedDeclaration": 119879, "src": "3314:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120237, + "id": 120228, "isConstant": false, "isLValue": false, "isPure": false, @@ -6100,7 +6100,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120238, + "id": 120229, "isConstant": false, "isLValue": false, "isPure": false, @@ -6127,18 +6127,18 @@ "typeString": "string memory" } ], - "id": 120233, + "id": 120224, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "3299:6:174", "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": 120239, + "id": 120230, "isConstant": false, "isLValue": false, "isPure": false, @@ -6159,34 +6159,34 @@ "typeString": "string memory" } }, - "id": 120241, + "id": 120232, "nodeType": "ExpressionStatement", "src": "3288:48:174" }, { "expression": { - "id": 120246, + "id": 120237, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120242, + "id": 120233, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3347:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120244, + "id": 120235, "indexExpression": { "hexValue": "38", - "id": 120243, + "id": 120234, "isConstant": false, "isLValue": false, "isPure": true, @@ -6215,7 +6215,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e", - "id": 120245, + "id": 120236, "isConstant": false, "isLValue": false, "isPure": true, @@ -6235,34 +6235,34 @@ "typeString": "string memory" } }, - "id": 120247, + "id": 120238, "nodeType": "ExpressionStatement", "src": "3347:54:174" }, { "expression": { - "id": 120258, + "id": 120249, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120248, + "id": 120239, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3412:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120250, + "id": 120241, "indexExpression": { "hexValue": "39", - "id": 120249, + "id": 120240, "isConstant": false, "isLValue": false, "isPure": true, @@ -6293,7 +6293,7 @@ "arguments": [ { "hexValue": "537472656e677468", - "id": 120252, + "id": 120243, "isConstant": false, "isLValue": false, "isPure": true, @@ -6313,32 +6313,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120253, + "id": 120244, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "3442:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120254, + "id": 120245, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 119890, + "referencedDeclaration": 119881, "src": "3442:13:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120255, + "id": 120246, "isConstant": false, "isLValue": false, "isPure": false, @@ -6352,7 +6352,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120256, + "id": 120247, "isConstant": false, "isLValue": false, "isPure": false, @@ -6379,18 +6379,18 @@ "typeString": "string memory" } ], - "id": 120251, + "id": 120242, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "3423:6:174", "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": 120257, + "id": 120248, "isConstant": false, "isLValue": false, "isPure": false, @@ -6411,34 +6411,34 @@ "typeString": "string memory" } }, - "id": 120259, + "id": 120250, "nodeType": "ExpressionStatement", "src": "3412:55:174" }, { "expression": { - "id": 120264, + "id": 120255, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120260, + "id": 120251, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3478:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120262, + "id": 120253, "indexExpression": { "hexValue": "3130", - "id": 120261, + "id": 120252, "isConstant": false, "isLValue": false, "isPure": true, @@ -6467,7 +6467,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e", - "id": 120263, + "id": 120254, "isConstant": false, "isLValue": false, "isPure": true, @@ -6487,34 +6487,34 @@ "typeString": "string memory" } }, - "id": 120265, + "id": 120256, "nodeType": "ExpressionStatement", "src": "3478:55:174" }, { "expression": { - "id": 120276, + "id": 120267, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120266, + "id": 120257, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3544:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120268, + "id": 120259, "indexExpression": { "hexValue": "3131", - "id": 120267, + "id": 120258, "isConstant": false, "isLValue": false, "isPure": true, @@ -6545,7 +6545,7 @@ "arguments": [ { "hexValue": "5370616365", - "id": 120270, + "id": 120261, "isConstant": false, "isLValue": false, "isPure": true, @@ -6565,32 +6565,32 @@ "argumentTypes": [], "expression": { "expression": { - "id": 120271, + "id": 120262, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120158, + "referencedDeclaration": 120149, "src": "3572:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120272, + "id": 120263, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 119892, + "referencedDeclaration": 119883, "src": "3572:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120273, + "id": 120264, "isConstant": false, "isLValue": false, "isPure": false, @@ -6604,7 +6604,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120274, + "id": 120265, "isConstant": false, "isLValue": false, "isPure": false, @@ -6631,18 +6631,18 @@ "typeString": "string memory" } ], - "id": 120269, + "id": 120260, "name": "concat", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120155, + "referencedDeclaration": 120146, "src": "3556:6:174", "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": 120275, + "id": 120266, "isConstant": false, "isLValue": false, "isPure": false, @@ -6663,34 +6663,34 @@ "typeString": "string memory" } }, - "id": 120277, + "id": 120268, "nodeType": "ExpressionStatement", "src": "3544:50:174" }, { "expression": { - "id": 120282, + "id": 120273, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120278, + "id": 120269, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3605:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120280, + "id": 120271, "indexExpression": { "hexValue": "3132", - "id": 120279, + "id": 120270, "isConstant": false, "isLValue": false, "isPure": true, @@ -6719,7 +6719,7 @@ "operator": "=", "rightHandSide": { "hexValue": "3c2f746578743e3c2f7376673e", - "id": 120281, + "id": 120272, "isConstant": false, "isLValue": false, "isPure": true, @@ -6739,23 +6739,23 @@ "typeString": "string memory" } }, - "id": 120283, + "id": 120274, "nodeType": "ExpressionStatement", "src": "3605:27:174" }, { "assignments": [ - 120285 + 120276 ], "declarations": [ { "constant": false, - "id": 120285, + "id": 120276, "mutability": "mutable", "name": "output", "nameLocation": "3657:6:174", "nodeType": "VariableDeclaration", - "scope": 120314, + "scope": 120305, "src": "3643:20:174", "stateVariable": false, "storageLocation": "memory", @@ -6764,7 +6764,7 @@ "typeString": "string" }, "typeName": { - "id": 120284, + "id": 120275, "name": "string", "nodeType": "ElementaryTypeName", "src": "3643:6:174", @@ -6776,29 +6776,29 @@ "visibility": "internal" } ], - "id": 120286, + "id": 120277, "nodeType": "VariableDeclarationStatement", "src": "3643:20:174" }, { "body": { - "id": 120310, + "id": 120301, "nodeType": "Block", "src": "3707:102:174", "statements": [ { "expression": { - "id": 120308, + "id": 120299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120297, + "id": 120288, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120285, + "referencedDeclaration": 120276, "src": "3721:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6812,11 +6812,11 @@ { "arguments": [ { - "id": 120302, + "id": 120293, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120285, + "referencedDeclaration": 120276, "src": "3767:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -6825,24 +6825,24 @@ }, { "baseExpression": { - "id": 120303, + "id": 120294, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3775:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120305, + "id": 120296, "indexExpression": { - "id": 120304, + "id": 120295, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 120279, "src": "3781:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6873,7 +6873,7 @@ } ], "expression": { - "id": 120300, + "id": 120291, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -6884,7 +6884,7 @@ "typeString": "abi" } }, - "id": 120301, + "id": 120292, "isConstant": false, "isLValue": false, "isPure": true, @@ -6897,7 +6897,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120306, + "id": 120297, "isConstant": false, "isLValue": false, "isPure": false, @@ -6920,7 +6920,7 @@ "typeString": "bytes memory" } ], - "id": 120299, + "id": 120290, "isConstant": false, "isLValue": false, "isPure": true, @@ -6932,14 +6932,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 120298, + "id": 120289, "name": "string", "nodeType": "ElementaryTypeName", "src": "3730:6:174", "typeDescriptions": {} } }, - "id": 120307, + "id": 120298, "isConstant": false, "isLValue": false, "isPure": false, @@ -6960,7 +6960,7 @@ "typeString": "string memory" } }, - "id": 120309, + "id": 120300, "nodeType": "ExpressionStatement", "src": "3721:77:174" } @@ -6971,17 +6971,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120293, + "id": 120284, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120290, + "id": 120281, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 120279, "src": "3688:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6992,18 +6992,18 @@ "operator": "<", "rightExpression": { "expression": { - "id": 120291, + "id": 120282, "name": "parts", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120168, + "referencedDeclaration": 120159, "src": "3690:5:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$13_memory_ptr", "typeString": "string memory[13] memory" } }, - "id": 120292, + "id": 120283, "isConstant": false, "isLValue": false, "isPure": false, @@ -7022,20 +7022,20 @@ "typeString": "bool" } }, - "id": 120311, + "id": 120302, "initializationExpression": { "assignments": [ - 120288 + 120279 ], "declarations": [ { "constant": false, - "id": 120288, + "id": 120279, "mutability": "mutable", "name": "i", "nameLocation": "3686:1:174", "nodeType": "VariableDeclaration", - "scope": 120311, + "scope": 120302, "src": "3678:9:174", "stateVariable": false, "storageLocation": "default", @@ -7044,7 +7044,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120287, + "id": 120278, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3678:7:174", @@ -7056,13 +7056,13 @@ "visibility": "internal" } ], - "id": 120289, + "id": 120280, "nodeType": "VariableDeclarationStatement", "src": "3678:9:174" }, "loopExpression": { "expression": { - "id": 120295, + "id": 120286, "isConstant": false, "isLValue": false, "isPure": false, @@ -7072,11 +7072,11 @@ "prefix": false, "src": "3703:3:174", "subExpression": { - "id": 120294, + "id": 120285, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120288, + "referencedDeclaration": 120279, "src": "3703:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7088,7 +7088,7 @@ "typeString": "uint256" } }, - "id": 120296, + "id": 120287, "nodeType": "ExpressionStatement", "src": "3703:3:174" }, @@ -7097,19 +7097,19 @@ }, { "expression": { - "id": 120312, + "id": 120303, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120285, + "referencedDeclaration": 120276, "src": "3825:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 120162, - "id": 120313, + "functionReturnParameters": 120153, + "id": 120304, "nodeType": "Return", "src": "3818:13:174" } @@ -7121,38 +7121,38 @@ "name": "createSVG", "nameLocation": "2499:9:174", "parameters": { - "id": 120159, + "id": 120150, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120158, + "id": 120149, "mutability": "mutable", "name": "user", "nameLocation": "2521:4:174", "nodeType": "VariableDeclaration", - "scope": 120315, + "scope": 120306, "src": "2509:16:174", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 120157, + "id": 120148, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120156, + "id": 120147, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "2509:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "2509:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } }, @@ -7162,17 +7162,17 @@ "src": "2508:18:174" }, "returnParameters": { - "id": 120162, + "id": 120153, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120161, + "id": 120152, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120315, + "scope": 120306, "src": "2550:13:174", "stateVariable": false, "storageLocation": "memory", @@ -7181,7 +7181,7 @@ "typeString": "string" }, "typeName": { - "id": 120160, + "id": 120151, "name": "string", "nodeType": "ElementaryTypeName", "src": "2550:6:174", @@ -7195,83 +7195,83 @@ ], "src": "2549:15:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "pure", "virtual": false, "visibility": "internal" }, { - "id": 120410, + "id": 120401, "nodeType": "FunctionDefinition", "src": "3844:1284:174", "nodes": [], "body": { - "id": 120409, + "id": 120400, "nodeType": "Block", "src": "3939:1189:174", "nodes": [], "statements": [ { "assignments": [ - 120325 + 120316 ], "declarations": [ { "constant": false, - "id": 120325, + "id": 120316, "mutability": "mutable", "name": "user", "nameLocation": "3961:4:174", "nodeType": "VariableDeclaration", - "scope": 120409, + "scope": 120400, "src": "3949:16:174", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 120324, + "id": 120315, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120323, + "id": 120314, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "3949:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "3949:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 120329, + "id": 120320, "initialValue": { "baseExpression": { - "id": 120326, + "id": 120317, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119946, + "referencedDeclaration": 119937, "src": "3968:8:174", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 120328, + "id": 120319, "indexExpression": { - "id": 120327, + "id": 120318, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120317, + "referencedDeclaration": 120308, "src": "3977:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7285,7 +7285,7 @@ "nodeType": "IndexAccess", "src": "3968:18:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage", + "typeIdentifier": "t_struct$_User_$119887_storage", "typeString": "struct MUser.User storage ref" } }, @@ -7295,38 +7295,38 @@ { "condition": { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 120334, + "id": 120325, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120330, + "id": 120321, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120325, + "referencedDeclaration": 120316, "src": "4000:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120331, + "id": 120322, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119895, + "referencedDeclaration": 119886, "src": "4000:10:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -7334,28 +7334,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120332, + "id": 120323, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "4014:11:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120333, + "id": 120324, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Pending", "nodeType": "MemberAccess", - "referencedDeclaration": 119576, + "referencedDeclaration": 119567, "src": "4014:19:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -7366,7 +7366,7 @@ } }, "falseBody": { - "id": 120407, + "id": 120398, "nodeType": "Block", "src": "4268:854:174", "statements": [ @@ -7375,38 +7375,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 120354, + "id": 120345, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120350, + "id": 120341, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120325, + "referencedDeclaration": 120316, "src": "4290:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120351, + "id": 120342, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119895, + "referencedDeclaration": 119886, "src": "4290:10:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -7414,28 +7414,28 @@ "operator": "!=", "rightExpression": { "expression": { - "id": 120352, + "id": 120343, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "4304:11:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120353, + "id": 120344, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Inited", "nodeType": "MemberAccess", - "referencedDeclaration": 119575, + "referencedDeclaration": 119566, "src": "4304:18:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -7447,7 +7447,7 @@ }, { "hexValue": "426f78206e6f742065786973746564", - "id": 120355, + "id": 120346, "isConstant": false, "isLValue": false, "isPure": true, @@ -7473,7 +7473,7 @@ "typeString": "literal_string \"Box not existed\"" } ], - "id": 120349, + "id": 120340, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -7487,7 +7487,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120356, + "id": 120347, "isConstant": false, "isLValue": false, "isPure": false, @@ -7502,23 +7502,23 @@ "typeString": "tuple()" } }, - "id": 120357, + "id": 120348, "nodeType": "ExpressionStatement", "src": "4282:60:174" }, { "assignments": [ - 120359 + 120350 ], "declarations": [ { "constant": false, - "id": 120359, + "id": 120350, "mutability": "mutable", "name": "output", "nameLocation": "4370:6:174", "nodeType": "VariableDeclaration", - "scope": 120407, + "scope": 120398, "src": "4356:20:174", "stateVariable": false, "storageLocation": "memory", @@ -7527,7 +7527,7 @@ "typeString": "string" }, "typeName": { - "id": 120358, + "id": 120349, "name": "string", "nodeType": "ElementaryTypeName", "src": "4356:6:174", @@ -7539,18 +7539,18 @@ "visibility": "internal" } ], - "id": 120363, + "id": 120354, "initialValue": { "arguments": [ { - "id": 120361, + "id": 120352, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120325, + "referencedDeclaration": 120316, "src": "4389:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } } @@ -7558,22 +7558,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } ], - "id": 120360, + "id": 120351, "name": "createSVG", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120315, + "referencedDeclaration": 120306, "src": "4379:9:174", "typeDescriptions": { - "typeIdentifier": "t_function_internal_pure$_t_struct$_User_$119896_memory_ptr_$returns$_t_string_memory_ptr_$", + "typeIdentifier": "t_function_internal_pure$_t_struct$_User_$119887_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (struct MUser.User memory) pure returns (string memory)" } }, - "id": 120362, + "id": 120353, "isConstant": false, "isLValue": false, "isPure": false, @@ -7593,17 +7593,17 @@ }, { "assignments": [ - 120365 + 120356 ], "declarations": [ { "constant": false, - "id": 120365, + "id": 120356, "mutability": "mutable", "name": "json", "nameLocation": "4422:4:174", "nodeType": "VariableDeclaration", - "scope": 120407, + "scope": 120398, "src": "4408:18:174", "stateVariable": false, "storageLocation": "memory", @@ -7612,7 +7612,7 @@ "typeString": "string" }, "typeName": { - "id": 120364, + "id": 120355, "name": "string", "nodeType": "ElementaryTypeName", "src": "4408:6:174", @@ -7624,7 +7624,7 @@ "visibility": "internal" } ], - "id": 120393, + "id": 120384, "initialValue": { "arguments": [ { @@ -7635,7 +7635,7 @@ "arguments": [ { "hexValue": "7b226e616d65223a20224d557365722023", - "id": 120374, + "id": 120365, "isConstant": false, "isLValue": false, "isPure": true, @@ -7654,18 +7654,18 @@ "expression": { "argumentTypes": [], "expression": { - "id": 120375, + "id": 120366, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120317, + "referencedDeclaration": 120308, "src": "4614:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 120376, + "id": 120367, "isConstant": false, "isLValue": false, "isPure": false, @@ -7679,7 +7679,7 @@ "typeString": "function (uint256) pure returns (string memory)" } }, - "id": 120377, + "id": 120368, "isConstant": false, "isLValue": false, "isPure": false, @@ -7696,7 +7696,7 @@ }, { "hexValue": "222c20226465736372697074696f6e223a22", - "id": 120378, + "id": 120369, "isConstant": false, "isLValue": false, "isPure": true, @@ -7711,11 +7711,11 @@ "value": "\", \"description\":\"" }, { - "id": 120379, + "id": 120370, "name": "revealedDesc", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119906, + "referencedDeclaration": 119897, "src": "4713:12:174", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -7724,7 +7724,7 @@ }, { "hexValue": "222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c", - "id": 120380, + "id": 120371, "isConstant": false, "isLValue": false, "isPure": true, @@ -7743,11 +7743,11 @@ { "arguments": [ { - "id": 120385, + "id": 120376, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120359, + "referencedDeclaration": 120350, "src": "4845:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -7762,7 +7762,7 @@ "typeString": "string memory" } ], - "id": 120384, + "id": 120375, "isConstant": false, "isLValue": false, "isPure": true, @@ -7774,14 +7774,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 120383, + "id": 120374, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4839:5:174", "typeDescriptions": {} } }, - "id": 120386, + "id": 120377, "isConstant": false, "isLValue": false, "isPure": false, @@ -7805,32 +7805,32 @@ } ], "expression": { - "id": 120381, + "id": 120372, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118338, + "referencedDeclaration": 118329, "src": "4825:6:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$118338_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118329_$", "typeString": "type(library Base64)" } }, - "id": 120382, + "id": 120373, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 118337, + "referencedDeclaration": 118328, "src": "4825:13:174", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 120387, + "id": 120378, "isConstant": false, "isLValue": false, "isPure": false, @@ -7847,7 +7847,7 @@ }, { "hexValue": "227d", - "id": 120388, + "id": 120379, "isConstant": false, "isLValue": false, "isPure": true, @@ -7894,7 +7894,7 @@ } ], "expression": { - "id": 120372, + "id": 120363, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -7905,7 +7905,7 @@ "typeString": "abi" } }, - "id": 120373, + "id": 120364, "isConstant": false, "isLValue": false, "isPure": true, @@ -7918,7 +7918,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120389, + "id": 120380, "isConstant": false, "isLValue": false, "isPure": false, @@ -7941,7 +7941,7 @@ "typeString": "bytes memory" } ], - "id": 120371, + "id": 120362, "isConstant": false, "isLValue": false, "isPure": true, @@ -7953,14 +7953,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 120370, + "id": 120361, "name": "string", "nodeType": "ElementaryTypeName", "src": "4487:6:174", "typeDescriptions": {} } }, - "id": 120390, + "id": 120381, "isConstant": false, "isLValue": false, "isPure": false, @@ -7983,7 +7983,7 @@ "typeString": "string memory" } ], - "id": 120369, + "id": 120360, "isConstant": false, "isLValue": false, "isPure": true, @@ -7995,14 +7995,14 @@ "typeString": "type(bytes storage pointer)" }, "typeName": { - "id": 120368, + "id": 120359, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "4460:5:174", "typeDescriptions": {} } }, - "id": 120391, + "id": 120382, "isConstant": false, "isLValue": false, "isPure": false, @@ -8026,32 +8026,32 @@ } ], "expression": { - "id": 120366, + "id": 120357, "name": "Base64", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 118338, + "referencedDeclaration": 118329, "src": "4429:6:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Base64_$118338_$", + "typeIdentifier": "t_type$_t_contract$_Base64_$118329_$", "typeString": "type(library Base64)" } }, - "id": 120367, + "id": 120358, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "encode", "nodeType": "MemberAccess", - "referencedDeclaration": 118337, + "referencedDeclaration": 118328, "src": "4429:13:174", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (bytes memory) pure returns (string memory)" } }, - "id": 120392, + "id": 120383, "isConstant": false, "isLValue": false, "isPure": false, @@ -8071,17 +8071,17 @@ }, { "expression": { - "id": 120403, + "id": 120394, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { - "id": 120394, + "id": 120385, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120359, + "referencedDeclaration": 120350, "src": "4981:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8096,7 +8096,7 @@ "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 120399, + "id": 120390, "isConstant": false, "isLValue": false, "isPure": true, @@ -8111,11 +8111,11 @@ "value": "data:application/json;base64," }, { - "id": 120400, + "id": 120391, "name": "json", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120365, + "referencedDeclaration": 120356, "src": "5064:4:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -8135,7 +8135,7 @@ } ], "expression": { - "id": 120397, + "id": 120388, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8146,7 +8146,7 @@ "typeString": "abi" } }, - "id": 120398, + "id": 120389, "isConstant": false, "isLValue": false, "isPure": true, @@ -8159,7 +8159,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120401, + "id": 120392, "isConstant": false, "isLValue": false, "isPure": false, @@ -8182,7 +8182,7 @@ "typeString": "bytes memory" } ], - "id": 120396, + "id": 120387, "isConstant": false, "isLValue": false, "isPure": true, @@ -8194,14 +8194,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 120395, + "id": 120386, "name": "string", "nodeType": "ElementaryTypeName", "src": "4990:6:174", "typeDescriptions": {} } }, - "id": 120402, + "id": 120393, "isConstant": false, "isLValue": false, "isPure": false, @@ -8222,51 +8222,51 @@ "typeString": "string memory" } }, - "id": 120404, + "id": 120395, "nodeType": "ExpressionStatement", "src": "4981:102:174" }, { "expression": { - "id": 120405, + "id": 120396, "name": "output", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120359, + "referencedDeclaration": 120350, "src": "5105:6:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 120322, - "id": 120406, + "functionReturnParameters": 120313, + "id": 120397, "nodeType": "Return", "src": "5098:13:174" } ] }, - "id": 120408, + "id": 120399, "nodeType": "IfStatement", "src": "3996:1126:174", "trueBody": { - "id": 120348, + "id": 120339, "nodeType": "Block", "src": "4035:227:174", "statements": [ { "assignments": [ - 120336 + 120327 ], "declarations": [ { "constant": false, - "id": 120336, + "id": 120327, "mutability": "mutable", "name": "r", "nameLocation": "4063:1:174", "nodeType": "VariableDeclaration", - "scope": 120348, + "scope": 120339, "src": "4049:15:174", "stateVariable": false, "storageLocation": "memory", @@ -8275,7 +8275,7 @@ "typeString": "string" }, "typeName": { - "id": 120335, + "id": 120326, "name": "string", "nodeType": "ElementaryTypeName", "src": "4049:6:174", @@ -8287,14 +8287,14 @@ "visibility": "internal" } ], - "id": 120345, + "id": 120336, "initialValue": { "arguments": [ { "arguments": [ { "hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c", - "id": 120341, + "id": 120332, "isConstant": false, "isLValue": false, "isPure": true, @@ -8309,11 +8309,11 @@ "value": "data:application/json;base64," }, { - "id": 120342, + "id": 120333, "name": "notRevealedInfo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119904, + "referencedDeclaration": 119895, "src": "4182:15:174", "typeDescriptions": { "typeIdentifier": "t_string_storage", @@ -8333,7 +8333,7 @@ } ], "expression": { - "id": 120339, + "id": 120330, "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -8344,7 +8344,7 @@ "typeString": "abi" } }, - "id": 120340, + "id": 120331, "isConstant": false, "isLValue": false, "isPure": true, @@ -8357,7 +8357,7 @@ "typeString": "function () pure returns (bytes memory)" } }, - "id": 120343, + "id": 120334, "isConstant": false, "isLValue": false, "isPure": false, @@ -8380,7 +8380,7 @@ "typeString": "bytes memory" } ], - "id": 120338, + "id": 120329, "isConstant": false, "isLValue": false, "isPure": true, @@ -8392,14 +8392,14 @@ "typeString": "type(string storage pointer)" }, "typeName": { - "id": 120337, + "id": 120328, "name": "string", "nodeType": "ElementaryTypeName", "src": "4067:6:174", "typeDescriptions": {} } }, - "id": 120344, + "id": 120335, "isConstant": false, "isLValue": false, "isPure": false, @@ -8419,19 +8419,19 @@ }, { "expression": { - "id": 120346, + "id": 120337, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120336, + "referencedDeclaration": 120327, "src": "4250:1:174", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "functionReturnParameters": 120322, - "id": 120347, + "functionReturnParameters": 120313, + "id": 120338, "nodeType": "Return", "src": "4243:8:174" } @@ -8450,23 +8450,23 @@ "name": "tokenURI", "nameLocation": "3853:8:174", "overrides": { - "id": 120319, + "id": 120310, "nodeType": "OverrideSpecifier", "overrides": [], "src": "3906:8:174" }, "parameters": { - "id": 120318, + "id": 120309, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120317, + "id": 120308, "mutability": "mutable", "name": "_tokenId", "nameLocation": "3879:8:174", "nodeType": "VariableDeclaration", - "scope": 120410, + "scope": 120401, "src": "3871:16:174", "stateVariable": false, "storageLocation": "default", @@ -8475,7 +8475,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120316, + "id": 120307, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3871:7:174", @@ -8490,17 +8490,17 @@ "src": "3861:32:174" }, "returnParameters": { - "id": 120322, + "id": 120313, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120321, + "id": 120312, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120410, + "scope": 120401, "src": "3924:13:174", "stateVariable": false, "storageLocation": "memory", @@ -8509,7 +8509,7 @@ "typeString": "string" }, "typeName": { - "id": 120320, + "id": 120311, "name": "string", "nodeType": "ElementaryTypeName", "src": "3924:6:174", @@ -8523,83 +8523,83 @@ ], "src": "3923:15:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "view", "virtual": false, "visibility": "public" }, { - "id": 120458, + "id": 120449, "nodeType": "FunctionDefinition", "src": "5138:372:174", "nodes": [], "body": { - "id": 120457, + "id": 120448, "nodeType": "Block", "src": "5249:261:174", "nodes": [], "statements": [ { "assignments": [ - 120429 + 120420 ], "declarations": [ { "constant": false, - "id": 120429, + "id": 120420, "mutability": "mutable", "name": "user", "nameLocation": "5271:4:174", "nodeType": "VariableDeclaration", - "scope": 120457, + "scope": 120448, "src": "5259:16:174", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User" }, "typeName": { - "id": 120428, + "id": 120419, "nodeType": "UserDefinedTypeName", "pathNode": { - "id": 120427, + "id": 120418, "name": "User", "nodeType": "IdentifierPath", - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "5259:4:174" }, - "referencedDeclaration": 119896, + "referencedDeclaration": 119887, "src": "5259:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage_ptr", + "typeIdentifier": "t_struct$_User_$119887_storage_ptr", "typeString": "struct MUser.User" } }, "visibility": "internal" } ], - "id": 120433, + "id": 120424, "initialValue": { "baseExpression": { - "id": 120430, + "id": 120421, "name": "userList", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119946, + "referencedDeclaration": 119937, "src": "5278:8:174", "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119896_storage_$", + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_User_$119887_storage_$", "typeString": "mapping(uint256 => struct MUser.User storage ref)" } }, - "id": 120432, + "id": 120423, "indexExpression": { - "id": 120431, + "id": 120422, "name": "_tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120412, + "referencedDeclaration": 120403, "src": "5287:8:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8613,7 +8613,7 @@ "nodeType": "IndexAccess", "src": "5278:18:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_storage", + "typeIdentifier": "t_struct$_User_$119887_storage", "typeString": "struct MUser.User storage ref" } }, @@ -8625,38 +8625,38 @@ "arguments": [ { "commonType": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" }, - "id": 120439, + "id": 120430, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { - "id": 120435, + "id": 120426, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5314:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120436, + "id": 120427, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "state", "nodeType": "MemberAccess", - "referencedDeclaration": 119895, + "referencedDeclaration": 119886, "src": "5314:10:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -8664,28 +8664,28 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120437, + "id": 120428, "name": "RandomState", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119578, + "referencedDeclaration": 119569, "src": "5328:11:174", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_RandomState_$119578_$", + "typeIdentifier": "t_type$_t_enum$_RandomState_$119569_$", "typeString": "type(enum MRandom.RandomState)" } }, - "id": 120438, + "id": 120429, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "Confirmed", "nodeType": "MemberAccess", - "referencedDeclaration": 119577, + "referencedDeclaration": 119568, "src": "5328:21:174", "typeDescriptions": { - "typeIdentifier": "t_enum$_RandomState_$119578", + "typeIdentifier": "t_enum$_RandomState_$119569", "typeString": "enum MRandom.RandomState" } }, @@ -8697,7 +8697,7 @@ }, { "hexValue": "55736572206e6f7420657869737473", - "id": 120440, + "id": 120431, "isConstant": false, "isLValue": false, "isPure": true, @@ -8723,7 +8723,7 @@ "typeString": "literal_string \"User not exists\"" } ], - "id": 120434, + "id": 120425, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ @@ -8737,7 +8737,7 @@ "typeString": "function (bool,string memory) pure" } }, - "id": 120441, + "id": 120432, "isConstant": false, "isLValue": false, "isPure": false, @@ -8752,7 +8752,7 @@ "typeString": "tuple()" } }, - "id": 120442, + "id": 120433, "nodeType": "ExpressionStatement", "src": "5306:62:174" }, @@ -8761,25 +8761,25 @@ "components": [ { "expression": { - "id": 120443, + "id": 120434, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5385:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120444, + "id": 120435, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "HP", "nodeType": "MemberAccess", - "referencedDeclaration": 119882, + "referencedDeclaration": 119873, "src": "5385:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8788,25 +8788,25 @@ }, { "expression": { - "id": 120445, + "id": 120436, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5402:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120446, + "id": 120437, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Attack", "nodeType": "MemberAccess", - "referencedDeclaration": 119884, + "referencedDeclaration": 119875, "src": "5402:11:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8815,25 +8815,25 @@ }, { "expression": { - "id": 120447, + "id": 120438, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5423:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120448, + "id": 120439, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "AttackRange", "nodeType": "MemberAccess", - "referencedDeclaration": 119886, + "referencedDeclaration": 119877, "src": "5423:16:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8842,25 +8842,25 @@ }, { "expression": { - "id": 120449, + "id": 120440, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5449:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120450, + "id": 120441, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Speed", "nodeType": "MemberAccess", - "referencedDeclaration": 119888, + "referencedDeclaration": 119879, "src": "5449:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8869,25 +8869,25 @@ }, { "expression": { - "id": 120451, + "id": 120442, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5469:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120452, + "id": 120443, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Strength", "nodeType": "MemberAccess", - "referencedDeclaration": 119890, + "referencedDeclaration": 119881, "src": "5469:13:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8896,25 +8896,25 @@ }, { "expression": { - "id": 120453, + "id": 120444, "name": "user", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120429, + "referencedDeclaration": 120420, "src": "5492:4:174", "typeDescriptions": { - "typeIdentifier": "t_struct$_User_$119896_memory_ptr", + "typeIdentifier": "t_struct$_User_$119887_memory_ptr", "typeString": "struct MUser.User memory" } }, - "id": 120454, + "id": 120445, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Space", "nodeType": "MemberAccess", - "referencedDeclaration": 119892, + "referencedDeclaration": 119883, "src": "5492:10:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8922,7 +8922,7 @@ } } ], - "id": 120455, + "id": 120446, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -8935,8 +8935,8 @@ "typeString": "tuple(uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 120426, - "id": 120456, + "functionReturnParameters": 120417, + "id": 120447, "nodeType": "Return", "src": "5378:125:174" } @@ -8949,17 +8949,17 @@ "name": "getStructInfo", "nameLocation": "5147:13:174", "parameters": { - "id": 120413, + "id": 120404, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120412, + "id": 120403, "mutability": "mutable", "name": "_tokenId", "nameLocation": "5169:8:174", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5161:16:174", "stateVariable": false, "storageLocation": "default", @@ -8968,7 +8968,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120411, + "id": 120402, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5161:7:174", @@ -8983,17 +8983,17 @@ "src": "5160:18:174" }, "returnParameters": { - "id": 120426, + "id": 120417, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120415, + "id": 120406, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5201:7:174", "stateVariable": false, "storageLocation": "default", @@ -9002,7 +9002,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120414, + "id": 120405, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5201:7:174", @@ -9015,12 +9015,12 @@ }, { "constant": false, - "id": 120417, + "id": 120408, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5209:7:174", "stateVariable": false, "storageLocation": "default", @@ -9029,7 +9029,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120416, + "id": 120407, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5209:7:174", @@ -9042,12 +9042,12 @@ }, { "constant": false, - "id": 120419, + "id": 120410, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5217:7:174", "stateVariable": false, "storageLocation": "default", @@ -9056,7 +9056,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120418, + "id": 120409, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5217:7:174", @@ -9069,12 +9069,12 @@ }, { "constant": false, - "id": 120421, + "id": 120412, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5225:7:174", "stateVariable": false, "storageLocation": "default", @@ -9083,7 +9083,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120420, + "id": 120411, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5225:7:174", @@ -9096,12 +9096,12 @@ }, { "constant": false, - "id": 120423, + "id": 120414, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5233:7:174", "stateVariable": false, "storageLocation": "default", @@ -9110,7 +9110,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120422, + "id": 120413, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5233:7:174", @@ -9123,12 +9123,12 @@ }, { "constant": false, - "id": 120425, + "id": 120416, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120458, + "scope": 120449, "src": "5241:7:174", "stateVariable": false, "storageLocation": "default", @@ -9137,7 +9137,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120424, + "id": 120415, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5241:7:174", @@ -9151,35 +9151,35 @@ ], "src": "5200:49:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "view", "virtual": false, "visibility": "external" }, { - "id": 120522, + "id": 120513, "nodeType": "FunctionDefinition", "src": "5516:482:174", "nodes": [], "body": { - "id": 120521, + "id": 120512, "nodeType": "Block", "src": "5585:413:174", "nodes": [], "statements": [ { "assignments": [ - 120465 + 120456 ], "declarations": [ { "constant": false, - "id": 120465, + "id": 120456, "mutability": "mutable", "name": "balance", "nameLocation": "5603:7:174", "nodeType": "VariableDeclaration", - "scope": 120521, + "scope": 120512, "src": "5595:15:174", "stateVariable": false, "storageLocation": "default", @@ -9188,7 +9188,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120464, + "id": 120455, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5595:7:174", @@ -9200,12 +9200,12 @@ "visibility": "internal" } ], - "id": 120470, + "id": 120461, "initialValue": { "arguments": [ { "expression": { - "id": 120467, + "id": 120458, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9216,7 +9216,7 @@ "typeString": "msg" } }, - "id": 120468, + "id": 120459, "isConstant": false, "isLValue": false, "isPure": false, @@ -9237,7 +9237,7 @@ "typeString": "address" } ], - "id": 120466, + "id": 120457, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9248,7 +9248,7 @@ "typeString": "function (address) view returns (uint256)" } }, - "id": 120469, + "id": 120460, "isConstant": false, "isLValue": false, "isPure": false, @@ -9268,17 +9268,17 @@ }, { "assignments": [ - 120475 + 120466 ], "declarations": [ { "constant": false, - "id": 120475, + "id": 120466, "mutability": "mutable", "name": "tokenIds", "nameLocation": "5661:8:174", "nodeType": "VariableDeclaration", - "scope": 120521, + "scope": 120512, "src": "5644:25:174", "stateVariable": false, "storageLocation": "memory", @@ -9288,7 +9288,7 @@ }, "typeName": { "baseType": { - "id": 120473, + "id": 120464, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5644:7:174", @@ -9297,7 +9297,7 @@ "typeString": "uint256" } }, - "id": 120474, + "id": 120465, "nodeType": "ArrayTypeName", "src": "5644:9:174", "typeDescriptions": { @@ -9308,15 +9308,15 @@ "visibility": "internal" } ], - "id": 120481, + "id": 120472, "initialValue": { "arguments": [ { - "id": 120479, + "id": 120470, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120465, + "referencedDeclaration": 120456, "src": "5686:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9331,7 +9331,7 @@ "typeString": "uint256" } ], - "id": 120478, + "id": 120469, "isConstant": false, "isLValue": false, "isPure": true, @@ -9344,7 +9344,7 @@ }, "typeName": { "baseType": { - "id": 120476, + "id": 120467, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5676:7:174", @@ -9353,7 +9353,7 @@ "typeString": "uint256" } }, - "id": 120477, + "id": 120468, "nodeType": "ArrayTypeName", "src": "5676:9:174", "typeDescriptions": { @@ -9362,7 +9362,7 @@ } } }, - "id": 120480, + "id": 120471, "isConstant": false, "isLValue": false, "isPure": false, @@ -9382,17 +9382,17 @@ }, { "assignments": [ - 120483 + 120474 ], "declarations": [ { "constant": false, - "id": 120483, + "id": 120474, "mutability": "mutable", "name": "index", "nameLocation": "5712:5:174", "nodeType": "VariableDeclaration", - "scope": 120521, + "scope": 120512, "src": "5704:13:174", "stateVariable": false, "storageLocation": "default", @@ -9401,7 +9401,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120482, + "id": 120473, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5704:7:174", @@ -9413,13 +9413,13 @@ "visibility": "internal" } ], - "id": 120484, + "id": 120475, "nodeType": "VariableDeclarationStatement", "src": "5704:13:174" }, { "body": { - "id": 120517, + "id": 120508, "nodeType": "Block", "src": "5755:212:174", "statements": [ @@ -9429,7 +9429,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 120499, + "id": 120490, "isConstant": false, "isLValue": false, "isPure": false, @@ -9437,11 +9437,11 @@ "leftExpression": { "arguments": [ { - "id": 120495, + "id": 120486, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 120477, "src": "5780:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9456,7 +9456,7 @@ "typeString": "uint256" } ], - "id": 120494, + "id": 120485, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9467,7 +9467,7 @@ "typeString": "function (uint256) view returns (address)" } }, - "id": 120496, + "id": 120487, "isConstant": false, "isLValue": false, "isPure": false, @@ -9486,7 +9486,7 @@ "operator": "==", "rightExpression": { "expression": { - "id": 120497, + "id": 120488, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], @@ -9497,7 +9497,7 @@ "typeString": "msg" } }, - "id": 120498, + "id": 120489, "isConstant": false, "isLValue": false, "isPure": false, @@ -9516,41 +9516,41 @@ "typeString": "bool" } }, - "id": 120516, + "id": 120507, "nodeType": "IfStatement", "src": "5769:188:174", "trueBody": { - "id": 120515, + "id": 120506, "nodeType": "Block", "src": "5797:160:174", "statements": [ { "expression": { - "id": 120504, + "id": 120495, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { - "id": 120500, + "id": 120491, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120475, + "referencedDeclaration": 120466, "src": "5815:8:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "id": 120502, + "id": 120493, "indexExpression": { - "id": 120501, + "id": 120492, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120483, + "referencedDeclaration": 120474, "src": "5824:5:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9571,11 +9571,11 @@ "nodeType": "Assignment", "operator": "=", "rightHandSide": { - "id": 120503, + "id": 120494, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 120477, "src": "5833:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9588,13 +9588,13 @@ "typeString": "uint256" } }, - "id": 120505, + "id": 120496, "nodeType": "ExpressionStatement", "src": "5815:19:174" }, { "expression": { - "id": 120507, + "id": 120498, "isConstant": false, "isLValue": false, "isPure": false, @@ -9604,11 +9604,11 @@ "prefix": false, "src": "5852:7:174", "subExpression": { - "id": 120506, + "id": 120497, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120483, + "referencedDeclaration": 120474, "src": "5852:5:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9620,7 +9620,7 @@ "typeString": "uint256" } }, - "id": 120508, + "id": 120499, "nodeType": "ExpressionStatement", "src": "5852:7:174" }, @@ -9630,17 +9630,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120511, + "id": 120502, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120509, + "id": 120500, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120483, + "referencedDeclaration": 120474, "src": "5880:5:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9650,11 +9650,11 @@ "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { - "id": 120510, + "id": 120501, "name": "balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120465, + "referencedDeclaration": 120456, "src": "5889:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9667,16 +9667,16 @@ "typeString": "bool" } }, - "id": 120514, + "id": 120505, "nodeType": "IfStatement", "src": "5877:66:174", "trueBody": { - "id": 120513, + "id": 120504, "nodeType": "Block", "src": "5897:46:174", "statements": [ { - "id": 120512, + "id": 120503, "nodeType": "Break", "src": "5919:5:174" } @@ -9693,17 +9693,17 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 120490, + "id": 120481, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { - "id": 120488, + "id": 120479, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 120477, "src": "5741:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9713,11 +9713,11 @@ "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { - "id": 120489, + "id": 120480, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 119898, + "referencedDeclaration": 119889, "src": "5743:7:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9730,20 +9730,20 @@ "typeString": "bool" } }, - "id": 120518, + "id": 120509, "initializationExpression": { "assignments": [ - 120486 + 120477 ], "declarations": [ { "constant": false, - "id": 120486, + "id": 120477, "mutability": "mutable", "name": "i", "nameLocation": "5739:1:174", "nodeType": "VariableDeclaration", - "scope": 120518, + "scope": 120509, "src": "5731:9:174", "stateVariable": false, "storageLocation": "default", @@ -9752,7 +9752,7 @@ "typeString": "uint256" }, "typeName": { - "id": 120485, + "id": 120476, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5731:7:174", @@ -9764,13 +9764,13 @@ "visibility": "internal" } ], - "id": 120487, + "id": 120478, "nodeType": "VariableDeclarationStatement", "src": "5731:9:174" }, "loopExpression": { "expression": { - "id": 120492, + "id": 120483, "isConstant": false, "isLValue": false, "isPure": false, @@ -9780,11 +9780,11 @@ "prefix": false, "src": "5751:3:174", "subExpression": { - "id": 120491, + "id": 120482, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120486, + "referencedDeclaration": 120477, "src": "5751:1:174", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9796,7 +9796,7 @@ "typeString": "uint256" } }, - "id": 120493, + "id": 120484, "nodeType": "ExpressionStatement", "src": "5751:3:174" }, @@ -9805,19 +9805,19 @@ }, { "expression": { - "id": 120519, + "id": 120510, "name": "tokenIds", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 120475, + "referencedDeclaration": 120466, "src": "5983:8:174", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, - "functionReturnParameters": 120463, - "id": 120520, + "functionReturnParameters": 120454, + "id": 120511, "nodeType": "Return", "src": "5976:15:174" } @@ -9830,23 +9830,23 @@ "name": "getUserTokenIdList", "nameLocation": "5525:18:174", "parameters": { - "id": 120459, + "id": 120450, "nodeType": "ParameterList", "parameters": [], "src": "5543:2:174" }, "returnParameters": { - "id": 120463, + "id": 120454, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 120462, + "id": 120453, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", - "scope": 120522, + "scope": 120513, "src": "5568:16:174", "stateVariable": false, "storageLocation": "memory", @@ -9856,7 +9856,7 @@ }, "typeName": { "baseType": { - "id": 120460, + "id": 120451, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5568:7:174", @@ -9865,7 +9865,7 @@ "typeString": "uint256" } }, - "id": 120461, + "id": 120452, "nodeType": "ArrayTypeName", "src": "5568:9:174", "typeDescriptions": { @@ -9878,7 +9878,7 @@ ], "src": "5567:18:174" }, - "scope": 120523, + "scope": 120514, "stateMutability": "view", "virtual": false, "visibility": "external" @@ -9888,25 +9888,25 @@ "baseContracts": [ { "baseName": { - "id": 119870, + "id": 119861, "name": "ERC721", "nodeType": "IdentifierPath", "referencedDeclaration": 72425, "src": "181:6:174" }, - "id": 119871, + "id": 119862, "nodeType": "InheritanceSpecifier", "src": "181:6:174" }, { "baseName": { - "id": 119872, + "id": 119863, "name": "MRandom", "nodeType": "IdentifierPath", - "referencedDeclaration": 119769, + "referencedDeclaration": 119760, "src": "189:7:174" }, - "id": 119873, + "id": 119864, "nodeType": "InheritanceSpecifier", "src": "189:7:174" } @@ -9916,18 +9916,18 @@ "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ - 120523, - 119769, + 120514, + 119760, 72425, - 130666, - 130621, - 131042, - 173323, - 131018 + 130686, + 130641, + 131062, + 173343, + 131038 ], "name": "MUser", "nameLocation": "172:5:174", - "scope": 120524, + "scope": 120515, "usedErrors": [] } ], diff --git a/packages/contracts/src/systems/BattleForceSystem.sol b/packages/contracts/src/systems/BattleForceSystem.sol index ddf95161..8dd9da0e 100644 --- a/packages/contracts/src/systems/BattleForceSystem.sol +++ b/packages/contracts/src/systems/BattleForceSystem.sol @@ -34,7 +34,9 @@ contract BattleForceSystem is System { BattleList.setAttackerState(_battleId, BattleState.Revealed); BattleList.setIsEnd(_battleId, true); BattleList.setWinner(_battleId, _msgSender()); - + + Player.setHp(battle.attacker, battle.attackerHP); + Player.setHp(battle.defender, battle.defenderHP); BattleUtils.loseGame(oppositer, _msgSender()); } diff --git a/packages/contracts/src/systems/BattleInfoSystem.sol b/packages/contracts/src/systems/BattleInfoSystem.sol index 301626bf..184d90ad 100644 --- a/packages/contracts/src/systems/BattleInfoSystem.sol +++ b/packages/contracts/src/systems/BattleInfoSystem.sol @@ -15,8 +15,7 @@ contract BattleInfoSystem is System { return battle.attacker == addr ? battle.attackerHP : battle.defenderHP; } - - function raisePlayerHp(uint256 _targetHP, uint256 _percent, address _player) public { - Player.setHp(_player, (_targetHP * _percent) / 100); - } + // function raisePlayerHp(uint256 _targetHP, uint256 _percent, address _player) public { + // Player.setHp(_player, (_targetHP * _percent) / 100); + // } } \ No newline at end of file diff --git a/packages/contracts/src/systems/BattlePrepareSystem.sol b/packages/contracts/src/systems/BattlePrepareSystem.sol index fe2b7c73..46f86805 100644 --- a/packages/contracts/src/systems/BattlePrepareSystem.sol +++ b/packages/contracts/src/systems/BattlePrepareSystem.sol @@ -36,6 +36,7 @@ contract BattlePrepareSystem is System { player.x == GameConfig.getOriginX(GAME_CONFIG_KEY) && player.y == GameConfig.getOriginY(GAME_CONFIG_KEY), "You are not in the origin point" ); + Player.setHp(_msgSender(), Player.getMaxHp(_msgSender())); BattleUtils.outBattlefield(_msgSender()); } @@ -121,7 +122,7 @@ contract BattlePrepareSystem is System { } uint256 elapsedTime = block.timestamp - time; - uint256 increase = (elapsedTime / 10) / 100 * maxHp ; + uint256 increase = ((elapsedTime / 10) * maxHp) / 100 ; hp = hp + increase; return (hp > maxHp) ? maxHp : hp; } diff --git a/packages/contracts/src/systems/BattleSystem.sol b/packages/contracts/src/systems/BattleSystem.sol index a4f20891..2c28acac 100644 --- a/packages/contracts/src/systems/BattleSystem.sol +++ b/packages/contracts/src/systems/BattleSystem.sol @@ -69,6 +69,7 @@ contract BattleSystem is System { // emit BattleEnd(_battleId, BattleEndType.RoundEnd, address(0)); BattleList.setDefenderState(_battleId, BattleState.Inited); BattleList.setAttackerState(_battleId, BattleState.Inited); + BattleList.setEndTimestamp(_battleId, block.timestamp); } else { // set explore state if (Player.getState(battle.attacker) == PlayerState.Attacking) { @@ -78,6 +79,8 @@ contract BattleSystem is System { Player.setState(battle.defender, PlayerState.Exploring); } BattleList.setEndTimestamp(_battleId, block.timestamp); + Player.setHp(battle.attacker, BattleList.getAttackerHP(_battleId)); + Player.setHp(battle.defender, BattleList.getDefenderHP(_battleId)); } } diff --git a/packages/contracts/src/systems/library/BattleUtils.sol b/packages/contracts/src/systems/library/BattleUtils.sol index 58db3243..8b4f041e 100644 --- a/packages/contracts/src/systems/library/BattleUtils.sol +++ b/packages/contracts/src/systems/library/BattleUtils.sol @@ -71,7 +71,7 @@ library BattleUtils { require(Player.getState(_player) == PlayerState.Exploring, "You should in exploring state"); // Player.setHp(_player, initPlayerHp(_player)); //Todo: setting to atacker or defender hp - Player.setHp(_player, Player.getMaxHp(_player)); + // Player.setHp(_player, Player.getMaxHp(_player)); for (uint256 i; i < BattleConfig.lengthBattlefieldPlayers(BATTLE_CONFIG_KEY); i++) { if (BattleConfig.getItemBattlefieldPlayers(BATTLE_CONFIG_KEY, i) == _player) {