14.05.2026 rip

This commit is contained in:
2026-05-14 23:05:50 +03:00
parent 51d0b8b3fc
commit 26a7315ea1
5 changed files with 63 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { useQuery, useQueries, useMutation } from '@tanstack/react-query'
import { getWalletBalance, getPrices, sendWallet, getWalletAddresses, getPortfolio, getTokensList, getRelayQuote, createWallet, revealMnemonic, CHAINS, type Chain, type SendWalletPayload, type RelayQuotePayload } from '../api/walletApi'
import { getWalletBalance, getPrices, sendWallet, getWalletAddresses, getPortfolio, getTokensList, getRelayQuote, executeRelaySwap, createWallet, revealMnemonic, CHAINS, type Chain, type SendWalletPayload, type RelayQuotePayload } from '../api/walletApi'
export function useWalletBalance(chain: Chain) {
return useQuery({
@@ -82,3 +82,9 @@ export function useRelayQuote(payload: RelayQuotePayload | null) {
staleTime: 10_000,
})
}
export function useExecuteRelaySwap() {
return useMutation({
mutationFn: (payload: RelayQuotePayload) => executeRelaySwap(payload),
})
}