AavegotchiFacet.sol
Documentation for AavegotchiFacet.sol
Checks if a given name has been taken.
RETURNS
bool
Returns the current
hauntId
and haunt informationRETURNS
hauntId_
: uint256
haunt_
: tuplehaunt_ | TYPE |
bodyColor | bytes3 |
hauntMaxSize | uint256 |
portalPrice | uint256 |
totalCount | uint24 |
Returns the addresses used for GHST revenue sharing.
RETURNS
name | TYPE |
burnAddress | address |
daoAddress | address |
pixelCraft | address |
rarityFarming | address |
Converts the Chainlink VRF generated randomNumber into the int256 used for
numericTraits
.
Returns trait information about a single, unclaimed Aavegotchi.
Returns an array of traits for all 10 Aavegotchis in a Portal.
RETURNS
tuple<portalAavegotchiTraits_>[10]
portalAavegotchiTraits_ | TYPE |
collateralType | address |
minimumStake | uint256 |
numericTraits | int16[6] |
randomNumber | uint256 |
Returns the GHST contract address for the current network.
RETURNS
address
Returns the number of NFTs assigned to the owner.
RETURNS
uint256
Returns information about a single claimed Aavegotchi.
RETURNS
aavegotchiInfo_ | TYPE |
tokenId | uint256 |
name | string |
owner | address |
randomNumber | uint256 |
status | uint256 |
numericTraits | int16[6] |
modifiedNumericTraits | int16[6] |
equippedWearables | uint16[6] |
collateral | address |
escrow | address |
stakedAmount | uint256 |
minimumStake | uint256 |
kinship | uint256 |
lastInteracted | uint256 |
experience | uint256 |
toNextLevel | uint256 |
usedSkillPoints | uint256 |
level | uint256 |
hauntId | uint256 |
baseRarityScore | uint256 |
modifiedRarityScore | uint256 |
locked | bool |
items balance itemId itemType |
Returns the number of skill points available for the given Aavegotchi based on its current level.
RETURNS
uint256
Returns the absolute value of the given int8.
Returns the Aavegotchi level given the amount of experience.
RETURNS
uint256
Returns how many DAI/USD worth of collateral is required for the base rarity score of an Aavegotchi.
RETURNS
uint256
Returns the base rarity score for an Aavegotchi calculated from its numeric traits and collateral type.
RETURNS
uint256
Returns the rarity score of an Aavegotchi, including all equipped wearables.
RETURNS
uint256
Returns the current kinship value of a given Aavegotchi.
RETURNS
uint256
Returns all the Aavegotchi Ids of a given owner.
RETURNS
uint32[]
Returns detailed information about all the Aavegotchis of a given owner.
Returns the owner of a given Aavegotchi.
RETURNS
address
Get the approved address for a single Aavegotchi.
RETURNS
address
Returns if an address is an authorized operator for another address.
RETURNS
bool
Sets the unique name of an Aavegotchi to the given string, if available.
Includes the given Aavegotchis in the next Chainlink VRF batch call.
Spends the given number of skill points on the specified trait modifiers.
Claims an Aavegotchi from the Portal and transfers the required collateral from
msg.sender
to the Aavegotchi's escrow address.Performs a basic interaction with the Aavegotchi to increase kinship.
Prevents transferring and equipping wearables for a given period of time. Used to ensure that Aavegotchis listed on the secondary marketplace cannot be rugpulled by their owners.
Transfers the ownership of an NFT from one address to another address
Transfers the ownership of an NFT from one address to another address
Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE /// TO CONFIRM THAT
_to
IS CAPABLE OF RECEIVING NFTS OR ELSE /// THEY MAY BE PERMANENTLY LOSTThis function is used by transfer functions.
Change or reaffirm the approved address for an NFT.
Enable or disable approval for a third party ("operator") to manage.
Last modified 1yr ago