@funkit/connect 9.24.0 → 9.25.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 (65) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/clients/lighter.css +0 -5
  3. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +0 -5
  4. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +2 -2
  5. package/dist/clients/polymarket/index.css +0 -5
  6. package/dist/clients/polymarket/index.js +3 -3
  7. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  8. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -1
  9. package/dist/domains/nado.d.ts +9 -0
  10. package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -1
  11. package/dist/hooks/useGetAssetHoldingsFromRpc.d.ts +23 -0
  12. package/dist/hooks/useInjectedAssetHoldings.d.ts +23 -0
  13. package/dist/hooks/useXstockAssetHoldings.d.ts +15 -0
  14. package/dist/hooks/useXstocksWrappedTokenAddress.d.ts +16 -0
  15. package/dist/index.css +0 -5
  16. package/dist/index.js +2367 -2273
  17. package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +1 -1
  18. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -1
  19. package/dist/modals/CheckoutModal/InputAmount/useNadoDirectTransfer.d.ts +64 -0
  20. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +1 -1
  21. package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -3
  22. package/dist/providers/FunkitCheckoutContext/types.d.ts +3 -0
  23. package/dist/utils/assets.d.ts +7 -0
  24. package/dist/utils/checkoutHistory.d.ts +1 -5
  25. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  30. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/index.js +42 -42
  35. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  44. package/package.json +4 -4
  45. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryHelp.d.ts +0 -10
  46. package/dist/modals/CheckoutModal/CheckoutHelp/CheckoutHelp.d.ts +0 -9
  47. package/dist/clients/{chunk-JN6WUYT2.js → chunk-SQ2RX7WY.js} +4 -4
  48. package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
  49. package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
  50. package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
  51. package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
  52. package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
  53. package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
  54. package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
  55. package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
  56. package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
  57. package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
@@ -10,4 +10,4 @@ export type ConfirmationStepNext = {
10
10
  };
11
11
  export declare const CheckoutCompleteInfo: ModalStepInfo<FunCheckoutStep.CHECKOUT_COMPLETE>;
12
12
  /** A checkout detail component to handle redirecting to the checkout history page */
13
- export declare function CheckoutComplete({ modalState, onClose, onNext, onAnimationComplete, }: ModalStepComponentProps<FunCheckoutStep.CHECKOUT_COMPLETE>): React.JSX.Element;
13
+ export declare function CheckoutComplete({ modalState, onClose, onAnimationComplete, }: ModalStepComponentProps<FunCheckoutStep.CHECKOUT_COMPLETE>): React.JSX.Element;
@@ -5,7 +5,6 @@ export declare enum FunCheckoutStep {
5
5
  CONFIRMATION = "confirmation",
6
6
  SELECT_ASSET = "select_asset",
7
7
  CHECKOUT_COMPLETE = "checkout_complete",
8
- CHECKOUT_HELP = "checkout_help",
9
8
  TRANSFER_TOKEN = "transfer_token",
10
9
  LIGHTNING_INVOICE = "lightning_invoice",
11
10
  CREATE_FIAT_ACCOUNT = "create_fiat_account",
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Nado direct-transfer fast-path: a same-token same-chain deposit is a single
3
+ * ERC-20 transfer to the subaccount DDA (`customRecipient`), bypassing
4
+ * Relay/quoteV2 (which can't price a QQQx → QQQx "route"). Signs the transfer
5
+ * and records a direct execution for history parity. Mirrors `useAaveNativeSupply`.
6
+ */
7
+ import type { Dnum } from 'dnum';
8
+ import { type Hex } from 'viem';
9
+ import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
10
+ import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
11
+ /**
12
+ * Base-unit string for the transfer + DE record. Dnum present → exact;
13
+ * otherwise derive from `assetAmount` + `decimals`. Neither → `'0'` + warn.
14
+ */
15
+ export declare function getTransferAmountBaseUnit(tokenAmountBaseUnit: Dnum | null, fallbackAssetAmount: number | undefined, decimals: number | null): bigint;
16
+ interface UseNadoDirectTransferResult {
17
+ /** Reads the committed amount/source from `checkoutItem` and executes. */
18
+ submit: () => Promise<{
19
+ txHash: Hex;
20
+ } | null>;
21
+ isPending: boolean;
22
+ error: CheckoutConfirmationError | null;
23
+ /**
24
+ * Whether this checkout takes the direct-transfer fast-path. True when all
25
+ * hold: the customer is Nado, `customRecipient` is set, and the selected
26
+ * source token (`checkoutItem.selectedSourceAssetInfo`) is the target token
27
+ * or its wrapper on the same chain. False until a source is selected and,
28
+ * for a wrapper source, until the wrapper address resolves.
29
+ */
30
+ isApplicable: boolean;
31
+ }
32
+ interface NadoDirectTransferContextArgs {
33
+ apiKey: string;
34
+ sourceAsset: {
35
+ chainId: string | number;
36
+ address: string;
37
+ };
38
+ checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain' | 'targetAsset' | 'customRecipient'>;
39
+ /**
40
+ * The target token's wrapped version (xStocks `wrapperAddressV2`) on the target
41
+ * chain. A held wrapped-token balance (e.g. wSPYx for SPYx) is an equivalent
42
+ * direct-transfer source. Resolved by `useXstocksWrappedTokenAddress`; omit
43
+ * when there's none.
44
+ */
45
+ wrappedTokenAddress?: string;
46
+ }
47
+ /**
48
+ * True when: the customer is Nado, the checkout has an explicit recipient (the
49
+ * subaccount DDA), and the source matches the target token or its wrapper (same
50
+ * chain). When true the deposit is a direct ERC-20 transfer, not a Relay swap.
51
+ *
52
+ * Kept customer-gated (not purely config-driven) to bound blast radius — only
53
+ * Nado should route through the direct-transfer path until it's proven out.
54
+ */
55
+ export declare function isNadoDirectTransferContext({ apiKey, sourceAsset, checkoutConfig, wrappedTokenAddress, }: NadoDirectTransferContextArgs): boolean;
56
+ /**
57
+ * Predicate over a source asset: does it qualify for the Nado direct-transfer fast-path?
58
+ */
59
+ export declare function useIsNadoDirectTransferSource(): (source: {
60
+ chainId: string | number;
61
+ address: string;
62
+ }) => boolean;
63
+ export declare function useNadoDirectTransfer(): UseNadoDirectTransferResult;
64
+ export {};
@@ -15,4 +15,4 @@ export type SelectAssetNext = {
15
15
  };
16
16
  export declare const SelectAssetInfo: ModalStepInfo<FunCheckoutStep.SELECT_ASSET>;
17
17
  export declare function SelectAsset({ modalState, onNext, onClose, }: ModalStepComponentProps<FunCheckoutStep.SELECT_ASSET>): React.JSX.Element;
18
- export declare function isTreatedAsNativeToken(apiKey: string, asset: AssetHoldingsItem, dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[], findDynamicPath: IndexedDynamicRoutingConfig[string]['findPath'], isUserSelected: boolean): boolean;
18
+ export declare function isTreatedAsNativeToken(apiKey: string, asset: AssetHoldingsItem, dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[], findDynamicPath: IndexedDynamicRoutingConfig[string]['findPath'], isUserSelected: boolean, isDirectTokenTransfer?: boolean): boolean;
@@ -11,7 +11,6 @@ import { type BrokerageTwoFANext, type BrokerageTwoFAState } from './Brokerage/B
11
11
  import { type ConnectExchangeNext, type ConnectExchangeState } from './Brokerage/ConnectExchange';
12
12
  import { type SelectBrokerageNext, type SelectBrokerageState } from './Brokerage/SelectBrokerage';
13
13
  import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
14
- import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
15
14
  import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
16
15
  import { FunCheckoutStep } from './FunCheckoutStep';
17
16
  import { type InputAmountNext, type InputAmountState } from './InputAmount/InputAmount';
@@ -102,7 +101,6 @@ export declare const CheckoutModalSteps: {
102
101
  export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
103
102
  [T in S]: {
104
103
  [FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteState;
105
- [FunCheckoutStep.CHECKOUT_HELP]: CheckoutHelpState;
106
104
  [FunCheckoutStep.CONFIRMATION]: ConfirmationStepState;
107
105
  [FunCheckoutStep.INPUT_AMOUNT]: InputAmountState;
108
106
  [FunCheckoutStep.LOADING_ACCOUNT]: LoadingAccountState;
@@ -133,7 +131,6 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
133
131
  };
134
132
  }[S];
135
133
  export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
136
- [FunCheckoutStep.CHECKOUT_HELP]: null;
137
134
  [FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteNext;
138
135
  [FunCheckoutStep.CONFIRMATION]: ConfirmationStepNext;
139
136
  [FunCheckoutStep.INPUT_AMOUNT]: InputAmountNext;
@@ -402,6 +402,9 @@ export interface FunkitActiveCheckoutItem extends Omit<ApiCheckoutClientMetadata
402
402
  symbol: string | null;
403
403
  chainId: string;
404
404
  iconSrc: string | null;
405
+ /** Source token decimals, when known — lets later screens reconstruct
406
+ * base-unit amounts. */
407
+ decimals?: number;
405
408
  };
406
409
  /** Time of completion of the active checkout item. For frontend use only. **/
407
410
  completedTimestampMs: number | null;
@@ -1,4 +1,11 @@
1
1
  import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
2
  export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '../domains/wallet';
3
3
  export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number | string, decimals: number) => number;
4
+ /**
5
+ * The dynamic-target candidate matching the checkout's *active* target token
6
+ * (`targetAsset`/`targetChain`), by token-equivalence. Distinct from
7
+ * `getDefaultDynamicTargetAsset`, which resolves the *default to display* via
8
+ * routingId/ticker/isDefault
9
+ */
10
+ export declare const getActiveDynamicTargetAsset: (checkoutConfig: FunkitCheckoutConfig | undefined) => DynamicTargetAssetCandidate | undefined;
4
11
  export declare const getDefaultDynamicTargetAsset: (checkoutConfig: FunkitCheckoutConfig | undefined) => DynamicTargetAssetCandidate;
@@ -1,11 +1,7 @@
1
1
  import type { CheckoutHistoryItem } from '@funkit/api-base';
2
2
  export declare enum HistoryContentPages {
3
- DETAIL = "detail",
4
- HELP = "help"
3
+ DETAIL = "detail"
5
4
  }
6
- export declare function getLatestReportSubmitTime(): number;
7
- export declare function setLatestReportSubmitTime(timeMs: number): void;
8
- export declare function clearLatestWalletId(): void;
9
5
  /**
10
6
  * Get the checkout completion time in seconds
11
7
  * @param checkout
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-IULPZP2Q.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-4T6ZSRJF.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-TKB2OY6G.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-CPI4TD43.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-OX37G4YT.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-F5XEEVG6.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bybitWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-OEEGYENV.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-UK7C2JXW.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  clvWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-WAHGI5L7.js";
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
  coreWallet
4
- } from "../chunk-4NV5BYRP.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-RB3HR4R2.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  coreWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-GUQM4QSL.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-MIQTHJ6X.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  foxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-AVDUNQUW.js";
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
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-JPN6TWIT.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-HNRB7KJU.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  gateWallet
@@ -4,22 +4,22 @@ import {
4
4
  } from "./chunk-52QXXLDS.js";
5
5
  import {
6
6
  zerionWallet
7
- } from "./chunk-SWFF3TWJ.js";
7
+ } from "./chunk-RVOY537T.js";
8
8
  import {
9
9
  tahoWallet
10
10
  } from "./chunk-7ZYCBDQ4.js";
11
11
  import {
12
12
  talismanWallet
13
13
  } from "./chunk-4DCO3TGL.js";
14
+ import {
15
+ tokenPocketWallet
16
+ } from "./chunk-HTHAK6XB.js";
14
17
  import {
15
18
  tokenaryWallet
16
19
  } from "./chunk-VH3THHJY.js";
17
- import {
18
- tokenPocketWallet
19
- } from "./chunk-WKNQMP4A.js";
20
20
  import {
21
21
  trustWallet
22
- } from "./chunk-KCRO2AGO.js";
22
+ } from "./chunk-ZNX4EMPB.js";
23
23
  import {
24
24
  uniswapWallet
25
25
  } from "./chunk-Z3PPW6NC.js";
@@ -34,37 +34,34 @@ import {
34
34
  } from "./chunk-RB66PKPA.js";
35
35
  import {
36
36
  rainbowWallet
37
- } from "./chunk-W2LCLDPX.js";
37
+ } from "./chunk-2VP2F6EK.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-OQB55QXP.js";
41
41
  import {
42
42
  roninWallet
43
- } from "./chunk-YQFGVZGR.js";
44
- import {
45
- safeWallet
46
- } from "./chunk-RCY66YHF.js";
43
+ } from "./chunk-VAPGUPHO.js";
47
44
  import {
48
45
  safeheronWallet
49
46
  } from "./chunk-76S7R2ND.js";
50
47
  import {
51
48
  safepalWallet
52
- } from "./chunk-XCNHV3HS.js";
49
+ } from "./chunk-VTM6EECM.js";
50
+ import {
51
+ safeWallet
52
+ } from "./chunk-RCY66YHF.js";
53
53
  import {
54
54
  subWallet
55
- } from "./chunk-NR2OGDHQ.js";
55
+ } from "./chunk-X6CGV36L.js";
56
56
  import {
57
57
  metaMaskWallet
58
- } from "./chunk-YO2K4MBH.js";
59
- import {
60
- mewWallet
61
- } from "./chunk-MQM45ADF.js";
58
+ } from "./chunk-CCQV2ZET.js";
62
59
  import {
63
60
  oktoWallet
64
61
  } from "./chunk-YWOVAU6O.js";
65
62
  import {
66
63
  okxWallet
67
- } from "./chunk-KI5Y2BBF.js";
64
+ } from "./chunk-STVVP43G.js";
68
65
  import {
69
66
  omniWallet
70
67
  } from "./chunk-2CX7LX4J.js";
@@ -72,53 +69,56 @@ import {
72
69
  oneInchWallet
73
70
  } from "./chunk-QG6ZHI7B.js";
74
71
  import {
75
- phantomWallet
76
- } from "./chunk-QY53O7WG.js";
72
+ mewWallet
73
+ } from "./chunk-MQM45ADF.js";
77
74
  import {
78
75
  oneKeyWallet
79
76
  } from "./chunk-WVT6BBJH.js";
77
+ import {
78
+ phantomWallet
79
+ } from "./chunk-QY53O7WG.js";
80
80
  import {
81
81
  foxWallet
82
- } from "./chunk-GUQM4QSL.js";
82
+ } from "./chunk-MIQTHJ6X.js";
83
+ import {
84
+ frontierWallet
85
+ } from "./chunk-YEZM4CK4.js";
83
86
  import {
84
87
  frameWallet
85
88
  } from "./chunk-BU3ZAT5X.js";
86
- import {
87
- frontierWallet
88
- } from "./chunk-AVDUNQUW.js";
89
89
  import {
90
90
  gateWallet
91
- } from "./chunk-JPN6TWIT.js";
91
+ } from "./chunk-HNRB7KJU.js";
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-WNAGGFMG.js";
95
95
  import {
96
96
  injectedWallet
97
97
  } from "./chunk-T6LGKC3F.js";
98
- import {
99
- kresusWallet
100
- } from "./chunk-RICTB3FA.js";
101
98
  import {
102
99
  ledgerWallet
103
100
  } from "./chunk-RPV27V2Y.js";
104
101
  import {
105
- bloomWallet
106
- } from "./chunk-PJ7Y57EH.js";
102
+ kresusWallet
103
+ } from "./chunk-RICTB3FA.js";
107
104
  import {
108
- clvWallet
109
- } from "./chunk-OEEGYENV.js";
105
+ braveWallet
106
+ } from "./chunk-DS73TZ6O.js";
110
107
  import {
111
108
  coin98Wallet
112
- } from "./chunk-WAHGI5L7.js";
109
+ } from "./chunk-6BW3HLBG.js";
110
+ import {
111
+ bloomWallet
112
+ } from "./chunk-PJ7Y57EH.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-2DLDAZRH.js";
116
+ import {
117
+ coreWallet
118
+ } from "./chunk-RB3HR4R2.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-G2PHTVL6.js";
119
- import {
120
- coreWallet
121
- } from "./chunk-4NV5BYRP.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-FW3WZETT.js";
@@ -130,24 +130,24 @@ import {
130
130
  } from "./chunk-NTMBEOR2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-IULPZP2Q.js";
133
+ } from "./chunk-4T6ZSRJF.js";
134
134
  import {
135
135
  bitgetWallet
136
- } from "./chunk-TKB2OY6G.js";
136
+ } from "./chunk-CPI4TD43.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-7HRFUZFX.js";
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-NSK6A7TI.js";
143
- import {
144
- braveWallet
145
- } from "./chunk-DS73TZ6O.js";
146
143
  import {
147
144
  bybitWallet
148
- } from "./chunk-OX37G4YT.js";
149
- import "./chunk-N4IJLYFY.js";
145
+ } from "./chunk-F5XEEVG6.js";
146
+ import {
147
+ clvWallet
148
+ } from "./chunk-UK7C2JXW.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-YO2K4MBH.js";
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
  okxWallet
4
- } from "../chunk-KI5Y2BBF.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-STVVP43G.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  okxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-W2LCLDPX.js";
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-YQFGVZGR.js";
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-XCNHV3HS.js";
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
  subWallet
4
- } from "../chunk-NR2OGDHQ.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-X6CGV36L.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  subWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-WKNQMP4A.js";
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-KCRO2AGO.js";
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-SWFF3TWJ.js";
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": "9.24.0",
3
+ "version": "9.25.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -111,10 +111,10 @@
111
111
  "ua-parser-js": "^1.0.37",
112
112
  "use-debounce": "^10.0.5",
113
113
  "uuid": "^11.1.1",
114
- "@funkit/api-base": "4.5.1",
114
+ "@funkit/api-base": "5.0.0",
115
115
  "@funkit/chains": "2.1.1",
116
- "@funkit/connect-core": "1.2.0",
117
- "@funkit/fun-relay": "2.8.3",
116
+ "@funkit/connect-core": "1.3.0",
117
+ "@funkit/fun-relay": "2.8.4",
118
118
  "@funkit/utils": "3.1.0"
119
119
  },
120
120
  "repository": {
@@ -1,10 +0,0 @@
1
- import { type CheckoutHistoryItem } from '@funkit/api-base';
2
- import React from 'react';
3
- interface FunCheckoutHistoryHelpProps {
4
- checkoutHistoryInfo: CheckoutHistoryItem | undefined;
5
- onBackFromHelpPage: () => void;
6
- /** Element ID to be used to mount the CTA action bar */
7
- bottomBarId: string;
8
- }
9
- export declare function FunCheckoutHistoryHelp({ checkoutHistoryInfo, onBackFromHelpPage, bottomBarId, }: FunCheckoutHistoryHelpProps): React.JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepComponentProps, ModalStepInfo } from '../stepTransition';
4
- export type CheckoutHelpState = CheckoutModalCommonState & {
5
- depositAddress: Address;
6
- };
7
- export declare const CheckoutHelpInfo: ModalStepInfo<FunCheckoutStep.CHECKOUT_HELP>;
8
- /** Help Form in checkout modal */
9
- export declare function CheckoutHelp({ modalState, onClose, onBack, }: ModalStepComponentProps<FunCheckoutStep.CHECKOUT_HELP>): React.JSX.Element;
@@ -2,6 +2,10 @@
2
2
  import {
3
3
  usePolymarketAccountBalances
4
4
  } from "./chunk-ZEXZQOAO.js";
5
+ import {
6
+ POLYMARKET_PERPS_ROUTING_ID,
7
+ POLYMARKET_PREDICTIONS_ROUTING_ID
8
+ } from "./chunk-VJZW3MA3.js";
5
9
  import {
6
10
  FunInput,
7
11
  FunSkeletonBlock,
@@ -13,10 +17,6 @@ import {
13
17
  themeVars,
14
18
  useFunkitTranslation
15
19
  } from "./chunk-7UIDHSYG.js";
16
- import {
17
- POLYMARKET_PERPS_ROUTING_ID,
18
- POLYMARKET_PREDICTIONS_ROUTING_ID
19
- } from "./chunk-VJZW3MA3.js";
20
20
  import {
21
21
  POLYGON_USDCE,
22
22
  PUSD_TOKEN
@@ -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";