2019-12-17 03:44:44 -08:00
|
|
|
<!--
|
2019-12-11 09:35:27 -08:00
|
|
|
order: 4
|
2019-12-17 03:44:44 -08:00
|
|
|
-->
|
2019-12-11 09:35:27 -08:00
|
|
|
|
2019-06-26 09:03:25 -07:00
|
|
|
# Events
|
|
|
|
|
|
|
|
The governance module emits the following events:
|
|
|
|
|
|
|
|
## EndBlocker
|
|
|
|
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
2020-02-04 10:16:56 -08:00
|
|
|
| ----------------- | --------------- | ---------------- |
|
2019-06-26 09:03:25 -07:00
|
|
|
| inactive_proposal | proposal_id | {proposalID} |
|
|
|
|
| inactive_proposal | proposal_result | {proposalResult} |
|
|
|
|
| active_proposal | proposal_id | {proposalID} |
|
|
|
|
| active_proposal | proposal_result | {proposalResult} |
|
|
|
|
|
|
|
|
## Handlers
|
|
|
|
|
|
|
|
### MsgSubmitProposal
|
|
|
|
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
2020-02-04 10:16:56 -08:00
|
|
|
| ------------------- | ------------------- | --------------- |
|
2019-06-26 09:03:25 -07:00
|
|
|
| submit_proposal | proposal_id | {proposalID} |
|
|
|
|
| submit_proposal [0] | voting_period_start | {proposalID} |
|
|
|
|
| proposal_deposit | amount | {depositAmount} |
|
|
|
|
| proposal_deposit | proposal_id | {proposalID} |
|
|
|
|
| message | module | governance |
|
|
|
|
| message | action | submit_proposal |
|
|
|
|
| message | sender | {senderAddress} |
|
|
|
|
|
2020-02-04 10:16:56 -08:00
|
|
|
- [0] Event only emitted if the voting period starts during the submission.
|
2019-06-26 09:03:25 -07:00
|
|
|
|
|
|
|
### MsgVote
|
|
|
|
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
2020-02-04 10:16:56 -08:00
|
|
|
| ------------- | ------------- | --------------- |
|
2019-06-26 09:03:25 -07:00
|
|
|
| proposal_vote | option | {voteOption} |
|
|
|
|
| proposal_vote | proposal_id | {proposalID} |
|
|
|
|
| message | module | governance |
|
|
|
|
| message | action | vote |
|
|
|
|
| message | sender | {senderAddress} |
|
|
|
|
|
|
|
|
### MsgDeposit
|
|
|
|
|
|
|
|
| Type | Attribute Key | Attribute Value |
|
2020-02-04 10:16:56 -08:00
|
|
|
| -------------------- | ------------------- | --------------- |
|
2019-06-26 09:03:25 -07:00
|
|
|
| proposal_deposit | amount | {depositAmount} |
|
|
|
|
| proposal_deposit | proposal_id | {proposalID} |
|
|
|
|
| proposal_deposit [0] | voting_period_start | {proposalID} |
|
|
|
|
| message | module | governance |
|
|
|
|
| message | action | deposit |
|
|
|
|
| message | sender | {senderAddress} |
|
|
|
|
|
2020-02-04 10:16:56 -08:00
|
|
|
- [0] Event only emitted if the voting period starts during the submission.
|