[DEV-3183] Add conditions to KycFinancialData#94
Closed
Kolibri1990 wants to merge 489 commits intomainfrom
Closed
Conversation
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.
Add optional fields for ERC-5792 wallet_sendCalls Paymaster integration: - usePaymaster: boolean flag to indicate gasless transaction via Paymaster - paymasterUrl: URL of the Paymaster service for ERC-7677 requests
- Remove Eip7702DelegationData, Eip7702SignedData, Eip7702Authorization - Add Eip5792Data, Eip5792Call interfaces for wallet_sendCalls - Update UnsignedTx to use eip5792 instead of eip7702 - Update ConfirmSellData/ConfirmSwapData to use txHash instead of eip7702 EIP-5792 wallet_sendCalls with paymasterService capability replaces the eth_sign-based EIP-7702 flow that was blocked by MetaMask.
…rs (#121) New error types to support KYC step redirection: - RECOMMENDATION_REQUIRED: user needs to complete RECOMMENDATION step - EMAIL_REQUIRED: user needs to complete CONTACT_DATA step
- Add bankRefund URL to TransactionUrl
- Add BankRefundData interface with creditor fields (name, address, etc.)
- Add setTransactionBankRefund() hook function for PUT /transaction/{id}/bank-refund
- Export BankRefundData and RefundBankDetails from index.ts
Enables frontend to submit creditor data (name, address, zip, city, country)
when customers request bank refunds for buy transactions.
Change from /transaction/:id/bank-refund to /transaction/:id/refund/bank to match the backend API endpoint.
- Change invoice URL function to accept number | string - Update getTransactionInvoice signature to accept number | string This allows fetching invoices using transaction uid (for pending transactions that don't have a numeric id yet).
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
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.