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

chore(vesting) - Migrate Event emitting to TypedEvent #1155

Merged
merged 8 commits into from
Dec 15, 2022

Conversation

Vvaradinov
Copy link
Contributor

Description

Migrate the usage of now deprecated EmitEvent to EmitTypedEvent. New events.proto is created describing each event type the vesting module emits.

Closes: ENG-1172


All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

PR review checkboxes:

I have...

  • added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • included the correct type prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link in the PR description to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all required CI checks have passed

Code maintenance:

I have...

  • written unit and integration tests
  • added relevant godoc and code comments.
  • updated relevant documentation (docs/) or specification (x/<module>/spec/)

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code

@Vvaradinov Vvaradinov requested review from ramacarlucho and a team as code owners December 8, 2022 14:12
@Vvaradinov Vvaradinov requested review from MalteHerrmann and removed request for a team December 8, 2022 14:12
@github-actions github-actions bot added the proto label Dec 8, 2022
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #1155 (90f8887) into main (b60aa40) will decrease coverage by 0.14%.
The diff coverage is 65.38%.

❗ Current head 90f8887 differs from pull request most recent head aa9e630. Consider uploading reports for the commit aa9e630 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1155      +/-   ##
==========================================
- Coverage   78.57%   78.43%   -0.15%     
==========================================
  Files         130      130              
  Lines        7776     7767       -9     
==========================================
- Hits         6110     6092      -18     
- Misses       1518     1524       +6     
- Partials      148      151       +3     
Impacted Files Coverage Δ
x/vesting/keeper/msg_server.go 84.84% <65.38%> (-4.32%) ⬇️

Copy link
Contributor

@ramacarlucho ramacarlucho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the linter error?

Copy link
Contributor

@GAtom22 GAtom22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @Vvaradinov!! LGTM!

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left one suggestion and one question

proto/evmos/vesting/v1/events.proto Show resolved Hide resolved
x/vesting/keeper/msg_server.go Outdated Show resolved Hide resolved
@fedekunze fedekunze enabled auto-merge (squash) December 15, 2022 08:58
@fedekunze fedekunze merged commit 0aa753c into main Dec 15, 2022
@fedekunze fedekunze deleted the Vvaradinov/vesting-migrate-typed-events branch December 15, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants