-
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
Fetch latest transactions from database #56
Comments
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedSoftware engineering background with previous odhack contributions & works on similar tasks looking to make a first contribution on this project How I plan on tackling this issueBuy creating the required function and fetching data. And carrying out all necessary implementation with updates & feedback. Looking to complete within 48hrs |
I am applying to this issue via OnlyDust platform. My background and how it can be leveraged Please I will like to be assigned this issue. I am a front-end Developer. How I plan on tackling this issue how I'll solve this issue I'll: Create a New Helper Function(that is I'll create a file components/pages/txs/fetch-transactions.ts. Implement Data Fetching Logic I'll then update the transactions page to use the new helper function(I'll make sure the helper function works identically and also create an env file and do the required task to get it done. hopefully I get assigned and be a contributor |
Hi @martinvibes! |
I am applying to this issue via https://app.onlydust.com/p/opscan-by-walnut I would love to contribute to this issue |
Hi @martinvibes! |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have experience working with databases and i would like to contribute to this project. How I plan on tackling this issue
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a Full Stack blockchain Developer with expertise in Next.js, Nest.js, TypeScript, JavaScript, React, Node.js, Three.js, and Solidity. My journey with OnlyDust hackathons began at Edition 1, and I've since made 30 contributions across 9 projects. With my extensive experience on the OnlyDust platform (profile: https://app.onlydust.com/u/Ugo-X), I've honed my skills in delivering quality solutions under pressure. How I plan on tackling this issueI will...
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedMy name is Collins Ikechukwu. I am a fullstack developer with 4 years of experience. I'm thrilled about the chance to contribute to the Op Scan Project. With 4 years of solid experience in Next.js, TypeScript, Shadcn, and React, Nodejs and PHP I'm confident in my ability to deliver an efficient and user-friendly Contract page for transactions. How I plan on tackling this issueHaving studied the codebase and discovered that the op-indexer was updated some hours ago, I will try to follow the current components logic and run op-index while fetching the latest transactions.
I will create a helper function fetch-transactions.ts Implement fetchFromDatabase Create or update lib/fetch-database.ts, implement the function that queries transactions from the database using Prisma.
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have a background in web development, with experience in JavaScript, react, APIs, and also a blockchain developer. How I plan on tackling this issueTo tackle this problem i will First, define a new environment variable to configure the data source.
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI'm Poulav Bhowmick, with a robust background in TypeScript, fullstack development and blockchain technology. My experience includes building robust applications, optimizing functionalities and blockchain integration. I have actively participated in events and open source contributions, enhancing my capability to tackle real-world tech challenges. My projects can be viewed on my GitHub Profile and OnlyDust Profile. Plus I´m active member of Starknet community🇷. This is my first contribution to Walnut’s Repositories. How I plan on tackling this issueTo implement fetching latest transactions from either JSON-RPC or a database, I propose the following steps:
This approach will maintain the existing design pattern and abstract away the data source, allowing for easy switching between JSON-RPC and database queries. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHello! In the last ODhack I contributed to creating the component that shows the latest 10 transactions from the JSON-RPC, I want to help on this one since I have enough context. How I plan on tackling this issueBasically following what you already proposed, I have context on the components and the functions that is used now to fetch the JSON-RPC data. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, my is Adrian, I am a passionate developer looking to collaborate with innovating web3 projects, I got experience using the Typescript language and the Nextjs framework How I plan on tackling this issueValidation Criteria
Implementation Steps
Code References
Technical Details
Final Notes
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedMy name is Nnawuihe Johnkennedy . I am a software developer with couple years of experience , i build using mern stack and i belive this skills can be leverage and used to solve problems. This is my portfolio: https://johnkennedy.vercel.app/ How I plan on tackling this issueAs a rollup developer using op-scan, fetch the latest transactions data from either JSON-RPC (current behavior) or a database fed by op-indexer. Abstract the data source in a dedicated function, configured via an environment variable, to ensure flexibility and ease of configuration. |
The maintainer saimeunt has assigned danielcdz to this issue via OnlyDust Platform. |
@danielcdz this one goes to you since you're a returning contributor having work on a similar issue in the last hack, good luck! |
@saimeunt Thank you sir! working on it |
Fetch latest transactions from database
Read contributors guidelines
User stories
As a rollup developer using op-scan, I want to fetch the latest transactions data either from JSON-RPC (current behavior) or from a database fed from op-indexer.
The data source should be abstracted away in a dedicated function and is configured using an environment variable.
Validation
It should fetch the exact same data whether calling the RPC directly or querying the database.
It MUST adhere to the existing design pattern already implemented in the tx details page.
Implementation
Create a new helper function under
components/pages/txs/fetch-transactions.ts
, use the same logic found incomponents/pages/tx/fetch-transaction-details.ts
, a top level exported function which is data source agnostic and 2 separate functions fetching data from either JSON-RPC (this is already implemented here: https://github.com/walnuthq/op-scan/blob/main/src/lib/fetch-data.ts#L30-L111) or from the database (this is what has to be implemented).Move the fetchLatestTransactions data fetching logic from the
lib/fetch-data.ts
to this helper function and just call this function in the txs page top-level server component.You will need to make sure the pagination logic is preserved when querying data via Prisma.
Run op-indexer as a background task in another terminal along the explorer to keep an up-to-date database mirroring what you'd fetch from the JSON-RPC endpoint.
Resources
The text was updated successfully, but these errors were encountered: