diff --git a/abis/AavegotchiDiamond.json b/abis/AavegotchiDiamond.json index 15e3326..e0ed9a4 100644 --- a/abis/AavegotchiDiamond.json +++ b/abis/AavegotchiDiamond.json @@ -1,10926 +1,12294 @@ [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_approved", - "type": "bool" - } - ], - "name": "PetOperatorApprovalForAll", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "aavegotchiClaimTime", - "outputs": [ - { - "internalType": "uint256", - "name": "claimTime_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "allAavegotchisOfOwner", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } - ], - "internalType": "struct AavegotchiInfo[]", - "name": "aavegotchiInfos_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_approved", - "type": "address" - }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "approve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "balanceOf", - "outputs": [ - { "internalType": "uint256", "name": "balance_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "getAavegotchi", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } - ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "getApproved", - "outputs": [ - { - "internalType": "address", - "name": "approved_", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { - "internalType": "address", - "name": "_operator", - "type": "address" - } - ], - "name": "isApprovedForAll", - "outputs": [ - { "internalType": "bool", "name": "approved_", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { - "internalType": "address", - "name": "_operator", - "type": "address" - } - ], - "name": "isPetOperatorForAll", - "outputs": [ - { "internalType": "bool", "name": "approved_", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "ownerOf", - "outputs": [ - { "internalType": "address", "name": "owner_", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "safeBatchTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { "internalType": "bool", "name": "_approved", "type": "bool" } - ], - "name": "setApprovalForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { "internalType": "bool", "name": "_approved", "type": "bool" } - ], - "name": "setPetOperatorForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" } - ], - "name": "tokenByIndex", - "outputs": [ - { "internalType": "uint256", "name": "tokenId_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "tokenIdsOfOwner", - "outputs": [ - { - "internalType": "uint32[]", - "name": "tokenIds_", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "uint256", "name": "_index", "type": "uint256" } - ], - "name": "tokenOfOwnerByIndex", - "outputs": [ - { "internalType": "uint256", "name": "tokenId_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "tokenURI", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "totalSupply_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "ClaimAavegotchi", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_time", - "type": "uint256" - } - ], - "name": "LockAavegotchi", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "_oldName", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "_newName", - "type": "string" - } - ], - "name": "SetAavegotchiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_batchId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenIds", - "type": "uint256[]" - } - ], - "name": "SetBatchId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "int16[4]", - "name": "_values", - "type": "int16[4]" - } - ], - "name": "SpendSkillpoints", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "ResetSkillpoints", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_time", - "type": "uint256" - } - ], - "name": "UnLockAavegotchi", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_experience", - "type": "uint256" - } - ], - "name": "aavegotchiLevel", - "outputs": [ - { "internalType": "uint256", "name": "level_", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_name", "type": "string" } - ], - "name": "aavegotchiNameAvailable", - "outputs": [ - { "internalType": "bool", "name": "available_", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "availableSkillPoints", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "int16[6]", - "name": "_numericTraits", - "type": "int16[6]" - } - ], - "name": "baseRarityScore", - "outputs": [ - { - "internalType": "uint256", - "name": "rarityScore_", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { "internalType": "uint256", "name": "_option", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_stakeAmount", - "type": "uint256" - } - ], - "name": "claimAavegotchi", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currentHaunt", - "outputs": [ - { - "internalType": "uint256", - "name": "hauntId_", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "hauntMaxSize", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "portalPrice", - "type": "uint256" - }, - { - "internalType": "bytes3", - "name": "bodyColor", - "type": "bytes3" - }, - { - "internalType": "uint24", - "name": "totalCount", - "type": "uint24" - } - ], - "internalType": "struct Haunt", - "name": "haunt_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "getNumericTraits", - "outputs": [ - { - "internalType": "int16[6]", - "name": "numericTraits_", - "type": "int16[6]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ghstAddress", - "outputs": [ - { - "internalType": "address", - "name": "contract_", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - } - ], - "name": "interact", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "kinship", - "outputs": [ - { "internalType": "uint256", "name": "score_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "modifiedTraitsAndRarityScore", - "outputs": [ - { - "internalType": "int16[6]", - "name": "numericTraits_", - "type": "int16[6]" - }, - { - "internalType": "uint256", - "name": "rarityScore_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "portalAavegotchiTraits", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - } - ], - "internalType": "struct PortalAavegotchiTraitsIO[10]", - "name": "portalAavegotchiTraits_", - "type": "tuple[10]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "int16[6]", - "name": "_numericTraits", - "type": "int16[6]" - } - ], - "name": "rarityMultiplier", - "outputs": [ - { - "internalType": "uint256", - "name": "multiplier_", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "revenueShares", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "burnAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "daoAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "rarityFarming", - "type": "address" - }, - { - "internalType": "address", - "name": "pixelCraft", - "type": "address" - } - ], - "internalType": "struct AavegotchiGameFacet.RevenueSharesIO", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { "internalType": "string", "name": "_name", "type": "string" } - ], - "name": "setAavegotchiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "int16[4]", - "name": "_values", - "type": "int16[4]" - } - ], - "name": "spendSkillPoints", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "uint256", "name": "_count", "type": "uint256" }, - { "internalType": "uint256", "name": "_skip", "type": "uint256" }, - { "internalType": "bool", "name": "all", "type": "bool" } - ], - "name": "tokenIdsWithKinship", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - } - ], - "internalType": "struct AavegotchiGameFacet.TokenIdsWithKinship[]", - "name": "tokenIdsWithKinship_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_experience", - "type": "uint256" - } - ], - "name": "xpUntilNextLevel", - "outputs": [ - { - "internalType": "uint256", - "name": "requiredXp_", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenIds", - "type": "uint256[]" - } - ], - "name": "AddedAavegotchiBatch", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - } - ], - "name": "AddedItemsBatch", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenIds", - "type": "uint256[]" - } - ], - "name": "WithdrawnBatch", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - } - ], - "name": "WithdrawnItems", - "type": "event" - }, - { - "inputs": [], - "name": "childChainManager", - "outputs": [ - { "internalType": "address", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" }, - { "internalType": "bytes", "name": "_depositData", "type": "bytes" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_newChildChainManager", - "type": "address" - } - ], - "name": "setChildChainManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - } - ], - "name": "withdrawAavegotchiBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "withdrawItemsBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_reduceAmount", - "type": "uint256" - } - ], - "name": "DecreaseStake", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "experience", - "type": "uint256" - } - ], - "name": "ExperienceTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_stakeAmount", - "type": "uint256" - } - ], - "name": "IncreaseStake", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "collateralBalance", - "outputs": [ - { - "internalType": "address", - "name": "collateralType_", - "type": "address" - }, - { "internalType": "address", "name": "escrow_", "type": "address" }, - { "internalType": "uint256", "name": "balance_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_collateralId", - "type": "uint256" - } - ], - "name": "collateralInfo", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "components": [ - { - "internalType": "int16[6]", - "name": "modifiers", - "type": "int16[6]" - }, - { - "internalType": "bytes3", - "name": "primaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "secondaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "cheekColor", - "type": "bytes3" - }, - { - "internalType": "uint8", - "name": "svgId", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "eyeShapeSvgId", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "conversionRate", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "delisted", - "type": "bool" - } - ], - "internalType": "struct AavegotchiCollateralTypeInfo", - "name": "collateralTypeInfo", - "type": "tuple" - } - ], - "internalType": "struct AavegotchiCollateralTypeIO", - "name": "collateralInfo_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_hauntId", "type": "uint256" } - ], - "name": "collaterals", - "outputs": [ - { - "internalType": "address[]", - "name": "collateralTypes_", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { "internalType": "uint256", "name": "_toId", "type": "uint256" } - ], - "name": "decreaseAndDestroy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_reduceAmount", - "type": "uint256" - } - ], - "name": "decreaseStake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllCollateralTypes", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_hauntId", "type": "uint256" } - ], - "name": "getCollateralInfo", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "components": [ - { - "internalType": "int16[6]", - "name": "modifiers", - "type": "int16[6]" - }, - { - "internalType": "bytes3", - "name": "primaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "secondaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "cheekColor", - "type": "bytes3" - }, - { - "internalType": "uint8", - "name": "svgId", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "eyeShapeSvgId", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "conversionRate", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "delisted", - "type": "bool" - } - ], - "internalType": "struct AavegotchiCollateralTypeInfo", - "name": "collateralTypeInfo", - "type": "tuple" - } - ], - "internalType": "struct AavegotchiCollateralTypeIO[]", - "name": "collateralInfo_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_stakeAmount", - "type": "uint256" - } - ], - "name": "increaseStake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_collateralToken", - "type": "address" - }, - { "internalType": "uint8", "name": "_svgId", "type": "uint8" } - ], - "name": "setCollateralEyeShapeSvgId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "components": [ - { - "internalType": "int16[6]", - "name": "modifiers", - "type": "int16[6]" - }, - { - "internalType": "bytes3", - "name": "primaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "secondaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "cheekColor", - "type": "bytes3" - }, - { - "internalType": "uint8", - "name": "svgId", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "eyeShapeSvgId", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "conversionRate", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "delisted", - "type": "bool" - } - ], - "internalType": "struct AavegotchiCollateralTypeInfo", - "name": "collateralTypeInfo", - "type": "tuple" - } - ], - "indexed": false, - "internalType": "struct AavegotchiCollateralTypeIO", - "name": "_collateralType", - "type": "tuple" - } - ], - "name": "AddCollateralType", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "indexed": false, - "internalType": "struct ItemType", - "name": "_itemType", - "type": "tuple" - } - ], - "name": "AddItemType", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "indexed": false, - "internalType": "struct WearableSet", - "name": "_wearableSet", - "type": "tuple" - } - ], - "name": "AddWearableSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_hauntMaxSize", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_portalPrice", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "_bodyColor", - "type": "bytes32" - } - ], - "name": "CreateHaunt", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousDao", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newDao", - "type": "address" - } - ], - "name": "DaoTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousDaoTreasury", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newDaoTreasury", - "type": "address" - } - ], - "name": "DaoTreasuryTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "gameManager_", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "limit_", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "refreshTime_", - "type": "uint256" - } - ], - "name": "GameManagerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "gameManager_", - "type": "address" - } - ], - "name": "GameManagerRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_xpValues", - "type": "uint256[]" - } - ], - "name": "GrantExperience", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newItemManager_", - "type": "address" - } - ], - "name": "ItemManagerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "itemManager_", - "type": "address" - } - ], - "name": "ItemManagerRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_wearableId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "int8[6]", - "name": "_traitModifiers", - "type": "int8[6]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "_rarityScoreModifier", - "type": "uint8" - } - ], - "name": "ItemModifiersSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_maxQuanities", - "type": "uint256[]" - } - ], - "name": "ItemTypeMaxQuantity", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_xpValues", - "type": "uint256[]" - } - ], - "name": "RemoveExperience", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "int16[6]", - "name": "_oldModifiers", - "type": "int16[6]" - }, - { - "indexed": false, - "internalType": "int16[6]", - "name": "_newModifiers", - "type": "int16[6]" - } - ], - "name": "UpdateCollateralModifiers", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_setId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "indexed": false, - "internalType": "struct WearableSet", - "name": "_wearableSet", - "type": "tuple" - } - ], - "name": "UpdateWearableSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_wearableId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool[16]", - "name": "_slotPositions", - "type": "bool[16]" - } - ], - "name": "WearableSlotPositionsSet", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "components": [ - { - "internalType": "int16[6]", - "name": "modifiers", - "type": "int16[6]" - }, - { - "internalType": "bytes3", - "name": "primaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "secondaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "cheekColor", - "type": "bytes3" - }, - { - "internalType": "uint8", - "name": "svgId", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "eyeShapeSvgId", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "conversionRate", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "delisted", - "type": "bool" - } - ], - "internalType": "struct AavegotchiCollateralTypeInfo", - "name": "collateralTypeInfo", - "type": "tuple" - } - ], - "internalType": "struct AavegotchiCollateralTypeIO[]", - "name": "_collateralTypes", - "type": "tuple[]" - } - ], - "name": "addCollateralTypes", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_newGameManagers", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "_limits", - "type": "uint256[]" - } - ], - "name": "addGameManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_newItemManagers", - "type": "address[]" - } - ], - "name": "addItemManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType[]", - "name": "_itemTypes", - "type": "tuple[]" - } - ], - "name": "addItemTypes", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType[]", - "name": "_itemTypes", - "type": "tuple[]" - }, - { "internalType": "string", "name": "_svg", "type": "string" }, - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "internalType": "struct LibSvg.SvgTypeAndSizes[]", - "name": "_typesAndSizes", - "type": "tuple[]" - } - ], - "name": "addItemTypesAndSvgs", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "internalType": "struct WearableSet[]", - "name": "_wearableSets", - "type": "tuple[]" - } - ], - "name": "addWearableSets", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint24", - "name": "_hauntMaxSize", - "type": "uint24" - }, - { - "internalType": "uint96", - "name": "_portalPrice", - "type": "uint96" - }, - { "internalType": "bytes3", "name": "_bodyColor", "type": "bytes3" } - ], - "name": "createHaunt", - "outputs": [ - { "internalType": "uint256", "name": "hauntId_", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint24", - "name": "_hauntMaxSize", - "type": "uint24" - }, - { - "internalType": "uint96", - "name": "_portalPrice", - "type": "uint96" - }, - { - "internalType": "bytes3", - "name": "_bodyColor", - "type": "bytes3" - }, - { - "components": [ - { - "internalType": "address", - "name": "collateralType", - "type": "address" - }, - { - "components": [ - { - "internalType": "int16[6]", - "name": "modifiers", - "type": "int16[6]" - }, - { - "internalType": "bytes3", - "name": "primaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "secondaryColor", - "type": "bytes3" - }, - { - "internalType": "bytes3", - "name": "cheekColor", - "type": "bytes3" - }, - { - "internalType": "uint8", - "name": "svgId", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "eyeShapeSvgId", - "type": "uint8" - }, - { - "internalType": "uint16", - "name": "conversionRate", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "delisted", - "type": "bool" - } - ], - "internalType": "struct AavegotchiCollateralTypeInfo", - "name": "collateralTypeInfo", - "type": "tuple" - } - ], - "internalType": "struct AavegotchiCollateralTypeIO[]", - "name": "_collateralTypes", - "type": "tuple[]" - }, - { - "internalType": "string", - "name": "_collateralSvg", - "type": "string" - }, - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "internalType": "struct LibSvg.SvgTypeAndSizes[]", - "name": "_collateralTypesAndSizes", - "type": "tuple[]" - }, - { - "internalType": "string", - "name": "_eyeShapeSvg", - "type": "string" - }, - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "internalType": "struct LibSvg.SvgTypeAndSizes[]", - "name": "_eyeShapeTypesAndSizes", - "type": "tuple[]" - } - ], - "internalType": "struct DAOFacet.CreateHauntPayload", - "name": "_payload", - "type": "tuple" - } - ], - "name": "createHauntWithPayload", - "outputs": [ - { "internalType": "uint256", "name": "hauntId_", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_manager", "type": "address" } - ], - "name": "gameManagerBalance", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_manager", "type": "address" } - ], - "name": "gameManagerRefreshTime", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_xpValues", - "type": "uint256[]" - } - ], - "name": "grantExperience", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_manager", "type": "address" } - ], - "name": "isGameManager", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "mintItems", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_xpValues", - "type": "uint256[]" - } - ], - "name": "removeExperience", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_gameManagers", - "type": "address[]" - } - ], - "name": "removeGameManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_itemManagers", - "type": "address[]" - } - ], - "name": "removeItemManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newDao", "type": "address" }, - { - "internalType": "address", - "name": "_newDaoTreasury", - "type": "address" - } - ], - "name": "setDao", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_wearableId", - "type": "uint256" - }, - { - "internalType": "int8[6]", - "name": "_traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "uint8", - "name": "_rarityScoreModifier", - "type": "uint8" - } - ], - "name": "setItemTraitModifiersAndRarityModifier", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_wearableId", - "type": "uint256" - }, - { - "internalType": "bool[16]", - "name": "_slotPositions", - "type": "bool[16]" - } - ], - "name": "setWearableSlotPositions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_collateralType", - "type": "address" - }, - { - "internalType": "int16[6]", - "name": "_modifiers", - "type": "int16[6]" - } - ], - "name": "updateCollateralModifiers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_maxQuantities", - "type": "uint256[]" - } - ], - "name": "updateItemTypeMaxQuantity", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_setIds", - "type": "uint256[]" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "internalType": "struct WearableSet[]", - "name": "_wearableSets", - "type": "tuple[]" - } - ], - "name": "updateWearableSets", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "listingFeeInWei", - "type": "uint256" - } - ], - "name": "ChangedListingFee", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_quantity", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC1155ExecutedListing", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC1155ListingAdd", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - } - ], - "name": "ERC1155ListingCancelled", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "cancelERC1155Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_listingIds", - "type": "uint256[]" - } - ], - "name": "cancelERC1155Listings", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_priceInWei", - "type": "uint256" - } - ], - "name": "executeERC1155Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc1155TypeId", - "type": "uint256" - } - ], - "name": "getERC1155Category", - "outputs": [ - { - "internalType": "uint256", - "name": "category_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "getERC1155Listing", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeLastPurchased", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourceListingId", - "type": "uint256" - }, - { "internalType": "bool", "name": "sold", "type": "bool" }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC1155Listing", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc1155TypeId", - "type": "uint256" - }, - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "getERC1155ListingFromToken", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeLastPurchased", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourceListingId", - "type": "uint256" - }, - { "internalType": "bool", "name": "sold", "type": "bool" }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC1155Listing", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getERC1155Listings", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeLastPurchased", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourceListingId", - "type": "uint256" - }, - { "internalType": "bool", "name": "sold", "type": "bool" }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC1155Listing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getListingFeeInWei", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getOwnerERC1155Listings", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeLastPurchased", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sourceListingId", - "type": "uint256" - }, - { "internalType": "bool", "name": "sold", "type": "bool" }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC1155Listing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - } - ], - "internalType": "struct ERC1155MarketplaceFacet.Category[]", - "name": "_categories", - "type": "tuple[]" - } - ], - "name": "setERC1155Categories", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc1155TypeId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_quantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_priceInWei", - "type": "uint256" - } - ], - "name": "setERC1155Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingFeeInWei", - "type": "uint256" - } - ], - "name": "setListingFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_erc1155TypeIds", - "type": "uint256[]" - }, - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "updateBatchERC1155Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc1155TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc1155TypeId", - "type": "uint256" - }, - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "updateERC1155Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721ExecutedListing", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721ListingAdd", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_priceInWei", - "type": "uint256" - } - ], - "name": "addERC721Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "cancelERC721Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc721TokenId", - "type": "uint256" - } - ], - "name": "cancelERC721ListingByToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_listingIds", - "type": "uint256[]" - } - ], - "name": "cancelERC721Listings", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "executeERC721Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "getAavegotchiListing", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing", - "name": "listing_", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } - ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getAavegotchiListings", - "outputs": [ - { - "components": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing", - "name": "listing_", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } - ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", - "type": "tuple" - } - ], - "internalType": "struct ERC721MarketplaceFacet.AavegotchiListing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc721TokenId", - "type": "uint256" - } - ], - "name": "getERC721Category", - "outputs": [ - { - "internalType": "uint256", - "name": "category_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_listingId", - "type": "uint256" - } - ], - "name": "getERC721Listing", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc721TokenId", - "type": "uint256" - }, - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "getERC721ListingFromToken", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getERC721Listings", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getOwnerAavegotchiListings", - "outputs": [ - { - "components": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing", - "name": "listing_", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } - ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", - "type": "tuple" - } - ], - "internalType": "struct ERC721MarketplaceFacet.AavegotchiListing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { - "internalType": "uint256", - "name": "_category", - "type": "uint256" - }, - { "internalType": "string", "name": "_sort", "type": "string" }, - { "internalType": "uint256", "name": "_length", "type": "uint256" } - ], - "name": "getOwnerERC721Listings", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "timePurchased", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "cancelled", - "type": "bool" - } - ], - "internalType": "struct ERC721Listing[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_erc721TokenAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_erc721TokenId", - "type": "uint256" - }, - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "updateERC721Listing", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "_erc20Contract", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_depositAmount", - "type": "uint256" - } - ], - "name": "Erc20Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "_erc20Contract", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_transferAmount", - "type": "uint256" - } - ], - "name": "TransferEscrow", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "internalType": "address[]", - "name": "_erc20Contracts", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "batchDepositERC20", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "batchDepositGHST", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_erc20Contract", - "type": "address" - }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "depositERC20", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_erc20Contract", - "type": "address" - } - ], - "name": "escrowBalance", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_erc20Contract", - "type": "address" - }, - { - "internalType": "address", - "name": "_recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_transferAmount", - "type": "uint256" - } - ], - "name": "transferEscrow", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint16[16]", - "name": "_oldWearables", - "type": "uint16[16]" - }, - { - "indexed": false, - "internalType": "uint16[16]", - "name": "_newWearables", - "type": "uint16[16]" - } - ], - "name": "EquipWearables", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenTypeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "TransferToParent", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "UseConsumables", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "uint256", "name": "_id", "type": "uint256" } - ], - "name": "balanceOf", - "outputs": [ - { "internalType": "uint256", "name": "bal_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { "internalType": "uint256[]", "name": "_ids", "type": "uint256[]" } - ], - "name": "balanceOfBatch", - "outputs": [ - { "internalType": "uint256[]", "name": "bals", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { "internalType": "uint256", "name": "_id", "type": "uint256" } - ], - "name": "balanceOfToken", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "uint16[16]", - "name": "_wearablesToEquip", - "type": "uint16[16]" - } - ], - "name": "equipWearables", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "equippedWearables", - "outputs": [ - { - "internalType": "uint16[16]", - "name": "wearableIds_", - "type": "uint16[16]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_wearableIds", - "type": "uint256[]" - } - ], - "name": "findWearableSets", - "outputs": [ - { - "internalType": "uint256[]", - "name": "wearableSetIds_", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_itemId", "type": "uint256" } - ], - "name": "getItemType", - "outputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - } - ], - "name": "getItemTypes", - "outputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType[]", - "name": "itemTypes_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" } - ], - "name": "getWearableSet", - "outputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "internalType": "struct WearableSet", - "name": "wearableSet_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getWearableSets", - "outputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" - }, - { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" - } - ], - "internalType": "struct WearableSet[]", - "name": "wearableSets_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "itemBalances", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - } - ], - "internalType": "struct ItemsFacet.ItemIdIO[]", - "name": "bals_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenContract", - "type": "address" - }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "itemBalancesOfToken", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - } - ], - "internalType": "struct ItemsFacet.ItemIdIO[]", - "name": "bals_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenContract", - "type": "address" - }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "itemBalancesOfTokenWithTypes", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "itemBalancesOfTokenWithTypes_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "itemBalancesWithTypes", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "output_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_value", "type": "string" } - ], - "name": "setBaseURI", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalWearableSets", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_id", "type": "uint256" } - ], - "name": "uri", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "useConsumables", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - - { - "inputs": [ - { - "internalType": "address", - "name": "_fromContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "batchTransferAsChild", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_fromContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "batchTransferFromParent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "batchTransferToParent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "extractItemsFromDiamond", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "extractItemsFromSacrificedGotchi", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, - { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, - { "internalType": "bytes", "name": "", "type": "bytes" } - ], - "name": "onERC1155BatchReceived", - "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bytes", "name": "", "type": "bytes" } - ], - "name": "onERC1155Received", - "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "safeBatchTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_id", "type": "uint256" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_fromContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { "internalType": "uint256", "name": "_id", "type": "uint256" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferAsChild", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_fromContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_id", "type": "uint256" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFromParent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { "internalType": "uint256", "name": "_id", "type": "uint256" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferToParent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "userAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address payable", - "name": "relayerAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "functionSignature", - "type": "bytes" - } - ], - "name": "MetaTransactionExecuted", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "userAddress", - "type": "address" - }, - { - "internalType": "bytes", - "name": "functionSignature", - "type": "bytes" - }, - { "internalType": "bytes32", "name": "sigR", "type": "bytes32" }, - { "internalType": "bytes32", "name": "sigS", "type": "bytes32" }, - { "internalType": "uint8", "name": "sigV", "type": "uint8" } - ], - "name": "executeMetaTransaction", - "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "user", "type": "address" } - ], - "name": "getNonce", - "outputs": [ - { "internalType": "uint256", "name": "nonce_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_numAavegotchisToPurchase", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_totalPrice", - "type": "uint256" - } - ], - "name": "BuyPortals", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_numAavegotchisToPurchase", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_totalPrice", - "type": "uint256" - } - ], - "name": "Xingyun", - "type": "event" - }, - - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_numAavegotchisToPurchase", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - } - ], - "name": "MintPortals", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_buyer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_totalPrice", - "type": "uint256" - } - ], - "name": "PurchaseItemsWithGhst", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_buyer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "PurchaseItemsWithVouchers", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_buyer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_totalPrice", - "type": "uint256" - } - ], - "name": "PurchaseTransferItemsWithGhst", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_ghst", "type": "uint256" } - ], - "name": "buyPortals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintPortals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "purchaseItemsWithGhst", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_quantities", - "type": "uint256[]" - } - ], - "name": "purchaseTransferItemsWithGhst", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_svgType", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_numLayers", - "type": "uint256" - } - ], - "name": "deleteLastSvgLayers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "getAavegotchiSvg", - "outputs": [ - { "internalType": "string", "name": "ag_", "type": "string" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_itemId", "type": "uint256" } - ], - "name": "getItemSvg", - "outputs": [ - { "internalType": "string", "name": "ag_", "type": "string" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_svgType", - "type": "bytes32" - }, - { "internalType": "uint256", "name": "_itemId", "type": "uint256" } - ], - "name": "getSvg", - "outputs": [ - { "internalType": "string", "name": "svg_", "type": "string" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - } - ], - "name": "getSvgs", - "outputs": [ - { "internalType": "string[]", "name": "svgs_", "type": "string[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "portalAavegotchisSvg", - "outputs": [ - { - "internalType": "string[10]", - "name": "svg_", - "type": "string[10]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_collateralType", - "type": "address" - }, - { - "internalType": "int16[6]", - "name": "_numericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - } - ], - "name": "previewAavegotchi", - "outputs": [ - { "internalType": "string", "name": "ag_", "type": "string" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_itemIds", - "type": "uint256[]" - }, - { - "components": [ - { "internalType": "uint8", "name": "x", "type": "uint8" }, - { "internalType": "uint8", "name": "y", "type": "uint8" }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions[]", - "name": "_dimensions", - "type": "tuple[]" - } - ], - "name": "setItemsDimensions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "sleeveId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "wearableId", - "type": "uint256" - } - ], - "internalType": "struct SvgFacet.Sleeve[]", - "name": "_sleeves", - "type": "tuple[]" - } - ], - "name": "setSleeves", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_svg", "type": "string" }, - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "internalType": "struct LibSvg.SvgTypeAndSizes[]", - "name": "_typesAndSizes", - "type": "tuple[]" - } - ], - "name": "storeSvg", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_svg", "type": "string" }, - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "internalType": "struct LibSvg.SvgTypeAndIdsAndSizes[]", - "name": "_typesAndIdsAndSizes", - "type": "tuple[]" - } - ], - "name": "updateSvg", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" } - ], - "name": "getAavegotchiSideSvgs", - "outputs": [ - { "internalType": "string[]", "name": "ag_", "type": "string[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_itemId", "type": "uint256" } - ], - "name": "getItemSvgs", - "outputs": [ - { "internalType": "string[]", "name": "svg_", "type": "string[]" } - ], - "stateMutability": "view", - "type": "function" - }, - - { - "inputs": [ - { - "internalType": "uint256", - "name": "_hauntId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_collateralType", - "type": "address" - }, - { - "internalType": "int16[6]", - "name": "_numericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - } - ], - "name": "previewSideAavegotchi", - "outputs": [ - { "internalType": "string[]", "name": "ag_", "type": "string[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "side", - "type": "string" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - } - ], - "internalType": "struct SvgViewsFacet.SideViewDimensionsArgs[]", - "name": "_sideViewDimensions", - "type": "tuple[]" - } - ], - "name": "setSideViewDimensions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - } - ], - "name": "OpenPortals", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "PortalOpened", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_vrfTimeSet", - "type": "uint256" - } - ], - "name": "VrfRandomNumber", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_newFee", "type": "uint256" }, - { - "internalType": "bytes32", - "name": "_keyHash", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "_vrfCoordinator", - "type": "address" - }, - { "internalType": "address", "name": "_link", "type": "address" } - ], - "name": "changeVrf", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "keyHash", - "outputs": [ - { "internalType": "bytes32", "name": "", "type": "bytes32" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "link", - "outputs": [ - { "internalType": "address", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "linkBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "linkBalance_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_tokenIds", - "type": "uint256[]" - } - ], - "name": "openPortals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_requestId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_randomNumber", - "type": "uint256" - } - ], - "name": "rawFulfillRandomness", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "removeLinkTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vrfCoordinator", - "outputs": [ - { "internalType": "address", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "MigrateVouchers", - "type": "event" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "values", - "type": "uint256[]" - } - ], - "internalType": "struct VoucherMigrationFacet.VouchersOwner[]", - "name": "_vouchersOwners", - "type": "tuple[]" - } - ], - "name": "migrateVouchers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - } - ], - "name": "AavegotchiInteract", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC1155ListingCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC1155ListingRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "quantity", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "UpdateERC1155Listing", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721ListingCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721ListingRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "indexed": false, - "internalType": "struct LibSvg.SvgTypeAndSizes[]", - "name": "_typesAndSizes", - "type": "tuple[]" - } - ], - "name": "StoreSvg", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "bytes32", - "name": "svgType", - "type": "bytes32" - }, - { - "internalType": "uint256[]", - "name": "ids", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "sizes", - "type": "uint256[]" - } - ], - "indexed": false, - "internalType": "struct LibSvg.SvgTypeAndIdsAndSizes[]", - "name": "_typesAndIdsAndSizes", - "type": "tuple[]" - } - ], - "name": "UpdateSvg", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "PetOperatorApprovalForAll", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "aavegotchiClaimTime", + "outputs": [ + { + "internalType": "uint256", + "name": "claimTime_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "allAavegotchisOfOwner", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "status", + "type": "uint256" + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { + "internalType": "address", + "name": "collateral", + "type": "address" + }, + { + "internalType": "address", + "name": "escrow", + "type": "address" + }, + { + "internalType": "uint256", + "name": "stakedAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "experience", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "level", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "hauntId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "baseRarityScore", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "modifiedRarityScore", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "indexed": false, - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "_diamondCut", - "type": "tuple[]" - }, - { - "indexed": false, - "internalType": "address", - "name": "_init", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "_calldata", - "type": "bytes" - } - ], - "name": "DiamondCut", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_ids", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "_values", - "type": "uint256[]" - } - ], - "name": "TransferBatch", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_fromContract", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_fromTokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenTypeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "TransferFromParent", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "TransferSingle", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_toContract", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_toTokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenTypeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "TransferToParent", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "_value", - "type": "string" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_id", - "type": "uint256" - } - ], - "name": "URI", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_approved", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_itemId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_priceInWei", - "type": "uint256" - } - ], - "name": "UpdateItemPrice", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - } - ], - "name": "GotchiLendingAdd", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - } - ], - "name": "GotchiLendingEnd", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - } - ], - "name": "GotchiLendingExecute", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "_initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "_period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "_revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "_originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "_thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "_whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "_revenueTokens", - "type": "address[]" - } - ], - "name": "addGotchiLending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "_initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "_period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "_revenueSplit", - "type": "uint8[3]" - } - ], - "name": "agreeGotchiLending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - } - ], - "name": "cancelGotchiLending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "cancelGotchiLendingByToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_tokenId", - "type": "uint32" - } - ], - "name": "claimAndEndGotchiLending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_tokenId", - "type": "uint32" - } - ], - "name": "claimGotchiLending", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "getGotchiLendingFromToken", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, - { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" - }, - { - "internalType": "bool", - "name": "canceled", - "type": "bool" - }, - { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } - ], - "internalType": "struct GotchiLending", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "getGotchiLendingIdByToken", - "outputs": [ - { - "internalType": "uint32", - "name": "", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - } - ], - "name": "getGotchiLendingListingInfo", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, - { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" - }, - { - "internalType": "bool", - "name": "canceled", - "type": "bool" - }, - { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } ], - "internalType": "struct GotchiLending", - "name": "listing_", + "internalType": "struct ItemType", + "name": "itemType", "type": "tuple" - }, - { + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo[]", + "name": "aavegotchiInfos_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_approved", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "balance_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getAavegotchi", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "status", + "type": "uint256" + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { + "internalType": "address", + "name": "collateral", + "type": "address" + }, + { + "internalType": "address", + "name": "escrow", + "type": "address" + }, + { + "internalType": "uint256", + "name": "stakedAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "experience", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "level", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "hauntId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "baseRarityScore", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "modifiedRarityScore", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { "components": [ - { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "status", - "type": "uint256" - }, - { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, - { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, - { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, - { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { - "internalType": "address", - "name": "escrow", - "type": "address" - }, - { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "level", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "locked", - "type": "bool" - }, - { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "author", - "type": "string" - }, - { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" - }, - { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, - { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, - { - "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } - ], - "internalType": "struct Dimensions", - "name": "dimensions", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, - { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" - }, - { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" - }, - { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, - { - "internalType": "uint8", - "name": "category", - "type": "uint8" - }, - { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" - }, - { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" - } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" - } + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", + "internalType": "struct ItemType", + "name": "itemType", "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "_status", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_length", - "type": "uint256" - } - ], - "name": "getGotchiLendings", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, - { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" - }, - { - "internalType": "bool", - "name": "canceled", - "type": "bool" - }, - { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } - ], - "internalType": "struct GotchiLending[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - } - ], - "name": "getLendingListingInfo", - "outputs": [ - { + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "approved_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "address", + "name": "_operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "approved_", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "address", + "name": "_operator", + "type": "address" + } + ], + "name": "isPetOperatorForAll", + "outputs": [ + { + "internalType": "bool", + "name": "approved_", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "owner_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeBatchTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "setPetOperatorForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_index", + "type": "uint256" + } + ], + "name": "tokenByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "tokenId_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "tokenIdsOfOwner", + "outputs": [ + { + "internalType": "uint32[]", + "name": "tokenIds_", + "type": "uint32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_index", + "type": "uint256" + } + ], + "name": "tokenOfOwnerByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "tokenId_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "totalSupply_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "ClaimAavegotchi", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_time", + "type": "uint256" + } + ], + "name": "LockAavegotchi", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "_oldName", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "_newName", + "type": "string" + } + ], + "name": "SetAavegotchiName", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_batchId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" + } + ], + "name": "SetBatchId", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "int16[4]", + "name": "_values", + "type": "int16[4]" + } + ], + "name": "SpendSkillpoints", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "ResetSkillpoints", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_time", + "type": "uint256" + } + ], + "name": "UnLockAavegotchi", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_experience", + "type": "uint256" + } + ], + "name": "aavegotchiLevel", + "outputs": [ + { + "internalType": "uint256", + "name": "level_", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + } + ], + "name": "aavegotchiNameAvailable", + "outputs": [ + { + "internalType": "bool", + "name": "available_", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "availableSkillPoints", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int16[6]", + "name": "_numericTraits", + "type": "int16[6]" + } + ], + "name": "baseRarityScore", + "outputs": [ + { + "internalType": "uint256", + "name": "rarityScore_", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_option", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_stakeAmount", + "type": "uint256" + } + ], + "name": "claimAavegotchi", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "currentHaunt", + "outputs": [ + { + "internalType": "uint256", + "name": "hauntId_", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "hauntMaxSize", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "portalPrice", + "type": "uint256" + }, + { + "internalType": "bytes3", + "name": "bodyColor", + "type": "bytes3" + }, + { + "internalType": "uint24", + "name": "totalCount", + "type": "uint24" + } + ], + "internalType": "struct Haunt", + "name": "haunt_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getNumericTraits", + "outputs": [ + { + "internalType": "int16[6]", + "name": "numericTraits_", + "type": "int16[6]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "ghstAddress", + "outputs": [ + { + "internalType": "address", + "name": "contract_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + } + ], + "name": "interact", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "kinship", + "outputs": [ + { + "internalType": "uint256", + "name": "score_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "modifiedTraitsAndRarityScore", + "outputs": [ + { + "internalType": "int16[6]", + "name": "numericTraits_", + "type": "int16[6]" + }, + { + "internalType": "uint256", + "name": "rarityScore_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "portalAavegotchiTraits", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + } + ], + "internalType": "struct PortalAavegotchiTraitsIO[10]", + "name": "portalAavegotchiTraits_", + "type": "tuple[10]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int16[6]", + "name": "_numericTraits", + "type": "int16[6]" + } + ], + "name": "rarityMultiplier", + "outputs": [ + { + "internalType": "uint256", + "name": "multiplier_", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "revenueShares", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "burnAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "daoAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "rarityFarming", + "type": "address" + }, + { + "internalType": "address", + "name": "pixelCraft", + "type": "address" + } + ], + "internalType": "struct AavegotchiGameFacet.RevenueSharesIO", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_name", + "type": "string" + } + ], + "name": "setAavegotchiName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "int16[4]", + "name": "_values", + "type": "int16[4]" + } + ], + "name": "spendSkillPoints", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_count", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_skip", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "all", + "type": "bool" + } + ], + "name": "tokenIdsWithKinship", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + } + ], + "internalType": "struct AavegotchiGameFacet.TokenIdsWithKinship[]", + "name": "tokenIdsWithKinship_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_experience", + "type": "uint256" + } + ], + "name": "xpUntilNextLevel", + "outputs": [ + { + "internalType": "uint256", + "name": "requiredXp_", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" + } + ], + "name": "AddedAavegotchiBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + } + ], + "name": "AddedItemsBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" + } + ], + "name": "WithdrawnBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + } + ], + "name": "WithdrawnItems", + "type": "event" + }, + { + "inputs": [], + "name": "childChainManager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_user", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_depositData", + "type": "bytes" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_newChildChainManager", + "type": "address" + } + ], + "name": "setChildChainManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + } + ], + "name": "withdrawAavegotchiBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "withdrawItemsBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_reduceAmount", + "type": "uint256" + } + ], + "name": "DecreaseStake", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "experience", + "type": "uint256" + } + ], + "name": "ExperienceTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_stakeAmount", + "type": "uint256" + } + ], + "name": "IncreaseStake", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "collateralBalance", + "outputs": [ + { + "internalType": "address", + "name": "collateralType_", + "type": "address" + }, + { + "internalType": "address", + "name": "escrow_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "balance_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_collateralId", + "type": "uint256" + } + ], + "name": "collateralInfo", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { + "components": [ + { + "internalType": "int16[6]", + "name": "modifiers", + "type": "int16[6]" + }, + { + "internalType": "bytes3", + "name": "primaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "secondaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "cheekColor", + "type": "bytes3" + }, + { + "internalType": "uint8", + "name": "svgId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "eyeShapeSvgId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "conversionRate", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "delisted", + "type": "bool" + } + ], + "internalType": "struct AavegotchiCollateralTypeInfo", + "name": "collateralTypeInfo", + "type": "tuple" + } + ], + "internalType": "struct AavegotchiCollateralTypeIO", + "name": "collateralInfo_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + } + ], + "name": "collaterals", + "outputs": [ + { + "internalType": "address[]", + "name": "collateralTypes_", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_toId", + "type": "uint256" + } + ], + "name": "decreaseAndDestroy", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_reduceAmount", + "type": "uint256" + } + ], + "name": "decreaseStake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getAllCollateralTypes", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + } + ], + "name": "getCollateralInfo", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { + "components": [ + { + "internalType": "int16[6]", + "name": "modifiers", + "type": "int16[6]" + }, + { + "internalType": "bytes3", + "name": "primaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "secondaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "cheekColor", + "type": "bytes3" + }, + { + "internalType": "uint8", + "name": "svgId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "eyeShapeSvgId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "conversionRate", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "delisted", + "type": "bool" + } + ], + "internalType": "struct AavegotchiCollateralTypeInfo", + "name": "collateralTypeInfo", + "type": "tuple" + } + ], + "internalType": "struct AavegotchiCollateralTypeIO[]", + "name": "collateralInfo_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_stakeAmount", + "type": "uint256" + } + ], + "name": "increaseStake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_collateralToken", + "type": "address" + }, + { + "internalType": "uint8", + "name": "_svgId", + "type": "uint8" + } + ], + "name": "setCollateralEyeShapeSvgId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { + "components": [ + { + "internalType": "int16[6]", + "name": "modifiers", + "type": "int16[6]" + }, + { + "internalType": "bytes3", + "name": "primaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "secondaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "cheekColor", + "type": "bytes3" + }, + { + "internalType": "uint8", + "name": "svgId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "eyeShapeSvgId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "conversionRate", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "delisted", + "type": "bool" + } + ], + "internalType": "struct AavegotchiCollateralTypeInfo", + "name": "collateralTypeInfo", + "type": "tuple" + } + ], + "indexed": false, + "internalType": "struct AavegotchiCollateralTypeIO", + "name": "_collateralType", + "type": "tuple" + } + ], + "name": "AddCollateralType", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct ItemType", + "name": "_itemType", + "type": "tuple" + } + ], + "name": "AddItemType", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "indexed": false, + "internalType": "struct WearableSet", + "name": "_wearableSet", + "type": "tuple" + } + ], + "name": "AddWearableSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_hauntMaxSize", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_portalPrice", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "_bodyColor", + "type": "bytes32" + } + ], + "name": "CreateHaunt", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousDao", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newDao", + "type": "address" + } + ], + "name": "DaoTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousDaoTreasury", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newDaoTreasury", + "type": "address" + } + ], + "name": "DaoTreasuryTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "gameManager_", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "limit_", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "refreshTime_", + "type": "uint256" + } + ], + "name": "GameManagerAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "gameManager_", + "type": "address" + } + ], + "name": "GameManagerRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_xpValues", + "type": "uint256[]" + } + ], + "name": "GrantExperience", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "newItemManager_", + "type": "address" + } + ], + "name": "ItemManagerAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "itemManager_", + "type": "address" + } + ], + "name": "ItemManagerRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_wearableId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "int8[6]", + "name": "_traitModifiers", + "type": "int8[6]" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "_rarityScoreModifier", + "type": "uint8" + } + ], + "name": "ItemModifiersSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_maxQuanities", + "type": "uint256[]" + } + ], + "name": "ItemTypeMaxQuantity", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_xpValues", + "type": "uint256[]" + } + ], + "name": "RemoveExperience", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int16[6]", + "name": "_oldModifiers", + "type": "int16[6]" + }, + { + "indexed": false, + "internalType": "int16[6]", + "name": "_newModifiers", + "type": "int16[6]" + } + ], + "name": "UpdateCollateralModifiers", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_setId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "indexed": false, + "internalType": "struct WearableSet", + "name": "_wearableSet", + "type": "tuple" + } + ], + "name": "UpdateWearableSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_wearableId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool[16]", + "name": "_slotPositions", + "type": "bool[16]" + } + ], + "name": "WearableSlotPositionsSet", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { + "components": [ + { + "internalType": "int16[6]", + "name": "modifiers", + "type": "int16[6]" + }, + { + "internalType": "bytes3", + "name": "primaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "secondaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "cheekColor", + "type": "bytes3" + }, + { + "internalType": "uint8", + "name": "svgId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "eyeShapeSvgId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "conversionRate", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "delisted", + "type": "bool" + } + ], + "internalType": "struct AavegotchiCollateralTypeInfo", + "name": "collateralTypeInfo", + "type": "tuple" + } + ], + "internalType": "struct AavegotchiCollateralTypeIO[]", + "name": "_collateralTypes", + "type": "tuple[]" + } + ], + "name": "addCollateralTypes", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_newGameManagers", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "_limits", + "type": "uint256[]" + } + ], + "name": "addGameManagers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_newItemManagers", + "type": "address[]" + } + ], + "name": "addItemManagers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType[]", + "name": "_itemTypes", + "type": "tuple[]" + } + ], + "name": "addItemTypes", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType[]", + "name": "_itemTypes", + "type": "tuple[]" + }, + { + "internalType": "string", + "name": "_svg", + "type": "string" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "internalType": "struct LibSvg.SvgTypeAndSizes[]", + "name": "_typesAndSizes", + "type": "tuple[]" + } + ], + "name": "addItemTypesAndSvgs", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "internalType": "struct WearableSet[]", + "name": "_wearableSets", + "type": "tuple[]" + } + ], + "name": "addWearableSets", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint24", + "name": "_hauntMaxSize", + "type": "uint24" + }, + { + "internalType": "uint96", + "name": "_portalPrice", + "type": "uint96" + }, + { + "internalType": "bytes3", + "name": "_bodyColor", + "type": "bytes3" + } + ], + "name": "createHaunt", + "outputs": [ + { + "internalType": "uint256", + "name": "hauntId_", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint24", + "name": "_hauntMaxSize", + "type": "uint24" + }, + { + "internalType": "uint96", + "name": "_portalPrice", + "type": "uint96" + }, + { + "internalType": "bytes3", + "name": "_bodyColor", + "type": "bytes3" + }, + { + "components": [ + { + "internalType": "address", + "name": "collateralType", + "type": "address" + }, + { "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, - { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" - }, - { - "internalType": "bool", - "name": "canceled", - "type": "bool" - }, - { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } + { + "internalType": "int16[6]", + "name": "modifiers", + "type": "int16[6]" + }, + { + "internalType": "bytes3", + "name": "primaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "secondaryColor", + "type": "bytes3" + }, + { + "internalType": "bytes3", + "name": "cheekColor", + "type": "bytes3" + }, + { + "internalType": "uint8", + "name": "svgId", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "eyeShapeSvgId", + "type": "uint8" + }, + { + "internalType": "uint16", + "name": "conversionRate", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "delisted", + "type": "bool" + } ], - "internalType": "struct GotchiLending", - "name": "listing_", + "internalType": "struct AavegotchiCollateralTypeInfo", + "name": "collateralTypeInfo", "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_lender", - "type": "address" - }, - { + } + ], + "internalType": "struct AavegotchiCollateralTypeIO[]", + "name": "_collateralTypes", + "type": "tuple[]" + }, + { + "internalType": "string", + "name": "_collateralSvg", + "type": "string" + }, + { + "components": [ + { "internalType": "bytes32", - "name": "_status", + "name": "svgType", "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "_length", - "type": "uint256" - } - ], - "name": "getOwnerGotchiLendings", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, - { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" - }, - { - "internalType": "bool", - "name": "canceled", - "type": "bool" - }, - { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } - ], - "internalType": "struct GotchiLending[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "isAavegotchiLent", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - } - ], - "name": "WhitelistCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - } - ], - "name": "WhitelistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "WhitelistOwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "_name", - "type": "string" - }, - { - "internalType": "address[]", - "name": "_whitelistAddresses", - "type": "address[]" - } - ], - "name": "createWhitelist", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_whitelistId", - "type": "uint32" - } - ], - "name": "getWhitelist", - "outputs": [ - { + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "internalType": "struct LibSvg.SvgTypeAndSizes[]", + "name": "_collateralTypesAndSizes", + "type": "tuple[]" + }, + { + "internalType": "string", + "name": "_eyeShapeSvg", + "type": "string" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "internalType": "struct LibSvg.SvgTypeAndSizes[]", + "name": "_eyeShapeTypesAndSizes", + "type": "tuple[]" + } + ], + "internalType": "struct DAOFacet.CreateHauntPayload", + "name": "_payload", + "type": "tuple" + } + ], + "name": "createHauntWithPayload", + "outputs": [ + { + "internalType": "uint256", + "name": "hauntId_", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "gameManagerBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "gameManagerRefreshTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_xpValues", + "type": "uint256[]" + } + ], + "name": "grantExperience", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "isGameManager", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "mintItems", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_xpValues", + "type": "uint256[]" + } + ], + "name": "removeExperience", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_gameManagers", + "type": "address[]" + } + ], + "name": "removeGameManagers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_itemManagers", + "type": "address[]" + } + ], + "name": "removeItemManagers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_newDao", + "type": "address" + }, + { + "internalType": "address", + "name": "_newDaoTreasury", + "type": "address" + } + ], + "name": "setDao", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_wearableId", + "type": "uint256" + }, + { + "internalType": "int8[6]", + "name": "_traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "uint8", + "name": "_rarityScoreModifier", + "type": "uint8" + } + ], + "name": "setItemTraitModifiersAndRarityModifier", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_wearableId", + "type": "uint256" + }, + { + "internalType": "bool[16]", + "name": "_slotPositions", + "type": "bool[16]" + } + ], + "name": "setWearableSlotPositions", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_collateralType", + "type": "address" + }, + { + "internalType": "int16[6]", + "name": "_modifiers", + "type": "int16[6]" + } + ], + "name": "updateCollateralModifiers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_maxQuantities", + "type": "uint256[]" + } + ], + "name": "updateItemTypeMaxQuantity", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_setIds", + "type": "uint256[]" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "internalType": "struct WearableSet[]", + "name": "_wearableSets", + "type": "tuple[]" + } + ], + "name": "updateWearableSets", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "listingFeeInWei", + "type": "uint256" + } + ], + "name": "ChangedListingFee", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_quantity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155ExecutedListing", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155ListingAdd", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + } + ], + "name": "ERC1155ListingCancelled", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "cancelERC1155Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_listingIds", + "type": "uint256[]" + } + ], + "name": "cancelERC1155Listings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_priceInWei", + "type": "uint256" + } + ], + "name": "executeERC1155Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc1155TypeId", + "type": "uint256" + } + ], + "name": "getERC1155Category", + "outputs": [ + { + "internalType": "uint256", + "name": "category_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "getERC1155Listing", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeLastPurchased", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sourceListingId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "sold", + "type": "bool" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC1155Listing", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "getERC1155ListingFromToken", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeLastPurchased", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sourceListingId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "sold", + "type": "bool" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC1155Listing", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getERC1155Listings", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeLastPurchased", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sourceListingId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "sold", + "type": "bool" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC1155Listing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getListingFeeInWei", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getOwnerERC1155Listings", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeLastPurchased", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sourceListingId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "sold", + "type": "bool" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC1155Listing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + } + ], + "internalType": "struct ERC1155MarketplaceFacet.Category[]", + "name": "_categories", + "type": "tuple[]" + } + ], + "name": "setERC1155Categories", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_quantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_priceInWei", + "type": "uint256" + } + ], + "name": "setERC1155Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingFeeInWei", + "type": "uint256" + } + ], + "name": "setListingFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_erc1155TypeIds", + "type": "uint256[]" + }, + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "updateBatchERC1155Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc1155TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc1155TypeId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "updateERC1155Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ExecutedListing", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ListingAdd", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_priceInWei", + "type": "uint256" + } + ], + "name": "addERC721Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "cancelERC721Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc721TokenId", + "type": "uint256" + } + ], + "name": "cancelERC721ListingByToken", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_listingIds", + "type": "uint256[]" + } + ], + "name": "cancelERC721Listings", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "executeERC721Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "getAavegotchiListing", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePurchased", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing", + "name": "listing_", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "status", + "type": "uint256" + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { + "internalType": "address", + "name": "collateral", + "type": "address" + }, + { + "internalType": "address", + "name": "escrow", + "type": "address" + }, + { + "internalType": "uint256", + "name": "stakedAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "experience", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "level", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "hauntId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "baseRarityScore", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "modifiedRarityScore", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { "components": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - } + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } ], - "internalType": "struct Whitelist", - "name": "", + "internalType": "struct ItemType", + "name": "itemType", "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getWhitelists", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - } - ], - "internalType": "struct Whitelist[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "_whitelistAddresses", - "type": "address[]" - } - ], - "name": "updateWhitelist", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "GotchiLendingCancel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "tokenAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - } - ], - "name": "GotchiLendingClaim", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "ERC721ExecutedToRecipient", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getAavegotchiListings", + "outputs": [ + { + "components": [ + { + "components": [ + { "internalType": "uint256", "name": "listingId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "ERC1155ExecutedToRecipient", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "indexed": false, + "type": "uint256" + }, + { "internalType": "address", - "name": "originalOwner", + "name": "seller", "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "address", - "name": "thirdParty", + "name": "erc721TokenAddress", "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "indexed": false, + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { "internalType": "uint256", "name": "timeCreated", "type": "uint256" - } - ], - "name": "GotchiLendingAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "indexed": false, - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "timeCanceled", + "name": "timePurchased", "type": "uint256" - } - ], - "name": "GotchiLendingCanceled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing", + "name": "listing_", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", "name": "tokenId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "indexed": false, - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "indexed": false, + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { "internalType": "address", - "name": "thirdParty", + "name": "owner", "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "timeClaimed", + "name": "randomNumber", "type": "uint256" - } - ], - "name": "GotchiLendingClaimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "indexed": false, - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "timeEnded", + "name": "status", "type": "uint256" - } - ], - "name": "GotchiLendingEnded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "indexed": false, + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { "internalType": "address", - "name": "originalOwner", + "name": "collateral", "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "address", - "name": "thirdParty", + "name": "escrow", "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "timeAgreed", + "name": "stakedAmount", "type": "uint256" - } - ], - "name": "GotchiLendingExecuted", - "type": "event" - }, - { - "name": "WhitelistAccessRightSet", - "type": "event", - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "indexed": true, + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "experience", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "level", + "type": "uint256" + }, + { "internalType": "uint256", - "name": "actionRight", + "name": "hauntId", "type": "uint256" - }, - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "accessRight", + "name": "baseRarityScore", "type": "uint256" - } - ] - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "_itemId", + "name": "modifiedRarityScore", "type": "uint256" - }, - { + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { "components": [ - { + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "components": [ + { "internalType": "string", "name": "name", "type": "string" - }, - { + }, + { "internalType": "string", "name": "description", "type": "string" - }, - { + }, + { "internalType": "string", "name": "author", "type": "string" - }, - { + }, + { "internalType": "int8[6]", "name": "traitModifiers", "type": "int8[6]" - }, - { + }, + { "internalType": "bool[16]", "name": "slotPositions", "type": "bool[16]" - }, - { + }, + { "internalType": "uint8[]", "name": "allowedCollaterals", "type": "uint8[]" - }, - { + }, + { "components": [ - { - "internalType": "uint8", - "name": "x", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "y", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "width", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "height", - "type": "uint8" - } + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } ], "internalType": "struct Dimensions", "name": "dimensions", "type": "tuple" - }, - { + }, + { "internalType": "uint256", "name": "ghstPrice", "type": "uint256" - }, - { + }, + { "internalType": "uint256", "name": "maxQuantity", "type": "uint256" - }, - { + }, + { "internalType": "uint256", "name": "totalQuantity", "type": "uint256" - }, - { + }, + { "internalType": "uint32", "name": "svgId", "type": "uint32" - }, - { + }, + { "internalType": "uint8", "name": "rarityScoreModifier", "type": "uint8" - }, - { + }, + { "internalType": "bool", "name": "canPurchaseWithGhst", "type": "bool" - }, - { + }, + { "internalType": "uint16", "name": "minLevel", "type": "uint16" - }, - { + }, + { "internalType": "bool", "name": "canBeTransferred", "type": "bool" - }, - { + }, + { "internalType": "uint8", "name": "category", "type": "uint8" - }, - { + }, + { "internalType": "int16", "name": "kinshipBonus", "type": "int16" - }, - { + }, + { "internalType": "uint32", "name": "experienceBonus", "type": "uint32" - } - ], - "indexed": false, - "internalType": "struct ItemType", - "name": "_itemType", - "type": "tuple" - } - ], - "name": "UpdateItemType", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - } - ], - "name": "ERC721ListingWhitelistSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721ListingPriceUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - } - ], - "name": "ERC1155ListingWhitelistSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "listingId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC1155ListingPriceUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "timeCreated", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "permissions", - "type": "uint256" - } - ], - "indexed": false, - "internalType": "struct LibEventStructContainers.GotchiLendingAdd", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "timeAgreed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "permissions", - "type": "uint256" - } - ], - "indexed": false, - "internalType": "struct LibEventStructContainers.GotchiLendingExecution", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "timeCancelled", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "permissions", - "type": "uint256" - } - ], - "indexed": false, - "internalType": "struct LibEventStructContainers.GotchiLendingCancellation", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "timeClaimed", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "permissions", - "type": "uint256" - } - ], - "indexed": false, - "internalType": "struct LibEventStructContainers.GotchiLendingClaim", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingClaimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, - { - "internalType": "uint32", - "name": "period", - "type": "uint32" - }, - { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, - { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "thirdParty", - "type": "address" - }, - { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, - { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "timeEnded", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "permissions", - "type": "uint256" - } + } + ], + "internalType": "struct ItemType", + "name": "itemType", + "type": "tuple" + } ], - "indexed": false, - "internalType": "struct LibEventStructContainers.GotchiLendingEnd", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingEnded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "buyOrderId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc721TokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "erc721TokenId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "category", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "validationHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "ERC721BuyOrderAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" + } + ], + "internalType": "struct ERC721MarketplaceFacet.AavegotchiListing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc721TokenId", + "type": "uint256" + } + ], + "name": "getERC721Category", + "outputs": [ + { + "internalType": "uint256", + "name": "category_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_listingId", + "type": "uint256" + } + ], + "name": "getERC721Listing", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePurchased", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc721TokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "getERC721ListingFromToken", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePurchased", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getERC721Listings", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePurchased", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getOwnerAavegotchiListings", + "outputs": [ + { + "components": [ + { + "components": [ + { "internalType": "uint256", - "name": "buyOrderId", + "name": "listingId", "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "address", "name": "seller", "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "address", "name": "erc721TokenAddress", "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "uint256", "name": "erc721TokenId", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "priceInWei", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", + "name": "category", "type": "uint256" - } - ], - "name": "ERC721BuyOrderExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "buyOrderId", + "name": "priceInWei", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "time", + "name": "timeCreated", "type": "uint256" - } - ], - "name": "ERC721BuyOrderCanceled", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" }, - { - "internalType": "uint16[16]", - "name": "_wearablesToEquip", - "type": "uint16[16]" - }, - { - "internalType": "uint256[16]", - "name": "_commitmentIds", - "type": "uint256[16]" - } - ], - "name": "equipDelegatedWearables", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "_tokenId", + "name": "timePurchased", "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[16]", - "name": "_oldCommitmentIds", - "type": "uint256[16]" - }, - { - "indexed": false, - "internalType": "uint256[16]", - "name": "_newCommitmentIds", - "type": "uint256[16]" - } - ], - "name": "EquipDelegatedWearables", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "bool", - "name": "_isApproved", + "name": "cancelled", "type": "bool" - } - ], - "name": "RoleApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + } + ], + "internalType": "struct ERC721Listing", + "name": "listing_", + "type": "tuple" + }, + { + "components": [ + { "internalType": "uint256", - "name": "_commitmentId", + "name": "tokenId", "type": "uint256" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "_role", - "type": "bytes32" - }, - { - "indexed": true, + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { "internalType": "address", - "name": "_grantee", + "name": "owner", "type": "address" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "_expirationDate", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_revocable", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "_data", - "type": "bytes" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "_commitmentId", + "name": "randomNumber", "type": "uint256" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "_role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "_grantee", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_grantor", - "type": "address" - }, - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "_commitmentId", + "name": "status", "type": "uint256" - }, - { - "indexed": true, + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { + "internalType": "address", + "name": "collateral", + "type": "address" + }, + { "internalType": "address", - "name": "_tokenAddress", + "name": "escrow", "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "_tokenId", + "name": "stakedAmount", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "_tokenAmount", + "name": "minimumStake", "type": "uint256" - } - ], - "name": "TokensCommitted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "_commitmentId", + "name": "kinship", "type": "uint256" - } - ], - "name": "TokensReleased", - "type": "event" - }, - { - "inputs": [], - "name": "MAX_EXPIRATION_DATE", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "UNIQUE_ROLE", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_grantor", "type": "address" }, - { "internalType": "address", "name": "_tokenAddress", "type": "address" }, - { "internalType": "uint256", "name": "_tokenId", "type": "uint256" }, - { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" } - ], - "name": "commitTokens", - "outputs": [ - { "internalType": "uint256", "name": "commitmentId_", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" }, - { "internalType": "bytes32", "name": "_role", "type": "bytes32" }, - { "internalType": "address", "name": "_grantee", "type": "address" }, - { "internalType": "uint64", "name": "_expirationDate", "type": "uint64" }, - { "internalType": "bool", "name": "_revocable", "type": "bool" }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" } - ], - "name": "grantorOf", - "outputs": [ - { "internalType": "address", "name": "grantor_", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_tokenAddress", "type": "address" }, - { "internalType": "address", "name": "_grantor", "type": "address" }, - { "internalType": "address", "name": "_operator", "type": "address" } - ], - "name": "isRoleApprovedForAll", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" }, - { "internalType": "bytes32", "name": "_role", "type": "bytes32" }, - { "internalType": "address", "name": "_grantee", "type": "address" } - ], - "name": "isRoleRevocable", - "outputs": [ - { "internalType": "bool", "name": "revocable_", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, - { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, - { "internalType": "bytes", "name": "", "type": "bytes" } - ], - "name": "onERC1155BatchReceived", - "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bytes", "name": "", "type": "bytes" } - ], - "name": "onERC1155Received", - "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" } - ], - "name": "releaseTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" }, - { "internalType": "bytes32", "name": "_role", "type": "bytes32" }, - { "internalType": "address", "name": "_grantee", "type": "address" } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" }, - { "internalType": "bytes32", "name": "_role", "type": "bytes32" }, - { "internalType": "address", "name": "_grantee", "type": "address" } - ], - "name": "roleData", - "outputs": [{ "internalType": "bytes", "name": "data_", "type": "bytes" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" }, - { "internalType": "bytes32", "name": "_role", "type": "bytes32" }, - { "internalType": "address", "name": "_grantee", "type": "address" } - ], - "name": "roleExpirationDate", - "outputs": [ - { "internalType": "uint64", "name": "expirationDate_", "type": "uint64" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_tokenAddress", "type": "address" }, - { "internalType": "address", "name": "_operator", "type": "address" }, - { "internalType": "bool", "name": "_isApproved", "type": "bool" } - ], - "name": "setRoleApprovalForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } - ], - "name": "supportsInterface", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" } - ], - "name": "tokenAddressOf", - "outputs": [ - { "internalType": "address", "name": "tokenAddress_", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" } - ], - "name": "tokenAmountOf", - "outputs": [ - { "internalType": "uint256", "name": "tokenAmount_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_commitmentId", "type": "uint256" } - ], - "name": "tokenIdOf", - "outputs": [ - { "internalType": "uint256", "name": "tokenId_", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "buyOrderId", + "name": "lastInteracted", "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "erc1155TokenId", + "name": "experience", "type": "uint256" - }, - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "category", + "name": "toNextLevel", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "priceInWei", + "name": "usedSkillPoints", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "quantity", + "name": "level", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "duration", + "name": "hauntId", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "time", + "name": "baseRarityScore", "type": "uint256" - } - ], - "name": "ERC1155BuyOrderAdd", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "buyOrderId", + "name": "modifiedRarityScore", "type": "uint256" - }, - { - "indexed": false, + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType", + "name": "itemType", + "type": "tuple" + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" + } + ], + "internalType": "struct ERC721MarketplaceFacet.AavegotchiListing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_category", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_sort", + "type": "string" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getOwnerERC721Listings", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePurchased", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "cancelled", + "type": "bool" + } + ], + "internalType": "struct ERC721Listing[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_erc721TokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_erc721TokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "updateERC721Listing", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "_erc20Contract", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_depositAmount", + "type": "uint256" + } + ], + "name": "Erc20Deposited", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "_erc20Contract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_transferAmount", + "type": "uint256" + } + ], + "name": "TransferEscrow", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "internalType": "address[]", + "name": "_erc20Contracts", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "batchDepositERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "batchDepositGHST", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_erc20Contract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "depositERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_erc20Contract", + "type": "address" + } + ], + "name": "escrowBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_erc20Contract", + "type": "address" + }, + { + "internalType": "address", + "name": "_recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_transferAmount", + "type": "uint256" + } + ], + "name": "transferEscrow", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint16[16]", + "name": "_oldWearables", + "type": "uint16[16]" + }, + { + "indexed": false, + "internalType": "uint16[16]", + "name": "_newWearables", + "type": "uint16[16]" + } + ], + "name": "EquipWearables", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenTypeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "TransferToParent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "UseConsumables", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "bal_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_owners", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + } + ], + "name": "balanceOfBatch", + "outputs": [ + { + "internalType": "uint256[]", + "name": "bals", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + } + ], + "name": "balanceOfToken", + "outputs": [ + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16[16]", + "name": "_wearablesToEquip", + "type": "uint16[16]" + } + ], + "name": "equipWearables", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "equippedWearables", + "outputs": [ + { + "internalType": "uint16[16]", + "name": "wearableIds_", + "type": "uint16[16]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_wearableIds", + "type": "uint256[]" + } + ], + "name": "findWearableSets", + "outputs": [ + { + "internalType": "uint256[]", + "name": "wearableSetIds_", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + } + ], + "name": "getItemType", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType", + "name": "itemType_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + } + ], + "name": "getItemTypes", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType[]", + "name": "itemTypes_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_index", + "type": "uint256" + } + ], + "name": "getWearableSet", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "internalType": "struct WearableSet", + "name": "wearableSet_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getWearableSets", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "internalType": "uint16[]", + "name": "wearableIds", + "type": "uint16[]" + }, + { + "internalType": "int8[5]", + "name": "traitsBonuses", + "type": "int8[5]" + } + ], + "internalType": "struct WearableSet[]", + "name": "wearableSets_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_account", + "type": "address" + } + ], + "name": "itemBalances", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ], + "internalType": "struct ItemsFacet.ItemIdIO[]", + "name": "bals_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "itemBalancesOfToken", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ], + "internalType": "struct ItemsFacet.ItemIdIO[]", + "name": "bals_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "itemBalancesOfTokenWithTypes", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { "internalType": "uint256", - "name": "time", + "name": "ghstPrice", "type": "uint256" - } - ], - "name": "ERC1155BuyOrderCancel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + }, + { "internalType": "uint256", - "name": "buyOrderId", + "name": "maxQuantity", "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "seller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "erc1155TokenAddress", - "type": "address" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "erc1155TokenId", + "name": "totalQuantity", "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", "name": "category", - "type": "uint256" - }, - { - "indexed": false, + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType", + "name": "itemType", + "type": "tuple" + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "itemBalancesOfTokenWithTypes_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "itemBalancesWithTypes", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { "internalType": "uint256", - "name": "priceInWei", + "name": "ghstPrice", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "quantity", + "name": "maxQuantity", "type": "uint256" - }, - { - "indexed": false, + }, + { "internalType": "uint256", - "name": "time", + "name": "totalQuantity", "type": "uint256" - } - ], - "name": "ERC1155BuyOrderExecute", - "type": "event" - } + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType", + "name": "itemType", + "type": "tuple" + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "output_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_value", + "type": "string" + } + ], + "name": "setBaseURI", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "totalWearableSets", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + } + ], + "name": "uri", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "useConsumables", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_fromContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "batchTransferAsChild", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_fromContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "batchTransferFromParent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "batchTransferToParent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "extractItemsFromDiamond", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "extractItemsFromSacrificedGotchi", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155BatchReceived", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeBatchTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_fromContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "transferAsChild", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_fromContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "transferFromParent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "transferToParent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "relayerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "functionSignature", + "type": "bytes" + } + ], + "name": "MetaTransactionExecuted", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "functionSignature", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "sigR", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "sigS", + "type": "bytes32" + }, + { + "internalType": "uint8", + "name": "sigV", + "type": "uint8" + } + ], + "name": "executeMetaTransaction", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getNonce", + "outputs": [ + { + "internalType": "uint256", + "name": "nonce_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_numAavegotchisToPurchase", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_totalPrice", + "type": "uint256" + } + ], + "name": "BuyPortals", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_numAavegotchisToPurchase", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_totalPrice", + "type": "uint256" + } + ], + "name": "Xingyun", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_numAavegotchisToPurchase", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + } + ], + "name": "MintPortals", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_totalPrice", + "type": "uint256" + } + ], + "name": "PurchaseItemsWithGhst", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "PurchaseItemsWithVouchers", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_totalPrice", + "type": "uint256" + } + ], + "name": "PurchaseTransferItemsWithGhst", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_ghst", + "type": "uint256" + } + ], + "name": "buyPortals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "mintPortals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "purchaseItemsWithGhst", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_quantities", + "type": "uint256[]" + } + ], + "name": "purchaseTransferItemsWithGhst", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_svgType", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_numLayers", + "type": "uint256" + } + ], + "name": "deleteLastSvgLayers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getAavegotchiSvg", + "outputs": [ + { + "internalType": "string", + "name": "ag_", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + } + ], + "name": "getItemSvg", + "outputs": [ + { + "internalType": "string", + "name": "ag_", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_svgType", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + } + ], + "name": "getSvg", + "outputs": [ + { + "internalType": "string", + "name": "svg_", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + } + ], + "name": "getSvgs", + "outputs": [ + { + "internalType": "string[]", + "name": "svgs_", + "type": "string[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "portalAavegotchisSvg", + "outputs": [ + { + "internalType": "string[10]", + "name": "svg_", + "type": "string[10]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_collateralType", + "type": "address" + }, + { + "internalType": "int16[6]", + "name": "_numericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + } + ], + "name": "previewAavegotchi", + "outputs": [ + { + "internalType": "string", + "name": "ag_", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_itemIds", + "type": "uint256[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions[]", + "name": "_dimensions", + "type": "tuple[]" + } + ], + "name": "setItemsDimensions", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "sleeveId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "wearableId", + "type": "uint256" + } + ], + "internalType": "struct SvgFacet.Sleeve[]", + "name": "_sleeves", + "type": "tuple[]" + } + ], + "name": "setSleeves", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_svg", + "type": "string" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "internalType": "struct LibSvg.SvgTypeAndSizes[]", + "name": "_typesAndSizes", + "type": "tuple[]" + } + ], + "name": "storeSvg", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_svg", + "type": "string" + }, + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "internalType": "struct LibSvg.SvgTypeAndIdsAndSizes[]", + "name": "_typesAndIdsAndSizes", + "type": "tuple[]" + } + ], + "name": "updateSvg", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getAavegotchiSideSvgs", + "outputs": [ + { + "internalType": "string[]", + "name": "ag_", + "type": "string[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + } + ], + "name": "getItemSvgs", + "outputs": [ + { + "internalType": "string[]", + "name": "svg_", + "type": "string[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_collateralType", + "type": "address" + }, + { + "internalType": "int16[6]", + "name": "_numericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + } + ], + "name": "previewSideAavegotchi", + "outputs": [ + { + "internalType": "string[]", + "name": "ag_", + "type": "string[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "side", + "type": "string" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + } + ], + "internalType": "struct SvgViewsFacet.SideViewDimensionsArgs[]", + "name": "_sideViewDimensions", + "type": "tuple[]" + } + ], + "name": "setSideViewDimensions", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + } + ], + "name": "OpenPortals", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "PortalOpened", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_vrfTimeSet", + "type": "uint256" + } + ], + "name": "VrfRandomNumber", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_newFee", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_keyHash", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_vrfCoordinator", + "type": "address" + }, + { + "internalType": "address", + "name": "_link", + "type": "address" + } + ], + "name": "changeVrf", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "keyHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "link", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "linkBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "linkBalance_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + } + ], + "name": "openPortals", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_requestId", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_randomNumber", + "type": "uint256" + } + ], + "name": "rawFulfillRandomness", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "removeLinkTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "vrfCoordinator", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "MigrateVouchers", + "type": "event" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + } + ], + "internalType": "struct VoucherMigrationFacet.VouchersOwner[]", + "name": "_vouchersOwners", + "type": "tuple[]" + } + ], + "name": "migrateVouchers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + } + ], + "name": "AavegotchiInteract", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155ListingCancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155ListingRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "UpdateERC1155Listing", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ListingCancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ListingRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "indexed": false, + "internalType": "struct LibSvg.SvgTypeAndSizes[]", + "name": "_typesAndSizes", + "type": "tuple[]" + } + ], + "name": "StoreSvg", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "svgType", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "sizes", + "type": "uint256[]" + } + ], + "indexed": false, + "internalType": "struct LibSvg.SvgTypeAndIdsAndSizes[]", + "name": "_typesAndIdsAndSizes", + "type": "tuple[]" + } + ], + "name": "UpdateSvg", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "indexed": false, + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "_diamondCut", + "type": "tuple[]" + }, + { + "indexed": false, + "internalType": "address", + "name": "_init", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "_calldata", + "type": "bytes" + } + ], + "name": "DiamondCut", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "TransferBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_fromContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenTypeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "TransferFromParent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_id", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "TransferSingle", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_toContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenTypeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_value", + "type": "uint256" + } + ], + "name": "TransferToParent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "_value", + "type": "string" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_id", + "type": "uint256" + } + ], + "name": "URI", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_priceInWei", + "type": "uint256" + } + ], + "name": "UpdateItemPrice", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + } + ], + "name": "GotchiLendingAdd", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + } + ], + "name": "GotchiLendingEnd", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + } + ], + "name": "GotchiLendingExecute", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "_initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "_period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "_revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "_originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "_thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "_whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "_revenueTokens", + "type": "address[]" + } + ], + "name": "addGotchiLending", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "_initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "_period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "_revenueSplit", + "type": "uint8[3]" + } + ], + "name": "agreeGotchiLending", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_listingId", + "type": "uint32" + } + ], + "name": "cancelGotchiLending", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "cancelGotchiLendingByToken", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_tokenId", + "type": "uint32" + } + ], + "name": "claimAndEndGotchiLending", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_tokenId", + "type": "uint32" + } + ], + "name": "claimGotchiLending", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "getGotchiLendingFromToken", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" + }, + { + "internalType": "bool", + "name": "canceled", + "type": "bool" + }, + { + "internalType": "bool", + "name": "completed", + "type": "bool" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + } + ], + "internalType": "struct GotchiLending", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "getGotchiLendingIdByToken", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_listingId", + "type": "uint32" + } + ], + "name": "getGotchiLendingListingInfo", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" + }, + { + "internalType": "bool", + "name": "canceled", + "type": "bool" + }, + { + "internalType": "bool", + "name": "completed", + "type": "bool" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + } + ], + "internalType": "struct GotchiLending", + "name": "listing_", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "status", + "type": "uint256" + }, + { + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" + }, + { + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" + }, + { + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" + }, + { + "internalType": "address", + "name": "collateral", + "type": "address" + }, + { + "internalType": "address", + "name": "escrow", + "type": "address" + }, + { + "internalType": "uint256", + "name": "stakedAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "kinship", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "experience", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "level", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "hauntId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "baseRarityScore", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "modifiedRarityScore", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "locked", + "type": "bool" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "internalType": "struct ItemType", + "name": "itemType", + "type": "tuple" + } + ], + "internalType": "struct ItemTypeIO[]", + "name": "items", + "type": "tuple[]" + } + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_status", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getGotchiLendings", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" + }, + { + "internalType": "bool", + "name": "canceled", + "type": "bool" + }, + { + "internalType": "bool", + "name": "completed", + "type": "bool" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + } + ], + "internalType": "struct GotchiLending[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_listingId", + "type": "uint32" + } + ], + "name": "getLendingListingInfo", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" + }, + { + "internalType": "bool", + "name": "canceled", + "type": "bool" + }, + { + "internalType": "bool", + "name": "completed", + "type": "bool" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + } + ], + "internalType": "struct GotchiLending", + "name": "listing_", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_lender", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "_status", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "_length", + "type": "uint256" + } + ], + "name": "getOwnerGotchiLendings", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" + }, + { + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" + }, + { + "internalType": "bool", + "name": "canceled", + "type": "bool" + }, + { + "internalType": "bool", + "name": "completed", + "type": "bool" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + } + ], + "internalType": "struct GotchiLending[]", + "name": "listings_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "isAavegotchiLent", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "WhitelistCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "WhitelistUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "WhitelistOwnershipTransferred", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "address[]", + "name": "_whitelistAddresses", + "type": "address[]" + } + ], + "name": "createWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_whitelistId", + "type": "uint32" + } + ], + "name": "getWhitelist", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address[]", + "name": "addresses", + "type": "address[]" + } + ], + "internalType": "struct Whitelist", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getWhitelists", + "outputs": [ + { + "components": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "address[]", + "name": "addresses", + "type": "address[]" + } + ], + "internalType": "struct Whitelist[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "_whitelistAddresses", + "type": "address[]" + } + ], + "name": "updateWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "GotchiLendingCancel", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "tokenAddresses", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "name": "GotchiLendingClaim", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "ERC721ExecutedToRecipient", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "ERC1155ExecutedToRecipient", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + } + ], + "name": "GotchiLendingAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timeCanceled", + "type": "uint256" + } + ], + "name": "GotchiLendingCanceled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timeClaimed", + "type": "uint256" + } + ], + "name": "GotchiLendingClaimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timeEnded", + "type": "uint256" + } + ], + "name": "GotchiLendingEnded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timeAgreed", + "type": "uint256" + } + ], + "name": "GotchiLendingExecuted", + "type": "event" + }, + { + "name": "WhitelistAccessRightSet", + "type": "event", + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "actionRight", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "accessRight", + "type": "uint256" + } + ] + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "description", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" + }, + { + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" + }, + { + "internalType": "uint8[]", + "name": "allowedCollaterals", + "type": "uint8[]" + }, + { + "components": [ + { + "internalType": "uint8", + "name": "x", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "y", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "width", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "height", + "type": "uint8" + } + ], + "internalType": "struct Dimensions", + "name": "dimensions", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "ghstPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "svgId", + "type": "uint32" + }, + { + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" + }, + { + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" + }, + { + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "category", + "type": "uint8" + }, + { + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" + }, + { + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" + } + ], + "indexed": false, + "internalType": "struct ItemType", + "name": "_itemType", + "type": "tuple" + } + ], + "name": "UpdateItemType", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "ERC721ListingWhitelistSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ListingPriceUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "ERC1155ListingWhitelistSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155ListingPriceUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "internalType": "uint256", + "name": "timeCreated", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "permissions", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LibEventStructContainers.GotchiLendingAdd", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "internalType": "uint256", + "name": "timeAgreed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "permissions", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LibEventStructContainers.GotchiLendingExecution", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingExecuted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "internalType": "uint256", + "name": "timeCancelled", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "permissions", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LibEventStructContainers.GotchiLendingCancellation", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingCancelled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + }, + { + "internalType": "uint256", + "name": "timeClaimed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "permissions", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LibEventStructContainers.GotchiLendingClaim", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingClaimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint32", + "name": "listingId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" + }, + { + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" + }, + { + "internalType": "address", + "name": "originalOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "thirdParty", + "type": "address" + }, + { + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" + }, + { + "internalType": "uint256", + "name": "timeEnded", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "permissions", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LibEventStructContainers.GotchiLendingEnd", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingEnded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "validationHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721BuyOrderAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721BuyOrderExecuted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721BuyOrderCanceled", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16[16]", + "name": "_wearablesToEquip", + "type": "uint16[16]" + }, + { + "internalType": "uint256[16]", + "name": "_commitmentIds", + "type": "uint256[16]" + } + ], + "name": "equipDelegatedWearables", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256[16]", + "name": "_oldCommitmentIds", + "type": "uint256[16]" + }, + { + "indexed": false, + "internalType": "uint256[16]", + "name": "_newCommitmentIds", + "type": "uint256[16]" + } + ], + "name": "EquipDelegatedWearables", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "_isApproved", + "type": "bool" + } + ], + "name": "RoleApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_grantee", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "_expirationDate", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "bool", + "name": "_revocable", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "_grantee", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_grantor", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_tokenAmount", + "type": "uint256" + } + ], + "name": "TokensCommitted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "TokensReleased", + "type": "event" + }, + { + "inputs": [], + "name": "MAX_EXPIRATION_DATE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "UNIQUE_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_grantor", + "type": "address" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_tokenAmount", + "type": "uint256" + } + ], + "name": "commitTokens", + "outputs": [ + { + "internalType": "uint256", + "name": "commitmentId_", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_grantee", + "type": "address" + }, + { + "internalType": "uint64", + "name": "_expirationDate", + "type": "uint64" + }, + { + "internalType": "bool", + "name": "_revocable", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "grantorOf", + "outputs": [ + { + "internalType": "address", + "name": "grantor_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_grantor", + "type": "address" + }, + { + "internalType": "address", + "name": "_operator", + "type": "address" + } + ], + "name": "isRoleApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_grantee", + "type": "address" + } + ], + "name": "isRoleRevocable", + "outputs": [ + { + "internalType": "bool", + "name": "revocable_", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155BatchReceived", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "releaseTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_grantee", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_grantee", + "type": "address" + } + ], + "name": "roleData", + "outputs": [ + { + "internalType": "bytes", + "name": "data_", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_grantee", + "type": "address" + } + ], + "name": "roleExpirationDate", + "outputs": [ + { + "internalType": "uint64", + "name": "expirationDate_", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_isApproved", + "type": "bool" + } + ], + "name": "setRoleApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "tokenAddressOf", + "outputs": [ + { + "internalType": "address", + "name": "tokenAddress_", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "tokenAmountOf", + "outputs": [ + { + "internalType": "uint256", + "name": "tokenAmount_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_commitmentId", + "type": "uint256" + } + ], + "name": "tokenIdOf", + "outputs": [ + { + "internalType": "uint256", + "name": "tokenId_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc1155TokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155BuyOrderAdd", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155BuyOrderCancel", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "erc1155TokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "erc1155TokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "quantity", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC1155BuyOrderExecute", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint16", + "name": "wearablesConfigId", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16[16]", + "name": "wearables", + "type": "uint16[16]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WearablesConfigCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint16", + "name": "wearablesConfigId", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WearablesConfigDaoPaymentReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "wearablesConfigId", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WearablesConfigOwnerPaymentReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint16", + "name": "wearablesConfigId", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16[16]", + "name": "wearables", + "type": "uint16[16]" + } + ], + "name": "WearablesConfigUpdated", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "uint16[16]", + "name": "_wearablesToStore", + "type": "uint16[16]" + } + ], + "name": "createWearablesConfig", + "outputs": [ + { + "internalType": "uint16", + "name": "wearablesConfigId", + "type": "uint16" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getAavegotchiWearablesConfigCount", + "outputs": [ + { + "internalType": "uint16", + "name": "slotsUsed", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "_wearablesConfigId", + "type": "uint16" + } + ], + "name": "getWearablesConfig", + "outputs": [ + { + "components": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint16[16]", + "name": "wearables", + "type": "uint16[16]" + } + ], + "internalType": "struct WearablesConfig", + "name": "wearablesConfig", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "_wearablesConfigId", + "type": "uint16" + } + ], + "name": "getWearablesConfigName", + "outputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "_wearablesConfigId", + "type": "uint16" + } + ], + "name": "getWearablesConfigWearables", + "outputs": [ + { + "internalType": "uint16[16]", + "name": "wearables", + "type": "uint16[16]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "_wearablesConfigId", + "type": "uint16" + }, + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "uint16[16]", + "name": "_wearablesToStore", + "type": "uint16[16]" + } + ], + "name": "updateWearablesConfig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "uint16", + "name": "_wearablesConfigId", + "type": "uint16" + } + ], + "name": "wearablesConfigExists", + "outputs": [ + { + "internalType": "bool", + "name": "exists", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } ] diff --git a/schema.graphql b/schema.graphql index 92c8c46..df13e07 100644 --- a/schema.graphql +++ b/schema.graphql @@ -444,6 +444,17 @@ type Whitelist @entity { maxBorrowLimit: Int } +type WearablesConfig @entity { + id: ID! + name: String! + wearablesConfigId: Int! + gotchi: Aavegotchi! + gotchiTokenId: BigInt! + wearables: [Int!]! + owner: User! + ownerAddress: Bytes! +} + #type Upgrade @entity { # id: ID! # calldata: diff --git a/src/mappings/diamond.ts b/src/mappings/diamond.ts index 5710141..61cb71b 100644 --- a/src/mappings/diamond.ts +++ b/src/mappings/diamond.ts @@ -39,6 +39,8 @@ import { GotchiLendingCancel, WhitelistCreated, WhitelistUpdated, + WearablesConfigCreated, + WearablesConfigUpdated, ERC1155ExecutedToRecipient, ERC721ExecutedToRecipient, GotchiLendingEnded, @@ -88,6 +90,7 @@ import { updateAavegotchiWearables, calculateBaseRarityScore, getOrCreateGotchiLending, + createOrUpdateWearablesConfig, createOrUpdateWhitelist, getOrCreateClaimedToken, getOrCreateWhitelist, @@ -1089,6 +1092,25 @@ export function handleMintParcel(event: MintParcel): void { parcel.save(); } +// WearablesConfig +export function handleWearablesConfigCreated(event: WearablesConfigCreated): void { + createOrUpdateWearablesConfig( + event.params.owner, + event.params.tokenId, + event.params.wearablesConfigId, + event + ); +} + +export function handleWearablesConfigUpdated(event: WearablesConfigUpdated): void { + createOrUpdateWearablesConfig( + event.params.owner, + event.params.tokenId, + event.params.wearablesConfigId, + event + ); +} + // Whitelist export function handleWhitelistCreated(event: WhitelistCreated): void { createOrUpdateWhitelist(event.params.whitelistId, event); diff --git a/src/utils/helpers/aavegotchi.ts b/src/utils/helpers/aavegotchi.ts index 125da18..8f1dea9 100644 --- a/src/utils/helpers/aavegotchi.ts +++ b/src/utils/helpers/aavegotchi.ts @@ -15,6 +15,7 @@ import { Statistic, User, WearableSet, + WearablesConfig, Whitelist, } from "../../../generated/schema"; @@ -696,8 +697,47 @@ export function calculateBaseRarityScore(numericTraits: Array): i32 { return rarityScore; } -// whitelist +// wearables config +export function createOrUpdateWearablesConfig( + owner: Bytes, + tokenId: BigInt, + wearablesConfigId: i32, + event: ethereum.Event +): WearablesConfig | null { + let contract = AavegotchiDiamond.bind(event.address); + let ownerAddress = Address.fromString(owner.toHexString()); + let gotchi = getOrCreateAavegotchi(tokenId.toString(), event)!; + let user = getOrCreateUser(ownerAddress.toHexString())!; + let id = `${user.id}-${tokenId}-${wearablesConfigId}` + + let response = contract.try_getWearablesConfig( + ownerAddress, + tokenId, + wearablesConfigId + ); + + if (response.reverted) { + return null; + } + + let result = response.value; + let wearablesConfig = WearablesConfig.load(id); + if (!wearablesConfig) { + wearablesConfig = new WearablesConfig(id); + wearablesConfig.wearablesConfigId = wearablesConfigId; + wearablesConfig.gotchi = gotchi.id; + wearablesConfig.gotchiTokenId = tokenId; + wearablesConfig.owner = user.id; + wearablesConfig.ownerAddress = ownerAddress; + } + wearablesConfig.name = result.name; + wearablesConfig.wearables = result.wearables; + wearablesConfig.save(); + return wearablesConfig; +} + +// whitelist export function createOrUpdateWhitelist( id: BigInt, event: ethereum.Event diff --git a/subgraph.template.yaml b/subgraph.template.yaml index 342b988..91f7d09 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -169,6 +169,10 @@ dataSources: handler: handleERC1155BuyOrderExecute - event: ERC1155BuyOrderCancel(indexed uint256,uint256) handler: handleERC1155BuyOrderCancel + - event: WearablesConfigCreated(indexed address,indexed uint256,indexed uint16,uint16[16],uint256) + handler: handleWearablesConfigCreated + - event: WearablesConfigUpdated(indexed address,indexed uint256,indexed uint16,uint16[16]) + handler: handleWearablesConfigUpdated - kind: ethereum/contract name: RealmDiamond diff --git a/subgraph.yaml b/subgraph.yaml index 7ccd4f6..7d36c8f 100644 --- a/subgraph.yaml +++ b/subgraph.yaml @@ -1,10 +1,10 @@ specVersion: 0.0.4 -# features: -# - grafting -# graft: -# base: QmP7WDBUeazfUc96uGa71ukM8ZUZHS3GunviVSrJvxSy62 # Subgraph ID of base subgraph -# block: 64948299 - # Block number +features: + - grafting +graft: + base: QmcFKMGsBUCCE7fkxHn8FwXkK4eRqWNoLdtY6EwiFqKEBE # Subgraph ID of base subgraph + block: 68694611 + Block number description: Aavegotchi Core Matic repository: schema: