Co-authored-by: Kien <kien@notional.ventures> Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
a0faab3cb9
commit
9c53142c92
@ -44,6 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
### Improvements
|
||||
|
||||
* (x/gov) [#19853](https://github.com/cosmos/cosmos-sdk/pull/19853) Emit `depositor` in `EventTypeProposalDeposit`.
|
||||
* (x/gov) [#19844](https://github.com/cosmos/cosmos-sdk/pull/19844) Emit the proposer of governance proposals.
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
@ -168,6 +168,7 @@ func (keeper Keeper) AddDeposit(ctx context.Context, proposalID uint64, deposito
|
||||
sdkCtx.EventManager().EmitEvent(
|
||||
sdk.NewEvent(
|
||||
types.EventTypeProposalDeposit,
|
||||
sdk.NewAttribute(types.AttributeKeyDepositor, depositorAddr.String()),
|
||||
sdk.NewAttribute(sdk.AttributeKeyAmount, depositAmount.String()),
|
||||
sdk.NewAttribute(types.AttributeKeyProposalID, fmt.Sprintf("%d", proposalID)),
|
||||
),
|
||||
|
||||
@ -13,6 +13,7 @@ const (
|
||||
AttributeKeyVoter = "voter"
|
||||
AttributeKeyOption = "option"
|
||||
AttributeKeyProposalID = "proposal_id"
|
||||
AttributeKeyDepositor = "depositor"
|
||||
AttributeKeyProposalMessages = "proposal_messages" // Msg type_urls in the proposal
|
||||
AttributeKeyVotingPeriodStart = "voting_period_start"
|
||||
AttributeKeyProposalLog = "proposal_log" // log of proposal execution
|
||||
|
||||
Loading…
Reference in New Issue
Block a user