@funkit/connect 9.17.0 → 9.18.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 +20 -0
- package/dist/__generated__/default_configs.d.ts +42 -0
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -1
- package/dist/components/Icons/StatusIcons.d.ts +1 -1
- package/dist/domains/checkoutErrors.d.ts +22 -0
- package/dist/domains/dynamicRouting.d.ts +24 -0
- package/dist/index.css +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +311 -211
- 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 +1 -1
- 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/wagmi/actions.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +33 -33
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +9 -9
- package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-4NV5BYRP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-AVDUNQUW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-GUQM4QSL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-IULPZP2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-JPN6TWIT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-KCRO2AGO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-KI5Y2BBF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-NR2OGDHQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-OEEGYENV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-OX37G4YT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-SWFF3TWJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-TKB2OY6G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-W2LCLDPX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-WAHGI5L7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-WKNQMP4A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-XCNHV3HS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-YO2K4MBH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-YQFGVZGR.js} +3 -3
|
@@ -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,4 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { ErrorNotification } from '../../components/FunNotification/FunNotification';
|
|
3
|
-
import type { CheckoutConfirmationError } from '
|
|
3
|
+
import type { CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
4
4
|
export declare function getErrorNotification(quoteErrorObject: Error | null, withdrawalError: CheckoutConfirmationError | null, targetAssetFetchError: Error | null, t: TFunction): 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
|
/**
|
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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-IULPZP2Q.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-TKB2OY6G.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-OX37G4YT.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-WAHGI5L7.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-AVDUNQUW.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-52QXXLDS.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SWFF3TWJ.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-7ZYCBDQ4.js";
|
|
@@ -13,34 +13,34 @@ import {
|
|
|
13
13
|
} from "./chunk-4DCO3TGL.js";
|
|
14
14
|
import {
|
|
15
15
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WKNQMP4A.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-VH3THHJY.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KCRO2AGO.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
26
|
-
import {
|
|
27
|
-
walletConnectWallet
|
|
28
|
-
} from "./chunk-3FCWJRI4.js";
|
|
29
26
|
import {
|
|
30
27
|
xdefiWallet
|
|
31
28
|
} from "./chunk-JN5I3DNC.js";
|
|
29
|
+
import {
|
|
30
|
+
walletConnectWallet
|
|
31
|
+
} from "./chunk-3FCWJRI4.js";
|
|
32
32
|
import {
|
|
33
33
|
rabbyWallet
|
|
34
34
|
} from "./chunk-RB66PKPA.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-W2LCLDPX.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-OQB55QXP.js";
|
|
41
41
|
import {
|
|
42
42
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-YQFGVZGR.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-RCY66YHF.js";
|
|
@@ -49,22 +49,22 @@ import {
|
|
|
49
49
|
} from "./chunk-76S7R2ND.js";
|
|
50
50
|
import {
|
|
51
51
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XCNHV3HS.js";
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NR2OGDHQ.js";
|
|
56
|
+
import {
|
|
57
|
+
metaMaskWallet
|
|
58
|
+
} from "./chunk-YO2K4MBH.js";
|
|
56
59
|
import {
|
|
57
60
|
mewWallet
|
|
58
61
|
} from "./chunk-MQM45ADF.js";
|
|
59
|
-
import {
|
|
60
|
-
metaMaskWallet
|
|
61
|
-
} from "./chunk-CCQV2ZET.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-YWOVAU6O.js";
|
|
65
65
|
import {
|
|
66
66
|
okxWallet
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-KI5Y2BBF.js";
|
|
68
68
|
import {
|
|
69
69
|
omniWallet
|
|
70
70
|
} from "./chunk-2CX7LX4J.js";
|
|
@@ -79,16 +79,16 @@ import {
|
|
|
79
79
|
} from "./chunk-QY53O7WG.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-GUQM4QSL.js";
|
|
83
|
+
import {
|
|
84
|
+
frontierWallet
|
|
85
|
+
} from "./chunk-AVDUNQUW.js";
|
|
83
86
|
import {
|
|
84
87
|
frameWallet
|
|
85
88
|
} from "./chunk-BU3ZAT5X.js";
|
|
86
|
-
import {
|
|
87
|
-
frontierWallet
|
|
88
|
-
} from "./chunk-YEZM4CK4.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JPN6TWIT.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-WNAGGFMG.js";
|
|
@@ -101,21 +101,21 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-RPV27V2Y.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-OX37G4YT.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-OEEGYENV.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-WAHGI5L7.js";
|
|
110
113
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
coreWallet
|
|
115
|
+
} from "./chunk-4NV5BYRP.js";
|
|
113
116
|
import {
|
|
114
117
|
coinbaseWallet
|
|
115
118
|
} from "./chunk-2DLDAZRH.js";
|
|
116
|
-
import {
|
|
117
|
-
coreWallet
|
|
118
|
-
} from "./chunk-RB3HR4R2.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -125,29 +125,29 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-HBQK5RD5.js";
|
|
128
|
+
import {
|
|
129
|
+
bifrostWallet
|
|
130
|
+
} from "./chunk-IULPZP2Q.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-NTMBEOR2.js";
|
|
131
134
|
import {
|
|
132
135
|
bitgetWallet
|
|
133
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-TKB2OY6G.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-7HRFUZFX.js";
|
|
137
|
-
import {
|
|
138
|
-
bifrostWallet
|
|
139
|
-
} from "./chunk-4T6ZSRJF.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-NSK6A7TI.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PJ7Y57EH.js";
|
|
146
|
+
import "./chunk-N4IJLYFY.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-DS73TZ6O.js";
|
|
149
150
|
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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-YO2K4MBH.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-W2LCLDPX.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-YQFGVZGR.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-XCNHV3HS.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-WKNQMP4A.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-KCRO2AGO.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-SWFF3TWJ.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.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.
|
|
3
|
+
"version": "9.18.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",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"uuid": "^11.1.1",
|
|
113
113
|
"@funkit/api-base": "4.4.1",
|
|
114
114
|
"@funkit/chains": "1.2.0",
|
|
115
|
-
"@funkit/fun-relay": "2.
|
|
115
|
+
"@funkit/fun-relay": "2.8.0",
|
|
116
116
|
"@funkit/utils": "3.0.2"
|
|
117
117
|
},
|
|
118
118
|
"repository": {
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"typecheck": "pnpm tsc --noEmit",
|
|
132
132
|
"typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
|
|
133
133
|
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch",
|
|
134
|
-
"lint": "
|
|
135
|
-
"lint:fix": "
|
|
134
|
+
"lint": "oxlint",
|
|
135
|
+
"lint:fix": "oxlint --fix",
|
|
136
136
|
"test": "vitest",
|
|
137
137
|
"test:coverage": "vitest run --coverage",
|
|
138
138
|
"test:ui": "vitest --ui --coverage --watch",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-N4IJLYFY.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
11
|
var coreWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-N4IJLYFY.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-N4IJLYFY.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
11
|
var foxWallet = ({
|