UNPKG

@funkit/connect

Version:

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

25 lines (24 loc) 1.19 kB
import { type TransferIntegration } from '@funkit/api-base'; import type { MeshExchangeType } from '../consts/mesh'; import type { AssetHoldingsMap } from '../utils/assets'; export { FUNKIT_MESH_CLIENT_ID } from '../consts/mesh'; export declare const MIN_MESH_TRANSFER_AMOUNT_USD = 10; export declare function fetchMeshLinkToken(funkitUserId: string, brokerType: MeshExchangeType, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>; export declare function fetchMeshTransferIntegrations(apiKey: string): Promise<TransferIntegration[]>; export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ brokerType, chainId, integrations, }: { brokerType: MeshExchangeType; chainId: string; integrations: TransferIntegration[]; }): { meshSupportedTokens: string[]; meshNetworkId: string | undefined; }; interface MeshAccountInfo { apiKey: string; deviceId: string; brokerType: MeshExchangeType; integrations: TransferIntegration[]; targetChain: string; authToken: string; } export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo, enableFrogProxyServer?: boolean): Promise<AssetHoldingsMap>;