Closed fricoben closed 2 months ago
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 | Sep 2, 2024 0:19am |
sepolia-app-starknet-id | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 2, 2024 0:19am |
The changes across the codebase involve renaming properties for clarity, particularly changing duration
to durationInDays
or durationInYears
. Additionally, monetary values have shifted from string
types to bigint
for improved precision in financial calculations. Several functions have been renamed or restructured to align with these updates, and some components have consolidated their props into single objects for better management. A new custom hook for currency management has also been introduced.
Files | Change Summary |
---|---|
components/discount/freeRegisterCheckout.tsx, components/discount/freeRegisterSummary.tsx, components/discount/registerDiscount.tsx, components/discount/freeRenewalCheckout.tsx, components/domains/autorenewal.tsx, components/domains/registerCheckboxes.tsx, components/domains/registerSummary.tsx, components/domains/registerV3.tsx, components/domains/renewalV2.tsx, context/FormProvider.tsx | Renamed duration to durationInDays or durationInYears across multiple components. Changed monetary types from string to bigint . |
components/discount/freeRenewalCheckout.tsx, components/discount/registerDiscount.tsx, components/domains/registerSummary.tsx | Consolidated props into single objects for certain components, improving clarity. |
components/identities/actions/clickable/clickablePersonhoodIcon.tsx | Removed import of constants from starknet . |
hooks/useAllowanceCheck.tsx, hooks/useNeedAllowances.tsx | Updated return types and state management to reflect changes in allowance handling, introducing AllowanceStatus type. |
utils/feltService.ts, utils/subscriptionService.ts | Modified functions to accept bigint instead of string for monetary values, enhancing precision in calculations. |
pages/argent.tsx | Simplified components by removing state management and conditional rendering, directly rendering static screens instead. |
utils/constants.ts | Updated the value of swissVatRate from 0.077 to 0.081 . |
utils/discounts/freeRegistration.ts, utils/discounts/freeRenewal.ts | Changed price from string to BigInt(0) and renamed duration to durationInDays . |
tests/utils/altcoinService.test.js, tests/utils/feltService.test.js | Updated tests to utilize BigInt for numerical calculations instead of strings. |
types/frontTypes.d.ts | Renamed properties in various types to improve clarity and specificity, particularly around monetary values. |
hooks/checkout/useCurrencyManagement.tsx | Introduced a new custom hook for managing currency selection and fetching token quotes. |
sequenceDiagram
participant A as User
participant B as Currency Management Hook
participant C as Token Quote Service
A->>B: Select currency
B->>C: Fetch token quote
C-->>B: Return quote data
B-->>A: Display quote
This diagram illustrates the interaction between the user and the new currency management hook, highlighting the process of selecting a currency and fetching the corresponding token quote.
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?
Description
bigint
everywhere before displaying itMy E2E
/Register
in both currencies/Renew
in both currencies/gift
/subscription
in both currencies/freerenewal
in both currenciesSummary by CodeRabbit
New Features
duration
todurationInDays
ordurationInYears
across multiple components.bigint
type for monetary values, improving precision in financial calculations.getDisplayablePrice
andgetApprovalAmount
.Notification
component for user feedback on token quote retrieval failures.useCurrencyManagement
for managing currency selection and fetching token quotes.Bug Fixes
Documentation
Refactor
Chores