Skip to content

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

Conversation

crodriguezvega
Copy link
Contributor

closes: #1106

@crodriguezvega crodriguezvega changed the base branch from aditya/forwarding to carlos/rename-forwarding_info June 14, 2024 08:25
@crodriguezvega crodriguezvega changed the title ICS20: use Denom and Trace types ICS20v2: use Denom and Trace types Jun 18, 2024
@@ -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)
Copy link
Member

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

Copy link
Contributor Author

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.

Base automatically changed from carlos/rename-forwarding_info to aditya/forwarding June 19, 2024 18:36
…-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
Copy link
Member

@AdityaSripal AdityaSripal left a 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

@crodriguezvega crodriguezvega merged commit c667418 into aditya/forwarding Jun 24, 2024
2 checks passed
@crodriguezvega crodriguezvega deleted the carlos/1106-ics20-add-denom-and-trace-typed-structures-to-ics20-v2-packet-definition branch June 24, 2024 12:57
AdityaSripal added a commit that referenced this pull request Jun 24, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants