Skip to main content

Registering Spaces & Assets

Next, using the Space Registry, creators can register their Space and the list of assets and trophies. The creator can then “program” the achievements in the Registry, for example, by defining that a given asset gets unlocked by the user once a number of points is reached. This programmable logic is defined directly in the Space Registry, but it’s the L1MAD that handles interactions on behalf of the Space and its users.

When a given user reaches a number of points in the experience, the Space performs an API request to the L1MAD, which will then lookup and validate the achievement based on the logic defined in the Space Registry. If all is valid, then the L1MAD will mint the Item (or Award) to the user. To do this, the L1MAD has a wallet that has a privileged role in the Space Registry contract, allowing it to execute higher security functions. Furthermore, the Creator of the assets has to set the Space Registry as an allowed minter.

To register a Space in the future on Lamina1, developers will need to follow these simple steps: 

  • Download the sample smart contract from the LAMINA1 GitHub for registering a Space on the LAMINA1 Hub (available now for community review)
  • In the smart contract: 
    • Define the Name of your Space
    • Define the URL of the Space
    • Define the URL of Space metadata (the format for this will be defined in the future)
    • Define the Status of the Space: Active, Inactive
    • Input all NFT information required to drive the game and its mechanics (Item IDs, amounts, points required to earn, etc)
    • Define your in-Space Achievements and additional information
  • Run the command to Register

Running this command will automatically link your smart contract to one of the nodes on the LAMINA1 blockchain. With that, your Space will be registered on the LAMINA1 Betanet.