@bnb-chain/canonical-bridge-sdk
Version:
canonical bridge sdk
13 lines (11 loc) • 591 B
TypeScript
import { ChainType } from './types';
export declare function isSameAddress(A?: string, B?: string): boolean;
export declare function isEvmAddress(address?: string): boolean;
export declare function isNativeToken(tokenAddress?: string, chainType?: ChainType): boolean;
export declare function isSolanaAddress(address?: string): boolean;
export declare function isTronAddress(address?: string): boolean;
export declare const isValidTokenAddress: ({ contractAddress, chainType, isSourceChain, }: {
contractAddress: string;
chainType: string;
isSourceChain: boolean;
}) => boolean;