-
Notifications
You must be signed in to change notification settings - Fork 643
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
Implement 29-fee
channel upgrade callbacks
#1900
Comments
Needs #4125 for |
I think we got confused implementing this issue since it was written in 2022 and didn't account for the latest designs. The fee enablement change should only occur upon a successful completion of the upgrade handshake. In that case onChanUpgradeInit validates the upgrade fields, optionally returns modified version I would recommend opening a pr for each to readjust |
I agree, that given the new design structure (upgrade fields are not taking effect until With the current API for callbacks I don't think we can actually make the above changes work (we're not provided the version): OnChanUpgradeOpen(ctx sdk.Context, portID, channelID string) We get the OnChanUpgradeInit(ctx sdk.Context, portID, channelID string, upgrade channeltypes.UpgradeFields) (string, error)
OnChanUpgradeTry(ctx sdk.Context, portID, channelID string, upgrade channeltypes.UpgradeFields) (string, error)
// ...
OnChanUpgradeOpen(ctx sdk.Context, portID, channelID string, upgrade channeltypes.UpgradeFields) Any thoughts? |
With our current design of |
|
Very true! If packets still need to be processed while in |
Summary
With the addition #1831, the
04-channel
upgrade callbacks will be added to theIBCModule
interface.This enforces applications to implement the required callbacks.
The
29-fee
module must handle the upgrade callbacks appropriately and follow similar logic to the channel opening handshake:version
string totypes.Metadata
.FeeVersion
must be compatible with the app version:FeeVersion == types.Version
OnChanUpgradeInit
andOnChanUpgradeTry
callbacks should handle the underlying app version and set it in the JSON encodedtypes.Metadata
string returned.For Admin Use
The text was updated successfully, but these errors were encountered: