UNPKG

@reservoir0x/relay-kit-ui

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

51 lines 1.66 kB
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query'; export type MoonPayFiatCurrency = { id: string; createdAt: string; updatedAt: string; type: 'fiat'; name: string; code: string; precision: number; minBuyAmount: number; maxBuyAmount: number; isSellSupported: boolean; icon: string; }; export type MoonPayCryptoCurrency = { id: string; createdAt: string; updatedAt: string; type: 'crypto'; name: string; code: string; precision: number; minBuyAmount: number; maxBuyAmount: number; minSellAmount: number; maxSellAmount: number; addressRegex: string; testnetAddressRegex: string; supportsAddressTag: boolean; addressTagRegex: string | null; supportsTestMode: boolean; isSuspended: boolean; isSupportedInUs: boolean; isSellSupported: boolean; notAllowedUSStates: string[]; notAllowedCountries: string[]; metadata: { contractAddress: string; chainId: string; networkCode: string; }; }; export type MoonpayCurrenciesResponse = [MoonPayCryptoCurrency | MoonPayFiatCurrency] | null; type QueryType = typeof useQuery<MoonpayCurrenciesResponse, DefaultError, MoonpayCurrenciesResponse, QueryKey>; type QueryOptions = Parameters<QueryType>['0']; type MoonpayCurrenciesQueryParams = { apiKey?: string; }; declare const _default: (queryParams?: MoonpayCurrenciesQueryParams, queryOptions?: Partial<QueryOptions>) => import("@tanstack/react-query").UseQueryResult<MoonpayCurrenciesResponse, Error>; export default _default; //# sourceMappingURL=useMoonPayCurrencies.d.ts.map