UNPKG

@funkit/connect

Version:

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

32 lines (31 loc) 1.15 kB
import type { Address } from 'viem'; /** * NATIVE_TOKEN is a special address in Fun to represent different native currency tokens on different chains * e.g. on Base it is ETH, but on Polygon it is MATIC/POL. It is not one specific real token address. **/ export declare const NATIVE_TOKEN = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"; export declare const FUN_ORG_NAME = "Fun.xyz"; export declare const FUN_TERMS_URL = "https://fun.xyz/terms"; export interface FunkitUserInfoBase { /** Unique identifier of the user **/ id: string | Address; /** Friendly name of the user **/ name: string; /** Friendly name of the user, truncated for display **/ nameTruncated: string; /** The user's login type **/ type: 'unknown' | 'eoa'; /** Friendly name of the user's login type **/ typeLabel: string; /** Profile picture url **/ iconSrc: string; isConnected: boolean; } export interface FunkitUserInfo extends FunkitUserInfoBase { address: Address; } export declare const PLACEHOLDER_FUNKIT_USER_INFO: FunkitUserInfo; export declare enum DepositTokenSymbol { USDC = "USDC", ETH = "ETH" }