feat: add P2P deposit/withdraw flow for Telegram mini app

- New request-withdraw-telegram edge function (session token auth)
- New DepositWithdrawModal component with deposit/withdraw tabs
- Deposit: platform wallet display, TX hash verification, on-chain check
- Withdraw: token select, amount, fee display, balance validation
- BalanceCard: deposit/withdraw buttons always visible
- P2P section: modal state management and balance refresh on success
- p2p-api: verifyDeposit and requestWithdraw functions
- i18n: 24 new translation keys across all 6 languages
This commit is contained in:
2026-02-26 20:33:31 +03:00
parent 0606f93146
commit b711524d57
14 changed files with 1142 additions and 10 deletions
+25
View File
@@ -406,6 +406,31 @@ export interface Translations {
fake_payment_proof: string;
other: string;
};
// Deposit / Withdraw
deposit: string;
withdraw: string;
platformWallet: string;
txHash: string;
txHashPlaceholder: string;
blockNumber: string;
optional: string;
verifyDeposit: string;
verifying: string;
verifyingDesc: string;
depositSuccess: string;
depositFailed: string;
depositInstructions: string;
depositInvalidAmount: string;
selectToken: string;
withdrawAmount: string;
networkFee: string;
netAmount: string;
withdrawSuccess: string;
withdrawProcessing: string;
withdrawing: string;
minWithdraw: string;
maxAvailable: string;
walletAddress: string;
// No data
noTrades: string;
};