gnolang / memeland

Meme.land: A Gno-powered meme sharing platform where you can share and upvote memes. Built with React and the Gno programming language.
https://meme.gnoteam.com
4 stars 2 forks source link

feat: Add Ownable, proper sort by timestamp #8

Closed leohhhn closed 5 months ago

leohhhn commented 5 months ago

Description

This PR adds Ownable to the Memeland realm, and introduces a RemovePost() for handling moderation of posts.

It also introduces proper sorting by the timestamp the memes were created, as prevously it was purely based on the order of addition.

This PR also makes all of the tests for the Memeland package better, and adds tests for newly introduced functionality.

Considerations: If we choose to deploy the realm via genesis, ownership needs to be transferred to a trusted address in the init() of the realm.

netlify[bot] commented 5 months ago

Deploy Preview for gno-memeland canceled.

Name Link
Latest commit 89160f0bf84bfd7796ad0b07c95baf64a0c2bb36
Latest deploy log https://app.netlify.com/sites/gno-memeland/deploys/65f9503e49efce0008af6c61