@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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 6.14.0-next.2
4
10
 
5
11
  ### 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";
@@ -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 isWithdrawAmountValid = Number(amount) > 0 && Number(amount) <= sourceTokenBalance;
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.2";
31585
+ return "6.14.0-next.3";
31580
31586
  }
31581
31587
  function useFingerprint() {
31582
31588
  const fingerprint = useCallback50(() => {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-UIASLGLV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-A5N6B5UW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-5W7VDOCL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDAVGY5F.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-LNEC5RNX.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2STUC6QL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-2GJQ4XZQ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-M3NZ6R2E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KIDC67XJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-OBOVHCEI.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JCHN6A47.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VR4TBQ6S.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-CNPKISHN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-7QONTUXT.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-VWCLFMWJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TCAGNB4B.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-CJGUM55H.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-FKJJQNKX.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,97 +1,97 @@
1
1
  "use client";
2
2
  import {
3
- zerionWallet
4
- } from "./chunk-Q3H3TRBS.js";
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
- safepalWallet
13
- } from "./chunk-EC6CHBSZ.js";
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-ZSI5N4VV.js";
13
+ } from "./chunk-JWFF4AAL.js";
14
+ import {
15
+ tahoWallet
16
+ } from "./chunk-ZZZRUXZE.js";
20
17
  import {
21
18
  tokenPocketWallet
22
- } from "./chunk-J3LI3FYZ.js";
19
+ } from "./chunk-2L43XSW3.js";
23
20
  import {
24
- trustWallet
25
- } from "./chunk-RKPCWHXL.js";
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
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
33
+ xdefiWallet
34
+ } from "./chunk-BOU4WKRZ.js";
35
35
  import {
36
- phantomWallet
37
- } from "./chunk-362NXNTM.js";
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
- rainbowWallet
46
- } from "./chunk-3CICVJUN.js";
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
- tahoWallet
58
- } from "./chunk-ZZZRUXZE.js";
57
+ safepalWallet
58
+ } from "./chunk-NT2HYJKW.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
62
62
  import {
63
- metaMaskWallet
64
- } from "./chunk-UYGJO62F.js";
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-AFXHGWBH.js";
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-CNPKISHN.js";
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-VWCLFMWJ.js";
91
+ } from "./chunk-TCAGNB4B.js";
92
92
  import {
93
93
  gateWallet
94
- } from "./chunk-CJGUM55H.js";
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
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
102
+ metaMaskWallet
103
+ } from "./chunk-2HYNUNAS.js";
104
104
  import {
105
- braveWallet
106
- } from "./chunk-BPZ2XJO2.js";
105
+ bybitWallet
106
+ } from "./chunk-2STUC6QL.js";
107
107
  import {
108
108
  clvWallet
109
- } from "./chunk-2GJQ4XZQ.js";
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
- desigWallet
118
- } from "./chunk-OPAZMNA7.js";
114
+ coin98Wallet
115
+ } from "./chunk-OBOVHCEI.js";
119
116
  import {
120
117
  coreWallet
121
- } from "./chunk-JCHN6A47.js";
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-5W7VDOCL.js";
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
- bybitWallet
148
- } from "./chunk-LNEC5RNX.js";
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,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-UYGJO62F.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2HYNUNAS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-AFXHGWBH.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDIEHTMB.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-3CICVJUN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2KUBG3S6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-QLVVUKYB.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NWIQNBJU.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-EC6CHBSZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NT2HYJKW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-ZSI5N4VV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-JWFF4AAL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-J3LI3FYZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2L43XSW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-RKPCWHXL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VYBAYMP3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-Q3H3TRBS.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-SULRQO27.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.0-next.2",
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",