@funkit/connect 10.0.0 → 10.1.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 +14 -0
- package/dist/clients/lighter.d.ts +12 -2
- package/dist/clients/lighter.js +18 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +150 -116
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +32 -5
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -3
- package/dist/providers/FunkitCheckoutContext/types.d.ts +20 -2
- package/dist/utils/checkout.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 +41 -41
- 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 +4 -4
- 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
|
@@ -6,12 +6,38 @@
|
|
|
6
6
|
import type { LighterAccountIndex } from '@funkit/api-base';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { Address } from 'viem';
|
|
9
|
-
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
9
|
+
import type { CustomWithdrawalConfig, LighterRouteType, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
10
10
|
import type { LighterShare } from '../../utils/customer';
|
|
11
11
|
import type { SourceTokenOption } from './WithdrawAmountInput';
|
|
12
12
|
/** Stable method ids for the Fast / Secure options (used for tracking + switching). */
|
|
13
13
|
export declare const LIGHTER_FAST_METHOD_ID = "lighter-fast";
|
|
14
14
|
export declare const LIGHTER_SECURE_METHOD_ID = "lighter-secure";
|
|
15
|
+
/**
|
|
16
|
+
* USDC exists twice on a Lighter account: as perps collateral
|
|
17
|
+
* (`total_asset_value`, withdrawn via route 0) and as a spot asset balance
|
|
18
|
+
* (asset entry 3, withdrawn via route 1). The Secure dropdown keys selection
|
|
19
|
+
* by `symbol`, so the spot variant gets a pseudo-symbol to stay selectable
|
|
20
|
+
* alongside the plain `USDC` (perps) entry.
|
|
21
|
+
*/
|
|
22
|
+
export declare const LIGHTER_USDC_SPOT_SYMBOL = "USDC (Spot)";
|
|
23
|
+
/** Lighter L2 route types (`RouteType` in the withdraw/transfer tx payload). */
|
|
24
|
+
export declare const LIGHTER_ROUTE_TYPE: {
|
|
25
|
+
readonly PERPS: 0;
|
|
26
|
+
readonly SPOT: 1;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Strips the ` (Spot)` / ` (Perps)` variant suffix off a Lighter source-token
|
|
30
|
+
* selection, returning the real token symbol (e.g. `USDC (Spot)` → `USDC`).
|
|
31
|
+
* Symbol-keyed lookups (icons, prices, asset indices, min amounts) operate on
|
|
32
|
+
* the base symbol; only selection identity and route resolution keep the suffix.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getLighterBaseSymbol(symbol: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Resolves the Lighter L2 route type for a Secure source-token selection.
|
|
37
|
+
* Plain `USDC` withdraws perps collateral (route 0); everything else —
|
|
38
|
+
* including the `USDC (Spot)` pseudo-symbol — is a spot asset (route 1).
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveLighterSecureRouteType(selectedSourceToken: string): LighterRouteType;
|
|
15
41
|
/**
|
|
16
42
|
* Mainnet ERC-20 address for a Lighter Secure source token symbol, or undefined
|
|
17
43
|
* if the symbol isn't a known Secure asset.
|
|
@@ -91,7 +117,8 @@ export declare function resolveLighterAssetIndex(lighterAssets: {
|
|
|
91
117
|
* Builds the source-token options list for the Lighter compound input dropdown.
|
|
92
118
|
*
|
|
93
119
|
* - Fast path: only USDC (Perps).
|
|
94
|
-
* - Secure path: USDC (from total_asset_value) +
|
|
120
|
+
* - Secure path: USDC (Perps) (from total_asset_value) + USDC (Spot) when the
|
|
121
|
+
* account carries a spot USDC asset + every non-USDC asset on the account.
|
|
95
122
|
*/
|
|
96
123
|
export declare function buildLighterSourceTokenOptions(config: FunkitWithdrawalConfig, lighterAssets: {
|
|
97
124
|
symbol: string;
|
|
@@ -130,17 +157,17 @@ export declare function LighterSecureAddressDisplay({ address }: {
|
|
|
130
157
|
* token always matches the source asset, and the destination chain is always
|
|
131
158
|
* Ethereum mainnet. Each field surfaces a hover tooltip explaining the lock.
|
|
132
159
|
*/
|
|
133
|
-
export declare function LighterSecureReceiveDisplay({ sourceTokenSymbol, }: {
|
|
160
|
+
export declare function LighterSecureReceiveDisplay({ sourceTokenSymbol: rawSourceTokenSymbol, }: {
|
|
134
161
|
sourceTokenSymbol: string;
|
|
135
162
|
}): React.JSX.Element;
|
|
136
163
|
/**
|
|
137
164
|
* Lighter Secure: receive amount value (1:1 — same token, no swap).
|
|
138
165
|
*/
|
|
139
|
-
export declare function LighterSecureReceiveAmountValue({ amount, tokenSymbol, }: {
|
|
166
|
+
export declare function LighterSecureReceiveAmountValue({ amount, tokenSymbol: rawTokenSymbol, }: {
|
|
140
167
|
amount: string;
|
|
141
168
|
tokenSymbol: string;
|
|
142
169
|
}): React.JSX.Element;
|
|
143
|
-
export declare function LighterSecureWithdrawalSuccess({ onClose, onNewWithdrawal, amount, tokenSymbol, txHash, }: {
|
|
170
|
+
export declare function LighterSecureWithdrawalSuccess({ onClose, onNewWithdrawal, amount, tokenSymbol: rawTokenSymbol, txHash, }: {
|
|
144
171
|
onClose: () => void;
|
|
145
172
|
onNewWithdrawal: () => void;
|
|
146
173
|
amount: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address, Hex } from 'viem';
|
|
2
2
|
import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
|
-
import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
4
|
+
import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig, type WithdrawalCustomerData } from '../../providers/FunkitCheckoutContext';
|
|
5
5
|
interface UseWithdrawalResult {
|
|
6
6
|
handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<Hex | null>;
|
|
7
7
|
isWithdrawing: boolean;
|
|
@@ -15,8 +15,8 @@ export type WithdrawalFormData = {
|
|
|
15
15
|
tokenAddress: Address;
|
|
16
16
|
chainId: number;
|
|
17
17
|
quote?: FunkitCheckoutQuoteResult;
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** Customer-specific data for quoteless flows (e.g. Lighter Secure). */
|
|
19
|
+
customerData?: WithdrawalCustomerData;
|
|
20
20
|
userInputAmount: string;
|
|
21
21
|
};
|
|
22
22
|
export declare function useWithdrawal({ config, withdrawalItem, onSuccess, }: {
|
|
@@ -281,14 +281,32 @@ export interface CustomWithdrawalConfig extends WithdrawalConfigBase {
|
|
|
281
281
|
*/
|
|
282
282
|
withdrawCallback: (param: WithdrawalParam) => Promise<undefined | string>;
|
|
283
283
|
}
|
|
284
|
+
/** Lighter L2 route type: 0 = perps (USDC collateral), 1 = spot. */
|
|
285
|
+
export type LighterRouteType = 0 | 1;
|
|
286
|
+
/**
|
|
287
|
+
* Lighter-specific data for quoteless Secure withdrawal. `assetIndex` selects
|
|
288
|
+
* the L2 asset (avoids overloading targetChainId); `routeType` disambiguates
|
|
289
|
+
* USDC, whose perps and spot balances share asset index 3.
|
|
290
|
+
*/
|
|
291
|
+
export interface LighterWithdrawalCustomerData {
|
|
292
|
+
customerName: 'lighter';
|
|
293
|
+
assetIndex: number;
|
|
294
|
+
routeType: LighterRouteType;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Customer-specific data threaded through withdrawal callbacks, discriminated
|
|
298
|
+
* by `customerName` so future customers extend the union instead of adding
|
|
299
|
+
* top-level params.
|
|
300
|
+
*/
|
|
301
|
+
export type WithdrawalCustomerData = LighterWithdrawalCustomerData;
|
|
284
302
|
export interface WithdrawalParam {
|
|
285
303
|
quoteId: string;
|
|
286
304
|
funQuote: unknown;
|
|
287
305
|
targetAssetAddress: Address;
|
|
288
306
|
targetChainId: number;
|
|
289
307
|
destinationAddress: Address;
|
|
290
|
-
/**
|
|
291
|
-
|
|
308
|
+
/** Customer-specific data for quoteless flows (e.g. Lighter Secure). */
|
|
309
|
+
customerData?: WithdrawalCustomerData;
|
|
292
310
|
/** User-entered amount in token units for quoteless flows (avoids overloading quoteId). */
|
|
293
311
|
userInputAmount?: string;
|
|
294
312
|
/**
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ type ValidateCheckoutConfigReturn = Promise<{
|
|
|
27
27
|
* @param config - The checkout configuration to validate.
|
|
28
28
|
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
29
29
|
*/
|
|
30
|
-
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig
|
|
30
|
+
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>): ValidateCheckoutConfigReturn;
|
|
31
31
|
export declare const hasSufficientBalance: (wagmiConfig: UseConfigReturnType, walletAddress: string, tokenAddress: string, tokenChainId: string, requiredAssetAmount: number) => Promise<{
|
|
32
32
|
balance: number;
|
|
33
33
|
result: boolean;
|
|
@@ -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
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-JN5I3DNC.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";
|
|
11
|
+
import {
|
|
12
|
+
talismanWallet
|
|
13
|
+
} from "./chunk-4DCO3TGL.js";
|
|
11
14
|
import {
|
|
12
15
|
tokenPocketWallet
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WKNQMP4A.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenaryWallet
|
|
16
19
|
} from "./chunk-VH3THHJY.js";
|
|
17
20
|
import {
|
|
18
21
|
trustWallet
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
talismanWallet
|
|
22
|
-
} from "./chunk-4DCO3TGL.js";
|
|
22
|
+
} from "./chunk-KCRO2AGO.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -27,44 +27,44 @@ import {
|
|
|
27
27
|
walletConnectWallet
|
|
28
28
|
} from "./chunk-3FCWJRI4.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-52QXXLDS.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
|
+
import {
|
|
42
|
+
roninWallet
|
|
43
|
+
} from "./chunk-YQFGVZGR.js";
|
|
41
44
|
import {
|
|
42
45
|
safeWallet
|
|
43
46
|
} from "./chunk-RCY66YHF.js";
|
|
44
47
|
import {
|
|
45
48
|
safeheronWallet
|
|
46
49
|
} from "./chunk-76S7R2ND.js";
|
|
47
|
-
import {
|
|
48
|
-
roninWallet
|
|
49
|
-
} from "./chunk-VAPGUPHO.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
62
|
import {
|
|
60
63
|
oktoWallet
|
|
61
64
|
} from "./chunk-YWOVAU6O.js";
|
|
62
|
-
import {
|
|
63
|
-
kresusWallet
|
|
64
|
-
} from "./chunk-RICTB3FA.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";
|
|
@@ -77,45 +77,45 @@ import {
|
|
|
77
77
|
import {
|
|
78
78
|
phantomWallet
|
|
79
79
|
} from "./chunk-QY53O7WG.js";
|
|
80
|
+
import {
|
|
81
|
+
foxWallet
|
|
82
|
+
} from "./chunk-GUQM4QSL.js";
|
|
80
83
|
import {
|
|
81
84
|
frameWallet
|
|
82
85
|
} from "./chunk-BU3ZAT5X.js";
|
|
83
|
-
import {
|
|
84
|
-
foxWallet
|
|
85
|
-
} from "./chunk-MIQTHJ6X.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
gateWallet
|
|
91
|
-
} from "./chunk-HNRB7KJU.js";
|
|
88
|
+
} from "./chunk-AVDUNQUW.js";
|
|
92
89
|
import {
|
|
93
90
|
imTokenWallet
|
|
94
91
|
} from "./chunk-WNAGGFMG.js";
|
|
92
|
+
import {
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-JPN6TWIT.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-T6LGKC3F.js";
|
|
98
98
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-RICTB3FA.js";
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-RPV27V2Y.js";
|
|
104
104
|
import {
|
|
105
105
|
bybitWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-OX37G4YT.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-OEEGYENV.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-WAHGI5L7.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-2DLDAZRH.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-4NV5BYRP.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -130,24 +130,24 @@ import {
|
|
|
130
130
|
} from "./chunk-NTMBEOR2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-IULPZP2Q.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-TKB2OY6G.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-7HRFUZFX.js";
|
|
140
|
+
import {
|
|
141
|
+
bloomWallet
|
|
142
|
+
} from "./chunk-PJ7Y57EH.js";
|
|
137
143
|
import {
|
|
138
144
|
bitverseWallet
|
|
139
145
|
} from "./chunk-NSK6A7TI.js";
|
|
140
|
-
import
|
|
141
|
-
bitgetWallet
|
|
142
|
-
} from "./chunk-CPI4TD43.js";
|
|
146
|
+
import "./chunk-N4IJLYFY.js";
|
|
143
147
|
import {
|
|
144
148
|
braveWallet
|
|
145
149
|
} from "./chunk-DS73TZ6O.js";
|
|
146
150
|
import "./chunk-OLZ7626J.js";
|
|
147
|
-
import {
|
|
148
|
-
bloomWallet
|
|
149
|
-
} from "./chunk-PJ7Y57EH.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": "10.
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
"uuid": "^11.1.1",
|
|
112
112
|
"@funkit/api-base": "6.0.0",
|
|
113
113
|
"@funkit/chains": "2.1.3",
|
|
114
|
-
"@funkit/connect-core": "1.6.
|
|
115
|
-
"@funkit/
|
|
116
|
-
"@funkit/
|
|
114
|
+
"@funkit/connect-core": "1.6.2",
|
|
115
|
+
"@funkit/utils": "4.0.0",
|
|
116
|
+
"@funkit/fun-relay": "2.9.0"
|
|
117
117
|
},
|
|
118
118
|
"repository": {
|
|
119
119
|
"type": "git",
|
|
@@ -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 = ({
|
|
@@ -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/bifrostWallet/bifrostWallet.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/gateWallet/gateWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|