You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to #498. In current version, it does not provide GetPostReactions functions for paginated querying. In addition, PostReactions are stored whole array to a key now, all of them should be one to one association with the key.
Implementation proposal
To implement the pagination to PostReactions, the store key of it should be reconstructed PostReationsStorePrefix + '<post-id>' + '<user-address>' + '<reaction-id>'.
This allows:
Get all the reactions of the post
Check if a specific reaction created by user exists with O(1) time complexity
Besides, the cli tool provides desmos query posts post-reactions [post-id] [[user]] to get the post reactions toward the post with the optional user address.
Feature description
This issue is related to #498. In current version, it does not provide
GetPostReactions
functions for paginated querying. In addition,PostReactions
are stored whole array to a key now, all of them should beone to one
association with the key.Implementation proposal
To implement the pagination to
PostReactions
, the store key of it should be reconstructedPostReationsStorePrefix + '<post-id>' + '<user-address>' + '<reaction-id>'
.This allows:
Besides, the cli tool provides
desmos query posts post-reactions [post-id] [[user]]
to get the post reactions toward the post with the optional user address.What do you think? @RiccardoM @bragaz
The text was updated successfully, but these errors were encountered: