@funkit/connect 6.2.0 → 6.3.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 +22 -0
- package/dist/hooks/useAllowedAssets.d.ts +4 -2
- package/dist/index.js +59 -76
- package/dist/providers/FunkitCheckoutContext.d.ts +5 -0
- 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 +58 -58
- 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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3dacbbd: Add support for disabling specific source tokens in checkout process via disabledSourceTokens configuration
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- c447521: feat(connect): change text to deposit with card
|
|
12
|
+
- 52dedad: Increase tooltip max width in PaymentFeesSummary from 250px to 300px for better text readability
|
|
13
|
+
- f65374b: fix(connect): fix withdrawal sourceOfFund
|
|
14
|
+
- 4717af3: feat(connect): change starting step + remove text to virtual bank / SEPA
|
|
15
|
+
- 6c027ed: feat(connect): update transfer crypto icons
|
|
16
|
+
- c4587b3: remove exchange rate component
|
|
17
|
+
- 971145e: feat(connect): update transaction breakdown tooltip message
|
|
18
|
+
- c56ac6b: Update zkSync import to zksync to align with viem API changes
|
|
19
|
+
- Updated dependencies [ca26e44]
|
|
20
|
+
- Updated dependencies [c56ac6b]
|
|
21
|
+
- @funkit/chains@0.3.9
|
|
22
|
+
- @funkit/core@2.3.41
|
|
23
|
+
- @funkit/wagmi-tools@3.0.63
|
|
24
|
+
|
|
3
25
|
## 6.2.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
|
|
2
|
+
interface AllowedAssetsHookResult {
|
|
3
3
|
allowedAssets: {
|
|
4
4
|
[chainId in string]?: Address[];
|
|
5
5
|
} | undefined;
|
|
6
6
|
isAllowed: (chainId: number | string, tokenAddress: Address) => boolean;
|
|
7
7
|
isLoading: boolean;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
export declare function useAllowedAssets(): AllowedAssetsHookResult;
|
|
10
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -738,9 +738,9 @@ import { useConfig } from "wagmi";
|
|
|
738
738
|
// src/providers/FunkitConfigContext.tsx
|
|
739
739
|
import { createContext as createContext3, useContext as useContext3, useMemo as useMemo2 } from "react";
|
|
740
740
|
var DEFAULT_TEXT_CUSTOMIZATIONS = {
|
|
741
|
-
virtualFiat: "
|
|
741
|
+
virtualFiat: "Deposit with SEPA",
|
|
742
742
|
brokerageOrExchange: "Connect Exchange",
|
|
743
|
-
debitOrCredit: "Deposit with
|
|
743
|
+
debitOrCredit: "Deposit with Card",
|
|
744
744
|
accountBalance: "Wallet",
|
|
745
745
|
selectAccount: "Select an exchange",
|
|
746
746
|
sourceMethodTitle: "Your source",
|
|
@@ -2470,7 +2470,8 @@ var flagConfig = {
|
|
|
2470
2470
|
BANKR_API_KEY,
|
|
2471
2471
|
KATANA_API_KEY,
|
|
2472
2472
|
CAMBRIA_API_KEY,
|
|
2473
|
-
HYPERBEAT_API_KEY
|
|
2473
|
+
HYPERBEAT_API_KEY,
|
|
2474
|
+
HYPERSWAP_API_KEY
|
|
2474
2475
|
]
|
|
2475
2476
|
}
|
|
2476
2477
|
],
|
|
@@ -4640,7 +4641,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
4640
4641
|
const sourceOfFund = generateSourceOfFundString({
|
|
4641
4642
|
paymentMethodInfo: checkoutItem.selectedPaymentMethodInfo,
|
|
4642
4643
|
loginType,
|
|
4643
|
-
walletAddress
|
|
4644
|
+
walletAddress: withdrawalClient?.address() ?? walletAddress
|
|
4644
4645
|
});
|
|
4645
4646
|
const clientMetadata = generateClientMetadataForBackend({
|
|
4646
4647
|
checkoutItem,
|
|
@@ -8390,7 +8391,7 @@ Dialog.BottomSection = DialogBottom;
|
|
|
8390
8391
|
Dialog.BottomBar = FunBottomBar;
|
|
8391
8392
|
|
|
8392
8393
|
// src/modals/WithdrwalModal/WithdrawalContent.tsx
|
|
8393
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
8394
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8 } from "@funkit/chains";
|
|
8394
8395
|
import {
|
|
8395
8396
|
FlagKey as FlagKey14,
|
|
8396
8397
|
formatCryptoAndStringify as formatCryptoAndStringify2,
|
|
@@ -10117,12 +10118,10 @@ function FunNotification({
|
|
|
10117
10118
|
import {
|
|
10118
10119
|
formatCurrencyAndStringify as formatCurrencyAndStringify2,
|
|
10119
10120
|
formatDynamicFeeUsd,
|
|
10120
|
-
formatNumberAndStringify,
|
|
10121
10121
|
formatPercent,
|
|
10122
10122
|
noop as noop4
|
|
10123
10123
|
} from "@funkit/utils";
|
|
10124
10124
|
import React90, { useEffect as useEffect23, useMemo as useMemo11, useState as useState21 } from "react";
|
|
10125
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6 } from "@funkit/chains";
|
|
10126
10125
|
import clsx14 from "clsx";
|
|
10127
10126
|
import { motion as motion6, useAnimationControls } from "motion/react";
|
|
10128
10127
|
import { mainnet as mainnet5 } from "viem/chains";
|
|
@@ -10278,26 +10277,6 @@ function formatRelayFee({
|
|
|
10278
10277
|
}
|
|
10279
10278
|
return formatPercent(percent);
|
|
10280
10279
|
}
|
|
10281
|
-
function makeRateComponent(exchangeRate, relayQuoteMetadata) {
|
|
10282
|
-
const { currencyIn, currencyOut } = relayQuoteMetadata.relayQuote.details || {};
|
|
10283
|
-
const sourceSymbol = currencyIn?.currency?.symbol;
|
|
10284
|
-
const sourceChain = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6[currencyIn?.currency?.chainId || ""]?.name;
|
|
10285
|
-
const destinationSymbol = currencyOut?.currency?.symbol;
|
|
10286
|
-
const destinationChain = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6[currencyOut?.currency?.chainId || ""]?.name;
|
|
10287
|
-
if (!exchangeRate || !sourceSymbol || !destinationSymbol) {
|
|
10288
|
-
return void 0;
|
|
10289
|
-
}
|
|
10290
|
-
if (sourceSymbol === destinationSymbol && sourceChain === destinationChain) {
|
|
10291
|
-
return void 0;
|
|
10292
|
-
}
|
|
10293
|
-
const tooltipText = sourceChain === destinationChain ? `The conversion rate between ${sourceSymbol} and ${destinationSymbol} on ${sourceChain}.` : sourceSymbol === destinationSymbol ? `The conversion rate between ${sourceSymbol} on ${sourceChain} and on ${destinationChain}.` : `The conversion rate between ${sourceSymbol} on ${sourceChain} and ${destinationSymbol} on ${destinationChain}.`;
|
|
10294
|
-
const exchangeRateComponent = {
|
|
10295
|
-
label: "Rate",
|
|
10296
|
-
value: `1.0 ${sourceSymbol} = ${formatNumberAndStringify(exchangeRate)} ${destinationSymbol}`,
|
|
10297
|
-
tooltipText
|
|
10298
|
-
};
|
|
10299
|
-
return exchangeRateComponent;
|
|
10300
|
-
}
|
|
10301
10280
|
function computeDigest(relayQuoteMetadata, uiCustomizations, totalPriceImpactPercent, gasUsd) {
|
|
10302
10281
|
const showTransactionDigest = uiCustomizations?.confirmationScreen?.showTransactionDigest ?? "none";
|
|
10303
10282
|
if (showTransactionDigest === "none") {
|
|
@@ -10329,16 +10308,11 @@ function renderRelayFee({
|
|
|
10329
10308
|
maxSlippage,
|
|
10330
10309
|
minReceived,
|
|
10331
10310
|
fillCostUsd,
|
|
10332
|
-
exchangeRate,
|
|
10333
10311
|
appFeeLabel
|
|
10334
10312
|
} = extractRelayFeeInfo(relayQuoteMetadata);
|
|
10335
10313
|
const totalNetworkCostUsd = fillCostUsd + gasUsd;
|
|
10336
10314
|
const totalPriceImpact = swapImpactUsd + appFeeUsd;
|
|
10337
10315
|
const totalPriceImpactPercent = swapImpact + appFeePercent;
|
|
10338
|
-
const exchangeRateComponent = makeRateComponent(
|
|
10339
|
-
exchangeRate,
|
|
10340
|
-
relayQuoteMetadata
|
|
10341
|
-
);
|
|
10342
10316
|
const { isMainnet, value: collapsedValue } = computeDigest(
|
|
10343
10317
|
relayQuoteMetadata,
|
|
10344
10318
|
uiCustomizations,
|
|
@@ -10351,7 +10325,6 @@ function renderRelayFee({
|
|
|
10351
10325
|
valueIcon: isMainnet ? /* @__PURE__ */ React90.createElement(GasIcon, null) : void 0
|
|
10352
10326
|
},
|
|
10353
10327
|
expanded: [
|
|
10354
|
-
...exchangeRateComponent ? [exchangeRateComponent] : [],
|
|
10355
10328
|
{
|
|
10356
10329
|
label: "Network cost",
|
|
10357
10330
|
valueIcon: /* @__PURE__ */ React90.createElement(GasIcon, null),
|
|
@@ -10636,7 +10609,7 @@ function FeeLineItem({
|
|
|
10636
10609
|
content: tooltipText,
|
|
10637
10610
|
tooltipPosition,
|
|
10638
10611
|
enableDynamicPositioning: true,
|
|
10639
|
-
maxWidth: tooltipWidth === "wide" ?
|
|
10612
|
+
maxWidth: tooltipWidth === "wide" ? 300 : void 0
|
|
10640
10613
|
},
|
|
10641
10614
|
/* @__PURE__ */ React90.createElement(
|
|
10642
10615
|
Box,
|
|
@@ -10708,18 +10681,18 @@ import {
|
|
|
10708
10681
|
getAssetPriceInfo as getAssetPriceInfo2,
|
|
10709
10682
|
getMoonpayBuyQuoteForCreditCard
|
|
10710
10683
|
} from "@funkit/api-base";
|
|
10711
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
10684
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7 } from "@funkit/chains";
|
|
10712
10685
|
import { estimateGas, getGasPrice } from "@wagmi/core";
|
|
10713
10686
|
import { encodeFunctionData, erc20Abi as erc20Abi2, formatEther } from "viem";
|
|
10714
|
-
import {
|
|
10687
|
+
import { zksync } from "viem/zksync";
|
|
10715
10688
|
|
|
10716
10689
|
// src/utils/moonpay.ts
|
|
10717
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
10690
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6 } from "@funkit/chains";
|
|
10718
10691
|
var MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
|
|
10719
10692
|
var MINIMUM_DEFI_MOONPAY_DEPOSIT_AMOUNT_USD = 25;
|
|
10720
10693
|
var MAXIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 1e4;
|
|
10721
10694
|
var generateMoonpayCurrencyCode = (tokenSymbol, chainId) => {
|
|
10722
|
-
let moonpayChainName =
|
|
10695
|
+
let moonpayChainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6[chainId]?.moonpayChainName;
|
|
10723
10696
|
if (moonpayChainName == null) {
|
|
10724
10697
|
throw new Error("MoonPay not supported on testnets");
|
|
10725
10698
|
}
|
|
@@ -10785,7 +10758,7 @@ async function evaluateAccountWalletFees({
|
|
|
10785
10758
|
apiKey,
|
|
10786
10759
|
isWithdrawal
|
|
10787
10760
|
}) {
|
|
10788
|
-
const nativeCurrencySymbol =
|
|
10761
|
+
const nativeCurrencySymbol = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7[selectedSourceAssetInfo.chainId]?.nativeCurrency.symbol || "";
|
|
10789
10762
|
const walletCheckoutFees = {
|
|
10790
10763
|
paymentMethod: "balance" /* ACCOUNT_BALANCE */,
|
|
10791
10764
|
...getFunFeeBreakdown(baseQuote),
|
|
@@ -10795,7 +10768,7 @@ async function evaluateAccountWalletFees({
|
|
|
10795
10768
|
totalFeesTokenWithoutGas: Number(baseQuote.estFeesFromAmount),
|
|
10796
10769
|
nativeCurrencySymbol
|
|
10797
10770
|
};
|
|
10798
|
-
if (loginType !== "web3" /* Web3 */ || selectedSourceAssetInfo.chainId ===
|
|
10771
|
+
if (loginType !== "web3" /* Web3 */ || selectedSourceAssetInfo.chainId === zksync.id.toString() || isWithdrawal) {
|
|
10799
10772
|
return { fees: walletCheckoutFees };
|
|
10800
10773
|
}
|
|
10801
10774
|
const [gasUnit, gasPriceInWei, nativeCurrencyPrice] = await Promise.all([
|
|
@@ -12251,7 +12224,7 @@ var WithdrawContent = ({
|
|
|
12251
12224
|
return "Withdraw";
|
|
12252
12225
|
};
|
|
12253
12226
|
const getAlertMessage = () => {
|
|
12254
|
-
const chainName =
|
|
12227
|
+
const chainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8[selectedChainId]?.name;
|
|
12255
12228
|
if (chainName) {
|
|
12256
12229
|
return `Please ensure the address supports receiving ${selectedToken} on ${chainName}.`;
|
|
12257
12230
|
}
|
|
@@ -12709,7 +12682,7 @@ function FunTxSummaryLineItemKeyText({ text }) {
|
|
|
12709
12682
|
|
|
12710
12683
|
// src/components/FunButton/FunRedirectButton.tsx
|
|
12711
12684
|
import React97 from "react";
|
|
12712
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
12685
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9 } from "@funkit/chains";
|
|
12713
12686
|
|
|
12714
12687
|
// src/components/Icons/RedirectIcon.tsx
|
|
12715
12688
|
import React96 from "react";
|
|
@@ -12768,7 +12741,7 @@ var AddressRedirectButton = ({
|
|
|
12768
12741
|
address,
|
|
12769
12742
|
customRedirectUrl
|
|
12770
12743
|
}) => {
|
|
12771
|
-
const explorerInfo =
|
|
12744
|
+
const explorerInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9[chainId]?.explorerInfo;
|
|
12772
12745
|
return /* @__PURE__ */ React97.createElement(
|
|
12773
12746
|
FunRedirectButton,
|
|
12774
12747
|
{
|
|
@@ -12782,7 +12755,7 @@ var TransactionRedirectButton = ({
|
|
|
12782
12755
|
txHash,
|
|
12783
12756
|
customRedirectUrl
|
|
12784
12757
|
}) => {
|
|
12785
|
-
const explorerInfo =
|
|
12758
|
+
const explorerInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9[chainId]?.explorerInfo;
|
|
12786
12759
|
return /* @__PURE__ */ React97.createElement(
|
|
12787
12760
|
FunRedirectButton,
|
|
12788
12761
|
{
|
|
@@ -12819,7 +12792,7 @@ import {
|
|
|
12819
12792
|
getBridgeCustomer,
|
|
12820
12793
|
getFrogAccount
|
|
12821
12794
|
} from "@funkit/api-base";
|
|
12822
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
12795
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO10 } from "@funkit/chains";
|
|
12823
12796
|
import { ResourceNotFoundError } from "@funkit/utils";
|
|
12824
12797
|
async function fetchFrogAccounts(walletAddress, params) {
|
|
12825
12798
|
const { logger: logger2 } = params;
|
|
@@ -12863,7 +12836,7 @@ async function fetchAllFiatAccounts(bridgeSubAccount, params) {
|
|
|
12863
12836
|
}
|
|
12864
12837
|
function getMatchingBankAccount(accounts, targetChain, targetAddress) {
|
|
12865
12838
|
const { bankAccounts } = accounts;
|
|
12866
|
-
const chainInfo =
|
|
12839
|
+
const chainInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO10[targetChain];
|
|
12867
12840
|
if (!bankAccounts || !chainInfo) {
|
|
12868
12841
|
return void 0;
|
|
12869
12842
|
}
|
|
@@ -12908,7 +12881,7 @@ import {
|
|
|
12908
12881
|
createBridgeBankAccount,
|
|
12909
12882
|
getBridgeKycLink
|
|
12910
12883
|
} from "@funkit/api-base";
|
|
12911
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
12884
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11 } from "@funkit/chains";
|
|
12912
12885
|
import { FlagKey as FlagKey16 } from "@funkit/utils";
|
|
12913
12886
|
import { useQuery as useQuery11, useQueryClient } from "@tanstack/react-query";
|
|
12914
12887
|
import { useCallback as useCallback18 } from "react";
|
|
@@ -13088,7 +13061,7 @@ function useCreateVirtualBankAccount() {
|
|
|
13088
13061
|
const targetChainId = checkoutConfig?.targetChain;
|
|
13089
13062
|
const { transferInit, recipientAddr } = useCheckoutTransferInit();
|
|
13090
13063
|
const destinationAddress = transferInit?.depositAddr || recipientAddr;
|
|
13091
|
-
const chainName = targetChainId &&
|
|
13064
|
+
const chainName = targetChainId && FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11[targetChainId]?.name?.toLowerCase();
|
|
13092
13065
|
const subAccountId = allFiatAccounts?.bridgeCustomer?.id;
|
|
13093
13066
|
const { clearVirtualFiatAccounts } = useClearFrogAccountsCache();
|
|
13094
13067
|
const handleCreateVirtualFiatAccount = useCallback18(async () => {
|
|
@@ -13139,7 +13112,7 @@ var useWalletLabel = () => {
|
|
|
13139
13112
|
// src/modals/CheckoutModal/useWalletAssetHoldings.ts
|
|
13140
13113
|
import {
|
|
13141
13114
|
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3,
|
|
13142
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
13115
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12
|
|
13143
13116
|
} from "@funkit/chains";
|
|
13144
13117
|
import { useMemo as useMemo13 } from "react";
|
|
13145
13118
|
|
|
@@ -13159,14 +13132,14 @@ var processWalletAssets = (walletAssets, targetChain) => {
|
|
|
13159
13132
|
if (!walletAssets) {
|
|
13160
13133
|
return;
|
|
13161
13134
|
}
|
|
13162
|
-
const targetChainInfo =
|
|
13135
|
+
const targetChainInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12[targetChain];
|
|
13163
13136
|
const isCheckoutOnMainnet = targetChainInfo?.isMainnet;
|
|
13164
13137
|
return Object.values(walletAssets).reduce(
|
|
13165
13138
|
(result, asset) => {
|
|
13166
13139
|
if (!asset.symbol || !asset.contractAddress) {
|
|
13167
13140
|
return result;
|
|
13168
13141
|
}
|
|
13169
|
-
const assetChainInfo =
|
|
13142
|
+
const assetChainInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12[asset.chainId];
|
|
13170
13143
|
const isAssetOnMainnet = assetChainInfo?.isMainnet;
|
|
13171
13144
|
if (isCheckoutOnMainnet && !isAssetOnMainnet) {
|
|
13172
13145
|
return result;
|
|
@@ -13213,7 +13186,7 @@ function useWalletAssetHoldings(targetChain) {
|
|
|
13213
13186
|
|
|
13214
13187
|
// src/config/getDefaultConfig.ts
|
|
13215
13188
|
import {
|
|
13216
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
13189
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO13,
|
|
13217
13190
|
FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST
|
|
13218
13191
|
} from "@funkit/chains";
|
|
13219
13192
|
import { fallback } from "viem";
|
|
@@ -13910,7 +13883,7 @@ var createDefaultTransports = (chains) => {
|
|
|
13910
13883
|
const transportsObject = {};
|
|
13911
13884
|
for (const chain of chains) {
|
|
13912
13885
|
const key = chain.id;
|
|
13913
|
-
const fallbackRpcs =
|
|
13886
|
+
const fallbackRpcs = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO13[key]?.fallbackRpcUrls;
|
|
13914
13887
|
if (fallbackRpcs && fallbackRpcs.length > 0) {
|
|
13915
13888
|
transportsObject[key] = fallback([
|
|
13916
13889
|
http(),
|
|
@@ -14469,11 +14442,12 @@ var TransferPaymentMethodItem = ({
|
|
|
14469
14442
|
paymentIcon
|
|
14470
14443
|
}) => {
|
|
14471
14444
|
const { textCustomizations } = useFunkitConfig();
|
|
14472
|
-
const enabledChainTokens = useEnabledTokenTransferChainTokens();
|
|
14473
14445
|
const bannerJson = useFlag(FlagKey17.NewTokenAssetSelectionBanner);
|
|
14474
14446
|
const bannerData = safeParseJson3(bannerJson);
|
|
14447
|
+
const depositAssetsJson = useFlag(FlagKey17.TokenTransferSourceChainsAndAssets);
|
|
14448
|
+
const depositAssetsData = safeJSONParse(depositAssetsJson);
|
|
14475
14449
|
const getTokenTransferIcon = () => {
|
|
14476
|
-
const uniqueChainIds = new Set(Object.keys(
|
|
14450
|
+
const uniqueChainIds = new Set(Object.keys(depositAssetsData ?? {}));
|
|
14477
14451
|
const hasNewChain = bannerData?.isChainNew && uniqueChainIds.delete(`${bannerData.chainId}`);
|
|
14478
14452
|
return /* @__PURE__ */ React103.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React103.createElement(SupportedChainList, { chainIdList: Array.from(uniqueChainIds) }), hasNewChain && /* @__PURE__ */ React103.createElement(NewTokenBadge, { iconSymbol: bannerData.symbol }));
|
|
14479
14453
|
};
|
|
@@ -15352,7 +15326,7 @@ function CreateAccountScreen({
|
|
|
15352
15326
|
});
|
|
15353
15327
|
};
|
|
15354
15328
|
const areFieldsFilled = !!firstName.trim() && !!lastName.trim() && !!email.trim() && consentChecked;
|
|
15355
|
-
return /* @__PURE__ */ React112.createElement("form", { onSubmit: handleSubmit }, /* @__PURE__ */ React112.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React112.createElement(
|
|
15329
|
+
return /* @__PURE__ */ React112.createElement("form", { onSubmit: handleSubmit }, /* @__PURE__ */ React112.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React112.createElement(
|
|
15356
15330
|
FunInput,
|
|
15357
15331
|
{
|
|
15358
15332
|
value: firstName,
|
|
@@ -20686,7 +20660,7 @@ function InputAmountLoaded({
|
|
|
20686
20660
|
SourcePaymentMethodItem,
|
|
20687
20661
|
{
|
|
20688
20662
|
type: "card" /* CARD */,
|
|
20689
|
-
keyText: "Deposit with
|
|
20663
|
+
keyText: "Deposit with Card",
|
|
20690
20664
|
keyIcon: /* @__PURE__ */ React163.createElement(CreditCardIcon, { size: 16 }),
|
|
20691
20665
|
onClick: () => onNext({
|
|
20692
20666
|
nextStep: "source_change" /* SOURCE_CHANGE */,
|
|
@@ -20879,7 +20853,7 @@ function InputAmountLoading({
|
|
|
20879
20853
|
SourcePaymentMethodItem,
|
|
20880
20854
|
{
|
|
20881
20855
|
type: "card" /* CARD */,
|
|
20882
|
-
keyText: "Deposit with
|
|
20856
|
+
keyText: "Deposit with Card",
|
|
20883
20857
|
keyIcon: /* @__PURE__ */ React164.createElement(CreditCardIcon, { size: 16 })
|
|
20884
20858
|
}
|
|
20885
20859
|
)),
|
|
@@ -21054,7 +21028,7 @@ function InputAmount(props) {
|
|
|
21054
21028
|
import React168, { useEffect as useEffect38 } from "react";
|
|
21055
21029
|
|
|
21056
21030
|
// src/domains/wallet.ts
|
|
21057
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
21031
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO14 } from "@funkit/chains";
|
|
21058
21032
|
import { isNotNullish as isNotNullish7 } from "@funkit/utils";
|
|
21059
21033
|
import { mainnet as mainnet7, polygon as polygon6 } from "viem/chains";
|
|
21060
21034
|
var ASSETS_LOW_VALUE_THRESHOLD2 = 0.1;
|
|
@@ -21885,6 +21859,7 @@ import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
|
21885
21859
|
import { useCallback as useCallback30, useMemo as useMemo26 } from "react";
|
|
21886
21860
|
function useAllowedAssets() {
|
|
21887
21861
|
const { apiKey } = useFunkitConfig();
|
|
21862
|
+
const { checkoutItem } = useCheckoutContext();
|
|
21888
21863
|
const isRelayEnabled = useSourceTokenRelayEnabled();
|
|
21889
21864
|
const { data: allowedAssets, isLoading } = useQuery16({
|
|
21890
21865
|
queryKey: ["getAllowedAssets", apiKey],
|
|
@@ -21908,9 +21883,18 @@ function useAllowedAssets() {
|
|
|
21908
21883
|
}, [allowedAssets]);
|
|
21909
21884
|
const isAllowed = useCallback30(
|
|
21910
21885
|
(chainId, tokenAddress) => {
|
|
21911
|
-
|
|
21886
|
+
const disabledByCustomerList = checkoutItem?.initSettings.config.disabledSourceTokens?.some(
|
|
21887
|
+
(token) => {
|
|
21888
|
+
return token.tokenChainId === String(chainId) && token.tokenAddress.toLowerCase() === tokenAddress.toLowerCase();
|
|
21889
|
+
}
|
|
21890
|
+
);
|
|
21891
|
+
return !disabledByCustomerList && (isRelayEnabled(chainId, tokenAddress) || tokens[chainId]?.has(tokenAddress.toLowerCase()));
|
|
21912
21892
|
},
|
|
21913
|
-
[
|
|
21893
|
+
[
|
|
21894
|
+
tokens,
|
|
21895
|
+
isRelayEnabled,
|
|
21896
|
+
checkoutItem?.initSettings.config.disabledSourceTokens
|
|
21897
|
+
]
|
|
21914
21898
|
);
|
|
21915
21899
|
return {
|
|
21916
21900
|
allowedAssets,
|
|
@@ -22447,12 +22431,12 @@ var DefiPurchaseSection = ({ config }) => {
|
|
|
22447
22431
|
|
|
22448
22432
|
// src/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.ts
|
|
22449
22433
|
import {
|
|
22450
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
22434
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO15,
|
|
22451
22435
|
katanaChain
|
|
22452
22436
|
} from "@funkit/chains";
|
|
22453
22437
|
import { getTokenAddressBySymbolAndChainId as getTokenAddressBySymbolAndChainId2 } from "@funkit/core";
|
|
22454
22438
|
import { useCallback as useCallback31, useState as useState46 } from "react";
|
|
22455
|
-
import { mainnet as mainnet8, mantle,
|
|
22439
|
+
import { mainnet as mainnet8, mantle, zksync as zksync2 } from "viem/chains";
|
|
22456
22440
|
var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
|
|
22457
22441
|
if (!checkoutItem?.initSettings.config.targetChain) {
|
|
22458
22442
|
throw new Error("pickSourceAssetForCard: Missing targetChain");
|
|
@@ -22462,12 +22446,12 @@ var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
|
|
|
22462
22446
|
const isCanada = userIpInfo ? userIpInfo.alpha2 === "CA" : false;
|
|
22463
22447
|
const moonpayChainId = getMockedTargetChainId(
|
|
22464
22448
|
checkoutItem.initSettings.config,
|
|
22465
|
-
[
|
|
22449
|
+
[zksync2.id.toString(), mantle.id.toString(), katanaChain.id.toString()]
|
|
22466
22450
|
);
|
|
22467
22451
|
const wethAddrOnTargetChain = (await getTokenAddressBySymbolAndChainId2("weth", moonpayChainId)).toLowerCase();
|
|
22468
22452
|
const isTargetAssetEthOrWeth = [NATIVE_TOKEN, wethAddrOnTargetChain].includes(
|
|
22469
22453
|
checkoutItem.initSettings.config.targetAsset
|
|
22470
|
-
) &&
|
|
22454
|
+
) && FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO15[moonpayChainId]?.nativeCurrency.symbol === "ETH" /* ETH */;
|
|
22471
22455
|
let sourceTokenAddress;
|
|
22472
22456
|
let sourceTokenTicker;
|
|
22473
22457
|
let sourceTokenChainId;
|
|
@@ -22570,7 +22554,7 @@ var SourceChangeInfo = {
|
|
|
22570
22554
|
}
|
|
22571
22555
|
return {
|
|
22572
22556
|
...common,
|
|
22573
|
-
step: "
|
|
22557
|
+
step: "bridge_customer" /* BRIDGE_CUSTOMER */,
|
|
22574
22558
|
paymentMethodInfo
|
|
22575
22559
|
};
|
|
22576
22560
|
}
|
|
@@ -23147,7 +23131,7 @@ var QRCodeSkeletonLoader_default = QRCodeSkeletonLoader;
|
|
|
23147
23131
|
|
|
23148
23132
|
// src/components/TransferTokenDetails/TransferTokenDetails.tsx
|
|
23149
23133
|
import {
|
|
23150
|
-
formatNumberAndStringify
|
|
23134
|
+
formatNumberAndStringify,
|
|
23151
23135
|
formatSecondsToReadableForm as formatSecondsToReadableForm3
|
|
23152
23136
|
} from "@funkit/utils";
|
|
23153
23137
|
import React188 from "react";
|
|
@@ -23458,19 +23442,19 @@ var TransferTokenDetails = ({
|
|
|
23458
23442
|
{
|
|
23459
23443
|
text: `${estPriceImpact.label}:`,
|
|
23460
23444
|
prefix: estPriceImpact.value > 0 ? "~" : "",
|
|
23461
|
-
value: `${
|
|
23445
|
+
value: `${formatNumberAndStringify(estPriceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
23462
23446
|
icon: /* @__PURE__ */ React188.createElement(DollarIcon, null),
|
|
23463
23447
|
tooltip: /* @__PURE__ */ React188.createElement(
|
|
23464
23448
|
FunTooltip,
|
|
23465
23449
|
{
|
|
23466
|
-
content: /* @__PURE__ */ React188.createElement(React188.Fragment, null, "Price impact is the difference between expected and execution price, due to trade size and liquidity.", /* @__PURE__ */ React188.createElement("br", null), /* @__PURE__ */ React188.createElement("br", null), "Final cost may vary based on network conditions.", " ", /* @__PURE__ */ React188.createElement(
|
|
23450
|
+
content: /* @__PURE__ */ React188.createElement(React188.Fragment, null, "Price impact is the difference between expected and execution price, due to trade size and liquidity.", /* @__PURE__ */ React188.createElement("br", null), /* @__PURE__ */ React188.createElement("br", null), "Final cost may vary based on network conditions. Costs are reduced for larger amounts.", " ", /* @__PURE__ */ React188.createElement(
|
|
23467
23451
|
FunLinkButton,
|
|
23468
23452
|
{
|
|
23469
23453
|
text: "Learn more",
|
|
23470
23454
|
inline: true,
|
|
23471
23455
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide"
|
|
23472
23456
|
}
|
|
23473
|
-
))
|
|
23457
|
+
), " ", "about the pricing breakdown.")
|
|
23474
23458
|
}
|
|
23475
23459
|
)
|
|
23476
23460
|
}
|
|
@@ -23479,19 +23463,19 @@ var TransferTokenDetails = ({
|
|
|
23479
23463
|
{
|
|
23480
23464
|
text: `${maxSlippage.label}:`,
|
|
23481
23465
|
prefix: maxSlippage.value > 0 ? "~" : "",
|
|
23482
|
-
value: `${
|
|
23466
|
+
value: `${formatNumberAndStringify(maxSlippage.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
23483
23467
|
icon: /* @__PURE__ */ React188.createElement(PercentageIcon, null),
|
|
23484
23468
|
tooltip: /* @__PURE__ */ React188.createElement(
|
|
23485
23469
|
FunTooltip,
|
|
23486
23470
|
{
|
|
23487
|
-
content: /* @__PURE__ */ React188.createElement(React188.Fragment, null, "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.", /* @__PURE__ */ React188.createElement("br", null), /* @__PURE__ */ React188.createElement("br", null), "Final cost may vary based on network conditions.", " ", /* @__PURE__ */ React188.createElement(
|
|
23471
|
+
content: /* @__PURE__ */ React188.createElement(React188.Fragment, null, "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.", /* @__PURE__ */ React188.createElement("br", null), /* @__PURE__ */ React188.createElement("br", null), "Final cost may vary based on network conditions. Costs are reduced for larger amounts.", " ", /* @__PURE__ */ React188.createElement(
|
|
23488
23472
|
FunLinkButton,
|
|
23489
23473
|
{
|
|
23490
23474
|
text: "Learn more",
|
|
23491
23475
|
inline: true,
|
|
23492
23476
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide"
|
|
23493
23477
|
}
|
|
23494
|
-
))
|
|
23478
|
+
), " ", "about the pricing breakdown.")
|
|
23495
23479
|
}
|
|
23496
23480
|
)
|
|
23497
23481
|
}
|
|
@@ -24172,7 +24156,6 @@ var AccountDetailsScreen = ({
|
|
|
24172
24156
|
const { paymentMethodInfo } = modalState;
|
|
24173
24157
|
const { matchingFiatAccount } = paymentMethodInfo;
|
|
24174
24158
|
const label = usePaymentMethodInfoLabel(paymentMethodInfo);
|
|
24175
|
-
const { appName } = useFunkitConfig();
|
|
24176
24159
|
const { animation, animate } = useAnimatedNavigation(void 0);
|
|
24177
24160
|
const isSourceNavWidgetEnabled = modalState.startingStep === "select_asset" /* SELECT_ASSET */;
|
|
24178
24161
|
const [activeTab, setActiveTab] = useState52(0);
|
|
@@ -24198,7 +24181,7 @@ var AccountDetailsScreen = ({
|
|
|
24198
24181
|
keyIcon: label.icon
|
|
24199
24182
|
}
|
|
24200
24183
|
),
|
|
24201
|
-
/* @__PURE__ */ React195.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React195.createElement(Box, { display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React195.createElement(
|
|
24184
|
+
/* @__PURE__ */ React195.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React195.createElement(Box, { display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React195.createElement(
|
|
24202
24185
|
Tabs,
|
|
24203
24186
|
{
|
|
24204
24187
|
tabs,
|
|
@@ -31400,7 +31383,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
31400
31383
|
localStorage.setItem(storageKey5, version);
|
|
31401
31384
|
}
|
|
31402
31385
|
function getCurrentSdkVersion() {
|
|
31403
|
-
return "6.
|
|
31386
|
+
return "6.3.0";
|
|
31404
31387
|
}
|
|
31405
31388
|
function useFingerprint() {
|
|
31406
31389
|
const fingerprint = useCallback51(() => {
|
|
@@ -54,6 +54,11 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
54
54
|
sourceChain?: string;
|
|
55
55
|
/** Address of the source token on the source chain. Required if startingStep is set to FunCheckoutStartingStep.CONFIRMATION. */
|
|
56
56
|
sourceTokenAddress?: Address;
|
|
57
|
+
/** Address list of the tokens that cannot be used as source. e.g. tokens for staking vault */
|
|
58
|
+
disabledSourceTokens?: {
|
|
59
|
+
tokenAddress: Address;
|
|
60
|
+
tokenChainId: string;
|
|
61
|
+
}[];
|
|
57
62
|
/** *****************************
|
|
58
63
|
* Miscellaneous configurations *
|
|
59
64
|
********************************/
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zerionWallet
|
|
7
|
-
} from "./chunk-SULRQO27.js";
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
8
5
|
import {
|
|
9
6
|
zealWallet
|
|
10
7
|
} from "./chunk-RNBEDQHF.js";
|
|
8
|
+
import {
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
11
|
+
import {
|
|
12
|
+
tahoWallet
|
|
13
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
11
14
|
import {
|
|
12
15
|
subWallet
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
14
17
|
import {
|
|
15
18
|
talismanWallet
|
|
16
19
|
} from "./chunk-DRO6WYMM.js";
|
|
17
|
-
import {
|
|
18
|
-
tahoWallet
|
|
19
|
-
} from "./chunk-ZZZRUXZE.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-D6AOOO5F.js";
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
xdefiWallet
|
|
31
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
28
|
+
} from "./chunk-RKPCWHXL.js";
|
|
32
29
|
import {
|
|
33
30
|
uniswapWallet
|
|
34
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-NP5QGWNL.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-362NXNTM.js";
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
44
|
import {
|
|
45
45
|
ramperWallet
|
|
46
46
|
} from "./chunk-BYXPFMI7.js";
|
|
47
|
+
import {
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-QLVVUKYB.js";
|
|
47
50
|
import {
|
|
48
51
|
safeWallet
|
|
49
52
|
} from "./chunk-BQQQL6UD.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-RZIO5TFF.js";
|
|
53
|
-
import {
|
|
54
|
-
roninWallet
|
|
55
|
-
} from "./chunk-NWIQNBJU.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
59
|
+
import {
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-UYGJO62F.js";
|
|
59
62
|
import {
|
|
60
63
|
ledgerWallet
|
|
61
64
|
} from "./chunk-BRBKM4PW.js";
|
|
62
|
-
import {
|
|
63
|
-
metaMaskWallet
|
|
64
|
-
} from "./chunk-2HYNUNAS.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
@@ -70,31 +70,31 @@ import {
|
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AFXHGWBH.js";
|
|
74
|
+
import {
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-7CUY5G6R.js";
|
|
77
|
+
import {
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
74
80
|
import {
|
|
75
81
|
oneKeyWallet
|
|
76
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
omniWallet
|
|
82
|
-
} from "./chunk-7CUY5G6R.js";
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-CNPKISHN.js";
|
|
83
86
|
import {
|
|
84
87
|
frameWallet
|
|
85
88
|
} from "./chunk-IFON7E6U.js";
|
|
86
89
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
foxWallet
|
|
91
|
-
} from "./chunk-7QONTUXT.js";
|
|
90
|
+
gateWallet
|
|
91
|
+
} from "./chunk-CJGUM55H.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
95
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
96
|
+
frontierWallet
|
|
97
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
98
98
|
import {
|
|
99
99
|
kresusWallet
|
|
100
100
|
} from "./chunk-MJXPRJZT.js";
|
|
@@ -102,52 +102,52 @@ import {
|
|
|
102
102
|
injectedWallet
|
|
103
103
|
} from "./chunk-XWUJE7MW.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KIDC67XJ.js";
|
|
113
|
+
import {
|
|
114
|
+
coreWallet
|
|
115
|
+
} from "./chunk-JCHN6A47.js";
|
|
113
116
|
import {
|
|
114
117
|
coinbaseWallet
|
|
115
118
|
} from "./chunk-H4IRCEZN.js";
|
|
116
|
-
import {
|
|
117
|
-
coreWallet
|
|
118
|
-
} from "./chunk-VR4TBQ6S.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-HWPKCIBE.js";
|
|
122
|
-
import {
|
|
123
|
-
enkryptWallet
|
|
124
|
-
} from "./chunk-OLOIXTYS.js";
|
|
125
122
|
import {
|
|
126
123
|
desigWallet
|
|
127
124
|
} from "./chunk-OPAZMNA7.js";
|
|
125
|
+
import {
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-OLOIXTYS.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
134
134
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
135
|
+
bitskiWallet
|
|
136
|
+
} from "./chunk-HS3C7OQV.js";
|
|
137
137
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
138
|
+
bitgetWallet
|
|
139
|
+
} from "./chunk-5W7VDOCL.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import "./chunk-23WIEY36.js";
|
|
144
143
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-S27IADFU.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-LNEC5RNX.js";
|
|
150
149
|
import "./chunk-DNSG5Q7V.js";
|
|
150
|
+
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
"use-debounce": "^10.0.5",
|
|
96
96
|
"uuid": "^9.0.1",
|
|
97
97
|
"@funkit/api-base": "1.9.16",
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/chains": "0.3.8",
|
|
98
|
+
"@funkit/chains": "0.3.9",
|
|
100
99
|
"@funkit/fun-relay": "1.0.1",
|
|
101
|
-
"@funkit/
|
|
102
|
-
"@funkit/
|
|
100
|
+
"@funkit/utils": "1.1.8",
|
|
101
|
+
"@funkit/core": "2.3.41",
|
|
102
|
+
"@funkit/wagmi-tools": "3.0.63"
|
|
103
103
|
},
|
|
104
104
|
"repository": {
|
|
105
105
|
"type": "git",
|