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
Currently there are no hooks on x/gov. However, it would be useful to have hooks for when a user votes on a proposal, as an application may want to provide additional incentivizes for voting users on certain proposals.
(I think we should separately add more hooks for once a proposal has finished deposit period, and a tally event occurs)
Proposal
Add the following hook that executes after a user has voted.
AfterUserVoted(Context, AccAddress, VoteType)
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Osmosis is using this specific hook in order to reward users for casting a vote, and so our module giving this reward needs to receive a hook whenever a vote is cast
I can imagine other use cases as well, such as one that keeps track of how many votes have been cast so far, and to perhaps end a voting period early if certain conditions are met.
Summary
Currently there are no hooks on
x/gov
. However, it would be useful to have hooks for when a user votes on a proposal, as an application may want to provide additional incentivizes for voting users on certain proposals.(I think we should separately add more hooks for once a proposal has finished deposit period, and a tally event occurs)
Proposal
Add the following hook that executes after a user has voted.
For Admin Use
The text was updated successfully, but these errors were encountered: