Skip to content

anshss/PromptReality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Info

This repo contains:

Web App

Web app to generate new assets through user prompt and mint or trade them for your virtual world

AR App

A Mixed Reality environment to interact with your on-chain assets

Smart Contract Methods

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

API Methods

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



Demo Video