-
Notifications
You must be signed in to change notification settings - Fork 495
feat: Re-map all IBCv2 enabled contracts after state sync #2144
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
Comments
IBC-go team accepted the change request on their side. We're waiting for the update of |
Some internal comments about that: https://confio.slack.com/docs/T02FDPU2DM0/F088ADM30N4 |
I've created issue and a proposal PR for the prefix-based routing in ibc-go:
Waiting for further actions from ibc-go team |
Once the prefix-based routing is implemented in ibc-go, we can call AddRoute only once with a predefined prefix during the app startup. We should not store the router within our keeper nor call AddRoute during contract initialization/migration. |
We need to wait for ibc-go v10.3.0 release. Upon bumping the ibc-go dep, we need to update route registering during wasm startup as well as remove an extra |
In the ibc-go versions v9 and older the
bindPort
method was used to inform the IBC about a new mappingportID <-> Contract Address
. A methodAddRoute
was used to inform IBC module about Wasm Application in order to route all messages with a proper module name prefix towards the app.In IBC v2 the
bindPort
method is removed andAddRoute
is used to map a specific port to a given application. This change is stored in memory and does not become a part of the bc state. In order to set the port mappings to wasm contract, wasmd needs to re-insert every IBCv2 enabled contract usingAddRoute
during the state sync procedure.The text was updated successfully, but these errors were encountered: