@funkit/connect 5.5.13-next.3 → 5.5.14

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/components/CopyAddress/CopyInputDisplayedAddress.css.d.ts +11 -0
  3. package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +0 -1
  4. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +3 -1
  5. package/dist/components/Icons/CheckIcon.d.ts +2 -1
  6. package/dist/consts/customers.d.ts +0 -1
  7. package/dist/domains/asset.d.ts +2 -3
  8. package/dist/domains/clientMetadata.d.ts +7 -1
  9. package/dist/domains/fees.d.ts +0 -2
  10. package/dist/domains/quote.d.ts +3 -2
  11. package/dist/domains/relay.d.ts +5 -1
  12. package/dist/domains/wallet.d.ts +1 -1
  13. package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -3
  14. package/dist/hooks/useCheckoutDirectExecution.d.ts +17 -15
  15. package/dist/hooks/useCheckoutTimeEstimate.d.ts +3 -0
  16. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  17. package/dist/hooks/useRelayBypass.d.ts +1 -0
  18. package/dist/index.css +230 -88
  19. package/dist/index.js +8497 -8274
  20. package/dist/modals/CheckoutModal/ConfirmationStep/DirectExecutionBrokerageAndCardAlert.d.ts +2 -0
  21. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
  22. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
  23. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +1 -2
  24. package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +2 -0
  25. package/dist/{components/Withdraw/WithdrawContent.d.ts → modals/WithdrwalModal/WithdrawalContent.d.ts} +1 -9
  26. package/dist/{components/Withdraw/WithdrawSuccess.d.ts → modals/WithdrwalModal/WithdrawalSuccess.d.ts} +3 -1
  27. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  28. package/dist/providers/FunkitCheckoutContext.d.ts +4 -1
  29. package/dist/utils/flags/config.d.ts +19 -12
  30. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  35. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/index.js +51 -51
  40. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  49. package/package.json +7 -7
  50. package/dist/hooks/useWithdrawal.d.ts +0 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,81 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 5.5.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 0f27d4f: fix(connect): select chain dropdown width and position
8
+ - 7232b85: chore(connect): deprecate vertex related code
9
+ - 3ecab67: fix fee display
10
+ - e4b274b: add icons to withdrawal
11
+ - a650b5d: feat: add hyperevm chain
12
+ - 3c3ea82: support exact input for withdrawal
13
+ - 072a1c6: fix: fix fallback values for checkout time estimates
14
+ - 08b7da3: chore: deprecate zoraTestnet
15
+ - c3ea232: feat(connect): update Deposit with cash disclaimer
16
+ - Updated dependencies [7232b85]
17
+ - Updated dependencies [a650b5d]
18
+ - Updated dependencies [afb6a57]
19
+ - Updated dependencies [48d11b9]
20
+ - Updated dependencies [08b7da3]
21
+ - @funkit/api-base@1.9.6
22
+ - @funkit/chains@0.3.3
23
+ - @funkit/core@2.3.28
24
+ - @funkit/utils@1.1.5
25
+ - @funkit/wagmi-tools@3.0.50
26
+
27
+ ## 5.5.13
28
+
29
+ ### Patch Changes
30
+
31
+ - e88a3d2: feat(connect): adjust auto-picking of provider quotes for Meld
32
+ - b0f4092: feat: direct execution notification center
33
+ - 76158e3: feat(connect): show empty UI when withdrawal amount is empty
34
+ - 0bf9fe3: feat(connect): update colors of tooltip texts for Withdrawal
35
+ - 17e47e1: move withdrawSourceBalance to top level config
36
+ - df1b830: chore: deprecate dydx fee handling
37
+ - bd7721e: feat(connect): withdrawal handle wallet signature rejection
38
+ - 3d7fc1d: fix bridge fee in ui
39
+ - 85809cb: feat(connect): add risk assessment check for withdrawal address
40
+ - 5217122: feat: omit eoa calls in withdrawal flow
41
+ - d1133df: support withdrawal
42
+ - 7752acf: remove unused hacky code
43
+ - cdf268c: refactor: rename fill gas to fill cost
44
+ - 9ce2ee3: chore(connect): add meld util tests
45
+ - a98ccb6: fix: add Katana to CheckoutTimeEstimateOverrides flag config
46
+ - 3c8d98d: feat(connect): if the user is new, default to the Payment Methods screen, hide the SourcePaymentMethodItem, and enable the back button
47
+ - b095215: feat(connect): unify rendering of fees for withdrawal with relay
48
+ - 66b28fe: fix: update asset price refresh interval in withdrawal
49
+ - 6db3c9c: add loading state to withdrawal in progress
50
+ - e389c2b: wider price impact tooltip
51
+ - b88a759: fix(connect): fix transaction breakdown
52
+ - 19260d7: add meld supported currency in check
53
+ - 7c584f2: do not use alias in external typing file
54
+ - e3bba71: feat(connect): transfer crypto - minimum amount info"
55
+ - Updated dependencies [f49824b]
56
+ - Updated dependencies [d1133df]
57
+ - Updated dependencies [57f6bd8]
58
+ - Updated dependencies [b223027]
59
+ - Updated dependencies [d4d61dc]
60
+ - Updated dependencies [19260d7]
61
+ - @funkit/fun-relay@0.1.9
62
+ - @funkit/api-base@1.9.5
63
+ - @funkit/chains@0.3.2
64
+ - @funkit/core@2.3.27
65
+ - @funkit/utils@1.1.4
66
+ - @funkit/wagmi-tools@3.0.49
67
+
68
+ ## 5.5.13-next.4
69
+
70
+ ### Patch Changes
71
+
72
+ - a98ccb6: fix: add Katana to CheckoutTimeEstimateOverrides flag config
73
+ - b88a759: fix(connect): fix transaction breakdown
74
+ - Updated dependencies [d4d61dc]
75
+ - @funkit/fun-relay@0.1.9-next.2
76
+ - @funkit/core@2.3.27-next.3
77
+ - @funkit/wagmi-tools@3.0.49-next.3
78
+
3
79
  ## 5.5.13-next.3
4
80
 
5
81
  ### Patch Changes
@@ -1,2 +1,13 @@
1
1
  export declare const copyButtonWrapper: string;
2
2
  export declare const copyButton: string;
3
+ export declare const copyButtonIcon: string;
4
+ export declare const copyButtonIconBase: string;
5
+ export declare const copyButtonIconActive: string;
6
+ export declare const copyInputTextBox: string;
7
+ export declare const copyInputTextBoxActive: string;
8
+ export declare const copyInputText: string;
9
+ export declare const copyInputTextWrapper: string;
10
+ export declare const copyInputTextDefault: string;
11
+ export declare const copyInputTextActive: string;
12
+ export declare const textOut: string;
13
+ export declare const textIn: string;
@@ -3,6 +3,5 @@ interface CopyInputDisplayedAddressProps {
3
3
  address: string;
4
4
  truncateAddress?: boolean;
5
5
  }
6
- /** Element displaying the provided address along with a copy button below */
7
6
  export declare function CopyInputDisplayedAddress({ address, truncateAddress, }: CopyInputDisplayedAddressProps): React.JSX.Element;
8
7
  export {};
@@ -5,7 +5,9 @@ interface FunCheckoutHistoryContentProps {
5
5
  currentPage: HistoryContentPages;
6
6
  onHelp: () => void;
7
7
  onBackFromHelpPage: () => void;
8
- onClose: () => void;
8
+ onClose: (opt?: {
9
+ isNewDeposit?: boolean;
10
+ }) => void;
9
11
  onAnimationComplete?: (callback: () => void) => void;
10
12
  /** Element ID to be used to mount the CTA action bar */
11
13
  bottomBarId: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- export declare const CheckIcon: ({ size }: {
2
+ export declare const CheckIcon: ({ size, className, }: {
3
3
  size?: number;
4
+ className?: string;
4
5
  }) => React.JSX.Element;
@@ -1,6 +1,5 @@
1
1
  export declare function isDydxCustomer(apiKey: string): apiKey is "NJq0CGrsE19xBbP1vHyBOp8xJvzYo9kayJHqDFP5";
2
2
  export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
3
- export declare function isVertexCustomer(apiKey: string): apiKey is "OQXhzzkLHE2vHAK8nZBS76el5utuw3527RmnYn26";
4
3
  export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
5
4
  export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
6
5
  export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
@@ -8,7 +8,6 @@ export declare function isNativeTokenAddress(address: Address): boolean;
8
8
  export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean;
9
9
  export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
10
10
  interface AssetUsableToPayParms {
11
- apiKey: string;
12
11
  config: FunkitCheckoutConfig;
13
12
  payerAddress: string;
14
13
  paymentMethod: PaymentMethod;
@@ -20,9 +19,9 @@ interface AssetUsableToPayParms {
20
19
  loginType: LoginType;
21
20
  isAllowedForCheckout: boolean;
22
21
  }
23
- export declare const isAssetUsableToPayForCheckout: ({ apiKey, config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, loginType, isAllowedForCheckout, }: AssetUsableToPayParms) => {
22
+ export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, loginType, isAllowedForCheckout, }: AssetUsableToPayParms) => {
24
23
  isUsable: boolean;
25
24
  reason: string;
26
25
  };
27
- export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined, isDirectExecution: boolean): number | null;
26
+ export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined): number | null;
28
27
  export {};
@@ -31,11 +31,17 @@ export interface HistoricalCheckoutItem {
31
31
  };
32
32
  selectedSourceAssetInfo: FunkitActiveCheckoutItem['selectedSourceAssetInfo'];
33
33
  selectedPaymentMethodInfo: FunkitActiveCheckoutItem['selectedPaymentMethodInfo'];
34
+ isWithdrawal?: boolean;
34
35
  }
35
36
  /**
36
37
  * Sanitizes checkoutItem to generate a clientMetadata object to be saved in backend.
37
38
  * Ensures that no react components get sent to backend and the object isn't too big as well.
38
39
  */
39
- export declare function generateClientMetadataForBackend(checkoutItem: FunkitActiveCheckoutItem, quote: FunkitCheckoutQuoteResult, actionsParams?: FunkitCheckoutActionParams[]): ApiCheckoutClientMetadata;
40
+ export declare function generateClientMetadataForBackend({ checkoutItem, latestQuote, actionsParams, isWithdrawal, }: {
41
+ checkoutItem: FunkitActiveCheckoutItem;
42
+ latestQuote: FunkitCheckoutQuoteResult;
43
+ actionsParams?: FunkitCheckoutActionParams[];
44
+ isWithdrawal?: boolean;
45
+ }): ApiCheckoutClientMetadata;
40
46
  export declare function generateClientMetadataForTokenTransfer(): HistoricalCheckoutItem;
41
47
  export declare function toApiSelectedPaymentMethodInfo(paymentMethodInfo: PaymentMethodInfo): ApiSelectedPaymentMethodInfo;
@@ -1,7 +1,6 @@
1
1
  import { type CheckoutQuoteResponse } from '@funkit/utils';
2
2
  import type { Config } from 'wagmi';
3
3
  import { LoginType } from '~/providers/GeneralWalletProvider';
4
- import type { RelayQuote } from '@funkit/fun-relay';
5
4
  import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
6
5
  import { PaymentMethod, type PaymentMethodInfo } from './paymentMethods';
7
6
  export interface BrokerageDetails {
@@ -28,7 +27,6 @@ interface WalletCheckoutFees extends BaseCheckoutFees {
28
27
  eoaWalletFeeToken: number;
29
28
  nativeCurrencySymbol: string;
30
29
  eoaWalletFeeUsd: number;
31
- relayQuote: RelayQuote['metadata']['relayQuote'] | undefined;
32
30
  }
33
31
  interface CardCheckoutFees extends BaseCheckoutFees {
34
32
  paymentMethod: PaymentMethod.CARD;
@@ -10,7 +10,7 @@ export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteRe
10
10
  finalSpreadUsd: string;
11
11
  finalFeesBreakdown: CheckoutFees;
12
12
  }
13
- export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, sponsorInitialTransferGasLimit: number, wagmiConfig: Config, directExecutionInfo: FunkitDirectExecutionInfo, senderAddress?: Address): Promise<CheckoutQuoteResponse>;
13
+ export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, sponsorInitialTransferGasLimit: number, wagmiConfig: Config, directExecutionInfo: FunkitDirectExecutionInfo, senderAddress?: Address, isWithdrawal?: boolean): Promise<CheckoutQuoteResponse>;
14
14
  export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType, enableFrogProxyServer?: boolean): Promise<{
15
15
  finalEstimation: FunkitCheckoutQuoteResult;
16
16
  brokerage?: BrokerageDetails;
@@ -37,8 +37,9 @@ export interface CheckoutQuoteParams {
37
37
  * this happens when withdrawing from a different wallet
38
38
  **/
39
39
  senderAddress?: Address;
40
+ isWithdrawal?: boolean;
40
41
  }
41
- export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, sponsorInitialTransferGasLimit, newPaymentMethodInfo, wagmiConfig, loginType, enableFrogProxyServer, directExecutionInfo, senderAddress, }: CheckoutQuoteParams): Promise<{
42
+ export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, sponsorInitialTransferGasLimit, newPaymentMethodInfo, wagmiConfig, loginType, enableFrogProxyServer, directExecutionInfo, senderAddress, isWithdrawal, }: CheckoutQuoteParams): Promise<{
42
43
  baseQuote: CheckoutQuoteResponse;
43
44
  checkedAssetAmount: CheckedAssetAmount;
44
45
  finalEstimation: FunkitCheckoutQuoteResult;
@@ -2,11 +2,15 @@ import type { RelayQuote } from '@funkit/fun-relay';
2
2
  export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
3
3
  export declare function extractRelayFeeInfo(relayQuote: RelayQuote['metadata']['relayQuote']): {
4
4
  gasUsd: number;
5
+ fillCostUsd: number;
6
+ fillCostPercent: number;
5
7
  chainName: string | undefined;
8
+ totalImpactUsd: number;
6
9
  totalImpact: number;
7
10
  swapImpact: number;
8
- relayGas: number;
11
+ swapImpactUsd: number;
9
12
  appFeePercent: number;
13
+ appFeeUsd: number;
10
14
  maxSlippage: number;
11
15
  minReceived: number;
12
16
  };
@@ -25,5 +25,5 @@ type RecommendedAsset = {
25
25
  chainSymbolKey: string;
26
26
  label: string | null;
27
27
  };
28
- export declare const getRecommendedAsset: (apiKey: string, checkoutItem: FunkitActiveCheckoutItem, accountHoldings: KnownAssetHoldingsItem[]) => RecommendedAsset | null;
28
+ export declare const getRecommendedAsset: (checkoutItem: FunkitActiveCheckoutItem, accountHoldings: KnownAssetHoldingsItem[]) => RecommendedAsset | null;
29
29
  export {};
@@ -1,18 +1,17 @@
1
1
  import { type Address } from 'viem';
2
2
  import type { WithdrawalClient } from '~/wallets/Wallet';
3
3
  interface CheckoutQuoteParams {
4
- recipientAddress: Address;
4
+ recipientAddress: string;
5
5
  sourceAmount: number;
6
6
  chainId: string;
7
7
  symbol: string;
8
8
  targetAsset: Address | undefined;
9
- targetAssetAmount: number | undefined;
10
9
  withdrawalClient: WithdrawalClient;
11
10
  }
12
11
  /**
13
12
  * Simplified quoting logic used for withdrawal UI only.
14
13
  */
15
- export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, chainId, symbol, targetAsset, targetAssetAmount, withdrawalClient, }: CheckoutQuoteParams): {
14
+ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, chainId, symbol, targetAsset, withdrawalClient, }: CheckoutQuoteParams): {
16
15
  quoteEnabled: boolean;
17
16
  data: {
18
17
  baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
@@ -1,25 +1,36 @@
1
1
  import { DirectExecutionType } from '@funkit/api-base';
2
- import { type CheckoutQuoteResponse } from '@funkit/utils';
2
+ import type { CheckoutQuoteResponse } from '@funkit/utils';
3
3
  import type { Address, Hex } from 'viem';
4
- import { PaymentMethod } from '~/domains/paymentMethods';
5
4
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
6
- import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
7
- interface DirectExecutionQuoteRequestParams {
5
+ import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams } from '~/providers/FunkitCheckoutContext';
6
+ import type { WithdrawalClient } from '~/wallets/Wallet';
7
+ interface DirectExecutionQuoteRequestParamsBase {
8
8
  actionParams: FunkitCheckoutActionParams[];
9
9
  toChainId: string;
10
10
  toTokenAddress: Address;
11
- toTokenAmount: number;
12
- toTokenDecimals: number;
13
11
  fromChainId: string;
14
12
  fromTokenAddress: Address;
15
13
  recipientAddress: Address;
16
14
  senderAddress?: Address;
15
+ isExactIn?: boolean;
16
+ }
17
+ interface RegularDEQuoteRequest extends DirectExecutionQuoteRequestParamsBase {
18
+ toTokenAmount: number;
19
+ toTokenDecimals: number;
20
+ isExactIn?: false;
21
+ }
22
+ interface WithdrawalDEQuoteRequest extends DirectExecutionQuoteRequestParamsBase {
23
+ fromTokenAmount: number;
24
+ isExactIn: true;
25
+ fromTokenDecimals: number;
17
26
  }
27
+ type DirectExecutionQuoteRequestParams = RegularDEQuoteRequest | WithdrawalDEQuoteRequest;
18
28
  interface DirectExecutionStartParams {
19
29
  checkoutItem: FunkitActiveCheckoutItem;
20
30
  stepMessageSetter: (m: string) => void;
21
31
  actionsParams: FunkitCheckoutActionParams[];
22
32
  latestQuote: FunkitCheckoutQuoteResult;
33
+ withdrawalClient?: WithdrawalClient;
23
34
  }
24
35
  export interface FunkitDirectExecutionInfo {
25
36
  isDirectExecution: boolean;
@@ -31,14 +42,5 @@ interface UseCheckoutDirectExecutionReturn {
31
42
  getDirectExecutionInfo: (checkoutItem: FunkitActiveCheckoutItem | null) => FunkitDirectExecutionInfo;
32
43
  getWithdrawalDirectExecution: () => FunkitDirectExecutionInfo;
33
44
  }
34
- export declare function isVertexDirectExecution({ apiKey, config, paymentMethod, sourceAsset, sourceChain, targetAsset, targetChain, }: {
35
- apiKey: string;
36
- config: FunkitCheckoutConfig;
37
- paymentMethod: PaymentMethod | undefined;
38
- sourceAsset: string;
39
- sourceChain: string;
40
- targetAsset?: string;
41
- targetChain?: string;
42
- }): boolean;
43
45
  export declare function useCheckoutDirectExecution(): UseCheckoutDirectExecutionReturn;
44
46
  export {};
@@ -2,6 +2,9 @@ import { PaymentMethod } from '~/domains/paymentMethods';
2
2
  /**
3
3
  * https://linear.app/funxyz/issue/ENG-1154/update-dydx-and-polymarkets-time-estimate
4
4
  * https://linear.app/funxyz/issue/PE-775/sdkconnectwith-next-pm-requests
5
+ * @param originalTimeEstimationMs time estimation in milliseconds
6
+ * @param paymentMethod payment method
7
+ * @param bypassFlag whether to ignore flag value and return the original time estimation fallback even if flag is defined
5
8
  * @returns time estimation in seconds
6
9
  */
7
10
  export declare function useCheckoutTimeEstimate(originalTimeEstimationMs: number | undefined, paymentMethod?: PaymentMethod, //TODO: questionable
@@ -1,8 +1,10 @@
1
- import { type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
1
+ import { type CheckoutInitTokenTransferAddressParams, type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
2
2
  interface UseCheckoutTransferInitResponse {
3
3
  transferInit: CheckoutInitTokenTransferResponse | undefined;
4
4
  recipientAddr: FunAddress;
5
+ manualFetch: (params: CheckoutTokenTransferParams) => Promise<CheckoutInitTokenTransferResponse>;
5
6
  }
7
+ type CheckoutTokenTransferParams = Omit<CheckoutInitTokenTransferAddressParams, 'logger' | 'clientMetadata'>;
6
8
  /**
7
9
  * creates QR code transfer EOA
8
10
  */
@@ -9,6 +9,7 @@ interface GetIsRelayEnabledParams {
9
9
  toChainId: string;
10
10
  toTokenAddress: string;
11
11
  paymentMethod: PaymentMethod | undefined;
12
+ isAdditionalActionsRequired: boolean;
12
13
  }
13
14
  export interface UseRelayBypassReturn {
14
15
  getIsRelayEnabled: (params: GetIsRelayEnabledParams) => boolean;