Skip to content

[DEV-3183] Add conditions to KycFinancialData#94

Closed
Kolibri1990 wants to merge 489 commits intomainfrom
develop
Closed

[DEV-3183] Add conditions to KycFinancialData#94
Kolibri1990 wants to merge 489 commits intomainfrom
develop

Conversation

@Kolibri1990
Copy link
Contributor

No description provided.

bernd2022 and others added 30 commits January 23, 2025 14:10
 - @dfx.swiss/react@1.3.0-beta.116
 - @dfx.swiss/react-components@1.3.0-beta.116
 - @dfx.swiss/react@1.3.0-beta.117
 - @dfx.swiss/react-components@1.3.0-beta.117
 - @dfx.swiss/react@1.3.0-beta.118
 - @dfx.swiss/react-components@1.3.0-beta.118
 - @dfx.swiss/react@1.3.0-beta.119
 - @dfx.swiss/react-components@1.3.0-beta.119
 - @dfx.swiss/react@1.3.0-beta.120
 - @dfx.swiss/react-components@1.3.0-beta.120
 - @dfx.swiss/react@1.3.0-beta.121
 - @dfx.swiss/react-components@1.3.0-beta.121
 - @dfx.swiss/react@1.3.0-beta.122
 - @dfx.swiss/react-components@1.3.0-beta.122
 - @dfx.swiss/react@1.3.0-beta.123
 - @dfx.swiss/react-components@1.3.0-beta.123
 - @dfx.swiss/react@1.3.0-beta.124
 - @dfx.swiss/react-components@1.3.0-beta.124
 - @dfx.swiss/react@1.3.0-beta.125
 - @dfx.swiss/react-components@1.3.0-beta.125
 - @dfx.swiss/react@1.3.0-beta.126
 - @dfx.swiss/react-components@1.3.0-beta.126
 - @dfx.swiss/react@1.3.0-beta.127
 - @dfx.swiss/react-components@1.3.0-beta.127
 - @dfx.swiss/react@1.3.0-beta.128
 - @dfx.swiss/react-components@1.3.0-beta.128
 - @dfx.swiss/react@1.3.0-beta.129
 - @dfx.swiss/react-components@1.3.0-beta.129
TaprootFreak and others added 29 commits January 2, 2026 08:34
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
 - @dfx.swiss/react@1.3.0-beta.223
 - @dfx.swiss/react-components@1.3.0-beta.223
- 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.
 - @dfx.swiss/react@1.3.0-beta.224
 - @dfx.swiss/react-components@1.3.0-beta.224
 - @dfx.swiss/react@1.3.0-beta.225
 - @dfx.swiss/react-components@1.3.0-beta.225
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
 - @dfx.swiss/react@1.3.0-beta.226
 - @dfx.swiss/react-components@1.3.0-beta.226
- 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.
 - @dfx.swiss/react@1.3.0-beta.227
 - @dfx.swiss/react-components@1.3.0-beta.227
…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
 - @dfx.swiss/react@1.3.0-beta.228
 - @dfx.swiss/react-components@1.3.0-beta.228
- 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.
 - @dfx.swiss/react@1.3.0-beta.229
 - @dfx.swiss/react-components@1.3.0-beta.229
Change from /transaction/:id/bank-refund to /transaction/:id/refund/bank
to match the backend API endpoint.
 - @dfx.swiss/react@1.3.0-beta.230
 - @dfx.swiss/react-components@1.3.0-beta.230
 - @dfx.swiss/react@1.3.0-beta.231
 - @dfx.swiss/react-components@1.3.0-beta.231
 - @dfx.swiss/react@1.3.0-beta.232
 - @dfx.swiss/react-components@1.3.0-beta.232
 - @dfx.swiss/react@1.3.0-beta.233
 - @dfx.swiss/react-components@1.3.0-beta.233
 - @dfx.swiss/react@1.3.0-beta.234
 - @dfx.swiss/react-components@1.3.0-beta.234
 - @dfx.swiss/react@1.3.0-beta.235
 - @dfx.swiss/react-components@1.3.0-beta.235
- 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).
 - @dfx.swiss/react@1.3.0-beta.236
 - @dfx.swiss/react-components@1.3.0-beta.236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants