From 7c80828ff6a3f1c7b2e226025f6e6e43c68d2716 Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Mon, 31 Jul 2023 19:26:59 -0300 Subject: [PATCH 1/4] Aavegotchi update --- abis/AavegotchiDiamondUpdate.json | 1047 +++++++++++++++++ .../gotchi/gotchi-lending-added-handler.ts | 74 ++ .../gotchi-lending-cancelled-handler.ts | 73 ++ .../gotchi/gotchi-lending-ended-handler.ts | 61 + .../gotchi/gotchi-lending-executed-handler.ts | 96 ++ src/aavegotchi-update/index.ts | 4 + .../gotchi/gotchi-lending-add-handler.ts | 70 ++ subgraph-matic.yaml | 27 + 8 files changed, 1452 insertions(+) create mode 100644 abis/AavegotchiDiamondUpdate.json create mode 100644 src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts create mode 100644 src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts create mode 100644 src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts create mode 100644 src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts create mode 100644 src/aavegotchi-update/index.ts create mode 100644 src/aavegotchi/gotchi/gotchi-lending-add-handler.ts diff --git a/abis/AavegotchiDiamondUpdate.json b/abis/AavegotchiDiamondUpdate.json new file mode 100644 index 0000000..3abfa97 --- /dev/null +++ b/abis/AavegotchiDiamondUpdate.json @@ -0,0 +1,1047 @@ +[ + { + "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 ILendingGetterAndSetterFacet.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": "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 ILendingGetterAndSetterFacet.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 ILendingGetterAndSetterFacet.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 ILendingGetterAndSetterFacet.GotchiLendingEnd", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingEnded", + "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 ILendingGetterAndSetterFacet.GotchiLendingExecution", + "name": "", + "type": "tuple" + } + ], + "name": "GotchiLendingExecuted", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "aavegotchiClaimTime", + "outputs": [ + { + "internalType": "uint256", + "name": "claimTime_", + "type": "uint256" + } + ], + "stateMutability": "view", + "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": "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": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "isAavegotchiLent", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "_erc721TokenId", + "type": "uint32" + } + ], + "name": "isAavegotchiListed", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "name": "setPetOperatorForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ] \ No newline at end of file diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts b/src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts new file mode 100644 index 0000000..b1a4f5e --- /dev/null +++ b/src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts @@ -0,0 +1,74 @@ +import { BigInt, log } from "@graphprotocol/graph-ts"; +import { GotchiLendingAdded } from "../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate"; +import { Nft, RentalOffer } from "../../../generated/schema"; +import { generateNftId, updateLastOfferExpirationAt } from "../../utils/misc"; +import { GHST_TOKEN_ADDRESS } from "../../utils/addresses"; +import { MAX_EXPIRATION_DATE, ONE_ETHER } from "../../utils/constants"; + +/** + * + * struct GotchiLendingAdd { + uint32 listingId; + address lender; + uint32 tokenId; + uint96 initialCost; + uint32 period; + uint8[3] revenueSplit; + address originalOwner; + address thirdParty; + uint32 whitelistId; + address[] revenueTokens; + uint256 timeCreated; + uint256 permissions; + } + * + * event GotchiLendingAdded(GotchiLendingAdd); + */ +export function handleGotchiLendingAdded(event: GotchiLendingAdded): void { + const nftId = generateNftId("AAVEGOTCHI", event.params.param0.tokenId); + const nft = Nft.load(nftId); + + if (!nft) { + log.debug( + "[GotchiLendingAdded]: Aavegotchi {} does not exist, skiping...", + [event.params.param0.tokenId.toString()] + ); + return; + } + + // create rental offer + const rentalOfferId = `${event.transaction.hash.toHex()}-${event.logIndex.toString()}`; + const rentalOffer = new RentalOffer(rentalOfferId); + rentalOffer.nfts = [nftId]; + rentalOffer.lender = event.params.param0.lender.toHexString().toLowerCase(); + rentalOffer.createdAt = event.params.param0.timeCreated; + rentalOffer.creationTxHash = event.transaction.hash.toHex(); + rentalOffer.duration = [event.params.param0.period]; + rentalOffer.feeAmount = event.params.param0.initialCost; + rentalOffer.feeToken = GHST_TOKEN_ADDRESS; + rentalOffer.expirationDate = MAX_EXPIRATION_DATE; + + if (event.params.param0.whitelistId != BigInt.fromI32(0)) { + rentalOffer.taker = event.params.param0.whitelistId.toString(); + } + + rentalOffer.profitShareTokens = event.params.param0.revenueTokens.map((t) => + t.toHex().toLowerCase() + ); + rentalOffer.profitShareSplit = event.params.param0.revenueSplit.map((s) => + BigInt.fromI32(s).times(ONE_ETHER) + ); + + rentalOffer.save(); + + // link rental offer to nft + nft.currentRentalOffer = rentalOfferId; + nft.save(); + + updateLastOfferExpirationAt(nft, rentalOffer.expirationDate); + + log.warning("[GotchiLendingAdded]: Gotchi {} added to rental offer {}", [ + nftId, + rentalOffer.id, + ]); +} diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts b/src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts new file mode 100644 index 0000000..65b7111 --- /dev/null +++ b/src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts @@ -0,0 +1,73 @@ +import { BigInt, log } from "@graphprotocol/graph-ts"; +import { GotchiLendingCancelled } from "../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate"; +import { Nft, RentalOffer } from "../../../generated/schema"; +import { generateNftId, removeLastOfferExpirationAt } from "../../utils/misc"; +import { AAVEGOTCHI } from "../../utils/constants"; + +/** + * event GotchiLendingCancelled( + * uint32 indexed listingId, + * address indexed lender, + * uint32 tokenId, + * uint96 initialCost, + * uint32 period, + * uint8[3] revenueSplit, + * address originalOwner, + * address thirdParty, + * uint32 whitelistId, + * address[] revenueTokens, + * uint256 timeAgreed + * ); + */ +export function handleGotchiLendingCancelled( + event: GotchiLendingCancelled +): void { + const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId); + + const nft = Nft.load(nftId); + if (!nft) { + log.debug( + "[handleGotchiLendingCancelled] Aavegotchi {} does not exist, tx: {}", + [event.params.param0.tokenId.toString(), event.transaction.hash.toHex()] + ); + return; + } + + const currentRentalOfferId = nft.currentRentalOffer; + + if (!currentRentalOfferId) { + //probably it is a legacy rental offer not tracked before rental upgrade + log.warning( + "[handleGotchiLendingCancelled] NFT {} has no rental offer, skipping...", + [nft.id] + ); + return; + } + + const currentRentalOffer = RentalOffer.load(currentRentalOfferId!); + + if (!currentRentalOffer) { + throw new Error( + "[handleGotchiLendingCancelled] RentalOffer " + + currentRentalOfferId! + + " does not exist, tx: " + + event.transaction.hash.toHex() + ); + } + + // update rental offer + currentRentalOffer.cancelledAt = event.block.timestamp; + currentRentalOffer.cancellationTxHash = event.transaction.hash.toHex(); + currentRentalOffer.save(); + + // remove current rental offer from nft, because it has been executed, and link rental to nft + nft.currentRentalOffer = null; + // Since aavegotchi only allows one offer at a time, we can set the expiration date to zero + nft.lastOfferExpirationAt = BigInt.zero(); + nft.save(); + + log.warning( + "[handleGotchiLendingCancelled] Rental Offer for NFT {} was cancelled. RentalOfferId: {}", + [nftId, currentRentalOfferId!] + ); +} diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts b/src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts new file mode 100644 index 0000000..9054edb --- /dev/null +++ b/src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts @@ -0,0 +1,61 @@ +import { log } from '@graphprotocol/graph-ts' +import { GotchiLendingEnded } from '../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate' +import { Nft, Rental } from '../../../generated/schema' +import { generateNftId } from '../../utils/misc' +import { AAVEGOTCHI } from '../../utils/constants' + +/** + * event GotchiLendingEnded( + * uint32 indexed listingId, + * address indexed lender, + * address indexed borrower, + * uint32 tokenId, + * uint96 initialCost, + * uint32 period, + * uint8[3] revenueSplit, + * address originalOwner, + * address thirdParty, + * uint32 whitelistId, + * address[] revenueTokens, + * uint256 timeAgreed + * ); + */ +export function handleGotchiLendingEnded(event: GotchiLendingEnded): void { + const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) + + const nft = Nft.load(nftId) + if (!nft) { + log.debug('[handleGotchiLendingEnded] Aavegotchi {} does not exist, tx: {}', [ + event.params.param0.tokenId.toString(), + event.transaction.hash.toHex(), + ]) + return + } + + const currentRentalId = nft.currentRental + + if (!currentRentalId) { + //probably it is a legacy rental not tracked before rental upgrade + log.warning('[handleGotchiLendingEnded] NFT {} has no rental, skipping...', [nft.id]) + return + } + + const currentRental = Rental.load(currentRentalId!) + + if (!currentRental) { + throw new Error( + '[handleGotchiLendingEnded] Rental ' + currentRentalId! + ' does not exist, tx: ' + event.transaction.hash.toHex() + ) + } + + // update rental + currentRental.endedAt = event.block.timestamp + currentRental.endedTxHash = event.transaction.hash.toHex() + currentRental.save() + + // remove current rental from nft, because it ended + nft.currentRental = null + nft.save() + + log.warning('[handleGotchiLendingEnded] NFT {} rental {} ended', [nftId, currentRentalId!]) +} diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts b/src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts new file mode 100644 index 0000000..cfd5347 --- /dev/null +++ b/src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts @@ -0,0 +1,96 @@ +import { BigInt, log } from '@graphprotocol/graph-ts' +import { GotchiLendingExecuted } from '../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate' +import { Nft, Rental, RentalOffer } from '../../../generated/schema' +import { generateNftId } from '../../utils/misc' +import { AAVEGOTCHI } from '../../utils/constants' + +/** + * event GotchiLendingExecuted( + * uint32 indexed listingId, + * address indexed lender, + * address indexed borrower, + * uint32 tokenId, + * uint96 initialCost, + * uint32 period, + * uint8[3] revenueSplit, + * address originalOwner, + * address thirdParty, + * uint32 whitelistId, + * address[] revenueTokens, + * uint256 timeAgreed + * ); + */ +export function handleGotchiLendingExecuted(event: GotchiLendingExecuted): void { + const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) + + const nft = Nft.load(nftId) + if (!nft) { + log.debug('[handleGotchiLendingExecuted] Aavegotchi {} does not exist, tx: {}', [ + event.params.param0.tokenId.toString(), + event.transaction.hash.toHex(), + ]) + return + } + + const currentRentalOfferId = nft.currentRentalOffer + + if (!currentRentalOfferId) { + //probably it is a legacy rental offer not tracked before rental upgrade + log.warning('[handleGotchiLendingExecuted] NFT {} has no rental offer, skipping...', [nft.id]) + return + } + + const rentalOffer = RentalOffer.load(currentRentalOfferId!) + + if (!rentalOffer) { + throw new Error( + '[handleGotchiLendingExecuted] No rental offer with id ' + + currentRentalOfferId! + + ' was found for token id: ' + + event.params.param0.tokenId.toString() + + ', lender: ' + + event.params.param0.lender.toHexString() + + ', tx: ' + + event.transaction.hash.toHex() + ) + } + + rentalOffer.executionTxHash = event.transaction.hash.toHex() + rentalOffer.save() + + const previoustRental = nft.currentRental + if (previoustRental) { + throw new Error( + '[handleGotchiLendingExecuted] NFT ' + + nftId + + ' already has a rental ' + + previoustRental + + ', tx: ' + + event.transaction.hash.toHex() + ) + } + + const currentRental = new Rental(`${event.transaction.hash.toHex()}-${event.logIndex.toString()}`) + currentRental.nft = nftId + currentRental.lender = event.params.param0.lender.toHexString().toLowerCase() + currentRental.borrower = event.params.param0.borrower.toHexString().toLowerCase() + currentRental.startedAt = event.block.timestamp + currentRental.startedTxHash = event.transaction.hash.toHex() + currentRental.rentalOffer = currentRentalOfferId + currentRental.expirationDate = event.block.timestamp.plus(event.params.param0.period) + currentRental.beneficiaries = [currentRental.lender, currentRental.borrower, event.params.param0.thirdParty.toHexString().toLowerCase()] + currentRental.save() + + // remove current rental offer from nft, because it has been executed, and link rental to nft + nft.currentRentalOffer = null + nft.currentRental = currentRental.id + // Since aavegotchi only allows one offer at a time, we can set the expiration date to zero + nft.lastOfferExpirationAt = BigInt.zero(); + nft.save() + + log.warning('[handleGotchiLendingExecuted] NFT {} has been rented, rentalId: {}, rentalOfferId: {}', [ + nftId, + currentRental.id, + currentRentalOfferId!, + ]) +} diff --git a/src/aavegotchi-update/index.ts b/src/aavegotchi-update/index.ts new file mode 100644 index 0000000..6bdd45c --- /dev/null +++ b/src/aavegotchi-update/index.ts @@ -0,0 +1,4 @@ +export { handleGotchiLendingAdded } from "./gotchi/gotchi-lending-added-handler"; +export { handleGotchiLendingExecuted } from "./gotchi/gotchi-lending-executed-handler"; +export { handleGotchiLendingEnded } from "./gotchi/gotchi-lending-ended-handler"; +export { handleGotchiLendingCancelled } from "./gotchi/gotchi-lending-cancelled-handler"; diff --git a/src/aavegotchi/gotchi/gotchi-lending-add-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-add-handler.ts new file mode 100644 index 0000000..b52531e --- /dev/null +++ b/src/aavegotchi/gotchi/gotchi-lending-add-handler.ts @@ -0,0 +1,70 @@ +import { BigInt, log } from "@graphprotocol/graph-ts"; +import { GotchiLendingAdded } from "../../../generated/AavegotchiDiamond/AavegotchiDiamond"; +import { Nft, RentalOffer } from "../../../generated/schema"; +import { generateNftId, updateLastOfferExpirationAt } from "../../utils/misc"; +import { GHST_TOKEN_ADDRESS } from "../../utils/addresses"; +import { MAX_EXPIRATION_DATE, ONE_ETHER } from "../../utils/constants"; + +/** + * event GotchiLendingAdded( + * uint32 indexed listingId, + * address indexed lender, + * uint32 indexed tokenId, + * uint96 initialCost, + * uint32 period, + * uint8[3] revenueSplit, + * address originalOwner, + * address thirdParty, + * uint32 whitelistId, + * address[] revenueTokens, + * uint256 timeCreated + * ); + */ +export function handleGotchiLendingAdded(event: GotchiLendingAdded): void { + const nftId = generateNftId("AAVEGOTCHI", event.params.tokenId); + const nft = Nft.load(nftId); + + if (!nft) { + log.debug( + "[GotchiLendingAdded]: Aavegotchi {} does not exist, skiping...", + [event.params.tokenId.toString()] + ); + return; + } + + // create rental offer + const rentalOfferId = `${event.transaction.hash.toHex()}-${event.logIndex.toString()}`; + const rentalOffer = new RentalOffer(rentalOfferId); + rentalOffer.nfts = [nftId]; + rentalOffer.lender = event.params.lender.toHexString().toLowerCase(); + rentalOffer.createdAt = event.params.timeCreated; + rentalOffer.creationTxHash = event.transaction.hash.toHex(); + rentalOffer.duration = [event.params.period]; + rentalOffer.feeAmount = event.params.initialCost; + rentalOffer.feeToken = GHST_TOKEN_ADDRESS; + rentalOffer.expirationDate = MAX_EXPIRATION_DATE; + + if (event.params.whitelistId != BigInt.fromI32(0)) { + rentalOffer.taker = event.params.whitelistId.toString(); + } + + rentalOffer.profitShareTokens = event.params.revenueTokens.map((t) => + t.toHex().toLowerCase() + ); + rentalOffer.profitShareSplit = event.params.revenueSplit.map((s) => + BigInt.fromI32(s).times(ONE_ETHER) + ); + + rentalOffer.save(); + + // link rental offer to nft + nft.currentRentalOffer = rentalOfferId; + nft.save(); + + updateLastOfferExpirationAt(nft, rentalOffer.expirationDate); + + log.warning("[GotchiLendingAdded]: Gotchi {} added to rental offer {}", [ + nftId, + rentalOffer.id, + ]); +} diff --git a/subgraph-matic.yaml b/subgraph-matic.yaml index a1714c1..edcf32c 100644 --- a/subgraph-matic.yaml +++ b/subgraph-matic.yaml @@ -35,6 +35,33 @@ dataSources: handler: handleGotchiLendingEnded file: ./src/aavegotchi/index.ts + - kind: ethereum + name: AavegotchiDiamondUpdate + network: matic + source: + address: "0x86935f11c86623dec8a25696e1c19a8659cbf95d" + abi: AavegotchiDiamondUpdate + startBlock: 44362808 + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - Nft + abis: + - name: AavegotchiDiamondUpdate + file: ./abis/AavegotchiDiamondUpdate.json + eventHandlers: + - event: GotchiLendingAdded((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) + handler: handleGotchiLendingAdded + - event: GotchiLendingCancelled((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) + handler: handleGotchiLendingCancelled + - event: GotchiLendingExecuted((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) + handler: handleGotchiLendingExecuted + - event: GotchiLendingEnded((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) + handler: handleGotchiLendingEnded + file: ./src/aavegotchi-update/index.ts + # (Aavegotchi) Realm - kind: ethereum name: Realm From bf922b8adef6118f4d77ce56f67b2ef7020798f1 Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Tue, 1 Aug 2023 18:06:33 -0300 Subject: [PATCH 2/4] merge aavegotchi update into one --- abis/AavegotchiDiamond.json | 17681 +++++++++------- abis/AavegotchiDiamondUpdate.json | 1047 - src/aavegotchi-update/index.ts | 4 - .../gotchi/gotchi-lending-added2-handler.ts} | 2 +- .../gotchi-lending-cancelled2-handler.ts} | 2 +- .../gotchi/gotchi-lending-ended2-handler.ts} | 2 +- .../gotchi-lending-executed2-handler.ts} | 2 +- src/aavegotchi/index.ts | 4 + subgraph-matic.yaml | 29 +- 9 files changed, 9976 insertions(+), 8797 deletions(-) delete mode 100644 abis/AavegotchiDiamondUpdate.json delete mode 100644 src/aavegotchi-update/index.ts rename src/{aavegotchi-update/gotchi/gotchi-lending-added-handler.ts => aavegotchi/gotchi/gotchi-lending-added2-handler.ts} (96%) rename src/{aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts => aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts} (98%) rename src/{aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts => aavegotchi/gotchi/gotchi-lending-ended2-handler.ts} (96%) rename src/{aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts => aavegotchi/gotchi/gotchi-lending-executed2-handler.ts} (97%) diff --git a/abis/AavegotchiDiamond.json b/abis/AavegotchiDiamond.json index 5364b5d..d4424f7 100644 --- a/abis/AavegotchiDiamond.json +++ b/abis/AavegotchiDiamond.json @@ -1,8121 +1,10366 @@ [ { - "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" }, + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "_owner", + "type": "address" }, { - "internalType": "uint256", - "name": "experience", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "_operator", + "type": "address" }, { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" - }, + "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": "usedSkillPoints", - "type": "uint256" - }, - { "internalType": "uint256", "name": "level", "type": "uint256" }, - { "internalType": "uint256", "name": "hauntId", "type": "uint256" }, + "internalType": "uint256", + "name": "claimTime_", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "_owner", "type": "address" } + ], + "name": "allAavegotchisOfOwner", + "outputs": [ { - "internalType": "uint256", - "name": "baseRarityScore", - "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": "struct AavegotchiInfo[]", + "name": "aavegotchiInfos_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" + "internalType": "address", + "name": "_approved", + "type": "address" }, - { "internalType": "bool", "name": "locked", "type": "bool" }, + { "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": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ + "components": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, { - "internalType": "string", - "name": "name", - "type": "string" + "internalType": "address", + "name": "owner", + "type": "address" }, { - "internalType": "string", - "name": "description", - "type": "string" + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" }, { - "internalType": "string", - "name": "author", - "type": "string" + "internalType": "uint256", + "name": "status", + "type": "uint256" }, { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" }, { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" + "internalType": "int16[6]", + "name": "modifiedNumericTraits", + "type": "int16[6]" }, { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" + "internalType": "uint16[16]", + "name": "equippedWearables", + "type": "uint16[16]" }, { - "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": "address", + "name": "collateral", + "type": "address" }, { - "internalType": "uint256", - "name": "ghstPrice", - "type": "uint256" + "internalType": "address", + "name": "escrow", + "type": "address" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" + "internalType": "uint256", + "name": "stakedAmount", + "type": "uint256" }, { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "internalType": "uint256", + "name": "minimumStake", + "type": "uint256" }, { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" + "internalType": "uint256", + "name": "kinship", + "type": "uint256" }, { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" + "internalType": "uint256", + "name": "experience", + "type": "uint256" }, { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" + "internalType": "uint256", + "name": "toNextLevel", + "type": "uint256" }, { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" + "internalType": "uint256", + "name": "usedSkillPoints", + "type": "uint256" }, { - "internalType": "uint8", - "name": "category", - "type": "uint8" + "internalType": "uint256", + "name": "level", + "type": "uint256" }, { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" + "internalType": "uint256", + "name": "hauntId", + "type": "uint256" }, { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" + "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 ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" + ], + "internalType": "struct AavegotchiInfo", + "name": "aavegotchiInfo_", + "type": "tuple" } - ], - "internalType": "struct AavegotchiInfo[]", - "name": "aavegotchiInfos_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" + ], + "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": "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" } - ], - "name": "balanceOf", - "outputs": [ - { "internalType": "uint256", "name": "balance_", "type": "uint256" } - ], - "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": "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" }, + "inputs": [ + { "internalType": "address", "name": "_owner", "type": "address" }, { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { "internalType": "uint256", "name": "status", "type": "uint256" }, + "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": [ { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" - }, + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "ClaimAavegotchi", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" }, { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" - }, + "indexed": false, + "internalType": "uint256", + "name": "_time", + "type": "uint256" + } + ], + "name": "LockAavegotchi", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "collateral", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" }, - { "internalType": "address", "name": "escrow", "type": "address" }, { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" + "indexed": false, + "internalType": "string", + "name": "_oldName", + "type": "string" }, { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" - }, - { "internalType": "uint256", "name": "kinship", "type": "uint256" }, + "indexed": false, + "internalType": "string", + "name": "_newName", + "type": "string" + } + ], + "name": "SetAavegotchiName", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "_batchId", + "type": "uint256" }, { - "internalType": "uint256", - "name": "experience", - "type": "uint256" - }, + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" + } + ], + "name": "SetBatchId", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" }, { - "internalType": "uint256", - "name": "usedSkillPoints", - "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" }, - { "internalType": "uint256", "name": "level", "type": "uint256" }, - { "internalType": "uint256", "name": "hauntId", "type": "uint256" }, { - "internalType": "uint256", - "name": "baseRarityScore", - "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": "modifiedRarityScore", - "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" }, - { "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" - }, + "components": [ { - "internalType": "string", - "name": "author", - "type": "string" + "internalType": "uint256", + "name": "hauntMaxSize", + "type": "uint256" }, { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" + "internalType": "uint256", + "name": "portalPrice", + "type": "uint256" }, { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" + "internalType": "bytes3", + "name": "bodyColor", + "type": "bytes3" }, { - "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": "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": "ghstPrice", - "type": "uint256" + "internalType": "uint256", + "name": "randomNumber", + "type": "uint256" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" + "internalType": "int16[6]", + "name": "numericTraits", + "type": "int16[6]" }, { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "internalType": "address", + "name": "collateralType", + "type": "address" }, { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" - }, + "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": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "internalType": "address", + "name": "burnAddress", + "type": "address" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" + "internalType": "address", + "name": "daoAddress", + "type": "address" }, { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" + "internalType": "address", + "name": "rarityFarming", + "type": "address" }, { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" - }, + "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": "uint8", - "name": "category", - "type": "uint8" + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" }, { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" + "internalType": "uint256", + "name": "kinship", + "type": "uint256" }, { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" + "internalType": "uint256", + "name": "lastInteracted", + "type": "uint256" } - ], - "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" - }, - { - "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" + ], + "internalType": "struct AavegotchiGameFacet.TokenIdsWithKinship[]", + "name": "tokenIdsWithKinship_", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "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]" - }, + "inputs": [ { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" - }, + "internalType": "uint256", + "name": "_experience", + "type": "uint256" + } + ], + "name": "xpUntilNextLevel", + "outputs": [ { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" - }, + "internalType": "uint256", + "name": "requiredXp_", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ { - "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" + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" }, - { "internalType": "uint256", "name": "ghstPrice", "type": "uint256" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" - }, + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" + } + ], + "name": "AddedAavegotchiBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" }, - { "internalType": "uint32", "name": "svgId", "type": "uint32" }, { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "indexed": false, + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" - }, - { "internalType": "uint16", "name": "minLevel", "type": "uint16" }, + "indexed": false, + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + } + ], + "name": "AddedItemsBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" }, - { "internalType": "uint8", "name": "category", "type": "uint8" }, - { "internalType": "int16", "name": "kinshipBonus", "type": "int16" }, { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" + "indexed": false, + "internalType": "uint256[]", + "name": "tokenIds", + "type": "uint256[]" } - ], - "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" + ], + "name": "WithdrawnBatch", + "type": "event" }, { - "inputs": [ - { - "components": [ - { "internalType": "string", "name": "name", "type": "string" }, + "anonymous": false, + "inputs": [ { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" }, { - "internalType": "uint16[]", - "name": "wearableIds", - "type": "uint16[]" + "indexed": false, + "internalType": "uint256[]", + "name": "ids", + "type": "uint256[]" }, { - "internalType": "int8[5]", - "name": "traitsBonuses", - "type": "int8[5]" + "indexed": false, + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" } - ], - "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" + ], + "name": "WithdrawnItems", + "type": "event" + }, + { + "inputs": [], + "name": "childChainManager", + "outputs": [ + { "internalType": "address", "name": "", "type": "address" } + ], + "stateMutability": "view", + "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": "address", "name": "_user", "type": "address" }, + { "internalType": "bytes", "name": "_depositData", "type": "bytes" } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "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" - }, + "inputs": [ { - "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" + "internalType": "address", + "name": "_newChildChainManager", + "type": "address" + } + ], + "name": "setChildChainManager", + "outputs": [], + "stateMutability": "nonpayable", + "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" }, + "inputs": [ { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" - }, - { "internalType": "uint256", "name": "status", "type": "uint256" }, + "internalType": "uint256[]", + "name": "_tokenIds", + "type": "uint256[]" + } + ], + "name": "withdrawAavegotchiBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" + "internalType": "uint256[]", + "name": "_ids", + "type": "uint256[]" }, { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" - }, + "internalType": "uint256[]", + "name": "_values", + "type": "uint256[]" + } + ], + "name": "withdrawItemsBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" }, { - "internalType": "address", - "name": "collateral", - "type": "address" - }, - { "internalType": "address", "name": "escrow", "type": "address" }, + "indexed": false, + "internalType": "uint256", + "name": "_reduceAmount", + "type": "uint256" + } + ], + "name": "DecreaseStake", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "_fromTokenId", + "type": "uint256" }, { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "_toTokenId", + "type": "uint256" }, - { "internalType": "uint256", "name": "kinship", "type": "uint256" }, { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" - }, + "indexed": false, + "internalType": "uint256", + "name": "experience", + "type": "uint256" + } + ], + "name": "ExperienceTransfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "experience", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" }, { - "internalType": "uint256", - "name": "toNextLevel", - "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": "uint256", - "name": "usedSkillPoints", - "type": "uint256" + "internalType": "address", + "name": "collateralType_", + "type": "address" }, - { "internalType": "uint256", "name": "level", "type": "uint256" }, - { "internalType": "uint256", "name": "hauntId", "type": "uint256" }, + { "internalType": "address", "name": "escrow_", "type": "address" }, + { "internalType": "uint256", "name": "balance_", "type": "uint256" } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" + "internalType": "uint256", + "name": "_hauntId", + "type": "uint256" }, { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" - }, - { "internalType": "bool", "name": "locked", "type": "bool" }, + "internalType": "uint256", + "name": "_collateralId", + "type": "uint256" + } + ], + "name": "collateralInfo", + "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]" - }, + "components": [ { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" + "internalType": "address", + "name": "collateralType", + "type": "address" }, { - "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" - }, + "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": [ + { + "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": "uint256", - "name": "ghstPrice", - "type": "uint256" + "internalType": "uint32", + "name": "erc721TokenId", + "type": "uint32" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" }, { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "internalType": "address", + "name": "originalOwner", + "type": "address" }, { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" + "internalType": "uint40", + "name": "timeCreated", + "type": "uint40" }, { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "internalType": "uint40", + "name": "timeAgreed", + "type": "uint40" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" + "internalType": "bool", + "name": "canceled", + "type": "bool" }, { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" + "internalType": "bool", + "name": "completed", + "type": "bool" }, { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" + "internalType": "address", + "name": "thirdParty", + "type": "address" }, { - "internalType": "uint8", - "name": "category", - "type": "uint8" + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" }, { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" + "internalType": "uint40", + "name": "lastClaimed", + "type": "uint40" }, { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" + "internalType": "uint32", + "name": "period", + "type": "uint32" + }, + { + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" } - ], - "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 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 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 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 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 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": "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[]" }, - { "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" + { + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "name": "GotchiLendingClaim", + "type": "event" }, { - "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" }, + "anonymous": false, + "inputs": [ { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" }, { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" }, { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "ERC721ExecutedToRecipient", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "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" + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" }, - { "internalType": "uint256", "name": "ghstPrice", "type": "uint256" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "ERC1155ExecutedToRecipient", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" }, { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" }, - { "internalType": "uint32", "name": "svgId", "type": "uint32" }, { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "indexed": true, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" }, - { "internalType": "uint16", "name": "minLevel", "type": "uint16" }, { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" }, - { "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" + "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" }, - { - "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" + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" }, { - "internalType": "address", - "name": "originalOwner", - "type": "address" + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" }, { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" + "indexed": true, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" }, { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" }, { - "internalType": "bool", - "name": "canceled", - "type": "bool" + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" }, { - "internalType": "bool", - "name": "completed", - "type": "bool" + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" }, { - "internalType": "address", - "name": "thirdParty", - "type": "address" + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" }, { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" }, { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" }, { - "internalType": "uint32", - "name": "period", - "type": "uint32" + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" }, { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" + "indexed": false, + "internalType": "uint256", + "name": "timeCanceled", + "type": "uint256" } - ], - "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" + ], + "name": "GotchiLendingCanceled", + "type": "event" }, { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - } - ], - "name": "getGotchiLendingListingInfo", - "outputs": [ - { - "components": [ + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "lender", - "type": "address" + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" }, { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" }, { - "internalType": "address", - "name": "borrower", - "type": "address" + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" }, { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" }, { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" }, { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" }, { - "internalType": "address", - "name": "originalOwner", - "type": "address" + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" }, { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" }, { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" }, { - "internalType": "bool", - "name": "canceled", - "type": "bool" + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" }, { - "internalType": "bool", - "name": "completed", - "type": "bool" + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" }, { - "internalType": "address", - "name": "thirdParty", - "type": "address" + "indexed": false, + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" }, { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, + "indexed": false, + "internalType": "uint256", + "name": "timeClaimed", + "type": "uint256" + } + ], + "name": "GotchiLendingClaimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" + "indexed": true, + "internalType": "uint32", + "name": "listingId", + "type": "uint32" }, { - "internalType": "uint32", - "name": "period", - "type": "uint32" + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" }, { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" - } - ], - "internalType": "struct GotchiLending", - "name": "listing_", - "type": "tuple" - }, - { - "components": [ + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, { - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" }, { - "internalType": "string", - "name": "name", - "type": "string" + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" }, { - "internalType": "address", - "name": "owner", - "type": "address" + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" }, { - "internalType": "uint256", - "name": "randomNumber", - "type": "uint256" + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" }, { - "internalType": "uint256", - "name": "status", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" }, { - "internalType": "int16[6]", - "name": "numericTraits", - "type": "int16[6]" + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" }, { - "internalType": "int16[6]", - "name": "modifiedNumericTraits", - "type": "int16[6]" + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" }, { - "internalType": "uint16[16]", - "name": "equippedWearables", - "type": "uint16[16]" + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" }, { - "internalType": "address", - "name": "collateral", - "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" }, { - "internalType": "address", - "name": "escrow", - "type": "address" + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" }, { - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" }, { - "internalType": "uint256", - "name": "minimumStake", - "type": "uint256" + "indexed": false, + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" }, { - "internalType": "uint256", - "name": "kinship", - "type": "uint256" + "indexed": false, + "internalType": "uint96", + "name": "initialCost", + "type": "uint96" }, { - "internalType": "uint256", - "name": "lastInteracted", - "type": "uint256" + "indexed": false, + "internalType": "uint32", + "name": "period", + "type": "uint32" }, { - "internalType": "uint256", - "name": "experience", - "type": "uint256" + "indexed": false, + "internalType": "uint8[3]", + "name": "revenueSplit", + "type": "uint8[3]" }, { - "internalType": "uint256", - "name": "toNextLevel", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "originalOwner", + "type": "address" }, { - "internalType": "uint256", - "name": "usedSkillPoints", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "thirdParty", + "type": "address" }, { - "internalType": "uint256", - "name": "level", - "type": "uint256" + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" }, { - "internalType": "uint256", - "name": "hauntId", - "type": "uint256" + "indexed": false, + "internalType": "address[]", + "name": "revenueTokens", + "type": "address[]" }, { - "internalType": "uint256", - "name": "baseRarityScore", - "type": "uint256" + "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" }, { - "internalType": "uint256", - "name": "modifiedRarityScore", - "type": "uint256" + "indexed": true, + "internalType": "uint256", + "name": "actionRight", + "type": "uint256" }, { - "internalType": "bool", - "name": "locked", - "type": "bool" + "indexed": true, + "internalType": "uint256", + "name": "accessRight", + "type": "uint256" + } + ] + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "_itemId", + "type": "uint256" }, { - "components": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "itemId", - "type": "uint256" - }, - { - "components": [ + "components": [ { - "internalType": "string", - "name": "name", - "type": "string" + "internalType": "string", + "name": "name", + "type": "string" }, { - "internalType": "string", - "name": "description", - "type": "string" + "internalType": "string", + "name": "description", + "type": "string" }, { - "internalType": "string", - "name": "author", - "type": "string" + "internalType": "string", + "name": "author", + "type": "string" }, { - "internalType": "int8[6]", - "name": "traitModifiers", - "type": "int8[6]" + "internalType": "int8[6]", + "name": "traitModifiers", + "type": "int8[6]" }, { - "internalType": "bool[16]", - "name": "slotPositions", - "type": "bool[16]" + "internalType": "bool[16]", + "name": "slotPositions", + "type": "bool[16]" }, { - "internalType": "uint8[]", - "name": "allowedCollaterals", - "type": "uint8[]" + "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" + "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": "ghstPrice", + "type": "uint256" }, { - "internalType": "uint256", - "name": "maxQuantity", - "type": "uint256" + "internalType": "uint256", + "name": "maxQuantity", + "type": "uint256" }, { - "internalType": "uint256", - "name": "totalQuantity", - "type": "uint256" + "internalType": "uint256", + "name": "totalQuantity", + "type": "uint256" }, { - "internalType": "uint32", - "name": "svgId", - "type": "uint32" + "internalType": "uint32", + "name": "svgId", + "type": "uint32" }, { - "internalType": "uint8", - "name": "rarityScoreModifier", - "type": "uint8" + "internalType": "uint8", + "name": "rarityScoreModifier", + "type": "uint8" }, { - "internalType": "bool", - "name": "canPurchaseWithGhst", - "type": "bool" + "internalType": "bool", + "name": "canPurchaseWithGhst", + "type": "bool" }, { - "internalType": "uint16", - "name": "minLevel", - "type": "uint16" + "internalType": "uint16", + "name": "minLevel", + "type": "uint16" }, { - "internalType": "bool", - "name": "canBeTransferred", - "type": "bool" + "internalType": "bool", + "name": "canBeTransferred", + "type": "bool" }, { - "internalType": "uint8", - "name": "category", - "type": "uint8" + "internalType": "uint8", + "name": "category", + "type": "uint8" }, { - "internalType": "int16", - "name": "kinshipBonus", - "type": "int16" + "internalType": "int16", + "name": "kinshipBonus", + "type": "int16" }, { - "internalType": "uint32", - "name": "experienceBonus", - "type": "uint32" + "internalType": "uint32", + "name": "experienceBonus", + "type": "uint32" } - ], - "internalType": "struct ItemType", - "name": "itemType", - "type": "tuple" - } - ], - "internalType": "struct ItemTypeIO[]", - "name": "items", - "type": "tuple[]" + ], + "indexed": false, + "internalType": "struct ItemType", + "name": "_itemType", + "type": "tuple" } - ], - "internalType": "struct AavegotchiInfo", - "name": "aavegotchiInfo_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" + ], + "name": "UpdateItemType", + "type": "event" }, { - "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" - }, + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "originalOwner", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" }, { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" - }, + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "ERC721ListingWhitelistSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" }, { - "internalType": "bool", - "name": "canceled", - "type": "bool" + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" }, { - "internalType": "bool", - "name": "completed", - "type": "bool" - }, + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721ListingPriceUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "thirdParty", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" }, { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" - }, + "indexed": false, + "internalType": "uint32", + "name": "whitelistId", + "type": "uint32" + } + ], + "name": "ERC1155ListingWhitelistSet", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" + "indexed": true, + "internalType": "uint256", + "name": "listingId", + "type": "uint256" }, { - "internalType": "uint32", - "name": "period", - "type": "uint32" + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" }, { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" } - ], - "internalType": "struct GotchiLending[]", - "name": "listings_", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" + ], + "name": "ERC1155ListingPriceUpdate", + "type": "event" }, { - "inputs": [ - { - "internalType": "uint32", - "name": "_listingId", - "type": "uint32" - } - ], - "name": "getLendingListingInfo", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "internalType": "uint96", - "name": "initialCost", - "type": "uint96" - }, + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "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": [ { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" - }, + "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": [ { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" - }, + "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": [ { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" - }, + "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": [ { - "internalType": "address", - "name": "originalOwner", - "type": "address" - }, + "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": [ { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" }, { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" }, { - "internalType": "bool", - "name": "canceled", - "type": "bool" + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" }, { - "internalType": "bool", - "name": "completed", - "type": "bool" + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" }, { - "internalType": "address", - "name": "thirdParty", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "category", + "type": "uint256" }, { - "internalType": "uint8[3]", - "name": "revenueSplit", - "type": "uint8[3]" + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" }, { - "internalType": "uint40", - "name": "lastClaimed", - "type": "uint40" + "indexed": false, + "internalType": "uint256", + "name": "duration", + "type": "uint256" }, { - "internalType": "uint32", - "name": "period", - "type": "uint32" + "indexed": false, + "internalType": "bytes32", + "name": "validationHash", + "type": "bytes32" }, { - "internalType": "address[]", - "name": "revenueTokens", - "type": "address[]" + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" } - ], - "internalType": "struct GotchiLending", - "name": "listing_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" + ], + "name": "ERC721BuyOrderAdded", + "type": "event" }, { - "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" - }, + "anonymous": false, + "inputs": [ { - "internalType": "uint32", - "name": "listingId", - "type": "uint32" + "indexed": true, + "internalType": "uint256", + "name": "buyOrderId", + "type": "uint256" }, { - "internalType": "uint32", - "name": "erc721TokenId", - "type": "uint32" + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" }, { - "internalType": "uint32", - "name": "whitelistId", - "type": "uint32" + "indexed": false, + "internalType": "address", + "name": "seller", + "type": "address" }, { - "internalType": "address", - "name": "originalOwner", - "type": "address" + "indexed": false, + "internalType": "address", + "name": "erc721TokenAddress", + "type": "address" }, { - "internalType": "uint40", - "name": "timeCreated", - "type": "uint40" + "indexed": false, + "internalType": "uint256", + "name": "erc721TokenId", + "type": "uint256" }, { - "internalType": "uint40", - "name": "timeAgreed", - "type": "uint40" + "indexed": false, + "internalType": "uint256", + "name": "priceInWei", + "type": "uint256" }, { - "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" - }, - { - "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": "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": "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" - }, - { - "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" + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "ERC721BuyOrderExecuted", + "type": "event" } ] diff --git a/abis/AavegotchiDiamondUpdate.json b/abis/AavegotchiDiamondUpdate.json deleted file mode 100644 index 3abfa97..0000000 --- a/abis/AavegotchiDiamondUpdate.json +++ /dev/null @@ -1,1047 +0,0 @@ -[ - { - "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 ILendingGetterAndSetterFacet.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": "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 ILendingGetterAndSetterFacet.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 ILendingGetterAndSetterFacet.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 ILendingGetterAndSetterFacet.GotchiLendingEnd", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingEnded", - "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 ILendingGetterAndSetterFacet.GotchiLendingExecution", - "name": "", - "type": "tuple" - } - ], - "name": "GotchiLendingExecuted", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "aavegotchiClaimTime", - "outputs": [ - { - "internalType": "uint256", - "name": "claimTime_", - "type": "uint256" - } - ], - "stateMutability": "view", - "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": "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": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "isAavegotchiLent", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32", - "name": "_erc721TokenId", - "type": "uint32" - } - ], - "name": "isAavegotchiListed", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "_approved", - "type": "bool" - } - ], - "name": "setPetOperatorForAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] \ No newline at end of file diff --git a/src/aavegotchi-update/index.ts b/src/aavegotchi-update/index.ts deleted file mode 100644 index 6bdd45c..0000000 --- a/src/aavegotchi-update/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { handleGotchiLendingAdded } from "./gotchi/gotchi-lending-added-handler"; -export { handleGotchiLendingExecuted } from "./gotchi/gotchi-lending-executed-handler"; -export { handleGotchiLendingEnded } from "./gotchi/gotchi-lending-ended-handler"; -export { handleGotchiLendingCancelled } from "./gotchi/gotchi-lending-cancelled-handler"; diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts similarity index 96% rename from src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts rename to src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts index b1a4f5e..8bf38c7 100644 --- a/src/aavegotchi-update/gotchi/gotchi-lending-added-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts @@ -24,7 +24,7 @@ import { MAX_EXPIRATION_DATE, ONE_ETHER } from "../../utils/constants"; * * event GotchiLendingAdded(GotchiLendingAdd); */ -export function handleGotchiLendingAdded(event: GotchiLendingAdded): void { +export function handleGotchiLendingAdded2(event: GotchiLendingAdded): void { const nftId = generateNftId("AAVEGOTCHI", event.params.param0.tokenId); const nft = Nft.load(nftId); diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts similarity index 98% rename from src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts rename to src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts index 65b7111..94272f3 100644 --- a/src/aavegotchi-update/gotchi/gotchi-lending-cancelled-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts @@ -19,7 +19,7 @@ import { AAVEGOTCHI } from "../../utils/constants"; * uint256 timeAgreed * ); */ -export function handleGotchiLendingCancelled( +export function handleGotchiLendingCancelled2( event: GotchiLendingCancelled ): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId); diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts similarity index 96% rename from src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts rename to src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts index 9054edb..e8f67a0 100644 --- a/src/aavegotchi-update/gotchi/gotchi-lending-ended-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from '../../utils/constants' * uint256 timeAgreed * ); */ -export function handleGotchiLendingEnded(event: GotchiLendingEnded): void { +export function handleGotchiLendingEnded2(event: GotchiLendingEnded): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) const nft = Nft.load(nftId) diff --git a/src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts similarity index 97% rename from src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts rename to src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts index cfd5347..495f9f5 100644 --- a/src/aavegotchi-update/gotchi/gotchi-lending-executed-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from '../../utils/constants' * uint256 timeAgreed * ); */ -export function handleGotchiLendingExecuted(event: GotchiLendingExecuted): void { +export function handleGotchiLendingExecuted2(event: GotchiLendingExecuted): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) const nft = Nft.load(nftId) diff --git a/src/aavegotchi/index.ts b/src/aavegotchi/index.ts index 029946d..94a7a44 100644 --- a/src/aavegotchi/index.ts +++ b/src/aavegotchi/index.ts @@ -10,3 +10,7 @@ export { handleAlchemicaClaimed } from "./realm/alchemica-claimed-handler"; export { handleTransferTokensToGotchi } from "./realm/transfer-tokens-to-gotchi-handler"; export { handleParcelAccessRightSet } from "./realm/parcel-access-right-set-handler"; export { handleParcelWhitelistSet } from "./realm/parcel-whitelist-set-handler"; +export { handleGotchiLendingAdded2 } from "./gotchi/gotchi-lending-added2-handler"; +export { handleGotchiLendingExecuted2 } from "./gotchi/gotchi-lending-executed2-handler"; +export { handleGotchiLendingEnded2 } from "./gotchi/gotchi-lending-ended2-handler"; +export { handleGotchiLendingCancelled2 } from "./gotchi/gotchi-lending-cancelled2-handler"; diff --git a/subgraph-matic.yaml b/subgraph-matic.yaml index edcf32c..8dad857 100644 --- a/subgraph-matic.yaml +++ b/subgraph-matic.yaml @@ -33,34 +33,15 @@ dataSources: handler: handleGotchiLendingExecuted - event: GotchiLendingEnded(indexed uint32,indexed address,indexed address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256) handler: handleGotchiLendingEnded - file: ./src/aavegotchi/index.ts - - - kind: ethereum - name: AavegotchiDiamondUpdate - network: matic - source: - address: "0x86935f11c86623dec8a25696e1c19a8659cbf95d" - abi: AavegotchiDiamondUpdate - startBlock: 44362808 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Nft - abis: - - name: AavegotchiDiamondUpdate - file: ./abis/AavegotchiDiamondUpdate.json - eventHandlers: - event: GotchiLendingAdded((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) - handler: handleGotchiLendingAdded + handler: handleGotchiLendingAdded2 - event: GotchiLendingCancelled((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) - handler: handleGotchiLendingCancelled + handler: handleGotchiLendingCancelled2 - event: GotchiLendingExecuted((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) - handler: handleGotchiLendingExecuted + handler: handleGotchiLendingExecuted2 - event: GotchiLendingEnded((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256)) - handler: handleGotchiLendingEnded - file: ./src/aavegotchi-update/index.ts + handler: handleGotchiLendingEnded2 + file: ./src/aavegotchi/index.ts # (Aavegotchi) Realm - kind: ethereum From ba313896d654988cdff13dc1cba74f87d8c5e3ce Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Tue, 1 Aug 2023 18:12:16 -0300 Subject: [PATCH 3/4] update aavegotchi event name --- src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts | 4 ++-- src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts | 4 ++-- src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts | 4 ++-- src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts index 8bf38c7..3a95472 100644 --- a/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-added2-handler.ts @@ -1,5 +1,5 @@ import { BigInt, log } from "@graphprotocol/graph-ts"; -import { GotchiLendingAdded } from "../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate"; +import { GotchiLendingAdded1 } from "../../../generated/AavegotchiDiamond/AavegotchiDiamond"; import { Nft, RentalOffer } from "../../../generated/schema"; import { generateNftId, updateLastOfferExpirationAt } from "../../utils/misc"; import { GHST_TOKEN_ADDRESS } from "../../utils/addresses"; @@ -24,7 +24,7 @@ import { MAX_EXPIRATION_DATE, ONE_ETHER } from "../../utils/constants"; * * event GotchiLendingAdded(GotchiLendingAdd); */ -export function handleGotchiLendingAdded2(event: GotchiLendingAdded): void { +export function handleGotchiLendingAdded2(event: GotchiLendingAdded1): void { const nftId = generateNftId("AAVEGOTCHI", event.params.param0.tokenId); const nft = Nft.load(nftId); diff --git a/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts index 94272f3..fe7f99b 100644 --- a/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts @@ -1,5 +1,5 @@ import { BigInt, log } from "@graphprotocol/graph-ts"; -import { GotchiLendingCancelled } from "../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate"; +import { GotchiLendingCancelled1 } from "../../../generated/AavegotchiDiamond/AavegotchiDiamond"; import { Nft, RentalOffer } from "../../../generated/schema"; import { generateNftId, removeLastOfferExpirationAt } from "../../utils/misc"; import { AAVEGOTCHI } from "../../utils/constants"; @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from "../../utils/constants"; * ); */ export function handleGotchiLendingCancelled2( - event: GotchiLendingCancelled + event: GotchiLendingCancelled1 ): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId); diff --git a/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts index e8f67a0..3320859 100644 --- a/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-ended2-handler.ts @@ -1,5 +1,5 @@ import { log } from '@graphprotocol/graph-ts' -import { GotchiLendingEnded } from '../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate' +import { GotchiLendingEnded1 } from '../../../generated/AavegotchiDiamond/AavegotchiDiamond' import { Nft, Rental } from '../../../generated/schema' import { generateNftId } from '../../utils/misc' import { AAVEGOTCHI } from '../../utils/constants' @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from '../../utils/constants' * uint256 timeAgreed * ); */ -export function handleGotchiLendingEnded2(event: GotchiLendingEnded): void { +export function handleGotchiLendingEnded2(event: GotchiLendingEnded1): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) const nft = Nft.load(nftId) diff --git a/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts index 495f9f5..43bc7db 100644 --- a/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-executed2-handler.ts @@ -1,5 +1,5 @@ import { BigInt, log } from '@graphprotocol/graph-ts' -import { GotchiLendingExecuted } from '../../../generated/AavegotchiDiamondUpdate/AavegotchiDiamondUpdate' +import { GotchiLendingExecuted1 } from '../../../generated/AavegotchiDiamond/AavegotchiDiamond' import { Nft, Rental, RentalOffer } from '../../../generated/schema' import { generateNftId } from '../../utils/misc' import { AAVEGOTCHI } from '../../utils/constants' @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from '../../utils/constants' * uint256 timeAgreed * ); */ -export function handleGotchiLendingExecuted2(event: GotchiLendingExecuted): void { +export function handleGotchiLendingExecuted2(event: GotchiLendingExecuted1): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId) const nft = Nft.load(nftId) From 17470c40e70b5efd40dde1cc3e8adf1be9ca4d6a Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Tue, 1 Aug 2023 18:14:19 -0300 Subject: [PATCH 4/4] fix event name --- src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts index fe7f99b..d6b0abf 100644 --- a/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts +++ b/src/aavegotchi/gotchi/gotchi-lending-cancelled2-handler.ts @@ -1,7 +1,7 @@ import { BigInt, log } from "@graphprotocol/graph-ts"; -import { GotchiLendingCancelled1 } from "../../../generated/AavegotchiDiamond/AavegotchiDiamond"; +import { GotchiLendingCancelled } from "../../../generated/AavegotchiDiamond/AavegotchiDiamond"; import { Nft, RentalOffer } from "../../../generated/schema"; -import { generateNftId, removeLastOfferExpirationAt } from "../../utils/misc"; +import { generateNftId } from "../../utils/misc"; import { AAVEGOTCHI } from "../../utils/constants"; /** @@ -20,7 +20,7 @@ import { AAVEGOTCHI } from "../../utils/constants"; * ); */ export function handleGotchiLendingCancelled2( - event: GotchiLendingCancelled1 + event: GotchiLendingCancelled ): void { const nftId = generateNftId(AAVEGOTCHI, event.params.param0.tokenId);