@funkit/connect 6.14.0-next.2 → 6.14.0-next.3
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/dist/index.js +9 -3
- 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 +52 -52
- 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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2175,6 +2175,9 @@ function isHyperbeatCustomer(apiKey) {
|
|
|
2175
2175
|
function isBasedCustomer(apiKey) {
|
|
2176
2176
|
return apiKey === BASED_API_KEY;
|
|
2177
2177
|
}
|
|
2178
|
+
function isKalshiCustomer(apiKey) {
|
|
2179
|
+
return apiKey === KALSHI_API_KEY;
|
|
2180
|
+
}
|
|
2178
2181
|
|
|
2179
2182
|
// src/providers/FunkitFlagsProvider.tsx
|
|
2180
2183
|
import { datadogLogs as datadogLogs2 } from "@datadog/browser-logs";
|
|
@@ -11600,6 +11603,7 @@ var WithdrawContent = ({
|
|
|
11600
11603
|
onContinue,
|
|
11601
11604
|
config,
|
|
11602
11605
|
withdrawalItem
|
|
11606
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: refactor this later
|
|
11603
11607
|
}) => {
|
|
11604
11608
|
const sourceTokenBalance = withdrawalItem?.withdrawalSourceTokenBalance?.() || 0;
|
|
11605
11609
|
const token = config.sourceTokenSymbol;
|
|
@@ -11697,7 +11701,9 @@ var WithdrawContent = ({
|
|
|
11697
11701
|
recipientAddress,
|
|
11698
11702
|
selectedChainId
|
|
11699
11703
|
);
|
|
11700
|
-
const
|
|
11704
|
+
const minAmount = isKalshiCustomer(apiKey) ? 20 : 0;
|
|
11705
|
+
const isWithdrawAmountTooLow = Number(amount) <= minAmount;
|
|
11706
|
+
const isWithdrawAmountValid = !isWithdrawAmountTooLow && Number(amount) <= sourceTokenBalance;
|
|
11701
11707
|
const showUseConnected = !config.disableConnectedWallet && isConnected && connectedWalletAddress && withdrawalWalletAddress.toLowerCase() !== connectedWalletAddress.toLowerCase();
|
|
11702
11708
|
useEffect27(() => {
|
|
11703
11709
|
logger.debug("withdrawalContent:showUseConnected", {
|
|
@@ -11862,7 +11868,7 @@ var WithdrawContent = ({
|
|
|
11862
11868
|
inputMode: "decimal"
|
|
11863
11869
|
},
|
|
11864
11870
|
adornmentColor: "primaryText",
|
|
11865
|
-
error: showAmountError ? "Insufficient balance" : void 0,
|
|
11871
|
+
error: showAmountError ? isWithdrawAmountTooLow ? "Minimum Withdraw Amount is $20" : "Insufficient balance" : void 0,
|
|
11866
11872
|
suffix: /* @__PURE__ */ React67.createElement(
|
|
11867
11873
|
Box,
|
|
11868
11874
|
{
|
|
@@ -31576,7 +31582,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
31576
31582
|
localStorage.setItem(storageKey5, version);
|
|
31577
31583
|
}
|
|
31578
31584
|
function getCurrentSdkVersion() {
|
|
31579
|
-
return "6.14.0-next.
|
|
31585
|
+
return "6.14.0-next.3";
|
|
31580
31586
|
}
|
|
31581
31587
|
function useFingerprint() {
|
|
31582
31588
|
const fingerprint = useCallback50(() => {
|
|
@@ -1,97 +1,97 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
xdefiWallet
|
|
7
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
3
|
+
walletConnectWallet
|
|
4
|
+
} from "./chunk-NP5QGWNL.js";
|
|
8
5
|
import {
|
|
9
6
|
zealWallet
|
|
10
7
|
} from "./chunk-RNBEDQHF.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
talismanWallet
|
|
16
|
-
} from "./chunk-DRO6WYMM.js";
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-SULRQO27.js";
|
|
17
11
|
import {
|
|
18
12
|
subWallet
|
|
19
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JWFF4AAL.js";
|
|
14
|
+
import {
|
|
15
|
+
tahoWallet
|
|
16
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
20
17
|
import {
|
|
21
18
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2L43XSW3.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
talismanWallet
|
|
22
|
+
} from "./chunk-DRO6WYMM.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-D6AOOO5F.js";
|
|
26
|
+
import {
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-VYBAYMP3.js";
|
|
29
29
|
import {
|
|
30
30
|
uniswapWallet
|
|
31
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-2KUBG3S6.js";
|
|
41
44
|
import {
|
|
42
45
|
ramperWallet
|
|
43
46
|
} from "./chunk-BYXPFMI7.js";
|
|
44
47
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-NWIQNBJU.js";
|
|
47
50
|
import {
|
|
48
51
|
safeWallet
|
|
49
52
|
} from "./chunk-BQQQL6UD.js";
|
|
50
|
-
import {
|
|
51
|
-
roninWallet
|
|
52
|
-
} from "./chunk-QLVVUKYB.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-NT2HYJKW.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
62
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
63
|
+
kresusWallet
|
|
64
|
+
} from "./chunk-MJXPRJZT.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
|
-
import {
|
|
72
|
-
oneKeyWallet
|
|
73
|
-
} from "./chunk-SHBUZ7U7.js";
|
|
74
71
|
import {
|
|
75
72
|
okxWallet
|
|
76
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-TDIEHTMB.js";
|
|
77
74
|
import {
|
|
78
75
|
omniWallet
|
|
79
76
|
} from "./chunk-7CUY5G6R.js";
|
|
80
77
|
import {
|
|
81
78
|
oneInchWallet
|
|
82
79
|
} from "./chunk-OESTDX6I.js";
|
|
80
|
+
import {
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-362NXNTM.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-7QONTUXT.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-IFON7E6U.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-TCAGNB4B.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-FKJJQNKX.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -99,41 +99,41 @@ import {
|
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-2HYNUNAS.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-2STUC6QL.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-KIDC67XJ.js";
|
|
109
|
+
} from "./chunk-M3NZ6R2E.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-H4IRCEZN.js";
|
|
116
113
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-OBOVHCEI.js";
|
|
119
116
|
import {
|
|
120
117
|
coreWallet
|
|
121
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-HWPKCIBE.js";
|
|
122
|
+
import {
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-OPAZMNA7.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-OLOIXTYS.js";
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-UIASLGLV.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-A5N6B5UW.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-TDAVGY5F.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-HS3C7OQV.js";
|
|
@@ -143,11 +143,11 @@ import {
|
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
+
import "./chunk-23WIEY36.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
149
150
|
import "./chunk-DNSG5Q7V.js";
|
|
150
|
-
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.14.0-next.
|
|
3
|
+
"version": "6.14.0-next.3",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
"use-debounce": "^10.0.5",
|
|
94
94
|
"uuid": "^9.0.1",
|
|
95
95
|
"@funkit/api-base": "1.12.3-next.1",
|
|
96
|
-
"@funkit/core": "2.3.48-next.1",
|
|
97
|
-
"@funkit/chains": "0.4.0",
|
|
98
96
|
"@funkit/utils": "1.1.10",
|
|
99
97
|
"@funkit/fun-relay": "2.0.3-next.0",
|
|
100
|
-
"@funkit/wagmi-tools": "3.0.71-next.1"
|
|
98
|
+
"@funkit/wagmi-tools": "3.0.71-next.1",
|
|
99
|
+
"@funkit/core": "2.3.48-next.1",
|
|
100
|
+
"@funkit/chains": "0.4.0"
|
|
101
101
|
},
|
|
102
102
|
"repository": {
|
|
103
103
|
"type": "git",
|