the-creators-galaxy / hts-distribution-tool

Hedera Token Service Distribution Tool
MIT License
10 stars 0 forks source link

Support for HSC transfer of assets #50

Open 3Nigma opened 2 years ago

3Nigma commented 2 years ago

Issue

There is no easy way for multi-signature Hedera accounts to send assets to contract-associated accounts.

Potential solution

We should add support for a multi-sig Hedera account to utilize this tool to allow sending of assets (tokens) to contract accounts directly via their ContractId

Question

How does this manifest in the user journey?

At a minimum, the user journey should be similar to that of transferring assets to regular accounts. An enhanced flow might also show next to each account it's type: eg. User or Contract

Cooper-Kunz commented 2 years ago

This is interesting and something we can definitely consider! Do you imagine it being a "bulk" functionality as the tool currently supports, or more like #44 where it'd be a single transfer/transaction that needs to be executed?

Lots of alpha here... 👀 but the current intention is for #44's UX to look something like the following -

Screen Shot 2022-07-13 at 12 15 17 PM

Adding an alternative option for defining a smart contract address or otherwise could be easy. Would love your thoughts!

3Nigma commented 2 years ago

This looks very nice! 👏

The way we used the tool up until now (and in the foreseeable future) would be on a one-by-one (non bulk) basis so even the above screen features would suffice.

As for this ticket, maybe there could be something underneath the "Receiver" input field or, better yet, in the same box like "Quantity" has the "Total" info on its left side, an icon/string signaling if the inserted account is User / Contract . The check should be done following the expiration of a de-bounce period or having the "Receiver" field lose focus.

I hope my description is clear enough. I think that would play along really nice!

3Nigma commented 2 years ago

Also, is the screen-shot version public somewhere? Would love to give it a spin!

Can't seem to find it in the branches ( or I'm short sighted :-D )

Cooper-Kunz commented 2 years ago

Thank you for the context on your usage! Quite helpful. Currently we are in the final phase of designs. Then we intend to circulate for feedback (would love to get on a call w/ you next week). Then we are going to kick off "v2" development