@funkit/connect 1.0.4 → 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 +16 -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 -1746
- package/dist/utils/formatTimestamp.d.ts +11 -0
- package/dist/utils/mesh.d.ts +1 -0
- 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/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +80 -80
- 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 +3 -3
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
- package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-6LTLPR2Q.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-ZNXQ4V6G.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-AM4SSLAP.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
zerionWallet
|
|
4
|
+
} from "./chunk-7CQPABJG.js";
|
|
2
5
|
import {
|
|
3
6
|
xdefiWallet
|
|
4
7
|
} from "./chunk-L734HTUS.js";
|
|
5
8
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
uniswapWallet
|
|
10
|
+
} from "./chunk-XRSY4JVH.js";
|
|
8
11
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-2UXZAUWT.js";
|
|
11
14
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
safeheronWallet
|
|
16
|
+
} from "./chunk-63NPZXAL.js";
|
|
14
17
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
omniWallet
|
|
19
|
+
} from "./chunk-SVN7OEQR.js";
|
|
17
20
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
safepalWallet
|
|
22
|
+
} from "./chunk-SYELB4QO.js";
|
|
20
23
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-ENZLEAG2.js";
|
|
23
26
|
import {
|
|
24
27
|
walletConnectWallet
|
|
25
28
|
} from "./chunk-ASPRR7T3.js";
|
|
26
29
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
tahoWallet
|
|
31
|
-
} from "./chunk-H76YCX2M.js";
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-DPXMP5KS.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
trustWallet
|
|
34
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
35
35
|
import {
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-KGBLSE7L.js";
|
|
@@ -39,53 +39,47 @@ import {
|
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-XPEBP6XV.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
subWallet
|
|
46
|
-
} from "./chunk-ZBAQFL6G.js";
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-O5NKWWEG.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
safeWallet
|
|
46
|
+
} from "./chunk-D3DCQ72J.js";
|
|
50
47
|
import {
|
|
51
48
|
roninWallet
|
|
52
49
|
} from "./chunk-LVRXH33E.js";
|
|
53
50
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
51
|
+
tahoWallet
|
|
52
|
+
} from "./chunk-H76YCX2M.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
subWallet
|
|
55
|
+
} from "./chunk-ZBAQFL6G.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
talismanWallet
|
|
58
|
+
} from "./chunk-H273OTQA.js";
|
|
62
59
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
60
|
+
oneInchWallet
|
|
61
|
+
} from "./chunk-LCPIZUR3.js";
|
|
65
62
|
import {
|
|
66
63
|
okxWallet
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
oneKeyWallet
|
|
70
|
-
} from "./chunk-4WOV4ITL.js";
|
|
71
|
-
import {
|
|
72
|
-
omniWallet
|
|
73
|
-
} from "./chunk-OYKWP3N3.js";
|
|
64
|
+
} from "./chunk-NGXIHASN.js";
|
|
74
65
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
66
|
+
kresusWallet
|
|
67
|
+
} from "./chunk-X6T3CICZ.js";
|
|
77
68
|
import {
|
|
78
69
|
injectedWallet
|
|
79
70
|
} from "./chunk-KIHCNUU3.js";
|
|
80
71
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
72
|
+
metaMaskWallet
|
|
73
|
+
} from "./chunk-3WZRNEZH.js";
|
|
83
74
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
75
|
+
oneKeyWallet
|
|
76
|
+
} from "./chunk-4WOV4ITL.js";
|
|
86
77
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
78
|
+
mewWallet
|
|
79
|
+
} from "./chunk-PWYTDYBE.js";
|
|
80
|
+
import {
|
|
81
|
+
ramperWallet
|
|
82
|
+
} from "./chunk-ZOL6ZMTJ.js";
|
|
89
83
|
import {
|
|
90
84
|
foxWallet
|
|
91
85
|
} from "./chunk-Q4RLUJJD.js";
|
|
@@ -93,61 +87,67 @@ import {
|
|
|
93
87
|
imTokenWallet
|
|
94
88
|
} from "./chunk-5MVV7OVS.js";
|
|
95
89
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
90
|
+
gateWallet
|
|
91
|
+
} from "./chunk-V45EXW7A.js";
|
|
98
92
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-XXFJVY73.js";
|
|
101
95
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
96
|
+
frontierWallet
|
|
97
|
+
} from "./chunk-AM4SSLAP.js";
|
|
104
98
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
99
|
+
ledgerWallet
|
|
100
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
107
101
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
102
|
+
oktoWallet
|
|
103
|
+
} from "./chunk-WKHTUEF5.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
coreWallet
|
|
106
|
+
} from "./chunk-JLQ5HJYV.js";
|
|
113
107
|
import {
|
|
114
108
|
clvWallet
|
|
115
109
|
} from "./chunk-MIWCKFYE.js";
|
|
110
|
+
import {
|
|
111
|
+
bitgetWallet
|
|
112
|
+
} from "./chunk-ZNXQ4V6G.js";
|
|
113
|
+
import {
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-4FQLUQNA.js";
|
|
116
116
|
import {
|
|
117
117
|
desigWallet
|
|
118
118
|
} from "./chunk-P4JLZ42R.js";
|
|
119
|
-
import {
|
|
120
|
-
bybitWallet
|
|
121
|
-
} from "./chunk-ZUAHWUEL.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-4XQDKOGF.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
enkryptWallet
|
|
124
|
+
} from "./chunk-FLY7F4XA.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
coinbaseWallet
|
|
127
|
+
} from "./chunk-XBUTWYE4.js";
|
|
131
128
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-NZ5G23JP.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
137
134
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
135
|
+
bitverseWallet
|
|
136
|
+
} from "./chunk-NL4I7WOT.js";
|
|
140
137
|
import {
|
|
141
138
|
bloomWallet
|
|
142
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-NTGZF5BY.js";
|
|
140
|
+
import "./chunk-ZOLACFTK.js";
|
|
143
141
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
142
|
+
bybitWallet
|
|
143
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
146
144
|
import "./chunk-ZDU3JFGR.js";
|
|
147
145
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import
|
|
146
|
+
braveWallet
|
|
147
|
+
} from "./chunk-ABYQAXUX.js";
|
|
148
|
+
import {
|
|
149
|
+
bitskiWallet
|
|
150
|
+
} from "./chunk-C67TQJ6W.js";
|
|
151
151
|
import "./chunk-QII6PY2D.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-3WZRNEZH.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-O5NKWWEG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-2UXZAUWT.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-Z2DGDHHZ.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZDU3JFGR.js";
|
|
4
|
+
} from "../chunk-7CQPABJG.js";
|
|
6
5
|
import "../chunk-ZOLACFTK.js";
|
|
6
|
+
import "../chunk-ZDU3JFGR.js";
|
|
7
7
|
import "../chunk-QII6PY2D.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
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
|
-
};
|