-
-
Notifications
You must be signed in to change notification settings - Fork 367
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: Total Supply for AssetHubs #8346 #8347
Conversation
SUCCESS @AshutoshSingh00001 PR for issue #8346 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime! |
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request introduces a new feature to the collection stat, "Total Supply", which provides the maximum supply of a collection. It extends the functionality into three different files to achieve this.
In total, there are 10 insertions and 1 deletion across these three files. The changes will provide additional statistical data to the user, enhancing overall usability and information availability. |
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.
please could you share a screenshot?
plus we don't need to call api since you can retrieve the data from indexer
I think it's a good idea to use indexer but it works the same and also by using api we get the same values and a lot of time api is used in many different places view #8346 for screenshots |
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.
@roiLeo I already knew about this is why I didn't used indexer it is just for nft pallet not for uniques pallet |
uniques is now depreciated https://wiki.polkadot.network/docs/learn-nft-pallets#uniques-pallet read this and we are moving to nft pallet |
https://canary.kodadot.xyz/ahp/collection/30 your code throw error on empty collection |
this is why other stats are also not showing like items and owners |
@roiLeo got it |
Kudos, SonarCloud Quality Gate passed! |
Code Climate has analyzed commit 18f04a9 and detected 0 issues on this pull request. View more on Code Climate. |
I fixed it but😂 that collection is destroyed and I think I should added destroy tag to destroyed collections |
@roiLeo genuinely your review is too good you gave me a link of destroyed collection this is why I used api which actually helps us to catch bugs |
@roiLeo changes are made can you review again |
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.
I asked you to use indexer, still no changes just comments. |
but here https://github.com/kodadot/nft-gallery/blob/main/content/blog/first-time.md we can use any of them it might be your personal demand but if it works properly and I saw api was used on several places so I used it if you think it's my fault ok it's fine I just lost 4 days on this pr at least now you told me your final review thanks |
@roiLeo thanks |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Context