diff --git a/integration_tests/src/data/accounts/regular_nft_collection/8KyuwGzav7jTW9YaBGj2Qtp2q24zPUR3rD5caojXaby4 b/integration_tests/src/data/accounts/regular_nft_collection/8KyuwGzav7jTW9YaBGj2Qtp2q24zPUR3rD5caojXaby4 new file mode 100644 index 000000000..e626eded3 Binary files /dev/null and b/integration_tests/src/data/accounts/regular_nft_collection/8KyuwGzav7jTW9YaBGj2Qtp2q24zPUR3rD5caojXaby4 differ diff --git a/integration_tests/src/data/accounts/regular_nft_collection/BvRSMZ6XHyiy45kN84F2YRhpX5SVwtyWN1YPzpyMZNBx b/integration_tests/src/data/accounts/regular_nft_collection/BvRSMZ6XHyiy45kN84F2YRhpX5SVwtyWN1YPzpyMZNBx new file mode 100644 index 000000000..e21550efd Binary files /dev/null and b/integration_tests/src/data/accounts/regular_nft_collection/BvRSMZ6XHyiy45kN84F2YRhpX5SVwtyWN1YPzpyMZNBx differ diff --git a/integration_tests/src/data/accounts/regular_nft_collection/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w b/integration_tests/src/data/accounts/regular_nft_collection/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w new file mode 100644 index 000000000..9415c60dd Binary files /dev/null and b/integration_tests/src/data/accounts/regular_nft_collection/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w differ diff --git a/integration_tests/src/data/largest_token_account_ids/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w b/integration_tests/src/data/largest_token_account_ids/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w new file mode 100644 index 000000000..a1541cd10 --- /dev/null +++ b/integration_tests/src/data/largest_token_account_ids/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w/J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w @@ -0,0 +1 @@ +DHkL Ԑa4"^,m>l^ \ No newline at end of file diff --git a/integration_tests/src/regular_nft_tests.rs b/integration_tests/src/regular_nft_tests.rs index df9bd0ade..0eca3c005 100644 --- a/integration_tests/src/regular_nft_tests.rs +++ b/integration_tests/src/regular_nft_tests.rs @@ -164,3 +164,31 @@ async fn test_reg_search_assets() { let response = setup.das_api.search_assets(request, mutexed_tasks.clone()).await.unwrap(); insta::assert_json_snapshot!(name, response); } + +#[tokio::test] +#[serial] +#[named] +async fn test_regular_nft_collection() { + let name = trim_test_name(function_name!()); + let setup = TestSetup::new_with_options( + name.clone(), + TestSetupOptions { network: Some(Network::Mainnet), clear_db: true }, + ) + .await; + + let seeds: Vec = seed_nfts(["J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"]); + + index_seed_events(&setup, seeds.iter().collect_vec()).await; + + let request = r#" + { + "id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w" + } + "#; + + let mutexed_tasks = Arc::new(Mutex::new(JoinSet::new())); + + let request: GetAsset = serde_json::from_str(request).unwrap(); + let response = setup.das_api.get_asset(request, mutexed_tasks.clone()).await.unwrap(); + insta::assert_json_snapshot!(name.clone(), response); +} diff --git a/integration_tests/src/snapshots/integration_tests__regular_nft_tests__regular_nft_collection.snap b/integration_tests/src/snapshots/integration_tests__regular_nft_tests__regular_nft_collection.snap new file mode 100644 index 000000000..42b83705b --- /dev/null +++ b/integration_tests/src/snapshots/integration_tests__regular_nft_tests__regular_nft_collection.snap @@ -0,0 +1,76 @@ +--- +source: integration_tests/src/regular_nft_tests.rs +assertion_line: 202 +expression: response +snapshot_kind: text +--- +{ + "interface": "ProgrammableNFT", + "id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w", + "content": { + "$schema": "https://schema.metaplex.com/nft1.0.json", + "json_uri": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.json", + "files": [], + "metadata": { + "name": "Mad Lads", + "symbol": "MAD", + "token_standard": "ProgrammableNonFungible" + }, + "links": {} + }, + "authorities": [ + { + "address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", + "scopes": [ + "full" + ] + } + ], + "compression": { + "eligible": false, + "compressed": false, + "data_hash": "", + "creator_hash": "", + "asset_hash": "", + "tree": "", + "seq": 0, + "leaf_id": 0 + }, + "grouping": [], + "royalty": { + "royalty_model": "creators", + "target": null, + "percent": 0.05, + "basis_points": 500, + "primary_sale_happened": false, + "locked": false + }, + "creators": [ + { + "address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", + "share": 100, + "verified": true + } + ], + "ownership": { + "frozen": true, + "delegated": false, + "delegate": null, + "ownership_model": "single", + "owner": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW" + }, + "supply": null, + "mutable": true, + "burnt": false, + "lamports": 5616720, + "executable": false, + "metadata_owner": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s", + "rent_epoch": 18446744073709551615, + "token_info": { + "supply": 1, + "decimals": 0, + "token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", + "mint_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz", + "freeze_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz" + } +}