UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

20 lines (19 loc) 710 B
import type { Address } from 'viem'; import { PaymentMethod } from '~/domains/paymentMethods'; export interface RelayBypassChainsAndTokens { [chainId: number]: string[]; } interface GetIsRelayEnabledParams { fromChainId: string; fromTokenAddress: string; toChainId: string; toTokenAddress: string; paymentMethod: PaymentMethod | undefined; isAdditionalActionsRequired: boolean; } export interface UseRelayBypassReturn { getIsRelayEnabled: (params: GetIsRelayEnabledParams) => boolean; } export declare function useSourceTokenRelayEnabled(): (chainId: number | string, tokenAddress: Address) => boolean; export declare function useRelayBypass(): UseRelayBypassReturn; export {};