@funkit/connect 9.17.0 → 9.19.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 +52 -0
- package/dist/__generated__/default_configs.d.ts +42 -0
- package/dist/{chunk-O35RTEEF.js → chunk-6K4U3Z4Z.js} +3 -0
- package/dist/{chunk-C2DLTEP2.js → chunk-NBECXHBY.js} +1 -1
- package/dist/{chunk-PPNE44RL.js → chunk-PFIXC5YK.js} +1 -1
- package/dist/clients/chunk-GSK3TMI5.js +290 -0
- package/dist/clients/fanatics.css +4729 -4699
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/lighter.css +4729 -4699
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/polymarket.js +14 -13
- package/dist/clients/rolly.d.ts +13 -11
- package/dist/clients/rolly.js +17 -17
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -1
- package/dist/components/Box/Box.d.ts +18 -18
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/Icons/CoinsIcon.d.ts +3 -1
- package/dist/components/Icons/StatusIcons.d.ts +1 -1
- package/dist/components/PaddedScrollableArea/PaddedScrollableArea.d.ts +1 -2
- package/dist/css/sprinkles.css.d.ts +22 -18
- package/dist/domains/checkoutErrors.d.ts +22 -0
- package/dist/domains/checkoutNotifications.d.ts +1 -46
- package/dist/domains/dynamicRouting.d.ts +24 -0
- package/dist/domains/paymentMethods.d.ts +2 -20
- package/dist/domains/swapped.d.ts +2 -21
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +3 -1
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +1 -1
- package/dist/index.css +4859 -4813
- package/dist/index.d.ts +1 -1
- package/dist/index.js +811 -1035
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -22
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +6 -2
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +8 -2
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -6
- package/dist/providers/FunkitCheckoutContext/types.d.ts +14 -2
- package/dist/providers/FunkitThemeProvider.d.ts +6 -0
- package/dist/providers/ModalSizeContext.d.ts +1 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/address.d.ts +1 -14
- package/dist/utils/directExecution.d.ts +1 -34
- package/dist/utils/getExchangeRate.d.ts +1 -4
- package/dist/utils/swapped.d.ts +3 -41
- package/dist/utils/transfer.d.ts +1 -10
- package/dist/wagmi/actions.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +31 -31
- package/package.json +12 -11
- package/dist/clients/chunk-JOBMGIG4.js +0 -290
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
1
|
import type { Address } from 'viem';
|
|
3
|
-
import { type
|
|
4
|
-
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
5
|
-
export interface CheckoutConfirmationError extends ErrorNotification {
|
|
6
|
-
durationMs?: number;
|
|
7
|
-
code: ConfirmationErrorCode;
|
|
8
|
-
}
|
|
9
|
-
export declare enum ConfirmationErrorCode {
|
|
10
|
-
QUOTE_EXPIRED = "QUOTE_EXPIRED",
|
|
11
|
-
GENERIC_ERROR = "GENERIC_ERROR",
|
|
12
|
-
WITHDRAWAL_RATE_LIMIT_EXCEEDED = "WITHDRAWAL_RATE_LIMIT_EXCEEDED",
|
|
13
|
-
RISK_ERROR = "RISK_ERROR",
|
|
14
|
-
SIGNATURE_DENIED = "SIGNATURE_DENIED",
|
|
15
|
-
SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR",
|
|
16
|
-
WALLET_CLIENT_UNDEFINED = "WALLET_CLIENT_UNDEFINED",
|
|
17
|
-
INSUFFICIENT_GAS = "INSUFFICIENT_GAS",
|
|
18
|
-
POLYGON_RPC_ERROR = "POLYGON_RPC_ERROR"
|
|
19
|
-
}
|
|
2
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
20
3
|
interface UseCheckoutConfirmationOptions {
|
|
21
4
|
onError(error: CheckoutConfirmationError): void;
|
|
22
5
|
onSuccess(depositAddress: Address): void;
|
|
@@ -27,9 +10,5 @@ interface UseCheckoutConfirmationResult {
|
|
|
27
10
|
handleCheckoutConfirmation(): Promise<void>;
|
|
28
11
|
isConfirming: boolean;
|
|
29
12
|
}
|
|
30
|
-
export declare function toCheckoutConfirmationError(t: TFunction, error: unknown, wagmiConfig: Config, options?: {
|
|
31
|
-
fromChainId?: string;
|
|
32
|
-
connector?: Connector;
|
|
33
|
-
}): Promise<CheckoutConfirmationError>;
|
|
34
13
|
export declare function useCheckoutConfirmation({ onError, onSuccess, }: UseCheckoutConfirmationOptions): UseCheckoutConfirmationResult;
|
|
35
14
|
export {};
|
|
@@ -7,7 +7,9 @@ import { type ERC712Signature, type SupplyRequest } from '@aave/client';
|
|
|
7
7
|
import type { ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
8
8
|
import type { Dnum } from 'dnum';
|
|
9
9
|
import { type Address, type Hex, type WalletClient } from 'viem';
|
|
10
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
10
11
|
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
12
|
+
import { type Config } from '../../../wagmi/hooks';
|
|
11
13
|
interface AaveNativeSupplyContextArgs {
|
|
12
14
|
apiKey: string;
|
|
13
15
|
sourceAsset: {
|
|
@@ -47,12 +49,14 @@ export declare function getSupplyAmountBaseUnit(tokenAmountBaseUnit: Dnum | null
|
|
|
47
49
|
* `generateActionsParams`.
|
|
48
50
|
*/
|
|
49
51
|
export declare function buildAaveNativeSupplyConfig(config: FunkitCheckoutConfig, assetAmount: number): ApiFunkitCheckoutConfig;
|
|
52
|
+
/** Upper bound on waiting for the USDT zero-reset to mine before giving up. */
|
|
53
|
+
export declare const USDT_RESET_RECEIPT_TIMEOUT_MS = 90000;
|
|
50
54
|
/**
|
|
51
55
|
* USDT's `approve` reverts on a non-zero → non-zero change — zeroing first
|
|
52
56
|
* lets the SDK's approve(amount) succeed. Same quirk handled by the
|
|
53
57
|
* VaultDepositor path (`createAaveSupplyActions`).
|
|
54
58
|
*/
|
|
55
|
-
export declare function resetUsdtAllowanceIfNeeded(walletClient: WalletClient, { owner, market, currency, targetChainNum, }: {
|
|
59
|
+
export declare function resetUsdtAllowanceIfNeeded(wagmiConfig: Config, walletClient: WalletClient, { owner, market, currency, targetChainNum, }: {
|
|
56
60
|
owner: Address;
|
|
57
61
|
market: Address;
|
|
58
62
|
currency: Address;
|
|
@@ -106,7 +110,7 @@ interface UseAaveNativeSupplyResult {
|
|
|
106
110
|
txHash: Hex;
|
|
107
111
|
} | null>;
|
|
108
112
|
isPending: boolean;
|
|
109
|
-
error:
|
|
113
|
+
error: CheckoutConfirmationError | null;
|
|
110
114
|
}
|
|
111
115
|
export declare function useAaveNativeSupply(): UseAaveNativeSupplyResult;
|
|
112
116
|
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { ErrorNotification } from '../../components/FunNotification/FunNotification';
|
|
3
|
-
import type { CheckoutConfirmationError } from '
|
|
4
|
-
export declare function getErrorNotification(quoteErrorObject
|
|
3
|
+
import type { CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
4
|
+
export declare function getErrorNotification({ quoteErrorObject, withdrawalError, targetAssetFetchError, riskCheckError, t, }: {
|
|
5
|
+
quoteErrorObject: Error | null;
|
|
6
|
+
withdrawalError: CheckoutConfirmationError | null;
|
|
7
|
+
targetAssetFetchError: Error | null;
|
|
8
|
+
riskCheckError: Error | null;
|
|
9
|
+
t: TFunction;
|
|
10
|
+
}): ErrorNotification | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address, Hex } from 'viem';
|
|
2
|
+
import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
2
3
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
3
4
|
import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
4
|
-
import { type CheckoutConfirmationError } from '../CheckoutModal/ConfirmationStep/useCheckoutConfirmation';
|
|
5
5
|
interface UseWithdrawalResult {
|
|
6
6
|
handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
|
|
7
7
|
isWithdrawing: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DynamicRoutePath } from '@funkit/fun-relay';
|
|
2
1
|
import React, { type ReactNode } from 'react';
|
|
3
2
|
import type { Address } from 'viem';
|
|
3
|
+
import { type ApplyDynamicRoutingPath } from '../../domains/dynamicRouting';
|
|
4
4
|
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
5
5
|
import type { AssetHoldingsItem } from '../../utils/assets';
|
|
6
6
|
import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
|
|
@@ -43,11 +43,7 @@ interface FunkitCheckoutContextInterface {
|
|
|
43
43
|
updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
|
|
44
44
|
resetForNewWithdrawal(): void;
|
|
45
45
|
resetForNewDeposit(): void;
|
|
46
|
-
applyDynamicRouting(path:
|
|
47
|
-
customRecipient?: FunkitCheckoutConfig['customRecipient'];
|
|
48
|
-
generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
|
|
49
|
-
bridgeOverride?: FunkitCheckoutConfig['bridgeOverride'];
|
|
50
|
-
}): void;
|
|
46
|
+
applyDynamicRouting(path: ApplyDynamicRoutingPath): void;
|
|
51
47
|
updateDynamicRoutingId(dynamicRoutingId: string): void;
|
|
52
48
|
}
|
|
53
49
|
export type CheckoutProgressStep = 1 | 2;
|
|
@@ -11,6 +11,16 @@ export interface TokenInfo {
|
|
|
11
11
|
tokenAddress: Address;
|
|
12
12
|
tokenChainId: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Argument passed to a dynamic {@link FunkitCheckoutConfig.modalTitle} resolver.
|
|
16
|
+
* Extends {@link TokenInfo} with the active dynamic routing id so titles can be
|
|
17
|
+
* keyed by route/action — not just token address — which matters when two
|
|
18
|
+
* routes share a target token (e.g. Lighter USDC perps vs spot both deposit
|
|
19
|
+
* mainnet USDC).
|
|
20
|
+
*/
|
|
21
|
+
export interface ModalTitleContext extends TokenInfo {
|
|
22
|
+
dynamicRoutingId?: string;
|
|
23
|
+
}
|
|
14
24
|
export interface DynamicTargetAssetCandidate extends TokenInfo {
|
|
15
25
|
iconSrc: string;
|
|
16
26
|
tokenSymbol: string;
|
|
@@ -63,8 +73,10 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
63
73
|
/** ****************************************
|
|
64
74
|
* Checkout ModalUI-related configurations *
|
|
65
75
|
*******************************************/
|
|
66
|
-
/** Title to show in the checkout modal. Defaults to "Checkout"
|
|
67
|
-
|
|
76
|
+
/** Title to show in the checkout modal. Defaults to "Checkout".
|
|
77
|
+
* The resolver receives the target token plus the active `dynamicRoutingId`,
|
|
78
|
+
* so titles can disambiguate routes that share a target token. **/
|
|
79
|
+
modalTitle?: string | ((asset: ModalTitleContext) => string);
|
|
68
80
|
/** Additional information to show in the title of the checkout modal. Blank by default **/
|
|
69
81
|
modalTitleMeta?: string;
|
|
70
82
|
/**
|
|
@@ -210,6 +210,7 @@ export declare const useActiveTheme: () => {
|
|
|
210
210
|
dropdownGroupHeader: string;
|
|
211
211
|
header: string;
|
|
212
212
|
inputAmount: string;
|
|
213
|
+
modalTopbarTitle: string;
|
|
213
214
|
txStatusDescription: string;
|
|
214
215
|
txStatusTitle: string;
|
|
215
216
|
};
|
|
@@ -509,6 +510,7 @@ export declare const useActiveTheme: () => {
|
|
|
509
510
|
selectBrokerageItemPaddingX: string;
|
|
510
511
|
selectBrokerageItemPaddingY: string;
|
|
511
512
|
selectBrokerageListGap: string;
|
|
513
|
+
walletConnectorListGap: string;
|
|
512
514
|
txBreakdownMarginY: string;
|
|
513
515
|
txBreakdownPaddingX: string;
|
|
514
516
|
txSummaryBoxPaddingX: string;
|
|
@@ -736,6 +738,7 @@ export declare const useActiveTheme: () => {
|
|
|
736
738
|
dropdownGroupHeader: string;
|
|
737
739
|
header: string;
|
|
738
740
|
inputAmount: string;
|
|
741
|
+
modalTopbarTitle: string;
|
|
739
742
|
txStatusDescription: string;
|
|
740
743
|
txStatusTitle: string;
|
|
741
744
|
};
|
|
@@ -1035,6 +1038,7 @@ export declare const useActiveTheme: () => {
|
|
|
1035
1038
|
selectBrokerageItemPaddingX: string;
|
|
1036
1039
|
selectBrokerageItemPaddingY: string;
|
|
1037
1040
|
selectBrokerageListGap: string;
|
|
1041
|
+
walletConnectorListGap: string;
|
|
1038
1042
|
txBreakdownMarginY: string;
|
|
1039
1043
|
txBreakdownPaddingX: string;
|
|
1040
1044
|
txSummaryBoxPaddingX: string;
|
|
@@ -1260,6 +1264,7 @@ export declare const useActiveTheme: () => {
|
|
|
1260
1264
|
dropdownGroupHeader: string;
|
|
1261
1265
|
header: string;
|
|
1262
1266
|
inputAmount: string;
|
|
1267
|
+
modalTopbarTitle: string;
|
|
1263
1268
|
txStatusDescription: string;
|
|
1264
1269
|
txStatusTitle: string;
|
|
1265
1270
|
};
|
|
@@ -1559,6 +1564,7 @@ export declare const useActiveTheme: () => {
|
|
|
1559
1564
|
selectBrokerageItemPaddingX: string;
|
|
1560
1565
|
selectBrokerageItemPaddingY: string;
|
|
1561
1566
|
selectBrokerageListGap: string;
|
|
1567
|
+
walletConnectorListGap: string;
|
|
1562
1568
|
txBreakdownMarginY: string;
|
|
1563
1569
|
txBreakdownPaddingX: string;
|
|
1564
1570
|
txSummaryBoxPaddingX: string;
|
|
@@ -3,6 +3,7 @@ export declare const ModalSizeOptions: {
|
|
|
3
3
|
readonly COMPACT: "compact";
|
|
4
4
|
readonly MEDIUM: "medium";
|
|
5
5
|
readonly WIDE: "wide";
|
|
6
|
+
readonly EXTRA_WIDE: "extraWide";
|
|
6
7
|
};
|
|
7
8
|
export type ModalSizes = (typeof ModalSizeOptions)[keyof typeof ModalSizeOptions];
|
|
8
9
|
export declare const ModalSizeContext: React.Context<ModalSizes>;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/address.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
3
|
-
export declare const getWalletLabel: (t: TFunction, textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
|
|
4
|
-
export declare function isWithdrawalAddressSupported(address: string): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Check if the recipient address is compatible with selected chain.
|
|
7
|
-
* Supports EVM, Solana, and Tron chains for withdrawal.
|
|
8
|
-
*/
|
|
9
|
-
export declare function isAddressCompatibleWithChain(address: string, chainId: number): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* True for any positive-integer (string-encoded) chain id that isn't a known
|
|
12
|
-
* non-EVM chain. Used to gate EVM-only flows (EIP-747, etc.).
|
|
13
|
-
*/
|
|
14
|
-
export declare function isEvmChainId(chainId: string): boolean;
|
|
1
|
+
export { getWalletLabel, isAddressCompatibleWithChain, isEvmChainId, isWithdrawalAddressSupported, } from '@funkit/connect-core';
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { WalletClient } from 'viem';
|
|
3
|
-
export declare function getDirectExecutionCreatedTimeMs(directExecution: DirectExecution): number;
|
|
4
|
-
export declare function getDirectExecutionUpdatedTimeMs(directExecution: DirectExecution): number;
|
|
5
|
-
/**
|
|
6
|
-
* Unique key for a DE notification record, stable between synthetic and real record.
|
|
7
|
-
*
|
|
8
|
-
* When a synthetic deposit-detection DE is replaced by the real DE, the txHash
|
|
9
|
-
* changes but triggeringTxHash stays the same. Preferring triggeringTxHash keeps
|
|
10
|
-
* the identity stable across that swap, avoiding a flash/remount of the notification.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getDirectExecutionNotificationKey(item: DirectExecution): string;
|
|
13
|
-
export declare function getDirectExecutionRunTimeSeconds(directExecution: DirectExecution): number;
|
|
14
|
-
/**
|
|
15
|
-
* Resolves the completion transaction chain, hash, and explorer URL for a direct execution.
|
|
16
|
-
*
|
|
17
|
-
* Chain resolution: if LayerZero OFT data is present, use the LZ destination chain;
|
|
18
|
-
* otherwise fall back to the DE's toChainId.
|
|
19
|
-
*
|
|
20
|
-
* Hash resolution: for Lighter L1 deposits (new user flow where toChainId is NOT Lighter),
|
|
21
|
-
* the completion explorer should point to Lighter using lighterExecutionStatusResponse.hash.
|
|
22
|
-
* For the existing user flow (toChainId IS Lighter), relay already puts the correct
|
|
23
|
-
* Lighter hash into listenerInfo.txHashes, so the default path works.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getCompletionTxInfo(directExecution: DirectExecution): {
|
|
26
|
-
chainId: string;
|
|
27
|
-
txHash: string | undefined;
|
|
28
|
-
customRedirectUrl: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Returns a proxied wallet with getCapabilities patched to disable atomic batch support.
|
|
32
|
-
* This forces Relay to use sequential transactions instead of batched ones.
|
|
33
|
-
*/
|
|
34
|
-
export declare function disableAtomicBatchIfSupported(wallet: WalletClient, chainId: number): Promise<WalletClient>;
|
|
1
|
+
export { disableAtomicBatchIfSupported, getCompletionTxInfo, getDirectExecutionCreatedTimeMs, getDirectExecutionNotificationKey, getDirectExecutionRunTimeSeconds, getDirectExecutionUpdatedTimeMs, } from '@funkit/connect-core';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Get the exchange rate for a given currency or return undefined if not found or any of the arguments are undefined
|
|
3
|
-
*/
|
|
4
|
-
export declare const getExchangeRate: (currency: string | undefined, currencyExchangeRates: Record<string, number> | undefined, bipsMarkup?: number) => number | undefined;
|
|
1
|
+
export { getExchangeRate } from '@funkit/connect-core';
|
package/dist/utils/swapped.d.ts
CHANGED
|
@@ -1,45 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { SwappedTheme } from '@funkit/connect-core';
|
|
2
2
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export interface SwappedTheme {
|
|
7
|
-
colors: Record<string, string>;
|
|
8
|
-
radii: Record<string, string>;
|
|
9
|
-
headerHeight: string;
|
|
10
|
-
headerFontWeight: string;
|
|
11
|
-
buttonFontWeight: string;
|
|
12
|
-
modalBottomBarButtonHeight: string;
|
|
13
|
-
iframeBackground: string;
|
|
14
|
-
paddingPrimary?: string;
|
|
15
|
-
paddingPrimaryX?: string;
|
|
16
|
-
paddingPrimaryY?: string;
|
|
17
|
-
paddingSecondary: string;
|
|
18
|
-
paddingTertiary: string;
|
|
19
|
-
baseFont?: string;
|
|
20
|
-
secondaryFont?: string;
|
|
21
|
-
topbarIconColor?: string;
|
|
22
|
-
topbarIconHoverColor?: string;
|
|
23
|
-
headerIconWrapperSize?: string;
|
|
24
|
-
headerIconSize?: string;
|
|
25
|
-
topbarTextFontSize?: string;
|
|
26
|
-
contentPadding?: string;
|
|
27
|
-
boxPaddingY?: string;
|
|
28
|
-
boxPaddingX?: string;
|
|
29
|
-
paymentMethodLightLogos?: boolean;
|
|
30
|
-
topbarPaddingX?: string;
|
|
31
|
-
topbarPaddingY?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const SWAPPED_CARD_BRANDS: Record<string, {
|
|
34
|
-
displayName: string;
|
|
35
|
-
iconImageUrl: string;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const isSavedFormOfPaymentType: (fop: SwappedFormOfPayment) => fop is SavedFormOfPayment;
|
|
38
|
-
export declare const getSavedFormOfPaymentDisplayName: (fop: SavedFormOfPayment) => string;
|
|
39
|
-
export declare const getSavedFormOfPaymentIcon: (fop: SavedFormOfPayment) => string | undefined;
|
|
40
|
-
export declare const getSwappedIcon: (fop: SwappedFormOfPayment, isDarkMode: boolean) => string;
|
|
41
|
-
export declare function getSwappedOrigin(url: string): string | null;
|
|
42
|
-
export declare function isSwappedOrigin(origin: string): boolean;
|
|
3
|
+
export { getSavedFormOfPaymentDisplayName, getSavedFormOfPaymentIcon, getSwappedIcon, getSwappedOrigin, isSavedFormOfPaymentType, isSwappedOrigin, SWAPPED_CARD_BRANDS, } from '@funkit/connect-core';
|
|
4
|
+
export type { SwappedTheme };
|
|
43
5
|
export declare function resolveCssValue(value: string): string;
|
|
44
6
|
export declare function resolveObjectCssVars<T extends object>(obj: T): T;
|
|
45
7
|
/**
|
package/dist/utils/transfer.d.ts
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function getDepositAddressForChain(chainId: number, transferInit: CheckoutInitTokenTransferResponse | undefined): FunAddress | undefined;
|
|
3
|
-
export type TransferTokenQrCodeType = 'ethereum' | 'solana' | 'bitcoin' | 'tron';
|
|
4
|
-
interface TransferTokenQrCodeUriParams {
|
|
5
|
-
depositAddress: FunAddress;
|
|
6
|
-
type: TransferTokenQrCodeType;
|
|
7
|
-
}
|
|
8
|
-
export type QRCodeUri = `ethereum:${FunAddress}` | `solana:${FunAddress}` | `bitcoin:${FunAddress}` | FunAddress;
|
|
9
|
-
export declare const getTransferTokenQrCodeUri: (props: TransferTokenQrCodeUriParams) => QRCodeUri;
|
|
10
|
-
export {};
|
|
1
|
+
export { getDepositAddressForChain, getTransferTokenQrCodeUri, type QRCodeUri, type TransferTokenQrCodeType, } from '@funkit/connect-core';
|
package/dist/wagmi/actions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config } from 'wagmi';
|
|
2
2
|
import { type GetBalanceParameters, type GetBalanceReturnType } from 'wagmi/actions';
|
|
3
|
-
export { estimateGas, getGasPrice, getTransaction, getWalletClient, multicall, readContract, } from 'wagmi/actions';
|
|
3
|
+
export { estimateGas, getGasPrice, getTransaction, getWalletClient, multicall, readContract, waitForTransactionReceipt, } from 'wagmi/actions';
|
|
4
4
|
export type GetBalanceReturnTypeCompat = GetBalanceReturnType & {
|
|
5
5
|
formatted: string;
|
|
6
6
|
};
|
|
@@ -5,9 +5,6 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
7
|
} from "./chunk-RVOY537T.js";
|
|
8
|
-
import {
|
|
9
|
-
tahoWallet
|
|
10
|
-
} from "./chunk-7ZYCBDQ4.js";
|
|
11
8
|
import {
|
|
12
9
|
talismanWallet
|
|
13
10
|
} from "./chunk-4DCO3TGL.js";
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
trustWallet
|
|
22
19
|
} from "./chunk-ZNX4EMPB.js";
|
|
20
|
+
import {
|
|
21
|
+
ramperWallet
|
|
22
|
+
} from "./chunk-OQB55QXP.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -30,14 +30,11 @@ import {
|
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-JN5I3DNC.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
oneKeyWallet
|
|
34
|
+
} from "./chunk-WVT6BBJH.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
37
|
} from "./chunk-2VP2F6EK.js";
|
|
38
|
-
import {
|
|
39
|
-
ramperWallet
|
|
40
|
-
} from "./chunk-OQB55QXP.js";
|
|
41
38
|
import {
|
|
42
39
|
roninWallet
|
|
43
40
|
} from "./chunk-VAPGUPHO.js";
|
|
@@ -54,8 +51,8 @@ import {
|
|
|
54
51
|
subWallet
|
|
55
52
|
} from "./chunk-X6CGV36L.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-7ZYCBDQ4.js";
|
|
59
56
|
import {
|
|
60
57
|
metaMaskWallet
|
|
61
58
|
} from "./chunk-CCQV2ZET.js";
|
|
@@ -65,18 +62,24 @@ import {
|
|
|
65
62
|
import {
|
|
66
63
|
okxWallet
|
|
67
64
|
} from "./chunk-STVVP43G.js";
|
|
65
|
+
import {
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-MQM45ADF.js";
|
|
68
68
|
import {
|
|
69
69
|
omniWallet
|
|
70
70
|
} from "./chunk-2CX7LX4J.js";
|
|
71
71
|
import {
|
|
72
72
|
oneInchWallet
|
|
73
73
|
} from "./chunk-QG6ZHI7B.js";
|
|
74
|
-
import {
|
|
75
|
-
oneKeyWallet
|
|
76
|
-
} from "./chunk-WVT6BBJH.js";
|
|
77
74
|
import {
|
|
78
75
|
phantomWallet
|
|
79
76
|
} from "./chunk-QY53O7WG.js";
|
|
77
|
+
import {
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-RB66PKPA.js";
|
|
80
|
+
import {
|
|
81
|
+
coin98Wallet
|
|
82
|
+
} from "./chunk-6BW3HLBG.js";
|
|
80
83
|
import {
|
|
81
84
|
foxWallet
|
|
82
85
|
} from "./chunk-MIQTHJ6X.js";
|
|
@@ -84,14 +87,11 @@ import {
|
|
|
84
87
|
frameWallet
|
|
85
88
|
} from "./chunk-BU3ZAT5X.js";
|
|
86
89
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
imTokenWallet
|
|
91
|
+
} from "./chunk-WNAGGFMG.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
94
|
} from "./chunk-HNRB7KJU.js";
|
|
92
|
-
import {
|
|
93
|
-
imTokenWallet
|
|
94
|
-
} from "./chunk-WNAGGFMG.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-T6LGKC3F.js";
|
|
@@ -105,41 +105,41 @@ import {
|
|
|
105
105
|
clvWallet
|
|
106
106
|
} from "./chunk-UK7C2JXW.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
coinbaseWallet
|
|
109
|
+
} from "./chunk-2DLDAZRH.js";
|
|
110
110
|
import {
|
|
111
111
|
braveWallet
|
|
112
112
|
} from "./chunk-DS73TZ6O.js";
|
|
113
|
-
import {
|
|
114
|
-
coinbaseWallet
|
|
115
|
-
} from "./chunk-2DLDAZRH.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
115
|
} from "./chunk-RB3HR4R2.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-G2PHTVL6.js";
|
|
122
|
-
import {
|
|
123
|
-
desigWallet
|
|
124
|
-
} from "./chunk-FW3WZETT.js";
|
|
125
119
|
import {
|
|
126
120
|
enkryptWallet
|
|
127
121
|
} from "./chunk-HBQK5RD5.js";
|
|
128
122
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-FW3WZETT.js";
|
|
125
|
+
import {
|
|
126
|
+
frontierWallet
|
|
127
|
+
} from "./chunk-YEZM4CK4.js";
|
|
131
128
|
import {
|
|
132
129
|
bitgetWallet
|
|
133
130
|
} from "./chunk-CPI4TD43.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-NTMBEOR2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-7HRFUZFX.js";
|
|
137
|
-
import {
|
|
138
|
-
bifrostWallet
|
|
139
|
-
} from "./chunk-4T6ZSRJF.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-NSK6A7TI.js";
|
|
140
|
+
import {
|
|
141
|
+
bifrostWallet
|
|
142
|
+
} from "./chunk-4T6ZSRJF.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PJ7Y57EH.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.19.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"wagmi": ">=2.0.0 <=3.6.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
49
|
-
"@aws-sdk/client-s3": "3.
|
|
48
|
+
"@aws-sdk/client-cloudfront": "3.1060.0",
|
|
49
|
+
"@aws-sdk/client-s3": "3.1057.0",
|
|
50
50
|
"@chromatic-com/storybook": "^5.1.2",
|
|
51
51
|
"@statsig/statsig-node-core": "^0.11.1",
|
|
52
52
|
"@storybook/addon-docs": "^10.3.6",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@vanilla-extract/esbuild-plugin": "^2.3.16",
|
|
62
62
|
"@vanilla-extract/private": "^1.0.7",
|
|
63
63
|
"@vanilla-extract/vite-plugin": "^5.2.2",
|
|
64
|
-
"@vitejs/plugin-react": "^
|
|
64
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
65
65
|
"autoprefixer": "^10.4.27",
|
|
66
66
|
"buffer": "^6.0.3",
|
|
67
67
|
"dotenv": "^17.2.3",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"react": "^19.0.0",
|
|
76
76
|
"storybook": "^10.3.6",
|
|
77
77
|
"stream-browserify": "^3.0.0",
|
|
78
|
-
"tsc-alias": "1.8.
|
|
79
|
-
"tsx": "^4.
|
|
78
|
+
"tsc-alias": "1.8.17",
|
|
79
|
+
"tsx": "^4.22.4",
|
|
80
80
|
"util": "^0.12.5",
|
|
81
81
|
"vite-plugin-node-polyfills": "^0.26.0",
|
|
82
82
|
"vitest": "^4.1.6",
|
|
@@ -110,9 +110,10 @@
|
|
|
110
110
|
"ua-parser-js": "^1.0.37",
|
|
111
111
|
"use-debounce": "^10.0.5",
|
|
112
112
|
"uuid": "^11.1.1",
|
|
113
|
-
"@funkit/api-base": "4.
|
|
114
|
-
"@funkit/chains": "
|
|
115
|
-
"@funkit/
|
|
113
|
+
"@funkit/api-base": "4.5.0",
|
|
114
|
+
"@funkit/chains": "2.0.0",
|
|
115
|
+
"@funkit/connect-core": "0.2.0",
|
|
116
|
+
"@funkit/fun-relay": "2.8.0",
|
|
116
117
|
"@funkit/utils": "3.0.2"
|
|
117
118
|
},
|
|
118
119
|
"repository": {
|
|
@@ -131,8 +132,8 @@
|
|
|
131
132
|
"typecheck": "pnpm tsc --noEmit",
|
|
132
133
|
"typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
|
|
133
134
|
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch",
|
|
134
|
-
"lint": "
|
|
135
|
-
"lint:fix": "
|
|
135
|
+
"lint": "oxlint",
|
|
136
|
+
"lint:fix": "oxlint --fix",
|
|
136
137
|
"test": "vitest",
|
|
137
138
|
"test:coverage": "vitest run --coverage",
|
|
138
139
|
"test:ui": "vitest --ui --coverage --watch",
|