Closed aymericdelab closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
eternum | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 19, 2024 4:39pm |
eternum-docs | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 19, 2024 4:39pm |
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request introduce a new event component named GameEnded
to the contractComponents.ts
file, enhancing event tracking capabilities. The LeaderboardManager
class is modified to include a new property for tracking game end timestamps and updates to its methods for improved data handling. The setup.ts
file alters timeout values for synchronization functions. Additionally, the useLeaderBoardStore.tsx
file is updated to handle the new GameEnded
event within the leaderboard context. Finally, the resource_systems.cairo
file enforces a season check before resource operations.
File Path | Change Summary |
---|---|
client/src/dojo/contractComponents.ts |
Added a new event component GameEnded in eventsComponents function with properties winner_address (BigInt) and timestamp (Number). |
client/src/dojo/modelManager/LeaderboardManager.ts |
Updated pointsOnCompletionPerPlayer to Map<ContractAddress, Map<ID, number>> , removed configManager , added gameEndedTimestamp: number | undefined , and added method processGameEndedEvent . Adjusted setPointsGeneratedByShares to check gameEndedTimestamp and updated logic for event processing. |
client/src/dojo/setup.ts |
Increased timeout for getSyncEntities and getSyncEvents from 10_000 ms to 20_000 ms. |
client/src/hooks/store/useLeaderBoardStore.tsx |
Added import for useEntityQuery and expanded event handling in useSubscriptionToHyperstructureEvents to include GameEnded . Updated defineQuery for HyperstructureCoOwnersChange to include runOnInit . Added new effect to process GameEnded events using LeaderboardManager . |
contracts/src/systems/resources/contracts/resource_systems.cairo |
Introduced a dependency on SeasonImpl and added checks in approve , send , and pickup methods to ensure the current season is active before executing resource operations. |
client/src/dojo/contractComponents.ts
) and introduces new event components, which may relate to the addition of the GameEnded
event in the main PR.GameEnded
event component.π In the land of code, a game has ceased,
AGameEnded
event, our joy increased.
With timestamps and winners, we track with glee,
In the leaderboard's heart, new tales we see.
So hop along, dear friends, letβs celebrate,
For every gameβs end, a new start awaits! π
[!WARNING]
Rate limit exceeded
@aymericdelab has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 40 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://docs.coderabbit.ai/faq) for further information.π₯ Commits
Reviewing files that changed from the base of the PR and between c55e346d7fa35309ee037e1bfadae13cc3213432 and 92c25ba563e9b66f9a35197b46c226c828aae5a9.
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
Release Notes
New Features
GameEnded
event component for tracking game conclusion details, including the winner's address and timestamp.LeaderboardManager
to handle game end events and track timestamps.GameEnded
event.Improvements
Bug Fixes