Hello!!
##High level journey
We want to be able to let users:
- Create a Friend / Social group - ideally within petra. Or connected to Petra (maybe using wallet connect?)
- Chat within the social group - this part does not have to be on-chain necessarily
- Disburse Hong-Baos
- Snatch Hong Baos
- Collect the APT in the Hong Baos in Owner Account
- John, Robin, Mary, Fred are friends in real life
- In Wallet, they are able to create a group based on their user addresses, and named their group “Lil Degens”. UX -
- Press create Group
- Name Group
- Add members to group based on wallet address [can also add by ANS]
- [optional] can give self nickname in the group, easier for identification
- Mock:
- can also join existing groups by direct link
- Alt flow:
- Someone makes a new group. Behind the scenes this makes essentially a new soulbound NFT collection.
- As part of this, they mint tokens that they offer to everyone they invited.
- An invited user opens the web UI, connects their wallet, and sees somewhere in the UI that they’ve been invited to a chat.
- Accepting the invite behind the scenes accepts the NFT.
- Now they’re in the group.
- [Optional / Further development] Groups can be formed on the basis of NFT ownership
- Publicly discoverable groups, with persons being able to ask to join
- Auto-accept based on NFT ownership [i.e. Aptos Monkeys groups, all holders can ask-join, and will get automatically accepted]
- But also a version where the admin can manually approve joiners
- Chat and Hong Bao functionality will be the same once they are in the group
- In the group, there is chat functionality, they are able to send each other messages. Just text for now to keep things simple
- They are also able to send each other group Hong Baos. Flow -
- Anyone in group can share a hongbao. They click Send Hong Bao.
- Set Total APT amount
- Total Hong Baos
- Expiry time of the set. I.e. time in seconds until when the contract would auto-expire
- Any unclaimed hong baos (APT) would go back to the original sender account
- Optional - allow sender to enable or disable repeated snatches. I.e. the same person / owner address can snatch more than 1 hong bao within the set.
- Probably P0 is that this is auto-disable, so each person can only grab one hong bao
- If there are more hong baos than persons
- The smart contract would auto-randomize the amount of APT within each Hong Bao
- For example, total 10 APT, across 5 hong baos. Some of the hong baos would have 1 APT, some might have 0.2 APT.
- For the other members, they would see an image of a hong bao appear.
- [Optional - notification to all group members when new instance of chat or hong bao appears]
- They have to snatch the hong bao by clicking on the image.
- [Optional] The location of the Hong bao might be randomized, not just in the middle of the screen to increase the difficulty of the snatching
- Once they snatch the closed hongbao, there would be an image of an Open Hong Bao with the APT amount they are receiving. This would fade after 2 seconds. If the user checks their wallet balance, they would see the APT increase by a corresponding amount
- Discord owners (like NFT collections) can organize gamified giveaways for their holders like this, using a mass import function)