-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
feat add holdings by user #2751
Conversation
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
can't see https://deploy-preview-2751--koda-nuxt.netlify.app/rmrk/u/FXUxw9Xp98gTzrU2z63D2G92kcx1oznd6xYa8WdqRgTcEDo it redirect me to collected... I bet it has something to do if the user who did not create, won't see holdings? here it works tho but maybe it's fixed in #2725 ? |
Merged main and #2725 |
Otherwise is seems works nice https://deploy-preview-2751--koda-nuxt.netlify.app/rmrk/u/FAZBj1G1H1Ls4nKn8ru7F31qku4Fhgzcce3D56hgTfJAj4Q?tab=holdings just wanted inspect on some collectors tho! |
I've also encountered several addresses where this is the case. I'm not sure if it's because the user is set to not allow access to the profile page. The interface for requesting collections list returned empty. And it works well for other addresses.
#2725 solves the occasional problem of displaying empty lists for every address. Not the same problem as mentioned above |
I guess we don't have any setting like that 🤔 |
just noticed it shows only NFTs which were minted by my address? |
Yup, now I have fixed it and it can show all nfts owned by users. |
However, I have to use two queries including The best solution is to combine them into one request.
|
We can do special magic and cache some queries which loads superior fast, same technique we are using in spotlight and series-insight iirc, as it's huge query. |
TestcaseOh, I see an issue with big queries now. Seems giving me 504 which is gateway timeout, I'll ping the Subsquid squad so let's see how they can help us on this track |
Yes, you are right. And I think the quickest solution is to enable the |
Not sure what do you mean. |
Hey, @vikiival Let me expand more: Current process: What process I expected:
|
Here you go sir query collectionHoldingsByAccount($id: String!) {
collectionEntities(where: {nfts_some: {currentOwner_eq: $id}}) {
id
name
nfts(where: {currentOwner_eq: $id}) {
id
price
updatedAt
bought: events(where: {caller_eq: $id, interaction_eq: BUY}, orderBy: timestamp_DESC, limit: 1) {
id
meta
}
}
}
}
|
feel free to test here query variables: {
"id": "Fksmad33PFxhrQXNYPPJozgWrv82zuFLvXK7Rh8m1xQhe98"
} In case of last actitivity you can extend the query with lastUpdate: events(orderBy: timestamp_DESC, limit: 1) {
id
interaction
blockNumber
timestamp
meta
}
} |
Oh, I've just noticed by using it,
Small tweak which makes contextual sense :) |
I'm not sure what kind of card do you would like to add : ) as we only have the user card component. Could you give me an example? @yangwao Or we can make a separate issue to make it and build a new card component? Would be great if assign me. |
I have finished it. |
Sure, a piece of cake. |
Once @roiLeo has no objections, let's merge it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is error free, we might need to replace all any
type later
Ok, I will replace these 'any' type later in this issue #2785 |
pay 300 usd |
pay 300 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type
What's new?
Before submitting Pull Request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot