-
Notifications
You must be signed in to change notification settings - Fork 23
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
Account details page #8
Comments
Hi @saimeunt I'm a frontend developer, and I would love to work on this. I can tackle this issue in 2 - 3 working days if assigned I would handle this issue as suggested below
|
Hey @saimeunt , I am Bhavya, a seasoned frontend engineer with two years of professional experience. I have worked on a similar issue in starkflare before (entrypoints + transactions) where I made the card for listing entrypoints and transactions which also used shadcn for ui elements. I have major experience in nextjs + tailwindcss so I am already familiar with the code! To create this page and solve this issue:
|
Hello @saimeunt @mazurroman I would love to be assigned to this issue and would be sure to deliver a solution in 2 business days and if there are any blockers I would tender a notice beforehand. My solution would be to follow the requirements and provide an account details page with minimal features as requested. Take inspiration from the provided shadcn links while making sure the user experience is as good as the user interface and deliver in a timely manner. Build the accounts page so that it's a dynamic link which takes the token account address as a parameter and sources the information for that particular account. Build and integrate the needed functions to retrieve the token account details given the address as a query. Below is my Onlydust contribution profile |
Hi, can I take this? |
Hi, @saimeunt I will be glad to work on the Account Details Page for the Op Scan. This is my first time contributing to a Walnut project as I didn't get the opportunity to work on any frontend tasks during ODHack 4.0. With my 3 years of expertise in Next.js, TypeScript, Shadcn, and React, I’m confident I can deliver a robust and user-friendly page. You can check out my Github here: https://github.com/Benjtalkshow. Here's how i will implement it:
|
@bhavyagosai assigning to you as you provided an extensive solution proposal. |
Ah yes, understood what you meant to say! I had not pulled latest main so did not see the Tx index page on my local setup haha 😅 Definitely a cleaner approach. |
Account details page
Read contributors guidelines
User stories
As a user, when I access an account details page, I want to see very basic info about this particular address.
Validation
It should look like Etherscan account details page.
EOA: https://optimistic.etherscan.io/address/0x1017a988aa1521a0599c91a9f202d27b8d25fcdb
Contract: https://optimistic.etherscan.io/address/0x80942a0066f72efff5900cf80c235dd32549b75d
Only display whether the account is an EOA (
Address
) or a contract (Contract
) along with the native token balance.Do NOT display any other info at the moment.
Implementation
You can use the tx details page as an inspiration of the global architecture.
The URL of the page should be
/address/:address
.Use a simple card to display the account balance, you can take inspiration from blocks on this dashboard: https://ui.shadcn.com/blocks#dashboard-01 (use lift mode).
Use
getCode
andgetBalance
to fetch the data needed to render the account details page correctly.Resources
getCode
: https://viem.sh/docs/contract/getCode#getcodegetBalance
: https://viem.sh/docs/actions/public/getBalanceThe text was updated successfully, but these errors were encountered: