-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
R4R: Tags Cleanup & Docs #3137
Merged
Merged
R4R: Tags Cleanup & Docs #3137
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
020cbd1
Remove dup tags from x/gov EndBlocker
ba70cc4
Remove dup tag from x/slashing BeginBlocker
3b78313
Create tags sub package in slashing module and use new height tag
cb37b10
Merge branch 'develop' into bez/2448-quick-n-dirty-events
39b8d66
Actually de-dep governance tags + add tags docs for gov module
51918dc
Update slashing tags and add docs
6f5f648
Update x/gov tags and docs
241fef9
Update staking tags and implement tags doc
d7df055
Add delegation module tags doc
2bf8bf9
Add banking module tags doc
8110d5f
Minor cleanup
a6294dc
Fix docs
3ee301f
Add pending log entry
fe98ba7
Merge branch 'develop' into bez/2448-quick-n-dirty-events
781b1aa
Add back proposal ID tag to gov EndBlocker
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Tags | ||
|
||
The bank module emits the following events/tags: | ||
|
||
## Handlers | ||
|
||
### MsgSend | ||
|
||
| Key | Value | | ||
|-----------|---------------------------| | ||
| sender | {senderAccountAddress} | | ||
| recipient | {recipientAccountAddress} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Tags | ||
|
||
The distribution module emits the following events/tags: | ||
|
||
## Handlers | ||
|
||
### MsgSetWithdrawAddress | ||
|
||
| Key | Value | | ||
|-----------|---------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
|
||
### MsgWithdrawDelegatorRewardsAll | ||
|
||
| Key | Value | | ||
|-----------|---------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
|
||
### MsgWithdrawDelegatorReward | ||
|
||
| Key | Value | | ||
|------------------|---------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
| source-validator | {srcOperatorAddress} | | ||
|
||
### MsgWithdrawValidatorRewardsAll | ||
|
||
| Key | Value | | ||
|------------------|----------------------| | ||
| source-validator | {srcOperatorAddress} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Tags | ||
|
||
The governance module emits the following events/tags: | ||
|
||
## EndBlocker | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this mean? All governance events are tagged with these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exactly. |
||
|
||
| Key | Value | | ||
|-----------------|------------------------------------------------------| | ||
| proposal-result | proposal-passed\|proposal-rejected\|proposal-dropped | | ||
|
||
## Handlers | ||
|
||
### MsgSubmitProposal | ||
|
||
| Key | Value | | ||
|-------------------------|--------------------------| | ||
| action | proposal-vote | | ||
| proposer | {proposerAccountAddress} | | ||
| proposal-id | {proposalID} | | ||
| voting-period-start [0] | {proposalID} | | ||
|
||
* [0] Tag only emitted if the voting period starts during the submission. | ||
|
||
### MsgVote | ||
|
||
| Key | Value | | ||
|-------------|-----------------------| | ||
| action | proposal-vote | | ||
| voter | {voterAccountAddress} | | ||
| proposal-id | {proposalID} | | ||
|
||
### MsgDeposit | ||
|
||
| Key | Value | | ||
|-------------|---------------------------| | ||
| action | proposal-vote | | ||
| depositor | {depositorAccountAddress} | | ||
| proposal-id | {proposalID} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Tags | ||
|
||
The slashing module emits the following events/tags: | ||
|
||
## Handlers | ||
|
||
### MsgUnjail | ||
alexanderbez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
| Key | Value | | ||
|-----------|----------------------------| | ||
| action | validator-unjailed | | ||
| validator | {validatorOperatorAddress} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Tags | ||
|
||
The staking module emits the following events/tags: | ||
|
||
## EndBlocker | ||
|
||
| Key | Value | | ||
|-----------------------|-------------------------------------------| | ||
| action | complete-unbonding\|complete-redelegation | | ||
| delegator | {delegatorAccountAddress} | | ||
| source-validator | {srcOperatorAddress} | | ||
| destination-validator | {dstOperatorAddress} | | ||
|
||
## Handlers | ||
|
||
### MsgCreateValidator | ||
|
||
| Key | Value | | ||
|-----------------------|----------------------| | ||
| destination-validator | {dstOperatorAddress} | | ||
| moniker | {validatorMoniker} | | ||
| identity | {validatorIdentity} | | ||
|
||
### MsgEditValidator | ||
|
||
| Key | Value | | ||
|-----------------------|----------------------| | ||
| destination-validator | {dstOperatorAddress} | | ||
| moniker | {validatorMoniker} | | ||
| identity | {validatorIdentity} | | ||
|
||
### MsgDelegate | ||
|
||
| Key | Value | | ||
|-----------------------|-------------------------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
| destination-validator | {dstOperatorAddress} | | ||
|
||
### MsgBeginRedelegate | ||
|
||
| Key | Value | | ||
|-----------------------|-------------------------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
| source-validator | {srcOperatorAddress} | | ||
| destination-validator | {dstOperatorAddress} | | ||
| end-time [0] | {delegationFinishTime} | | ||
|
||
* [0] Time is formatted in the RFC3339 standard | ||
|
||
### MsgBeginUnbonding | ||
|
||
| Key | Value | | ||
|------------------|---------------------------| | ||
| delegator | {delegatorAccountAddress} | | ||
| source-validator | {srcOperatorAddress} | | ||
| end-time [0] | {delegationFinishTime} | | ||
|
||
* [0] Time is formatted in the RFC3339 standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package tags | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// Slashing tags | ||
var ( | ||
ActionValidatorUnjailed = []byte("validator-unjailed") | ||
|
||
Action = sdk.TagAction | ||
Validator = "validator" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we don't tag every message with it's type? Or do we and that isn't mentioned here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do:
I will be changing this in #3171 to be
message-type
instead ofaction
so I'd rather do that in the aforementioned PR (i.e have this merged first).