UNPKG

@luffalab/luffa-evm-sdk

Version:

luffa evm ts sdk

21 lines (19 loc) 861 B
declare const isLuffa: () => boolean; declare const isLuffaMiniProgramWebview: () => boolean; declare const isLuffaMiniProgram: () => boolean; declare const networkMap: Partial<Record<string, string>>; declare const getChain: (chainId: string) => string; declare const getChainIdByName: (chainName: string) => number | undefined; declare const isApproveTx: (data: string) => { isApprove: boolean; spender: null; amount: null; } | { isApprove: boolean; spender: string; amount: bigint; }; declare const isHexString: (value: string) => boolean; declare const hexToUtf8: (hex: string) => string; declare const normalizeMessageForDisplay: (message: string) => string; export { getChain, getChainIdByName, hexToUtf8, isApproveTx, isHexString, isLuffa, isLuffaMiniProgram, isLuffaMiniProgramWebview, networkMap, normalizeMessageForDisplay };