@tomo-inc/wallet-adaptor-base 0.0.11 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +39 -1669
- package/dist/index.d.cts +11 -141
- package/dist/index.d.ts +11 -141
- package/dist/index.js +39 -1599
- package/package.json +2 -2
- package/project.json +15 -0
- package/src/index.ts +3 -8
- package/src/type.ts +10 -0
- package/src/wallets/defaultConnectors.ts +12 -220
- package/src/wallets/index.ts +4 -142
- package/src/wallets/wallet-walletconnect.ts +16 -6
- package/src/wallets/default/abWallet/abWallet.ts +0 -19
- package/src/wallets/default/backpackWallet/backpackWallet.ts +0 -20
- package/src/wallets/default/berasigWallet/berasigWallet.ts +0 -19
- package/src/wallets/default/binanceWallet/binanceWallet.ts +0 -47
- package/src/wallets/default/bitgetWallet/bitgetWallet.ts +0 -37
- package/src/wallets/default/bitskiWallet/bitskiWallet.ts +0 -14
- package/src/wallets/default/bitverseWallet/bitverseWallet.ts +0 -17
- package/src/wallets/default/bloomWallet/bloomWallet.ts +0 -12
- package/src/wallets/default/braveWallet/braveWallet.ts +0 -17
- package/src/wallets/default/bybitWallet/bybitWallet.ts +0 -25
- package/src/wallets/default/clvWallet/clvWallet.ts +0 -18
- package/src/wallets/default/coin98Wallet/coin98Wallet.ts +0 -22
- package/src/wallets/default/coinbaseWallet/coinbaseWallet.ts +0 -29
- package/src/wallets/default/compassWallet/compassWallet.ts +0 -16
- package/src/wallets/default/coreWallet/coreWallet.ts +0 -21
- package/src/wallets/default/ctrlWallet/ctrlWallet.ts +0 -21
- package/src/wallets/default/dawnWallet/dawnWallet.ts +0 -13
- package/src/wallets/default/desigWallet/desigWallet.ts +0 -18
- package/src/wallets/default/enkryptWallet/enkryptWallet.ts +0 -21
- package/src/wallets/default/foxWallet/foxWallet.ts +0 -21
- package/src/wallets/default/frameWallet/frameWallet.ts +0 -14
- package/src/wallets/default/gateWallet/gateWallet.ts +0 -27
- package/src/wallets/default/imTokenWallet/imTokenWallet.ts +0 -24
- package/src/wallets/default/injectedWallet/injectedWallet.ts +0 -9
- package/src/wallets/default/iopayWallet/iopayWallet.ts +0 -21
- package/src/wallets/default/kaiaWallet/kaiaWallet.ts +0 -24
- package/src/wallets/default/kaikasWallet/kaikasWallet.ts +0 -24
- package/src/wallets/default/krakenWallet/krakenWallet.ts +0 -19
- package/src/wallets/default/kresusWallet/kresusWallet.ts +0 -17
- package/src/wallets/default/ledgerWallet/ledgerWallet.ts +0 -26
- package/src/wallets/default/magicEdenWallet/magicEdenWallet.ts +0 -22
- package/src/wallets/default/mathWallet/mathWallet.ts +0 -23
- package/src/wallets/default/metaMaskWallet/metaMaskWallet.ts +0 -105
- package/src/wallets/default/myDogeWallet/mydogeWallet.ts +0 -22
- package/src/wallets/default/nestWallet/nestWallet.ts +0 -14
- package/src/wallets/default/novaWallet/novaWallet.ts +0 -27
- package/src/wallets/default/oktoWallet/oktoWallet.ts +0 -21
- package/src/wallets/default/okxWallet/okxWallet.ts +0 -40
- package/src/wallets/default/omniWallet/omniWallet.ts +0 -21
- package/src/wallets/default/oneInchWallet/oneInchWallet.ts +0 -18
- package/src/wallets/default/oneKeyWallet/oneKeyWallet.ts +0 -22
- package/src/wallets/default/paraSwapWallet/paraswapWallet.ts +0 -19
- package/src/wallets/default/petraWallet/petraWallet.ts +0 -23
- package/src/wallets/default/phantomWallet/phantomWallet.ts +0 -34
- package/src/wallets/default/rabbyWallet/rabbyWallet.ts +0 -15
- package/src/wallets/default/rainbowWallet/rainbowWallet.ts +0 -31
- package/src/wallets/default/ramperWallet/ramperWallet.ts +0 -16
- package/src/wallets/default/readyWallet/readyWallet.ts +0 -15
- package/src/wallets/default/roninWallet/roninWallet.ts +0 -22
- package/src/wallets/default/safeWallet/safeWallet.ts +0 -15
- package/src/wallets/default/safeheronWallet/safeheronWallet.ts +0 -14
- package/src/wallets/default/safepalWallet/safepalWallet.ts +0 -21
- package/src/wallets/default/seifWallet/seifWallet.ts +0 -15
- package/src/wallets/default/solflareWallet/solflareWallet.ts +0 -29
- package/src/wallets/default/subWallet/subWallet.ts +0 -22
- package/src/wallets/default/tahoWallet/tahoWallet.ts +0 -16
- package/src/wallets/default/talismanWallet/talismanWallet.ts +0 -16
- package/src/wallets/default/tokenPocketWallet/tokenPocketWallet.ts +0 -29
- package/src/wallets/default/tokenaryWallet/tokenaryWallet.ts +0 -16
- package/src/wallets/default/trezorWallet/trezorWallet.ts +0 -18
- package/src/wallets/default/trustWallet/trustWallet.ts +0 -28
- package/src/wallets/default/uniswapWallet/uniswapWallet.ts +0 -19
- package/src/wallets/default/universalProfilesWallet/universalProfilesWallet.ts +0 -21
- package/src/wallets/default/valoraWallet/valoraWallet.ts +0 -19
- package/src/wallets/default/walletConnectWallet/walletConnectWallet.ts +0 -15
- package/src/wallets/default/wigwamWallet/wigwamWallet.ts +0 -17
- package/src/wallets/default/xPortalWallet/xPortalWallet.ts +0 -19
- package/src/wallets/default/zealWallet/zealWallet.ts +0 -27
- package/src/wallets/default/zerionWallet/zerionWallet.ts +0 -27
- package/src/wallets/default/zilPayWallet/zilPayWallet.ts +0 -18
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { isAndroid, isIOS } from "../../../utils/isMobile";
|
|
2
|
-
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
|
|
4
|
-
type WindowProvider = any;
|
|
5
|
-
|
|
6
|
-
export function isMetaMask(ethereum?: WindowProvider["ethereum"]): boolean {
|
|
7
|
-
// Logic borrowed from wagmi's legacy MetaMaskConnector
|
|
8
|
-
// Non-exhaustive list of wallets that try to make themselves look like MetaMask
|
|
9
|
-
if (!ethereum || !ethereum?.isMetaMask) return false;
|
|
10
|
-
// Brave tries to make itself look like MetaMask
|
|
11
|
-
// Could also try RPC `web3_clientVersion` if following is unreliable
|
|
12
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) return false;
|
|
13
|
-
if (ethereum.isApexWallet) return false;
|
|
14
|
-
if (ethereum.isAvalanche) return false;
|
|
15
|
-
if (ethereum.isBackpack) return false;
|
|
16
|
-
if (ethereum.isBifrost) return false;
|
|
17
|
-
if (ethereum.isBitKeep) return false;
|
|
18
|
-
if (ethereum.isBitski) return false;
|
|
19
|
-
if (ethereum.isBinance) return false;
|
|
20
|
-
if (ethereum.isBlockWallet) return false;
|
|
21
|
-
if (ethereum.isCoinbaseWallet) return false;
|
|
22
|
-
if (ethereum.isDawn) return false;
|
|
23
|
-
if (ethereum.isEnkrypt) return false;
|
|
24
|
-
if (ethereum.isExodus) return false;
|
|
25
|
-
if (ethereum.isFrame) return false;
|
|
26
|
-
if (ethereum.isFrontier) return false;
|
|
27
|
-
if (ethereum.isGamestop) return false;
|
|
28
|
-
if (ethereum.isHyperPay) return false;
|
|
29
|
-
if (ethereum.isImToken) return false;
|
|
30
|
-
if (ethereum.isKuCoinWallet) return false;
|
|
31
|
-
if (ethereum.isMathWallet) return false;
|
|
32
|
-
if (ethereum.isNestWallet) return false;
|
|
33
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
34
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) return false;
|
|
35
|
-
if (ethereum.isOpera) return false;
|
|
36
|
-
if (ethereum.isPhantom) return false;
|
|
37
|
-
if (ethereum.isZilPay) return false;
|
|
38
|
-
if (ethereum.isPortal) return false;
|
|
39
|
-
if (ethereum.isxPortal) return false;
|
|
40
|
-
if (ethereum.isRabby) return false;
|
|
41
|
-
if (ethereum.isRainbow) return false;
|
|
42
|
-
if (ethereum.isStatus) return false;
|
|
43
|
-
if (ethereum.isTalisman) return false;
|
|
44
|
-
if (ethereum.isTally) return false;
|
|
45
|
-
if (ethereum.isTokenPocket) return false;
|
|
46
|
-
if (ethereum.isTokenary) return false;
|
|
47
|
-
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
48
|
-
if (ethereum.isCTRL) return false;
|
|
49
|
-
if (ethereum.isZeal) return false;
|
|
50
|
-
if (ethereum.isCoin98) return false;
|
|
51
|
-
if (ethereum.isMEWwallet) return false;
|
|
52
|
-
if (ethereum.isSafeheron) return false;
|
|
53
|
-
if (ethereum.isSafePal) return false;
|
|
54
|
-
if (ethereum.isWigwam) return false;
|
|
55
|
-
if (ethereum.isZerion) return false;
|
|
56
|
-
if (ethereum.__seif) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const metaMaskWallet = (baseUrl: string): WalletConfig => {
|
|
61
|
-
// Custom logic to explicitly detect MetaMask
|
|
62
|
-
// Whereas hasInjectedProvider only checks for impersonated `isMetaMask`
|
|
63
|
-
// We need this because MetaMask SDK hangs on impersonated wallets
|
|
64
|
-
// Previously MetaMask provider would trigger for impersonated wallets
|
|
65
|
-
const isMetaMaskInjected = typeof window !== "undefined" ? isMetaMask(window.ethereum) : false;
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
id: "io.metamask",
|
|
69
|
-
name: "MetaMask",
|
|
70
|
-
namespace: "ethereum",
|
|
71
|
-
rdns: "io.metamask",
|
|
72
|
-
icon: `${baseUrl}/metaMaskWallet.svg`,
|
|
73
|
-
iconAccent: "#f6851a",
|
|
74
|
-
iconBackground: "#fff",
|
|
75
|
-
installed: isMetaMaskInjected ? isMetaMaskInjected : undefined,
|
|
76
|
-
deeplink: "https://link.metamask.io/dapp/",
|
|
77
|
-
downloadUrls: {
|
|
78
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
79
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
80
|
-
mobile: "https://metamask.io/download",
|
|
81
|
-
qrCode: "https://metamask.io/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
83
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
84
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
85
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
86
|
-
browserExtension: "https://metamask.io/download",
|
|
87
|
-
},
|
|
88
|
-
mobile: {
|
|
89
|
-
getUri: (uri: string) => {
|
|
90
|
-
return isAndroid()
|
|
91
|
-
? uri
|
|
92
|
-
: isIOS()
|
|
93
|
-
? // currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
94
|
-
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
95
|
-
: `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
96
|
-
},
|
|
97
|
-
getDeeplink: (dappUrl?: string): string => {
|
|
98
|
-
if (!dappUrl) return "";
|
|
99
|
-
// Remove protocol from dappUrl for MetaMask deep link
|
|
100
|
-
const urlWithoutProtocol = dappUrl.split("://")[1] || dappUrl;
|
|
101
|
-
return `https://metamask.app.link/dapp/${urlWithoutProtocol}`;
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const mydogeWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "mydoge",
|
|
6
|
-
name: "MyDoge",
|
|
7
|
-
rdns: "com.mydoge",
|
|
8
|
-
namespace: "mydoge.ethereum",
|
|
9
|
-
solana: {
|
|
10
|
-
namespace: "mydoge.solana",
|
|
11
|
-
},
|
|
12
|
-
dogecoin: {
|
|
13
|
-
namespace: "mydoge.doge",
|
|
14
|
-
},
|
|
15
|
-
icon: `${baseUrl}/mydogeWallet.svg`,
|
|
16
|
-
iconBackground: "#fff",
|
|
17
|
-
downloadUrls: {
|
|
18
|
-
chrome: "https://chromewebstore.google.com/detail/mydoge-dogecoin-wallet/mljponncmhdlacmjbophphkbgcgjdnff",
|
|
19
|
-
browserExtension: "https://www.mydoge.com/",
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const nestWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "nest",
|
|
5
|
-
name: "Nest",
|
|
6
|
-
namespace: "",
|
|
7
|
-
flag: "isNestWallet",
|
|
8
|
-
rdns: "xyz.nestwallet",
|
|
9
|
-
icon: `${baseUrl}/nestWallet.svg`,
|
|
10
|
-
iconBackground: "#fff0",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
browserExtension: "https://nestwallet.xyz",
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
function isNovaWallet(ethereum?: any): boolean {
|
|
4
|
-
if (ethereum?.isNovaWallet) return true;
|
|
5
|
-
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const isNovaWalletInjected = typeof window !== "undefined" ? isNovaWallet(window.ethereum) : false;
|
|
10
|
-
|
|
11
|
-
export const novaWallet = (baseUrl: string): WalletConfig => {
|
|
12
|
-
return {
|
|
13
|
-
id: "nova",
|
|
14
|
-
name: "Nova Wallet",
|
|
15
|
-
namespace: "",
|
|
16
|
-
rdns: "io.novawallet",
|
|
17
|
-
icon: `${baseUrl}/novaWallet.svg`,
|
|
18
|
-
iconBackground: "#fff",
|
|
19
|
-
installed: isNovaWalletInjected,
|
|
20
|
-
downloadUrls: {
|
|
21
|
-
android: "https://play.google.com/store/apps/details?id=io.novafoundation.nova.market",
|
|
22
|
-
ios: "https://apps.apple.com/us/app/nova-polkadot-wallet/id1597119355",
|
|
23
|
-
mobile: "https://nova-wallet.app.link",
|
|
24
|
-
qrCode: "https://nova-wallet.app.link",
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
|
|
4
|
-
export const oktoWallet = (baseUrl: string): WalletConfig => ({
|
|
5
|
-
id: "Okto",
|
|
6
|
-
name: "Okto",
|
|
7
|
-
namespace: "",
|
|
8
|
-
icon: `${baseUrl}/oktoWallet.svg`,
|
|
9
|
-
iconBackground: "#fff",
|
|
10
|
-
downloadUrls: {
|
|
11
|
-
android: "https://play.google.com/store/apps/details?id=im.okto.contractwalletclient",
|
|
12
|
-
ios: "https://apps.apple.com/in/app/okto-wallet/id6450688229",
|
|
13
|
-
mobile: "https://okto.tech/",
|
|
14
|
-
qrCode: "https://okto.tech/",
|
|
15
|
-
},
|
|
16
|
-
mobile: {
|
|
17
|
-
getUri: (uri: string) => {
|
|
18
|
-
return isAndroid() ? uri : `okto://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { isAndroid } from "../../../utils/isMobile";
|
|
2
|
-
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
|
|
4
|
-
export const okxWallet = (baseUrl: string): WalletConfig => {
|
|
5
|
-
return {
|
|
6
|
-
id: "okx",
|
|
7
|
-
name: "OKX Wallet",
|
|
8
|
-
namespace: "okxwallet",
|
|
9
|
-
solana: {
|
|
10
|
-
namespace: "okxwallet.solana",
|
|
11
|
-
},
|
|
12
|
-
aptos: {
|
|
13
|
-
namespace: "okxwallet.aptos",
|
|
14
|
-
},
|
|
15
|
-
rdns: "com.okex.wallet",
|
|
16
|
-
icon: `${baseUrl}/okxWallet.svg`,
|
|
17
|
-
iconAccent: "#000",
|
|
18
|
-
iconBackground: "#000",
|
|
19
|
-
downloadUrls: {
|
|
20
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
21
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
22
|
-
mobile: "https://okx.com/download",
|
|
23
|
-
qrCode: "https://okx.com/download",
|
|
24
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
25
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
26
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
27
|
-
browserExtension: "https://okx.com/download",
|
|
28
|
-
},
|
|
29
|
-
mobile: {
|
|
30
|
-
getUri: (uri: string) => {
|
|
31
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
-
},
|
|
33
|
-
getDeeplink: (uri?: string): string => {
|
|
34
|
-
const encodedDappUrl = encodeURIComponent(uri || "");
|
|
35
|
-
const deepLink = `okx://wallet/dapp/url?dappUrl=${encodedDappUrl}`;
|
|
36
|
-
return "https://www.okx.com/download?deeplink=" + encodeURIComponent(deepLink);
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
|
|
4
|
-
export const omniWallet = (baseUrl: string): WalletConfig => ({
|
|
5
|
-
id: "omni",
|
|
6
|
-
name: "Omni",
|
|
7
|
-
namespace: "",
|
|
8
|
-
icon: `${baseUrl}/omniWallet.svg`,
|
|
9
|
-
iconBackground: "#000",
|
|
10
|
-
downloadUrls: {
|
|
11
|
-
android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
|
|
12
|
-
ios: "https://itunes.apple.com/us/app/id1569375204",
|
|
13
|
-
mobile: "https://omniwallet.app.link",
|
|
14
|
-
qrCode: "https://omniwallet.app.link",
|
|
15
|
-
},
|
|
16
|
-
mobile: {
|
|
17
|
-
getUri: (uri: string) => {
|
|
18
|
-
return isAndroid() ? uri : `omni://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const oneInchWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "1inch",
|
|
5
|
-
name: "1inch Wallet",
|
|
6
|
-
namespace: "",
|
|
7
|
-
icon: `${baseUrl}/oneInchWallet.svg`,
|
|
8
|
-
iconBackground: "#fff",
|
|
9
|
-
downloadUrls: {
|
|
10
|
-
android: "https://play.google.com/store/apps/details?id=io.oneinch.android",
|
|
11
|
-
ios: "https://apps.apple.com/us/app/1inch-crypto-defi-wallet/id1546049391",
|
|
12
|
-
mobile: "https://1inch.io/wallet",
|
|
13
|
-
qrCode: "https://1inch.io/wallet",
|
|
14
|
-
},
|
|
15
|
-
mobile: {
|
|
16
|
-
getUri: (uri: string) => `oneinch://wc?uri=${encodeURIComponent(uri)}`,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const oneKeyWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "onekey",
|
|
6
|
-
name: "OneKey",
|
|
7
|
-
namespace: "$onekey.ethereum",
|
|
8
|
-
rdns: "so.onekey.app.wallet",
|
|
9
|
-
iconAccent: "#00B812",
|
|
10
|
-
iconBackground: "#fff",
|
|
11
|
-
icon: `${baseUrl}/oneKeyWallet.svg`,
|
|
12
|
-
downloadUrls: {
|
|
13
|
-
android: "https://play.google.com/store/apps/details?id=so.onekey.app.wallet",
|
|
14
|
-
browserExtension: "https://www.onekey.so/download/",
|
|
15
|
-
chrome: "https://chrome.google.com/webstore/detail/onekey/jnmbobjmhlngoefaiojfljckilhhlhcj",
|
|
16
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/onekey/obffkkagpmohennipjokmpllocnlndac",
|
|
17
|
-
ios: "https://apps.apple.com/us/app/onekey-open-source-wallet/id1609559473",
|
|
18
|
-
mobile: "https://www.onekey.so/download/",
|
|
19
|
-
qrCode: "https://www.onekey.so/download/",
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const paraSwapWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "paraswap",
|
|
5
|
-
name: "ParaSwap Wallet",
|
|
6
|
-
namespace: "",
|
|
7
|
-
icon: `${baseUrl}/paraSwapWallet.svg`,
|
|
8
|
-
iconBackground: "#578CFC",
|
|
9
|
-
downloadUrls: {
|
|
10
|
-
ios: "https://apps.apple.com/us/app/paraswap-multichain-wallet/id1584610690",
|
|
11
|
-
mobile: "https://paraswap.io",
|
|
12
|
-
qrCode: "https://paraswap.io",
|
|
13
|
-
},
|
|
14
|
-
mobile: {
|
|
15
|
-
getUri: (uri: string) => {
|
|
16
|
-
return `paraswap://wc?uri=${encodeURIComponent(uri)}`;
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const petraWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "petra",
|
|
6
|
-
name: "Petra",
|
|
7
|
-
aptos: {
|
|
8
|
-
namespace: "aptos",
|
|
9
|
-
},
|
|
10
|
-
rdns: "app.petra",
|
|
11
|
-
icon: `${baseUrl}/petraWallet.svg`,
|
|
12
|
-
iconBackground: "#0C0D10",
|
|
13
|
-
downloadUrls: {
|
|
14
|
-
android: "https://play.google.com/store/apps/details?id=com.aptoslabs.petra.wallet",
|
|
15
|
-
ios: "https://apps.apple.com/app/petra-wallet/id6446259840",
|
|
16
|
-
mobile: "https://petra.app/",
|
|
17
|
-
qrCode: "https://petra.app/",
|
|
18
|
-
chrome:
|
|
19
|
-
"https://chromewebstore.google.com/detail/petra-aptos-wallet/ejjladinnckdgjemekebdpeokbikhfci?hl=encategory=extensions",
|
|
20
|
-
browserExtension: "https://petra.app/",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const phantomWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "phantom",
|
|
6
|
-
name: "Phantom",
|
|
7
|
-
namespace: "phantom.ethereum",
|
|
8
|
-
solana: {
|
|
9
|
-
namespace: "phantom.solana",
|
|
10
|
-
},
|
|
11
|
-
// aptos: {
|
|
12
|
-
// namespace: "phantom.aptos",
|
|
13
|
-
// },
|
|
14
|
-
rdns: "app.phantom",
|
|
15
|
-
icon: `${baseUrl}/phantomWallet.svg`,
|
|
16
|
-
iconBackground: "#9A8AEE",
|
|
17
|
-
downloadUrls: {
|
|
18
|
-
android: "https://play.google.com/store/apps/details?id=app.phantom",
|
|
19
|
-
ios: "https://apps.apple.com/app/phantom-solana-wallet/1598432977",
|
|
20
|
-
mobile: "https://phantom.app/download",
|
|
21
|
-
qrCode: "https://phantom.app/download",
|
|
22
|
-
chrome: "https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa",
|
|
23
|
-
firefox: "https://addons.mozilla.org/firefox/addon/phantom-app/",
|
|
24
|
-
browserExtension: "https://phantom.app/download",
|
|
25
|
-
},
|
|
26
|
-
mobile: {
|
|
27
|
-
getDeeplink: (dappUrl?: string, _chainId?: number): string => {
|
|
28
|
-
if (!dappUrl) return "";
|
|
29
|
-
const encodedDappUrl = encodeURIComponent(dappUrl);
|
|
30
|
-
return `https://phantom.app/ul/v1/connect?app_url=${encodedDappUrl}`;
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const rabbyWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "rabby",
|
|
5
|
-
name: "Rabby Wallet",
|
|
6
|
-
namespace: "",
|
|
7
|
-
flag: "isRabby",
|
|
8
|
-
icon: `${baseUrl}/rabbyWallet.svg`,
|
|
9
|
-
rdns: "io.rabby",
|
|
10
|
-
iconBackground: "#8697FF",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
chrome: "https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch",
|
|
13
|
-
browserExtension: "https://rabby.io",
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import { isAndroid, isIOS } from "../../../utils/isMobile";
|
|
3
|
-
|
|
4
|
-
export const rainbowWallet = (baseUrl: string): WalletConfig => {
|
|
5
|
-
return {
|
|
6
|
-
id: "rainbow",
|
|
7
|
-
name: "Rainbow",
|
|
8
|
-
namespace: "",
|
|
9
|
-
flag: "isRainbow",
|
|
10
|
-
rdns: "me.rainbow",
|
|
11
|
-
icon: `${baseUrl}/rainbowWallet.svg`,
|
|
12
|
-
iconBackground: "#0c2f78",
|
|
13
|
-
downloadUrls: {
|
|
14
|
-
android:
|
|
15
|
-
"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
16
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
17
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
18
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
19
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit",
|
|
20
|
-
},
|
|
21
|
-
mobile: {
|
|
22
|
-
getUri: (uri: string) => {
|
|
23
|
-
return isAndroid()
|
|
24
|
-
? uri
|
|
25
|
-
: isIOS()
|
|
26
|
-
? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`
|
|
27
|
-
: `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`;
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const ramperWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "ramper",
|
|
6
|
-
name: "Ramper Wallet",
|
|
7
|
-
namespace: "ramper2.provider",
|
|
8
|
-
icon: `${baseUrl}/ramperWallet.svg`,
|
|
9
|
-
iconAccent: "#CDA349",
|
|
10
|
-
iconBackground: "#fff",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
chrome: "https://chromewebstore.google.com/detail/ramper-wallet/nbdhibgjnjpnkajaghbffjbkcgljfgdi",
|
|
13
|
-
browserExtension: "https://www.ramper.xyz/download",
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const readyWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "ready",
|
|
5
|
-
name: "Ready",
|
|
6
|
-
namespace: "",
|
|
7
|
-
icon: `${baseUrl}/readyWallet.svg`,
|
|
8
|
-
iconBackground: "#fff",
|
|
9
|
-
downloadUrls: {
|
|
10
|
-
android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
|
|
11
|
-
ios: "https://apps.apple.com/us/app/argent/id1358741926",
|
|
12
|
-
mobile: "https://www.ready.co/app",
|
|
13
|
-
qrCode: "https://www.ready.co/app",
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const roninWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "ronin",
|
|
6
|
-
name: "Ronin Wallet",
|
|
7
|
-
namespace: "ronin.provider",
|
|
8
|
-
icon: `${baseUrl}/roninWallet.svg`,
|
|
9
|
-
iconBackground: "#ffffff",
|
|
10
|
-
rdns: "com.roninchain.wallet",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
13
|
-
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
14
|
-
mobile: "https://wallet.roninchain.com",
|
|
15
|
-
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
16
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
17
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
18
|
-
browserExtension: "https://wallet.roninchain.com/",
|
|
19
|
-
qrCode: "https://wallet.roninchain.com/",
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const safeWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "safe",
|
|
5
|
-
name: "Safe",
|
|
6
|
-
namespace: "",
|
|
7
|
-
iconAccent: "#12ff80",
|
|
8
|
-
iconBackground: "#fff",
|
|
9
|
-
icon: `${baseUrl}/safeWallet.svg`,
|
|
10
|
-
downloadUrls: {
|
|
11
|
-
// We're opting not to provide a download prompt if the application is not
|
|
12
|
-
// already running as a Safe App within the context of the Safe browser,
|
|
13
|
-
// since it's unlikely to be a desired behavior for users.
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const safeheronWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "safeheron",
|
|
5
|
-
name: "Safeheron",
|
|
6
|
-
namespace: "safeheron",
|
|
7
|
-
flag: "isSafeheron",
|
|
8
|
-
icon: `${baseUrl}/safeheronWallet.svg`,
|
|
9
|
-
iconBackground: "#fff",
|
|
10
|
-
downloadUrls: {
|
|
11
|
-
chrome: "https://chrome.google.com/webstore/detail/safeheron/aiaghdjafpiofpainifbgfgjfpclngoh",
|
|
12
|
-
browserExtension: "https://www.safeheron.com/",
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const safepalWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "safepal",
|
|
6
|
-
name: "SafePal Wallet",
|
|
7
|
-
namespace: "safepalProvider",
|
|
8
|
-
flag: "isSafePal",
|
|
9
|
-
icon: `${baseUrl}/safepalWallet.svg`,
|
|
10
|
-
iconAccent: "#3375BB",
|
|
11
|
-
iconBackground: "#fff",
|
|
12
|
-
downloadUrls: {
|
|
13
|
-
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet",
|
|
14
|
-
ios: "https://apps.apple.com/app/apple-store/id1548297139",
|
|
15
|
-
mobile: "https://www.safepal.com/en/download",
|
|
16
|
-
qrCode: "https://www.safepal.com/en/download",
|
|
17
|
-
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
18
|
-
browserExtension: "https://www.safepal.com/download?product=2",
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const seifWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "seif",
|
|
6
|
-
name: "Seif",
|
|
7
|
-
namespace: "__seif",
|
|
8
|
-
rdns: "com.passkeywallet.seif",
|
|
9
|
-
icon: `${baseUrl}/seifWallet.svg`,
|
|
10
|
-
iconBackground: "#fff",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
chrome: "https://chromewebstore.google.com/detail/seif/albakdmmdafeafbehmcpoejenbeojejl",
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const solflareWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "solflare-wallet",
|
|
6
|
-
name: "SolflareWallet",
|
|
7
|
-
namespace: "",
|
|
8
|
-
solana: {
|
|
9
|
-
namespace: "solflare",
|
|
10
|
-
},
|
|
11
|
-
rdns: "app.solflare",
|
|
12
|
-
icon: `${baseUrl}/solflareWallet.svg`,
|
|
13
|
-
iconBackground: "#fff",
|
|
14
|
-
downloadUrls: {
|
|
15
|
-
android: "https://play.google.com/store/apps/details?id=com.solflare.wallet",
|
|
16
|
-
chrome: "https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",
|
|
17
|
-
ios: "https://apps.apple.com/app/id1667469122",
|
|
18
|
-
mobile: "https://solflare.com/",
|
|
19
|
-
qrCode: "https://solflare.com/",
|
|
20
|
-
},
|
|
21
|
-
mobile: {
|
|
22
|
-
getDeeplink: (dappUrl?: string): string => {
|
|
23
|
-
if (!dappUrl) return "";
|
|
24
|
-
const encodedDappUrl = encodeURIComponent(dappUrl);
|
|
25
|
-
return `https://solflare.com/ul/v1/browse/${encodedDappUrl}?ref=${encodedDappUrl}`;
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const subWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "subwallet",
|
|
6
|
-
name: "SubWallet",
|
|
7
|
-
namespace: "SubWallet",
|
|
8
|
-
rdns: "app.subwallet",
|
|
9
|
-
icon: `${baseUrl}/subWallet.svg`,
|
|
10
|
-
iconBackground: "#fff",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
13
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
14
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
15
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
16
|
-
mobile: "https://www.subwallet.app/download",
|
|
17
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
18
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
19
|
-
qrCode: "https://www.subwallet.app/download",
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const tahoWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
-
return {
|
|
5
|
-
id: "taho",
|
|
6
|
-
name: "Taho",
|
|
7
|
-
namespace: "tally",
|
|
8
|
-
flag: "isTally",
|
|
9
|
-
iconBackground: "#d08d57",
|
|
10
|
-
icon: `${baseUrl}/tahoWallet.svg`,
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
chrome: "https://chrome.google.com/webstore/detail/taho/eajafomhmkipbjmfmhebemolkcicgfmd",
|
|
13
|
-
browserExtension: "https://taho.xyz",
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
|
|
3
|
-
export const talismanWallet = (baseUrl: string): WalletConfig => ({
|
|
4
|
-
id: "talisman",
|
|
5
|
-
name: "Talisman",
|
|
6
|
-
namespace: "talismanEth",
|
|
7
|
-
flag: "isTalisman",
|
|
8
|
-
rdns: "xyz.talisman",
|
|
9
|
-
icon: `${baseUrl}/talismanWallet.svg`,
|
|
10
|
-
iconBackground: "#fff",
|
|
11
|
-
downloadUrls: {
|
|
12
|
-
chrome: "https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld",
|
|
13
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/talisman-wallet-extension/",
|
|
14
|
-
browserExtension: "https://talisman.xyz/download",
|
|
15
|
-
},
|
|
16
|
-
});
|