@funkit/connect 9.14.0 → 9.15.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 +34 -0
- package/dist/__generated__/default_configs.d.ts +5 -11
- package/dist/__generated__/default_feature_gates.d.ts +3 -2
- package/dist/clients/aave.d.ts +92 -0
- package/dist/clients/aave.js +156 -0
- package/dist/clients/{chunk-LMEQD56M.js → chunk-PLDXBAAH.js} +2 -1
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/lighter.d.ts +33 -2
- package/dist/clients/lighter.js +121 -2
- package/dist/clients/polymarket.d.ts +30 -1
- package/dist/clients/polymarket.js +147 -4
- package/dist/components/CopyAddress/CopyInputDisplayedAddress.css.d.ts +1 -0
- package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +6 -0
- package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +5 -0
- package/dist/consts/polymarket.d.ts +7 -0
- package/dist/domains/quote.d.ts +11 -0
- package/dist/index.css +12 -5
- package/dist/index.js +828 -516
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +4 -0
- package/dist/modals/CheckoutModal/InputAmount/aaveClient.d.ts +20 -0
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +44 -0
- package/dist/modals/WithdrawalModal/WithdrawalSuccess.d.ts +0 -1
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +1 -2
- package/dist/providers/FunkitCheckoutContext/index.d.ts +8 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +6 -0
- 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 +51 -51
- 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 +10 -5
- package/dist/wallets/walletConnectors/{chunk-VMMROPXK.js → chunk-34HACM5U.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3ZJN3PXP.js → chunk-5TN5Z2WY.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OD6B2ISG.js → chunk-6DRCY52E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IRHK6SOW.js → chunk-7V33VJAL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZJJWGKB6.js → chunk-APHCF4DT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7IEUTLHY.js → chunk-DEFRRPXB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OSOB6QYX.js → chunk-FG2LDVXL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZL6XCMV5.js → chunk-HRDPUW3V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UYW6MV74.js → chunk-HXWUH73P.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UFYNHHDU.js → chunk-KWX2SYU2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AZYMJ4C6.js → chunk-LCIPVVH5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FWM4KTOV.js → chunk-T4ROGPMF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-J3PJOMO7.js → chunk-UDTBQV4Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-55VS2NKG.js → chunk-V6UOWTEZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LEAZMT5Y.js → chunk-VJZWNQOF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RZQ4B4Z7.js → chunk-XVBSJCW5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IMNI4AGV.js → chunk-YIEASHLS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YGMU5VWD.js → chunk-ZPSPK6LH.js} +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import type { Hex } from 'viem';
|
|
3
4
|
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
5
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
6
|
export type InputAmountState = CheckoutModalCommonState & {
|
|
@@ -19,6 +20,9 @@ export type InputAmountNext = Record<string, never> | {
|
|
|
19
20
|
provider?: MeldServiceProvider;
|
|
20
21
|
quote?: MeldQuote;
|
|
21
22
|
nextStep?: FunCheckoutStep.SOURCE_CHANGE | FunCheckoutStep.MELD_CURRENCY_SELECT | FunCheckoutStep.MELD_QUOTES | FunCheckoutStep.MELD_REDIRECT;
|
|
23
|
+
} | {
|
|
24
|
+
nextStep: FunCheckoutStep.CHECKOUT_COMPLETE;
|
|
25
|
+
txHash: Hex;
|
|
22
26
|
};
|
|
23
27
|
export declare const InputAmountInfo: ModalStepInfo<FunCheckoutStep.INPUT_AMOUNT>;
|
|
24
28
|
export declare function InputAmount(props: ModalStepComponentProps<FunCheckoutStep.INPUT_AMOUNT>): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aave V3 client and constants for the native fast-path supply flow.
|
|
3
|
+
*
|
|
4
|
+
* The PoC uses `@aave/client` (V3 SDK) directly via its action functions, with
|
|
5
|
+
* the viem adapter for signing. We don't mount `<AaveProvider>` because the
|
|
6
|
+
* funkit tree doesn't need the React-bound hooks.
|
|
7
|
+
*
|
|
8
|
+
* NOTE on location: this file is co-located with its only current caller
|
|
9
|
+
* (`useAaveNativeSupply.ts`). It does NOT belong in `~/clients/` — that
|
|
10
|
+
* directory is reserved for customer-specific code exported via the
|
|
11
|
+
* `./clients/*` subpath; pulling Aave SDK setup in from there would bloat
|
|
12
|
+
* the main bundle for every customer. As more callers appear (e.g. reserve
|
|
13
|
+
* queries for confirmation-screen metadata), move this to a dedicated
|
|
14
|
+
* `~/integrations/aave.ts` or similar — it's a third-party SDK integration
|
|
15
|
+
* boundary, not a constant (singleton) and not domain logic.
|
|
16
|
+
*/
|
|
17
|
+
import { AaveClient } from '@aave/client';
|
|
18
|
+
import type { Address } from 'viem';
|
|
19
|
+
export declare const aaveClient: AaveClient;
|
|
20
|
+
export declare const AAVE_MARKET_ADDRESS_BY_CHAIN: Record<string, Address>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aave V3 native-supply fast-path: routes same-token same-chain
|
|
3
|
+
* deposits straight to Pool.supply via @aave/client, bypassing Relay.
|
|
4
|
+
*/
|
|
5
|
+
import type { Dnum } from 'dnum';
|
|
6
|
+
import type { Hex } from 'viem';
|
|
7
|
+
import type { FunkitActiveCheckoutItem } from '../../../providers/FunkitCheckoutContext';
|
|
8
|
+
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
9
|
+
interface AaveNativeSupplyContextArgs {
|
|
10
|
+
apiKey: string;
|
|
11
|
+
sourceAsset: {
|
|
12
|
+
chainId: string | number;
|
|
13
|
+
address: string;
|
|
14
|
+
};
|
|
15
|
+
checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain' | 'targetAsset'>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* True when the customer has the Aave native fast-path enabled, the
|
|
19
|
+
* checkout's target chain has an Aave market configured (membership in
|
|
20
|
+
* AAVE_MARKET_ADDRESS_BY_CHAIN is the single source of truth for "Aave
|
|
21
|
+
* supported here"), and the source asset matches the target asset
|
|
22
|
+
* (same chain, same token address). Decoupled from the hook so callers
|
|
23
|
+
* can branch their UI before mounting the hook.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isAaveNativeSupplyContext({ apiKey, sourceAsset, checkoutConfig, }: AaveNativeSupplyContextArgs): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Stringify an amount for Aave's `bigDecimal()`. Prefers the precise
|
|
28
|
+
* base-unit Dnum (carries the token's real decimals) so we don't ship
|
|
29
|
+
* float noise like "0.30000000000000004" to the API. Falls back to the
|
|
30
|
+
* raw JS-number string when the Dnum isn't populated (EXACT_OUT path).
|
|
31
|
+
*/
|
|
32
|
+
export declare function formatSupplyAmount(tokenAmountBaseUnit: Dnum | null, fallbackAssetAmount: number | undefined): string;
|
|
33
|
+
interface UseAaveNativeSupplyArgs {
|
|
34
|
+
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
35
|
+
}
|
|
36
|
+
interface UseAaveNativeSupplyResult {
|
|
37
|
+
submit: (humanAmount: string) => Promise<{
|
|
38
|
+
txHash: Hex;
|
|
39
|
+
} | null>;
|
|
40
|
+
isPending: boolean;
|
|
41
|
+
error: Error | null;
|
|
42
|
+
}
|
|
43
|
+
export declare function useAaveNativeSupply({ checkoutItem, }: UseAaveNativeSupplyArgs): UseAaveNativeSupplyResult;
|
|
44
|
+
export {};
|
|
@@ -17,8 +17,7 @@ export type WithdrawalFormData = {
|
|
|
17
17
|
quote?: FunkitCheckoutQuoteResult;
|
|
18
18
|
/** Lighter asset index for quoteless Secure withdrawal. */
|
|
19
19
|
lighterAssetIndex?: number;
|
|
20
|
-
|
|
21
|
-
userInputAmount?: string;
|
|
20
|
+
userInputAmount: string;
|
|
22
21
|
};
|
|
23
22
|
export declare function useWithdrawal({ config, withdrawalItem, onSuccess, }: {
|
|
24
23
|
config: FunkitWithdrawalConfig;
|
|
@@ -27,6 +27,14 @@ interface FunkitCheckoutContextInterface {
|
|
|
27
27
|
updateCustomRecipient: (recipient: Address) => void;
|
|
28
28
|
confirmCheckout(quote: FunkitCheckoutQuoteResult, stepMessageSetter: (m: string) => void, withdrawalClient?: WithdrawalClient, preWithdrawalTxs?: WithdrawalTransaction[]): Promise<Address>;
|
|
29
29
|
cancelCheckout(depositAddress: Address): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Partial-update the active checkout item. Exposed for direct-execution
|
|
32
|
+
* fast-paths that bypass `confirmCheckout` (e.g. Aave native supply) and
|
|
33
|
+
* need to sync `checkoutItem.depositAddress` themselves. TODO(ENG-3966):
|
|
34
|
+
* fold these call sites into a shared orchestration helper so this
|
|
35
|
+
* doesn't need to be public.
|
|
36
|
+
*/
|
|
37
|
+
updateActiveCheckout: (data: Partial<FunkitActiveCheckoutItem> | ((checkoutItem: FunkitActiveCheckoutItem) => Partial<FunkitActiveCheckoutItem>)) => void;
|
|
30
38
|
/** @deprecated to be removed after quote migration is finished (historically named setCheckoutQuote) */
|
|
31
39
|
setCheckout: (checkout: FunkitActiveCheckoutItem) => void;
|
|
32
40
|
setCompletedTimestamp(timestampMs: number): void;
|
|
@@ -158,6 +158,12 @@ export interface WithdrawalParam {
|
|
|
158
158
|
lighterAssetIndex?: number;
|
|
159
159
|
/** User-entered amount in token units for quoteless flows (avoids overloading quoteId). */
|
|
160
160
|
userInputAmount?: string;
|
|
161
|
+
/**
|
|
162
|
+
* USD value of the withdrawal as computed by the modal (token amount × live
|
|
163
|
+
* spot price). Provided so quoteless flows (e.g. Lighter Secure) don't need
|
|
164
|
+
* a separate price round-trip to compute `estTotalUsd` for tracking.
|
|
165
|
+
*/
|
|
166
|
+
withdrawalUSD?: string;
|
|
161
167
|
}
|
|
162
168
|
/**
|
|
163
169
|
* A single entry in a {@link MultiMethodWithdrawalConfig}.
|
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, multicall, readContract, } from 'wagmi/actions';
|
|
3
|
+
export { estimateGas, getGasPrice, getTransaction, getWalletClient, multicall, readContract, } 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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-6DRCY52E.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-YIEASHLS.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-DEFRRPXB.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-XVBSJCW5.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-UDTBQV4Q.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-A5EZBNME.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KWX2SYU2.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
tahoWallet
|
|
10
|
+
} from "./chunk-KS5MJNGD.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
talismanWallet
|
|
13
|
+
} from "./chunk-T3VMQBBI.js";
|
|
14
|
+
import {
|
|
15
|
+
tokenPocketWallet
|
|
16
|
+
} from "./chunk-HXWUH73P.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenaryWallet
|
|
16
19
|
} from "./chunk-R7X5RIO7.js";
|
|
17
20
|
import {
|
|
18
21
|
trustWallet
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-T4ROGPMF.js";
|
|
20
23
|
import {
|
|
21
24
|
uniswapWallet
|
|
22
25
|
} from "./chunk-UKSIXGWC.js";
|
|
@@ -26,63 +29,66 @@ import {
|
|
|
26
29
|
import {
|
|
27
30
|
xdefiWallet
|
|
28
31
|
} from "./chunk-KSNA53EX.js";
|
|
29
|
-
import {
|
|
30
|
-
zealWallet
|
|
31
|
-
} from "./chunk-A5EZBNME.js";
|
|
32
32
|
import {
|
|
33
33
|
rainbowWallet
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LCIPVVH5.js";
|
|
35
|
+
import {
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-E3NZE4UP.js";
|
|
35
38
|
import {
|
|
36
39
|
ramperWallet
|
|
37
40
|
} from "./chunk-P4E2ZFQB.js";
|
|
38
41
|
import {
|
|
39
42
|
roninWallet
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FG2LDVXL.js";
|
|
41
44
|
import {
|
|
42
45
|
safeWallet
|
|
43
46
|
} from "./chunk-BHAPTB57.js";
|
|
44
47
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
safeheronWallet
|
|
49
|
+
} from "./chunk-AM5MSNVQ.js";
|
|
47
50
|
import {
|
|
48
51
|
subWallet
|
|
49
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-APHCF4DT.js";
|
|
50
53
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
safepalWallet
|
|
55
|
+
} from "./chunk-34HACM5U.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
metaMaskWallet
|
|
58
|
+
} from "./chunk-7V33VJAL.js";
|
|
59
|
+
import {
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-DP5ICBEB.js";
|
|
56
62
|
import {
|
|
57
63
|
oktoWallet
|
|
58
64
|
} from "./chunk-BBPTPMH7.js";
|
|
59
65
|
import {
|
|
60
66
|
okxWallet
|
|
61
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-HRDPUW3V.js";
|
|
62
68
|
import {
|
|
63
69
|
omniWallet
|
|
64
70
|
} from "./chunk-G3RQSCYR.js";
|
|
65
71
|
import {
|
|
66
72
|
oneInchWallet
|
|
67
73
|
} from "./chunk-EUMOVTRQ.js";
|
|
68
|
-
import {
|
|
69
|
-
oneKeyWallet
|
|
70
|
-
} from "./chunk-E3NZE4UP.js";
|
|
71
74
|
import {
|
|
72
75
|
phantomWallet
|
|
73
76
|
} from "./chunk-57GN4W23.js";
|
|
74
77
|
import {
|
|
75
78
|
rabbyWallet
|
|
76
79
|
} from "./chunk-7PVUEV4M.js";
|
|
80
|
+
import {
|
|
81
|
+
foxWallet
|
|
82
|
+
} from "./chunk-ZPSPK6LH.js";
|
|
77
83
|
import {
|
|
78
84
|
frameWallet
|
|
79
85
|
} from "./chunk-MTJIPVYB.js";
|
|
80
86
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-UDTBQV4Q.js";
|
|
83
89
|
import {
|
|
84
90
|
gateWallet
|
|
85
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VJZWNQOF.js";
|
|
86
92
|
import {
|
|
87
93
|
imTokenWallet
|
|
88
94
|
} from "./chunk-BWLMNATA.js";
|
|
@@ -96,41 +102,38 @@ import {
|
|
|
96
102
|
ledgerWallet
|
|
97
103
|
} from "./chunk-V4EXM3KB.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
mewWallet
|
|
103
|
-
} from "./chunk-DP5ICBEB.js";
|
|
104
|
-
import {
|
|
105
|
-
clvWallet
|
|
106
|
-
} from "./chunk-3ZJN3PXP.js";
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-XVH4JIXB.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
coinbaseWallet
|
|
109
|
+
} from "./chunk-OUM6H3WU.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-XVBSJCW5.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
clvWallet
|
|
115
|
+
} from "./chunk-5TN5Z2WY.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-V6UOWTEZ.js";
|
|
119
119
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
120
|
+
enkryptWallet
|
|
121
|
+
} from "./chunk-2DKNXOPL.js";
|
|
122
122
|
import {
|
|
123
123
|
dawnWallet
|
|
124
124
|
} from "./chunk-PARFRRNI.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
desigWallet
|
|
127
|
+
} from "./chunk-TNVLCMJD.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-XTD6OMZP.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-6DRCY52E.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-YIEASHLS.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-Y36HPFB3.js";
|
|
@@ -140,14 +143,11 @@ import {
|
|
|
140
143
|
import {
|
|
141
144
|
bloomWallet
|
|
142
145
|
} from "./chunk-S6R4B763.js";
|
|
143
|
-
import {
|
|
144
|
-
braveWallet
|
|
145
|
-
} from "./chunk-XVH4JIXB.js";
|
|
146
146
|
import {
|
|
147
147
|
bybitWallet
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-FMVNQKZL.js";
|
|
148
|
+
} from "./chunk-DEFRRPXB.js";
|
|
150
149
|
import "./chunk-YYYRPQHB.js";
|
|
150
|
+
import "./chunk-FMVNQKZL.js";
|
|
151
151
|
import "./chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-7V33VJAL.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-LCIPVVH5.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-FG2LDVXL.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-34HACM5U.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-HXWUH73P.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-T4ROGPMF.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-KWX2SYU2.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.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.15.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
"dotenv": "^17.2.3",
|
|
68
68
|
"esbuild-plugin-replace": "^1.4.0",
|
|
69
69
|
"jsdom": "^26.1.0",
|
|
70
|
+
"openapi-fetch": "^0.17.0",
|
|
71
|
+
"openapi-typescript": "^7.13.0",
|
|
70
72
|
"postcss": "^8.5.10",
|
|
71
73
|
"postcss-prefix-selector": "^1.16.0",
|
|
72
74
|
"process": "^0.11.10",
|
|
@@ -83,10 +85,12 @@
|
|
|
83
85
|
"wagmi": "2.17.2"
|
|
84
86
|
},
|
|
85
87
|
"dependencies": {
|
|
88
|
+
"@aave-dao/aave-address-book": "^4.49.9",
|
|
89
|
+
"@aave/client": "^0.9.3",
|
|
86
90
|
"@bluvo/react": "3.0.0-beta.1",
|
|
87
91
|
"@bluvo/sdk-ts": "3.0.0-beta.1",
|
|
88
|
-
"@lifeomic/attempt": "3.1.0",
|
|
89
92
|
"@datadog/browser-logs": "5.22.0",
|
|
93
|
+
"@lifeomic/attempt": "3.1.0",
|
|
90
94
|
"@number-flow/react": "^0.5.5",
|
|
91
95
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
92
96
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
@@ -107,9 +111,9 @@
|
|
|
107
111
|
"ua-parser-js": "^1.0.37",
|
|
108
112
|
"use-debounce": "^10.0.5",
|
|
109
113
|
"uuid": "^9.0.1",
|
|
110
|
-
"@funkit/api-base": "4.
|
|
111
|
-
"@funkit/fun-relay": "2.7.2",
|
|
114
|
+
"@funkit/api-base": "4.3.0",
|
|
112
115
|
"@funkit/chains": "1.2.0",
|
|
116
|
+
"@funkit/fun-relay": "2.7.2",
|
|
113
117
|
"@funkit/utils": "3.0.1"
|
|
114
118
|
},
|
|
115
119
|
"repository": {
|
|
@@ -137,7 +141,8 @@
|
|
|
137
141
|
"storybook:fast": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006 --no-open",
|
|
138
142
|
"storybook:clean": "rm -rf node_modules/.vite && npm run storybook",
|
|
139
143
|
"build-storybook": "storybook build",
|
|
140
|
-
"statsig:
|
|
144
|
+
"statsig:api-types": "openapi-typescript https://api.statsig.com/openapi/20240601.json -o scripts/statsig/api-types.ts",
|
|
145
|
+
"statsig:generate": "tsx scripts/statsig/generate.ts",
|
|
141
146
|
"i18n:unused": "node scripts/find-unused-i18n-keys.mjs"
|
|
142
147
|
}
|
|
143
148
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-FMVNQKZL.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-YYYRPQHB.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-FMVNQKZL.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
|
|
11
11
|
var safepalWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-FMVNQKZL.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-YYYRPQHB.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-FMVNQKZL.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
11
|
var clvWallet = ({
|