Closed irisdv closed 4 months ago
The updates include version upgrades for starknet
and starknetkit
in package.json
and several improvements for TypeScript type handling, such as casting and accessing properties using type-safe methods. Notable changes involve refining conditional checks, modifying imports, and restructuring data handling logic. These alterations enhance maintainability and type safety throughout the codebase, impacting components, hooks, context providers, and utility functions.
Files | Change Summaries |
---|---|
package.json |
Update starknet to 6.9.0 and starknetkit to 1.1.9 . |
components/UI/searchBar.tsx |
Added Result import and updated type assertion for res in contract?.call . |
components/discount/freeRenewalDiscount.tsx |
Refined conditional check for nested properties in mapping function. |
components/identities/actions/clickable/clickablePersonhoodIcon.tsx |
Modified imports to TypedData from typedData and updated the sign function signature. |
context/StarknetIdJsProvider.tsx |
Simplified Provider constructor configuration by removing rpc object wrapper. |
hooks/naming.ts |
Cast data to CallResult and updated property access accordingly. |
hooks/useAllowanceCheck.tsx |
Renamed erc20AllowanceData to erc20AllowanceRes and refactored condition check. |
hooks/useBalances.tsx |
Renamed variable erc20BalanceData to erc20BalanceRes and updated usage. |
hooks/useNeedAllowances.tsx |
Renamed erc20AllowanceData to erc20AllowanceRes and updated balance calculation logic. |
hooks/useNotificationManager.ts |
Replaced provider.getTransactionReceipt with provider.waitForTransaction and handled new transaction receipt types. |
types/frontTypes.d.ts |
Updated index signatures syntax and introduced CallResult type. |
utils/altcoinService.ts |
Updated usage of priceData in getRenewalPriceETH to resolve type issue. |
utils/cacheDomainData.ts |
Changed existingData type to a dictionary in storeDomainData and getDomainData . |
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?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app-starknet-id | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 28, 2024 8:13am |
sepolia-app-starknet-id | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 28, 2024 8:13am |
Summary by CodeRabbit
Dependency Updates
starknet
to version6.9.0
.starknetkit
to version^1.1.9
.Improvements
Refactors