@funkit/connect 3.0.0-next.6 → 3.0.0-next.7
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/CHANGELOG.md +9 -0
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/CloseButton/CloseButton.d.ts +6 -3
- package/dist/components/Dialog/Dialog.d.ts +5 -3
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +2 -3
- package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +1 -0
- package/dist/components/FunButton/FunBackButton.d.ts +6 -3
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +6 -10
- package/dist/components/FunSkeletonLoader/FunSkeletonCircle.d.ts +4 -13
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
- package/dist/components/Icons/TwoFactor.d.ts +2 -0
- package/dist/components/ProfileDetails/FunProfileViews/Home/Home.css.d.ts +1 -0
- package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +1 -0
- package/dist/components/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -0
- package/dist/css/sprinkles.css.d.ts +21 -21
- package/dist/hooks/useScrollDivider.d.ts +1 -0
- package/dist/index.css +1951 -1794
- package/dist/index.js +731 -663
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-45BGLKK3.js +149 -0
- package/dist/wallets/walletConnectors/chunk-A6MZY5ZZ.js +81 -0
- package/dist/wallets/walletConnectors/chunk-ARIYPPEC.js +92 -0
- package/dist/wallets/walletConnectors/chunk-BEAW5Y5M.js +60 -0
- package/dist/wallets/walletConnectors/chunk-CW3DUKXK.js +102 -0
- package/dist/wallets/walletConnectors/chunk-E5XC6KBV.js +95 -0
- package/dist/wallets/walletConnectors/chunk-FCHEJLHR.js +101 -0
- package/dist/wallets/walletConnectors/chunk-HKN7647Q.js +73 -0
- package/dist/wallets/walletConnectors/chunk-IOQWKPOO.js +71 -0
- package/dist/wallets/walletConnectors/chunk-LPQBQIZL.js +108 -0
- package/dist/wallets/walletConnectors/chunk-LTIIUGMZ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-PIZ2XVGH.js +60 -0
- package/dist/wallets/walletConnectors/chunk-RXUGTOMT.js +60 -0
- package/dist/wallets/walletConnectors/chunk-VJ5C6RXN.js +98 -0
- package/dist/wallets/walletConnectors/chunk-WMLYUYMP.js +94 -0
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +84 -84
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -3
- /package/dist/{utils → consts}/checkoutFees.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-RETKWSKD.js";
|
|
4
|
+
} from "../chunk-IOQWKPOO.js";
|
|
6
5
|
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-RETKWSKD.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-RETKWSKD.js";
|
|
4
|
+
} from "../chunk-FCHEJLHR.js";
|
|
6
5
|
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-RETKWSKD.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
import {
|
|
10
|
+
isAndroid,
|
|
11
|
+
isIOS
|
|
12
|
+
} from "./chunk-RETKWSKD.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
+
function isMetaMask(ethereum) {
|
|
16
|
+
if (!ethereum?.isMetaMask) return false;
|
|
17
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
18
|
+
return false;
|
|
19
|
+
if (ethereum.isApexWallet) return false;
|
|
20
|
+
if (ethereum.isAvalanche) return false;
|
|
21
|
+
if (ethereum.isBackpack) return false;
|
|
22
|
+
if (ethereum.isBifrost) return false;
|
|
23
|
+
if (ethereum.isBitKeep) return false;
|
|
24
|
+
if (ethereum.isBitski) return false;
|
|
25
|
+
if (ethereum.isBlockWallet) return false;
|
|
26
|
+
if (ethereum.isCoinbaseWallet) return false;
|
|
27
|
+
if (ethereum.isDawn) return false;
|
|
28
|
+
if (ethereum.isEnkrypt) return false;
|
|
29
|
+
if (ethereum.isExodus) return false;
|
|
30
|
+
if (ethereum.isFrame) return false;
|
|
31
|
+
if (ethereum.isFrontier) return false;
|
|
32
|
+
if (ethereum.isGamestop) return false;
|
|
33
|
+
if (ethereum.isHyperPay) return false;
|
|
34
|
+
if (ethereum.isImToken) return false;
|
|
35
|
+
if (ethereum.isKuCoinWallet) return false;
|
|
36
|
+
if (ethereum.isMathWallet) return false;
|
|
37
|
+
if (ethereum.isNestWallet) return false;
|
|
38
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
39
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
40
|
+
return false;
|
|
41
|
+
if (ethereum.isOpera) return false;
|
|
42
|
+
if (ethereum.isPhantom) return false;
|
|
43
|
+
if (ethereum.isPortal) return false;
|
|
44
|
+
if (ethereum.isRabby) return false;
|
|
45
|
+
if (ethereum.isRainbow) return false;
|
|
46
|
+
if (ethereum.isStatus) return false;
|
|
47
|
+
if (ethereum.isTalisman) return false;
|
|
48
|
+
if (ethereum.isTally) return false;
|
|
49
|
+
if (ethereum.isTokenPocket) return false;
|
|
50
|
+
if (ethereum.isTokenary) return false;
|
|
51
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
52
|
+
if (ethereum.isXDEFI) return false;
|
|
53
|
+
if (ethereum.isZeal) return false;
|
|
54
|
+
if (ethereum.isZerion) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
var metaMaskWallet = ({
|
|
58
|
+
projectId,
|
|
59
|
+
walletConnectParameters
|
|
60
|
+
}) => {
|
|
61
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
62
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
63
|
+
const getUri = (uri) => {
|
|
64
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
65
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
66
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
67
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
id: "metaMask",
|
|
71
|
+
name: "MetaMask",
|
|
72
|
+
rdns: "io.metamask",
|
|
73
|
+
iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
|
|
74
|
+
iconAccent: "#f6851a",
|
|
75
|
+
iconBackground: "#fff",
|
|
76
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
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: shouldUseWalletConnect ? getUri : void 0
|
|
90
|
+
},
|
|
91
|
+
qrCode: shouldUseWalletConnect ? {
|
|
92
|
+
getUri,
|
|
93
|
+
instructions: {
|
|
94
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
95
|
+
steps: [
|
|
96
|
+
{
|
|
97
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
98
|
+
step: "install",
|
|
99
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
103
|
+
step: "create",
|
|
104
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
108
|
+
step: "refresh",
|
|
109
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
} : void 0,
|
|
114
|
+
extension: {
|
|
115
|
+
instructions: {
|
|
116
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
117
|
+
steps: [
|
|
118
|
+
{
|
|
119
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
120
|
+
step: "install",
|
|
121
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
125
|
+
step: "create",
|
|
126
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
130
|
+
step: "refresh",
|
|
131
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
137
|
+
projectId,
|
|
138
|
+
walletConnectParameters
|
|
139
|
+
}) : getInjectedConnector({
|
|
140
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
141
|
+
isMetaMask
|
|
142
|
+
) ?? window.ethereum : void 0
|
|
143
|
+
})
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
metaMaskWallet
|
|
149
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
isMobile
|
|
7
|
+
} from "./chunk-RETKWSKD.js";
|
|
8
|
+
|
|
9
|
+
// src/wallets/walletConnectors/bloomWallet/bloomWallet.ts
|
|
10
|
+
var bloomWallet = ({
|
|
11
|
+
projectId,
|
|
12
|
+
walletConnectParameters
|
|
13
|
+
}) => ({
|
|
14
|
+
id: "bloomWallet",
|
|
15
|
+
name: "Bloom Wallet",
|
|
16
|
+
iconBackground: "#000",
|
|
17
|
+
iconAccent: "#000",
|
|
18
|
+
hidden: () => isMobile(),
|
|
19
|
+
iconUrl: async () => (await import("./bloomWallet-MXLAOWS6.js")).default,
|
|
20
|
+
downloadUrls: {
|
|
21
|
+
qrCode: "https://bloomwallet.io/",
|
|
22
|
+
windows: "https://bloomwallet.io/",
|
|
23
|
+
macos: "https://bloomwallet.io/",
|
|
24
|
+
linux: "https://bloomwallet.io/",
|
|
25
|
+
desktop: "https://bloomwallet.io/"
|
|
26
|
+
},
|
|
27
|
+
qrCode: {
|
|
28
|
+
getUri: (uri) => `bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
|
|
29
|
+
instructions: {
|
|
30
|
+
learnMoreUrl: "https://bloomwallet.io/",
|
|
31
|
+
steps: [
|
|
32
|
+
{
|
|
33
|
+
description: "wallet_connectors.bloom.qr_code.step1.description",
|
|
34
|
+
step: "install",
|
|
35
|
+
title: "wallet_connectors.bloom.qr_code.step1.title"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
description: "wallet_connectors.bloom.qr_code.step2.description",
|
|
39
|
+
step: "create",
|
|
40
|
+
title: "wallet_connectors.bloom.qr_code.step2.title"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.bloom.qr_code.step3.description",
|
|
44
|
+
step: "refresh",
|
|
45
|
+
title: "wallet_connectors.bloom.qr_code.step3.title"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
desktop: {
|
|
51
|
+
getUri: (uri) => `bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
|
|
52
|
+
instructions: {
|
|
53
|
+
learnMoreUrl: "https://bloomwallet.io/",
|
|
54
|
+
steps: [
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.bloom.desktop.step1.description",
|
|
57
|
+
step: "install",
|
|
58
|
+
title: "wallet_connectors.bloom.desktop.step1.title"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.bloom.desktop.step2.description",
|
|
62
|
+
step: "create",
|
|
63
|
+
title: "wallet_connectors.bloom.desktop.step2.title"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.bloom.desktop.step3.description",
|
|
67
|
+
step: "refresh",
|
|
68
|
+
title: "wallet_connectors.bloom.desktop.step3.title"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
createConnector: getWalletConnectConnector({
|
|
74
|
+
projectId,
|
|
75
|
+
walletConnectParameters
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
bloomWallet
|
|
81
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
isAndroid
|
|
7
|
+
} from "./chunk-RETKWSKD.js";
|
|
8
|
+
|
|
9
|
+
// src/wallets/walletConnectors/ledgerWallet/ledgerWallet.ts
|
|
10
|
+
var ledgerWallet = ({
|
|
11
|
+
projectId,
|
|
12
|
+
walletConnectParameters
|
|
13
|
+
}) => ({
|
|
14
|
+
id: "ledger",
|
|
15
|
+
iconBackground: "#000",
|
|
16
|
+
iconAccent: "#000",
|
|
17
|
+
name: "Ledger",
|
|
18
|
+
iconUrl: async () => (await import("./ledgerWallet-KZKJ5Q2S.js")).default,
|
|
19
|
+
downloadUrls: {
|
|
20
|
+
android: "https://play.google.com/store/apps/details?id=com.ledger.live",
|
|
21
|
+
ios: "https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",
|
|
22
|
+
mobile: "https://www.ledger.com/ledger-live",
|
|
23
|
+
qrCode: "https://r354.adj.st/?adj_t=t2esmlk",
|
|
24
|
+
windows: "https://www.ledger.com/ledger-live/download",
|
|
25
|
+
macos: "https://www.ledger.com/ledger-live/download",
|
|
26
|
+
linux: "https://www.ledger.com/ledger-live/download",
|
|
27
|
+
desktop: "https://www.ledger.com/ledger-live"
|
|
28
|
+
},
|
|
29
|
+
mobile: {
|
|
30
|
+
getUri: (uri) => {
|
|
31
|
+
return isAndroid() ? uri : `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
desktop: {
|
|
35
|
+
getUri: (uri) => {
|
|
36
|
+
return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
37
|
+
},
|
|
38
|
+
instructions: {
|
|
39
|
+
learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
|
|
40
|
+
steps: [
|
|
41
|
+
{
|
|
42
|
+
description: "wallet_connectors.ledger.desktop.step1.description",
|
|
43
|
+
step: "install",
|
|
44
|
+
title: "wallet_connectors.ledger.desktop.step1.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.ledger.desktop.step2.description",
|
|
48
|
+
step: "create",
|
|
49
|
+
title: "wallet_connectors.ledger.desktop.step2.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.ledger.desktop.step3.description",
|
|
53
|
+
step: "connect",
|
|
54
|
+
title: "wallet_connectors.ledger.desktop.step3.title"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
qrCode: {
|
|
60
|
+
getUri: (uri) => {
|
|
61
|
+
return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
62
|
+
},
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.ledger.qr_code.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.ledger.qr_code.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.ledger.qr_code.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.ledger.qr_code.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.ledger.qr_code.step3.description",
|
|
78
|
+
step: "scan",
|
|
79
|
+
title: "wallet_connectors.ledger.qr_code.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
ledgerWallet
|
|
92
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
isAndroid
|
|
7
|
+
} from "./chunk-RETKWSKD.js";
|
|
8
|
+
|
|
9
|
+
// src/wallets/walletConnectors/argentWallet/argentWallet.ts
|
|
10
|
+
var argentWallet = ({
|
|
11
|
+
projectId,
|
|
12
|
+
walletConnectParameters
|
|
13
|
+
}) => ({
|
|
14
|
+
id: "argent",
|
|
15
|
+
name: "Argent",
|
|
16
|
+
iconUrl: async () => (await import("./argentWallet-M6SBG4CU.js")).default,
|
|
17
|
+
iconBackground: "#fff",
|
|
18
|
+
downloadUrls: {
|
|
19
|
+
android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
|
|
20
|
+
ios: "https://apps.apple.com/us/app/argent/id1358741926",
|
|
21
|
+
mobile: "https://argent.xyz/download-argent",
|
|
22
|
+
qrCode: "https://argent.link/app"
|
|
23
|
+
},
|
|
24
|
+
mobile: {
|
|
25
|
+
getUri: (uri) => {
|
|
26
|
+
return isAndroid() ? uri : `argent://app/wc?uri=${encodeURIComponent(uri)}`;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
qrCode: {
|
|
30
|
+
getUri: (uri) => uri,
|
|
31
|
+
instructions: {
|
|
32
|
+
learnMoreUrl: "https://argent.xyz/learn/what-is-a-crypto-wallet/",
|
|
33
|
+
steps: [
|
|
34
|
+
{
|
|
35
|
+
description: "wallet_connectors.argent.qr_code.step1.description",
|
|
36
|
+
step: "install",
|
|
37
|
+
title: "wallet_connectors.argent.qr_code.step1.title"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.argent.qr_code.step2.description",
|
|
41
|
+
step: "create",
|
|
42
|
+
title: "wallet_connectors.argent.qr_code.step2.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.argent.qr_code.step3.description",
|
|
46
|
+
step: "scan",
|
|
47
|
+
title: "wallet_connectors.argent.qr_code.step3.title"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
createConnector: getWalletConnectConnector({
|
|
53
|
+
projectId,
|
|
54
|
+
walletConnectParameters
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
argentWallet
|
|
60
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
import {
|
|
10
|
+
isIOS
|
|
11
|
+
} from "./chunk-RETKWSKD.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
14
|
+
var zerionWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isZerionInjected = hasInjectedProvider({
|
|
19
|
+
namespace: "zerionWallet",
|
|
20
|
+
flag: "isZerion"
|
|
21
|
+
});
|
|
22
|
+
const shouldUseWalletConnect = !isZerionInjected;
|
|
23
|
+
const getUri = (uri) => {
|
|
24
|
+
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
id: "zerion",
|
|
28
|
+
name: "Zerion",
|
|
29
|
+
rdns: "io.zerion.wallet",
|
|
30
|
+
iconUrl: async () => (await import("./zerionWallet-CYFHB5PA.js")).default,
|
|
31
|
+
iconAccent: "#2962ef",
|
|
32
|
+
iconBackground: "#2962ef",
|
|
33
|
+
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
34
|
+
downloadUrls: {
|
|
35
|
+
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
36
|
+
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
37
|
+
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
38
|
+
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
39
|
+
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
40
|
+
browserExtension: "https://zerion.io/extension"
|
|
41
|
+
},
|
|
42
|
+
mobile: {
|
|
43
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
44
|
+
},
|
|
45
|
+
qrCode: shouldUseWalletConnect ? {
|
|
46
|
+
getUri,
|
|
47
|
+
instructions: {
|
|
48
|
+
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
49
|
+
steps: [
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
52
|
+
step: "install",
|
|
53
|
+
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
57
|
+
step: "create",
|
|
58
|
+
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
62
|
+
step: "scan",
|
|
63
|
+
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
} : void 0,
|
|
68
|
+
extension: {
|
|
69
|
+
instructions: {
|
|
70
|
+
learnMoreUrl: "https://help.zerion.io/en/",
|
|
71
|
+
steps: [
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.zerion.extension.step1.description",
|
|
74
|
+
step: "install",
|
|
75
|
+
title: "wallet_connectors.zerion.extension.step1.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.zerion.extension.step2.description",
|
|
79
|
+
step: "create",
|
|
80
|
+
title: "wallet_connectors.zerion.extension.step2.title"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
description: "wallet_connectors.zerion.extension.step3.description",
|
|
84
|
+
step: "refresh",
|
|
85
|
+
title: "wallet_connectors.zerion.extension.step3.title"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
91
|
+
projectId,
|
|
92
|
+
walletConnectParameters
|
|
93
|
+
}) : getInjectedConnector({
|
|
94
|
+
namespace: "zerionWallet",
|
|
95
|
+
flag: "isZerion"
|
|
96
|
+
})
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
zerionWallet
|
|
102
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
import {
|
|
10
|
+
isMobile
|
|
11
|
+
} from "./chunk-RETKWSKD.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
14
|
+
var tokenPocketWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
19
|
+
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
20
|
+
const getUri = (uri) => {
|
|
21
|
+
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "tokenPocket",
|
|
25
|
+
name: "TokenPocket",
|
|
26
|
+
rdns: "pro.tokenpocket",
|
|
27
|
+
iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
|
|
28
|
+
iconBackground: "#2980FE",
|
|
29
|
+
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
30
|
+
downloadUrls: {
|
|
31
|
+
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
32
|
+
browserExtension: "https://extension.tokenpocket.pro/",
|
|
33
|
+
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
34
|
+
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
35
|
+
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
36
|
+
mobile: "https://tokenpocket.pro/en/download/app"
|
|
37
|
+
},
|
|
38
|
+
mobile: {
|
|
39
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
40
|
+
},
|
|
41
|
+
qrCode: shouldUseWalletConnect ? {
|
|
42
|
+
getUri,
|
|
43
|
+
instructions: {
|
|
44
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
45
|
+
steps: [
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
48
|
+
step: "install",
|
|
49
|
+
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
53
|
+
step: "create",
|
|
54
|
+
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
58
|
+
step: "scan",
|
|
59
|
+
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
} : void 0,
|
|
64
|
+
extension: {
|
|
65
|
+
instructions: {
|
|
66
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
67
|
+
steps: [
|
|
68
|
+
{
|
|
69
|
+
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
70
|
+
step: "install",
|
|
71
|
+
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
75
|
+
step: "create",
|
|
76
|
+
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
80
|
+
step: "refresh",
|
|
81
|
+
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
87
|
+
projectId,
|
|
88
|
+
walletConnectParameters
|
|
89
|
+
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
tokenPocketWallet
|
|
95
|
+
};
|