Closed mvpoyatt closed 2 months ago
The pull request introduces modifications across multiple contracts to enhance the handling of acknowledgment packets. The primary change involves updating function signatures to return both an AckPacket
and a boolean value skipAck
, allowing for more nuanced control over acknowledgment processing. This adjustment affects the GeneralMiddleware
, Dispatcher
, UniversalChannelHandler
, and various example contracts, ensuring consistency in how acknowledgment behavior is managed throughout the codebase.
File Path | Change Summary |
---|---|
contracts/base/GeneralMiddleware.sol |
Updated function signatures to return (AckPacket, bool skipAck) for packet processing methods. |
contracts/core/Dispatcher.sol |
Modified response decoding in _callIfContract to handle (AckPacket, bool skipAck) . |
contracts/core/UniversalChannelHandler.sol |
Altered method signature to include bool skipAck in acknowledgment handling. |
contracts/examples/Earth.sol |
Updated onRecvUniversalPacket method to return (AckPacket, bool skipAck) . |
contracts/examples/Mars.sol |
Changed onRecvPacket method across multiple derived contracts to return (AckPacket, bool skipAck) . |
bindings/go/earth/Earth.go |
Updated ABI and method signatures to reflect new return type including bool skipAck . |
bindings/go/iuniversalchannelhandler/IUniversalChannelHandler.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/mars/Mars.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/mars/PanickingMars.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/mars/RevertingBytesMars.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/mars/RevertingEmptyMars.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/mars/RevertingStringMars.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/moon/Moon.go |
Updated ABI and method signatures to include bool skipAck . |
bindings/go/universalchannelhandler/UniversalChannelHandler.go |
Updated ABI and method signatures to include bool skipAck . |
test/Dispatcher/Dispatcher.t.sol |
Added test_skip_ack to verify acknowledgment behavior in the Pluto contract. |
GeneralMiddleware
, Dispatcher
, and UniversalChannelHandler
focus on function return types.FeeVault
contract relates to acknowledgment and fee handling changes.bug
🐰 In the meadow where packets flow,
Acknowledgments dance, a new way to show.
WithskipAck
now in tow,
We hop and skip, our logic aglow!
Through contracts bright, we leap and play,
Enhancing the flow, come join the fray! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
skipAck
.Bug Fixes
skipAck
.Tests
Pluto
contract.DummyEvent
for testing purposes.