@funkit/connect 6.15.4 → 6.15.5
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.15.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9bfd41f: fix(connect): memoize textConfig to fix recursive useEffect warning
|
|
8
|
+
- 94069cc: feat(connect, utils, api-base): add support for subaccount index on recipient addr
|
|
9
|
+
- c69564c: fix(connect): fix destination tx explorer link for oft checkouts
|
|
10
|
+
- Updated dependencies [94069cc]
|
|
11
|
+
- Updated dependencies [c69564c]
|
|
12
|
+
- @funkit/api-base@1.12.18
|
|
13
|
+
- @funkit/utils@1.1.19
|
|
14
|
+
- @funkit/core@2.3.63
|
|
15
|
+
- @funkit/wagmi-tools@3.0.86
|
|
16
|
+
|
|
3
17
|
## 6.15.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/consts/bluvo.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare enum BluvoExchangeType {
|
|
|
12
12
|
Gemini = "gemini",
|
|
13
13
|
Kraken = "kraken"
|
|
14
14
|
}
|
|
15
|
-
type BluvoExchangeInfo = {
|
|
15
|
+
export type BluvoExchangeInfo = {
|
|
16
16
|
icon: (size: number) => JSX.Element | null;
|
|
17
17
|
name: string;
|
|
18
18
|
};
|
|
@@ -38,4 +38,3 @@ export declare const SUPPORTED_EXCHANGES: readonly [{
|
|
|
38
38
|
export declare const BLUVO_EXCHANGES: Readonly<Record<BluvoExchangeType, BluvoExchangeInfo>>;
|
|
39
39
|
export declare function getExchangeIcon(brokerType: BluvoExchangeType, size: number): JSX.Element | null;
|
|
40
40
|
export declare function getExchangeName(brokerType: BluvoExchangeType): string;
|
|
41
|
-
export {};
|
package/dist/index.js
CHANGED
|
@@ -1284,6 +1284,7 @@ import {
|
|
|
1284
1284
|
import { getRelayAssetInfo } from "@funkit/fun-relay";
|
|
1285
1285
|
import {
|
|
1286
1286
|
formatCryptoAndStringify,
|
|
1287
|
+
isNumericString,
|
|
1287
1288
|
isTokenAddressEquivalent as isTokenAddressEquivalent3,
|
|
1288
1289
|
isTokenEquivalent as isTokenEquivalent2,
|
|
1289
1290
|
round as round2
|
|
@@ -1513,7 +1514,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1513
1514
|
localStorage.setItem(storageKey, version);
|
|
1514
1515
|
}
|
|
1515
1516
|
function getCurrentSdkVersion() {
|
|
1516
|
-
return "6.15.
|
|
1517
|
+
return "6.15.5";
|
|
1517
1518
|
}
|
|
1518
1519
|
function useFingerprint() {
|
|
1519
1520
|
const fingerprint = useCallback2(() => {
|
|
@@ -2546,15 +2547,15 @@ var DEFAULT_BLOCKED_COUNTRIES = [
|
|
|
2546
2547
|
];
|
|
2547
2548
|
var COMMON_SUPPORT_CHAINS_AND_ASSETS = {
|
|
2548
2549
|
// mainnet
|
|
2549
|
-
1: ["USDC", "DAI", "USDT", "ETH", "WETH", "POL", "MATIC", "CBBTC"],
|
|
2550
|
+
1: ["USDC", "DAI", "USDT", "ETH", "WETH", "POL", "MATIC", "CBBTC", "USDe"],
|
|
2550
2551
|
// base
|
|
2551
2552
|
8453: ["USDC", "USDT", "DAI", "ETH", "WETH", "CBBTC"],
|
|
2552
2553
|
// arbitrum
|
|
2553
|
-
42161: ["USDC", "USDT", "DAI", "ETH", "WETH", "ARB"],
|
|
2554
|
+
42161: ["USDC", "USDT", "DAI", "ETH", "WETH", "ARB", "USDe"],
|
|
2554
2555
|
// polygon
|
|
2555
2556
|
137: ["USDC", "USDC.e", "USDT", "POL", "MATIC", "DAI", "WETH"],
|
|
2556
2557
|
// optimism
|
|
2557
|
-
10: ["USDC", "USDT", "DAI", "ETH", "WETH"],
|
|
2558
|
+
10: ["USDC", "USDT", "DAI", "ETH", "WETH", "USDe"],
|
|
2558
2559
|
// bsc
|
|
2559
2560
|
56: ["USDC", "USDT", "BNB", "WBNB", "ETH", "DAI", "BUSD", "BTCB"]
|
|
2560
2561
|
};
|
|
@@ -2563,12 +2564,14 @@ var QR_CODE_EVM = {
|
|
|
2563
2564
|
// abstract
|
|
2564
2565
|
2741: ["USDC.e", "ETH", "WETH", "USDT"],
|
|
2565
2566
|
// hyperevm. TODO: Consider adding UETH, hbHYPE, stHYPE once their icons are in assets.ts. Also holding back as they are lower mkt cap tokens and would overcrowd our UI.
|
|
2566
|
-
999: ["USDC", "HYPE", "WETH", "USDT", "UBTC", "USDe"]
|
|
2567
|
+
999: ["USDC", "HYPE", "WETH", "USDT", "UBTC", "USDe"],
|
|
2568
|
+
// ethereal
|
|
2569
|
+
5064014: ["USDe"]
|
|
2567
2570
|
};
|
|
2568
2571
|
var QR_CODE_WITH_SOLANA = {
|
|
2569
2572
|
...QR_CODE_EVM,
|
|
2570
2573
|
// solana - only enable once customers are on v5.0.11, anything prior will break
|
|
2571
|
-
1151111081099710: ["SOL", "USDC", "USDT", "TRUMP"]
|
|
2574
|
+
1151111081099710: ["SOL", "USDC", "USDT", "TRUMP", "USDe"]
|
|
2572
2575
|
};
|
|
2573
2576
|
var WITHDRAWAL_CHAINS_AND_ASSETS = {
|
|
2574
2577
|
...COMMON_SUPPORT_CHAINS_AND_ASSETS,
|
|
@@ -2689,7 +2692,8 @@ var flagConfig = {
|
|
|
2689
2692
|
LIGHTERXYZ_API_KEY2,
|
|
2690
2693
|
PERPL_API_KEY2,
|
|
2691
2694
|
HYPEREDGE_API_KEY,
|
|
2692
|
-
FELIX_API_KEY
|
|
2695
|
+
FELIX_API_KEY,
|
|
2696
|
+
LIGHTERXYZ_API_KEY2
|
|
2693
2697
|
]
|
|
2694
2698
|
}
|
|
2695
2699
|
],
|
|
@@ -2726,7 +2730,26 @@ var flagConfig = {
|
|
|
2726
2730
|
},
|
|
2727
2731
|
[FlagKey.TokenTransferSourceChainsAndAssets]: {
|
|
2728
2732
|
type: "string",
|
|
2729
|
-
default_value: JSON.stringify(QR_CODE_WITH_SOLANA)
|
|
2733
|
+
default_value: JSON.stringify(QR_CODE_WITH_SOLANA),
|
|
2734
|
+
overrides: [
|
|
2735
|
+
{
|
|
2736
|
+
if_any: [
|
|
2737
|
+
{
|
|
2738
|
+
key: "apiKey",
|
|
2739
|
+
type: "isAnyOf",
|
|
2740
|
+
values: [ETHEREAL_API_KEY2]
|
|
2741
|
+
}
|
|
2742
|
+
],
|
|
2743
|
+
// For Ethereal, sort USDe to the front of the list on Arbitrum so it becomes the default
|
|
2744
|
+
value: JSON.stringify({
|
|
2745
|
+
...QR_CODE_WITH_SOLANA,
|
|
2746
|
+
42161: [
|
|
2747
|
+
"USDe",
|
|
2748
|
+
...QR_CODE_WITH_SOLANA[42161].filter((token) => token !== "USDe")
|
|
2749
|
+
]
|
|
2750
|
+
})
|
|
2751
|
+
}
|
|
2752
|
+
]
|
|
2730
2753
|
},
|
|
2731
2754
|
[FlagKey.WithdrawalChainsAndAssets]: {
|
|
2732
2755
|
type: "string",
|
|
@@ -2757,32 +2780,15 @@ var flagConfig = {
|
|
|
2757
2780
|
},
|
|
2758
2781
|
[FlagKey.CheckoutTimeEstimateOverrides]: {
|
|
2759
2782
|
type: "string",
|
|
2760
|
-
default_value:
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
POLYMARKET_API_KEY2,
|
|
2770
|
-
OSTIUM_API_KEY2,
|
|
2771
|
-
BANKR_API_KEY2,
|
|
2772
|
-
KATANA_API_KEY2
|
|
2773
|
-
]
|
|
2774
|
-
}
|
|
2775
|
-
],
|
|
2776
|
-
value: JSON.stringify({
|
|
2777
|
-
["balance" /* ACCOUNT_BALANCE */]: 1 * 60,
|
|
2778
|
-
// 1 minute
|
|
2779
|
-
["brokerage" /* BROKERAGE */]: 2 * 60,
|
|
2780
|
-
// 2 minutes
|
|
2781
|
-
["card" /* CARD */]: 5 * 60
|
|
2782
|
-
// 5 minutes
|
|
2783
|
-
})
|
|
2784
|
-
}
|
|
2785
|
-
]
|
|
2783
|
+
default_value: JSON.stringify({
|
|
2784
|
+
["balance" /* ACCOUNT_BALANCE */]: 1 * 60,
|
|
2785
|
+
// 1 minute
|
|
2786
|
+
["brokerage" /* BROKERAGE */]: 2 * 60,
|
|
2787
|
+
// 2 minutes
|
|
2788
|
+
["card" /* CARD */]: 5 * 60,
|
|
2789
|
+
// 5 minutes
|
|
2790
|
+
["token_transfer" /* TOKEN_TRANSFER */]: 1 * 60
|
|
2791
|
+
})
|
|
2786
2792
|
},
|
|
2787
2793
|
[FlagKey.TokenTransferDefaultChainId]: {
|
|
2788
2794
|
type: "string",
|
|
@@ -2793,7 +2799,7 @@ var flagConfig = {
|
|
|
2793
2799
|
{
|
|
2794
2800
|
key: "apiKey",
|
|
2795
2801
|
type: "isAnyOf",
|
|
2796
|
-
values: [OSTIUM_API_KEY2]
|
|
2802
|
+
values: [OSTIUM_API_KEY2, ETHEREAL_API_KEY2]
|
|
2797
2803
|
}
|
|
2798
2804
|
],
|
|
2799
2805
|
value: arbitrum2.id.toString()
|
|
@@ -2998,7 +3004,7 @@ var flagConfig = {
|
|
|
2998
3004
|
{
|
|
2999
3005
|
if_all: [
|
|
3000
3006
|
{
|
|
3001
|
-
pct:
|
|
3007
|
+
pct: 50,
|
|
3002
3008
|
type: "pctRollout",
|
|
3003
3009
|
key: "userId"
|
|
3004
3010
|
},
|
|
@@ -4735,7 +4741,7 @@ async function validateCheckoutConfig(config) {
|
|
|
4735
4741
|
if (config.customRecipient && !isAddressCompatibleWithChain(
|
|
4736
4742
|
config.customRecipient,
|
|
4737
4743
|
Number(config.targetChain)
|
|
4738
|
-
)) {
|
|
4744
|
+
) && !isNumericString(config.customRecipient)) {
|
|
4739
4745
|
return {
|
|
4740
4746
|
isValid: false,
|
|
4741
4747
|
message: "Invalid customRecipient configuration: Has to be a valid address."
|
|
@@ -6190,10 +6196,12 @@ function TransactionStatus({
|
|
|
6190
6196
|
textConfigSteps
|
|
6191
6197
|
}) {
|
|
6192
6198
|
const { t } = useFunkitTranslation();
|
|
6193
|
-
const
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
const finalTextConfigSteps =
|
|
6199
|
+
const finalTextConfigStatus = useMemo10(() => {
|
|
6200
|
+
return textConfigStatus || getDefaultTextConfigStatus(t);
|
|
6201
|
+
}, [t, textConfigStatus]);
|
|
6202
|
+
const finalTextConfigSteps = useMemo10(() => {
|
|
6203
|
+
return textConfigSteps || getDefaultTextConfigSteps(t);
|
|
6204
|
+
}, [t, textConfigSteps]);
|
|
6197
6205
|
const [initialStatus] = useState8(status);
|
|
6198
6206
|
const [initialStep] = useState8(step);
|
|
6199
6207
|
const [scope, animate] = useAnimate();
|
|
@@ -17959,6 +17967,7 @@ import {
|
|
|
17959
17967
|
import React114, { useCallback as useCallback22, useEffect as useEffect32, useMemo as useMemo24, useState as useState33 } from "react";
|
|
17960
17968
|
|
|
17961
17969
|
// src/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.tsx
|
|
17970
|
+
import { hyperEvmChain as hyperEvmChain2 } from "@funkit/chains";
|
|
17962
17971
|
import {
|
|
17963
17972
|
formatAddress as formatAddress4,
|
|
17964
17973
|
formatTimestamp as formatTimestamp2,
|
|
@@ -18540,7 +18549,7 @@ function DirectExecutionOrderDetailSection({
|
|
|
18540
18549
|
} = useMultiStepDirectExecutionStatus(directExecution, disabled);
|
|
18541
18550
|
const { txHash: fromTxHash, fromChainId } = directExecution;
|
|
18542
18551
|
const createdTime = getDirectExecutionCreatedTimeMs(directExecution);
|
|
18543
|
-
const
|
|
18552
|
+
const toChainId = getLzOftDestinationChain(latestDirectExecution) ?? latestDirectExecution.toChainId;
|
|
18544
18553
|
const listenerInfoTxHashes = latestDirectExecution.listenerInfo?.txHashes || [];
|
|
18545
18554
|
const toTxHash = (
|
|
18546
18555
|
// BE appends additional hashes outside of relay flow via listenerInfo.txHashes
|
|
@@ -18559,6 +18568,14 @@ function DirectExecutionOrderDetailSection({
|
|
|
18559
18568
|
status: isFailed ? t("directExecution.statusFailed") : isRefunded ? t("directExecution.statusRefunded") : t("directExecution.statusFilled")
|
|
18560
18569
|
})), /* @__PURE__ */ React113.createElement(Text, { color: "tertiaryText", size: "12" }, getTimestamp2(updatedTime))));
|
|
18561
18570
|
}
|
|
18571
|
+
var lzOftChainEnumToChainId = {
|
|
18572
|
+
hyperliquid: hyperEvmChain2.id
|
|
18573
|
+
};
|
|
18574
|
+
function getLzOftDestinationChain(de) {
|
|
18575
|
+
const lzData = de.listenerInfo?.layerzeroExecutionStatusResponse?.data?.[0];
|
|
18576
|
+
const lzChainEnum = lzData?.pathway?.receiver.chain;
|
|
18577
|
+
return lzChainEnum && lzOftChainEnumToChainId[lzChainEnum]?.toString();
|
|
18578
|
+
}
|
|
18562
18579
|
|
|
18563
18580
|
// src/hooks/queries/useRecentDirectExecutions.ts
|
|
18564
18581
|
import {
|
|
@@ -19080,11 +19097,11 @@ function BrokerageTwoFA({
|
|
|
19080
19097
|
});
|
|
19081
19098
|
return quote;
|
|
19082
19099
|
};
|
|
19083
|
-
const handleFatalErrorState = (
|
|
19084
|
-
logger.error(`${logPrefix2}handleFatalErrorState`,
|
|
19085
|
-
|
|
19100
|
+
const handleFatalErrorState = (error) => {
|
|
19101
|
+
logger.error(`${logPrefix2}handleFatalErrorState`, error, {
|
|
19102
|
+
bluvoContext: bluvoClient?.context
|
|
19086
19103
|
});
|
|
19087
|
-
setExecutionError(
|
|
19104
|
+
setExecutionError(t("brokerage.somethingWentWrong"));
|
|
19088
19105
|
setScreen(1 /* TWO_FACTOR */);
|
|
19089
19106
|
setIsQuoteExpired(true);
|
|
19090
19107
|
};
|
|
@@ -19096,19 +19113,13 @@ function BrokerageTwoFA({
|
|
|
19096
19113
|
const handleEnterTwoFactor = async (finalOtpInput, _quoteId, attempt = 1) => {
|
|
19097
19114
|
const walletId = bluvoClient.context?.walletId;
|
|
19098
19115
|
if (!walletId) {
|
|
19099
|
-
|
|
19100
|
-
walletId
|
|
19101
|
-
});
|
|
19102
|
-
handleFatalErrorState();
|
|
19116
|
+
handleFatalErrorState(new Error("No wallet ID found"));
|
|
19103
19117
|
return;
|
|
19104
19118
|
}
|
|
19105
19119
|
const idempotencyKey = uuidv4();
|
|
19106
19120
|
const quoteId = _quoteId || bluvoClient.context?.quote?.id;
|
|
19107
19121
|
if (!quoteId) {
|
|
19108
|
-
|
|
19109
|
-
quoteId
|
|
19110
|
-
});
|
|
19111
|
-
handleFatalErrorState();
|
|
19122
|
+
handleFatalErrorState(new Error("No quote ID found"));
|
|
19112
19123
|
return;
|
|
19113
19124
|
}
|
|
19114
19125
|
try {
|
|
@@ -19165,7 +19176,7 @@ function BrokerageTwoFA({
|
|
|
19165
19176
|
code: error.errorCode
|
|
19166
19177
|
}
|
|
19167
19178
|
);
|
|
19168
|
-
handleFatalErrorState(
|
|
19179
|
+
handleFatalErrorState(error);
|
|
19169
19180
|
return;
|
|
19170
19181
|
}
|
|
19171
19182
|
const newResponse = await bluvoExecuteWithdrawal2({
|
|
@@ -19181,7 +19192,7 @@ function BrokerageTwoFA({
|
|
|
19181
19192
|
attempt + 1
|
|
19182
19193
|
);
|
|
19183
19194
|
}
|
|
19184
|
-
handleFatalErrorState(
|
|
19195
|
+
handleFatalErrorState(error);
|
|
19185
19196
|
return;
|
|
19186
19197
|
}
|
|
19187
19198
|
case TypeEnum2.WITHDRAWAL_KYC_REQUIRED: {
|
|
@@ -19189,11 +19200,13 @@ function BrokerageTwoFA({
|
|
|
19189
19200
|
return;
|
|
19190
19201
|
}
|
|
19191
19202
|
default:
|
|
19192
|
-
handleFatalErrorState(error
|
|
19203
|
+
handleFatalErrorState(error);
|
|
19193
19204
|
return;
|
|
19194
19205
|
}
|
|
19195
19206
|
}
|
|
19196
|
-
handleFatalErrorState(
|
|
19207
|
+
handleFatalErrorState(
|
|
19208
|
+
error instanceof Error ? error : new Error("Unable to execute withdrawal due to unknown error")
|
|
19209
|
+
);
|
|
19197
19210
|
}
|
|
19198
19211
|
};
|
|
19199
19212
|
const handleCompletion = useEffectEvent(async (finalOtpInput) => {
|
|
@@ -24697,7 +24710,7 @@ var useMeldQuotes = (sourceAmount, fiatCurrency, meldEnabled = true) => {
|
|
|
24697
24710
|
// src/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.ts
|
|
24698
24711
|
import {
|
|
24699
24712
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO13,
|
|
24700
|
-
hyperEvmChain as
|
|
24713
|
+
hyperEvmChain as hyperEvmChain3,
|
|
24701
24714
|
katanaChain
|
|
24702
24715
|
} from "@funkit/chains";
|
|
24703
24716
|
import { getTokenAddressBySymbolAndChainId as getTokenAddressBySymbolAndChainId2 } from "@funkit/core";
|
|
@@ -24716,7 +24729,7 @@ var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
|
|
|
24716
24729
|
zksync2.id.toString(),
|
|
24717
24730
|
mantle.id.toString(),
|
|
24718
24731
|
katanaChain.id.toString(),
|
|
24719
|
-
|
|
24732
|
+
hyperEvmChain3.id.toString()
|
|
24720
24733
|
]
|
|
24721
24734
|
);
|
|
24722
24735
|
const wethAddrOnTargetChain = (await getTokenAddressBySymbolAndChainId2("weth", moonpayChainId)).toLowerCase();
|
|
@@ -26314,7 +26327,7 @@ function MeldRedirect({
|
|
|
26314
26327
|
import {
|
|
26315
26328
|
FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST as FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST2,
|
|
26316
26329
|
etherealChain,
|
|
26317
|
-
hyperEvmChain as
|
|
26330
|
+
hyperEvmChain as hyperEvmChain4
|
|
26318
26331
|
} from "@funkit/chains";
|
|
26319
26332
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify11, isTokenEquivalent as isTokenEquivalent8 } from "@funkit/utils";
|
|
26320
26333
|
import React173, { useEffect as useEffect45, useMemo as useMemo39, useState as useState53 } from "react";
|
|
@@ -27089,7 +27102,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates) {
|
|
|
27089
27102
|
}
|
|
27090
27103
|
if (isHyenaCustomer(apiKey)) {
|
|
27091
27104
|
if (isTokenEquivalent8({
|
|
27092
|
-
firstTokenChainId:
|
|
27105
|
+
firstTokenChainId: hyperEvmChain4.id.toString(),
|
|
27093
27106
|
firstTokenAddress: "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
|
|
27094
27107
|
secondTokenChainId: asset.pickedChainId,
|
|
27095
27108
|
secondTokenAddress: asset.tokenAddress
|
|
@@ -20,10 +20,7 @@ declare enum BrokerageTwoFAStatus {
|
|
|
20
20
|
addressWhitelistRequired = "addressWhitelistRequired",
|
|
21
21
|
secondMfaRequired = "secondMfaRequired"
|
|
22
22
|
}
|
|
23
|
-
type
|
|
24
|
-
icon: () => JSX.Element | null;
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
23
|
+
import type { BluvoExchangeInfo } from '~/consts/bluvo';
|
|
27
24
|
import type { PaymentMethodBrokerageInfo } from '~/domains/paymentMethods';
|
|
28
25
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
29
26
|
export type BrokerageTwoFAState = CheckoutModalCommonState & {
|
|
@@ -33,7 +30,7 @@ export type BrokerageTwoFANext = {
|
|
|
33
30
|
depositAddress: Address;
|
|
34
31
|
} | {
|
|
35
32
|
depositAddress: null;
|
|
36
|
-
brokerType:
|
|
33
|
+
brokerType: BluvoExchangeInfo;
|
|
37
34
|
};
|
|
38
35
|
export interface BrokerageTwoFAExecuteTransferResponse {
|
|
39
36
|
status: BrokerageTwoFAStatus;
|
|
@@ -49,7 +49,7 @@ export declare const flagConfig: {
|
|
|
49
49
|
readonly if_any: [{
|
|
50
50
|
readonly key: "apiKey";
|
|
51
51
|
readonly type: "isAnyOf";
|
|
52
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3"];
|
|
52
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
|
|
53
53
|
}];
|
|
54
54
|
readonly value: true;
|
|
55
55
|
}];
|
|
@@ -76,6 +76,14 @@ export declare const flagConfig: {
|
|
|
76
76
|
readonly token_transfer_source_chains_and_assets: {
|
|
77
77
|
readonly type: "string";
|
|
78
78
|
readonly default_value: string;
|
|
79
|
+
readonly overrides: [{
|
|
80
|
+
readonly if_any: [{
|
|
81
|
+
readonly key: "apiKey";
|
|
82
|
+
readonly type: "isAnyOf";
|
|
83
|
+
readonly values: ["M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
84
|
+
}];
|
|
85
|
+
readonly value: string;
|
|
86
|
+
}];
|
|
79
87
|
};
|
|
80
88
|
readonly withdrawal_chains_and_assets: {
|
|
81
89
|
readonly type: "string";
|
|
@@ -99,15 +107,7 @@ export declare const flagConfig: {
|
|
|
99
107
|
};
|
|
100
108
|
readonly checkout_time_estimate_overrides: {
|
|
101
109
|
readonly type: "string";
|
|
102
|
-
readonly default_value:
|
|
103
|
-
readonly overrides: [{
|
|
104
|
-
readonly if_any: [{
|
|
105
|
-
readonly key: "apiKey";
|
|
106
|
-
readonly type: "isAnyOf";
|
|
107
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
108
|
-
}];
|
|
109
|
-
readonly value: string;
|
|
110
|
-
}];
|
|
110
|
+
readonly default_value: string;
|
|
111
111
|
};
|
|
112
112
|
readonly token_transfer_default_chain_id: {
|
|
113
113
|
readonly type: "string";
|
|
@@ -116,7 +116,7 @@ export declare const flagConfig: {
|
|
|
116
116
|
readonly if_any: [{
|
|
117
117
|
readonly key: "apiKey";
|
|
118
118
|
readonly type: "isAnyOf";
|
|
119
|
-
readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
|
|
119
|
+
readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
120
120
|
}];
|
|
121
121
|
readonly value: string;
|
|
122
122
|
}, {
|
|
@@ -215,7 +215,7 @@ export declare const flagConfig: {
|
|
|
215
215
|
readonly value: true;
|
|
216
216
|
}, Override<boolean>, {
|
|
217
217
|
readonly if_all: [{
|
|
218
|
-
readonly pct:
|
|
218
|
+
readonly pct: 50;
|
|
219
219
|
readonly type: "pctRollout";
|
|
220
220
|
readonly key: "userId";
|
|
221
221
|
}, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-RNBEDQHF.js";
|
|
5
|
+
import {
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-SULRQO27.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
safeheronWallet
|
|
13
|
+
} from "./chunk-RZIO5TFF.js";
|
|
14
14
|
import {
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
@@ -38,30 +38,30 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-2KUBG3S6.js";
|
|
44
41
|
import {
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-BYXPFMI7.js";
|
|
44
|
+
import {
|
|
45
|
+
rainbowWallet
|
|
46
|
+
} from "./chunk-2KUBG3S6.js";
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
49
|
} from "./chunk-NWIQNBJU.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
53
|
-
import {
|
|
54
|
-
safeheronWallet
|
|
55
|
-
} from "./chunk-RZIO5TFF.js";
|
|
56
53
|
import {
|
|
57
54
|
safepalWallet
|
|
58
55
|
} from "./chunk-NT2HYJKW.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-JWFF4AAL.js";
|
|
62
59
|
import {
|
|
63
60
|
ledgerWallet
|
|
64
61
|
} 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";
|
|
@@ -83,12 +83,12 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
85
|
} from "./chunk-7QONTUXT.js";
|
|
86
|
-
import {
|
|
87
|
-
frameWallet
|
|
88
|
-
} from "./chunk-IFON7E6U.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
88
|
} from "./chunk-TCAGNB4B.js";
|
|
89
|
+
import {
|
|
90
|
+
frameWallet
|
|
91
|
+
} from "./chunk-IFON7E6U.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
94
|
} from "./chunk-FKJJQNKX.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.5",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
"ua-parser-js": "^1.0.37",
|
|
102
102
|
"use-debounce": "^10.0.5",
|
|
103
103
|
"uuid": "^9.0.1",
|
|
104
|
-
"@funkit/api-base": "1.12.
|
|
104
|
+
"@funkit/api-base": "1.12.18",
|
|
105
105
|
"@funkit/chains": "0.4.6",
|
|
106
|
-
"@funkit/core": "2.3.
|
|
106
|
+
"@funkit/core": "2.3.63",
|
|
107
107
|
"@funkit/fun-relay": "2.1.13",
|
|
108
|
-
"@funkit/utils": "1.1.
|
|
109
|
-
"@funkit/wagmi-tools": "3.0.
|
|
108
|
+
"@funkit/utils": "1.1.19",
|
|
109
|
+
"@funkit/wagmi-tools": "3.0.86"
|
|
110
110
|
},
|
|
111
111
|
"repository": {
|
|
112
112
|
"type": "git",
|