You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the x/erc20 module’s IBC middleware, callback logic to cover IBC v2 packet
Context: The ibc_callback/middleware logic in the x/erc20 module converts an IBC-denominated token to an ERC20 token for EVM user convenience upon receipt.
The current ibc_callbacks logic only handles packets from IBC v1. Thus, logic for handling IBC v2 Packets must be added.
Additionally, add middleware and routers in the reference example chain’s app.go to match IBC v2. This will serve as a reference for chains needing setup and facilitate E2E test case additions based on the example chain.
Considerations and Conclusion
Evaluation of Callback vs Middleware for x/erc20 Module
Summary
The x/erc20 module currently adopts a middleware-based implementation.
After evaluating the characteristics of both approaches, middleware remains the preferred design under current constraints.
Upgrade the middleware to support IBC v2 while maintaining the current logic and architecture
Update the x/erc20 module’s IBC middleware, callback logic to cover IBC v2 packet
Considerations and Conclusion
Evaluation of Callback vs Middleware for x/erc20 Module
Summary
Callback vs Middleware: Comparison
contractAddr
during the channel open phaseMiddleware Interface Review after IBC v2 Changes
Summary
Interfaces Currently Used in x/erc20
OnSendPacket
OnRecvPacket
OnTimeoutPacket
OnAcknowledgementPacket
These correspond to the standard packet flow hooks and are not affected by the handshake-related changes introduced in IBC v2 Middleware Interfaces
The text was updated successfully, but these errors were encountered: