Closed loothero closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
loot-survivor | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 3, 2024 8:37pm |
The changes introduce modifications to constants, interfaces, and functions across multiple files in the game codebase. Key updates include a reduction in the obituary expiry duration, the addition of new reward constants, and enhancements to the game interface with new methods for managing promotions and tournaments. The deployment script has also been updated to reflect these changes, particularly in how tournament parameters are configured.
Files | Change Summary |
---|---|
contracts/game/src/game/constants.cairo |
Updated OBITUARY_EXPIRY_DAYS from 10 to 1; added DAO_CONTRACT_REWARD_ADVENTURER and PG_CONTRACT_REWARD_ADVENTURER . |
contracts/game/src/game/interfaces.cairo |
Added four new methods to the IGame trait for managing promotions and tournaments. |
contracts/game/src/lib.cairo |
Introduced new constants and updated function signatures for tournament management; added functions for genesis adventurers. |
contracts/game/src/tests/test_game.cairo |
Added OBITUARY_EXPIRY_DAYS constant; updated adventurer ID handling and deployment parameters. |
scripts/deploy.sh |
Replaced launch_promotion_end_timestamp with launch_tournament_duration_seconds ; added new variables for tournament configuration. |
sequenceDiagram
participant User
participant GameContract
participant TournamentManager
User->>GameContract: Start Game
GameContract->>TournamentManager: Initialize Tournament Parameters
TournamentManager->>GameContract: Set Duration and Delay
GameContract->>User: Game Started with Promotions
Objective | Addressed | Explanation |
---|---|---|
Add view function for free_vrf_promotion_active (233) |
✅ | |
Add a launch tournament delay parameter to constructor (228) | ✅ | |
Adventurer ID 1 Promotion (129) | ❌ | No specific implementation for Adventurer ID 1. |
Mint Adventurer 2 and 3 to PG and Biblio for contract rewards (224) | ❌ | No changes related to minting Adventurer IDs 2 and 3. |
🐇 Hopping through the code, oh what a sight,
New constants and functions, all shiny and bright!
With tournaments ready and rewards in store,
Adventures await, who could ask for more?
Let's celebrate changes, both big and small,
In the land of the game, we’ll have a ball! 🎉
[!TIP] We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
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?
free_vrf_promotion_active() -> bool
. Closes #233is_launch_tournament_active() -> bool
get_launch_tournament_winner() -> ContractAddress
get_launch_tournament_end_time() -> u64
launch_tournament_end_time
tolaunch_tournament_duration
launch_tournament_delay_seconds
parameter to constructor to allow time delay between contract deployment and start of launch tournament (qualifying NFT claims). Closes #228free_vrf_promotion_duration_seconds
parameter to constructorSummary by CodeRabbit
New Features
Bug Fixes
Chores