UNPKG

@funkit/connect

Version:

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

33 lines (30 loc) 917 B
"use client"; // src/wallets/walletConnectors/safeWallet/safeWallet.ts import { createConnector } from "wagmi"; import { safe } from "wagmi/connectors"; var safeWallet = () => ({ id: "safe", name: "Safe", iconAccent: "#12ff80", iconBackground: "#fff", iconUrl: async () => (await import("./safeWallet-Y3VPODK2.js")).default, installed: ( // Only allowed in iframe context // borrowed from wagmi safe connector !(typeof window === "undefined") && window?.parent !== window ), downloadUrls: { // We're opting not to provide a download prompt if the application is not // already running as a Safe App within the context of the Safe browser, // since it's unlikely to be a desired behavior for users. }, createConnector: (walletDetails) => { return createConnector((config) => ({ ...safe()(config), ...walletDetails })); } }); export { safeWallet };