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

test: added initial draft coverage for Token Airdrop (HIP-904) #1011

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

victor-yanev
Copy link
Contributor

@victor-yanev victor-yanev commented Nov 12, 2024

Description:
This PR adds initial draft coverage for Token Airdrop (HIP-904)

#1011

Notes for reviewer:

Checklist

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

@victor-yanev victor-yanev added enhancement New feature or request P1 labels Nov 12, 2024
@victor-yanev victor-yanev self-assigned this Nov 12, 2024
Copy link

github-actions bot commented Nov 12, 2024

Test Results

 16 files  ±0   84 suites  +1   11m 14s ⏱️ -49s
292 tests  - 2  280 ✅  - 6  6 💤 ±0  6 ❌ +4 
312 runs  +9  299 ✅ +5  7 💤 ±0  6 ❌ +4 

For more details on these failures, see this check.

Results for commit 1556bbc. ± Comparison against base commit a0c4b7d.

This pull request removes 12 and adds 10 tests. Note that renamed tests count towards both.
should fail for updateFungibleTokenCustomFees when token is not associated to fee collector ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail for updateFungibleTokenCustomFees when token is not associated to fee collector
should fail for updateNonFungibleTokenCustomFees when token is not associated to fee collector ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail for updateNonFungibleTokenCustomFees when token is not associated to fee collector
should fail when fee has negative values for non fungible token ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when fee has negative values for non fungible token
should fail when fee has negative values ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when fee has negative values
should fail when fractional fee has denominator zero ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when fractional fee has denominator zero
should fail when the provided fee collector is invalid for NFT ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when the provided fee collector is invalid for NFT
should fail when the provided fee collector is invalid ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when the provided fee collector is invalid
should fail when the provided token id is invalid for NFT ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when the provided token id is invalid for NFT
should fail when the provided token id is invalid ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when the provided token id is invalid
should fail when trying to update fees of non fungible token with no fee schedule key ‑ TokenManagmentContract Test Suite Update fees Update fees negative cases should fail when trying to update fees of non fungible token with no fee schedule key
…
"before each" hook for "should fail when trying to update fees of non fungible token with no fee schedule key" ‑ TokenManagmentContract Test Suite Update fees "before each" hook for "should fail when trying to update fees of non fungible token with no fee schedule key"
should be able to airdrop any token in its balance based on token address ‑ HRC904Contract Test Suite should be able to airdrop any token in its balance based on token address
should be able to associate receiver with a token ‑ HRC904Contract Test Suite should be able to associate receiver with a token
should be able to cancel a token it airdropped ‑ HRC904Contract Test Suite should be able to cancel a token it airdropped
should be able to claim any token airdropped to it based on token address ‑ HRC904Contract Test Suite should be able to claim any token airdropped to it based on token address
should be able to create an HTS fungible token ‑ HRC904Contract Test Suite should be able to create an HTS fungible token
should be able to revoke any token in its balance ‑ HRC904Contract Test Suite should be able to revoke any token in its balance
should be able to set the auto associate setting back to false ‑ HRC904Contract Test Suite should be able to set the auto associate setting back to false
should be able to set the auto associate setting to true ‑ HRC904Contract Test Suite should be able to set the auto associate setting to true
should revert for tokenAirdrop to a smart contract ‑ HRC904Contract Test Suite should revert for tokenAirdrop to a smart contract

♻️ This comment has been updated with latest results.

@quiet-node quiet-node added this to the 0.11.0 milestone Nov 13, 2024
@quiet-node quiet-node changed the title test: token airdrops test: added initial draft coverage for Token Airdrop (HIP-904) Nov 13, 2024
victor-yanev and others added 4 commits November 13, 2024 14:45
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
@quiet-node quiet-node marked this pull request as draft November 13, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
Status: Blocked
Development

Successfully merging this pull request may close these issues.

2 participants