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(claims) - Depreacte usage of x/params in x/claims #1125

Merged
merged 22 commits into from
Dec 15, 2022

Conversation

Vvaradinov
Copy link
Contributor

Deprecates the now legacy Cosmos SDK x/params usage in x/claims module. For more info regarding changes check out evmos/ethermint#1472

Closes: ENG-1113


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 Nov 30, 2022

ENG-1113 Deprecate Cosmos x/params logic from claims

In relation to ENG-965

  • Create new proto message
  • Create new store migration
  • Update app.go and module.go
  • Update / Create unit tests
  • Create new getters and setter function for params

@github-actions github-actions bot added the proto label Nov 30, 2022
@Vvaradinov Vvaradinov marked this pull request as ready for review December 1, 2022 11:36
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 Vlad! LGTM! Left a few comments

proto/evmos/claims/v1/tx.proto Outdated Show resolved Hide resolved
x/claims/genesis.go Outdated Show resolved Hide resolved
x/claims/genesis.go Outdated Show resolved Hide resolved
x/claims/keeper/abci.go Outdated Show resolved Hide resolved
x/claims/keeper/abci.go Outdated Show resolved Hide resolved
x/claims/migrations/v3/types/params.go Outdated Show resolved Hide resolved
x/claims/types/msg.go Outdated Show resolved Hide resolved
x/claims/types/msg.go Outdated Show resolved Hide resolved
x/claims/types/params_test.go Outdated Show resolved Hide resolved
x/inflation/handler_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MalteHerrmann MalteHerrmann left a comment

Choose a reason for hiding this comment

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

tACK!

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1125 (4df8d2a) into main (37e6402) will decrease coverage by 0.32%.
The diff coverage is 44.21%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1125      +/-   ##
==========================================
- Coverage   78.09%   77.76%   -0.33%     
==========================================
  Files         133      137       +4     
  Lines        7856     7890      +34     
==========================================
+ Hits         6135     6136       +1     
- Misses       1562     1587      +25     
- Partials      159      167       +8     
Impacted Files Coverage Δ
x/claims/types/msg.go 0.00% <0.00%> (ø)
x/claims/handler.go 9.09% <9.09%> (-10.91%) ⬇️
x/claims/keeper/abci.go 73.84% <25.00%> (-1.75%) ⬇️
x/claims/genesis.go 72.34% <33.33%> (-3.75%) ⬇️
x/claims/types/codec.go 45.45% <45.45%> (ø)
x/claims/keeper/keeper.go 84.61% <50.00%> (-7.98%) ⬇️
x/claims/keeper/migrations.go 71.42% <60.00%> (+71.42%) ⬆️
x/claims/keeper/params.go 64.70% <60.00%> (-35.30%) ⬇️
x/claims/migrations/v3/migrate.go 62.50% <62.50%> (ø)
x/claims/keeper/msg_server.go 66.66% <66.66%> (ø)
... and 6 more

@Vvaradinov Vvaradinov merged commit 4c89552 into main Dec 15, 2022
@Vvaradinov Vvaradinov deleted the Vvaradinov/claims-params-refactor branch December 15, 2022 16:21
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