Skip to main content
Version: 4.2.0

Events

The posts module emits the following events:

Handlers

MsgCreatePost

TypeAttribute KeyAttribute Value
create_postsubspace_id{subspaceID}
create_postsection_id{sectionID}
create_postpost_id{postID}
create_postauthor{userAddress}
create_postcreation_time{CreationTime}
messagemoduleposts
messageactiondesmos.posts.v2.MsgCreatePost
messagesender{userAddress}

MsgEditPost

TypeAttribute KeyAttribute Value
edit_postsubspace_id{subspaceID}
edit_postpost_id{postID}
edit_postlast_edit_time{LastEditTime}
messagemoduleposts
messageactiondesmos.posts.v2.MsgEditPost
messagesender{userAddress}

MsgDeletePost

TypeAttribute KeyAttribute Value
delete_postsubspace_id{subspaceID}
delete_postpost_id{postID}
messagemoduleposts
messageactiondesmos.posts.v2.MsgDeletePost
messagesender{userAddress}

MsgAddPostAttachment

TypeAttribute KeyAttribute Value
add_post_attachmentsubspace_id{subspaceID}
add_post_attachmentpost_id{postID}
add_post_attachmentattachment_id{attachmentID}
add_post_attachmentlast_edit_time{lastEditTime}
messagemoduleposts
messageactiondesmos.posts.v2.MsgAddPostAttachment
messagesender{userAddress}

MsgRemovePostAttachment

TypeAttribute KeyAttribute Value
remove_post_attachmentsubspace_id{subspaceID}
remove_post_attachmentpost_id{postID}
remove_post_attachmentattachment_id{attachmentID}
remove_post_attachmentlast_edit_time{lastEditTime}
messagemoduleposts
messageactiondesmos.posts.v2.MsgRemovePostAttachment
messagesender{userAddress}

MsgAnswerPoll

TypeAttribute KeyAttribute Value
answer_pollsubspace_id{subspaceID}
answer_pollpost_id{postID}
answer_pollpoll_id{pollID}
messagemoduleposts
messageactiondesmos.posts.v2.MsgAnswerPoll
messagesender{userAddress}

Keeper

TypeAttribute KeyAttribute Value
tally_pollsubspace_id{subspaceID}
tally_pollpost_id{postID}
tally_pollpoll_id{pollID}