To conclude our session, no class is complete without a field trip. We took our Clarity Campers on a virtual field trip to Miami to see
MiamiCoin ($MIA), the first CityCoin, in action. If you haven’t already heard, the
city commission of Miami recently voted to accept the funds generated by the Stacks ecosystem, making Miami not only a Bitcoin-friendly city, but a Stacks-fueled one at that. The funds will go toward initiatives targeting underprivileged communities, climate change and rising sea levels, and crypto education. Those who mine MiamiCoins are rewarded with STX which can then be Stacked for bitcoin.
Jason Schrader, a DevOps engineer at
Freehold, took the class through an introduction to CityCoins and the Stacks technology that makes it all possible. CityCoins is just one of Stacks’ interesting use cases and is built using Clarity and Proof of Transfer. Jason explained that CityCoins was first created using a smart contract called PoX-Lite or “poxl” (coined and created by our very own Jude Nelson). One of the overall goals behind poxl was implementing Proof of Transfer in a smart contract. Clarity made it possible to create and design the smart contract while Proof of Transfer made it possible to Stack and mine CityCoins.
Jason discussed how Clarity played a part in setting certain parameters within the CityCoins smart contract including dictating how tokens were configured, how mining would take place, and how Stacking would be implemented. As we recall in
Inside Clarity Volume 1, smart contracts only execute when certain conditions are met and one example of these conditions applies to defining token properties such as “no decimals, only a single unit”. This condition was a design choice set to avoid micro $MIA, essentially denominations that are too small to care about, similar to“dust” or micro BTC. Overall, students were blown away by the complexities behind CityCoins and learned how they could apply both Clarity and Proof of Transfer to their applications.
Most field trips end with a trip to the gift shop but our virtual tour ended with an exclusive invite to Miami’s hottest club, Club Hackathon. Jk. It’s not actually called that but if you are looking for a hot club I recommend
Stacking.Club.
At
MiamiCoin’s ongoing hackathon, Clarity Campers will have the chance to apply their newfound Clarity skills to build a working application that contributes to the core foundations of the MiamiCoin ecosystem/user experience. Winners will have both fame and fortune in the form of $25K bitcoin prizes and a spotlight in CityCoin’s blog page.