@rainbow-me/rainbowkit
Version:
The best way to connect a wallet
90 lines (87 loc) • 3.29 kB
JavaScript
"use client";
import {
getInjectedConnector,
hasInjectedProvider
} from "./chunk-O2RJXDTM.js";
import {
getWalletConnectConnector
} from "./chunk-ZRMFOB3B.js";
// src/wallets/walletConnectors/universalProfilesWallet/universalProfilesWallet.ts
var universalProfilesWallet = ({
projectId,
walletConnectParameters
}) => {
const isInjected = hasInjectedProvider({ namespace: "lukso" });
const shouldUseWalletConnect = !isInjected;
return {
id: "universal-profiles",
name: "Universal Profiles",
rdns: "io.universaleverything.universalprofiles",
iconUrl: async () => (await import("./universalProfilesWallet-DXDX6HBJ.js")).default,
iconAccent: "#6e77a9",
iconBackground: "#6e77a9",
installed: !shouldUseWalletConnect ? isInjected : void 0,
downloadUrls: {
android: "https://play.google.com/store/apps/details?id=io.universaleverything.universalprofiles",
ios: "https://apps.apple.com/us/app/universalprofiles/id6702018631",
mobile: "https://my.universalprofile.cloud",
qrCode: "https://my.universalprofile.cloud/apps",
chrome: "https://chrome.google.com/webstore/detail/abpickdkkbnbcoepogfhkhennhfhehfn",
browserExtension: "https://my.universalprofile.cloud"
},
mobile: {
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
},
qrCode: shouldUseWalletConnect ? {
getUri: (uri) => uri,
instructions: {
learnMoreUrl: "https://docs.lukso.tech/",
steps: [
{
description: "We recommend putting Universal Profiles on your home screen for faster access to your wallet.",
step: "install",
title: "Open the Universal Profiles app"
},
{
description: "Be sure to back up your Universal Profiles using a secure method. Never share your private key with anyone.",
step: "create",
title: "Create a Universal Profile"
},
{
description: "Once you set up your Universal Profile, click below to get the QR code to scan with your mobile phone.",
step: "scan",
title: "Scan the QR code"
}
]
}
} : void 0,
extension: {
instructions: {
learnMoreUrl: "https://docs.lukso.tech/install-up-browser-extension",
steps: [
{
description: "We recommend pinning Universal Profiles to your taskbar for quicker access to your wallet.",
step: "install",
title: "Install the Universal Profiles browser extension"
},
{
description: "Be sure to back up your Universal Profiles using a secure method. Never share your private key with anyone.",
step: "create",
title: "Create or Import a Universal Profile"
},
{
description: "Once you set up your Universal Profile, click below to refresh the browser and load up the extension.",
step: "refresh",
title: "Refresh your browser"
}
]
}
},
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
namespace: "lukso"
})
};
};
export {
universalProfilesWallet
};