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-646/657/765: Implement token metadata acceptance tests #8166

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

jascks
Copy link
Member

@jascks jascks commented Apr 23, 2024

Description:

Acceptance tests and token/mirror client updates to invoke the new HAPI and MAPI functionality recently implemented. Test fungible and non-fungible metadata capabilities as well as that "dynamic" NFTs.

Related issue(s):

Fixes #7765

Notes for reviewer:

This PR is still relying on a beta version of com.hedera.hashgraph:sdk (2.32.0-beta.1). Keeping an eye out for a GA version of 2.32.x. Cannot really merge this PR until that becomes available and things a retested.

Checklist

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

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.30%. Comparing base (13b6840) to head (f9bc648).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8166   +/-   ##
=========================================
  Coverage     92.30%   92.30%           
  Complexity     7290     7290           
=========================================
  Files           899      899           
  Lines         29363    29364    +1     
  Branches       3583     3583           
=========================================
+ Hits          27104    27105    +1     
  Misses         1439     1439           
  Partials        820      820           

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

@jascks jascks self-assigned this Apr 24, 2024
@jascks jascks added enhancement Type: New feature test Test infrastructure, automated tests required, etc labels Apr 24, 2024
…eviewnet.

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
…given statement management added last commit.

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
private final TokenClient tokenClient;
private final AccountClient accountClient;
private final MirrorNodeClient mirrorClient;

private final Map<TokenId, List<Long>> tokenSerialNumbers = new HashMap<>();
private final Map<TokenId, List<IndividualNftInfo>> tokenNftInfoMap = new HashMap<>();
Copy link
Member Author

Choose a reason for hiding this comment

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

State per NFT is now serial number and metadata last set.

Copy link
Collaborator

Choose a reason for hiding this comment

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

should name the class just NftInfo

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
@jascks jascks marked this pull request as ready for review April 26, 2024 16:34
@jascks jascks requested a review from a team April 26, 2024 16:35
@jascks jascks mentioned this pull request Apr 26, 2024
2 tasks
private final TokenClient tokenClient;
private final AccountClient accountClient;
private final MirrorNodeClient mirrorClient;

private final Map<TokenId, List<Long>> tokenSerialNumbers = new HashMap<>();
private final Map<TokenId, List<IndividualNftInfo>> tokenNftInfoMap = new HashMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

should name the class just NftInfo

@xin-hedera xin-hedera added this to the 0.104.0 milestone Apr 26, 2024
Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
…ater update using ED25519.

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
xin-hedera
xin-hedera previously approved these changes Apr 29, 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 modified the milestones: 0.104.0, 0.105.0 May 3, 2024
…cceptance-tests. Resolve NFT allowance conflicts.

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
@@ -2,14 +2,14 @@ name: "Gradle"
on:
pull_request:
branches:
- 'main'
- 'release/**'
- "main"
Copy link
Member Author

Choose a reason for hiding this comment

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

No changes made by me in workflows. Spotless...

@@ -272,8 +272,8 @@ Following are the prerequisites and steps for migrating V1 data to V2.
[migration.config](/hedera-mirror-importer/src/main/resources/db/scripts/v2/migration.config).
4. Get the correct version of [flyway](https://flywaydb.org/documentation/usage/commandline/) based on your OS and
update it in the `FLYWAY_URL` field in the `migration.config` file. The default is set to the linux version.
5. Stop the [Importer](/docs/importer/README.md) process.
6. Run the [migration.sh](/hedera-mirror-importer/src/main/resources/db/scripts/v2/migration.sh) script. Due to the time it will take to complete the migration,
5. Stop the [Importer](/docs/importer/README.md) process.
Copy link
Member Author

Choose a reason for hiding this comment

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

No changes here. Spotless...

steven-sheehy
steven-sheehy previously approved these changes May 7, 2024
Copy link
Member

@steven-sheehy steven-sheehy 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
Copy link
Member

Will need another merge from main

…cceptance-tests

Signed-off-by: Jeff Schmidt <jeffrey.schmidt@swirldslabs.com>
Copy link

sonarcloud bot commented May 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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 modified the milestones: 0.105.0, 0.106.0 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature test Test infrastructure, automated tests required, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIP-646/657/765: Verify token metadata in acceptance tests
3 participants