
LOSA Frames
On-chain eCommerce with Farcaster Frames v2 and built in affiliate tracking
Demo
About
The problem it solves When listing an item for sale on the LOSA seller dashboard, all the product information is saved on-chain. This makes it so any developer can build a frontend or marketplace to sell that product. However, all the reputation that the seller builds up is owned by the seller and not by the marketplaces. We built a Farcaster Frame as the first frontend to sell these items, because Farcaster has existing distribution, and an excellent mobile wallet flow with their new embedded wallet. But the frontend is just the beginning, we also added a built in affiliate mechanism to further increarse distribution and reach of the seller's products. Next we plan to add more Farcaster features, such as incentives for following, more incentives for sharing, and more gamified experiences. User Interaction and Data Flow Sellers list items for sale through the seller dashboard. Buyers purchase items through on-chain transactions in Farcaster Frames. The project architecture and development process The Ethereum Attestation Service is used as the core building block for listing items for sale, with IPFS used as the main data layer for product descriptions and images. There is also a custom smart contract for the price of the item that supports plugins for dynamic pricing, although we did not get to show that off in this demo. Farcaster Frames v2 is used as the main interface for interacting with products. We built two ways to interact with products, you can purchase the product or share the product for referral fees. Referral fees are currently being stored in a db, although we plan to move this to a more decentralized data layer. Key differentiators and uniqueness of the project 1. All product data is made available through decentralized means, making it possible for anyone to build frontends or marketplaces on top. 2. Because of number 1, sellers always own their reviews and reputation. 3. Although their are other platforms for selling physical goods through Farcaster Frames, I'm not familair with any that have built in referral links. Trade-offs and shortcuts while building Many shortcuts were taken to get this shipped before the deadline. * Only one image is being used, instead of a carasel * Off-chain referral tracking, instead of on-chain referral tracking * When ordering a product, a simple USDC transfer is used, instead of a smart contract interaction that could trigger lifecycle hooks * Not collecting shipping addresses in the demo, our plan is to store these securly off-chain and save them for future orders. * A mechanism for us the Frame builders to take a fee Additional Features Some of the seller dashboard, such as the authentication was started before the hackathon. Also some of the attestation logic and architecture was drawn up before hand. Everything else was done during the hackathon including the create product form, view purchases table, and the Farcaster Frame.