@funkit/connect 1.0.3 → 1.0.5
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 +22 -0
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/FunBadge/FunBadge.d.ts +4 -0
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/components/FunDot/FunDot.d.ts +2 -0
- package/dist/components/FunNotification/FunNotification.d.ts +2 -2
- package/dist/components/FunSelect/FunSelect.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
- package/dist/css/sprinkles.css.d.ts +1 -1
- package/dist/index.css +1332 -1328
- package/dist/index.js +1983 -1744
- package/dist/utils/formatTimestamp.d.ts +11 -0
- package/dist/utils/mesh.d.ts +1 -0
- 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 +72 -72
- 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 +3 -3
- 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
|
@@ -1 +1,12 @@
|
|
|
1
1
|
export declare function formatTimestamp(date: Date, shortened?: boolean): string;
|
|
2
|
+
/**
|
|
3
|
+
* Formats seconds to mins and seconds string
|
|
4
|
+
* - seconds = 10, output = '10s'
|
|
5
|
+
* - seconds = 20.3, output = '21s'
|
|
6
|
+
* - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
|
|
7
|
+
* - seconds = 60, output = '1min'
|
|
8
|
+
* - seconds = 61, output = '1min 1s'
|
|
9
|
+
* - seconds = 300, output = '5mins'
|
|
10
|
+
* - seconds = 320, output = '5mins 20s'
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean): string;
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -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,154 +1,154 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zerionWallet
|
|
4
|
+
} from "./chunk-7CQPABJG.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-L734HTUS.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
uniswapWallet
|
|
10
|
+
} from "./chunk-XRSY4JVH.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-2UXZAUWT.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
safeheronWallet
|
|
16
|
+
} from "./chunk-63NPZXAL.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
omniWallet
|
|
19
|
+
} from "./chunk-SVN7OEQR.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
safepalWallet
|
|
22
|
+
} from "./chunk-SYELB4QO.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-ENZLEAG2.js";
|
|
26
|
+
import {
|
|
27
|
+
walletConnectWallet
|
|
28
|
+
} from "./chunk-ASPRR7T3.js";
|
|
26
29
|
import {
|
|
27
30
|
zealWallet
|
|
28
31
|
} from "./chunk-DPXMP5KS.js";
|
|
29
32
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
zerionWallet
|
|
34
|
-
} from "./chunk-SQGFKNNZ.js";
|
|
33
|
+
trustWallet
|
|
34
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
35
35
|
import {
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-KGBLSE7L.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-XPEBP6XV.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-O5NKWWEG.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-D3DCQ72J.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-LVRXH33E.js";
|
|
50
50
|
import {
|
|
51
51
|
tahoWallet
|
|
52
52
|
} from "./chunk-H76YCX2M.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
subWallet
|
|
55
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
56
56
|
import {
|
|
57
57
|
talismanWallet
|
|
58
58
|
} from "./chunk-H273OTQA.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
oneInchWallet
|
|
61
|
+
} from "./chunk-LCPIZUR3.js";
|
|
62
62
|
import {
|
|
63
63
|
okxWallet
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-NGXIHASN.js";
|
|
65
65
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
kresusWallet
|
|
67
|
+
} from "./chunk-X6T3CICZ.js";
|
|
68
68
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
69
|
+
injectedWallet
|
|
70
|
+
} from "./chunk-KIHCNUU3.js";
|
|
71
71
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
72
|
+
metaMaskWallet
|
|
73
|
+
} from "./chunk-3WZRNEZH.js";
|
|
74
74
|
import {
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-4WOV4ITL.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
mewWallet
|
|
79
|
+
} from "./chunk-PWYTDYBE.js";
|
|
80
80
|
import {
|
|
81
81
|
ramperWallet
|
|
82
82
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
frontierWallet
|
|
88
|
-
} from "./chunk-N3VZE65M.js";
|
|
89
|
-
import {
|
|
90
|
-
frameWallet
|
|
91
|
-
} from "./chunk-XXFJVY73.js";
|
|
85
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
92
86
|
import {
|
|
93
87
|
imTokenWallet
|
|
94
88
|
} from "./chunk-5MVV7OVS.js";
|
|
95
|
-
import {
|
|
96
|
-
injectedWallet
|
|
97
|
-
} from "./chunk-KIHCNUU3.js";
|
|
98
89
|
import {
|
|
99
90
|
gateWallet
|
|
100
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-V45EXW7A.js";
|
|
92
|
+
import {
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-XXFJVY73.js";
|
|
95
|
+
import {
|
|
96
|
+
frontierWallet
|
|
97
|
+
} from "./chunk-AM4SSLAP.js";
|
|
101
98
|
import {
|
|
102
99
|
ledgerWallet
|
|
103
100
|
} from "./chunk-Y6VY6E3L.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
oktoWallet
|
|
103
|
+
} from "./chunk-WKHTUEF5.js";
|
|
107
104
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
105
|
+
coreWallet
|
|
106
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
110
107
|
import {
|
|
111
108
|
clvWallet
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-MIWCKFYE.js";
|
|
113
110
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
111
|
+
bitgetWallet
|
|
112
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
116
113
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-4FQLUQNA.js";
|
|
119
116
|
import {
|
|
120
117
|
desigWallet
|
|
121
118
|
} from "./chunk-P4JLZ42R.js";
|
|
122
119
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
120
|
+
dawnWallet
|
|
121
|
+
} from "./chunk-4XQDKOGF.js";
|
|
125
122
|
import {
|
|
126
123
|
enkryptWallet
|
|
127
124
|
} from "./chunk-FLY7F4XA.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
coinbaseWallet
|
|
127
|
+
} from "./chunk-XBUTWYE4.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-NZ5G23JP.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
137
134
|
import {
|
|
138
135
|
bitverseWallet
|
|
139
136
|
} from "./chunk-NL4I7WOT.js";
|
|
140
|
-
import {
|
|
141
|
-
bitskiWallet
|
|
142
|
-
} from "./chunk-C67TQJ6W.js";
|
|
143
137
|
import {
|
|
144
138
|
bloomWallet
|
|
145
139
|
} from "./chunk-NTGZF5BY.js";
|
|
146
|
-
import {
|
|
147
|
-
bitgetWallet
|
|
148
|
-
} from "./chunk-75A2U7T7.js";
|
|
149
|
-
import "./chunk-QII6PY2D.js";
|
|
150
140
|
import "./chunk-ZOLACFTK.js";
|
|
141
|
+
import {
|
|
142
|
+
bybitWallet
|
|
143
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
151
144
|
import "./chunk-ZDU3JFGR.js";
|
|
145
|
+
import {
|
|
146
|
+
braveWallet
|
|
147
|
+
} from "./chunk-ABYQAXUX.js";
|
|
148
|
+
import {
|
|
149
|
+
bitskiWallet
|
|
150
|
+
} from "./chunk-C67TQJ6W.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
"@types/ua-parser-js": "^0.7.39"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
+
"@funkit/wagmi-tools": "^1.0.3",
|
|
76
|
+
"@funkit/core": "^1.0.2",
|
|
75
77
|
"@vanilla-extract/css": "1.14.0",
|
|
76
78
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
77
79
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
@@ -80,8 +82,6 @@
|
|
|
80
82
|
"react-remove-scroll": "2.5.7",
|
|
81
83
|
"ua-parser-js": "^1.0.37",
|
|
82
84
|
"@tanstack/react-query": "^5.28.8",
|
|
83
|
-
"@funkit/wagmi-tools": "^1.0.2",
|
|
84
|
-
"@funkit/core": "^1.0.1",
|
|
85
85
|
"@datadog/browser-logs": "^5.12.0",
|
|
86
86
|
"@privy-io/js-sdk-core": "^0.14.0",
|
|
87
87
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
@@ -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
|
-
};
|