@funkit/connect 12.4.0 → 12.6.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.
- package/CHANGELOG.md +67 -0
- package/dist/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/{chunk-B7UU2ETA.js → chunk-4DBUYTEE.js} +1 -1
- package/dist/clients/{chunk-27VBRE7W.js → chunk-7GPRX32F.js} +8 -0
- package/dist/clients/{chunk-R6UAC2TB.js → chunk-A2WBB3UO.js} +1 -1
- package/dist/clients/{chunk-A5JW3UI6.js → chunk-ATNOIBW2.js} +1 -1
- package/dist/clients/{chunk-DYV3LRSE.js → chunk-B5KCBBSV.js} +1 -1
- package/dist/clients/{chunk-ECGTOMZQ.js → chunk-F36IJA7V.js} +5 -5
- package/dist/clients/{chunk-WCQ6HJ27.js → chunk-I5VRAFH6.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +6 -6
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/jupiter-ICN4DJIL.js +7 -0
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +4 -4
- package/dist/clients/solflare-M46C72WA.js +7 -0
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +3 -3
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +2 -1
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +8 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/consts/walletIcons.d.ts +7 -0
- package/dist/hooks/track/analytics/mappers.d.ts +4 -2
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -2
- package/dist/hooks/useConnectedWalletIcons.d.ts +6 -0
- package/dist/hooks/useConnectedWallets.d.ts +12 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +11 -2
- package/dist/hooks/useSavedTokenChainSelection.d.ts +16 -0
- package/dist/index.js +3247 -2715
- package/dist/interfaces/solanaWallet.d.ts +10 -0
- package/dist/jupiter-ICN4DJIL.js +7 -0
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +3 -1
- package/dist/modals/CheckoutModal/TransferToken/useSavedTransferTokenSelection.d.ts +16 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -2
- package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +2 -1
- package/dist/modals/WithdrawalModal/useSavedWithdrawalChain.d.ts +13 -0
- package/dist/providers/GeneralWalletProvider.d.ts +15 -3
- package/dist/solflare-M46C72WA.js +7 -0
- package/dist/utils/solanaRelayWallet.d.ts +6 -0
- package/dist/wallets/walletConnectors/index.js +37 -37
- package/package.json +6 -6
- package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +0 -17
|
@@ -5,6 +5,16 @@ interface SolanaWalletBase {
|
|
|
5
5
|
* isn't a valid Solana address.
|
|
6
6
|
*/
|
|
7
7
|
address: string;
|
|
8
|
+
/**
|
|
9
|
+
* Wallet name, e.g. `Phantom`. Picks the icon when none is supplied, and is
|
|
10
|
+
* how funkit recognises the same wallet connected on both ecosystems.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Icon to show for this wallet, as a URL or data URI. Falls back to a
|
|
15
|
+
* bundled icon for wallets funkit recognises by name, then to a generic one.
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
8
18
|
/**
|
|
9
19
|
* The RPC connection funkit submits and confirms through. Use an endpoint
|
|
10
20
|
* you trust for write traffic — Solana's public RPC rejects browser origins.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/jupiter.svg
|
|
4
|
+
var jupiter_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><g clip-path="url(%23a)" filter="url(%23b)"><path fill="url(%23c)" d="M3.09 25.167a16.43 16.43 0 0 0 11.621 6.75c-1.185-1.784-2.907-3.424-5.057-4.673s-4.428-1.931-6.563-2.077Z"/><path fill="url(%23d)" d="M12.543 22.27C8.4 19.864 3.916 19.25.708 20.334c.31 1.024.718 2.015 1.22 2.96 2.787-.065 5.83.692 8.663 2.337 2.832 1.645 4.998 3.915 6.323 6.369 1.07-.033 2.134-.17 3.177-.407-.648-3.323-3.406-6.915-7.548-9.323"/><path fill="url(%23e)" d="M32.285 12.5A16.42 16.42 0 0 0 11.846.627c3.546.434 7.48 1.765 11.34 4.007s6.967 5.001 9.1 7.868Z"/><path fill="url(%23f)" d="M27.127 20.358c-1.815-3.013-4.923-5.9-8.753-8.124s-7.875-3.495-11.389-3.58C3.894 8.582 1.574 9.48.622 11.12l-.02.028q-.126.462-.226.925c1.33-.525 2.87-.817 4.584-.85 3.81-.071 8.073 1.147 12.008 3.433s7.108 5.388 8.932 8.732c.818 1.506 1.329 2.99 1.53 4.407q.355-.315.691-.654l.016-.032c.952-1.641.584-4.101-1.01-6.75Z"/><path fill="url(%23g)" d="M15.46 17.248C9.598 13.842 3.117 13.309 0 15.685q.01 1.119.17 2.224a13 13 0 0 1 2.817-.522c3.483-.262 7.322.709 10.806 2.734s6.23 4.88 7.728 8.033c.414.864.73 1.771.941 2.706a16.4 16.4 0 0 0 2.017-.953c.522-3.886-3.152-9.251-9.018-12.659Z"/><path fill="url(%23h)" d="M30.143 15.314c-1.835-3.01-4.97-5.904-8.827-8.144-3.857-2.239-7.918-3.53-11.443-3.633-2.688-.078-4.77.574-5.848 1.804 4.48-.76 10.392.517 16.121 3.845 5.73 3.329 9.767 7.832 11.326 12.1.534-1.545.07-3.676-1.329-5.972"/></g><defs><linearGradient id="c" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="d" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="e" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="f" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="g" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="h" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h32.285v32H0z"/></clipPath><filter id="b" width="77.775" height="77.49" x="-22.745" y="-20.47" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2.274"/><feGaussianBlur stdDeviation="11.372"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_11565_169621"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_11565_169621" result="shape"/></filter></defs></svg>';
|
|
5
|
+
export {
|
|
6
|
+
jupiter_default as default
|
|
7
|
+
};
|
|
@@ -8,7 +8,9 @@ interface ListFopsData {
|
|
|
8
8
|
}
|
|
9
9
|
interface FormOfPaymentsListProps {
|
|
10
10
|
fopsData?: GetFopsResponse;
|
|
11
|
+
isCashier?: boolean;
|
|
11
12
|
isLoading: boolean;
|
|
13
|
+
isWithdrawal?: boolean;
|
|
12
14
|
selectedFop?: ListFormOfPayment | null;
|
|
13
15
|
/**
|
|
14
16
|
* Non-Swapped methods (e.g. Cash App Lightning) to interleave into the list.
|
|
@@ -45,5 +47,5 @@ export declare function getFormOfPaymentSections(fopsData: ListFopsData, fopPrio
|
|
|
45
47
|
primary: FormOfPaymentSection;
|
|
46
48
|
secondary: FormOfPaymentSection;
|
|
47
49
|
};
|
|
48
|
-
export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, cryptoPaymentMethodItem, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
50
|
+
export declare function FormOfPaymentsList({ fopsData, isCashier, isLoading, isWithdrawal, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, cryptoPaymentMethodItem, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
49
51
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
2
|
+
import type { NotificationItem } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Restores the source the user last deposited from, behind
|
|
5
|
+
* `remember-token-transfer-selection`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useSavedTransferTokenSelection(): {
|
|
8
|
+
selectionOverride: TransferTokenDefault | undefined;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A detected deposit is the screen's success signal. It names the source token
|
|
12
|
+
* by address only, so it is mapped back to the dropdown's symbol before saving.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useSaveTransferTokenOnDeposit(): {
|
|
15
|
+
saveDetectedDeposit: (item: NotificationItem) => void;
|
|
16
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export type ErrorScreenState = CheckoutModalCommonState & {
|
|
4
4
|
errorCode: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const ErrorScreen: () => React.JSX.Element;
|
|
6
|
+
export declare const ErrorScreen: ({ modalState, }: ModalStepComponentProps<FunCheckoutStep.ERROR_SCREEN>) => React.JSX.Element;
|
|
7
7
|
export declare const ErrorScreenInfo: ModalStepInfo<FunCheckoutStep.ERROR_SCREEN>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface WithdrawalMethodSelectProps {
|
|
4
|
+
isCashier?: boolean;
|
|
4
5
|
onCryptoSelect: () => void;
|
|
5
6
|
onCashFopSelect: (fop: SwappedFormOfPayment) => void;
|
|
6
7
|
sourceChainId: string;
|
|
@@ -16,5 +17,5 @@ interface WithdrawalMethodSelectProps {
|
|
|
16
17
|
*/
|
|
17
18
|
hideSectionLabels?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare function WithdrawalMethodSelect({ onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, hideSectionLabels, }: WithdrawalMethodSelectProps): React.JSX.Element;
|
|
20
|
+
export declare function WithdrawalMethodSelect({ isCashier, onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, hideSectionLabels, }: WithdrawalMethodSelectProps): React.JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
|
|
2
|
+
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
3
|
+
type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
4
|
+
type SavedWithdrawalChainConfig = Pick<FunkitWithdrawalConfig, 'sourceChainId'>;
|
|
5
|
+
/**
|
|
6
|
+
* Restores the destination the user last withdrew to, behind
|
|
7
|
+
* `remember-withdrawal-chain` (targeted per customer in Statsig).
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSavedWithdrawalChain(config: SavedWithdrawalChainConfig): {
|
|
10
|
+
selectionOverride: TransferTokenDefault | undefined;
|
|
11
|
+
saveWithdrawalDestination: (destination: TransferTokenDefault) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AssetBalanceInfo, SolanaAddress } from '@funkit/api-base';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
3
|
import type { Address } from 'viem';
|
|
4
|
+
import type { AsyncImageSrc } from '../components/AsyncImage/useAsyncImage';
|
|
4
5
|
import type { IdentityProvider } from '../interfaces/identity';
|
|
5
6
|
import { type UseDisconnectReturnType, type UseReconnectReturnType } from '../wagmi/hooks';
|
|
6
7
|
import { type FunkitUserInfo } from '../consts/funkit';
|
|
@@ -11,12 +12,23 @@ export interface KnownAssetBalanceInfo extends AssetBalanceInfo {
|
|
|
11
12
|
totalUsdValue: number;
|
|
12
13
|
}
|
|
13
14
|
export { LoginType } from '../utils/userInfo';
|
|
15
|
+
/**
|
|
16
|
+
* A wallet that can pay, with the vendor identity a row needs to name and
|
|
17
|
+
* depict it. Recorded checkouts widen the address, having stored what paid
|
|
18
|
+
* rather than validated it.
|
|
19
|
+
*/
|
|
20
|
+
export interface PayerWallet<TAddress extends string = string> {
|
|
21
|
+
address: TAddress;
|
|
22
|
+
name?: string;
|
|
23
|
+
icon?: string | AsyncImageSrc;
|
|
24
|
+
}
|
|
25
|
+
/** One entry per ecosystem: two entries mean two addresses. */
|
|
14
26
|
export interface CheckoutPayer {
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
evmWallet: PayerWallet<Address | ''>;
|
|
28
|
+
solanaWallet: PayerWallet<SolanaAddress> | undefined;
|
|
17
29
|
}
|
|
18
30
|
export interface GeneralWalletContextProps {
|
|
19
|
-
walletAddress: CheckoutPayer['
|
|
31
|
+
walletAddress: CheckoutPayer['evmWallet']['address'];
|
|
20
32
|
payerWallets: CheckoutPayer;
|
|
21
33
|
isUserLoggedIn: boolean;
|
|
22
34
|
loginType: LoginType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/solflare.svg
|
|
4
|
+
var solflare_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect width="50" height="50" rx="12" ry="12" style="fill:%23ffef46"/><path d="m24.23 26.42 2.46-2.38 4.59 1.5c3.01 1 4.51 2.84 4.51 5.43 0 1.96-.75 3.26-2.25 4.93l-.46.5.17-1.17c.67-4.26-.58-6.09-4.72-7.43l-4.3-1.38Zm-6.18-14.57 12.52 4.17-2.71 2.59-6.51-2.17c-2.25-.75-3.01-1.96-3.3-4.51v-.08Zm-.75 21.21 2.84-2.71 5.34 1.75c2.8.92 3.76 2.13 3.46 5.18l-11.65-4.22Zm-3.59-12.11c0-.79.42-1.54 1.13-2.17.75 1.09 2.05 2.05 4.09 2.71l4.42 1.46-2.46 2.38-4.34-1.42c-2-.67-2.84-1.67-2.84-2.96m13.11 21.92C36 36.78 40.93 32.64 40.93 27.55c0-3.38-2-5.26-6.43-6.72l-3.34-1.13 9.14-8.77-1.84-1.96-2.71 2.38-12.81-4.22c-3.97 1.29-8.97 5.09-8.97 8.89 0 .42.04.83.17 1.29-3.3 1.88-4.63 3.63-4.63 5.8 0 2.05 1.09 4.09 4.55 5.22l2.75.92-9.52 9.14 1.84 1.96 2.96-2.71 14.73 5.22Z" style="fill:%2302050a;stroke:%23ffef46;stroke-miterlimit:10;stroke-width:.5px"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
solflare_default as default
|
|
7
|
+
};
|
|
@@ -7,3 +7,9 @@ export declare function resolveSigner(wallet: SolanaWalletConnection): SolanaSig
|
|
|
7
7
|
* adapter types the payer as a base58 address, not the host's bare string.
|
|
8
8
|
*/
|
|
9
9
|
export declare function createSolanaRelayWallet(wallet: ValidatedSolanaWallet): SolanaWallet;
|
|
10
|
+
/** The relay wallet for a Solana source, or undefined for an EVM one. */
|
|
11
|
+
export declare function resolveSolanaRelayWallet({ sourceChainId, solanaWallet, logPrefix, }: {
|
|
12
|
+
sourceChainId: string;
|
|
13
|
+
solanaWallet: ValidatedSolanaWallet | undefined;
|
|
14
|
+
logPrefix: string;
|
|
15
|
+
}): SolanaWallet | undefined;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-HXX4PRE2.js";
|
|
5
5
|
import {
|
|
6
6
|
zealWallet
|
|
7
7
|
} from "./chunk-GLX5FULK.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-34B7OJNT.js";
|
|
11
|
-
import {
|
|
12
|
-
talismanWallet
|
|
13
|
-
} from "./chunk-IAYYWCVB.js";
|
|
14
11
|
import {
|
|
15
12
|
subWallet
|
|
16
13
|
} from "./chunk-XODA5ESL.js";
|
|
17
14
|
import {
|
|
18
15
|
tahoWallet
|
|
19
16
|
} from "./chunk-U74RFZOL.js";
|
|
17
|
+
import {
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-IAYYWCVB.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-NXWG6FG2.js";
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-SR5CZR3L.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-TPM5PUJD.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-SR5CZR3L.js";
|
|
29
|
+
import {
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-UNDWHCDH.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-DUX4XCDV.js";
|
|
@@ -38,27 +38,30 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-RQ2GXOJL.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-ZSSSLFQF.js";
|
|
44
41
|
import {
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-GPXIBTWN.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
rainbowWallet
|
|
46
|
+
} from "./chunk-ZSSSLFQF.js";
|
|
50
47
|
import {
|
|
51
48
|
roninWallet
|
|
52
49
|
} from "./chunk-IA5432IR.js";
|
|
53
50
|
import {
|
|
54
51
|
safeheronWallet
|
|
55
52
|
} from "./chunk-UN3ONVNC.js";
|
|
53
|
+
import {
|
|
54
|
+
safeWallet
|
|
55
|
+
} from "./chunk-IR3PJMVM.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-BBB2J3US.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BL4OC2EJ.js";
|
|
62
|
+
import {
|
|
63
|
+
oktoWallet
|
|
64
|
+
} from "./chunk-V4M3SNPS.js";
|
|
62
65
|
import {
|
|
63
66
|
metaMaskWallet
|
|
64
67
|
} from "./chunk-RXRYHMRI.js";
|
|
@@ -71,30 +74,27 @@ import {
|
|
|
71
74
|
import {
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-2TAUCVX7.js";
|
|
77
|
+
import {
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-GFS2AVAH.js";
|
|
74
80
|
import {
|
|
75
81
|
oneKeyWallet
|
|
76
82
|
} from "./chunk-KN32ITJ7.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
oneInchWallet
|
|
82
|
-
} from "./chunk-GFS2AVAH.js";
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
83
86
|
import {
|
|
84
87
|
foxWallet
|
|
85
88
|
} from "./chunk-U52QO5HF.js";
|
|
86
89
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
frameWallet
|
|
91
|
+
} from "./chunk-B572YIAQ.js";
|
|
89
92
|
import {
|
|
90
93
|
frontierWallet
|
|
91
94
|
} from "./chunk-IWOMSW64.js";
|
|
92
95
|
import {
|
|
93
96
|
gateWallet
|
|
94
97
|
} from "./chunk-YRMBR6NA.js";
|
|
95
|
-
import {
|
|
96
|
-
frameWallet
|
|
97
|
-
} from "./chunk-B572YIAQ.js";
|
|
98
98
|
import {
|
|
99
99
|
imTokenWallet
|
|
100
100
|
} from "./chunk-YY2JA23M.js";
|
|
@@ -104,9 +104,6 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
kresusWallet
|
|
106
106
|
} from "./chunk-V77ATGZT.js";
|
|
107
|
-
import {
|
|
108
|
-
bybitWallet
|
|
109
|
-
} from "./chunk-BBDNB5TQ.js";
|
|
110
107
|
import {
|
|
111
108
|
clvWallet
|
|
112
109
|
} from "./chunk-4FHNLTR3.js";
|
|
@@ -117,20 +114,20 @@ import {
|
|
|
117
114
|
coinbaseWallet
|
|
118
115
|
} from "./chunk-SM2A3OSG.js";
|
|
119
116
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
117
|
+
bitverseWallet
|
|
118
|
+
} from "./chunk-5AEWIKRA.js";
|
|
122
119
|
import {
|
|
123
120
|
customWallet
|
|
124
121
|
} from "./chunk-VKM5M5UK.js";
|
|
122
|
+
import {
|
|
123
|
+
coreWallet
|
|
124
|
+
} from "./chunk-TRZDAXCQ.js";
|
|
125
125
|
import {
|
|
126
126
|
dawnWallet
|
|
127
127
|
} from "./chunk-LV6YV3DE.js";
|
|
128
128
|
import {
|
|
129
129
|
desigWallet
|
|
130
130
|
} from "./chunk-DFHP75HV.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-ALGPGI6V.js";
|
|
134
131
|
import {
|
|
135
132
|
argentWallet
|
|
136
133
|
} from "./chunk-XSDTNMQY.js";
|
|
@@ -140,16 +137,19 @@ import {
|
|
|
140
137
|
import {
|
|
141
138
|
bitskiWallet
|
|
142
139
|
} from "./chunk-NPITCCJE.js";
|
|
140
|
+
import {
|
|
141
|
+
bifrostWallet
|
|
142
|
+
} from "./chunk-ALGPGI6V.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PNHDOC77.js";
|
|
146
|
-
import {
|
|
147
|
-
bitverseWallet
|
|
148
|
-
} from "./chunk-5AEWIKRA.js";
|
|
149
|
-
import "./chunk-AALSJCUR.js";
|
|
150
146
|
import {
|
|
151
147
|
braveWallet
|
|
152
148
|
} from "./chunk-U2XXV45G.js";
|
|
149
|
+
import {
|
|
150
|
+
bybitWallet
|
|
151
|
+
} from "./chunk-BBDNB5TQ.js";
|
|
152
|
+
import "./chunk-AALSJCUR.js";
|
|
153
153
|
import "./chunk-EYWGX5LT.js";
|
|
154
154
|
import "./chunk-B454LLKJ.js";
|
|
155
155
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
"ua-parser-js": "^1.0.37",
|
|
114
114
|
"use-debounce": "^10.0.5",
|
|
115
115
|
"uuid": "^11.1.1",
|
|
116
|
-
"@funkit/
|
|
117
|
-
"@funkit/
|
|
118
|
-
"@funkit/
|
|
119
|
-
"@funkit/
|
|
120
|
-
"@funkit/utils": "
|
|
116
|
+
"@funkit/api-base": "8.3.1",
|
|
117
|
+
"@funkit/chains": "2.4.0",
|
|
118
|
+
"@funkit/connect-core": "8.0.0",
|
|
119
|
+
"@funkit/fun-relay": "3.0.1",
|
|
120
|
+
"@funkit/utils": "5.0.0"
|
|
121
121
|
},
|
|
122
122
|
"repository": {
|
|
123
123
|
"type": "git",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
|
|
2
|
-
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
3
|
-
/** Last successfully used destination chain for this source chain + account. */
|
|
4
|
-
export declare function readWithdrawalLastChain(sourceChainId: string, accountAddress: string): number | undefined;
|
|
5
|
-
/** Persist a successful destination without affecting the flow. */
|
|
6
|
-
export declare function writeWithdrawalLastChain(sourceChainId: string, accountAddress: string, chainId: number): void;
|
|
7
|
-
type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
8
|
-
type WithdrawalChainPreferenceConfig = Pick<FunkitWithdrawalConfig, 'sourceChainId' | 'defaultReceiveToken' | 'sourceTokenSymbol'>;
|
|
9
|
-
/**
|
|
10
|
-
* Restores the destination chain the user last withdrew to, behind
|
|
11
|
-
* `remember-withdrawal-chain` (targeted per customer in Statsig).
|
|
12
|
-
*/
|
|
13
|
-
export declare function useWithdrawalChainPreference(config: WithdrawalChainPreferenceConfig): {
|
|
14
|
-
selectionOverride: TransferTokenDefault | undefined;
|
|
15
|
-
rememberSuccessfulChain: (chainId: number) => void;
|
|
16
|
-
};
|
|
17
|
-
export {};
|