Skip to content
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

support memo field routing #9877

Open
1 task
turadg opened this issue Aug 12, 2024 · 0 comments
Open
1 task

support memo field routing #9877

turadg opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request needs-design

Comments

@turadg
Copy link
Member

turadg commented Aug 12, 2024

What is the Problem Being Solved?

#9042 had a story with memo field routing. We've reduced scope of that ticket and are deferring memo field routing to this one.

Dependencies

  1. enhancement
    turadg

Description of the Design

  1. User invokes offer to have StakeAtom contract create a localchain account
    • Then user has a localchain Cosmos account
  2. User IBC transfers ATOM (IBC Hub-Agoric) into their Agoric localchain account
    • StakeAtom-held localchain account receives assets
    • Memo field indicates invoking StakeAtom hook
    • ^ depends on the vtransfer PR
  3. StakeAtom creates ICA on Cosmos Hub
  4. StakeAtom triggers IBC send of ATOM to Cosmos Hub ICA
    • MsgTransfer with a memo indicating the Contract for acknowledgement
    • Localchain’s MsgTransfer sends via the transfer App
  5. StakeAtom receives ack it has completed
  6. StakeAtom triggers delegation to a Cosmos Hub validator

Security Considerations

Scaling Considerations

Test Plan

Upgrade Considerations

@turadg turadg added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-design
Projects
None yet
Development

No branches or pull requests

1 participant