Closed starknetdev closed 4 weeks 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 | Oct 1, 2024 11:05pm |
[!CAUTION]
Review failed
The pull request is closed.
The pull request introduces several changes across multiple components and files. A new environment variable NEXT_PUBLIC_TOURNAMENT_ENDED
is added to the .env
file. Various components, including SpecialBeast
, AdventurersList
, CreateAdventurer
, and Spawn
, undergo reorganization of import statements and modifications to state management and props. The AdventurerScreen
is updated to handle new token-related data, while new GraphQL queries are introduced, and some existing ones are removed. Additionally, the network configuration is enhanced with a new property for tournament winners.
File Path | Change Summary |
---|---|
ui/.env | Added new environment variable NEXT_PUBLIC_TOURNAMENT_ENDED with value "false" . |
ui/src/app/components/notifications/SpecialBeast.tsx | Reorganized import statements; modified URL construction in fetchBeast within a useEffect hook. |
ui/src/app/components/start/AdventurersList.tsx | Reorganized imports; initialized showZeroHealth state to false ; refined address validation logic. |
ui/src/app/components/start/CreateAdventurer.tsx | Reordered imports; added blobertsData prop to CreateAdventurerProps interface. |
ui/src/app/components/start/Spawn.tsx | Updated SpawnProps interface to include blobertTokenId and blobertsData ; modified token management logic. |
ui/src/app/containers/AdventurerScreen.tsx | Updated AdventurerScreenProps interface to include blobertTokenId and blobertsData ; integrated with CreateAdventurer . |
ui/src/app/hooks/graphql/queries.ts | Added new GraphQL query getOwnerTokens ; removed several existing queries; reordered exports. |
ui/src/app/lib/clients.ts | Removed commented-out code related to authentication and HTTP link creation. |
ui/src/app/lib/networkConfig.ts | Added tournamentWinnerAddress property to networkConfig for multiple configurations. |
ui/src/app/lib/utils/syscalls.ts | Updated addApprovalCalls and spawn functions to include blobertTokenId ; improved error handling in mintLords . |
ui/src/app/page.tsx | Added getOwnerTokens query; created gameClientInstance and blobertTokenVariables ; integrated blobertsData . |
.env
file, specifically the addition of a new environment variable, which is directly related to the changes made in the main PR.Spawn.tsx
component, which may interact with the payment handling in the Spawn
component, indicating a potential relationship between the two.🐰 In the meadow where bunnies play,
A new variable brightens the day.
With tokens and props, we hop with glee,
Adventures await, come join us, you see!
From beasts to adventurers, all in a line,
Together we'll flourish, our spirits will shine! ✨
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
NEXT_PUBLIC_TOURNAMENT_ENDED
.blobertTokenId
) across various components.getOwnerTokens
, to fetch tokens owned by users.Improvements
AdventurersList
component.Spawn
component with new token handling.Bug Fixes
Chores