-
Notifications
You must be signed in to change notification settings - Fork 0
[DEV-3183] Add conditions to KycFinancialData #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kolibri1990
wants to merge
464
commits into
main
Choose a base branch
from
develop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* [DEV-3412] extend Fees DTO * [DEV-3414] extend Country DTO * [DEV-3424, DEV-3426] extend TransactionState + RefundData changes
* [DEV-2394] Change discountCode to specialCode * [DEV-3414] add TransactionError.NATIONALITY_NOT_ALLOWED --------- Co-authored-by: Kolibri <> Co-authored-by: lapatric <42653152+lapatric@users.noreply.github.com>
* [DEV-3384] extend BankAccount DTO * [NO-TASK] add onClick ability to StyledDataTableRow
* [NO-TASK] Add ADA * [NO-TASK] Recatoring * [NO-TASK] Added xmlns --------- Co-authored-by: Kolibri <> Co-authored-by: David May <david.leo.may@gmail.com>
* Add bank account fields to TransactionRefundData - Add name, address, houseNumber, zip, city, country, iban, bic fields - Fields are optional and populated from BankTx data * [NO-TASK] Refactoring --------- Co-authored-by: David May <david.leo.may@gmail.com>
This commit fixes a critical issue where unstable function references in React hooks and contexts were causing infinite re-render loops and excessive API calls. Changes: - Wrapped all hook functions in useCallback to ensure stable references - Fixed useMemo dependencies to reference memoized callbacks - Removed unnecessary session dependencies from useEffect hooks - Simplified store.hook.ts with empty dependency array - Fixed recursive call pattern in api.hook.ts to avoid stale closures Affected files: - All hooks in packages/react/src/hooks/ (17 files) - Context providers in packages/react/src/contexts/ (4 files) This ensures that function references remain stable across re-renders, preventing unnecessary cascading updates throughout the component tree.
For buy-specific IBANs, no reference is required as the IBAN is unique to the asset.
* Add EIP-7702 delegation support for Sell and Swap - Add UnsignedTx, Eip7702DelegationData, Eip7702SignedData, and Eip7702Authorization interfaces - Extend Sell and Swap interfaces with optional depositTx field - Add ConfirmSellData and ConfirmSwapData interfaces for transaction confirmation - Implement confirmSell and confirmSwap methods in hooks - Export new types from index for external usage This enables gasless token transfers for users with zero native balance on EVM chains. * Wrap confirmSell in useCallback for consistency
Changes: - Add `?includeTx=true` parameter to sell receiveFor endpoint - Update confirmSell to return Transaction instead of void - Change confirmSell HTTP method from POST to PUT to match API
Changed confirmSwap return type from Promise<void> to Promise<Transaction> to match the actual API endpoint response type (TransactionDto). This fixes TypeScript compilation errors when using the confirmSwap hook with EIP-7702 delegation flow where transaction.id is accessed.
Convert native fetch errors (TypeError, network failures) into ApiError objects with statusCode 0 to enable uniform error handling across the application. The original error message is preserved for debugging.
Replace plain objects with Error subclass so that error handlers (webpack-dev-server overlay, browser console, logging tools) can properly display the error message instead of [object Object]. ApiException extends Error and implements ApiError, maintaining backward compatibility with existing error handling code. Changes: - Add ApiException class extending Error - Add Object.setPrototypeOf fix for ES5 compatibility - Wrap network errors in ApiException - Wrap API error responses in ApiException with fallback handling
- Add includeTx parameter to sell.hook.ts receiveFor (default: false) - Add includeTx parameter to swap.hook.ts receiveFor (default: false) - Only request depositTx when explicitly needed (e.g., when user clicks send button) - Prevents 'insufficient funds for intrinsic transaction cost' errors during quote requests This fixes the issue where the API would attempt to create a deposit transaction even when the user is just viewing a price quote, causing errors when the wallet has insufficient gas for transaction estimation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.