@funkit/connect 12.6.0 → 12.7.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/clients/{chunk-F36IJA7V.js → chunk-4OOCXIMA.js} +1 -1
  3. package/dist/clients/chunk-I5GSXPFE.js +182 -0
  4. package/dist/clients/{chunk-IAIRECDV.js → chunk-R6E3NH5A.js} +1 -1
  5. package/dist/clients/{chunk-VE6QD5IM.js → chunk-RAJJSGNT.js} +1 -1
  6. package/dist/clients/internal/nado/withdrawalCallback.js +2 -2
  7. package/dist/clients/internal/nado/withdrawalForm.js +3 -2
  8. package/dist/clients/lighter.js +1 -1
  9. package/dist/clients/nado.js +2 -2
  10. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  11. package/dist/clients/polymarket/index.js +3 -3
  12. package/dist/clients/polymarket/polymarket.js +2 -2
  13. package/dist/consts/bluvo.d.ts +7 -19
  14. package/dist/consts/centralExchange.d.ts +2 -0
  15. package/dist/hooks/useExchangeOptions.d.ts +9 -4
  16. package/dist/index.d.ts +3 -1
  17. package/dist/index.js +2991 -2904
  18. package/dist/interfaces/solanaWallet.d.ts +5 -0
  19. package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +2 -2
  20. package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +4 -2
  21. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +3 -1
  22. package/dist/providers/FunkitQuoteContext.d.ts +7 -4
  23. package/dist/utils/solanaRelayWallet.d.ts +13 -5
  24. package/dist/wallets/Wallet.d.ts +9 -0
  25. package/dist/wallets/solanaWithdrawal.d.ts +17 -0
  26. package/dist/wallets/walletConnectors/chunk-53MYTA42.js +94 -0
  27. package/dist/wallets/walletConnectors/chunk-65ULY6OC.js +70 -0
  28. package/dist/wallets/walletConnectors/chunk-A5POD5SV.js +103 -0
  29. package/dist/wallets/walletConnectors/chunk-ANODOMIN.js +218 -0
  30. package/dist/wallets/walletConnectors/chunk-ASTCNVJC.js +96 -0
  31. package/dist/wallets/walletConnectors/chunk-F45CUFRR.js +66 -0
  32. package/dist/wallets/walletConnectors/chunk-FYPQ3HP4.js +92 -0
  33. package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +98 -0
  34. package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +87 -0
  35. package/dist/wallets/walletConnectors/chunk-KE4CWI3A.js +93 -0
  36. package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +110 -0
  37. package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +100 -0
  38. package/dist/wallets/walletConnectors/chunk-PPQ6L4K2.js +106 -0
  39. package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +92 -0
  40. package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +96 -0
  41. package/dist/wallets/walletConnectors/chunk-TIHTQ3OB.js +95 -0
  42. package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +69 -0
  43. package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +99 -0
  44. package/dist/wallets/walletConnectors/index.js +52 -52
  45. package/package.json +10 -4
  46. package/dist/clients/chunk-PENJ5JGH.js +0 -331
  47. package/dist/components/FunPayments/icons/gemini.d.ts +0 -5
  48. package/dist/components/Icons/GeminiIcon.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3c85052: Offer Coinbase as an exchange deposit option through Swapped Connect, alongside Bybit, and allow the Bluvo exchange option to be switched off remotely.
8
+ - 2f0e952: The Solana signer types (`SolanaSigner`, `SolanaSignTransaction`, `SolanaSignAndSendTransaction`, `SolanaConnection`) are exported from `@funkit/connect`, and `@solana/web3.js` is declared as an optional peer dependency.
9
+ - 84f1fcf: Withdrawals can now be signed by a connected Solana wallet via `useSolanaWithdrawalConfig`, which takes a `SolanaWalletSigner` with only the wallet's address, connection and signing method.
10
+
11
+ ### Patch Changes
12
+
13
+ - 6a3294e: Internal cleanup behind the approval-method toggle; no consumer-facing change.
14
+ - db448a0: No consumer-facing behavior changes.
15
+ - 47a12cb: Coming-soon exchange rows now always show in the exchange list regardless of which exchange rail is enabled, and Gemini was removed from the list.
16
+ - 9568a4b: Hide the exchange payment option when no exchange provider is enabled, instead of opening an empty list.
17
+ - f1b7950: The withdrawal recipient's "Use connected wallet" shortcut now offers a connected Solana wallet as well as an EVM one, and hides itself when both are connected.
18
+ - 1f8c0a7: Withdrawal amounts from a Solana source token now show their real USD value instead of being priced at a dollar.
19
+ - Updated dependencies [3c85052]
20
+ - Updated dependencies [3c85052]
21
+ - Updated dependencies [cbfe8c1]
22
+ - Updated dependencies [db448a0]
23
+ - Updated dependencies [812fa52]
24
+ - Updated dependencies [9b10caf]
25
+ - Updated dependencies [84f1fcf]
26
+ - Updated dependencies [5babe4e]
27
+ - Updated dependencies [c2c7331]
28
+ - @funkit/connect-core@8.1.0
29
+ - @funkit/api-base@8.4.0
30
+
3
31
  ## 12.6.0
4
32
 
5
33
  ### Minor Changes
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-7GPRX32F.js";
17
17
  import {
18
18
  generateClientMetadataForTokenTransfer
19
- } from "./chunk-PENJ5JGH.js";
19
+ } from "./chunk-I5GSXPFE.js";
20
20
  import {
21
21
  logger
22
22
  } from "./chunk-AHYOV7AV.js";
@@ -0,0 +1,182 @@
1
+ "use client";
2
+
3
+ // src/domains/paymentMethods.ts
4
+ import { PaymentMethod } from "@funkit/connect-core";
5
+ import { exhaustiveCheck, formatAddress } from "@funkit/utils";
6
+
7
+ // src/consts/bluvo.tsx
8
+ import {
9
+ ETHEREAL_API_KEY,
10
+ FormOfPaymentType
11
+ } from "@funkit/api-base";
12
+ import React3 from "react";
13
+
14
+ // src/components/Icons/BybitIcon.tsx
15
+ import React from "react";
16
+ var BybitIcon = ({ size = 24 }) => {
17
+ return /* @__PURE__ */ React.createElement(
18
+ "svg",
19
+ {
20
+ width: size,
21
+ height: size,
22
+ viewBox: "0 0 20 20",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ },
26
+ /* @__PURE__ */ React.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#0B0E11" }),
27
+ /* @__PURE__ */ React.createElement("g", { transform: "translate(2 6.78) scale(0.184)" }, /* @__PURE__ */ React.createElement("path", { d: "M62.0083 25.3572V3H66.5022V25.3572H62.0083Z", fill: "#F7A600" }), /* @__PURE__ */ React.createElement(
28
+ "path",
29
+ {
30
+ d: "M9.63407 31.9983H0V9.64111H9.24666C13.7406 9.64111 16.3591 12.0903 16.3591 15.9214C16.3591 18.4013 14.6774 20.0039 13.5134 20.5375C14.9028 21.1652 16.6813 22.5779 16.6813 25.5624C16.6813 29.7373 13.7406 31.9983 9.63407 31.9983ZM8.89096 13.5355H4.4939V18.6852H8.89096C10.7981 18.6852 11.8652 17.6488 11.8652 16.1095C11.8652 14.5719 10.7981 13.5355 8.89096 13.5355ZM9.18151 22.6104H4.4939V28.1056H9.18151C11.2189 28.1056 12.1874 26.8503 12.1874 25.3418C12.1874 23.835 11.2171 22.6104 9.18151 22.6104Z",
31
+ fill: "white"
32
+ }
33
+ ), /* @__PURE__ */ React.createElement(
34
+ "path",
35
+ {
36
+ d: "M30.3882 22.8293V31.9983H25.926V22.8293L19.0073 9.64111H23.8886L28.1888 18.6527L32.4239 9.64111H37.3052L30.3882 22.8293Z",
37
+ fill: "white"
38
+ }
39
+ ), /* @__PURE__ */ React.createElement(
40
+ "path",
41
+ {
42
+ d: "M50.0457 31.9983H40.4116V9.64111H49.6583C54.1522 9.64111 56.7707 12.0903 56.7707 15.9214C56.7707 18.4013 55.089 20.0039 53.925 20.5375C55.3144 21.1652 57.093 22.5779 57.093 25.5624C57.093 29.7373 54.1522 31.9983 50.0457 31.9983ZM49.3026 13.5355H44.9055V18.6852H49.3026C51.2097 18.6852 52.2768 17.6488 52.2768 16.1095C52.2768 14.5719 51.2097 13.5355 49.3026 13.5355ZM49.5931 22.6104H44.9055V28.1056H49.5931C51.6305 28.1056 52.599 26.8503 52.599 25.3418C52.599 23.835 51.6305 22.6104 49.5931 22.6104Z",
43
+ fill: "white"
44
+ }
45
+ ), /* @__PURE__ */ React.createElement(
46
+ "path",
47
+ {
48
+ d: "M80.986 13.5355V32H76.4921V13.5355H70.4785V9.64111H86.9996V13.5355H80.986Z",
49
+ fill: "white"
50
+ }
51
+ ))
52
+ );
53
+ };
54
+
55
+ // src/components/Icons/CoinbaseIcon.tsx
56
+ import React2 from "react";
57
+ var CoinbaseIcon = ({ size = 24 }) => {
58
+ return /* @__PURE__ */ React2.createElement(
59
+ "svg",
60
+ {
61
+ xmlns: "http://www.w3.org/2000/svg",
62
+ width: size,
63
+ height: size,
64
+ viewBox: "0 0 20 20",
65
+ fill: "none"
66
+ },
67
+ /* @__PURE__ */ React2.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#2C5FF6" }),
68
+ /* @__PURE__ */ React2.createElement(
69
+ "path",
70
+ {
71
+ d: "M9.99 13.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5c1.76 0 3.22 1.305 3.46 3h3.52A7.005 7.005 0 0 0 9.99 3c-3.86 0-7 3.14-7 7s3.14 7 7 7c3.69 0 6.725-2.87 6.98-6.5h-3.52c-.24 1.695-1.7 3-3.46 3Z",
72
+ fill: "#fff"
73
+ }
74
+ )
75
+ );
76
+ };
77
+
78
+ // src/consts/bluvo.tsx
79
+ var BLUVO_MIN_DEPOSIT_BY_CUSTOMER = {
80
+ [ETHEREAL_API_KEY]: 15
81
+ };
82
+ var BLUVO_EXCHANGES = {
83
+ coinbase: {
84
+ icon: (size) => /* @__PURE__ */ React3.createElement(CoinbaseIcon, { size }),
85
+ name: "Coinbase"
86
+ }
87
+ };
88
+ function getExchangeName(brokerType) {
89
+ return BLUVO_EXCHANGES[brokerType].name;
90
+ }
91
+ var FOP_COMPONENT_ICONS = {
92
+ [FormOfPaymentType.BYBIT]: (size) => /* @__PURE__ */ React3.createElement(BybitIcon, { size }),
93
+ [FormOfPaymentType.COINBASE_EXCHANGE]: (size) => /* @__PURE__ */ React3.createElement(CoinbaseIcon, { size })
94
+ };
95
+
96
+ // src/domains/paymentMethods.ts
97
+ function createPaymentMethodInfo(params) {
98
+ switch (params.paymentMethod) {
99
+ case PaymentMethod.CARD:
100
+ return {
101
+ paymentMethod: PaymentMethod.CARD,
102
+ title: params.titleCustomization,
103
+ description: ""
104
+ };
105
+ case PaymentMethod.ACCOUNT_BALANCE:
106
+ return {
107
+ paymentMethod: PaymentMethod.ACCOUNT_BALANCE,
108
+ title: "Your Wallet",
109
+ description: formatAddress(params.walletAddress || "")
110
+ };
111
+ case PaymentMethod.BROKERAGE:
112
+ return {
113
+ paymentMethod: PaymentMethod.BROKERAGE,
114
+ title: getExchangeName(params.exchange),
115
+ description: "",
116
+ deviceId: params.deviceId,
117
+ exchange: params.exchange
118
+ };
119
+ case PaymentMethod.TOKEN_TRANSFER:
120
+ return {
121
+ // this is an arbitrary value for Polymarket.
122
+ paymentMethod: PaymentMethod.TOKEN_TRANSFER,
123
+ title: "QR Code Transfer",
124
+ description: ""
125
+ };
126
+ case PaymentMethod.BITCOIN_LIGHTNING:
127
+ return {
128
+ paymentMethod: PaymentMethod.BITCOIN_LIGHTNING,
129
+ title: "Bitcoin Lightning",
130
+ description: ""
131
+ };
132
+ case PaymentMethod.CASH_APP_LIGHTNING:
133
+ return {
134
+ paymentMethod: PaymentMethod.CASH_APP_LIGHTNING,
135
+ title: "Cash App",
136
+ description: ""
137
+ };
138
+ case PaymentMethod.VIRTUAL_BANK:
139
+ return {
140
+ paymentMethod: PaymentMethod.VIRTUAL_BANK,
141
+ title: "Fiat Account",
142
+ description: "",
143
+ matchingFiatAccount: params.matchingFiatAccount,
144
+ bridgeCustomer: params.bridgeCustomer
145
+ };
146
+ default:
147
+ exhaustiveCheck(params);
148
+ return {};
149
+ }
150
+ }
151
+
152
+ // src/domains/clientMetadata.ts
153
+ function generateClientMetadataForTokenTransfer() {
154
+ return {
155
+ id: "",
156
+ startTimestampMs: 0,
157
+ finalDollarValue: 0,
158
+ latestQuote: null,
159
+ depositAddress: null,
160
+ initSettings: {
161
+ config: {
162
+ targetAsset: "0x",
163
+ targetChain: "",
164
+ targetAssetTicker: "",
165
+ checkoutItemTitle: ""
166
+ }
167
+ },
168
+ selectedSourceAssetInfo: {
169
+ address: "0x",
170
+ symbol: "",
171
+ chainId: "",
172
+ iconSrc: null
173
+ },
174
+ selectedPaymentMethodInfo: createPaymentMethodInfo({
175
+ paymentMethod: PaymentMethod.TOKEN_TRANSFER
176
+ })
177
+ };
178
+ }
179
+
180
+ export {
181
+ generateClientMetadataForTokenTransfer
182
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  generateClientMetadataForTokenTransfer
4
- } from "./chunk-PENJ5JGH.js";
4
+ } from "./chunk-I5GSXPFE.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-AHYOV7AV.js";
@@ -10,7 +10,7 @@ import {
10
10
  VAULT_DEPOSITOR_ABI,
11
11
  VAULT_DEPOSITOR_POLYGON,
12
12
  createPerpsGenerateActionParams
13
- } from "./chunk-IAIRECDV.js";
13
+ } from "./chunk-R6E3NH5A.js";
14
14
  import {
15
15
  logger
16
16
  } from "./chunk-AHYOV7AV.js";
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-F36IJA7V.js";
4
+ } from "../../chunk-4OOCXIMA.js";
5
5
  import "../../chunk-B5KCBBSV.js";
6
6
  import "../../chunk-4DBUYTEE.js";
7
7
  import "../../chunk-OODIKHYE.js";
8
8
  import "../../chunk-7GPRX32F.js";
9
- import "../../chunk-PENJ5JGH.js";
9
+ import "../../chunk-I5GSXPFE.js";
10
10
  import "../../chunk-AHYOV7AV.js";
11
11
  export {
12
12
  createNadoWithdrawalCallback
@@ -106,9 +106,10 @@ function useAssetAddressPrice({
106
106
  }) {
107
107
  const { apiKey } = useFunkitConfig();
108
108
  const isStablecoin = useIsStablecoin();
109
+ const isStablecoinSymbol = !!symbol && isStablecoin(symbol);
109
110
  const { data, error, isLoading } = useQuery({
110
111
  queryKey: ["getAssetPriceInfo", chainId, assetTokenAddress],
111
- queryFn: enabled && chainId && assetTokenAddress ? () => getAssetPriceInfoWithFallback({
112
+ queryFn: enabled && !isStablecoinSymbol && chainId && assetTokenAddress ? () => getAssetPriceInfoWithFallback({
112
113
  apiKey,
113
114
  chainId,
114
115
  assetTokenAddress,
@@ -116,7 +117,7 @@ function useAssetAddressPrice({
116
117
  }) : skipToken,
117
118
  refetchInterval
118
119
  });
119
- const unitPrice = symbol && isStablecoin(symbol) ? 1 : data?.unitPrice;
120
+ const unitPrice = isStablecoinSymbol ? 1 : data?.unitPrice;
120
121
  return {
121
122
  error,
122
123
  isLoading,
@@ -284,8 +284,8 @@ import {
284
284
  LIGHTER_DEFAULT_SECURE_MIN_WITHDRAWAL_AMOUNTS as LIGHTER_DEFAULT_SECURE_MIN_WITHDRAWAL_AMOUNTS2,
285
285
  LIGHTER_FAST_MAX_WITHDRAWAL_USD as LIGHTER_FAST_MAX_WITHDRAWAL_USD2,
286
286
  LIGHTER_USDC_SPOT_SYMBOL as LIGHTER_USDC_SPOT_SYMBOL2,
287
- getLighterBaseSymbol as getLighterBaseSymbol3,
288
287
  createLighterAdaptedWallet,
288
+ getLighterBaseSymbol as getLighterBaseSymbol3,
289
289
  trackLighterSecureWithdrawal,
290
290
  useLighterWithdrawalDelaySeconds
291
291
  } from "@funkit/connect-core/clients/lighter";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-F36IJA7V.js";
4
+ } from "./chunk-4OOCXIMA.js";
5
5
  import "./chunk-B5KCBBSV.js";
6
6
  import "./chunk-4DBUYTEE.js";
7
7
  import "./chunk-OODIKHYE.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  i18n_default
14
14
  } from "./chunk-7GPRX32F.js";
15
- import "./chunk-PENJ5JGH.js";
15
+ import "./chunk-I5GSXPFE.js";
16
16
  import {
17
17
  logger
18
18
  } from "./chunk-AHYOV7AV.js";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-VE6QD5IM.js";
5
+ } from "../chunk-RAJJSGNT.js";
6
6
  import {
7
7
  POLYMARKET_PERPS_ROUTING_ID,
8
8
  POLYMARKET_PREDICTIONS_ROUTING_ID
9
- } from "../chunk-IAIRECDV.js";
10
- import "../chunk-PENJ5JGH.js";
9
+ } from "../chunk-R6E3NH5A.js";
10
+ import "../chunk-I5GSXPFE.js";
11
11
  import "../chunk-AHYOV7AV.js";
12
12
  export {
13
13
  POLYMARKET_PERPS_ROUTING_ID,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-VE6QD5IM.js";
5
+ } from "../chunk-RAJJSGNT.js";
6
6
  import {
7
7
  AMOUNT_PLACEHOLDER,
8
8
  COLLATERAL_ONRAMP_ABI,
@@ -15,8 +15,8 @@ import {
15
15
  VAULT_DEPOSITOR_POLYGON,
16
16
  createPerpsGenerateActionParams,
17
17
  createPolymarketWithdrawalConfig
18
- } from "../chunk-IAIRECDV.js";
19
- import "../chunk-PENJ5JGH.js";
18
+ } from "../chunk-R6E3NH5A.js";
19
+ import "../chunk-I5GSXPFE.js";
20
20
  import "../chunk-AHYOV7AV.js";
21
21
  export {
22
22
  AMOUNT_PLACEHOLDER,
@@ -9,8 +9,8 @@ import {
9
9
  VAULT_DEPOSITOR_POLYGON,
10
10
  createPerpsGenerateActionParams,
11
11
  createPolymarketWithdrawalConfig
12
- } from "../chunk-IAIRECDV.js";
13
- import "../chunk-PENJ5JGH.js";
12
+ } from "../chunk-R6E3NH5A.js";
13
+ import "../chunk-I5GSXPFE.js";
14
14
  import "../chunk-AHYOV7AV.js";
15
15
  export {
16
16
  AMOUNT_PLACEHOLDER,
@@ -9,11 +9,7 @@ export type BluvoBrokerageMinMax = {
9
9
  maxUsd: number;
10
10
  };
11
11
  export declare enum BluvoExchangeType {
12
- Coinbase = "coinbase",
13
- Binance = "binance",
14
- Gemini = "gemini",
15
- Kraken = "kraken",
16
- Gate = "gate"
12
+ Coinbase = "coinbase"
17
13
  }
18
14
  export type BluvoExchangeInfo = {
19
15
  icon: (size: number) => React.JSX.Element | null;
@@ -27,27 +23,16 @@ export declare enum BluvoExchangeStatus {
27
23
  }
28
24
  export declare const BLUVO_MIN_DEPOSIT_BY_CUSTOMER: Record<string, number>;
29
25
  export declare const SUPPORTED_EXCHANGES: readonly [{
30
- readonly exchange: BluvoExchangeType.Coinbase;
26
+ readonly exchange: BluvoExchangeType;
31
27
  readonly status: BluvoExchangeStatus.Live;
32
- }, {
33
- readonly exchange: BluvoExchangeType.Binance;
34
- readonly status: BluvoExchangeStatus.ComingSoon;
35
- }, {
36
- readonly exchange: BluvoExchangeType.Kraken;
37
- readonly status: BluvoExchangeStatus.ComingSoon;
38
- }, {
39
- readonly exchange: BluvoExchangeType.Gemini;
40
- readonly status: BluvoExchangeStatus.ComingSoon;
41
- }, {
42
- readonly exchange: BluvoExchangeType.Gate;
43
- readonly status: BluvoExchangeStatus.ComingSoon;
44
28
  }];
45
29
  export declare const BLUVO_EXCHANGES: Readonly<Record<BluvoExchangeType, BluvoExchangeInfo>>;
46
30
  export declare function getExchangeIcon(brokerType: BluvoExchangeType, size: number): React.JSX.Element | null;
47
31
  export declare function getExchangeName(brokerType: BluvoExchangeType): string;
48
32
  export declare enum BrokerageKind {
49
33
  BLUVO = "bluvo",
50
- SWAPPED = "swapped"
34
+ SWAPPED = "swapped",
35
+ COMING_SOON = "coming_soon"
51
36
  }
52
37
  export type BrokerageOption = {
53
38
  name: string;
@@ -60,6 +45,9 @@ export type BrokerageOption = {
60
45
  } | {
61
46
  kind: BrokerageKind.SWAPPED;
62
47
  fop: GenericFormOfPayment;
48
+ } | {
49
+ kind: BrokerageKind.COMING_SOON;
50
+ id: string;
63
51
  });
64
52
  export interface BluvoExchangeOptionInput {
65
53
  exchange: BluvoExchangeType;
@@ -0,0 +1,2 @@
1
+ import { type BrokerageOption } from '../consts/bluvo';
2
+ export declare function getExchangesComingSoon(iconSize: number): BrokerageOption[];
@@ -1,9 +1,14 @@
1
1
  import { type BrokerageOption } from '../consts/bluvo';
2
2
  /**
3
- * Unified brokerage list combining static Bluvo exchanges and dynamic
4
- * Swapped Connect FOPs (CRYPTO_TO_CRYPTO). Used by SelectBrokerage and the
5
- * payment-method preview row. Live entries come first; ComingSoon (and
6
- * FOPs that came back without an embeddedFlowUrl) follow.
3
+ * Unified brokerage list combining static Bluvo exchanges, dynamic Swapped
4
+ * Connect FOPs (CRYPTO_TO_CRYPTO), and the static coming-soon placeholders.
5
+ * Used by SelectBrokerage and the payment-method preview row. Live entries
6
+ * come first; ComingSoon (and FOPs that came back without an embeddedFlowUrl)
7
+ * follow.
8
+ *
9
+ * The Bluvo Coinbase row shows only while the `enable-bluvo-exchanges` gate
10
+ * is on and Swapped has not yet returned Coinbase; once it does, the row
11
+ * hands over to Swapped. Coming-soon rows are rail-agnostic and always show.
7
12
  */
8
13
  export declare function useExchangeOptions({ iconSize }: {
9
14
  iconSize: number;
package/dist/index.d.ts CHANGED
@@ -24,7 +24,8 @@ export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOn
24
24
  export { useFunkitCheckout, FunCheckoutStartingStep, } from './providers/FunkitCheckoutContext';
25
25
  export type { FunkitCheckoutQuoteResult } from './domains/quote';
26
26
  export type { FunkitConfig, FunkitUiCustomizationsConfig, FunkitTextCustomizationsConfig, } from './providers/FunkitConfigContext';
27
- export type { SolanaWalletConnection } from './interfaces/solanaWallet';
27
+ export type { SolanaWalletConnection, SolanaWalletSigner, } from './interfaces/solanaWallet';
28
+ export type { SolanaConnection, SolanaSignAndSendTransaction, SolanaSigner, SolanaSignTransaction, } from '@funkit/fun-relay';
28
29
  export type { FunkitConnectChain as Chain } from './providers/FunkitConnectChainContext';
29
30
  export type { ModalSizes } from './providers/ModalSizeContext';
30
31
  export { useCheckoutListenerByCheckoutId, useCheckoutsListenerByUserId, } from './providers/FunkitHistoryContext';
@@ -45,5 +46,6 @@ export { customWallet, type CustomWalletOptions, } from './wallets/walletConnect
45
46
  export type { WalletAdoptionConfig } from './wallets/useWalletAdoption';
46
47
  export type { ConnectorsForWalletsParameters } from './wallets/connectorsForWallets';
47
48
  export type { FunkitConnectWalletConnectParameters, Wallet, WalletDetailsParams, WalletList, WithdrawalClient, WithdrawalTransaction, } from './wallets/Wallet';
49
+ export { useSolanaWithdrawalConfig, type SolanaWithdrawalConfig, } from './wallets/solanaWithdrawal';
48
50
  export { useFunkitAccount, useFunkitDisconnect, useFunkitReconnect, useFunkitSwitchChains, } from './providers/GeneralWalletProvider';
49
51
  export { SelectedHomeTab } from './modals/ProfileDetails/FunProfileViews/Home';