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

Bump IBC version to v3 & add ICA module #402

Merged
merged 17 commits into from
Aug 25, 2022
Merged

Bump IBC version to v3 & add ICA module #402

merged 17 commits into from
Aug 25, 2022

Conversation

yoongbok-lee
Copy link
Collaborator

Closes: #XXX
Related: #XXX

Description


For contributor use:

  • 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

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]"

@yoongbok-lee yoongbok-lee marked this pull request as ready for review July 11, 2022 09:50
Base automatically changed from upgrade_sdk to master July 12, 2022 02:19
@xiumingdou
Copy link
Contributor

Approved on condition that the conflicts are resolved

xiumingdou
xiumingdou previously approved these changes Jul 20, 2022
@yoongbok-lee yoongbok-lee requested a review from kevin-yuhh July 21, 2022 09:39
@codecov
Copy link

codecov bot commented Jul 21, 2022

Codecov Report

Merging #402 (f12a3cf) into master (f104aef) will decrease coverage by 0.02%.
The diff coverage is 48.52%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #402      +/-   ##
==========================================
- Coverage   41.26%   41.24%   -0.03%     
==========================================
  Files         123      123              
  Lines       11256    11318      +62     
==========================================
+ Hits         4645     4668      +23     
- Misses       6157     6196      +39     
  Partials      454      454              
Impacted Files Coverage Δ
app/upgrade_handler.go 6.45% <0.00%> (-8.37%) ⬇️
app/app.go 86.89% <100.00%> (+0.35%) ⬆️
x/shield/keeper/invariants.go 78.16% <0.00%> (-0.25%) ⬇️
x/shield/keeper/staking_purchase.go 14.64% <0.00%> (-0.10%) ⬇️
x/shield/keeper/purchase.go 56.80% <0.00%> (+0.64%) ⬆️
x/shield/keeper/pool.go 49.36% <0.00%> (+0.68%) ⬆️

@yoongbok-lee
Copy link
Collaborator Author

looking into the simulations failure atm

@yoongbok-lee yoongbok-lee self-assigned this Jul 28, 2022
@yoongbok-lee yoongbok-lee added feature new features design & improvement dependency dependency updates & fixes labels Jul 28, 2022
@yoongbok-lee yoongbok-lee added this to the v2.5.0 milestone Jul 28, 2022
@yoongbok-lee yoongbok-lee requested a review from haozhan9 July 28, 2022 12:15
@yoongbok-lee yoongbok-lee requested a review from a team as a code owner August 10, 2022 03:45
@yoongbok-lee yoongbok-lee marked this pull request as draft August 16, 2022 03:21
@xiumingdou xiumingdou self-requested a review August 16, 2022 06:05
@skyargos skyargos requested a review from haozhan9 August 16, 2022 06:13
@skyargos skyargos marked this pull request as ready for review August 16, 2022 14:01
Copy link
Contributor

@skyargos skyargos left a comment

Choose a reason for hiding this comment

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

Need to add a controller submodule for account registration and message sending?

@@ -208,6 +214,7 @@ type ShentuApp struct {
AuthKeeper authkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
IBCKeeper *ibckeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
Copy link
Contributor

Choose a reason for hiding this comment

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

ICAControllerKeeper icacontrollerkeeper.Keeper

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no I think that's for the controller chain

@skyargos
Copy link
Contributor

ibc-go v3.1.0 api-breaking

  • (transfer) #675 Transfer NewKeeper now takes in an ICS4Wrapper. The ICS4Wrapper may be the IBC Channel Keeper when ICS20 is not used in a middleware stack. The ICS4Wrapper is required for applications wishing to connect middleware to ICS20.

I will add this.

@skyargos skyargos self-requested a review August 17, 2022 08:11
@yoongbok-lee
Copy link
Collaborator Author

ibc-go v3.1.0 api-breaking

  • (transfer) #675 Transfer NewKeeper now takes in an ICS4Wrapper. The ICS4Wrapper may be the IBC Channel Keeper when ICS20 is not used in a middleware stack. The ICS4Wrapper is required for applications wishing to connect middleware to ICS20.

I will add this.

Isn't that changelog for v3.1.0? we're upgrading to v3.0.0

@xiumingdou xiumingdou closed this Aug 18, 2022
@xiumingdou
Copy link
Contributor

The go.mod shows 3.1.0

@skyargos skyargos reopened this Aug 18, 2022
@yoongbok-lee yoongbok-lee linked an issue Aug 18, 2022 that may be closed by this pull request
ModuleBasics in the simapp of cosmosSDK does not contain ica, so use ibc-go instead
@skyargos
Copy link
Contributor

Modification from 'github.com/cosmos/cosmos-sdk/simapp' to 'github.com/cosmos/ibc-go/v3/testing/simapp':

  1. ModuleBasics in the simapp of cosmosSDK does not contain ica.
  2. The 27-interchain-accounts module of ibc-go does not implement the AppModuleSimulation interface.
  3. The simulation initialization cannot be completed in AppStateRandomizedFn of cosmosSDK, so use ibc-go instead. genesisState simManager

Copy link
Contributor

@skyargos skyargos left a comment

Choose a reason for hiding this comment

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

LGTM

@yoongbok-lee
Copy link
Collaborator Author

nice catch! didn't realize they implemented simapp for IBC stuff

@yoongbok-lee
Copy link
Collaborator Author

LGTM

@yoongbok-lee yoongbok-lee merged commit 4d19eda into master Aug 25, 2022
@yoongbok-lee yoongbok-lee deleted the ica branch August 25, 2022 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency dependency updates & fixes feature new features design & improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add Interchain Accounts to Shentu
4 participants