@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
25 lines (24 loc) • 757 B
TypeScript
import React, { type ReactNode } from 'react';
export declare function FunkitMoonpayProvider({ children, debug, }: {
children: ReactNode;
debug: boolean;
}): React.JSX.Element;
export interface UserIpInfoFromMoonpay {
/** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
alpha2: 'AU' | 'CA' | 'US' | string;
alpha3: string;
country: string;
ipAddress: string;
isAllowed: boolean;
isBuyAllowed: boolean;
isNftAllowed: boolean;
isSellAllowed: boolean;
isBalanceLedgerWithdrawAllowed: boolean;
isLowLimitEnabled: boolean;
state: string;
}
export declare function useFunkitUserIp(): {
isLoadingGeoCheck: boolean;
isUserGeoblocked: boolean;
userIpInfo: UserIpInfoFromMoonpay | undefined;
};