forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR cosmos#4541: Events Tracking / Tendermint v0.32.0 Update
* Update Tendermint to v0.32.0-dev0 * Initial refactor of tags * Update event types and add unit tests * Refactor context * Update module manager * Update result godoc * Implement ToABCIEvents * Update BaseApp * Minor cleanup * Fix typo * Update x/bank message handler * Update x/bank keeper * Update x/bank * Update x/bank events docs * Update x/crisis module events * Reset context with events on each message exec * Update x/distribution events and docs * Update BaseApp to not set empty events manually * Implement simple event manager * Update module manager * Update modules to use event manager * Update x/gov module to use events * Update events docs * Update gov queries and crisis app module * Update bank keeper * Add events to minting begin blocker * Update modules to use types/events.go * Cleanup x/mint * Update x/staking events * Update x/staking events * Update events to have sender part of message.sender * Fix build * Fix module unit tests * Add pending log entry * Update deps * Update x/crisis/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/bank/internal/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/distribution/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/mint/internal/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/slashing/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/staking/types/events.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/gov/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/mint/abci.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/slashing/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Update x/staking/handler.go Co-Authored-By: Federico Kunze <[email protected]> * Upgrade TM to v0.32.0-dev1 * Update events as strings * Update Tendermint to v0.32.0-dev2 * Fix BaseApp unit tests * Fix unit tests * Bump tendermint version to v0.32.0 * typos
- Loading branch information
1 parent
3950017
commit 67f6b02
Showing
89 changed files
with
1,306 additions
and
972 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#4387 Refactor the usage of tags (now called events) to reflect the | ||
new ABCI events semantics: | ||
|
||
- Move `x/{module}/tags/tags.go` => `x/{module}/types/events.go` | ||
- Update `docs/specs` | ||
- Refactor tags in favor of new `Event(s)` type(s) | ||
- Update `Context` to use new `EventManager` | ||
- (Begin|End)Blocker no longer return tags, but rather uses new `EventManager` | ||
- Message handlers no longer return tags, but rather uses new `EventManager` | ||
|
||
Any component (e.g. BeginBlocker, message handler, etc...) wishing to emit an event must do so | ||
through `ctx.EventManger().EmitEvent(s)`. | ||
|
||
To reset or wipe emitted events: `ctx = ctx.WithEventManager(sdk.NewEventManager())` | ||
To get all emitted events: `events := ctx.EventManager().Events()` |
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,23 @@ | ||
# Events | ||
|
||
The bank module emits the following events: | ||
|
||
## Handlers | ||
|
||
### MsgSend | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|----------|---------------|--------------------| | ||
| transfer | recipient | {recipientAddress} | | ||
| message | module | bank | | ||
| message | action | send | | ||
| message | sender | {senderAddress} | | ||
|
||
### MsgMultiSend | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|----------|---------------|--------------------| | ||
| transfer | recipient | {recipientAddress} | | ||
| message | module | bank | | ||
| message | action | multisend | | ||
| message | sender | {senderAddress} | |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
# Events | ||
|
||
The crisis module emits the following events: | ||
|
||
## Handlers | ||
|
||
### MsgVerifyInvariance | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|-----------|---------------|------------------| | ||
| invariant | route | {invariantRoute} | | ||
| message | module | crisis | | ||
| message | action | verify_invariant | | ||
| message | sender | {senderAddress} | |
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
# Events | ||
|
||
The distribution module emits the following events: | ||
|
||
## BeginBlocker | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|-----------------|---------------|--------------------| | ||
| proposer_reward | validator | {validatorAddress} | | ||
| proposer_reward | reward | {proposerReward} | | ||
| commission | amount | {commissionAmount} | | ||
| commission | validator | {validatorAddress} | | ||
| rewards | amount | {rewardAmount} | | ||
| rewards | validator | {validatorAddress} | | ||
|
||
## Handlers | ||
|
||
### MsgSetWithdrawAddress | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|----------------------|------------------|----------------------| | ||
| set_withdraw_address | withdraw_address | {withdrawAddress} | | ||
| message | module | distribution | | ||
| message | action | set_withdraw_address | | ||
| message | sender | {senderAddress} | | ||
|
||
### MsgWithdrawDelegatorReward | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|---------|---------------|---------------------------| | ||
| withdraw_rewards | amount | {rewardAmount} | | ||
| withdraw_rewards | validator | {validatorAddress} | | ||
| message | module | distribution | | ||
| message | action | withdraw_delegator_reward | | ||
| message | sender | {senderAddress} | | ||
|
||
### MsgWithdrawValidatorCommission | ||
|
||
| Type | Attribute Key | Attribute Value | | ||
|------------|---------------|-------------------------------| | ||
| withdraw_commission | amount | {commissionAmount} | | ||
| message | module | distribution | | ||
| message | action | withdraw_validator_commission | | ||
| message | sender | {senderAddress} | |
This file was deleted.
Oops, something went wrong.
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.