const installed = window.getOfflineSigner && window.keplr
const enable = () => {
if (installed) return window.keplr.enable(chainId)
}
type Keplr = {
enable(chainId: ChainId): Enable;
};
const isInstalled = (v: unknown): v is Keplr => !!(window.getOfflineSigner && v)
const enable = () => {
if (isInstalled(window.keplr)) return window.keplr.enable(chainId)
}