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

Eureka port binding #2123

Open
wants to merge 8 commits into
base: feat/ibc_eureka
Choose a base branch
from
Open

Eureka port binding #2123

wants to merge 8 commits into from

Conversation

jawoznia
Copy link
Collaborator

No description provided.

@jawoznia jawoznia marked this pull request as ready for review February 14, 2025 15:09
@jawoznia jawoznia requested review from chipshort and pinosu February 14, 2025 15:09
@jawoznia jawoznia changed the base branch from main to feat/ibc_eureka February 14, 2025 15:16
@chipshort chipshort mentioned this pull request Feb 17, 2025
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.

Good start. I guess the actual port binding will have to wait for #2125

@@ -544,6 +564,16 @@ func (k Keeper) migrate(
}
k.mustStoreContractInfo(ctx, contractAddress, contractInfo)

// Should we bind the port in some special way for Eureka?
Copy link
Collaborator

Choose a reason for hiding this comment

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

My understanding is that we need to call this. And I guess also need to make sure that this is called for all registered ports every time the chain starts? So, we might have to keep track of contract ports in storage unless there already is such a mechanism in ibc-go.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess this would work providing we would got the list of contracts.
Let's discuss it offline.

Copy link
Contributor

Choose a reason for hiding this comment

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

We discovered yesterday, that the port binding is not supported anymore in ibc-go

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there's a difference here between IBC v1 and Eureka. In v1, we don't need to do port binding anymore because ibc-go detects the "wasm" prefix and routes it to us based on that, but I don't know if the same works for Eureka.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it seems that in Eureka we have to use this method: https://github.com/cosmos/ibc-go/blob/3e6d5f597fc498a949011ca1d9e835ef6c163813/modules/core/api/router.go#L24. We have to change our approach a little bit, because so far wasmd added routes in a NewWasmApp method. With Eureka we have to bind a contract address with a new Eureka IBCModule. I started implementation of this module here: #2124

Co-authored-by: Christoph Otter <[email protected]>
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.

3 participants