Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Ownable, proper sort by timestamp #8

Merged
merged 11 commits into from
Mar 19, 2024
Merged

feat: Add Ownable, proper sort by timestamp #8

merged 11 commits into from
Mar 19, 2024

Conversation

leohhhn
Copy link
Collaborator

@leohhhn leohhhn commented Mar 17, 2024

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.

Copy link

netlify bot commented Mar 17, 2024

Deploy Preview for gno-memeland canceled.

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

@leohhhn leohhhn self-assigned this Mar 17, 2024
api/p/memeland/memeland.gno Outdated Show resolved Hide resolved
@leohhhn leohhhn merged commit 9a26d92 into main Mar 19, 2024
4 checks passed
@leohhhn leohhhn deleted the feat/ownable branch March 19, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants