Closed starknetdev closed 3 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 7, 2024 6:48pm |
[!WARNING]
Rate limit exceeded
@starknetdev has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 20 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 d79b9001652688ef84eb297a2cfb38ea7bd41b4c and def8051d365de00eca5ae9c4b0cb9a122162de43.
This pull request introduces a new asynchronous function getGoldenTokens
to fetch golden tokens linked to a wallet address from a blockchain network. It updates several components (CreateAdventurer
, Spawn
, AdventurerScreen
) to replace old properties with a new required property goldenTokens
, which is an array of numbers. The useCustomQuery
hook and the RootLayout
component have also been adjusted for improved structure and functionality. Additionally, the networkConfig
has been modified to include a blastUrl
for network interactions, and the main page now integrates the new token fetching functionality.
File Path | Change Summary |
---|---|
ui/src/app/api/getGoldenTokens.ts |
Added asynchronous function getGoldenTokens(owner: string, goldenTokenAddress: string, network: Network) . |
ui/src/app/components/start/CreateAdventurer.tsx |
Updated CreateAdventurerProps interface: removed lordsBalance , goldenTokenData ; added goldenTokens: number[] . Adjusted component logic accordingly. |
ui/src/app/components/start/Spawn.tsx |
Updated SpawnProps interface: removed lordsBalance , goldenTokenData ; added goldenTokens: number[] . Simplified logic for obtaining usable golden tokens. |
ui/src/app/containers/AdventurerScreen.tsx |
Updated AdventurerScreenProps interface: removed lordsBalance , replaced goldenTokenData with goldenTokens: number[] . Adjusted component logic accordingly. |
ui/src/app/hooks/useCustomQuery.ts |
Rearranged imports, removed gameClient and networkConfig , eliminated memoization of Apollo Client instance. |
ui/src/app/layout.tsx |
Reorganized imports, adjusted ApolloProvider structure, and streamlined conditional rendering logic. |
ui/src/app/lib/networkConfig.ts |
Added blastUrl to configurations for sepolia , mainnet , katana , and localKatana ; removed tokensGQLURL from sepolia and mainnet . |
ui/src/app/page.tsx |
Added handleFetchGoldenTokens function and goldenTokens state; updated props passed to AdventurerScreen . |
Spawn.tsx
regarding the handling of golden tokens and payment processes are directly related to the new getGoldenTokens
function introduced in the main PR, as both involve the management and utilization of golden tokens within the application.🐰 In a world of tokens, shiny and bright,
I hop through the code, with joy and delight.
New functions and props, all gleaming and new,
Fetching golden treasures, just for me and you!
So let's dance through the branches, with code that's refined,
A rabbit's adventure, in the world of the kind! 🌟
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?
Instead of the old realms world indexing infra we are now using blast apis development api.
Summary by CodeRabbit
New Features
Changes to Existing Features
goldenTokens
property instead of removed properties.Bug Fixes
Chores