14.05.2026 rip
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useQuery, useQueries, useMutation } from '@tanstack/react-query'
|
||||
import { getWalletBalance, getPrices, sendWallet, CHAINS, type Chain, type SendWalletPayload } from '../api/walletApi'
|
||||
import { getWalletBalance, getPrices, sendWallet, getWalletAddresses, CHAINS, type Chain, type SendWalletPayload } from '../api/walletApi'
|
||||
|
||||
export function useAllWalletBalances() {
|
||||
return useQueries({
|
||||
@@ -25,3 +25,11 @@ export function useSendWallet() {
|
||||
sendWallet(chain, payload),
|
||||
})
|
||||
}
|
||||
|
||||
export function useWalletAddresses() {
|
||||
return useQuery({
|
||||
queryKey: ['wallet', 'addresses'],
|
||||
queryFn: getWalletAddresses,
|
||||
staleTime: 10 * 60 * 1000,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user