@funkit/connect 11.1.0 → 11.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 +52 -0
- package/dist/clients/{chunk-YZSO4EMO.js → chunk-2576N7PQ.js} +1 -1
- package/dist/clients/{chunk-II5CZTBC.js → chunk-3P2C436B.js} +3 -1
- package/dist/clients/chunk-6QCAWEAT.js +53 -0
- package/dist/clients/{chunk-2QYQNTOI.js → chunk-C45VNQXY.js} +24 -16
- package/dist/clients/{chunk-SO756ELD.js → chunk-DGBIV3ZS.js} +1 -0
- package/dist/clients/{chunk-SYFHMTUO.js → chunk-FM7SFGAV.js} +2 -2
- package/dist/clients/{chunk-EJKHMZW3.js → chunk-IYCZWLAF.js} +2 -1
- package/dist/clients/{chunk-OJZNF6EM.js → chunk-JFDRLSYM.js} +1 -1
- package/dist/clients/{chunk-A6OXZWCN.js → chunk-QQEGNLGD.js} +1 -1
- package/dist/clients/{chunk-YMGRBJAS.js → chunk-SU3YSNMB.js} +11 -7
- package/dist/clients/{chunk-A44M6EAG.js → chunk-TZGKB6WY.js} +1 -1
- package/dist/clients/{chunk-C53FRCUM.js → chunk-UK64SY6N.js} +1 -1
- package/dist/clients/{chunk-WVM4ZJD2.js → chunk-VIAEAD75.js} +1 -1
- package/dist/clients/{chunk-QIMCURVA.js → chunk-XJTRLB7W.js} +3 -3
- package/dist/clients/{chunk-SH3MHRHX.js → chunk-Y7WLUPTX.js} +1 -1
- package/dist/clients/{chunk-FAYBQQNB.js → chunk-YUZ3B2Q3.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/consts.d.ts +6 -0
- package/dist/clients/internal/nado/consts.js +5 -3
- package/dist/clients/internal/nado/gateway.js +2 -2
- package/dist/clients/internal/nado/hooks.js +4 -4
- package/dist/clients/internal/nado/indexer.js +2 -2
- package/dist/clients/internal/nado/typedData.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +7 -7
- package/dist/clients/internal/nado/withdrawalConfig.d.ts +4 -4
- package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.css +43 -35
- package/dist/clients/internal/nado/withdrawalForm.d.ts +3 -0
- package/dist/clients/internal/nado/withdrawalForm.js +17 -13
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.css +43 -35
- package/dist/clients/lighter.js +5 -7
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +10 -10
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +43 -35
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -7
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.css +43 -35
- package/dist/clients/polymarket/index.js +7 -7
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
- package/dist/components/FunCheckbox/FunCheckbox.d.ts +3 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -1
- package/dist/domains/nado.d.ts +11 -2
- package/dist/domains/quoteMode/types.d.ts +16 -0
- package/dist/domains/relay.d.ts +0 -3
- package/dist/hooks/track/analytics/events.d.ts +35 -7
- package/dist/hooks/track/analytics/mappers.d.ts +2 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +18 -1
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useFunkitTranslation.d.ts +5 -0
- package/dist/hooks/useTokenAndChainDropdown.d.ts +4 -1
- package/dist/index.css +43 -35
- package/dist/index.js +3343 -2941
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +5 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +13 -0
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +4 -3
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +9 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +3 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/useBottomBarCloseLabel.d.ts +7 -0
- package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +22 -0
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +18 -1
- package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +4 -2
- package/dist/providers/FunkitStatsigProvider.d.ts +7 -0
- package/dist/utils/customer.d.ts +23 -230
- package/dist/utils/withdrawal.d.ts +11 -1
- 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/coreWallet/coreWallet.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 +54 -54
- 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 +4 -4
- package/dist/clients/chunk-NAVU6W7V.js +0 -89
- package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-6BW3HLBG.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
coin98Wallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-YEZM4CK4.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
} from "./chunk-52QXXLDS.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RVOY537T.js";
|
|
8
|
+
import {
|
|
9
|
+
tahoWallet
|
|
10
|
+
} from "./chunk-7ZYCBDQ4.js";
|
|
8
11
|
import {
|
|
9
12
|
talismanWallet
|
|
10
13
|
} from "./chunk-4DCO3TGL.js";
|
|
11
14
|
import {
|
|
12
15
|
tokenPocketWallet
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HTHAK6XB.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenaryWallet
|
|
16
19
|
} from "./chunk-VH3THHJY.js";
|
|
17
|
-
import {
|
|
18
|
-
oneKeyWallet
|
|
19
|
-
} from "./chunk-WVT6BBJH.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZNX4EMPB.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -29,93 +29,93 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-JN5I3DNC.js";
|
|
32
|
+
import {
|
|
33
|
+
rabbyWallet
|
|
34
|
+
} from "./chunk-RB66PKPA.js";
|
|
35
|
+
import {
|
|
36
|
+
rainbowWallet
|
|
37
|
+
} from "./chunk-2VP2F6EK.js";
|
|
38
|
+
import {
|
|
39
|
+
ramperWallet
|
|
40
|
+
} from "./chunk-OQB55QXP.js";
|
|
32
41
|
import {
|
|
33
42
|
roninWallet
|
|
34
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VAPGUPHO.js";
|
|
35
44
|
import {
|
|
36
45
|
safeWallet
|
|
37
46
|
} from "./chunk-RCY66YHF.js";
|
|
38
|
-
import {
|
|
39
|
-
okxWallet
|
|
40
|
-
} from "./chunk-KI5Y2BBF.js";
|
|
41
47
|
import {
|
|
42
48
|
safeheronWallet
|
|
43
49
|
} from "./chunk-76S7R2ND.js";
|
|
44
50
|
import {
|
|
45
51
|
safepalWallet
|
|
46
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-VTM6EECM.js";
|
|
47
53
|
import {
|
|
48
54
|
subWallet
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-X6CGV36L.js";
|
|
50
56
|
import {
|
|
51
57
|
metaMaskWallet
|
|
52
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-CCQV2ZET.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-MQM45ADF.js";
|
|
56
62
|
import {
|
|
57
63
|
oktoWallet
|
|
58
64
|
} from "./chunk-YWOVAU6O.js";
|
|
65
|
+
import {
|
|
66
|
+
okxWallet
|
|
67
|
+
} from "./chunk-STVVP43G.js";
|
|
59
68
|
import {
|
|
60
69
|
omniWallet
|
|
61
70
|
} from "./chunk-2CX7LX4J.js";
|
|
62
71
|
import {
|
|
63
72
|
oneInchWallet
|
|
64
73
|
} from "./chunk-QG6ZHI7B.js";
|
|
65
|
-
import {
|
|
66
|
-
ledgerWallet
|
|
67
|
-
} from "./chunk-RPV27V2Y.js";
|
|
68
74
|
import {
|
|
69
75
|
phantomWallet
|
|
70
76
|
} from "./chunk-QY53O7WG.js";
|
|
71
77
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
rainbowWallet
|
|
76
|
-
} from "./chunk-W2LCLDPX.js";
|
|
77
|
-
import {
|
|
78
|
-
ramperWallet
|
|
79
|
-
} from "./chunk-OQB55QXP.js";
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-WVT6BBJH.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
enkryptWallet
|
|
82
|
+
} from "./chunk-HBQK5RD5.js";
|
|
83
83
|
import {
|
|
84
84
|
frameWallet
|
|
85
85
|
} from "./chunk-BU3ZAT5X.js";
|
|
86
|
-
import {
|
|
87
|
-
gateWallet
|
|
88
|
-
} from "./chunk-JPN6TWIT.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YEZM4CK4.js";
|
|
89
|
+
import {
|
|
90
|
+
gateWallet
|
|
91
|
+
} from "./chunk-HNRB7KJU.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-WNAGGFMG.js";
|
|
95
|
+
import {
|
|
96
|
+
injectedWallet
|
|
97
|
+
} from "./chunk-T6LGKC3F.js";
|
|
95
98
|
import {
|
|
96
99
|
kresusWallet
|
|
97
100
|
} from "./chunk-RICTB3FA.js";
|
|
98
101
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
injectedWallet
|
|
103
|
-
} from "./chunk-T6LGKC3F.js";
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-RPV27V2Y.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-DS73TZ6O.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-UK7C2JXW.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-6BW3HLBG.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-2DLDAZRH.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-RB3HR4R2.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -123,31 +123,31 @@ import {
|
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-FW3WZETT.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-IULPZP2Q.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-MIQTHJ6X.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-NTMBEOR2.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-4T6ZSRJF.js";
|
|
137
134
|
import {
|
|
138
135
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-CPI4TD43.js";
|
|
137
|
+
import {
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-7HRFUZFX.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-NSK6A7TI.js";
|
|
143
143
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-PJ7Y57EH.js";
|
|
146
146
|
import {
|
|
147
147
|
bybitWallet
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-N4IJLYFY.js";
|
|
148
|
+
} from "./chunk-F5XEEVG6.js";
|
|
150
149
|
import "./chunk-OLZ7626J.js";
|
|
150
|
+
import "./chunk-N4IJLYFY.js";
|
|
151
151
|
import "./chunk-IGKXZBTA.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-CCQV2ZET.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-2VP2F6EK.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
roninWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VAPGUPHO.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
roninWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
safepalWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VTM6EECM.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
safepalWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-HTHAK6XB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-ZNX4EMPB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-RVOY537T.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
"ua-parser-js": "^1.0.37",
|
|
108
108
|
"use-debounce": "^10.0.5",
|
|
109
109
|
"uuid": "^11.1.1",
|
|
110
|
-
"@funkit/api-base": "
|
|
110
|
+
"@funkit/api-base": "7.0.0",
|
|
111
111
|
"@funkit/chains": "2.2.0",
|
|
112
|
-
"@funkit/connect-core": "2.
|
|
113
|
-
"@funkit/fun-relay": "2.10.
|
|
112
|
+
"@funkit/connect-core": "2.5.0",
|
|
113
|
+
"@funkit/fun-relay": "2.10.1",
|
|
114
114
|
"@funkit/utils": "4.0.0"
|
|
115
115
|
},
|
|
116
116
|
"repository": {
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/utils/customer.ts
|
|
4
|
-
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
|
-
import { useCallback } from "react";
|
|
6
|
-
var LIGHTER_MAIN_ACCOUNT_TYPE = 0;
|
|
7
|
-
var LIGHTER_TRADING_MODE = {
|
|
8
|
-
SIMPLE: 0,
|
|
9
|
-
UNIFIED: 1
|
|
10
|
-
};
|
|
11
|
-
async function getLighterAccountsByL1Address(address) {
|
|
12
|
-
const response = await fetch(
|
|
13
|
-
`https://mainnet.zklighter.elliot.ai/api/v1/accountsByL1Address?l1_address=${address}`
|
|
14
|
-
);
|
|
15
|
-
if (!response.ok) {
|
|
16
|
-
throw new Error(`Failed to fetch lighter accounts: ${response.statusText}`);
|
|
17
|
-
}
|
|
18
|
-
const data = await response.json();
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
async function getLighterAccount(lookup, activeOnly) {
|
|
22
|
-
const params = new URLSearchParams({
|
|
23
|
-
by: lookup.by,
|
|
24
|
-
value: String(lookup.value),
|
|
25
|
-
...activeOnly !== void 0 && { active_only: String(activeOnly) }
|
|
26
|
-
});
|
|
27
|
-
const response = await fetch(
|
|
28
|
-
`https://mainnet.zklighter.elliot.ai/api/v1/account?${params}`
|
|
29
|
-
);
|
|
30
|
-
if (!response.ok) {
|
|
31
|
-
throw new Error(`Failed to fetch lighter account: ${response.statusText}`);
|
|
32
|
-
}
|
|
33
|
-
return response.json();
|
|
34
|
-
}
|
|
35
|
-
function useLighterAccountQuery(lookup, options) {
|
|
36
|
-
const enabled = lookup !== null && (lookup.by === "index" ? true : !!lookup.value && lookup.value !== "0x");
|
|
37
|
-
const query = useQuery({
|
|
38
|
-
queryKey: [
|
|
39
|
-
"lighterAccount",
|
|
40
|
-
lookup?.by,
|
|
41
|
-
lookup?.value,
|
|
42
|
-
options?.activeOnly
|
|
43
|
-
],
|
|
44
|
-
// biome-ignore lint/style/noNonNullAssertion: already checked for null
|
|
45
|
-
queryFn: () => getLighterAccount(lookup, options?.activeOnly),
|
|
46
|
-
enabled,
|
|
47
|
-
// Refetch on every (re)mount so reopening the withdraw widget shows a fresh
|
|
48
|
-
// balance after a spot→perps transfer; 10s stale window keeps it current.
|
|
49
|
-
staleTime: 1e4,
|
|
50
|
-
refetchOnMount: "always",
|
|
51
|
-
retry: false
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
...query,
|
|
55
|
-
account: query.data?.accounts?.[0]
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function useLighterAccountsQuery({
|
|
59
|
-
address
|
|
60
|
-
}) {
|
|
61
|
-
const enabled = !!address && address !== "0x";
|
|
62
|
-
const query = useQuery({
|
|
63
|
-
queryKey: ["lighterAccounts", address],
|
|
64
|
-
queryFn: () => getLighterAccountsByL1Address(address),
|
|
65
|
-
enabled,
|
|
66
|
-
staleTime: Number.POSITIVE_INFINITY,
|
|
67
|
-
gcTime: Number.POSITIVE_INFINITY,
|
|
68
|
-
retry: false,
|
|
69
|
-
// allows us to always refetch the data but return the previous data until the new data is fetched
|
|
70
|
-
refetchOnMount: "always"
|
|
71
|
-
});
|
|
72
|
-
const subAccounts = query.data?.sub_accounts;
|
|
73
|
-
const mainAccount = subAccounts?.find(
|
|
74
|
-
(account) => account.account_type === LIGHTER_MAIN_ACCOUNT_TYPE
|
|
75
|
-
);
|
|
76
|
-
return {
|
|
77
|
-
...query,
|
|
78
|
-
mainAccountIndex: mainAccount?.index?.toString(),
|
|
79
|
-
// False until the accounts load — consumers fall back to the simple-mode
|
|
80
|
-
// UI (both USDC variants shown) while the trading mode is unknown.
|
|
81
|
-
isUnifiedTradingMode: mainAccount?.account_trading_mode === LIGHTER_TRADING_MODE.UNIFIED,
|
|
82
|
-
subAccounts
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export {
|
|
87
|
-
useLighterAccountQuery,
|
|
88
|
-
useLighterAccountsQuery
|
|
89
|
-
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
11
|
var coin98Wallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
11
|
var bybitWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
11
|
var foxWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
11
|
var coreWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
11
|
import { isIOS } from "@funkit/utils";
|