This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] Refactor to use packet metadata instead of overloaded receiver (#36
) * Refactor to use packet metadata instead of overloaded receiver * Bring in PacketMetadata wrapper type. Unwrap next metadata for multihop. Fix existing tests. Add multihop test * Better validation of port and channel. Use string for next memo * Pass sequence in refund transfers for multi-hop refunds * Move denom unwrapping into function and use for refund * Flip order of src/dst for ack/timeout refunds * Don't unwrap tokens for timeout/ack case * Break out inFlightPacket fetching from RefundForwardedPacket for clarity * Add debug logs * Add RefundDenom to InFlightPacket * Add more debug logs around denom. Use refund denom for ack/timeout refunds * Use non-hashed denoms on timeout/ack. If this works, we can remove RefundDenom * Parse denoms at every step * For timeout/ack, try to resolve IBC denom * Fix flipped OnRecvPacket/OnTimeout denom handling * Add more debug logs * Don't remove from store on successful ack for now * Remove RefundDenom * Don't write acknowledgements until forwarded packet returns ack. Proxy acks back to source chain. * Populate inFlightPacket * do not call upstream OnAcknowledgementPacket or OnTimeoutPacket when handling a forwarded packet response to stop refund processing. * Fix timeout retry * Update to v3.4.0 stable ibc-go * Burn escrowed funds or transfer to other escrow account on refund.
- Loading branch information
Showing
15 changed files
with
1,171 additions
and
1,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.