Closed sandoche closed 2 months ago
The changes encompass various updates across multiple files, including enhancements to configuration settings, the introduction of new database interaction methods using Prisma, and the implementation of pagination in the auction history display. New API endpoints for indexing auction end and bid events have been added, along with improved error handling and testing frameworks. Overall, these modifications aim to refine the application's functionality and structure.
File(s) | Change Summary |
---|---|
.env.example , .gitignore , README.md , package.json |
Updates to configuration variables, added new scripts, and enhanced documentation. |
prisma/schema.prisma , prismaFetchAuctionEvent.ts , prismaFetchBidEvent.ts |
Introduction of new Prisma schema and functions for fetching auction and bid events from the database. |
run-indexer.ts , src/app/api/v1/indexer/.../route.ts |
Implementation of scheduled jobs and new API endpoints for indexing auction end and bid events. |
src/app/_components/BiddingForm.tsx , src/app/_components/Pagination.tsx |
Enhancements to wallet management and introduction of a new pagination component for auction history. |
src/queries/.../*.spec.ts |
Significant updates to test suites for various functions, improving coverage and mocking strategies. |
src/queries/fetchAuctionHistory.ts , src/queries/fetchBiddingHistory.ts , src/queries/fetchPastAuction.ts |
Modifications to data fetching methods, including pagination support and improved error handling. |
src/utilities/prisma.ts |
Introduction of a centralized Prisma client instance for database interactions. |
sequenceDiagram
participant User
participant Pagination
participant AuctionHistory
participant Database
User->>AuctionHistory: Request auction history
AuctionHistory->>Database: Fetch auction events with pagination
Database-->>AuctionHistory: Return paginated events
AuctionHistory-->>User: Display auction history
sequenceDiagram
participant CronJob
participant API
participant Database
CronJob->>API: Fetch bid events
API->>Database: Retrieve bid events
Database-->>API: Return bid events
API-->>CronJob: Send fetched bid events
π° In the meadow, hopping with glee,
New features abound, oh what a spree!
With bids and auctions, all in a row,
Pagination brings joy, watch the data flow!
So letβs celebrate with a joyful cheer,
For changes have come, and springtime is near! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Pagination
component for improved navigation through paginated data.Bug Fixes
BiddingForm
component to ensure balance fetching works with available accounts.Documentation
README.md
to clarify service commands and added a section detailing indexing endpoints.Tests
fetchAuctionHistory
andfetchBiddingHistory
functions, including error handling and pagination scenarios.Chores
package.json
to include new packages for improved database management and development workflow.