UNPKG

@funkit/connect

Version:

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

31 lines (30 loc) 1.29 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"; /** WETH on Ethereum mainnet (checksummed). */ export declare const WETH_MAINNET_ADDRESS: Address; export declare const FUN_ORG_NAME = "Fun.xyz"; export declare const FUN_TERMS_URL = "https://fun.xyz/terms"; export declare const FUN_HELP_FAQ_URL = "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs"; 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;