@funkit/connect 6.11.0 → 6.12.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 +18 -0
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +5 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -1
- package/dist/domains/asset.d.ts +4 -0
- package/dist/domains/paymentMethods.d.ts +0 -2
- package/dist/index.js +3381 -4244
- package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
- package/dist/utils/flags/impl.d.ts +1 -294
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
- package/dist/utils/funLogger.d.ts +1 -3
- 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 +59 -59
- 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 -7
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
- package/dist/consts/mesh.d.ts +0 -77
- package/dist/providers/FunkitMeshProvider.d.ts +0 -11
- package/dist/utils/mesh.d.ts +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1af942f: feat(connect): block withdrawals to addresses that lead to irrecoverable loss of funds
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 29b0edd: fix(connect): don't show new token badge in withdrawal modal
|
|
12
|
+
- f5710b6: remove mesh code at all
|
|
13
|
+
- 1bcb94e: feat(connect): update btc processing time - qr code flow
|
|
14
|
+
- f553f09: fix: fix for bitcoin feature flags (were not working properly before)
|
|
15
|
+
- Updated dependencies [f553f09]
|
|
16
|
+
- @funkit/utils@1.1.9
|
|
17
|
+
- @funkit/api-base@1.12.1
|
|
18
|
+
- @funkit/core@2.3.46
|
|
19
|
+
- @funkit/wagmi-tools@3.0.68
|
|
20
|
+
|
|
3
21
|
## 6.11.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -22,7 +22,11 @@ interface TokenAndChainDropdownProps {
|
|
|
22
22
|
maxChainDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
|
|
23
23
|
openChainDropdownFullWidth?: BaseDropdownProps['openDropdownFullWidth'];
|
|
24
24
|
chainTagComponent?: (value: string) => ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Override to hide the new token badge
|
|
27
|
+
*/
|
|
28
|
+
hideNewTokenBadge?: boolean;
|
|
25
29
|
}
|
|
26
30
|
/** Combines together chain and token dropdowns */
|
|
27
|
-
export declare const TokenAndChainDropdown: ({ isLoading, selectedToken, selectedChainId, assets, onTokenSelected, onChainSelected, tokenLabel, chainLabel, chainLabelAddon, alwaysOpenToTop, maxTokenDropdownHeight, maxChainDropdownHeight, openChainDropdownFullWidth, chainTagComponent, }: TokenAndChainDropdownProps) => React.JSX.Element;
|
|
31
|
+
export declare const TokenAndChainDropdown: ({ isLoading, selectedToken, selectedChainId, assets, onTokenSelected, onChainSelected, tokenLabel, chainLabel, chainLabelAddon, alwaysOpenToTop, maxTokenDropdownHeight, maxChainDropdownHeight, openChainDropdownFullWidth, chainTagComponent, hideNewTokenBadge, }: TokenAndChainDropdownProps) => React.JSX.Element;
|
|
28
32
|
export {};
|
|
@@ -13,6 +13,10 @@ interface TokenDropdownProps {
|
|
|
13
13
|
isLoading?: BaseDropdownProps['isLoading'];
|
|
14
14
|
alwaysOpenToTop?: BaseDropdownProps['alwaysOpenToTop'];
|
|
15
15
|
maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
|
|
16
|
+
/**
|
|
17
|
+
* Override to hide the new token badge
|
|
18
|
+
*/
|
|
19
|
+
hideNewTokenBadge?: boolean;
|
|
16
20
|
}
|
|
17
|
-
export declare const TokenDropdown: ({ assets, selectedChainId, selectedToken, onTokenSelected, isLoading, alwaysOpenToTop, maxDropdownHeight, }: TokenDropdownProps) => React.JSX.Element;
|
|
21
|
+
export declare const TokenDropdown: ({ assets, selectedChainId, selectedToken, onTokenSelected, isLoading, alwaysOpenToTop, maxDropdownHeight, hideNewTokenBadge, }: TokenDropdownProps) => React.JSX.Element;
|
|
18
22
|
export {};
|
|
@@ -2,8 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { FeeValue } from '~/hooks/useTokenTransfer';
|
|
3
3
|
interface TransferTokenDetailsProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
estProcessingTime?: number;
|
|
5
6
|
estPriceImpact: FeeValue | undefined;
|
|
6
7
|
maxSlippage: FeeValue | undefined;
|
|
7
8
|
}
|
|
8
|
-
export declare const TransferTokenDetails: ({ disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
|
|
9
|
+
export declare const TransferTokenDetails: ({ estProcessingTime, disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
|
|
9
10
|
export {};
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -25,4 +25,8 @@ export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, pay
|
|
|
25
25
|
reason: string;
|
|
26
26
|
};
|
|
27
27
|
export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined): number | null;
|
|
28
|
+
/**
|
|
29
|
+
* Attempt to safeguard user from irrecoverable losses
|
|
30
|
+
*/
|
|
31
|
+
export declare function isBlacklistedWithdrawAddress(address: string): boolean;
|
|
28
32
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BridgeCustomer, BridgeVirtualBankAccount } from '@funkit/api-base';
|
|
2
|
-
import type { MeshConnectionInfo } from '~/providers/FunkitMeshProvider';
|
|
3
2
|
/** Supported payment methods in FunkitConnect. **/
|
|
4
3
|
export declare enum PaymentMethod {
|
|
5
4
|
/** Meld - Credit / Debit Card **/
|
|
@@ -51,7 +50,6 @@ interface AccountPaymentMethodParams {
|
|
|
51
50
|
}
|
|
52
51
|
interface BrokeragePaymentMethodParams {
|
|
53
52
|
paymentMethod: PaymentMethod.BROKERAGE;
|
|
54
|
-
connection: MeshConnectionInfo;
|
|
55
53
|
}
|
|
56
54
|
interface TokenTransferPaymentMethodParams {
|
|
57
55
|
paymentMethod: PaymentMethod.TOKEN_TRANSFER;
|