Closed sandoche closed 1 week ago
[!WARNING]
Rate limit exceeded
@sandoche has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 5 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 06e19e4ff711bb60116aeb0359011bd511906650 and 6e56d362cb4a2ee89f1a8e14ba0fed87cf1a6e79.
The changes introduced in this update enhance the application's configuration, improve database interactions, and expand the functionality of auction and bidding event handling. New environment variables are added, existing scripts are modified for concurrent execution, and a new Prisma schema is established for managing auction data. Additionally, the test coverage is significantly improved, ensuring robust handling of various scenarios in the application's logic.
Files | Change Summary |
---|---|
.env.example , .gitignore , README.md |
New environment variables added; .gitignore updated to ignore .db files; README enhanced for clarity. |
package.json |
Scripts modified for concurrent execution; new Prisma-related scripts and dependencies added. |
prisma/schema.prisma |
New schema defined for managing auction events and bids. |
run-indexer.ts |
Implements a cron job to fetch auction and bid events periodically. |
src/app/_components/BiddingForm.tsx |
Enhanced wallet management and balance fetching logic. |
src/app/api/v1/indexer/auction-end-events/route.ts , src/app/api/v1/indexer/bid-events/route.ts |
New endpoints for indexing auction end and bid events with improved error handling. |
src/queries/__tests__/fetchAuctionHistory.spec.ts , src/queries/__tests__/fetchBiddingHistory.spec.ts |
Test suites expanded with new mocks and scenarios for better coverage and error handling. |
src/queries/fetchAuctionHistory.ts , src/queries/fetchBiddingHistory.ts |
Logic updated to utilize Prisma for data fetching, simplifying data access patterns. |
src/queries/prismaFetchAuctionEvent.ts , src/queries/prismaFetchBidEvent.ts |
New files introduced for fetching auction and bid events using Prisma. |
src/queries/rpcFetchAuctionEnd.ts , src/queries/rpcFetchBiddingHistory.ts |
Function signatures updated to allow fetching events based on block ranges instead of single rounds. |
src/utilities/prisma.ts |
New file created for centralized Prisma client instance. |
Objective | Addressed | Explanation |
---|---|---|
Fix issue with the 10000 blocks for filters (#28) | ✅ |
🐇 "Oh, what a change, so bright and new,
With variables added, and scripts that run true.
Auctions and bids dance in a line,
Fetching and indexing, all in good time.
Hopping through code, with joy in my heart,
This update's a treasure, a true work of art!" 🐇✨
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?
@coderabbitai review
Todo
Closes #28
Summary by CodeRabbit
New Features
DATABASE_URL
,CRON_TIME
,API_HOST
).Bug Fixes
Documentation
Chores
.gitignore
to prevent tracking of database files.