@funkit/connect 6.14.0-next.1 → 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 +12 -0
- package/dist/index.js +10 -4
- package/dist/wallets/walletConnectors/index.js +26 -26
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.14.0-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2279554: add min withdraw amount for kalshi
|
|
8
|
+
|
|
9
|
+
## 6.14.0-next.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 856e67f: Fix input box sizing in FunInput component
|
|
14
|
+
|
|
3
15
|
## 6.14.0-next.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
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";
|
|
@@ -8163,7 +8166,7 @@ var FunInput = forwardRef3(function FunInputWithRef({
|
|
|
8163
8166
|
}
|
|
8164
8167
|
},
|
|
8165
8168
|
rows: 1,
|
|
8166
|
-
style: { ...inputStyle, resize: "none" },
|
|
8169
|
+
style: { ...inputStyle, resize: "none", boxSizing: "border-box" },
|
|
8167
8170
|
onChange: handleTextareaOnChange,
|
|
8168
8171
|
onPaste: handleTextAreaOnPaste
|
|
8169
8172
|
}
|
|
@@ -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,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-RNBEDQHF.js";
|
|
5
2
|
import {
|
|
6
3
|
walletConnectWallet
|
|
7
4
|
} from "./chunk-NP5QGWNL.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-RNBEDQHF.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-SULRQO27.js";
|
|
11
|
-
import {
|
|
12
|
-
tahoWallet
|
|
13
|
-
} from "./chunk-ZZZRUXZE.js";
|
|
14
11
|
import {
|
|
15
12
|
subWallet
|
|
16
13
|
} from "./chunk-JWFF4AAL.js";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
tahoWallet
|
|
16
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
20
17
|
import {
|
|
21
18
|
tokenPocketWallet
|
|
22
19
|
} from "./chunk-2L43XSW3.js";
|
|
20
|
+
import {
|
|
21
|
+
talismanWallet
|
|
22
|
+
} from "./chunk-DRO6WYMM.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-D6AOOO5F.js";
|
|
@@ -35,6 +35,9 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
oneKeyWallet
|
|
37
37
|
} from "./chunk-SHBUZ7U7.js";
|
|
38
|
+
import {
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-BBOM42DL.js";
|
|
38
41
|
import {
|
|
39
42
|
rainbowWallet
|
|
40
43
|
} from "./chunk-2KUBG3S6.js";
|
|
@@ -42,14 +45,11 @@ 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-NWIQNBJU.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
@@ -60,8 +60,8 @@ 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";
|
|
@@ -99,20 +99,23 @@ 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
105
|
bybitWallet
|
|
106
106
|
} from "./chunk-2STUC6QL.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-M3NZ6R2E.js";
|
|
110
110
|
import {
|
|
111
111
|
coinbaseWallet
|
|
112
112
|
} from "./chunk-H4IRCEZN.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-OBOVHCEI.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-HWPKCIBE.js";
|
|
@@ -123,14 +126,11 @@ import {
|
|
|
123
126
|
enkryptWallet
|
|
124
127
|
} from "./chunk-OLOIXTYS.js";
|
|
125
128
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
128
131
|
import {
|
|
129
132
|
bifrostWallet
|
|
130
133
|
} from "./chunk-A5N6B5UW.js";
|
|
131
|
-
import {
|
|
132
|
-
argentWallet
|
|
133
|
-
} from "./chunk-WSQ2YJO2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-TDAVGY5F.js";
|
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/fun-relay": "2.0.3-next.0",
|
|
98
96
|
"@funkit/utils": "1.1.10",
|
|
99
|
-
"@funkit/
|
|
100
|
-
"@funkit/wagmi-tools": "3.0.71-next.1"
|
|
97
|
+
"@funkit/fun-relay": "2.0.3-next.0",
|
|
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",
|