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

feat: Add GetAppVersion to ICS4Wrapper #1022

Merged
merged 18 commits into from
Apr 20, 2022
Merged

Conversation

colin-axner
Copy link
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
CHANGELOG.md Outdated Show resolved Hide resolved
@colin-axner
Copy link
Contributor Author

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

docs/ibc/middleware/develop.md Outdated Show resolved Hide resolved
docs/ibc/middleware/develop.md Outdated Show resolved Hide resolved
@colin-axner colin-axner marked this pull request as draft March 3, 2022 16:30
@colin-axner
Copy link
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
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

codecov-commenter commented Apr 14, 2022

Codecov Report

Merging #1022 (11b9cb0) into main (acb0e9f) will increase coverage by 0.00%.
The diff coverage is 83.33%.

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     
Impacted Files Coverage Δ
...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%) ⬇️
...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%) ⬆️

Copy link
Member

@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