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: Bump ibc-go version to 9.0.2 #2095

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kulikthebird
Copy link
Contributor

No description provided.

@kulikthebird kulikthebird marked this pull request as ready for review January 17, 2025 08:12
@kulikthebird kulikthebird requested review from pinosu and chipshort and removed request for pinosu January 17, 2025 08:12
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 22 lines in your changes missing coverage. Please review.

Project coverage is 43.02%. Comparing base (939a837) to head (63a9041).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
tests/ibctesting/endpoint.go 0.00% 13 Missing ⚠️
tests/ibctesting/chain.go 0.00% 7 Missing ⚠️
tests/ibctesting/event_utils.go 0.00% 1 Missing ⚠️
x/wasm/ibc.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2095      +/-   ##
==========================================
+ Coverage   42.99%   43.02%   +0.03%     
==========================================
  Files          85       85              
  Lines       11601    11611      +10     
==========================================
+ Hits         4988     4996       +8     
- Misses       6166     6169       +3     
+ Partials      447      446       -1     
Files with missing lines Coverage Δ
app/ante.go 63.63% <ø> (ø)
app/app.go 86.12% <100.00%> (+0.14%) ⬆️
app/test_support.go 0.00% <ø> (ø)
tests/ibctesting/coordinator.go 0.00% <ø> (ø)
tests/ibctesting/events.go 0.00% <ø> (ø)
tests/ibctesting/path.go 0.00% <ø> (ø)
tests/ibctesting/wasm.go 0.00% <ø> (ø)
x/wasm/keeper/handler_plugin.go 72.34% <ø> (ø)
x/wasm/keeper/handler_plugin_encoders.go 79.41% <ø> (ø)
x/wasm/keeper/ibc.go 77.77% <ø> (ø)
... and 9 more

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

Nice work!

tmLightClientModule := ibctm.NewLightClientModule(appCodec, storeProvider)
clientKeeper.AddRoute(ibctm.ModuleName, &tmLightClientModule)

smLightClientModule := solomachine.NewLightClientModule(appCodec, storeProvider)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really want the solo machine here? The IBC integration docs only add the 07-tendermint light client

@@ -115,7 +114,6 @@ func NewRootCmd() *cobra.Command {
// add keyring to autocli opts
autoCliOpts := tempApp.AutoCliOpts()
initClientCtx, _ = config.ReadFromClientConfig(initClientCtx)
autoCliOpts.Keyring, _ = keyring.NewAutoCLIKeyring(initClientCtx.Keyring)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this related to the ibc-go update?

@@ -43,12 +43,12 @@ func TestIBCCallbacks(t *testing.T) {
path := wasmibctesting.NewPath(chainA, chainB)
path.EndpointA.ChannelConfig = &ibctesting.ChannelConfig{
PortID: ibctransfertypes.PortID,
Version: string(marshaler.MustMarshalJSON(&ibcfee.Metadata{FeeVersion: ibcfee.Version, AppVersion: ibctransfertypes.Version})),
Version: string(marshaler.MustMarshalJSON(&ibcfee.Metadata{FeeVersion: ibcfee.Version, AppVersion: ibctransfertypes.V2})),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, nice. So, v9 enables transferv2 by default now?

@@ -299,6 +300,7 @@ func (i IBCHandler) OnRecvPacket(
// OnAcknowledgementPacket implements the IBCModule interface
func (i IBCHandler) OnAcknowledgementPacket(
ctx sdk.Context,
channelVersion string,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to expose this to the contract? (Maybe not in here, but in the long term?)

Comment on lines +431 to +437
func (chain *TestChain) GetLatestHeight(clientState exported.ClientState) clienttypes.Height {
tmClientState, ok := clientState.(*ibctm.ClientState)
if !ok {
panic("invalid client state type")
}
return tmClientState.LatestHeight
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this a method on the TestChain type? It doesn't use the chain at all. Couldn't this be a freestanding function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants