Skip to content

feat: Add GetAppVersion to ICS4Wrapper#1022

Merged
colin-axner merged 18 commits intomainfrom
colin/1002-mw-version-support
Apr 20, 2022
Merged

feat: Add GetAppVersion to ICS4Wrapper#1022
colin-axner merged 18 commits intomainfrom
colin/1002-mw-version-support

Conversation

@colin-axner
Copy link
Copy Markdown
Contributor

@colin-axner colin-axner commented Feb 28, 2022

Description

closes: #1002


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Add a function to 04-channel keeper which can be used in the ICS4Wrapper interface for obtaining the unwrapped channel verison
@colin-axner
Copy link
Copy Markdown
Contributor Author

I actually don't think I need this for #821 any longer, but it still seems useful

@colin-axner colin-axner marked this pull request as draft March 3, 2022 16:30
@colin-axner
Copy link
Copy Markdown
Contributor Author

Naming still needs to be decided. At the very least I think I can rename to GetUnwrappedVersion.

Ideally we have something that conveys the version returned should be the version this layer of the stack was given

@colin-axner colin-axner changed the title feat: Add GetUnwrappedChannelVersion to ICS4Wrapper feat: Add GetAppVersion to ICS4Wrapper Apr 14, 2022
@colin-axner colin-axner marked this pull request as ready for review April 14, 2022 12:14
Copy link
Copy Markdown
Contributor

@seantking seantking 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 a few mega nits

Co-authored-by: Sean King <seantking@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 14, 2022

Codecov Report

❌ Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.31%. Comparing base (acb0e9f) to head (11b9cb0).
⚠️ Report is 2646 commits behind head on main.

Files with missing lines Patch % Lines
...27-interchain-accounts/controller/keeper/keeper.go 0.00% 2 Missing ⚠️
modules/apps/29-fee/keeper/relay.go 83.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1022   +/-   ##
=======================================
  Coverage   80.30%   80.31%           
=======================================
  Files         166      166           
  Lines       11980    12004   +24     
=======================================
+ Hits         9621     9641   +20     
- Misses       1905     1908    +3     
- Partials      454      455    +1     
Files with missing lines Coverage Δ
...ps/27-interchain-accounts/controller/ibc_module.go 93.75% <100.00%> (+0.27%) ⬆️
modules/apps/29-fee/ibc_module.go 97.87% <100.00%> (+0.03%) ⬆️
modules/core/04-channel/keeper/keeper.go 84.75% <100.00%> (+0.34%) ⬆️
...27-interchain-accounts/controller/keeper/keeper.go 94.78% <0.00%> (-1.68%) ⬇️
modules/apps/29-fee/keeper/relay.go 88.23% <83.33%> (-2.68%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

ack latest! super clean, nice work!

@colin-axner colin-axner merged commit 86638c2 into main Apr 20, 2022
@colin-axner colin-axner deleted the colin/1002-mw-version-support branch April 20, 2022 10:04
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.

Middleware doesn't allow for IBC app version usage after handshake completion

6 participants