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

HIP 904 add token associate on claim airdrop #9841

Merged
merged 7 commits into from
Dec 4, 2024

Conversation

edwin-greene
Copy link
Contributor

@edwin-greene edwin-greene commented Nov 27, 2024

Description:

  • Associates a token when a claim airdrop occurs
  • Change balance generation transaction timeout from 5m to 10m
  • Handle scenario where user manually associates token before claiming

Related issue(s):

Fixes #9865

Notes for reviewer:

Tested with claim airdrop transaction on Testnet. With this change, the token airdrop correctly appears in the token_account table after the claim.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
@edwin-greene edwin-greene added bug Type: Something isn't working parser Area: File parsing labels Nov 27, 2024
@edwin-greene edwin-greene self-assigned this Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.25%. Comparing base (3d945d9) to head (5212d90).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../AbstractTokenUpdateAirdropTransactionHandler.java 94.11% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9841      +/-   ##
============================================
- Coverage     92.27%   92.25%   -0.02%     
- Complexity     7771     7778       +7     
============================================
  Files           951      951              
  Lines         32472    32526      +54     
  Branches       4118     4123       +5     
============================================
+ Hits          29962    30008      +46     
- Misses         1546     1550       +4     
- Partials        964      968       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
…ciate

Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
@steven-sheehy steven-sheehy reopened this Dec 3, 2024
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Copy link

sonarqubecloud bot commented Dec 4, 2024

Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy marked this pull request as ready for review December 4, 2024 22:39
@steven-sheehy steven-sheehy requested a review from a team as a code owner December 4, 2024 22:39
Copy link
Contributor Author

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Contributor

@jnels124 jnels124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy merged commit 1e6c881 into main Dec 4, 2024
32 checks passed
@steven-sheehy steven-sheehy deleted the hip904-add-token-associate branch December 4, 2024 22:47
steven-sheehy added a commit that referenced this pull request Dec 4, 2024
* Associates a token when a claim airdrop occurs
* Change balance generation transaction timeout from 5m to 10m
* Handle scenario where user manually associates token before claiming

---------

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Co-authored-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
steven-sheehy added a commit that referenced this pull request Dec 4, 2024
HIP 904 add token associate on claim airdrop (#9841)

* Associates a token when a claim airdrop occurs
* Change balance generation transaction timeout from 5m to 10m
* Handle scenario where user manually associates token before claiming

---------

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Co-authored-by: Edwin Greene <edwin@hashgraph.com>
steven-sheehy added a commit that referenced this pull request Dec 5, 2024
* Associates a token when a claim airdrop occurs
* Change balance generation transaction timeout from 5m to 10m
* Handle scenario where user manually associates token before claiming

---------

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Co-authored-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
steven-sheehy added a commit that referenced this pull request Dec 5, 2024
HIP 904 add token associate on claim airdrop (#9841)

* Associates a token when a claim airdrop occurs
* Change balance generation transaction timeout from 5m to 10m
* Handle scenario where user manually associates token before claiming

---------

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
Co-authored-by: Edwin Greene <edwin@hashgraph.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working parser Area: File parsing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mirrornode fails to track airdrop token balance changes
4 participants