@funkit/connect 2.0.8 → 2.0.9
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 +7 -0
- package/dist/index.js +1 -1
- package/dist/wallets/walletConnectors/index.js +68 -68
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/chunk-32KBKKGT.js +0 -182
- package/dist/wallets/walletConnectors/chunk-3CLNL7LR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-3QXMJHL4.js +0 -96
- package/dist/wallets/walletConnectors/chunk-5ZGE5SN5.js +0 -96
- package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +0 -96
- package/dist/wallets/walletConnectors/chunk-AFONKDII.js +0 -71
- package/dist/wallets/walletConnectors/chunk-BMHNXJZK.js +0 -105
- package/dist/wallets/walletConnectors/chunk-BXM2BUWT.js +0 -95
- package/dist/wallets/walletConnectors/chunk-CMXZK5RR.js +0 -94
- package/dist/wallets/walletConnectors/chunk-CNTLU4ZV.js +0 -92
- package/dist/wallets/walletConnectors/chunk-EO7KIAWM.js +0 -101
- package/dist/wallets/walletConnectors/chunk-EXN2ODSI.js +0 -73
- package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +0 -105
- package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +0 -71
- package/dist/wallets/walletConnectors/chunk-G4DNQN67.js +0 -102
- package/dist/wallets/walletConnectors/chunk-GXP3HLP7.js +0 -103
- package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +0 -102
- package/dist/wallets/walletConnectors/chunk-KZFAL4RZ.js +0 -27
- package/dist/wallets/walletConnectors/chunk-LJRV5JY7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-LOEDYNWO.js +0 -98
- package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +0 -98
- package/dist/wallets/walletConnectors/chunk-ND5YG63V.js +0 -87
- package/dist/wallets/walletConnectors/chunk-PQSJXOGA.js +0 -107
- package/dist/wallets/walletConnectors/chunk-QGQISKXF.js +0 -94
- package/dist/wallets/walletConnectors/chunk-TKXMLZXG.js +0 -66
- package/dist/wallets/walletConnectors/chunk-TUK3HNKY.js +0 -182
- package/dist/wallets/walletConnectors/chunk-UWU574XS.js +0 -95
- package/dist/wallets/walletConnectors/chunk-YUIRWCAS.js +0 -101
- package/dist/wallets/walletConnectors/chunk-ZBQT5PV6.js +0 -98
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -15473,7 +15473,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
15473
15473
|
localStorage.setItem(storageKey5, version);
|
|
15474
15474
|
}
|
|
15475
15475
|
function getCurrentSdkVersion() {
|
|
15476
|
-
return "2.0.
|
|
15476
|
+
return "2.0.9";
|
|
15477
15477
|
}
|
|
15478
15478
|
function useFingerprint() {
|
|
15479
15479
|
const fingerprint = useCallback32(() => {
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-JNZ3EYC7.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
zerionWallet
|
|
7
|
+
} from "./chunk-OPO2D6GL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
tokenaryWallet
|
|
10
|
+
} from "./chunk-MD5OPFAT.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-HTIWZZPO.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
talismanWallet
|
|
16
|
+
} from "./chunk-R2GYJ376.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenPocketWallet
|
|
19
19
|
} from "./chunk-MOAWRDEM.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
tahoWallet
|
|
22
|
+
} from "./chunk-PILSRRPJ.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-XRSY4JVH.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
xdefiWallet
|
|
31
|
-
} from "./chunk-JNZ3EYC7.js";
|
|
32
|
-
import {
|
|
33
|
-
zerionWallet
|
|
34
|
-
} from "./chunk-OPO2D6GL.js";
|
|
27
|
+
walletConnectWallet
|
|
28
|
+
} from "./chunk-ASPRR7T3.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-Z5QFIFDP.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
trustWallet
|
|
34
|
+
} from "./chunk-MFS6NY6T.js";
|
|
41
35
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-NIVH7ULX.js";
|
|
44
38
|
import {
|
|
45
39
|
rabbyWallet
|
|
46
40
|
} from "./chunk-5SIHQ5GA.js";
|
|
41
|
+
import {
|
|
42
|
+
omniWallet
|
|
43
|
+
} from "./chunk-SVN7OEQR.js";
|
|
47
44
|
import {
|
|
48
45
|
safeWallet
|
|
49
46
|
} from "./chunk-D3DCQ72J.js";
|
|
47
|
+
import {
|
|
48
|
+
ramperWallet
|
|
49
|
+
} from "./chunk-XEZPRJPV.js";
|
|
50
|
+
import {
|
|
51
|
+
roninWallet
|
|
52
|
+
} from "./chunk-NK3DYIAB.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-FQDX6QIP.js";
|
|
@@ -54,80 +57,86 @@ import {
|
|
|
54
57
|
safepalWallet
|
|
55
58
|
} from "./chunk-XB2GFXBL.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
oktoWallet
|
|
61
|
+
} from "./chunk-WKHTUEF5.js";
|
|
62
|
+
import {
|
|
63
|
+
mewWallet
|
|
64
|
+
} from "./chunk-ZCSUP7CX.js";
|
|
59
65
|
import {
|
|
60
66
|
metaMaskWallet
|
|
61
67
|
} from "./chunk-3F5GNHAG.js";
|
|
68
|
+
import {
|
|
69
|
+
ledgerWallet
|
|
70
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
62
71
|
import {
|
|
63
72
|
okxWallet
|
|
64
73
|
} from "./chunk-XUXFYTCV.js";
|
|
65
|
-
import {
|
|
66
|
-
imTokenWallet
|
|
67
|
-
} from "./chunk-5MVV7OVS.js";
|
|
68
74
|
import {
|
|
69
75
|
oneInchWallet
|
|
70
76
|
} from "./chunk-LCPIZUR3.js";
|
|
71
77
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
78
|
+
rainbowWallet
|
|
79
|
+
} from "./chunk-WH7S23VZ.js";
|
|
74
80
|
import {
|
|
75
81
|
phantomWallet
|
|
76
82
|
} from "./chunk-4PTY6XNU.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
omniWallet
|
|
82
|
-
} from "./chunk-SVN7OEQR.js";
|
|
83
|
-
import {
|
|
84
|
-
coinbaseWallet
|
|
85
|
-
} from "./chunk-O77H3VWW.js";
|
|
84
|
+
desigWallet
|
|
85
|
+
} from "./chunk-P4C7ZHIS.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-LR37V45H.js";
|
|
89
|
+
import {
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-OXWTS7HX.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
94
|
} from "./chunk-S2IWMXKX.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-5MVV7OVS.js";
|
|
98
|
+
import {
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-X6T3CICZ.js";
|
|
92
101
|
import {
|
|
93
102
|
injectedWallet
|
|
94
103
|
} from "./chunk-GUJHPWTU.js";
|
|
95
104
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-KJWMF6GZ.js";
|
|
98
107
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
108
|
+
coin98Wallet
|
|
109
|
+
} from "./chunk-R5GNFRXW.js";
|
|
101
110
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
111
|
+
clvWallet
|
|
112
|
+
} from "./chunk-2DWBVWFI.js";
|
|
104
113
|
import {
|
|
105
114
|
coreWallet
|
|
106
115
|
} from "./chunk-WSILDNIW.js";
|
|
107
116
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
117
|
+
coinbaseWallet
|
|
118
|
+
} from "./chunk-O77H3VWW.js";
|
|
119
|
+
import {
|
|
120
|
+
foxWallet
|
|
121
|
+
} from "./chunk-M4SPCKW4.js";
|
|
110
122
|
import {
|
|
111
123
|
dawnWallet
|
|
112
124
|
} from "./chunk-QUFNIKMV.js";
|
|
113
|
-
import {
|
|
114
|
-
bifrostWallet
|
|
115
|
-
} from "./chunk-PJRUHFBT.js";
|
|
116
125
|
import {
|
|
117
126
|
enkryptWallet
|
|
118
127
|
} from "./chunk-SJWHYD45.js";
|
|
119
128
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
129
|
+
bitverseWallet
|
|
130
|
+
} from "./chunk-NL4I7WOT.js";
|
|
122
131
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-NZ5G23JP.js";
|
|
134
|
+
import {
|
|
135
|
+
bifrostWallet
|
|
136
|
+
} from "./chunk-PJRUHFBT.js";
|
|
125
137
|
import {
|
|
126
138
|
bitgetWallet
|
|
127
139
|
} from "./chunk-VMTIFEE6.js";
|
|
128
|
-
import {
|
|
129
|
-
argentWallet
|
|
130
|
-
} from "./chunk-NZ5G23JP.js";
|
|
131
140
|
import {
|
|
132
141
|
bitskiWallet
|
|
133
142
|
} from "./chunk-IMZRCMZR.js";
|
|
@@ -135,19 +144,10 @@ import {
|
|
|
135
144
|
bloomWallet
|
|
136
145
|
} from "./chunk-NTGZF5BY.js";
|
|
137
146
|
import "./chunk-ZOLACFTK.js";
|
|
138
|
-
import {
|
|
139
|
-
braveWallet
|
|
140
|
-
} from "./chunk-KJWMF6GZ.js";
|
|
141
147
|
import {
|
|
142
148
|
bybitWallet
|
|
143
149
|
} from "./chunk-BCXBFAL4.js";
|
|
144
|
-
import {
|
|
145
|
-
coin98Wallet
|
|
146
|
-
} from "./chunk-R5GNFRXW.js";
|
|
147
150
|
import "./chunk-F3VCNZXS.js";
|
|
148
|
-
import {
|
|
149
|
-
bitverseWallet
|
|
150
|
-
} from "./chunk-NL4I7WOT.js";
|
|
151
151
|
import "./chunk-ZDU3JFGR.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"ua-parser-js": "^1.0.37",
|
|
81
81
|
"uuid": "^9.0.1",
|
|
82
82
|
"@funkit/api-base": "1.0.1",
|
|
83
|
-
"@funkit/wagmi-tools": "3.0.
|
|
83
|
+
"@funkit/wagmi-tools": "3.0.4"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
86
86
|
"type": "git",
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-F3VCNZXS.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-ZOLACFTK.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
15
|
-
function isMetaMask(ethereum) {
|
|
16
|
-
if (!(ethereum == null ? void 0 : ethereum.isMetaMask))
|
|
17
|
-
return false;
|
|
18
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
19
|
-
return false;
|
|
20
|
-
if (ethereum.isApexWallet)
|
|
21
|
-
return false;
|
|
22
|
-
if (ethereum.isAvalanche)
|
|
23
|
-
return false;
|
|
24
|
-
if (ethereum.isBackpack)
|
|
25
|
-
return false;
|
|
26
|
-
if (ethereum.isBifrost)
|
|
27
|
-
return false;
|
|
28
|
-
if (ethereum.isBitKeep)
|
|
29
|
-
return false;
|
|
30
|
-
if (ethereum.isBitski)
|
|
31
|
-
return false;
|
|
32
|
-
if (ethereum.isBlockWallet)
|
|
33
|
-
return false;
|
|
34
|
-
if (ethereum.isCoinbaseWallet)
|
|
35
|
-
return false;
|
|
36
|
-
if (ethereum.isDawn)
|
|
37
|
-
return false;
|
|
38
|
-
if (ethereum.isEnkrypt)
|
|
39
|
-
return false;
|
|
40
|
-
if (ethereum.isExodus)
|
|
41
|
-
return false;
|
|
42
|
-
if (ethereum.isFrame)
|
|
43
|
-
return false;
|
|
44
|
-
if (ethereum.isFrontier)
|
|
45
|
-
return false;
|
|
46
|
-
if (ethereum.isGamestop)
|
|
47
|
-
return false;
|
|
48
|
-
if (ethereum.isHyperPay)
|
|
49
|
-
return false;
|
|
50
|
-
if (ethereum.isImToken)
|
|
51
|
-
return false;
|
|
52
|
-
if (ethereum.isKuCoinWallet)
|
|
53
|
-
return false;
|
|
54
|
-
if (ethereum.isMathWallet)
|
|
55
|
-
return false;
|
|
56
|
-
if (ethereum.isNestWallet)
|
|
57
|
-
return false;
|
|
58
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet)
|
|
59
|
-
return false;
|
|
60
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
61
|
-
return false;
|
|
62
|
-
if (ethereum.isOpera)
|
|
63
|
-
return false;
|
|
64
|
-
if (ethereum.isPhantom)
|
|
65
|
-
return false;
|
|
66
|
-
if (ethereum.isPortal)
|
|
67
|
-
return false;
|
|
68
|
-
if (ethereum.isRabby)
|
|
69
|
-
return false;
|
|
70
|
-
if (ethereum.isRainbow)
|
|
71
|
-
return false;
|
|
72
|
-
if (ethereum.isStatus)
|
|
73
|
-
return false;
|
|
74
|
-
if (ethereum.isTalisman)
|
|
75
|
-
return false;
|
|
76
|
-
if (ethereum.isTally)
|
|
77
|
-
return false;
|
|
78
|
-
if (ethereum.isTokenPocket)
|
|
79
|
-
return false;
|
|
80
|
-
if (ethereum.isTokenary)
|
|
81
|
-
return false;
|
|
82
|
-
if (ethereum.isTrust || ethereum.isTrustWallet)
|
|
83
|
-
return false;
|
|
84
|
-
if (ethereum.isXDEFI)
|
|
85
|
-
return false;
|
|
86
|
-
if (ethereum.isZeal)
|
|
87
|
-
return false;
|
|
88
|
-
if (ethereum.isZerion)
|
|
89
|
-
return false;
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
var metaMaskWallet = ({
|
|
93
|
-
projectId,
|
|
94
|
-
walletConnectParameters
|
|
95
|
-
}) => {
|
|
96
|
-
var _a, _b, _c;
|
|
97
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
98
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
99
|
-
const getUri = (uri) => {
|
|
100
|
-
return isAndroid() ? uri : isIOS() ? `metamask://wc?uri=${encodeURIComponent(uri)}` : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
101
|
-
};
|
|
102
|
-
return {
|
|
103
|
-
id: "metaMask",
|
|
104
|
-
name: "MetaMask",
|
|
105
|
-
rdns: "io.metamask",
|
|
106
|
-
iconUrl: async () => (await import("./metaMaskWallet-ORHUNQRP.js")).default,
|
|
107
|
-
iconAccent: "#f6851a",
|
|
108
|
-
iconBackground: "#fff",
|
|
109
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
110
|
-
downloadUrls: {
|
|
111
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
112
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
113
|
-
mobile: "https://metamask.io/download",
|
|
114
|
-
qrCode: "https://metamask.io/download",
|
|
115
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
116
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
117
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
118
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
119
|
-
browserExtension: "https://metamask.io/download"
|
|
120
|
-
},
|
|
121
|
-
mobile: {
|
|
122
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
123
|
-
},
|
|
124
|
-
qrCode: shouldUseWalletConnect ? {
|
|
125
|
-
getUri,
|
|
126
|
-
instructions: {
|
|
127
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
128
|
-
steps: [
|
|
129
|
-
{
|
|
130
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
131
|
-
step: "install",
|
|
132
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
136
|
-
step: "create",
|
|
137
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
141
|
-
step: "refresh",
|
|
142
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
} : void 0,
|
|
147
|
-
extension: {
|
|
148
|
-
instructions: {
|
|
149
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
150
|
-
steps: [
|
|
151
|
-
{
|
|
152
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
153
|
-
step: "install",
|
|
154
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
158
|
-
step: "create",
|
|
159
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
163
|
-
step: "refresh",
|
|
164
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
170
|
-
projectId,
|
|
171
|
-
walletConnectParameters
|
|
172
|
-
}) : getInjectedConnector({
|
|
173
|
-
target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
|
|
174
|
-
isMetaMask
|
|
175
|
-
)) != null ? _c : window.ethereum : void 0
|
|
176
|
-
})
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export {
|
|
181
|
-
metaMaskWallet
|
|
182
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-F3VCNZXS.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-ZOLACFTK.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
-
var rainbowWallet = ({
|
|
16
|
-
projectId,
|
|
17
|
-
walletConnectParameters
|
|
18
|
-
}) => {
|
|
19
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
20
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
23
|
-
uri
|
|
24
|
-
)}&connector=rainbowkit`;
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
id: "rainbow",
|
|
28
|
-
name: "Rainbow",
|
|
29
|
-
rdns: "me.rainbow",
|
|
30
|
-
iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
|
|
31
|
-
iconBackground: "#0c2f78",
|
|
32
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
33
|
-
downloadUrls: {
|
|
34
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
35
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
36
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
37
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
38
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
39
|
-
},
|
|
40
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
41
|
-
qrCode: shouldUseWalletConnect ? {
|
|
42
|
-
getUri,
|
|
43
|
-
instructions: {
|
|
44
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
45
|
-
steps: [
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
48
|
-
step: "install",
|
|
49
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
53
|
-
step: "create",
|
|
54
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
58
|
-
step: "scan",
|
|
59
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
} : void 0,
|
|
64
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
65
|
-
projectId,
|
|
66
|
-
walletConnectParameters
|
|
67
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
rainbowWallet
|
|
73
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-ZDU3JFGR.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-F3VCNZXS.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
|
-
var coin98Wallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "coin98.provider",
|
|
17
|
-
flag: "isCoin98"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "coin98",
|
|
22
|
-
name: "Coin98 Wallet",
|
|
23
|
-
iconUrl: async () => (await import("./coin98Wallet-7Q4WNBWR.js")).default,
|
|
24
|
-
installed: isCoin98WalletInjected,
|
|
25
|
-
iconAccent: "#CDA349",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
rdns: "coin98.com",
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
-
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
-
mobile: "https://coin98.com/wallet",
|
|
32
|
-
qrCode: "https://coin98.com/wallet",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
-
browserExtension: "https://coin98.com/wallet"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri: (uri) => uri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({
|
|
88
|
-
namespace: "coin98Wallet",
|
|
89
|
-
flag: "isCoin98"
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
coin98Wallet
|
|
96
|
-
};
|