@funkit/connect 10.2.0 → 10.2.1
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 +17 -0
- package/dist/index.js +71 -70
- 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 +53 -53
- 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 +3 -3
- package/dist/utils/swappedRouteOverride.d.ts +0 -27
- package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 10.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4f0f4a0: Consolidate the Swapped withdrawal source-override helper: import `findSwappedSourceOverride` / `SwappedSourceRouteOverride` from `@funkit/connect-core` instead of the web-local `utils/swappedRouteOverride`, which is removed (single source of truth shared with connect-rn).
|
|
8
|
+
- 99ca98d: Fix a concurrent-render livelock that stalled host-app navigation for guest
|
|
9
|
+
(disconnected) users. Two idle-mounted components (`useCheckoutDirectExecution` and
|
|
10
|
+
`ConnectModal`) subscribed to wagmi `account.status`, which flips repeatedly during
|
|
11
|
+
`reconnect()` under `ssr: false` and aborted in-flight React route transitions. Both
|
|
12
|
+
now read account state lazily at call time instead of subscribing.
|
|
13
|
+
- 89e29b3: Tag the Statsig user with `custom.sdkType` (`react-native` / `web`) so a config shared across SDKs can be scoped per-SDK via a per-customer targeting rule.
|
|
14
|
+
- 39d8ddb: Add unit test coverage for withdrawal config type guards, source-token balance guard, and amount-conversion edge cases. Test-only; no runtime change.
|
|
15
|
+
- Updated dependencies [b2abbb5]
|
|
16
|
+
- Updated dependencies [b8a3f1e]
|
|
17
|
+
- Updated dependencies [4f0f4a0]
|
|
18
|
+
- @funkit/connect-core@2.0.0
|
|
19
|
+
|
|
3
20
|
## 10.2.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -973,12 +973,12 @@ import { arbitrum as arbitrum6, polygon as polygon7 } from "viem/chains";
|
|
|
973
973
|
|
|
974
974
|
// src/domains/asset.ts
|
|
975
975
|
import {
|
|
976
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
976
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12,
|
|
977
977
|
hyperEvmChain as hyperEvmChain4,
|
|
978
978
|
monadChain as monadChain2,
|
|
979
979
|
solanaChain as solanaChain6
|
|
980
980
|
} from "@funkit/chains";
|
|
981
|
-
import { isEVMAddressEquivalent as isEVMAddressEquivalent7, isTokenEquivalent as
|
|
981
|
+
import { isEVMAddressEquivalent as isEVMAddressEquivalent7, isTokenEquivalent as isTokenEquivalent14 } from "@funkit/utils";
|
|
982
982
|
import { arbitrum as arbitrum5, base as base5, bsc, mainnet as mainnet12, optimism as optimism2, polygon as polygon6 } from "viem/chains";
|
|
983
983
|
|
|
984
984
|
// src/utils/checkout.ts
|
|
@@ -989,7 +989,7 @@ import {
|
|
|
989
989
|
} from "@funkit/connect-core";
|
|
990
990
|
import {
|
|
991
991
|
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS5,
|
|
992
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
992
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11,
|
|
993
993
|
lightningChain as lightningChain7,
|
|
994
994
|
solanaChain as solanaChain5,
|
|
995
995
|
tronChain as tronChain4
|
|
@@ -1063,7 +1063,7 @@ import {
|
|
|
1063
1063
|
initializeCheckout as postApiInitializeCheckout
|
|
1064
1064
|
} from "@funkit/api-base";
|
|
1065
1065
|
import {
|
|
1066
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
1066
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO10,
|
|
1067
1067
|
SOLANA_MAINNET_CHAIN_ID as SOLANA_MAINNET_CHAIN_ID2
|
|
1068
1068
|
} from "@funkit/chains";
|
|
1069
1069
|
import { isNotNullish as isNotNullish8, isEVMAddressEquivalent as isEVMAddressEquivalent5 } from "@funkit/utils";
|
|
@@ -1687,7 +1687,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1687
1687
|
localStorage.setItem(storageKey, version);
|
|
1688
1688
|
}
|
|
1689
1689
|
function getCurrentSdkVersion() {
|
|
1690
|
-
return "10.2.
|
|
1690
|
+
return "10.2.1";
|
|
1691
1691
|
}
|
|
1692
1692
|
function useFingerprint() {
|
|
1693
1693
|
const fingerprint = useCallback3(() => {
|
|
@@ -1834,7 +1834,10 @@ var useTrack = () => {
|
|
|
1834
1834
|
custom: {
|
|
1835
1835
|
name: userInfo.name,
|
|
1836
1836
|
type: userInfo.type,
|
|
1837
|
-
isMobile: isMobile()
|
|
1837
|
+
isMobile: isMobile(),
|
|
1838
|
+
// Pairs with connect-rn's `sdkType: 'react-native'` so a shared config
|
|
1839
|
+
// can be scoped per-SDK via a Statsig targeting rule.
|
|
1840
|
+
sdkType: "web"
|
|
1838
1841
|
}
|
|
1839
1842
|
};
|
|
1840
1843
|
return updateStatsigUserAsync(statsigUser2);
|
|
@@ -5329,12 +5332,27 @@ function useRelayBypass() {
|
|
|
5329
5332
|
// src/hooks/useCheckoutDirectExecution.ts
|
|
5330
5333
|
var getDirectExecutionQuoteNoop = () => Promise.resolve(null);
|
|
5331
5334
|
var executeDirectExecutionNoop = () => Promise.resolve(null);
|
|
5335
|
+
var EXPECTED_NO_WALLET_CLIENT_ERRORS = /* @__PURE__ */ new Set([
|
|
5336
|
+
"ConnectorNotConnectedError",
|
|
5337
|
+
"ConnectorUnavailableReconnectingError"
|
|
5338
|
+
]);
|
|
5339
|
+
async function getWalletClientSafe(config) {
|
|
5340
|
+
return await getWalletClient(config).catch((error) => {
|
|
5341
|
+
const name = error instanceof Error ? error.name : "";
|
|
5342
|
+
if (!EXPECTED_NO_WALLET_CLIENT_ERRORS.has(name)) {
|
|
5343
|
+
logger.warn("getWalletClientSafe:failed", {
|
|
5344
|
+
error: error instanceof Error ? error.message : String(error)
|
|
5345
|
+
});
|
|
5346
|
+
}
|
|
5347
|
+
return void 0;
|
|
5348
|
+
});
|
|
5349
|
+
}
|
|
5332
5350
|
function useCheckoutDirectExecution() {
|
|
5333
5351
|
const { t } = useFunkitTranslation();
|
|
5334
5352
|
const { address } = useFunkitUserInfo();
|
|
5335
5353
|
const { switchChainAsync } = useFunkitSwitchChains({});
|
|
5336
|
-
const { connector } =
|
|
5337
|
-
const
|
|
5354
|
+
const { connector } = useAccount();
|
|
5355
|
+
const wagmiConfig = useConfig();
|
|
5338
5356
|
const { getIsRelayEnabled } = useRelayBypass();
|
|
5339
5357
|
const { apiKey } = useFunkitConfig();
|
|
5340
5358
|
const getRelayDirectExecutionBaseQuote = useCallback12(
|
|
@@ -5415,7 +5433,7 @@ function useCheckoutDirectExecution() {
|
|
|
5415
5433
|
tokenAddress,
|
|
5416
5434
|
spenderAddress
|
|
5417
5435
|
}) => {
|
|
5418
|
-
const walletClient =
|
|
5436
|
+
const walletClient = await getWalletClientSafe(wagmiConfig);
|
|
5419
5437
|
if (!walletClient) {
|
|
5420
5438
|
throw new Error("Viem wallet client is not defined");
|
|
5421
5439
|
}
|
|
@@ -5432,7 +5450,7 @@ function useCheckoutDirectExecution() {
|
|
|
5432
5450
|
logger.info(`${logPrefix3}:success`, logData);
|
|
5433
5451
|
return txHash;
|
|
5434
5452
|
},
|
|
5435
|
-
[
|
|
5453
|
+
[wagmiConfig]
|
|
5436
5454
|
);
|
|
5437
5455
|
const checkAllowance = useCallback12(
|
|
5438
5456
|
async ({
|
|
@@ -5440,7 +5458,7 @@ function useCheckoutDirectExecution() {
|
|
|
5440
5458
|
ownerAddress,
|
|
5441
5459
|
spenderAddress
|
|
5442
5460
|
}) => {
|
|
5443
|
-
const walletClient =
|
|
5461
|
+
const walletClient = await getWalletClientSafe(wagmiConfig);
|
|
5444
5462
|
if (!walletClient) {
|
|
5445
5463
|
throw new Error("Viem wallet client is not defined");
|
|
5446
5464
|
}
|
|
@@ -5461,7 +5479,7 @@ function useCheckoutDirectExecution() {
|
|
|
5461
5479
|
logger.info(`${logPrefix3}:success`, logData);
|
|
5462
5480
|
return allowance;
|
|
5463
5481
|
},
|
|
5464
|
-
[
|
|
5482
|
+
[wagmiConfig]
|
|
5465
5483
|
);
|
|
5466
5484
|
const resetApprovalIfNeeded = useCallback12(
|
|
5467
5485
|
async (relayQuote) => {
|
|
@@ -5542,7 +5560,8 @@ function useCheckoutDirectExecution() {
|
|
|
5542
5560
|
checkoutItem.selectedSourceAssetInfo.chainId
|
|
5543
5561
|
);
|
|
5544
5562
|
logger.log(`${logPrefix3}:executionChainId`, { executionChainId });
|
|
5545
|
-
const
|
|
5563
|
+
const rawWalletClient = await getWalletClientSafe(wagmiConfig);
|
|
5564
|
+
const walletClient = rawWalletClient ? await disableAtomicBatchIfSupported(rawWalletClient, executionChainId) : void 0;
|
|
5546
5565
|
if (!walletClient && !withdrawalClient) {
|
|
5547
5566
|
throw new Error("Viem wallet client is not defined");
|
|
5548
5567
|
}
|
|
@@ -5698,7 +5717,7 @@ function useCheckoutDirectExecution() {
|
|
|
5698
5717
|
};
|
|
5699
5718
|
return await waitForConfirmation();
|
|
5700
5719
|
},
|
|
5701
|
-
[
|
|
5720
|
+
[wagmiConfig, checkAndSwitchChains, t, resetApprovalIfNeeded]
|
|
5702
5721
|
);
|
|
5703
5722
|
const getDirectExecutionInfo = useCallback12(
|
|
5704
5723
|
(checkoutItem) => {
|
|
@@ -26600,28 +26619,7 @@ import { Trans as Trans9 } from "react-i18next";
|
|
|
26600
26619
|
import { RailConfigType as RailConfigType3, getFops as getFops3 } from "@funkit/api-base";
|
|
26601
26620
|
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
|
26602
26621
|
import { useMemo as useMemo40 } from "react";
|
|
26603
|
-
|
|
26604
|
-
// src/utils/swappedRouteOverride.ts
|
|
26605
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9 } from "@funkit/chains";
|
|
26606
|
-
import { isTokenEquivalent as isTokenEquivalent7 } from "@funkit/utils";
|
|
26607
|
-
var isNonEmptyString = (value) => typeof value === "string" && value.length > 0;
|
|
26608
|
-
var isSupportedChainId = (value) => typeof value === "string" && /^\d+$/.test(value) && Boolean(FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9[Number(value)]);
|
|
26609
|
-
var isEvmAddress = (value) => typeof value === "string" && /^0x[a-fA-F0-9]{40}$/.test(value);
|
|
26610
|
-
function isWellFormedOverride(override) {
|
|
26611
|
-
return isSupportedChainId(override.when?.chainId) && isEvmAddress(override.when?.tokenAddress) && isSupportedChainId(override.use?.chainId) && isEvmAddress(override.use?.tokenAddress) && isNonEmptyString(override.use?.symbol);
|
|
26612
|
-
}
|
|
26613
|
-
function findSwappedSourceOverride(overrides, source) {
|
|
26614
|
-
return overrides?.find(
|
|
26615
|
-
(override) => isWellFormedOverride(override) && isTokenEquivalent7({
|
|
26616
|
-
firstTokenChainId: override.when.chainId,
|
|
26617
|
-
firstTokenAddress: override.when.tokenAddress,
|
|
26618
|
-
secondTokenChainId: source.chainId,
|
|
26619
|
-
secondTokenAddress: source.tokenAddress
|
|
26620
|
-
})
|
|
26621
|
-
);
|
|
26622
|
-
}
|
|
26623
|
-
|
|
26624
|
-
// src/hooks/queries/useWithdrawFops.ts
|
|
26622
|
+
import { findSwappedSourceOverride } from "@funkit/connect-core";
|
|
26625
26623
|
var SWAPPED_MIN_SELL_EUR = 7;
|
|
26626
26624
|
var useWithdrawFops = (params) => {
|
|
26627
26625
|
const { apiKey } = useFunkitConfig();
|
|
@@ -27393,6 +27391,9 @@ function useSwappedIframeLifecycle({
|
|
|
27393
27391
|
import { getCheckoutQuoteV2 as getCheckoutQuoteV22 } from "@funkit/api-base";
|
|
27394
27392
|
import { useEffect as useEffect45, useRef as useRef22 } from "react";
|
|
27395
27393
|
import { erc20Abi as erc20Abi5 } from "viem";
|
|
27394
|
+
import {
|
|
27395
|
+
findSwappedSourceOverride as findSwappedSourceOverride2
|
|
27396
|
+
} from "@funkit/connect-core";
|
|
27396
27397
|
function resolveSwappedWithdrawalLegs(config, override) {
|
|
27397
27398
|
const sourceChainId = Number(config.sourceChainId);
|
|
27398
27399
|
return {
|
|
@@ -27477,7 +27478,7 @@ function useFiatWithdrawal({
|
|
|
27477
27478
|
const sourceOverrides = useDynamicConfig("swappedwithdrawalsourceoverrides");
|
|
27478
27479
|
const legs = isWalletWithdrawalConfig(config) ? resolveSwappedWithdrawalLegs(
|
|
27479
27480
|
config,
|
|
27480
|
-
|
|
27481
|
+
findSwappedSourceOverride2(sourceOverrides, {
|
|
27481
27482
|
chainId: config.sourceChainId,
|
|
27482
27483
|
tokenAddress: config.sourceTokenAddress
|
|
27483
27484
|
})
|
|
@@ -31832,7 +31833,7 @@ var ChainInfoBanners = ({ chainId: chainId2 }) => {
|
|
|
31832
31833
|
import {
|
|
31833
31834
|
formatCurrencyAndStringify as formatCurrencyAndStringify7,
|
|
31834
31835
|
isEVMAddressEquivalent as isEVMAddressEquivalent3,
|
|
31835
|
-
isTokenEquivalent as
|
|
31836
|
+
isTokenEquivalent as isTokenEquivalent7
|
|
31836
31837
|
} from "@funkit/utils";
|
|
31837
31838
|
import NumberFlow from "@number-flow/react";
|
|
31838
31839
|
import { motion as motion11 } from "motion/react";
|
|
@@ -31873,7 +31874,7 @@ function PaymentAmountSummary({
|
|
|
31873
31874
|
const isBrokeragePayment = paymentMethod === PaymentMethod.BROKERAGE;
|
|
31874
31875
|
const receiveAmountLabel = useReceiveAmountLabel({
|
|
31875
31876
|
directExecutionType,
|
|
31876
|
-
isSameToken:
|
|
31877
|
+
isSameToken: isTokenEquivalent7({
|
|
31877
31878
|
firstTokenAddress: sourceTokenAddress,
|
|
31878
31879
|
firstTokenChainId: sourceTokenChainId,
|
|
31879
31880
|
secondTokenAddress: targetTokenAddress,
|
|
@@ -32244,11 +32245,11 @@ import { useCallback as useCallback36, useState as useState54 } from "react";
|
|
|
32244
32245
|
import { erc20Abi as erc20Abi6 } from "viem";
|
|
32245
32246
|
|
|
32246
32247
|
// src/utils/isMainnetUsdt.ts
|
|
32247
|
-
import { isTokenEquivalent as
|
|
32248
|
+
import { isTokenEquivalent as isTokenEquivalent8 } from "@funkit/utils";
|
|
32248
32249
|
import { mainnet as mainnet9 } from "viem/chains";
|
|
32249
32250
|
var USDT_MAINNET_ADDRESS = "0xdAC17F958D2ee523a2206206994597C13D831ec7";
|
|
32250
32251
|
function isMainnetUsdt(chainId2, address) {
|
|
32251
|
-
return
|
|
32252
|
+
return isTokenEquivalent8({
|
|
32252
32253
|
firstTokenAddress: address,
|
|
32253
32254
|
firstTokenChainId: chainId2.toString(),
|
|
32254
32255
|
secondTokenAddress: USDT_MAINNET_ADDRESS,
|
|
@@ -32698,7 +32699,7 @@ function useAaveNativeSupply() {
|
|
|
32698
32699
|
// src/modals/CheckoutModal/InputAmount/useNadoDirectTransfer.ts
|
|
32699
32700
|
import { DirectExecutionType as DirectExecutionType5, createDirectExecution as createDirectExecution2 } from "@funkit/api-base";
|
|
32700
32701
|
import {
|
|
32701
|
-
isTokenEquivalent as
|
|
32702
|
+
isTokenEquivalent as isTokenEquivalent9
|
|
32702
32703
|
} from "@funkit/utils";
|
|
32703
32704
|
import { useCallback as useCallback37, useRef as useRef26, useState as useState55 } from "react";
|
|
32704
32705
|
import { erc20Abi as erc20Abi7 } from "viem";
|
|
@@ -32792,7 +32793,7 @@ function isNadoDirectTransferContext({
|
|
|
32792
32793
|
if (!isNadoCustomer(apiKey) || !checkoutConfig.customRecipient || !isXstockTarget) {
|
|
32793
32794
|
return false;
|
|
32794
32795
|
}
|
|
32795
|
-
const matchesTarget =
|
|
32796
|
+
const matchesTarget = isTokenEquivalent9({
|
|
32796
32797
|
firstTokenChainId: String(sourceAsset.chainId),
|
|
32797
32798
|
firstTokenAddress: sourceAsset.address,
|
|
32798
32799
|
secondTokenChainId: checkoutConfig.targetChain,
|
|
@@ -32804,7 +32805,7 @@ function isNadoDirectTransferContext({
|
|
|
32804
32805
|
if (!wrappedTokenAddress) {
|
|
32805
32806
|
return false;
|
|
32806
32807
|
}
|
|
32807
|
-
return
|
|
32808
|
+
return isTokenEquivalent9({
|
|
32808
32809
|
firstTokenChainId: String(sourceAsset.chainId),
|
|
32809
32810
|
firstTokenAddress: sourceAsset.address,
|
|
32810
32811
|
secondTokenChainId: checkoutConfig.targetChain,
|
|
@@ -34647,7 +34648,7 @@ var useMeldLimitError = (amount, fiatCurrency) => {
|
|
|
34647
34648
|
import { defaultDynamicConfigs as fallbackDynamicConfigs } from "@funkit/connect-core";
|
|
34648
34649
|
import {
|
|
34649
34650
|
formatCryptoAndStringify as formatCryptoAndStringify5,
|
|
34650
|
-
isTokenEquivalent as
|
|
34651
|
+
isTokenEquivalent as isTokenEquivalent11,
|
|
34651
34652
|
round as round2
|
|
34652
34653
|
} from "@funkit/utils";
|
|
34653
34654
|
import * as dnum11 from "dnum";
|
|
@@ -36003,7 +36004,7 @@ function useTextMeasurer(inputRef) {
|
|
|
36003
36004
|
}
|
|
36004
36005
|
|
|
36005
36006
|
// src/modals/CheckoutModal/InputAmount/state.ts
|
|
36006
|
-
import { isEVMAddressEquivalent as isEVMAddressEquivalent4, isTokenEquivalent as
|
|
36007
|
+
import { isEVMAddressEquivalent as isEVMAddressEquivalent4, isTokenEquivalent as isTokenEquivalent10, round } from "@funkit/utils";
|
|
36007
36008
|
import * as dnum10 from "dnum";
|
|
36008
36009
|
import { mainnet as mainnet10 } from "viem/chains";
|
|
36009
36010
|
function resolveUnitPrice(isExactIn, sourceHolding, targetUnitPrice) {
|
|
@@ -36176,7 +36177,7 @@ function isEffectivelySameAsset(checkoutConfig, sourceToken, apiKey) {
|
|
|
36176
36177
|
if (!sourceToken) {
|
|
36177
36178
|
return false;
|
|
36178
36179
|
}
|
|
36179
|
-
if (
|
|
36180
|
+
if (isTokenEquivalent10({
|
|
36180
36181
|
firstTokenChainId: sourceToken.chainId,
|
|
36181
36182
|
firstTokenAddress: sourceToken.address,
|
|
36182
36183
|
secondTokenChainId: checkoutConfig.targetChain,
|
|
@@ -37899,7 +37900,7 @@ function YouPayYouReceiveWrapper({
|
|
|
37899
37900
|
const showYouPayYouReceive = Boolean(
|
|
37900
37901
|
sourceAssetSymbol && sourceAssetIconSrc && targetAssetTicker && targetIconSrc
|
|
37901
37902
|
);
|
|
37902
|
-
const youPayYouReceiveShowYouPaySection = forceShowYouPaySection || !
|
|
37903
|
+
const youPayYouReceiveShowYouPaySection = forceShowYouPaySection || !isTokenEquivalent11({
|
|
37903
37904
|
firstTokenChainId: sourceAssetChainId?.toString() || "",
|
|
37904
37905
|
firstTokenAddress: sourceAssetAddress?.toString() || "",
|
|
37905
37906
|
secondTokenChainId: targetChainId,
|
|
@@ -39825,7 +39826,7 @@ function MeldQuotes({
|
|
|
39825
39826
|
}
|
|
39826
39827
|
|
|
39827
39828
|
// src/modals/CheckoutModal/MeldRedirect/MeldRedirect.tsx
|
|
39828
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
39829
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9 } from "@funkit/chains";
|
|
39829
39830
|
import React234 from "react";
|
|
39830
39831
|
var MeldRedirectInfo = {
|
|
39831
39832
|
Component: MeldRedirect,
|
|
@@ -39855,7 +39856,7 @@ function MeldRedirect({
|
|
|
39855
39856
|
const [destinationCurrencyCode, destinationChainName = ""] = quote.destinationCurrencyCode.split("_");
|
|
39856
39857
|
const providerLabel = providerLabelMap[quote.serviceProvider] ?? quote.serviceProvider;
|
|
39857
39858
|
const getChainIdByName = (chainName) => {
|
|
39858
|
-
const entry = Object.entries(
|
|
39859
|
+
const entry = Object.entries(FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9).find(
|
|
39859
39860
|
([, chainInfo]) => chainInfo?.name.toLowerCase() === chainName.toLowerCase()
|
|
39860
39861
|
);
|
|
39861
39862
|
return entry?.[0];
|
|
@@ -39912,7 +39913,7 @@ function MeldRedirect({
|
|
|
39912
39913
|
|
|
39913
39914
|
// src/modals/CheckoutModal/SelectAsset/SelectAsset.tsx
|
|
39914
39915
|
import { etherealChain, hyperEvmChain as hyperEvmChain3 } from "@funkit/chains";
|
|
39915
|
-
import { isTokenEquivalent as
|
|
39916
|
+
import { isTokenEquivalent as isTokenEquivalent12 } from "@funkit/utils";
|
|
39916
39917
|
import React238, {
|
|
39917
39918
|
useEffect as useEffect64,
|
|
39918
39919
|
useLayoutEffect as useLayoutEffect2,
|
|
@@ -40246,7 +40247,7 @@ function useAssetOptions({
|
|
|
40246
40247
|
const { isUsable, reason } = usableForCheckout;
|
|
40247
40248
|
const isKnown = isKnownAsset(asset);
|
|
40248
40249
|
const isDisabled = !isUsable || !isKnown;
|
|
40249
|
-
const isUserSelected =
|
|
40250
|
+
const isUserSelected = isTokenEquivalent12({
|
|
40250
40251
|
firstTokenChainId: asset.pickedChainId,
|
|
40251
40252
|
firstTokenAddress: asset.tokenAddress,
|
|
40252
40253
|
secondTokenChainId: userSelectedTargetAsset?.tokenChainId || "",
|
|
@@ -40409,7 +40410,7 @@ function AccountSelectAsset({
|
|
|
40409
40410
|
return;
|
|
40410
40411
|
}
|
|
40411
40412
|
const currentSourceAsset = checkoutItem?.selectedSourceAssetInfo;
|
|
40412
|
-
const sourceAssetChanged = !
|
|
40413
|
+
const sourceAssetChanged = !isTokenEquivalent12({
|
|
40413
40414
|
firstTokenChainId: currentSourceAsset?.chainId || "",
|
|
40414
40415
|
firstTokenAddress: currentSourceAsset?.address || "",
|
|
40415
40416
|
secondTokenChainId: tokenItem.pickedChainId,
|
|
@@ -40586,7 +40587,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, fin
|
|
|
40586
40587
|
return dynamicPath.badge === "NATIVE";
|
|
40587
40588
|
}
|
|
40588
40589
|
if (isEtherealCustomer(apiKey)) {
|
|
40589
|
-
if (
|
|
40590
|
+
if (isTokenEquivalent12({
|
|
40590
40591
|
firstTokenChainId: mainnet11.id.toString(),
|
|
40591
40592
|
firstTokenAddress: "0x90d2af7d622ca3141efa4d8f1f24d86e5974cc8f",
|
|
40592
40593
|
// eUSDe (Ethereum)
|
|
@@ -40595,7 +40596,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, fin
|
|
|
40595
40596
|
})) {
|
|
40596
40597
|
return true;
|
|
40597
40598
|
}
|
|
40598
|
-
if (
|
|
40599
|
+
if (isTokenEquivalent12({
|
|
40599
40600
|
firstTokenChainId: etherealChain.id.toString(),
|
|
40600
40601
|
firstTokenAddress: NATIVE_TOKEN,
|
|
40601
40602
|
// USDe (Ethereal) uses 0xeeee... address
|
|
@@ -40606,7 +40607,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, fin
|
|
|
40606
40607
|
}
|
|
40607
40608
|
}
|
|
40608
40609
|
if (isHyenaCustomer(apiKey)) {
|
|
40609
|
-
if (
|
|
40610
|
+
if (isTokenEquivalent12({
|
|
40610
40611
|
firstTokenChainId: hyperEvmChain3.id.toString(),
|
|
40611
40612
|
firstTokenAddress: "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
|
|
40612
40613
|
secondTokenChainId: asset.pickedChainId,
|
|
@@ -40616,7 +40617,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, fin
|
|
|
40616
40617
|
}
|
|
40617
40618
|
}
|
|
40618
40619
|
return dynamicTargetAssetCandidates.some(
|
|
40619
|
-
(token) =>
|
|
40620
|
+
(token) => isTokenEquivalent12({
|
|
40620
40621
|
firstTokenChainId: token.tokenChainId,
|
|
40621
40622
|
firstTokenAddress: token.tokenAddress,
|
|
40622
40623
|
secondTokenChainId: asset.pickedChainId,
|
|
@@ -40637,7 +40638,7 @@ import {
|
|
|
40637
40638
|
createSyntheticFop,
|
|
40638
40639
|
isSyntheticFop as isSyntheticFop3
|
|
40639
40640
|
} from "@funkit/connect-core";
|
|
40640
|
-
import { isTokenEquivalent as
|
|
40641
|
+
import { isTokenEquivalent as isTokenEquivalent13, noop as noop6 } from "@funkit/utils";
|
|
40641
40642
|
import React247, { useEffect as useEffect66, useMemo as useMemo60, useRef as useRef32, useState as useState72 } from "react";
|
|
40642
40643
|
import { createPortal as createPortal20 } from "react-dom";
|
|
40643
40644
|
|
|
@@ -41275,7 +41276,7 @@ function SourceChange({
|
|
|
41275
41276
|
return void 0;
|
|
41276
41277
|
}
|
|
41277
41278
|
const holding = Object.values(walletHoldings).find(
|
|
41278
|
-
(h) =>
|
|
41279
|
+
(h) => isTokenEquivalent13({
|
|
41279
41280
|
firstTokenChainId: h.pickedChainId,
|
|
41280
41281
|
firstTokenAddress: h.tokenAddress,
|
|
41281
41282
|
secondTokenChainId: checkoutConfig.targetChain,
|
|
@@ -47509,13 +47510,13 @@ var TITLE_ID2 = "rk-connect-modal-title";
|
|
|
47509
47510
|
function ConnectModal({ onClose, open }) {
|
|
47510
47511
|
const connectionStatus = useConnectionStatus();
|
|
47511
47512
|
const { disconnect } = useFunkitDisconnect();
|
|
47512
|
-
const
|
|
47513
|
+
const config = useConfig();
|
|
47513
47514
|
const onConnectModalCancel = React298.useCallback(() => {
|
|
47514
|
-
if (isConnecting) {
|
|
47515
|
+
if (getAccount(config).isConnecting) {
|
|
47515
47516
|
disconnect();
|
|
47516
47517
|
}
|
|
47517
47518
|
onClose();
|
|
47518
|
-
}, [onClose, disconnect,
|
|
47519
|
+
}, [onClose, disconnect, config]);
|
|
47519
47520
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
47520
47521
|
return /* @__PURE__ */ React298.createElement(
|
|
47521
47522
|
Dialog,
|
|
@@ -48477,7 +48478,7 @@ function useFunkitCheckout(props) {
|
|
|
48477
48478
|
}
|
|
48478
48479
|
};
|
|
48479
48480
|
const isTestnetCheckoutBlocked = (config) => {
|
|
48480
|
-
return isUserLoggedIn && !
|
|
48481
|
+
return isUserLoggedIn && !FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO10?.[config.targetChain]?.isMainnet;
|
|
48481
48482
|
};
|
|
48482
48483
|
const handleLoggedInCheckout = (config, checkoutId) => {
|
|
48483
48484
|
setPendingCheckoutConfig(void 0);
|
|
@@ -48643,7 +48644,7 @@ async function validateCheckoutConfig(config) {
|
|
|
48643
48644
|
message: "Invalid targetAssetTicker configuration: Missing value"
|
|
48644
48645
|
};
|
|
48645
48646
|
}
|
|
48646
|
-
if (!
|
|
48647
|
+
if (!FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11[config.targetChain]) {
|
|
48647
48648
|
return {
|
|
48648
48649
|
isValid: false,
|
|
48649
48650
|
message: `Invalid targetChain configuration: Unsupported chain id ${config.targetChain} for checkout.`
|
|
@@ -48783,7 +48784,7 @@ function getMaxTargetAssetAmountEstimate(sourceAssetBalance, config, quoteResult
|
|
|
48783
48784
|
async function getTokenDecimals(wagmiConfig, chainId2, tokenAddress) {
|
|
48784
48785
|
try {
|
|
48785
48786
|
if (isAddress(tokenAddress) && isNativeTokenAddress(tokenAddress)) {
|
|
48786
|
-
return
|
|
48787
|
+
return FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11[chainId2]?.nativeCurrency?.decimals || 18;
|
|
48787
48788
|
}
|
|
48788
48789
|
if (chainId2 === solanaChain5.id.toString()) {
|
|
48789
48790
|
switch (tokenAddress) {
|
|
@@ -48947,7 +48948,7 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
48947
48948
|
if (isCheckoutPostActionRequired(config)) {
|
|
48948
48949
|
return false;
|
|
48949
48950
|
}
|
|
48950
|
-
return paymentMethod === PaymentMethod.ACCOUNT_BALANCE && finalCheckoutRecipient.toLowerCase() === payerAddress.toLowerCase() &&
|
|
48951
|
+
return paymentMethod === PaymentMethod.ACCOUNT_BALANCE && finalCheckoutRecipient.toLowerCase() === payerAddress.toLowerCase() && isTokenEquivalent14({
|
|
48951
48952
|
firstTokenChainId: targetChainId,
|
|
48952
48953
|
firstTokenAddress: targetTokenAddress,
|
|
48953
48954
|
secondTokenChainId: assetChainId,
|
|
@@ -48973,7 +48974,7 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
48973
48974
|
minUsdWithFees: minValueThreshold + feeEstimate
|
|
48974
48975
|
};
|
|
48975
48976
|
}
|
|
48976
|
-
const isSupported = isAllowedForCheckout &&
|
|
48977
|
+
const isSupported = isAllowedForCheckout && FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12[assetChainId]?.isCheckoutSupported;
|
|
48977
48978
|
return {
|
|
48978
48979
|
isUsable: !!isSupported,
|
|
48979
48980
|
reason: !isSupported ? t("payment.unsupported") : ""
|
|
@@ -48981,7 +48982,7 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
48981
48982
|
};
|
|
48982
48983
|
|
|
48983
48984
|
// src/hooks/useWalletAssets.ts
|
|
48984
|
-
import { isTokenEquivalent as
|
|
48985
|
+
import { isTokenEquivalent as isTokenEquivalent15 } from "@funkit/utils";
|
|
48985
48986
|
var ASSETS_LOW_VALUE_THRESHOLD3 = 0.1;
|
|
48986
48987
|
var FETCH_ASSETS_INTERVAL_MS2 = 6e4;
|
|
48987
48988
|
function isKnownAsset2(asset) {
|
|
@@ -48990,7 +48991,7 @@ function isKnownAsset2(asset) {
|
|
|
48990
48991
|
var POLYGON_USDCE_TOKEN = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
48991
48992
|
var ARBITRUM_USDCE_TOKEN = "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8";
|
|
48992
48993
|
function normalizeAssetSymbol(asset) {
|
|
48993
|
-
if (
|
|
48994
|
+
if (isTokenEquivalent15({
|
|
48994
48995
|
firstTokenChainId: asset.chainId,
|
|
48995
48996
|
firstTokenAddress: asset.contractAddress,
|
|
48996
48997
|
secondTokenChainId: polygon7.id.toString(),
|
|
@@ -48998,7 +48999,7 @@ function normalizeAssetSymbol(asset) {
|
|
|
48998
48999
|
})) {
|
|
48999
49000
|
return { ...asset, symbol: "USDC.e" };
|
|
49000
49001
|
}
|
|
49001
|
-
if (
|
|
49002
|
+
if (isTokenEquivalent15({
|
|
49002
49003
|
firstTokenChainId: asset.chainId,
|
|
49003
49004
|
firstTokenAddress: asset.contractAddress,
|
|
49004
49005
|
secondTokenChainId: arbitrum6.id.toString(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-4T6ZSRJF.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-CPI4TD43.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-F5XEEVG6.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-6BW3HLBG.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-YEZM4CK4.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -1,46 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zerionWallet
|
|
7
|
-
} from "./chunk-SWFF3TWJ.js";
|
|
8
|
-
import {
|
|
9
|
-
talismanWallet
|
|
10
|
-
} from "./chunk-4DCO3TGL.js";
|
|
3
|
+
uniswapWallet
|
|
4
|
+
} from "./chunk-Z3PPW6NC.js";
|
|
11
5
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
6
|
+
mewWallet
|
|
7
|
+
} from "./chunk-MQM45ADF.js";
|
|
14
8
|
import {
|
|
15
9
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HTHAK6XB.js";
|
|
17
11
|
import {
|
|
18
12
|
tokenaryWallet
|
|
19
13
|
} from "./chunk-VH3THHJY.js";
|
|
20
14
|
import {
|
|
21
15
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZNX4EMPB.js";
|
|
17
|
+
import {
|
|
18
|
+
oneInchWallet
|
|
19
|
+
} from "./chunk-QG6ZHI7B.js";
|
|
23
20
|
import {
|
|
24
21
|
walletConnectWallet
|
|
25
22
|
} from "./chunk-3FCWJRI4.js";
|
|
26
|
-
import {
|
|
27
|
-
uniswapWallet
|
|
28
|
-
} from "./chunk-Z3PPW6NC.js";
|
|
29
23
|
import {
|
|
30
24
|
xdefiWallet
|
|
31
25
|
} from "./chunk-JN5I3DNC.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
zealWallet
|
|
28
|
+
} from "./chunk-52QXXLDS.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
zerionWallet
|
|
31
|
+
} from "./chunk-RVOY537T.js";
|
|
38
32
|
import {
|
|
39
33
|
ramperWallet
|
|
40
34
|
} from "./chunk-OQB55QXP.js";
|
|
41
35
|
import {
|
|
42
36
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VAPGUPHO.js";
|
|
44
38
|
import {
|
|
45
39
|
safeWallet
|
|
46
40
|
} from "./chunk-RCY66YHF.js";
|
|
@@ -49,46 +43,52 @@ import {
|
|
|
49
43
|
} from "./chunk-76S7R2ND.js";
|
|
50
44
|
import {
|
|
51
45
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VTM6EECM.js";
|
|
53
47
|
import {
|
|
54
48
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-X6CGV36L.js";
|
|
56
50
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
51
|
+
tahoWallet
|
|
52
|
+
} from "./chunk-7ZYCBDQ4.js";
|
|
59
53
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
54
|
+
talismanWallet
|
|
55
|
+
} from "./chunk-4DCO3TGL.js";
|
|
56
|
+
import {
|
|
57
|
+
metaMaskWallet
|
|
58
|
+
} from "./chunk-CCQV2ZET.js";
|
|
62
59
|
import {
|
|
63
60
|
oktoWallet
|
|
64
61
|
} from "./chunk-YWOVAU6O.js";
|
|
65
62
|
import {
|
|
66
63
|
okxWallet
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-STVVP43G.js";
|
|
68
65
|
import {
|
|
69
66
|
omniWallet
|
|
70
67
|
} from "./chunk-2CX7LX4J.js";
|
|
71
|
-
import {
|
|
72
|
-
oneInchWallet
|
|
73
|
-
} from "./chunk-QG6ZHI7B.js";
|
|
74
68
|
import {
|
|
75
69
|
oneKeyWallet
|
|
76
70
|
} from "./chunk-WVT6BBJH.js";
|
|
77
71
|
import {
|
|
78
72
|
phantomWallet
|
|
79
73
|
} from "./chunk-QY53O7WG.js";
|
|
74
|
+
import {
|
|
75
|
+
rabbyWallet
|
|
76
|
+
} from "./chunk-RB66PKPA.js";
|
|
77
|
+
import {
|
|
78
|
+
rainbowWallet
|
|
79
|
+
} from "./chunk-2VP2F6EK.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-MIQTHJ6X.js";
|
|
83
83
|
import {
|
|
84
84
|
frameWallet
|
|
85
85
|
} from "./chunk-BU3ZAT5X.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YEZM4CK4.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HNRB7KJU.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-WNAGGFMG.js";
|
|
@@ -101,53 +101,53 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-RPV27V2Y.js";
|
|
104
|
-
import {
|
|
105
|
-
bloomWallet
|
|
106
|
-
} from "./chunk-PJ7Y57EH.js";
|
|
107
|
-
import {
|
|
108
|
-
clvWallet
|
|
109
|
-
} from "./chunk-OEEGYENV.js";
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-WAHGI5L7.js";
|
|
113
104
|
import {
|
|
114
105
|
coinbaseWallet
|
|
115
106
|
} from "./chunk-2DLDAZRH.js";
|
|
116
107
|
import {
|
|
117
108
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-RB3HR4R2.js";
|
|
110
|
+
import {
|
|
111
|
+
braveWallet
|
|
112
|
+
} from "./chunk-DS73TZ6O.js";
|
|
113
|
+
import {
|
|
114
|
+
bloomWallet
|
|
115
|
+
} from "./chunk-PJ7Y57EH.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-G2PHTVL6.js";
|
|
119
|
+
import {
|
|
120
|
+
coin98Wallet
|
|
121
|
+
} from "./chunk-6BW3HLBG.js";
|
|
122
122
|
import {
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-FW3WZETT.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-HBQK5RD5.js";
|
|
128
|
+
import {
|
|
129
|
+
bitgetWallet
|
|
130
|
+
} from "./chunk-CPI4TD43.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-NTMBEOR2.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-IULPZP2Q.js";
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-TKB2OY6G.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} 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
|
bybitWallet
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-N4IJLYFY.js";
|
|
145
|
+
} from "./chunk-F5XEEVG6.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
clvWallet
|
|
148
|
+
} from "./chunk-UK7C2JXW.js";
|
|
150
149
|
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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-CCQV2ZET.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-2VP2F6EK.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VAPGUPHO.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VTM6EECM.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-HTHAK6XB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-ZNX4EMPB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-RVOY537T.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.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.2.
|
|
3
|
+
"version": "10.2.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"ua-parser-js": "^1.0.37",
|
|
106
106
|
"use-debounce": "^10.0.5",
|
|
107
107
|
"uuid": "^11.1.1",
|
|
108
|
-
"@funkit/api-base": "6.0.0",
|
|
109
108
|
"@funkit/chains": "2.1.3",
|
|
110
|
-
"@funkit/
|
|
109
|
+
"@funkit/api-base": "6.0.0",
|
|
110
|
+
"@funkit/connect-core": "2.0.0",
|
|
111
111
|
"@funkit/fun-relay": "2.9.0",
|
|
112
112
|
"@funkit/utils": "4.0.0"
|
|
113
113
|
},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Address } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* Operator override (Statsig `swappedwithdrawalsourceoverrides`) pinning a
|
|
4
|
-
* Swapped withdrawal to a known-good accepted asset, keyed on the source asset,
|
|
5
|
-
* for when the config's requested target isn't supported by Swapped. `when`
|
|
6
|
-
* matches the source; `use` is the target the Relay quote delivers.
|
|
7
|
-
*/
|
|
8
|
-
export interface SwappedSourceRouteOverride {
|
|
9
|
-
when: {
|
|
10
|
-
chainId: string;
|
|
11
|
-
tokenAddress: string;
|
|
12
|
-
};
|
|
13
|
-
use: {
|
|
14
|
-
chainId: string;
|
|
15
|
-
tokenAddress: Address;
|
|
16
|
-
symbol: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* First well-formed override whose `when` matches the source asset, or
|
|
21
|
-
* `undefined`. First match wins so ops can order more specific rules ahead of
|
|
22
|
-
* broader ones.
|
|
23
|
-
*/
|
|
24
|
-
export declare function findSwappedSourceOverride(overrides: readonly SwappedSourceRouteOverride[] | undefined, source: {
|
|
25
|
-
chainId: string;
|
|
26
|
-
tokenAddress: string;
|
|
27
|
-
}): SwappedSourceRouteOverride | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} 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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
11
|
var coin98Wallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
11
|
var bybitWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} 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";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} 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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} 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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
11
|
import { isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/okxWallet/okxWallet.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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
11
|
var clvWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
11
|
var roninWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
11
|
var subWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} 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";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|