@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
16 lines (15 loc) • 957 B
TypeScript
import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
/**
* Replicated from @dydxprotocol/v4-client-js https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-js/src/lib/validation.ts#L145C1-L158
* Not importing the sdk in the interest of space.
*/
export declare function verifyIsBech32(address: string): Error | undefined;
export declare function isDydxAddress(address: string): boolean;
export declare function isAddressSupported(address: string): boolean;
/**
* Check if the recipient address is compatible with selected chain
* Will need to update this as we enable additional chains in the future.
* This currently works as we only support evm and solana chains for withdrawal.
*/
export declare function isAddressCompatibleWithChain(address: string, chainId: number): boolean;