Closed saimeunt closed 2 months ago
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.
I can take this
I've worked with a lot of Walnut projects and I'm ready to tackle this issue. In the OP scan project, I was developing token transfers in tx details page (#13 )
The 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. My profile on OnlyDust: https://app.onlydust.com/u/melnikga
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
Fetch Token Data Integrate APIs to fetch token holdings and prices for ERC20 and ERC721/1155 tokens.
Design UI Components Create a layout with sections for token holdings and a searchable combobox. Ensure the design resembles Etherscan's token holdings page.
Add Search Functionality: Implement a combobox to search for tokens by name. -Display details (quantity, dollar value, spot price) for the selected token.
Validate Against Etherscan: Ensure the UI and data match the format and accuracy of Etherscan's contract page token holdings.
Testing and Deployment: Test to ensure compatibility.
I am applying to this issue via OnlyDust platform.
i can take this : )
I am applying to this issue via OnlyDust platform.
@saimeunt I'm excited about the opportunity to contribute to the Op Scan Project again. Having successfully implemented the block details page during the last ODHack, I'm keen to bring the same level of quality and dedication to this new task. With my background in Next.js, TypeScript, Shadcn, and React, I'm confident I can deliver an efficient and user-friendly Contract Token Holdings feature.
ERC20 and ERC721/1155 (NFT)
holdings.Coinbase spot price API
(or a suitable alternative) to fetch token prices for dollar value calculations.getServerSideProps
for initial data loading.combobox
using the shadcn/ui
component for token selection and search.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.
hey 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
the issue is very self explanatory (better than my job) I'll do it
Contract page holdings
⚠️ Reading contributors guidelines to get assigned is MANDATORY!
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