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

refactor: interchainstaking keeper #341

Merged
merged 11 commits into from
Mar 21, 2023
Merged

refactor: interchainstaking keeper #341

merged 11 commits into from
Mar 21, 2023

Conversation

aljo242
Copy link

@aljo242 aljo242 commented Mar 10, 2023

1. Summary

Cleanup work done while working on interchainstaking simulation.

2.Type of change

  • refactor

3. Implementation details

  • update function signatures to be clearer and consistent
  • factor out some TM state checking logic into another function
  • update variable names to be clearer
  • add more comments
  • wrap errors
  • format
  • add context to logging

@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2023

Codecov Report

Merging #341 (d3031a7) into main (8c206d9) will decrease coverage by 0.07%.
The diff coverage is 48.74%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #341      +/-   ##
==========================================
- Coverage   53.10%   53.04%   -0.07%     
==========================================
  Files         163      163              
  Lines       12054    12121      +67     
==========================================
+ Hits         6401     6429      +28     
- Misses       5200     5239      +39     
  Partials      453      453              
Flag Coverage Δ
unittests 53.04% <48.74%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
x/interchainstaking/keeper/abci.go 42.22% <0.00%> (ø)
x/interchainstaking/types/ibc_packet.go 100.00% <ø> (ø)
x/interchainstaking/keeper/callbacks.go 33.14% <3.03%> (-0.57%) ⬇️
x/interchainstaking/keeper/receipt.go 24.66% <3.92%> (-1.28%) ⬇️
x/interchainstaking/keeper/ibc_packet_handlers.go 31.83% <25.00%> (ø)
x/interchainstaking/keeper/msg_server.go 52.68% <57.14%> (-1.48%) ⬇️
x/interchainstaking/keeper/intent.go 73.09% <64.17%> (+1.58%) ⬆️
x/interchainstaking/keeper/hooks.go 66.15% <65.67%> (-4.31%) ⬇️
x/interchainstaking/keeper/redemptions.go 82.88% <87.17%> (-0.28%) ⬇️
x/airdrop/keeper/claim_handler.go 59.31% <100.00%> (ø)
... and 4 more

@aljo242 aljo242 changed the title refactor: interchainstaking keeper part 2 refactor: interchainstaking keeper Mar 10, 2023
Copy link
Contributor

@joe-bowman joe-bowman left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@ajansari95 ajansari95 left a comment

Choose a reason for hiding this comment

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

LGTM (checks)

@joe-bowman joe-bowman merged commit f7ff1f9 into main Mar 21, 2023
@joe-bowman joe-bowman deleted the refactor/ics branch March 21, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants