-
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
Latest transactions page #20
Comments
Can I take this? |
Hello @saimeunt ! I'm Ugo, a fullstack(js,React,Node,Next.js,Three.js) developer with a strong track record in OD hack projects. I've been actively involved since Edition 2, contributing to various initiatives, and I'm thrilled to be part of Edition 5! I would follow these steps to develop a new page displaying the latest transactions at the
|
Hi @saimeunt, I'm a full-stack web developer with a strong background in front-end and back-end development. I'm excited to contribute to this project. References:Steps:
Restrictions:I will ensure the following restrictions are adhered to:
Important:If needed, I can use the Highlight feature on the table to make it easier for users to identify matching addresses. Best regards, |
I'm highly interested in tackling this task. I have expertise in designing and implementing frontend UIs and functionalities using Next.js, TypeScript, Shadcn, React, Redux, and other frontend libraries. I’m confident in delivering an efficient and user-friendly transactions page. You can check out my GitHub profile here: My Github Profile. Here is my Proposed Solution for Latest Transactions Page:Component Creation:
Fetching Data:Using React Server Components and Next.js's Table Structure:
Linking to Details:
Performance Optimization:
Testing and Validation:
|
@Ugo-X Thank you for your proposal, I'm assigning you for this issue. Please note however that we're not using |
alright chief, I will be sure to take note of that. Thank you. |
@Ugo-X how is it going with the issue? Are you still working on this? Please note that if you're not providing at least a draft PR by the end of Wednesday we'll have to assign someone else. |
Hello @saimeunt I'm almost done and will send a PR by tomorrow. |
Latest transactions page
Read contributors guidelines
User stories
/txs
Validation
It should look like the Etherscan latest txs list: https://optimistic.etherscan.io/txs
For the method ID column, just display the 4 bytes selector, function name mapping is out of scope.
Don't forget to add links to tx details page
/tx/:hash
, block details page/block/:number
and from/to addresses/address/:address
.Do NOT include txs metrics such as txs count over 24h, pending txs, etc.
Do NOT add a "Download Page Data" button.
Do NOT add pagination, it will be done in another separate issue.
Do NOT add a "Show rows" dropdown, this is out of scope for this issue.
Implementation
Use a simple table from shadcn/ui, always display the last 50 txs from the last 10 most recent blocks.
Extract transactions from blocks using
getBlock({ blockNumber: N, includeTransactions: true })
and sort them by descending timestamp.You must use React Server Components and fetch the blocks server-side, you can use work done on the block txs page as an inspiration.
Resources
The text was updated successfully, but these errors were encountered: