drishyam27/carbon_credit_marketplace — reverse-engineered prompt
Reverse engineered prompt
Build me a decentralized carbon credit marketplace on Stellar where anyone can connect a Freighter wallet, list a carbon project, and let buyers purchase all or part of the available credits. The app should feel simple for normal users, with clear cards for active listings, prices, remaining credits, seller info, and purchase status.
I want the smart contract to handle the important stuff, creating listings, buying credits, locking payment in escrow, marking delivery, confirming delivery, refunding cancelled purchases, and minting carbon offset tokens to buyers when they purchase. It should also support checking a user’s credits, purchases, and active listings.
Please make the web app responsive, clean, and easy to demo on Stellar testnet. Include sensible loading states, wallet connection handling, errors users can understand, and basic caching so it doesn’t spam blockchain reads. Add tests for the main frontend flows and the contract logic. Use current Stellar and Soroban docs online if you need to.
Want more depth? Deep Reverse