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

Add HIP-904: Token Airdrops Example #2469

Closed
SimiHunjan opened this issue Aug 20, 2024 · 0 comments · Fixed by #2492
Closed

Add HIP-904: Token Airdrops Example #2469

SimiHunjan opened this issue Aug 20, 2024 · 0 comments · Fixed by #2492
Assignees
Labels
enhancement New feature or request

Comments

@SimiHunjan
Copy link
Contributor

Problem

Example:
Create four accounts
Account 1 has unlimited auto associations
Account 2 has one auto association
Account 3 has no auto associations
Account 4 is the treasury account for the tokens about to be created
Create a new fungible token
Create a new NFT
Mint 3 of the NFTs
Associate Account 2 with the fungible token
Airdrop the fungible token to all three accounts
Get the transaction record and see one pending airdrop (for Account 3)
Query to verify Account 1 and Account 2 received the airdrops and Account 3 did not
Claim the airdrop for Account 3
Query to verify Account 3 received the airdrop
Airdrop the NFTs to all three accounts
Get the transaction record and verify two pending airdrops (for Account 2 & 3)
Query to verify Account 1 received the airdrop and Account 2 and Account 3 did not
Claim the airdrop for Account 2
Query to verify Account 2 received the airdrop
Cancel the airdrop for Account 3
Query to verify Account 3 did not receive the airdrop
Reject the NFT for Account 2
Query to verify Account 2 no longer has the NFT
Query to verify the NFT was returned to Account 4
Reject the fungible tokens for Account 3
Query to verify Account 3 no longer has the fungible tokens
Query to verify Account 4 received the rejected fungible tokens

Solution

Add support for each feature according to the Services release plan for this HIP.

Alternatives

No response

@SimiHunjan SimiHunjan added the enhancement New feature or request label Aug 20, 2024
@ivaylonikolov7 ivaylonikolov7 self-assigned this Sep 12, 2024
@ivaylonikolov7 ivaylonikolov7 linked a pull request Sep 13, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants