@funkit/connect 1.0.1 → 1.0.2
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 +6 -0
- package/README.md +15 -0
- package/dist/index.js +4 -4
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.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 +61 -61
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.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 +1 -1
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-2PC2XXUH.js +0 -94
- package/dist/wallets/walletConnectors/chunk-75A2U7T7.js +0 -100
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-FDIIMYTB.js +0 -73
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-N3VZE65M.js +0 -98
- package/dist/wallets/walletConnectors/chunk-OAEJQOAV.js +0 -105
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-OR3PU2W4.js +0 -95
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-SL4VH23R.js +0 -71
- package/dist/wallets/walletConnectors/chunk-SQGFKNNZ.js +0 -102
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
- package/dist/wallets/walletConnectors/chunk-X255T3C4.js +0 -178
- package/dist/wallets/walletConnectors/chunk-XSSD5ZVD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## FunkitConnect
|
|
2
|
+
|
|
3
|
+
The `@funkit/connect` package elevates decentralize applications via web2 & web3 sign-ins together with one-click onramps & checkouts.
|
|
4
|
+
|
|
5
|
+
- 🔗 [v0 Integration guide](https://the-fun-group.notion.site/funkit-connect-integration-guide-90efe96a9f4e40d99cc49e7abecdc437)
|
|
6
|
+
- 🔗 v1 Integration guide (TBD)
|
|
7
|
+
|
|
8
|
+
### Version Information
|
|
9
|
+
|
|
10
|
+
- Package versions `< 1.x.x` support wagmi v1 only.
|
|
11
|
+
- Package versions `>= 1.x.x` support wagmi v2 only.
|
|
12
|
+
|
|
13
|
+
### 📝 Note
|
|
14
|
+
|
|
15
|
+
This package is currently in closed beta. To learn more, reach out to [developers@fun.xyz](mailto:developers@fun.xyz).
|
package/dist/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
en_US_default
|
|
4
4
|
} from "./chunk-SW6GAS7K.js";
|
|
5
|
-
import {
|
|
6
|
-
darkTheme
|
|
7
|
-
} from "./chunk-U4FFX2HZ.js";
|
|
8
5
|
import {
|
|
9
6
|
lightTheme
|
|
10
7
|
} from "./chunk-C2QHNJBG.js";
|
|
8
|
+
import {
|
|
9
|
+
darkTheme
|
|
10
|
+
} from "./chunk-U4FFX2HZ.js";
|
|
11
11
|
import "./chunk-VP4CAK4A.js";
|
|
12
12
|
|
|
13
13
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
@@ -14731,7 +14731,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
14731
14731
|
localStorage.setItem(storageKey4, version);
|
|
14732
14732
|
}
|
|
14733
14733
|
function getCurrentSdkVersion() {
|
|
14734
|
-
return "1.0.
|
|
14734
|
+
return "1.0.2";
|
|
14735
14735
|
}
|
|
14736
14736
|
function useFingerprint() {
|
|
14737
14737
|
const fingerprint = useCallback26(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-6LTLPR2Q.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.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-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-ZNXQ4V6G.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-AM4SSLAP.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
gateWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-V45EXW7A.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
gateWallet
|
|
10
10
|
};
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
walletConnectWallet
|
|
4
|
+
} from "./chunk-ASPRR7T3.js";
|
|
2
5
|
import {
|
|
3
6
|
zealWallet
|
|
4
7
|
} from "./chunk-DPXMP5KS.js";
|
|
5
8
|
import {
|
|
6
9
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
walletConnectWallet
|
|
10
|
-
} from "./chunk-ASPRR7T3.js";
|
|
10
|
+
} from "./chunk-7CQPABJG.js";
|
|
11
11
|
import {
|
|
12
12
|
safepalWallet
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SYELB4QO.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
tahoWallet
|
|
16
|
+
} from "./chunk-H76YCX2M.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-H273OTQA.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-2UXZAUWT.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-ENZLEAG2.js";
|
|
26
|
+
import {
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
26
29
|
import {
|
|
27
30
|
xdefiWallet
|
|
28
31
|
} from "./chunk-L734HTUS.js";
|
|
@@ -30,125 +33,122 @@ import {
|
|
|
30
33
|
uniswapWallet
|
|
31
34
|
} from "./chunk-XRSY4JVH.js";
|
|
32
35
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
phantomWallet
|
|
37
|
-
} from "./chunk-KGBLSE7L.js";
|
|
38
|
-
import {
|
|
39
|
-
roninWallet
|
|
40
|
-
} from "./chunk-GW6EF4G2.js";
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-4WOV4ITL.js";
|
|
41
38
|
import {
|
|
42
39
|
rabbyWallet
|
|
43
40
|
} from "./chunk-XPEBP6XV.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-O5NKWWEG.js";
|
|
44
|
+
import {
|
|
45
|
+
roninWallet
|
|
46
|
+
} from "./chunk-LVRXH33E.js";
|
|
44
47
|
import {
|
|
45
48
|
safeWallet
|
|
46
49
|
} from "./chunk-D3DCQ72J.js";
|
|
47
50
|
import {
|
|
48
51
|
ramperWallet
|
|
49
52
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
50
|
-
import {
|
|
51
|
-
subWallet
|
|
52
|
-
} from "./chunk-2GAW2UBU.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-63NPZXAL.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
59
59
|
import {
|
|
60
60
|
kresusWallet
|
|
61
61
|
} from "./chunk-X6T3CICZ.js";
|
|
62
|
+
import {
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-3WZRNEZH.js";
|
|
62
65
|
import {
|
|
63
66
|
mewWallet
|
|
64
67
|
} from "./chunk-PWYTDYBE.js";
|
|
65
|
-
import {
|
|
66
|
-
metaMaskWallet
|
|
67
|
-
} from "./chunk-X255T3C4.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-WKHTUEF5.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-NGXIHASN.js";
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-SVN7OEQR.js";
|
|
77
|
-
import {
|
|
78
|
-
oneKeyWallet
|
|
79
|
-
} from "./chunk-4WOV4ITL.js";
|
|
80
77
|
import {
|
|
81
78
|
oneInchWallet
|
|
82
79
|
} from "./chunk-LCPIZUR3.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-KGBLSE7L.js";
|
|
83
|
+
import {
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
86
86
|
import {
|
|
87
87
|
enkryptWallet
|
|
88
88
|
} from "./chunk-FLY7F4XA.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
gateWallet
|
|
94
|
-
} from "./chunk-2PC2XXUH.js";
|
|
91
|
+
} from "./chunk-AM4SSLAP.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-5MVV7OVS.js";
|
|
98
95
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
96
|
+
gateWallet
|
|
97
|
+
} from "./chunk-V45EXW7A.js";
|
|
101
98
|
import {
|
|
102
99
|
injectedWallet
|
|
103
100
|
} from "./chunk-KIHCNUU3.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
braveWallet
|
|
109
|
-
} from "./chunk-ABYQAXUX.js";
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
110
104
|
import {
|
|
111
105
|
clvWallet
|
|
112
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-MIWCKFYE.js";
|
|
113
107
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
116
110
|
import {
|
|
117
111
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
119
113
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-XBUTWYE4.js";
|
|
116
|
+
import {
|
|
117
|
+
coin98Wallet
|
|
118
|
+
} from "./chunk-4FQLUQNA.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-4XQDKOGF.js";
|
|
125
122
|
import {
|
|
126
123
|
frameWallet
|
|
127
124
|
} from "./chunk-XXFJVY73.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
desigWallet
|
|
127
|
+
} from "./chunk-P4JLZ42R.js";
|
|
131
128
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-NZ5G23JP.js";
|
|
134
131
|
import {
|
|
135
132
|
bitskiWallet
|
|
136
133
|
} from "./chunk-C67TQJ6W.js";
|
|
137
134
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
135
|
+
bifrostWallet
|
|
136
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
137
|
+
import {
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-NL4I7WOT.js";
|
|
140
140
|
import {
|
|
141
141
|
bloomWallet
|
|
142
142
|
} from "./chunk-NTGZF5BY.js";
|
|
143
143
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-QII6PY2D.js";
|
|
147
|
-
import {
|
|
148
|
-
argentWallet
|
|
149
|
-
} from "./chunk-NZ5G23JP.js";
|
|
144
|
+
bitgetWallet
|
|
145
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
150
146
|
import "./chunk-ZOLACFTK.js";
|
|
151
147
|
import "./chunk-ZDU3JFGR.js";
|
|
148
|
+
import {
|
|
149
|
+
braveWallet
|
|
150
|
+
} from "./chunk-ABYQAXUX.js";
|
|
151
|
+
import "./chunk-QII6PY2D.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
154
154
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-3WZRNEZH.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
okxWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-NGXIHASN.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
okxWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-O5NKWWEG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-2UXZAUWT.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-Z2DGDHHZ.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-QII6PY2D.js";
|
|
4
|
+
} from "../chunk-7CQPABJG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
7
6
|
import "../chunk-ZDU3JFGR.js";
|
|
7
|
+
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-QII6PY2D.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-ZDU3JFGR.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
|
-
iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
|
|
78
|
-
iconBackground: "#fff",
|
|
79
|
-
installed: isSubWalletInjected || void 0,
|
|
80
|
-
downloadUrls: {
|
|
81
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
82
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
83
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
84
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
85
|
-
mobile: "https://www.subwallet.app/download",
|
|
86
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
87
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
88
|
-
qrCode: "https://www.subwallet.app/download"
|
|
89
|
-
},
|
|
90
|
-
mobile: mobileConnector,
|
|
91
|
-
qrCode: qrConnector,
|
|
92
|
-
extension: extensionConnector,
|
|
93
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
94
|
-
projectId,
|
|
95
|
-
walletConnectParameters
|
|
96
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
subWallet
|
|
102
|
-
};
|