Skip to content
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

feat(x/gov): emit proposer address in submit proposal event (backport #19842) #19844

Merged
merged 3 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

* (types) [#19759](https://github.com/cosmos/cosmos-sdk/pull/19759) Align SignerExtractionAdapter in PriorityNonceMempool Remove.

### Improvments

* (x/gov) [#19844](https://github.com/cosmos/cosmos-sdk/pull/19844) Emit the proposer of governance proposals

## [v0.50.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.5) - 2024-03-12

### Features
Expand Down
1 change: 1 addition & 0 deletions x/gov/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
sdk.NewEvent(
types.EventTypeSubmitProposal,
sdk.NewAttribute(types.AttributeKeyProposalID, fmt.Sprintf("%d", proposalID)),
event.NewAttribute(types.AttributeKeyProposalProposer, proposer.String()),

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / dependency-review

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (03)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (01)

undefined: event

Check failure on line 126 in x/gov/keeper/proposal.go

View workflow job for this annotation

GitHub Actions / tests (01)

undefined: event
sdk.NewAttribute(types.AttributeKeyProposalMessages, msgsStr),
),
)
Expand Down
1 change: 1 addition & 0 deletions x/gov/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
AttributeValueExpeditedProposalRejected = "expedited_proposal_rejected" // didn't meet expedited vote quorum
AttributeValueProposalFailed = "proposal_failed" // error on proposal handler
AttributeValueProposalCanceled = "proposal_canceled" // error on proposal handler
AttributeKeyProposalProposer = "proposal_proposer" // account address of the proposer

AttributeKeyProposalType = "proposal_type"
AttributeSignalTitle = "signal_title"
Expand Down
Loading