This repo contains:
Web app to generate new assets through user prompt and mint or trade them for your virtual world
A Mixed Reality environment to interact with your on-chain assets
Contains the following methods:
mintAsset - mints a newly generated asset on-chain
sell - selling assets on the marketplace
buy - buying assets on the marketplace
fetchAllAssets - fetches all the assets on the platform
fetchInventory - fetches user's inventory
bridge - bridges a particular asset from Amoy to Fuji
getPriceInUsd - fetches each asset's price from Matic to usd
apiCallMintAsset - calls backend API using chainlink functions to validate the user's latest generation on-chain and sets as URI to the minted asset
The following methods are available on the API:
updateContract - updates communication contract from which user's pinned asset is to be fetched
create - creates user record with his email and wallet address
syncPin - sets an asset's URI as a primary asset to interact in reality
updateLatestGeneration - updates the latest generation for a particular user
latestGeneration - fetches the latest generation of the current user to validate on-chain