Closed aymericdelab closed 4 days 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 | Jun 29, 2024 0:17am |
โฑ๏ธ Estimated effort to review [1-5] | 3 |
๐งช Relevant tests | No |
๐ Security concerns | No |
โก Key issues to review |
Possible Bug: The removal of the ClaimFood quest from useQuestStore.tsx and related UI components might affect other parts of the application that could still be referencing it. Ensure that all dependencies and references to this quest have been properly removed or updated. |
Code Clarity: In HintBox.tsx , the change in initial depth value calculation from 0 to 1 should be clearly documented in the code comments to explain why this change was necessary. |
Category | Suggestion | Score |
Security |
Implement validation checks for new resource minting logic to ensure security and correctness___ **With the introduction of new resource minting logic in thecreate_multiple_realms method, it's crucial to ensure that the minting process is secure and efficient. Consider implementing checks to validate the uuid , resource IDs, and amounts before proceeding with the minting operation to prevent potential misuse or errors in resource allocation.** [sdk/packages/eternum/src/provider/index.ts [213-225]](https://github.com/BibliothecaDAO/eternum/pull/1047/files#diff-467989f145beaf5796d645b8891d6c2468a39d539d62b48a1459185c6fe1de55R213-R225) ```diff +contractAddress: getContractByName(this.manifest, "dev_resource_systems"), +entrypoint: "mint", +calldata: [ + uuid, + EternumGlobalConfig.resources.startingResources.length, + ...EternumGlobalConfig.resources.startingResources.flatMap(({ resourceId, amount }) => [ + resourceId, + amount * + EternumGlobalConfig.resources.resourcePrecision * + EternumGlobalConfig.resources.resourceMultiplier, + ]), +], - ``` Suggestion importance[1-10]: 10Why: The suggestion addresses a critical security concern by recommending validation checks for the new resource minting logic. This is essential to prevent misuse and ensure the correctness of resource allocation. | 10 |
Possible bug |
Ensure removal of dependent logic on the
___
**Since the | 9 |
Update systems impacted by the removal of resources associated with the
___
**The removal of the | 8 | |
Possible issue |
Review and adjust UI conditional rendering logic due to the removal of the
___
**The removal of the | 8 |
PR Type
Enhancement, Bug fix
Description
ClaimFood
quest from the quest store and related UI components.QuestsDisplay
to start from 1.QuestType.Food
and its associated resources.Changes walkthrough ๐
useQuestStore.tsx
Remove `ClaimFood` quest from quest store
client/src/hooks/store/useQuestStore.tsx
ClaimFood
quest fromQuestName
enum.ClaimFood
quest object from thequests
array.LeftNavigationModule.tsx
Remove `ClaimFood` quest condition from left navigation
client/src/ui/modules/navigation/LeftNavigationModule.tsx
ClaimFood
quest.
RightNavigationModule.tsx
Remove `ClaimFood` quest condition from right navigation
client/src/ui/modules/navigation/RightNavigationModule.tsx
ClaimFood
quest related class condition from the resourcesbutton.
global.ts
Add starting resources configuration
sdk/packages/eternum/src/constants/global.ts - Added `startingResources` configuration with initial resources.
resources.ts
Remove `QuestType.Food` and associated resources
sdk/packages/eternum/src/constants/resources.ts - Removed `QuestType.Food` and its associated resources.
index.ts
Mint starting resources in realm creation
sdk/packages/eternum/src/provider/index.ts
create_multiple_realms
method.HintBox.tsx
Update quest display depth initialization
client/src/ui/components/hints/HintBox.tsx
QuestsDisplay
to start from 1.QuestDepthGroup
component to format theQuestCard
mapping.