Demo: https://www.loom.com/share/2e91ca7b1f60476d90e952ff80af800b?sid=45aa91a0-aca6-4925-9fc7-c83a8d143b56

Froggy Auctions

Froggy Auctions showcases a way to interpoerate between the sOrdinals metaprotocol and Stacks native SIP-009 NFTs.

How it Works

Froggy Auctions operates through a simple process:

  1. HOP: Vault your Froggy inscription to a trusted principal.
  2. SIP-009 Froggy is minted or unvaulted and sent to you.
  3. HOP BACK: Vault your SIP-009 Froggy and recover your inscription.

Code Overview

Frontend / Backend

The frontend/backend built with Next.js / React. Backend API routes are used to manage chainhook events, execute hopping and hopping back, and vaulting / unvaulting.

Clarity Contracts

Froggy Clarity smart contract. There are two main functions:

  • hop: This function is responsible for vaulting Froggy inscriptions and minting SIP-009 Froggies to the recipient.
  • hop-back: Used to vault SIP-009 Froggies and recover the inscription.

Clarinet Testing

image

Chainhook

A chainhook is used to track STX transfers with memos. After hitting our serverless API each valid event is saved to our database which is then subscribed to from our frontend to display real-time froggy transactions to any site vistors via toasts.

Built With

Share this project:

Updates