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(erc20) - Migrate Event emitting to TypedEvent #1152

Merged
merged 9 commits into from
Dec 20, 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 erc20 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

@linear
Copy link

linear bot commented Dec 8, 2022

ENG-1172 Migrate Events - Evmos

  • Erc20

@github-actions github-actions bot added the proto label Dec 8, 2022
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #1152 (45293a8) into main (4bf2846) will increase coverage by 1.66%.
The diff coverage is 47.05%.

❗ Current head 45293a8 differs from pull request most recent head f2366a0. Consider uploading reports for the commit f2366a0 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1152      +/-   ##
==========================================
+ Coverage   76.71%   78.37%   +1.66%     
==========================================
  Files         149      130      -19     
  Lines        8116     7770     -346     
==========================================
- Hits         6226     6090     -136     
+ Misses       1698     1528     -170     
+ Partials      192      152      -40     
Impacted Files Coverage Δ
x/erc20/proposal_handler.go 1.63% <0.00%> (-0.06%) ⬇️
x/erc20/keeper/msg_server.go 94.88% <72.72%> (-2.68%) ⬇️
x/claims/keeper/migrations.go 0.00% <0.00%> (-71.43%) ⬇️
x/inflation/types/codec.go 0.00% <0.00%> (-41.67%) ⬇️
x/erc20/keeper/migrations.go 66.66% <0.00%> (-33.34%) ⬇️
x/incentives/types/codec.go 0.00% <0.00%> (-27.78%) ⬇️
x/claims/types/params.go 88.67% <0.00%> (-11.33%) ⬇️
x/erc20/types/codec.go 30.00% <0.00%> (-1.82%) ⬇️
app/app.go 81.53% <0.00%> (-0.28%) ⬇️
x/revenue/handler.go 0.00% <0.00%> (ø)
... and 54 more

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!

@fedekunze fedekunze enabled auto-merge (squash) December 15, 2022 08:59
@fedekunze fedekunze merged commit d060fa7 into main Dec 20, 2022
@fedekunze fedekunze deleted the Vvaradinov/erc20-migrate-typed-events branch December 20, 2022 08:46
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