@funkit/connect 6.14.23-next.1 → 6.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -14
- package/dist/__generated__/default_configs.d.ts +7 -0
- package/dist/components/AnimatedWidthWrapper/AnimatedWidthWrapper.d.ts +4 -0
- package/dist/components/Dialog/Dialog.d.ts +1 -2
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/FunAsset/FunAssetItem.d.ts +2 -1
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +2 -1
- package/dist/components/FunInput/FunInput.d.ts +1 -0
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +13 -12
- package/dist/components/YouPayYouReceive/YouPayYouReceive.d.ts +2 -1
- package/dist/consts/assets.d.ts +1 -0
- package/dist/consts/customers.d.ts +2 -0
- package/dist/domains/clientMetadata.d.ts +9 -14
- package/dist/domains/quote.d.ts +2 -3
- package/dist/hooks/useBluvo.d.ts +107 -13
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/index.css +3 -2
- package/dist/index.js +1791 -1655
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +0 -5
- package/dist/providers/FunkitCheckoutContext/index.d.ts +57 -0
- package/dist/providers/{FunkitCheckoutContext.track.d.ts → FunkitCheckoutContext/track.d.ts} +1 -1
- package/dist/providers/{FunkitCheckoutContext.d.ts → FunkitCheckoutContext/types.d.ts} +4 -56
- package/dist/providers/FunkitQuoteContext.d.ts +1 -1
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +18 -6
- package/dist/wallets/walletConnectors/index.js +19 -19
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,31 +1,61 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
-
## 6.
|
|
3
|
+
## 6.15.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
- @funkit/core@2.3.60-next.1
|
|
10
|
-
- @funkit/wagmi-tools@3.0.83-next.1
|
|
7
|
+
- fbb43ae: feat(connect): update preferred network logic for brokerage assets
|
|
8
|
+
- d296585: fix(connect): fix UI bug in SEPA flow
|
|
11
9
|
|
|
12
|
-
## 6.
|
|
10
|
+
## 6.15.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 21fd780: refactor: remove test for specific customer for title alignment
|
|
13
15
|
|
|
14
16
|
### Patch Changes
|
|
15
17
|
|
|
18
|
+
- dc0899c: feat(connect): add hbhype token icon
|
|
19
|
+
- 2e88a52: feat: support swapped and kryptonim via meld
|
|
20
|
+
- d9c2d11: fix(connect): fix padding bottom when source change screen overflows
|
|
21
|
+
- d8801d5: chore(connect,utils): deprecate flag EnableFrogProxyServer
|
|
22
|
+
- 876cf20: feat: lighter chain registration
|
|
16
23
|
- 3824315: support solana as target asset
|
|
17
|
-
-
|
|
24
|
+
- 7077903: feat: add monad chain support
|
|
25
|
+
- dbe04ee: refactor several files for server client config
|
|
26
|
+
- fc213a3: feat(connect): hide chain icon for brokerage flow
|
|
27
|
+
- b74e323: feat(connect): update in-progress text for layerZero checkouts
|
|
28
|
+
- 6420fcb: feat(connect): add hyperbeat yeild token icons
|
|
29
|
+
- 54fdecc: feat(connect): only fetch checkout history as needed
|
|
30
|
+
- 7e7867d: add hyperedge
|
|
31
|
+
- 73325c8: feat(connect): migrate showinfobanner flag to statsig
|
|
18
32
|
- 002ac44: feat(connect): add behype icon
|
|
33
|
+
- 8212f09: Refactor useTextMeasurer to use DOM element measurement instead of canvas for improved accuracy and better style support
|
|
34
|
+
- 3250234: only fetch user ip info when logged in
|
|
35
|
+
- 6783087: chore(connect): removed bech32 dependency
|
|
36
|
+
- 05edce9: chore(connect): deprecate fetchSponsorInitialTransferGasLimit
|
|
37
|
+
- c25f91f: fix(connect): fix fallback for alignTitle config
|
|
38
|
+
- af1b322: feat(connect): add fallback for wallet asset logo
|
|
39
|
+
- c4d12e1: feat(connect): update bluvo dependency to latest
|
|
19
40
|
- c76619e: Migrate from Lerna to Turborepo for improved build performance and developer experience. This change removes automatic builds during package installation (`prepare` scripts) and introduces intelligent caching. No changes to public APIs or package functionality.
|
|
41
|
+
- Updated dependencies [cfe62b9]
|
|
42
|
+
- Updated dependencies [2e88a52]
|
|
43
|
+
- Updated dependencies [d8801d5]
|
|
44
|
+
- Updated dependencies [876cf20]
|
|
20
45
|
- Updated dependencies [3824315]
|
|
21
|
-
- Updated dependencies
|
|
46
|
+
- Updated dependencies [7077903]
|
|
47
|
+
- Updated dependencies [98196b4]
|
|
48
|
+
- Updated dependencies [7e7867d]
|
|
49
|
+
- Updated dependencies [5ba2828]
|
|
50
|
+
- Updated dependencies [af1b322]
|
|
51
|
+
- Updated dependencies [a925603]
|
|
22
52
|
- Updated dependencies [c76619e]
|
|
23
|
-
- @funkit/
|
|
24
|
-
- @funkit/
|
|
25
|
-
- @funkit/chains@0.4.4
|
|
26
|
-
- @funkit/
|
|
27
|
-
- @funkit/
|
|
28
|
-
- @funkit/wagmi-tools@3.0.83
|
|
53
|
+
- @funkit/api-base@1.12.15
|
|
54
|
+
- @funkit/utils@1.1.17
|
|
55
|
+
- @funkit/chains@0.4.4
|
|
56
|
+
- @funkit/fun-relay@2.1.10
|
|
57
|
+
- @funkit/core@2.3.60
|
|
58
|
+
- @funkit/wagmi-tools@3.0.83
|
|
29
59
|
|
|
30
60
|
## 6.14.22
|
|
31
61
|
|
|
@@ -11,6 +11,13 @@ declare const _default: {
|
|
|
11
11
|
readonly boolean: {
|
|
12
12
|
readonly value: false;
|
|
13
13
|
};
|
|
14
|
+
readonly showinfobanner: {
|
|
15
|
+
readonly value: {
|
|
16
|
+
readonly message: "";
|
|
17
|
+
readonly expireAtMs: 0;
|
|
18
|
+
readonly type: "announcement";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
14
21
|
readonly showpoweredtagline: {
|
|
15
22
|
readonly value: false;
|
|
16
23
|
};
|
|
@@ -25,7 +25,7 @@ interface DialogProps {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withoutBottomPadding, withTransition, testId, }: DialogProps): React.ReactPortal | null;
|
|
27
27
|
export declare namespace Dialog {
|
|
28
|
-
var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp,
|
|
28
|
+
var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, isBackDisabled, onBack, className, }: DialogTitleProps) => React.JSX.Element;
|
|
29
29
|
var Content: ({ children, fullHeight, paddingLeft, paddingBottom, paddingTop, className, withTopDivider, withBottomDivider, id, withoutInternalPadding, ...boxProps }: DialogContentProps) => React.JSX.Element;
|
|
30
30
|
var BottomSection: ({ paddingX, children, ...boxProps }: BoxProps) => React.JSX.Element;
|
|
31
31
|
var BottomBar: ({ topSection, actionButtonProps, bottomSection, onClose, }: import("../FunBottomBar/FunBottomBar").FunBottomBarProps) => React.JSX.Element | null;
|
|
@@ -48,7 +48,6 @@ export interface DialogTitleProps {
|
|
|
48
48
|
isCloseDisabled?: boolean;
|
|
49
49
|
onClose?: () => void;
|
|
50
50
|
hasBackButton?: boolean;
|
|
51
|
-
helpButtonUrl?: string;
|
|
52
51
|
isBackDisabled?: boolean;
|
|
53
52
|
onBack?: () => void;
|
|
54
53
|
className?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const SCROLL_BAR_WIDTH = 6;
|
|
2
2
|
export declare const DIALOG_BOTTOM_PADDING = "15";
|
|
3
|
+
export declare const bottomPaddingVariable = "--bottom-padding-value";
|
|
3
4
|
/**
|
|
4
5
|
* note the border defined here is taken into account in the FunCheckoutModalHeightAnimationWrapper component in the `getPermittedHeight` function
|
|
5
6
|
* adjusting the border width will require adjusting the `getPermittedHeight` function
|
|
@@ -7,7 +7,8 @@ interface FunAssetItemProps {
|
|
|
7
7
|
badgeText: string | null;
|
|
8
8
|
onClick: () => void;
|
|
9
9
|
testId?: string;
|
|
10
|
+
isChainIconHidden?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const FunAssetItem: ({ asset, isActive, isDisabled, badgeText, onClick, testId, }: FunAssetItemProps) => React.JSX.Element;
|
|
12
|
+
export declare const FunAssetItem: ({ asset, isActive, isDisabled, isChainIconHidden, badgeText, onClick, testId, }: FunAssetItemProps) => React.JSX.Element;
|
|
12
13
|
export declare function FunAssetItemSkeleton(): React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -9,6 +9,7 @@ interface FunAssetAvatarProps {
|
|
|
9
9
|
prioritizeDefaults?: boolean;
|
|
10
10
|
hideIfUnknown?: boolean;
|
|
11
11
|
largeChainIcon?: boolean;
|
|
12
|
+
isChainIconHidden?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare function FunAssetAvatar({ assetSrc, assetTicker, assetName, assetIconSize, chainId, prioritizeDefaults, hideIfUnknown, largeChainIcon, }: FunAssetAvatarProps): React.JSX.Element | null;
|
|
14
|
+
export declare function FunAssetAvatar({ assetSrc, assetTicker, assetName, assetIconSize, chainId, prioritizeDefaults, hideIfUnknown, largeChainIcon, isChainIconHidden, }: FunAssetAvatarProps): React.JSX.Element | null;
|
|
14
15
|
export {};
|
|
@@ -23,6 +23,7 @@ export interface FunInputProps<T = HTMLInputElement | HTMLTextAreaElement> {
|
|
|
23
23
|
/** Color meant for prefix & suffix elements. Defaults to secondaryText. */
|
|
24
24
|
adornmentColor?: BoxProps['color'];
|
|
25
25
|
textWeight?: BoxProps['fontWeight'];
|
|
26
|
+
ignoreFontSize?: boolean;
|
|
26
27
|
overrideBorderWidth?: BoxProps['borderWidth'];
|
|
27
28
|
overrideBackground?: BoxProps['background'];
|
|
28
29
|
borderRadius?: BoxProps['borderRadius'];
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { CheckoutProgressStep } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
interface TransactionStatusProps {
|
|
4
|
+
isLayerZero: boolean;
|
|
5
|
+
isWithdrawal: boolean;
|
|
4
6
|
textConfigStatus?: TextConfigStatus;
|
|
5
7
|
textConfigSteps?: TextConfigSteps;
|
|
6
8
|
onOrderDelayed?: () => void;
|
|
7
9
|
startTimeMs: number;
|
|
8
10
|
status: 'delayed' | 'failed' | 'progress' | 'success';
|
|
9
11
|
step: CheckoutProgressStep;
|
|
10
|
-
isWithdrawal: boolean;
|
|
11
12
|
}
|
|
12
|
-
export type
|
|
13
|
-
title: string;
|
|
13
|
+
export type TextConfig = {
|
|
14
14
|
description: ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const DEPOSIT_TEXT_CONFIG_STATUS: TextConfigStatus;
|
|
17
|
-
export declare const WITHDRAWAL_TEXT_CONFIG_STATUS: TextConfigStatus;
|
|
18
|
-
export type TextConfigSteps = Record<CheckoutProgressStep, {
|
|
19
15
|
title: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
};
|
|
17
|
+
export type TextConfigContext = {
|
|
18
|
+
durationUnits: 'minutes' | 'seconds';
|
|
19
|
+
isWithdrawal: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type TextConfigStatus = Record<Exclude<TransactionStatusProps['status'], 'progress'> | 'progress_delayed', TextConfig | ((context: TextConfigContext) => TextConfig)>;
|
|
22
|
+
export declare const DEFAULT_TEXT_CONFIG_STATUS: TextConfigStatus;
|
|
23
|
+
export type TextConfigSteps = Record<CheckoutProgressStep, TextConfig | ((context: TextConfigContext) => TextConfig)>;
|
|
24
|
+
export declare const DEFAULT_TEXT_CONFIG_STEPS: TextConfigSteps;
|
|
24
25
|
export declare function TransactionStatusLoading({ expectedStatus, }: {
|
|
25
26
|
expectedStatus: TransactionStatusProps['status'];
|
|
26
27
|
}): React.JSX.Element;
|
|
27
|
-
export declare function TransactionStatus({ status, step,
|
|
28
|
+
export declare function TransactionStatus({ isLayerZero, isWithdrawal, status, step, textConfigStatus, textConfigSteps, }: TransactionStatusProps): React.JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -13,8 +13,9 @@ interface YouPayYouReceiveProps {
|
|
|
13
13
|
showYouPaySection?: boolean;
|
|
14
14
|
showFiatCurrencySection?: boolean;
|
|
15
15
|
prioritizeDefaults?: boolean;
|
|
16
|
+
isYouPayChainIconHidden?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export declare const YouPayYouReceive: ({ payLabel, receiveLabel, fiatCurrencyLabel, payTokenSymbol, receiveTokenSymbol, fiatCurrencySymbol, payTokenIconSrc, receiveTokenIconSrc, payTokenChainId, receiveTokenChainId, showYouPaySection, showFiatCurrencySection, prioritizeDefaults, }: YouPayYouReceiveProps) => React.JSX.Element;
|
|
18
|
+
export declare const YouPayYouReceive: ({ payLabel, receiveLabel, fiatCurrencyLabel, payTokenSymbol, receiveTokenSymbol, fiatCurrencySymbol, payTokenIconSrc, receiveTokenIconSrc, payTokenChainId, receiveTokenChainId, showYouPaySection, showFiatCurrencySection, prioritizeDefaults, isYouPayChainIconHidden, }: YouPayYouReceiveProps) => React.JSX.Element;
|
|
18
19
|
export declare const YouPayYouReceiveBottomBarLayoutWrapper: ({ children, }: {
|
|
19
20
|
children: React.ReactNode;
|
|
20
21
|
}) => React.JSX.Element;
|
package/dist/consts/assets.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export declare function isMonkeyTiltCustomer(apiKey: string): apiKey is "2SrxurU
|
|
|
10
10
|
export declare function isBasedCustomer(apiKey: string): apiKey is "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e";
|
|
11
11
|
export declare function isHyenaCustomer(apiKey: string): apiKey is "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW";
|
|
12
12
|
export declare function isAvantisCustomer(apiKey: string): apiKey is "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2";
|
|
13
|
+
export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu";
|
|
14
|
+
export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2";
|
|
@@ -4,33 +4,28 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Make sure it is SERIALIZABLE and BACKWARD COMPATIBLE!!
|
|
6
6
|
*/
|
|
7
|
-
import type { ApiCheckoutClientMetadata
|
|
7
|
+
import type { ApiCheckoutClientMetadata } from '@funkit/utils';
|
|
8
8
|
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
9
|
-
import { type PaymentMethodInfo } from './paymentMethods';
|
|
10
9
|
import type { FunkitCheckoutQuoteResult } from './quote';
|
|
10
|
+
type Serialize<T> = T extends (...args: never[]) => unknown ? DeepSerialize<ReturnType<T>> : T extends object ? DeepSerialize<T> : T;
|
|
11
|
+
type DeepSerialize<T> = {
|
|
12
|
+
[K in keyof T]: Serialize<T[K]>;
|
|
13
|
+
};
|
|
11
14
|
/**
|
|
12
15
|
* Historical Checkout Configuration stored in the server
|
|
13
16
|
* This is similar to FunkitCheckoutConfig but with some fields changed to serializable types
|
|
14
17
|
* */
|
|
15
|
-
export type ServerCheckoutConfig =
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
+
export type ServerCheckoutConfig = DeepSerialize<FunkitCheckoutConfig>;
|
|
19
|
+
type HistoricalCheckoutItemKey = 'id' | 'startTimestampMs' | 'finalDollarValue' | 'latestQuote' | 'depositAddress' | 'selectedSourceAssetInfo' | 'selectedPaymentMethodInfo';
|
|
18
20
|
/**
|
|
19
21
|
* HistoricalCheckoutItem stored in the server
|
|
20
22
|
*
|
|
21
23
|
* Make sure it is SERIALIZABLE and BACKWARD COMPATIBLE!!
|
|
22
24
|
**/
|
|
23
|
-
export interface HistoricalCheckoutItem {
|
|
24
|
-
id: FunkitActiveCheckoutItem['id'];
|
|
25
|
-
startTimestampMs: FunkitActiveCheckoutItem['startTimestampMs'];
|
|
26
|
-
finalDollarValue: FunkitActiveCheckoutItem['finalDollarValue'];
|
|
27
|
-
latestQuote: FunkitActiveCheckoutItem['latestQuote'];
|
|
28
|
-
depositAddress: FunkitActiveCheckoutItem['depositAddress'];
|
|
25
|
+
export interface HistoricalCheckoutItem extends Pick<FunkitActiveCheckoutItem, HistoricalCheckoutItemKey> {
|
|
29
26
|
initSettings: {
|
|
30
27
|
config: ServerCheckoutConfig;
|
|
31
28
|
};
|
|
32
|
-
selectedSourceAssetInfo: FunkitActiveCheckoutItem['selectedSourceAssetInfo'];
|
|
33
|
-
selectedPaymentMethodInfo: FunkitActiveCheckoutItem['selectedPaymentMethodInfo'];
|
|
34
29
|
isWithdrawal?: boolean;
|
|
35
30
|
}
|
|
36
31
|
/**
|
|
@@ -44,4 +39,4 @@ export declare function generateClientMetadataForBackend({ checkoutItem, latestQ
|
|
|
44
39
|
isWithdrawal?: boolean;
|
|
45
40
|
}): ApiCheckoutClientMetadata;
|
|
46
41
|
export declare function generateClientMetadataForTokenTransfer(): HistoricalCheckoutItem;
|
|
47
|
-
export
|
|
42
|
+
export {};
|
package/dist/domains/quote.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteRe
|
|
|
11
11
|
finalSpreadUsd: string;
|
|
12
12
|
finalFeesBreakdown: CheckoutFees;
|
|
13
13
|
}
|
|
14
|
-
export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string,
|
|
14
|
+
export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, wagmiConfig: Config, directExecutionInfo: FunkitDirectExecutionInfo, senderAddress?: Address, isWithdrawal?: boolean): Promise<CheckoutQuoteResponse>;
|
|
15
15
|
export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType, isWithdrawal?: boolean, brokerageQuote?: BluvoBrokerageQuote): Promise<{
|
|
16
16
|
finalEstimation: FunkitCheckoutQuoteResult;
|
|
17
17
|
brokerage?: BrokerageDetails;
|
|
@@ -28,7 +28,6 @@ export interface CheckoutQuoteParams {
|
|
|
28
28
|
userId: string;
|
|
29
29
|
walletAddress: Address;
|
|
30
30
|
apiKey: string;
|
|
31
|
-
sponsorInitialTransferGasLimit: number;
|
|
32
31
|
newPaymentMethodInfo: PaymentMethodInfo;
|
|
33
32
|
wagmiConfig: Config;
|
|
34
33
|
loginType: LoginType;
|
|
@@ -39,7 +38,7 @@ export interface CheckoutQuoteParams {
|
|
|
39
38
|
senderAddress?: Address;
|
|
40
39
|
isWithdrawal?: boolean;
|
|
41
40
|
}
|
|
42
|
-
export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey,
|
|
41
|
+
export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, newPaymentMethodInfo, wagmiConfig, loginType, directExecutionInfo, senderAddress, isWithdrawal, }: CheckoutQuoteParams): Promise<{
|
|
43
42
|
baseQuote: CheckoutQuoteResponse;
|
|
44
43
|
checkedAssetAmount: CheckedAssetAmount;
|
|
45
44
|
finalEstimation: FunkitCheckoutQuoteResult;
|
package/dist/hooks/useBluvo.d.ts
CHANGED
|
@@ -36,12 +36,7 @@ export declare const useBluvoSupportedExchanges: ({ fullInfo, iconSize, filterBy
|
|
|
36
36
|
export declare const useBluvo: () => {
|
|
37
37
|
exchangeType: BluvoExchangeType | undefined;
|
|
38
38
|
bluvoClient: {
|
|
39
|
-
listExchanges: (status?: "live" | "offline" | "maintenance" | "coming_soon") => Promise<
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
logoUrl: string;
|
|
43
|
-
status: import("@bluvo/sdk-ts").StatusEnum;
|
|
44
|
-
}[] | null>;
|
|
39
|
+
listExchanges: (status?: "live" | "offline" | "maintenance" | "coming_soon") => Promise<any[] | null>;
|
|
45
40
|
startWithdrawalFlow: (flowOptions: import("@bluvo/sdk-ts").WithdrawalFlowOptions) => Promise<{
|
|
46
41
|
machine: import("@bluvo/sdk-ts").Machine<import("@bluvo/sdk-ts").FlowState, import("@bluvo/sdk-ts").FlowActionType>;
|
|
47
42
|
closeOAuthWindow: null;
|
|
@@ -57,6 +52,20 @@ export declare const useBluvo: () => {
|
|
|
57
52
|
machine: import("@bluvo/sdk-ts").Machine<import("@bluvo/sdk-ts").FlowState, import("@bluvo/sdk-ts").FlowActionType>;
|
|
58
53
|
} | null>;
|
|
59
54
|
requestQuote: (options: import("@bluvo/sdk-ts").QuoteRequestOptions) => Promise<{
|
|
55
|
+
success: boolean;
|
|
56
|
+
error: string;
|
|
57
|
+
type?: undefined;
|
|
58
|
+
rawQuote?: undefined;
|
|
59
|
+
quoteData?: undefined;
|
|
60
|
+
result?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
success: boolean;
|
|
63
|
+
error: string;
|
|
64
|
+
type: import("@bluvo/sdk-ts").TypeEnum2;
|
|
65
|
+
rawQuote?: undefined;
|
|
66
|
+
quoteData?: undefined;
|
|
67
|
+
result?: undefined;
|
|
68
|
+
} | {
|
|
60
69
|
rawQuote: {
|
|
61
70
|
id: string;
|
|
62
71
|
asset: string;
|
|
@@ -98,25 +107,110 @@ export declare const useBluvo: () => {
|
|
|
98
107
|
};
|
|
99
108
|
expiresAt: number;
|
|
100
109
|
};
|
|
101
|
-
|
|
110
|
+
success: boolean;
|
|
111
|
+
result: {
|
|
112
|
+
rawQuote: {
|
|
113
|
+
id: string;
|
|
114
|
+
asset: string;
|
|
115
|
+
amountWithFee?: number | null;
|
|
116
|
+
amountNoFee?: number | null;
|
|
117
|
+
estimatedFee?: number | null;
|
|
118
|
+
amountWithFeeInFiat?: number | null;
|
|
119
|
+
amountNoFeeInFiat?: number | null;
|
|
120
|
+
estimatedFeeInFiat?: number | null;
|
|
121
|
+
destinationAddress: string;
|
|
122
|
+
network?: string | null;
|
|
123
|
+
tag?: string | null;
|
|
124
|
+
estimatedTotal?: number;
|
|
125
|
+
feeDetails?: Array<{
|
|
126
|
+
category: import("@bluvo/sdk-ts").CategoryEnum;
|
|
127
|
+
currency: string;
|
|
128
|
+
amount: number;
|
|
129
|
+
amountInFiat: number;
|
|
130
|
+
fiatCurrency: string;
|
|
131
|
+
}>;
|
|
132
|
+
expiresAt: string;
|
|
133
|
+
additionalInfo: {
|
|
134
|
+
minWithdrawal: string | null;
|
|
135
|
+
maxWithdrawal?: string | null;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
quoteData: {
|
|
139
|
+
id: string;
|
|
140
|
+
asset: string;
|
|
141
|
+
amount: string;
|
|
142
|
+
estimatedFee: string;
|
|
143
|
+
estimatedTotal: string;
|
|
144
|
+
amountWithFeeInFiat: string;
|
|
145
|
+
amountNoFeeInFiat: string;
|
|
146
|
+
estimatedFeeInFiat: string;
|
|
147
|
+
additionalInfo: {
|
|
148
|
+
minWithdrawal: string | null;
|
|
149
|
+
maxWithdrawal?: string | null;
|
|
150
|
+
};
|
|
151
|
+
expiresAt: number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
error?: undefined;
|
|
155
|
+
type?: undefined;
|
|
156
|
+
}>;
|
|
102
157
|
executeWithdrawal: (quoteId: string) => Promise<{
|
|
103
158
|
success: boolean;
|
|
159
|
+
error: string;
|
|
160
|
+
type?: undefined;
|
|
161
|
+
} | {
|
|
162
|
+
success: boolean;
|
|
163
|
+
error: any;
|
|
164
|
+
type: import("@bluvo/sdk-ts").TypeEnum2;
|
|
165
|
+
} | {
|
|
166
|
+
success: boolean;
|
|
167
|
+
result: {
|
|
168
|
+
success: boolean;
|
|
169
|
+
error?: string;
|
|
170
|
+
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
171
|
+
result?: unknown;
|
|
172
|
+
} | null | undefined;
|
|
104
173
|
error?: string;
|
|
105
174
|
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
106
|
-
|
|
107
|
-
} | null | undefined>;
|
|
175
|
+
}>;
|
|
108
176
|
submit2FA: (code: string) => Promise<{
|
|
109
177
|
success: boolean;
|
|
178
|
+
error: string;
|
|
179
|
+
type?: undefined;
|
|
180
|
+
} | {
|
|
181
|
+
success: boolean;
|
|
182
|
+
error: any;
|
|
183
|
+
type: import("@bluvo/sdk-ts").TypeEnum2;
|
|
184
|
+
} | {
|
|
185
|
+
success: boolean;
|
|
186
|
+
result: {
|
|
187
|
+
success: boolean;
|
|
188
|
+
error?: string;
|
|
189
|
+
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
190
|
+
result?: unknown;
|
|
191
|
+
} | null | undefined;
|
|
110
192
|
error?: string;
|
|
111
193
|
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
112
|
-
|
|
113
|
-
} | null | undefined>;
|
|
194
|
+
}>;
|
|
114
195
|
retryWithdrawal: () => Promise<{
|
|
115
196
|
success: boolean;
|
|
197
|
+
error: string;
|
|
198
|
+
type?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
success: boolean;
|
|
201
|
+
error: any;
|
|
202
|
+
type: import("@bluvo/sdk-ts").TypeEnum2;
|
|
203
|
+
} | {
|
|
204
|
+
success: boolean;
|
|
205
|
+
result: {
|
|
206
|
+
success: boolean;
|
|
207
|
+
error?: string;
|
|
208
|
+
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
209
|
+
result?: unknown;
|
|
210
|
+
} | null | undefined;
|
|
116
211
|
error?: string;
|
|
117
212
|
type?: import("@bluvo/sdk-ts").TypeEnum2;
|
|
118
|
-
|
|
119
|
-
} | null | undefined>;
|
|
213
|
+
} | undefined>;
|
|
120
214
|
cancel: () => void;
|
|
121
215
|
testWithdrawalComplete: (transactionId?: string) => void;
|
|
122
216
|
isIdle: boolean;
|
|
@@ -8,6 +8,7 @@ export declare function useCheckoutDirectExecutionHistory({ initDirectExecution,
|
|
|
8
8
|
}): {
|
|
9
9
|
state: CheckoutState;
|
|
10
10
|
refundState: CheckoutRefundState | undefined;
|
|
11
|
+
isLayerZero: boolean | undefined;
|
|
11
12
|
isRefunded: boolean;
|
|
12
13
|
isCompleted: boolean;
|
|
13
14
|
isFailed: boolean;
|
package/dist/index.css
CHANGED
|
@@ -9184,8 +9184,9 @@
|
|
|
9184
9184
|
}
|
|
9185
9185
|
}
|
|
9186
9186
|
|
|
9187
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#
|
|
9187
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7WVQdOaMBCG7/6KzPSihziIYi1eOt+5hx567yxkkYwhYZIg2I7/vRNAPiL6VafTk8O6z+5LeHez/Lkqf9lNuF6R3zNCKE2UtaqgJTDG5YGeQFQYkxPoOaX6SE0JqYsXioH43iW9tcg3VaNe7GeEFNDQHPkhtzGJwqhsrsGaM5vHZBUEp9rF+udNFLicy2w5iIlzMPNPVh1RUqtBmgw1LeGAi1bmuMOu6zClMw6WMrTAxatoqmTGdQGWK/k6W5QCLb7K1dzmTEMNgmZC1c+QYZfD5fVk17ugO23/eYSsX0c2ryNRi1w9pDv9wX4UE5h1oRG1/dCCfu7uVhSX3HIQI1kpiHTeeo1Qsg7KZmLOXWBOuV/2FeMFDvZjX6IHFZ8w41PloOXUCbUzCW1iknPGUO7H0XNMoLLKxUyqlRAJaHqorEUdE2MhEej/159YJQ1av10c0xqTI7fuNNJj2z2B9HjQqpKMpkooPVoP7bPptsPbkLZ4VHNQ0NZl3JQCzoOO4UtuO7v9h77U5lWRdG+lNENNNTBemVFpF+Bd5cVzKixqy0Gff2BjfQnJXyT82ws+rh7nzhtP9jCYKsnu6k/975QJbD+M+6WMa0zdwoxJqkRVtJa8GtmNoW9k5q2IYR3c2xojCluqHUze9VLuQrJnEixDQxAMUi6pqnwbZxMMhCDBMrpB/OkLo37PXQfrfdhGtQ+TSe6pabtN367vda/s1wIZBzeaiJKAZGQ+WnKft7uy6VbH0r+4by9TQi7jpLBPurfFb/f4DbqeopvwFh0iHrq5g0YT9F3w5Q+1dU6YjggAAA== */
|
|
9188
9188
|
[data-rk] ._1pzt4231 {
|
|
9189
|
+
--bottom-padding-value: var(--rk-spacing-modalPaddingBottomLower);
|
|
9189
9190
|
max-height: 525px;
|
|
9190
9191
|
max-width: 100vw;
|
|
9191
9192
|
width: 450px;
|
|
@@ -9222,7 +9223,7 @@
|
|
|
9222
9223
|
padding-left: 0;
|
|
9223
9224
|
}
|
|
9224
9225
|
[data-rk] ._1pzt4236 {
|
|
9225
|
-
padding-
|
|
9226
|
+
--bottom-padding-value: 0;
|
|
9226
9227
|
}
|
|
9227
9228
|
[data-rk] ._1pzt4238 {
|
|
9228
9229
|
min-width: initial;
|