-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from oasisprotocol/pro-wh/feature/holders17
api: filter NFTs by owner and token addr
- Loading branch information
Showing
5 changed files
with
195 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
182 changes: 182 additions & 0 deletions
182
tests/e2e_regression/expected/emerald_account_nfts_token.body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
{ | ||
"evm_nfts": [ | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "227", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/227.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/227.json", | ||
"name": " Oasis Apes #227", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "466", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/466.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/466.json", | ||
"name": " Oasis Apes #466", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1087", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1087.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1087.json", | ||
"name": " Oasis Apes #1087", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1297", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1297.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1297.json", | ||
"name": " Oasis Apes #1297", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1602", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1602.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1602.json", | ||
"name": " Oasis Apes #1602", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1636", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1636.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1636.json", | ||
"name": " Oasis Apes #1636", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1670", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1670.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1670.json", | ||
"name": " Oasis Apes #1670", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
}, | ||
{ | ||
"description": "The first Ape NFT project on Oasis!", | ||
"id": "1708", | ||
"image": "ipfs://QmQbbX9ZcA8Dfay94vJZrmvohub1oQfLtZ791DzD8DLmMx/1708.png", | ||
"metadata_accessed": "UNINTERESTING", | ||
"metadata_uri": "ipfs://QmPKAuGQnJCM2FVSxkNcyqf1TyDusKuwuD9VnWJN9CF4xA/1708.json", | ||
"name": " Oasis Apes #1708", | ||
"owner": "oasis1qq92lk7kpqmvllhjvhlc282zp6v2e2t2rqrwuq2u", | ||
"owner_eth": "0x5cC0791892B04c6280F3a2aA64929bf6357544Bc", | ||
"token": { | ||
"contract_addr": "oasis1qqewaa87rnyshyqs7yutnnpzzetejecgeu005l8u", | ||
"decimals": 0, | ||
"eth_contract_addr": "0x99f43f11CC6b5C378eBc2Cb4eEd7CC4F5F0006C0", | ||
"is_verified": false, | ||
"name": "OasisApes", | ||
"num_holders": 6, | ||
"num_transfers": 16, | ||
"symbol": "OA", | ||
"total_supply": "3333", | ||
"type": "ERC721" | ||
} | ||
} | ||
], | ||
"is_total_count_clipped": false, | ||
"total_count": 8 | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/e2e_regression/expected/emerald_account_nfts_token.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
Vary: Origin | ||
Date: UNINTERESTING | ||
Transfer-Encoding: chunked | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters