Code Lab: Architecting & Listing Your First Sui Token
In this intensive, hands-on Code Lab, we are breaking down the lifecycle of a Sui token from the initial coin::create_currency call to establishing high-performance liquidity on Cetus and Aftermath.
This isn't just a lecture; it’s a deployment sprint. We will be interacting directly with Sui smart contracts, calculating \bm{sqrtPrice} values, and navigating the complexities of Concentrated Liquidity Market Makers (CLMMs).
What We’ll Build
• The Forge: Implement a standard Sui token with custom metadata and supply.
• The Liquidity Layer: Initialize a Cetus pool using Move scripts and the Sui CLI.
• The Math: Master the Q64.96 fixed-point math required for \bm{sqrtPrice} and Tick calculations.
• The Ecosystem: Register your token with aggregators like Aftermath to ensure ecosystem-wide discoverability.
Prerequisites
This workshop is designed for developers who are comfortable with the terminal and have a basic understanding of Rust or Move.
• Sui CLI installed and configured.
• A wallet with Sui Testnet tokens.
• A laptop with Node.js and a code editor (VS Code recommended).
Agenda
• 12:00 PM: Setup & Token Minting (The Move Framework)
• 01:00 PM: The Math of CLMMs (Ticks, Spacing, and SqrtPrice)
• 01:30 PM: The Listing Sprint (Interacting with the Cetus Factory)
• 03:00 PM: Post-Launch: Aggregators, Indexing, and Analytics