Aavegotchi Docs
Official WebsiteDapp
  • Welcome to Aavegotchi
    • Introduction
  • Own. Trade. Earn.
    • What is True Ownership?
    • Tokens
      • GHST Token
      • Gotchus Alchemica
      • GLTR Token
    • Game Items
      • Aavegotchis
      • Portals
      • Wearables
      • The Forge
      • Gotchiverse
    • Trading
      • Aavegotchi Baazaar
      • Auction House
    • Earning in Aavegotchi
      • Rarity Farming
      • Staking
      • Playing Games
  • Gaming
    • Aavegotchi Gaming Console
    • Live Games
    • Assets
      • Badges
      • Experience Points
      • Skins
      • [REDACTED]
  • Geist
    • Overview
    • FAQ
  • Governance
    • About AavegotchiDAO
    • Creating a Proposal
    • Voting on Proposals
  • developers
    • Aavegotchi Contracts
      • Reading from Aavegotchi Contracts
        • Fetching Onchain SVGs
      • Writing to Aavegotchi Contracts
      • Extending Aavegotchi Contracts
        • Upgrading
        • Security
        • Deployment
        • Governance
      • About EIP-2535 Diamonds
        • Facets
      • maTokens
      • Concepts
      • Deployed Contracts
        • Aavegotchi Diamond
        • Forge Diamond
        • Wearable Diamond
        • Gotchiverse Realm Diamond
        • Installation Diamond
        • Tile Diamond
    • Subgraphs
      • General
      • Core Matic Subgraph
      • SVG Subgraphs
      • Gotchiverse Subgraph
      • FAKE Gotchi Subgraph
Powered by GitBook
On this page
  • Information in louper.dev
  • AavegotchiFacet.sol
  • CollateralFacet.sol
  • DAOFacet.sol
  • ItemsFacet.sol
  • ShopFacet.sol
  • SvgFacet.sol
  • VRFFacet.sol

Was this helpful?

  1. developers
  2. Aavegotchi Contracts
  3. About EIP-2535 Diamonds

Facets

Brief overviews of each facet in the Aavegotchi Diamond.

PreviousAbout EIP-2535 DiamondsNextmaTokens

Last updated 1 year ago

Was this helpful?

Information in louper.dev

Information about facets of the AavegotchiDiamond can be seen in , a user interface for diamonds.

AavegotchiFacet.sol

Implements the ERC721 standard. Handles logic related to claiming Aavegotchis, updating traits, increasing kinship, and locking Aavegotchis for resale.

CollateralFacet.sol

Handles logic related to Aavegotchis' collateral stakes, including increasing, decreasing, and burning Aavegotchis to return all stake to the owner.

DAOFacet.sol

Handles logic and functions intended to be managed and called by the AavegotchiDAO, including adding new whitelisted collaterals, creating new Haunts (Aavegotchi generations), creating and minting new items and sets, and granting experience to Aavegotchis.

ItemsFacet.sol

Implements the ERC1155 standard. Handles all logic related to equipping, consuming, and transferring items. Items come in three types: wearables, badges, and consumables.

ShopFacet.sol

Handles all logic related to buying Portals, converting vouchers into Wearables, and purchasing items using GHST token.

SvgFacet.sol

Handles all logic related to rendering Aavegotchi SVGs using onchain metadata.

VRFFacet.sol

Implements the Chainlink VRF functionality and updates Aavegotchi state variables when completed. The function to open portals is also in this facet.

louper.dev