-
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 L1->L2 transactions page #21
Comments
I would like to take on this issue. |
Hi, I’m Adeyemi with over 4 years of experience with React and Nextjs. |
Hello @saimeunt, I'm a Software Developer with a strong background in front-end and back-end development and I'm excited to contribute to this project. Component:I will enhance the existing latest-l1-l2-transactions.tsx component to display the latest L1 -> L2 transactions by: Data Fetching:I will update the fetchLatestL1L2Transactions function to return all necessary fields and 50 records instead of 6. Component Structure:Parent Component: Fetch the transaction data and iterate over the transactions and pass details to the child component. Child Component (latest-l1-l2-transaction.tsx): Render individual transaction details with appropriate external links for L1 block number, L1 tx hash, L1 tx origin, and internal link for L2 tx hash. Table Implementation:I will use the shadcn/ui Table component to display the transactions, following the given example from Etherscan.
I will exclude the "Queue index" column as specified. Validation:I will validate the implementation to ensure it looks like the Etherscan latest L1 -> L2 txs list provided in the example. References: I am looking forward to your feedback and the opportunity to contribute to this project. |
Plan to Resolve the Issue: Latest L1->L2 Transactions PageHello Walnut team, I'm Armando, and I'm interested in working on the "Latest L1->L2 transactions page" problem. I have experience developing with Next.js and React, and I feel I can effectively contribute to solve this problem. DescriptionThe goal is to create a Next.js page that displays a list of the latest L1->L2 transactions created on the blockchain. This list should include details such as L1 block number, L2 transaction hash, timestamp, L1 transaction hash, L1 transaction origin, and gas limit. The visualization should be similar to the L1->L2 transactions list on Etherscan, providing external links for certain fields and excluding additional columns not requested. ImplementationCreate the Route for L1->L2 Transactions
Update the
|
@coxmars Thank you for your proposal, I've assigned you the issue. Please note that you should NOT update the existing @armandocodecr I appreciate the quality of your comment but I'm willing to give a chance to everyone to get their own issue. Don't worry there will be more issues early next week and you might automatically be assigned without the need to comment on similar issues in the coming days if there's no sign of draft PR from assignees 💪 |
Okay, thanks for the advice and the opportunity 🫡 |
@coxmars 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. |
Latest L1->L2 transactions page
Read contributors guidelines
User stories
/txs-enqueued
Validation
It should look like the Etherscan latest L1->L2 txs list: https://optimistic.etherscan.io/txsEnqueued
Don't forget to add external links to L1 block number, L1 tx hash, L1 tx origin and an internal link to L2 tx hash.
You can take inspiration from here: https://github.com/walnuthq/op-scan/blob/main/src/components/pages/home/latest-l1-l2-transactions.tsx
Do NOT include the Queue index column.
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 placeholder data.
Update the
fetchLatestL1L2Transactions
(https://github.com/walnuthq/op-scan/blob/main/src/lib/utils.ts#L86) function to return all the fields necessary and 50 records instead of 6.Resources
The text was updated successfully, but these errors were encountered: