export const isAddress = (address: string): boolean => { try { const regex = /^0x[a-fA-F0-9]{1,64}(::[a-zA-Z_][a-zA-Z0-9_]*){0,2}$/; return regex.test(address); } catch (err) { return false; } };