How to Implement a Decentralized Twitter Using Dozens of Lines of Sui Version of the Move Language Code

By: ChainX, ComingChat & OmniBTC CEO, GG

Define tweet object, abstract tweet structure, and each tweet is displayed in the form of NFT. Any external app or web page can be included to tweet using this protocol. Tweets are the only NFTs on-chain.

Post a tweet: Initialize a tweeting object and mount it on the tweeting user storage.

Retweet: Just add a link to quote the tweet.

Delete tweet: Just implement an operation to delete the object of the tweet.

complete code:

Summarize

The entire code is the use case code on Sui Move.
Of course, this is just a simple column, but the basic function has been completed. We Coming.chat are going to build a more complete WeChat Moments space, that is, Daomoment in ComingChat. It will be online in about 2 months and meet our users.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ComingChat

ComingChat is a SocialFi-based Web3 portal application with DeFi and GameFi functions, developing Dmens, Signal chat, mini game platform on Sui.