hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
265 stars 119 forks source link

feat: Implement pureChecks and preHandle validation logic for TokenCancelAirdropHandler #14091

Open MrValioBg opened 3 days ago

MrValioBg commented 3 days ago

Description: Implement pureChecks and preHandle validation logic for TokenCancelAirdropHandler. Additionally add unit tests to verify the logic.

pureChecks: We have implemented all possible checks, conducted without using external sources and relying solely on the context provided with the TokenCancelAirdropTransactionBody.

preHandle: We validate all non-payer keys, in this case, the key of every senderId specified in the List of PendingAirdrops, and require them to sign the transaction.

Related issue(s):

Fixes #14027

Notes for reviewer:

Checklist

github-actions[bot] commented 3 days ago

Node: HAPI Test (Restart) Results

3 tests   3 :white_check_mark:  6m 26s :stopwatch: 3 suites  0 :zzz: 3 files    0 :x:

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Token) Results

 20 files   20 suites   6m 4s :stopwatch: 266 tests 264 :white_check_mark: 0 :zzz: 2 :x: 341 runs  339 :white_check_mark: 0 :zzz: 2 :x:

For more details on these failures, see this check.

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Node Death Reconnect) Results

3 tests   3 :white_check_mark:  6m 12s :stopwatch: 3 suites  0 :zzz: 3 files    0 :x:

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Crypto) Results

 25 files   25 suites   12m 50s :stopwatch: 376 tests 375 :white_check_mark: 0 :zzz: 1 :x: 384 runs  383 :white_check_mark: 0 :zzz: 1 :x:

For more details on these failures, see this check.

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Time Consuming) Results

19 tests   19 :white_check_mark:  23m 23s :stopwatch:  4 suites   0 :zzz:  4 files     0 :x:

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Misc) Results

 51 files   51 suites   21m 12s :stopwatch: 357 tests 357 :white_check_mark: 0 :zzz: 0 :x: 375 runs  375 :white_check_mark: 0 :zzz: 0 :x:

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: HAPI Test (Smart Contract) Results

 73 files   73 suites   28m 9s :stopwatch: 623 tests 617 :white_check_mark: 0 :zzz: 6 :x: 677 runs  671 :white_check_mark: 0 :zzz: 6 :x:

For more details on these failures, see this check.

Results for commit df623533.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 3 days ago

Node: Unit Test Results

  1 549 files    1 549 suites   2h 41m 55s :stopwatch: 116 657 tests 116 596 :white_check_mark: 59 :zzz: 2 :x: 124 984 runs  124 923 :white_check_mark: 59 :zzz: 2 :x:

For more details on these failures, see this check.

Results for commit df623533.

:recycle: This comment has been updated with latest results.