UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

96 lines (93 loc) 3.06 kB
"use client"; import { getInjectedConnector, hasInjectedProvider } from "./chunk-DNSG5Q7V.js"; import { getWalletConnectConnector } from "./chunk-23WIEY36.js"; // src/wallets/walletConnectors/coreWallet/coreWallet.ts var coreWallet = ({ projectId, walletConnectParameters }) => { const isCoreInjected = hasInjectedProvider({ namespace: "avalanche", flag: "isAvalanche" }); const shouldUseWalletConnect = !isCoreInjected; return { id: "core", name: "Core", rdns: "app.core.extension", iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default, iconBackground: "#1A1A1C", installed: !shouldUseWalletConnect ? isCoreInjected : void 0, downloadUrls: { android: "https://play.google.com/store/apps/details?id=com.avaxwallet", ios: "https://apps.apple.com/us/app/core-wallet/id6443685999", mobile: "https://core.app/?downloadCoreMobile=1", qrCode: "https://core.app/?downloadCoreMobile=1", chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb", browserExtension: "https://extension.core.app/" }, mobile: { getUri: shouldUseWalletConnect ? (uri) => uri : void 0 }, qrCode: shouldUseWalletConnect ? { getUri: (uri) => uri, instructions: { learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone", steps: [ { description: "wallet_connectors.core.qr_code.step1.description", step: "install", title: "wallet_connectors.core.qr_code.step1.title" }, { description: "wallet_connectors.core.qr_code.step2.description", step: "create", title: "wallet_connectors.core.qr_code.step2.title" }, { description: "wallet_connectors.core.qr_code.step3.description", step: "scan", title: "wallet_connectors.core.qr_code.step3.title" } ] } } : void 0, extension: { instructions: { learnMoreUrl: "https://extension.core.app/", steps: [ { description: "wallet_connectors.core.extension.step1.description", step: "install", title: "wallet_connectors.core.extension.step1.title" }, { description: "wallet_connectors.core.extension.step2.description", step: "create", title: "wallet_connectors.core.extension.step2.title" }, { description: "wallet_connectors.core.extension.step3.description", step: "refresh", title: "wallet_connectors.core.extension.step3.title" } ] } }, createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({ namespace: "avalanche", flag: "isAvalanche" }) }; }; export { coreWallet };