UNPKG

@renegade-fi/core

Version:
21 lines 777 B
import { getBackOfQueueWallet, } from '../actions/getBackOfQueueWallet.js'; import { filterQueryOptions } from './utils.js'; export function getBackOfQueueWalletQueryOptions(config, options = {}) { return { async queryFn({ queryKey }) { const { scopeKey: _, ...parameters } = queryKey[1]; const wallet = await getBackOfQueueWallet(config, { ...parameters, }); return wallet ?? null; }, queryKey: getBackOfQueueWalletQueryKey({ scopeKey: config.state.id, ...options, }), }; } export function getBackOfQueueWalletQueryKey(options = {}) { return ['backOfQueueWallet', filterQueryOptions(options)]; } //# sourceMappingURL=getBackOfQueueWallet.js.map