@funkit/connect 6.0.7 → 6.2.0
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 +32 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -0
- package/dist/components/Icons/PayPalIcon.d.ts +5 -0
- package/dist/index.js +1512 -1422
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +3 -0
- package/dist/providers/FunkitConfigContext.d.ts +5 -0
- package/dist/utils/flags/config.d.ts +2 -27
- package/dist/wallets/walletConnectors/chunk-2GJQ4XZQ.js +87 -0
- package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +70 -0
- package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +99 -0
- package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +94 -0
- package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +92 -0
- package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +66 -0
- package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +110 -0
- package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +93 -0
- package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +95 -0
- package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +98 -0
- package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +100 -0
- package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +92 -0
- package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +106 -0
- package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +69 -0
- package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +218 -0
- package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +103 -0
- package/dist/wallets/walletConnectors/index.js +48 -48
- package/package.json +19 -12
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var bifrostWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
id: "bifrostWallet",
|
|
23
|
+
name: "Bifrost Wallet",
|
|
24
|
+
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
+
iconBackground: "#fff",
|
|
26
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
+
},
|
|
35
|
+
qrCode: shouldUseWalletConnect ? {
|
|
36
|
+
getUri: (uri) => uri,
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
+
step: "scan",
|
|
53
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
} : void 0,
|
|
58
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
+
projectId,
|
|
60
|
+
walletConnectParameters
|
|
61
|
+
}) : getInjectedConnector({
|
|
62
|
+
flag: "isBifrost"
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
bifrostWallet
|
|
69
|
+
};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
|
+
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
+
function isMetaMask(ethereum) {
|
|
13
|
+
if (!ethereum?.isMetaMask) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (ethereum.isApexWallet) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (ethereum.isAvalanche) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (ethereum.isBackpack) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (ethereum.isBifrost) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (ethereum.isBitKeep) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (ethereum.isBitski) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (ethereum.isBlockWallet) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (ethereum.isCoinbaseWallet) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (ethereum.isDawn) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (ethereum.isEnkrypt) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
if (ethereum.isExodus) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (ethereum.isFrame) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (ethereum.isFrontier) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
if (ethereum.isGamestop) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (ethereum.isHyperPay) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (ethereum.isImToken) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (ethereum.isKuCoinWallet) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
if (ethereum.isMathWallet) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (ethereum.isNestWallet) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (ethereum.isOpera) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (ethereum.isPhantom) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
if (ethereum.isPortal) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (ethereum.isRabby) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (ethereum.isRainbow) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
if (ethereum.isStatus) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
if (ethereum.isTalisman) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (ethereum.isTally) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (ethereum.isTokenPocket) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (ethereum.isTokenary) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
if (ethereum.isXDEFI) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (ethereum.isZeal) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
if (ethereum.isZerion) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
var metaMaskWallet = ({
|
|
127
|
+
projectId,
|
|
128
|
+
walletConnectParameters
|
|
129
|
+
}) => {
|
|
130
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
131
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
132
|
+
const getUri = (uri) => {
|
|
133
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
134
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
135
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
136
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
137
|
+
};
|
|
138
|
+
return {
|
|
139
|
+
id: "metaMask",
|
|
140
|
+
name: "MetaMask",
|
|
141
|
+
rdns: "io.metamask",
|
|
142
|
+
iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
|
|
143
|
+
iconAccent: "#f6851a",
|
|
144
|
+
iconBackground: "#fff",
|
|
145
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
146
|
+
downloadUrls: {
|
|
147
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
148
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
149
|
+
mobile: "https://metamask.io/download",
|
|
150
|
+
qrCode: "https://metamask.io/download",
|
|
151
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
152
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
153
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
154
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
155
|
+
browserExtension: "https://metamask.io/download"
|
|
156
|
+
},
|
|
157
|
+
mobile: {
|
|
158
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
159
|
+
},
|
|
160
|
+
qrCode: shouldUseWalletConnect ? {
|
|
161
|
+
getUri,
|
|
162
|
+
instructions: {
|
|
163
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
164
|
+
steps: [
|
|
165
|
+
{
|
|
166
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
167
|
+
step: "install",
|
|
168
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
172
|
+
step: "create",
|
|
173
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
177
|
+
step: "refresh",
|
|
178
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
} : void 0,
|
|
183
|
+
extension: {
|
|
184
|
+
instructions: {
|
|
185
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
186
|
+
steps: [
|
|
187
|
+
{
|
|
188
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
189
|
+
step: "install",
|
|
190
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
194
|
+
step: "create",
|
|
195
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
199
|
+
step: "refresh",
|
|
200
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
206
|
+
projectId,
|
|
207
|
+
walletConnectParameters
|
|
208
|
+
}) : getInjectedConnector({
|
|
209
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
210
|
+
isMetaMask
|
|
211
|
+
) ?? window.ethereum : void 0
|
|
212
|
+
})
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
metaMaskWallet
|
|
218
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var frontierWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isFrontierInjected = hasInjectedProvider({
|
|
17
|
+
namespace: "frontier.ethereum",
|
|
18
|
+
flag: "isFrontier"
|
|
19
|
+
});
|
|
20
|
+
const shouldUseWalletConnect = !isFrontierInjected;
|
|
21
|
+
return {
|
|
22
|
+
id: "frontier",
|
|
23
|
+
name: "Frontier Wallet",
|
|
24
|
+
rdns: "xyz.frontier.wallet",
|
|
25
|
+
installed: isFrontierInjected,
|
|
26
|
+
iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
|
|
27
|
+
iconBackground: "#CC703C",
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
|
|
30
|
+
ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
|
|
31
|
+
qrCode: "https://www.frontier.xyz/download",
|
|
32
|
+
chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
|
|
33
|
+
browserExtension: "https://www.frontier.xyz/download"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
+
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
38
|
+
} : void 0
|
|
39
|
+
},
|
|
40
|
+
qrCode: shouldUseWalletConnect ? {
|
|
41
|
+
getUri: (uri) => {
|
|
42
|
+
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
43
|
+
},
|
|
44
|
+
instructions: {
|
|
45
|
+
learnMoreUrl: "https://help.frontier.xyz/en/",
|
|
46
|
+
steps: [
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.im_token.qr_code.step1.description",
|
|
49
|
+
step: "install",
|
|
50
|
+
title: "wallet_connectors.im_token.qr_code.step1.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.im_token.qr_code.step2.description",
|
|
54
|
+
step: "create",
|
|
55
|
+
title: "wallet_connectors.im_token.qr_code.step2.title"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
description: "wallet_connectors.im_token.qr_code.step3.description",
|
|
59
|
+
step: "scan",
|
|
60
|
+
title: "wallet_connectors.im_token.qr_code.step3.title"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
} : void 0,
|
|
65
|
+
extension: {
|
|
66
|
+
instructions: {
|
|
67
|
+
learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
|
|
68
|
+
steps: [
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.frontier.extension.step1.description",
|
|
71
|
+
step: "install",
|
|
72
|
+
title: "wallet_connectors.frontier.extension.step1.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.frontier.extension.step2.description",
|
|
76
|
+
step: "create",
|
|
77
|
+
title: "wallet_connectors.frontier.extension.step2.title"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
description: "wallet_connectors.frontier.extension.step3.description",
|
|
81
|
+
step: "refresh",
|
|
82
|
+
title: "wallet_connectors.frontier.extension.step3.title"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
|
|
88
|
+
namespace: "frontier.ethereum",
|
|
89
|
+
flag: "isFrontier"
|
|
90
|
+
})
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
frontierWallet
|
|
96
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
+
var subWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
+
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
+
const getUriMobile = (uri) => {
|
|
18
|
+
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
+
};
|
|
20
|
+
const getUriQR = (uri) => {
|
|
21
|
+
return uri;
|
|
22
|
+
};
|
|
23
|
+
const mobileConnector = {
|
|
24
|
+
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
+
};
|
|
26
|
+
let qrConnector = void 0;
|
|
27
|
+
if (shouldUseWalletConnect) {
|
|
28
|
+
qrConnector = {
|
|
29
|
+
getUri: getUriQR,
|
|
30
|
+
instructions: {
|
|
31
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
+
steps: [
|
|
33
|
+
{
|
|
34
|
+
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
+
step: "install",
|
|
36
|
+
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
+
step: "create",
|
|
41
|
+
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
+
step: "scan",
|
|
46
|
+
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const extensionConnector = {
|
|
53
|
+
instructions: {
|
|
54
|
+
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
+
steps: [
|
|
56
|
+
{
|
|
57
|
+
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
+
step: "install",
|
|
59
|
+
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
+
step: "create",
|
|
64
|
+
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
+
step: "refresh",
|
|
69
|
+
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
id: "subwallet",
|
|
76
|
+
name: "SubWallet",
|
|
77
|
+
rdns: "app.subwallet",
|
|
78
|
+
iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
|
|
79
|
+
iconBackground: "#fff",
|
|
80
|
+
installed: isSubWalletInjected || void 0,
|
|
81
|
+
downloadUrls: {
|
|
82
|
+
browserExtension: "https://www.subwallet.app/download",
|
|
83
|
+
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
84
|
+
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
85
|
+
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
86
|
+
mobile: "https://www.subwallet.app/download",
|
|
87
|
+
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
88
|
+
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
89
|
+
qrCode: "https://www.subwallet.app/download"
|
|
90
|
+
},
|
|
91
|
+
mobile: mobileConnector,
|
|
92
|
+
qrCode: qrConnector,
|
|
93
|
+
extension: extensionConnector,
|
|
94
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
95
|
+
projectId,
|
|
96
|
+
walletConnectParameters
|
|
97
|
+
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
subWallet
|
|
103
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-RNBEDQHF.js";
|
|
5
2
|
import {
|
|
6
3
|
walletConnectWallet
|
|
7
4
|
} from "./chunk-NP5QGWNL.js";
|
|
@@ -9,14 +6,17 @@ import {
|
|
|
9
6
|
zerionWallet
|
|
10
7
|
} from "./chunk-SULRQO27.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-RNBEDQHF.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-JWFF4AAL.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-DRO6WYMM.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
tahoWallet
|
|
19
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-2L43XSW3.js";
|
|
@@ -26,42 +26,42 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
28
|
} from "./chunk-VYBAYMP3.js";
|
|
29
|
-
import {
|
|
30
|
-
uniswapWallet
|
|
31
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
32
29
|
import {
|
|
33
30
|
xdefiWallet
|
|
34
31
|
} from "./chunk-BOU4WKRZ.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
38
35
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
oneInchWallet
|
|
37
|
+
} from "./chunk-OESTDX6I.js";
|
|
41
38
|
import {
|
|
42
39
|
rabbyWallet
|
|
43
40
|
} from "./chunk-BBOM42DL.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-2KUBG3S6.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
ramperWallet
|
|
46
|
+
} from "./chunk-BYXPFMI7.js";
|
|
50
47
|
import {
|
|
51
48
|
safeWallet
|
|
52
49
|
} from "./chunk-BQQQL6UD.js";
|
|
53
50
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
51
|
+
safeheronWallet
|
|
52
|
+
} from "./chunk-RZIO5TFF.js";
|
|
53
|
+
import {
|
|
54
|
+
roninWallet
|
|
55
|
+
} from "./chunk-NWIQNBJU.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-NT2HYJKW.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-2HYNUNAS.js";
|
|
62
59
|
import {
|
|
63
60
|
ledgerWallet
|
|
64
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-2HYNUNAS.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
@@ -72,35 +72,35 @@ import {
|
|
|
72
72
|
okxWallet
|
|
73
73
|
} from "./chunk-TDIEHTMB.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import {
|
|
78
|
-
oneInchWallet
|
|
79
|
-
} from "./chunk-OESTDX6I.js";
|
|
75
|
+
oneKeyWallet
|
|
76
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
80
77
|
import {
|
|
81
78
|
phantomWallet
|
|
82
79
|
} from "./chunk-362NXNTM.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
omniWallet
|
|
82
|
+
} from "./chunk-7CUY5G6R.js";
|
|
83
|
+
import {
|
|
84
|
+
frameWallet
|
|
85
|
+
} from "./chunk-IFON7E6U.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
88
|
} from "./chunk-TCAGNB4B.js";
|
|
89
89
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
frameWallet
|
|
94
|
-
} from "./chunk-IFON7E6U.js";
|
|
90
|
+
foxWallet
|
|
91
|
+
} from "./chunk-7QONTUXT.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
98
95
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
96
|
+
gateWallet
|
|
97
|
+
} from "./chunk-FKJJQNKX.js";
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
101
|
+
import {
|
|
102
|
+
injectedWallet
|
|
103
|
+
} from "./chunk-XWUJE7MW.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
106
|
} from "./chunk-M3NZ6R2E.js";
|
|
@@ -110,40 +110,40 @@ import {
|
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-OBOVHCEI.js";
|
|
113
|
+
import {
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-H4IRCEZN.js";
|
|
113
116
|
import {
|
|
114
117
|
coreWallet
|
|
115
118
|
} from "./chunk-VR4TBQ6S.js";
|
|
116
119
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
dawnWallet
|
|
121
|
+
} from "./chunk-HWPKCIBE.js";
|
|
119
122
|
import {
|
|
120
123
|
enkryptWallet
|
|
121
124
|
} from "./chunk-OLOIXTYS.js";
|
|
122
125
|
import {
|
|
123
126
|
desigWallet
|
|
124
127
|
} from "./chunk-OPAZMNA7.js";
|
|
125
|
-
import {
|
|
126
|
-
dawnWallet
|
|
127
|
-
} from "./chunk-HWPKCIBE.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
133
|
} from "./chunk-A5N6B5UW.js";
|
|
134
|
-
import {
|
|
135
|
-
bitskiWallet
|
|
136
|
-
} from "./chunk-HS3C7OQV.js";
|
|
137
134
|
import {
|
|
138
135
|
bitgetWallet
|
|
139
136
|
} from "./chunk-TDAVGY5F.js";
|
|
140
|
-
import {
|
|
141
|
-
bitverseWallet
|
|
142
|
-
} from "./chunk-3HZRRP4Y.js";
|
|
143
137
|
import {
|
|
144
138
|
bloomWallet
|
|
145
139
|
} from "./chunk-S27IADFU.js";
|
|
140
|
+
import {
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
146
143
|
import "./chunk-23WIEY36.js";
|
|
144
|
+
import {
|
|
145
|
+
bitskiWallet
|
|
146
|
+
} from "./chunk-HS3C7OQV.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
|
149
149
|
} from "./chunk-BPZ2XJO2.js";
|