-
Notifications
You must be signed in to change notification settings - Fork 22
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
Contract page token holdings #42
Comments
Please can I be assigned to work on this issue,this is my first time applying for an issue |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI can take this I've worked with a lot of Walnut projects and I'm ready to tackle this issue. How I plan on tackling this issueThe file https://github.com/walnuthq/op-scan/blob/main/src/lib/contracts/erc-20/contract.ts it was developed by me at the previous hackathon, therefore it will not be difficult for me to make a similar component using the Table from shadcn again. |
Hello @saimeunt I am a software developer and I am proficient in Reactjs, typescript, nextjs, solidity I am contributed to some projects on Odhack here is my profile https://app.onlydust.com/u/josephchimebuka and here are couple of projects I have worked on https://bethelapp.com/ metacrypt.vercel.app Here's how I plan to handle the issue
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedi can take this : ) |
I am applying to this issue via OnlyDust platform. My background and how it can be leveraged@saimeunt How I plan on tackling this issueProposed Solution for Contract Page Token HoldingsComponent Creation:
Data Fetching and Processing:
Advanced and Fast Fetching Techniques:
UI Components:
Token Holdings Display:
I hope to get this issue assigned to me. i will deliver an excellent work. Thanks |
@coxmars @jaipaljadeja @danielcdz @josephchimebuka @melnikga @ShantelPeters Hi all! If you haven't yet done so, please apply to the issue via OnlyDust! It will make it much easier to assign. Maintainers will be assigning through the platform. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedhey team! I'm a backend software engineer with more than 5 years of experience (but web2, I will not lie) I'm migrating to web3, so I would like to work on this one How I plan on tackling this issuethe issue is very self explanatory (better than my job) I'll do it |
Contract page holdings
Read contributors guidelines
User stories
As a user, when I access a contract page, I want to see all the contract token holdings both in token quantity and dollar value, I want to see every ERC20 as well as ERC721/1155 for NFTs.
When I click on the token holdings combobox, I can search for a particular token by name, and it should display some details about the selected token holding, such as quantity, dollar value and the spot price taken to compute the current dollar value.
Validation
It should look like the Etherscan contract page token holdings, eg. https://optimistic.etherscan.io/address/0x5ae97e4770b7034c7ca99ab7edc26a18a23cb412
Do NOT implement a dedicated token holdings page, it will be done in a separate issue.
Stick to the minimum viable feature, do NOT implement token holdings sorting.
Implementation
Use the combobox component from shadcn/ui.
For token prices, you can use the Coinbase spot price API, feel free to use something else if you find a better alternative.
This feature will highly benefit from using an indexer to keep track of the contract token holdings, for the time being it's okay to build an MVP of the feature by tracking token transfers from the most recent blocks and using these logs to fetch the contract balance of the specific tokens found in the latest logs.
Resources
The text was updated successfully, but these errors were encountered: