-
Notifications
You must be signed in to change notification settings - Fork 438
ICS20v2: use Denom
and Trace
types
#1115
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
ICS20v2: use Denom
and Trace
types
#1115
Conversation
Denom
and Trace
typesDenom
and Trace
types
@@ -388,10 +413,9 @@ function onRecvPacket(packet: Packet) { | |||
|
|||
if transferVersion == "ics20-1" { | |||
FungibleTokenPacketData data = UnmarshalJSON(packet.data) | |||
trace, denom = parseICS20V1Denom(data.denom) | |||
denom = parseICS20V1Denom(data.denom) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THis is a bit confusing. Perhaps we can have better naming or a code comment on what each denom here represents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment above to explain. Let me know if that's enough.
…-trace-typed-structures-to-ics20-v2-packet-definition
…-trace-typed-structures-to-ics20-v2-packet-definition # Conflicts: # spec/app/ics-020-fungible-token-transfer/README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there's one incorrect source check still. Other than that added comments and slight improvements
Co-authored-by: Aditya <[email protected]>
* add recv logic and revert logic on error ack/timeout * multiple denoms but still support forwarding * lint * Apply suggestions from code review Co-authored-by: Carlos Rodriguez <[email protected]> * address reviews * Apply suggestions from code review Co-authored-by: Carlos Rodriguez <[email protected]> * small fixes * generate forwarding address if it doesn't exist * blank memo for now * only do revertInFlightChanges or refund packets on error ack, not both * make same changes for timeout * forwarding info struct, individual memos * fail early since forwarding must be atomic * address some small review comments * only set memo on last hop * address Stefano's and my review comments * missing bracket * destinationChannel -> destChannel * ICS20v2 path forwarding: simplify revert in-flight changes (#1110) * simplify revert in-flight changes * typo * nit: rename ForwardingInfo to Forwarding (#1112) * ICS20v2: use protobuf encoding for packet data of v2 (#1118) * ics20: use protobuf encoding for packet data of v2 * Update README.md * delete previously forwarded packet (#1119) * Update spec/app/ics-020-fungible-token-transfer/README.md Co-authored-by: Damian Nolan <[email protected]> * Apply suggestions from code review Co-authored-by: Cian Hatton <[email protected]> Co-authored-by: Carlos Rodriguez <[email protected]> * ICS20v2: use `Denom` and `Trace` types (#1115) * nit: rename ForwardingInfo to Forwarding * use Denom and Trace types * Apply suggestions from code review Co-authored-by: Aditya <[email protected]> * comments --------- Co-authored-by: Aditya <[email protected]> * review comment --------- Co-authored-by: Carlos Rodriguez <[email protected]> Co-authored-by: Damian Nolan <[email protected]> Co-authored-by: Cian Hatton <[email protected]>
closes: #1106