@rango-dev/widget-embedded 0.17.1-next.2 → 0.17.1-next.4
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/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts +1 -3
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts.map +1 -1
- package/dist/components/NoResult/NoResult.d.ts +4 -0
- package/dist/components/NoResult/NoResult.d.ts.map +1 -0
- package/dist/components/NoResult/NoResult.helpers.d.ts +4 -0
- package/dist/components/NoResult/NoResult.helpers.d.ts.map +1 -0
- package/dist/components/{NoRoutes/NoRoutes.styles.d.ts → NoResult/NoResult.styles.d.ts} +1 -1
- package/dist/components/{NoRoutes/NoRoutes.styles.d.ts.map → NoResult/NoResult.styles.d.ts.map} +1 -1
- package/dist/components/{NoRoutes/NoRoutes.types.d.ts → NoResult/NoResult.types.d.ts} +3 -3
- package/dist/components/NoResult/NoResult.types.d.ts.map +1 -0
- package/dist/components/NoResult/index.d.ts +2 -0
- package/dist/components/NoResult/index.d.ts.map +1 -0
- package/dist/components/Quote/Quote.d.ts +4 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -0
- package/dist/components/Quote/Quote.styles.d.ts +1429 -0
- package/dist/components/Quote/Quote.styles.d.ts.map +1 -0
- package/dist/components/Quote/Quote.types.d.ts +22 -0
- package/dist/components/Quote/Quote.types.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSkeleton.d.ts +4 -0
- package/dist/components/Quote/QuoteSkeleton.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSkeleton.styles.d.ts +319 -0
- package/dist/components/Quote/QuoteSkeleton.styles.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSkeleton.types.d.ts +6 -0
- package/dist/components/Quote/QuoteSkeleton.types.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSummary.d.ts +11 -0
- package/dist/components/Quote/QuoteSummary.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSummary.styles.d.ts +158 -0
- package/dist/components/Quote/QuoteSummary.styles.d.ts.map +1 -0
- package/dist/components/Quote/index.d.ts +4 -0
- package/dist/components/Quote/index.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts +4 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts +4 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts +9 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +1 -0
- package/dist/components/{RouteErrors/RouteErrors.styles.d.ts → QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts} +1 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts +22 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/index.d.ts +2 -0
- package/dist/components/QuoteWarningsAndErrors/index.d.ts.map +1 -0
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/WidgetEvents.d.ts.map +1 -1
- package/dist/constants/errors.d.ts +4 -4
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/constants/messages.d.ts +1 -1
- package/dist/constants/warnings.d.ts +2 -2
- package/dist/constants/warnings.d.ts.map +1 -1
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts +4 -0
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +472 -0
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts +17 -0
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/index.d.ts +2 -0
- package/dist/containers/QuoteInfo/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/index.d.ts +2 -0
- package/dist/hooks/useConfirmSwap/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts +3 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +16 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +1 -0
- package/dist/hooks/{useConfirmSwap.d.ts → useConfirmSwap/useConfirmSwap.types.d.ts} +5 -7
- package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts.map +1 -0
- package/dist/hooks/{useFetchBestRoute.d.ts → useFetchQuote.d.ts} +3 -3
- package/dist/hooks/useFetchQuote.d.ts.map +1 -0
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +2 -2
- package/dist/hooks/useSwapInput.d.ts +4 -2
- package/dist/hooks/useSwapInput.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/store/app.d.ts +2 -2
- package/dist/store/{bestRoute.d.ts → quote.d.ts} +25 -20
- package/dist/store/quote.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/quote.d.ts +82 -0
- package/dist/types/quote.d.ts.map +1 -0
- package/dist/utils/numbers.d.ts +1 -1
- package/dist/utils/numbers.d.ts.map +1 -1
- package/dist/utils/{routing.d.ts → quote.d.ts} +16 -12
- package/dist/utils/quote.d.ts.map +1 -0
- package/dist/utils/settings.d.ts +1 -1
- package/dist/utils/swap.d.ts +22 -20
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/BlockchainsSection/BlockchainsSection.tsx +3 -3
- package/src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts +2 -64
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +23 -26
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.types.ts +1 -1
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +3 -3
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.tsx +6 -6
- package/src/components/{NoRoutes/NoRoutes.helper.ts → NoResult/NoResult.helpers.ts} +16 -9
- package/src/components/{NoRoutes/NoRoutes.styles.ts → NoResult/NoResult.styles.ts} +2 -0
- package/src/components/{NoRoutes/NoRoutes.tsx → NoResult/NoResult.tsx} +7 -12
- package/src/components/{NoRoutes/NoRoutes.types.ts → NoResult/NoResult.types.ts} +3 -2
- package/src/components/NoResult/index.ts +1 -0
- package/src/components/Quote/Quote.styles.ts +212 -0
- package/src/components/Quote/Quote.tsx +347 -0
- package/src/components/Quote/Quote.types.ts +16 -0
- package/src/components/Quote/QuoteSkeleton.styles.ts +110 -0
- package/src/components/Quote/QuoteSkeleton.tsx +108 -0
- package/src/components/Quote/QuoteSkeleton.types.ts +5 -0
- package/src/components/Quote/QuoteSummary.styles.ts +15 -0
- package/src/components/Quote/QuoteSummary.tsx +46 -0
- package/src/components/Quote/index.ts +3 -0
- package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +107 -0
- package/src/components/{RouteErrors/RouteErrorsModalItem.tsx → QuoteWarningsAndErrors/QuoteErrorsModalItem.tsx} +3 -3
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +67 -0
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +103 -0
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.ts +24 -0
- package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +77 -0
- package/src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx +38 -0
- package/src/components/QuoteWarningsAndErrors/index.ts +1 -0
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.tsx +13 -16
- package/src/components/SwitchFromAndTo.tsx +2 -2
- package/src/components/UpdateUrl.tsx +12 -12
- package/src/components/WidgetEvents.tsx +2 -3
- package/src/constants/errors.ts +8 -10
- package/src/constants/messages.ts +1 -1
- package/src/constants/warnings.ts +7 -7
- package/src/containers/QuoteInfo/QuoteInfo.styles.ts +15 -0
- package/src/containers/QuoteInfo/QuoteInfo.tsx +97 -0
- package/src/containers/QuoteInfo/QuoteInfo.types.ts +17 -0
- package/src/containers/QuoteInfo/index.ts +1 -0
- package/src/hooks/useConfirmSwap/index.ts +1 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +168 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.ts +136 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.types.ts +19 -0
- package/src/hooks/{useFetchBestRoute.ts → useFetchQuote.ts} +3 -3
- package/src/hooks/useNavigateBack.ts +3 -3
- package/src/hooks/useSwapInput.ts +57 -23
- package/src/hooks/useSyncStoresWithConfig.ts +2 -2
- package/src/pages/ConfirmSwapPage.tsx +58 -227
- package/src/pages/HistoryPage.tsx +1 -1
- package/src/pages/Home.tsx +52 -241
- package/src/pages/LanguagePage.tsx +1 -1
- package/src/pages/LiquiditySourcePage.tsx +1 -1
- package/src/pages/SelectBlockchainPage.tsx +3 -3
- package/src/pages/SelectSwapItemsPage.tsx +2 -2
- package/src/pages/SettingsPage.tsx +1 -1
- package/src/pages/ThemePage.tsx +1 -1
- package/src/pages/WalletsPage.tsx +1 -1
- package/src/store/{bestRoute.ts → quote.ts} +42 -38
- package/src/types/index.ts +1 -1
- package/src/types/quote.ts +107 -0
- package/src/utils/numbers.ts +1 -1
- package/src/utils/quote.ts +338 -0
- package/src/utils/swap.ts +99 -69
- package/src/utils/wallets.ts +2 -2
- package/dist/components/NoRoutes/NoRoutes.d.ts +0 -4
- package/dist/components/NoRoutes/NoRoutes.d.ts.map +0 -1
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts +0 -3
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts.map +0 -1
- package/dist/components/NoRoutes/NoRoutes.types.d.ts.map +0 -1
- package/dist/components/NoRoutes/index.d.ts +0 -2
- package/dist/components/NoRoutes/index.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrors.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.styles.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.types.d.ts +0 -24
- package/dist/components/RouteErrors/RouteErrors.types.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts.map +0 -1
- package/dist/components/RouteErrors/index.d.ts +0 -2
- package/dist/components/RouteErrors/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap.d.ts.map +0 -1
- package/dist/hooks/useFetchBestRoute.d.ts.map +0 -1
- package/dist/store/bestRoute.d.ts.map +0 -1
- package/dist/types/routing.d.ts +0 -65
- package/dist/types/routing.d.ts.map +0 -1
- package/dist/utils/routing.d.ts.map +0 -1
- package/src/components/NoRoutes/index.ts +0 -1
- package/src/components/RouteErrors/RouteErrors.tsx +0 -79
- package/src/components/RouteErrors/RouteErrors.types.ts +0 -29
- package/src/components/RouteErrors/RouteErrorsModal.tsx +0 -129
- package/src/components/RouteErrors/index.ts +0 -1
- package/src/hooks/useConfirmSwap.ts +0 -303
- package/src/types/routing.ts +0 -77
- package/src/utils/routing.ts +0 -321
- /package/src/components/{RouteErrors/RouteErrors.styles.ts → QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { UnknownPriceWarning } from '../../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
warning: UnknownPriceWarning;
|
|
8
|
+
};
|
|
9
|
+
export declare function UnknownPriceWarningModal(props: Props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=UnknownPriceWarningModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownPriceWarningModal.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,qBAsBpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteWarningsAndErrors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAqB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AA0C3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAsWlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEvents.d.ts","sourceRoot":"","sources":["../../src/components/WidgetEvents.tsx"],"names":[],"mappings":"AAcA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"WidgetEvents.d.ts","sourceRoot":"","sources":["../../src/components/WidgetEvents.tsx"],"names":[],"mappings":"AAcA,wBAAgB,YAAY,SA6D3B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { QuoteError } from '../types';
|
|
2
2
|
export declare const errorMessages: () => {
|
|
3
3
|
genericServerError: string;
|
|
4
4
|
liquiditySourcesError: {
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
noResultError: {
|
|
9
9
|
title: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
@@ -19,7 +19,7 @@ export declare const errorMessages: () => {
|
|
|
19
19
|
description: string;
|
|
20
20
|
confirmMessage: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
quoteUpdatedWithHighValueLoss: {
|
|
23
23
|
title: string;
|
|
24
24
|
};
|
|
25
25
|
unknownPriceError: {
|
|
@@ -29,5 +29,5 @@ export declare const errorMessages: () => {
|
|
|
29
29
|
confirmMessage: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function getQuoteErrorMessage(error: QuoteError): string;
|
|
33
33
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAM3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCzB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,UASrD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function
|
|
1
|
+
import type { QuoteUpdateWarning } from '../types';
|
|
2
|
+
export declare function getQuoteUpdateWarningMessage(warning: QuoteUpdateWarning): string;
|
|
3
3
|
//# sourceMappingURL=warnings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../src/constants/warnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../src/constants/warnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAMnD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB,UAmBvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/QuoteInfo/QuoteInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA8EzC"}
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
export declare const QuoteContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
2
|
+
sm: string;
|
|
3
|
+
md: string;
|
|
4
|
+
lg: string;
|
|
5
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
}, {
|
|
10
|
+
colors: {
|
|
11
|
+
primary: string;
|
|
12
|
+
primary500: string;
|
|
13
|
+
primary600: string;
|
|
14
|
+
secondary: string;
|
|
15
|
+
secondary100: string;
|
|
16
|
+
secondary200: string;
|
|
17
|
+
secondary300: string;
|
|
18
|
+
secondary400: string;
|
|
19
|
+
secondary500: string;
|
|
20
|
+
secondary600: string;
|
|
21
|
+
secondary700: string;
|
|
22
|
+
secondary800: string;
|
|
23
|
+
secondary900: string;
|
|
24
|
+
neutral: string;
|
|
25
|
+
neutral100: string;
|
|
26
|
+
neutral200: string;
|
|
27
|
+
neutral300: string;
|
|
28
|
+
neutral400: string;
|
|
29
|
+
neutral500: string;
|
|
30
|
+
neutral600: string;
|
|
31
|
+
neutral700: string;
|
|
32
|
+
neutral800: string;
|
|
33
|
+
neutral900: string;
|
|
34
|
+
error100: string;
|
|
35
|
+
error300: string;
|
|
36
|
+
error500: string;
|
|
37
|
+
error600: string;
|
|
38
|
+
error700: string;
|
|
39
|
+
warning100: string;
|
|
40
|
+
warning300: string;
|
|
41
|
+
warning500: string;
|
|
42
|
+
warning600: string;
|
|
43
|
+
warning700: string;
|
|
44
|
+
info: string;
|
|
45
|
+
info100: string;
|
|
46
|
+
info300: string;
|
|
47
|
+
info500: string;
|
|
48
|
+
info600: string;
|
|
49
|
+
info700: string;
|
|
50
|
+
success100: string;
|
|
51
|
+
success300: string;
|
|
52
|
+
success500: string;
|
|
53
|
+
success600: string;
|
|
54
|
+
success700: string;
|
|
55
|
+
background: string;
|
|
56
|
+
foreground: string;
|
|
57
|
+
};
|
|
58
|
+
space: {
|
|
59
|
+
0: string;
|
|
60
|
+
5: string;
|
|
61
|
+
10: string;
|
|
62
|
+
15: string;
|
|
63
|
+
20: string;
|
|
64
|
+
25: string;
|
|
65
|
+
30: string;
|
|
66
|
+
40: string;
|
|
67
|
+
46: string;
|
|
68
|
+
50: string;
|
|
69
|
+
60: string;
|
|
70
|
+
70: string;
|
|
71
|
+
80: string;
|
|
72
|
+
90: string;
|
|
73
|
+
100: string;
|
|
74
|
+
2: string;
|
|
75
|
+
4: string;
|
|
76
|
+
6: string;
|
|
77
|
+
8: string;
|
|
78
|
+
12: string;
|
|
79
|
+
16: string;
|
|
80
|
+
24: string;
|
|
81
|
+
28: string;
|
|
82
|
+
32: string;
|
|
83
|
+
};
|
|
84
|
+
radii: {
|
|
85
|
+
xs: string;
|
|
86
|
+
sm: string;
|
|
87
|
+
xm: string;
|
|
88
|
+
md: string;
|
|
89
|
+
xl: string;
|
|
90
|
+
lg: string;
|
|
91
|
+
primary: string;
|
|
92
|
+
secondary: string;
|
|
93
|
+
};
|
|
94
|
+
fontSizes: {
|
|
95
|
+
10: string;
|
|
96
|
+
12: string;
|
|
97
|
+
14: string;
|
|
98
|
+
16: string;
|
|
99
|
+
18: string;
|
|
100
|
+
20: string;
|
|
101
|
+
22: string;
|
|
102
|
+
24: string;
|
|
103
|
+
28: string;
|
|
104
|
+
32: string;
|
|
105
|
+
36: string;
|
|
106
|
+
40: string;
|
|
107
|
+
48: string;
|
|
108
|
+
};
|
|
109
|
+
fonts: {
|
|
110
|
+
primary: string;
|
|
111
|
+
widget: string;
|
|
112
|
+
};
|
|
113
|
+
fontWeights: {
|
|
114
|
+
regular: number;
|
|
115
|
+
medium: number;
|
|
116
|
+
semiBold: number;
|
|
117
|
+
bold: number;
|
|
118
|
+
};
|
|
119
|
+
lineHeights: {
|
|
120
|
+
12: string;
|
|
121
|
+
16: string;
|
|
122
|
+
20: string;
|
|
123
|
+
24: string;
|
|
124
|
+
26: string;
|
|
125
|
+
28: string;
|
|
126
|
+
30: string;
|
|
127
|
+
36: string;
|
|
128
|
+
40: string;
|
|
129
|
+
44: string;
|
|
130
|
+
52: string;
|
|
131
|
+
64: string;
|
|
132
|
+
};
|
|
133
|
+
letterSpacings: {};
|
|
134
|
+
sizes: {
|
|
135
|
+
4: string;
|
|
136
|
+
6: string;
|
|
137
|
+
8: string;
|
|
138
|
+
12: string;
|
|
139
|
+
16: string;
|
|
140
|
+
18: string;
|
|
141
|
+
20: string;
|
|
142
|
+
24: string;
|
|
143
|
+
28: string;
|
|
144
|
+
32: string;
|
|
145
|
+
36: string;
|
|
146
|
+
40: string;
|
|
147
|
+
45: string;
|
|
148
|
+
48: string;
|
|
149
|
+
};
|
|
150
|
+
borderWidths: {};
|
|
151
|
+
borderStyles: {};
|
|
152
|
+
shadows: {
|
|
153
|
+
s: string;
|
|
154
|
+
};
|
|
155
|
+
zIndices: {};
|
|
156
|
+
transitions: {};
|
|
157
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
158
|
+
export declare const FooterStepAlarm: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
159
|
+
sm: string;
|
|
160
|
+
md: string;
|
|
161
|
+
lg: string;
|
|
162
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
163
|
+
sm: string;
|
|
164
|
+
md: string;
|
|
165
|
+
lg: string;
|
|
166
|
+
}, {
|
|
167
|
+
colors: {
|
|
168
|
+
primary: string;
|
|
169
|
+
primary500: string;
|
|
170
|
+
primary600: string;
|
|
171
|
+
secondary: string;
|
|
172
|
+
secondary100: string;
|
|
173
|
+
secondary200: string;
|
|
174
|
+
secondary300: string;
|
|
175
|
+
secondary400: string;
|
|
176
|
+
secondary500: string;
|
|
177
|
+
secondary600: string;
|
|
178
|
+
secondary700: string;
|
|
179
|
+
secondary800: string;
|
|
180
|
+
secondary900: string;
|
|
181
|
+
neutral: string;
|
|
182
|
+
neutral100: string;
|
|
183
|
+
neutral200: string;
|
|
184
|
+
neutral300: string;
|
|
185
|
+
neutral400: string;
|
|
186
|
+
neutral500: string;
|
|
187
|
+
neutral600: string;
|
|
188
|
+
neutral700: string;
|
|
189
|
+
neutral800: string;
|
|
190
|
+
neutral900: string;
|
|
191
|
+
error100: string;
|
|
192
|
+
error300: string;
|
|
193
|
+
error500: string;
|
|
194
|
+
error600: string;
|
|
195
|
+
error700: string;
|
|
196
|
+
warning100: string;
|
|
197
|
+
warning300: string;
|
|
198
|
+
warning500: string;
|
|
199
|
+
warning600: string;
|
|
200
|
+
warning700: string;
|
|
201
|
+
info: string;
|
|
202
|
+
info100: string;
|
|
203
|
+
info300: string;
|
|
204
|
+
info500: string;
|
|
205
|
+
info600: string;
|
|
206
|
+
info700: string;
|
|
207
|
+
success100: string;
|
|
208
|
+
success300: string;
|
|
209
|
+
success500: string;
|
|
210
|
+
success600: string;
|
|
211
|
+
success700: string;
|
|
212
|
+
background: string;
|
|
213
|
+
foreground: string;
|
|
214
|
+
};
|
|
215
|
+
space: {
|
|
216
|
+
0: string;
|
|
217
|
+
5: string;
|
|
218
|
+
10: string;
|
|
219
|
+
15: string;
|
|
220
|
+
20: string;
|
|
221
|
+
25: string;
|
|
222
|
+
30: string;
|
|
223
|
+
40: string;
|
|
224
|
+
46: string;
|
|
225
|
+
50: string;
|
|
226
|
+
60: string;
|
|
227
|
+
70: string;
|
|
228
|
+
80: string;
|
|
229
|
+
90: string;
|
|
230
|
+
100: string;
|
|
231
|
+
2: string;
|
|
232
|
+
4: string;
|
|
233
|
+
6: string;
|
|
234
|
+
8: string;
|
|
235
|
+
12: string;
|
|
236
|
+
16: string;
|
|
237
|
+
24: string;
|
|
238
|
+
28: string;
|
|
239
|
+
32: string;
|
|
240
|
+
};
|
|
241
|
+
radii: {
|
|
242
|
+
xs: string;
|
|
243
|
+
sm: string;
|
|
244
|
+
xm: string;
|
|
245
|
+
md: string;
|
|
246
|
+
xl: string;
|
|
247
|
+
lg: string;
|
|
248
|
+
primary: string;
|
|
249
|
+
secondary: string;
|
|
250
|
+
};
|
|
251
|
+
fontSizes: {
|
|
252
|
+
10: string;
|
|
253
|
+
12: string;
|
|
254
|
+
14: string;
|
|
255
|
+
16: string;
|
|
256
|
+
18: string;
|
|
257
|
+
20: string;
|
|
258
|
+
22: string;
|
|
259
|
+
24: string;
|
|
260
|
+
28: string;
|
|
261
|
+
32: string;
|
|
262
|
+
36: string;
|
|
263
|
+
40: string;
|
|
264
|
+
48: string;
|
|
265
|
+
};
|
|
266
|
+
fonts: {
|
|
267
|
+
primary: string;
|
|
268
|
+
widget: string;
|
|
269
|
+
};
|
|
270
|
+
fontWeights: {
|
|
271
|
+
regular: number;
|
|
272
|
+
medium: number;
|
|
273
|
+
semiBold: number;
|
|
274
|
+
bold: number;
|
|
275
|
+
};
|
|
276
|
+
lineHeights: {
|
|
277
|
+
12: string;
|
|
278
|
+
16: string;
|
|
279
|
+
20: string;
|
|
280
|
+
24: string;
|
|
281
|
+
26: string;
|
|
282
|
+
28: string;
|
|
283
|
+
30: string;
|
|
284
|
+
36: string;
|
|
285
|
+
40: string;
|
|
286
|
+
44: string;
|
|
287
|
+
52: string;
|
|
288
|
+
64: string;
|
|
289
|
+
};
|
|
290
|
+
letterSpacings: {};
|
|
291
|
+
sizes: {
|
|
292
|
+
4: string;
|
|
293
|
+
6: string;
|
|
294
|
+
8: string;
|
|
295
|
+
12: string;
|
|
296
|
+
16: string;
|
|
297
|
+
18: string;
|
|
298
|
+
20: string;
|
|
299
|
+
24: string;
|
|
300
|
+
28: string;
|
|
301
|
+
32: string;
|
|
302
|
+
36: string;
|
|
303
|
+
40: string;
|
|
304
|
+
45: string;
|
|
305
|
+
48: string;
|
|
306
|
+
};
|
|
307
|
+
borderWidths: {};
|
|
308
|
+
borderStyles: {};
|
|
309
|
+
shadows: {
|
|
310
|
+
s: string;
|
|
311
|
+
};
|
|
312
|
+
zIndices: {};
|
|
313
|
+
transitions: {};
|
|
314
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
315
|
+
export declare const FooterAlert: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
316
|
+
sm: string;
|
|
317
|
+
md: string;
|
|
318
|
+
lg: string;
|
|
319
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
320
|
+
sm: string;
|
|
321
|
+
md: string;
|
|
322
|
+
lg: string;
|
|
323
|
+
}, {
|
|
324
|
+
colors: {
|
|
325
|
+
primary: string;
|
|
326
|
+
primary500: string;
|
|
327
|
+
primary600: string;
|
|
328
|
+
secondary: string;
|
|
329
|
+
secondary100: string;
|
|
330
|
+
secondary200: string;
|
|
331
|
+
secondary300: string;
|
|
332
|
+
secondary400: string;
|
|
333
|
+
secondary500: string;
|
|
334
|
+
secondary600: string;
|
|
335
|
+
secondary700: string;
|
|
336
|
+
secondary800: string;
|
|
337
|
+
secondary900: string;
|
|
338
|
+
neutral: string;
|
|
339
|
+
neutral100: string;
|
|
340
|
+
neutral200: string;
|
|
341
|
+
neutral300: string;
|
|
342
|
+
neutral400: string;
|
|
343
|
+
neutral500: string;
|
|
344
|
+
neutral600: string;
|
|
345
|
+
neutral700: string;
|
|
346
|
+
neutral800: string;
|
|
347
|
+
neutral900: string;
|
|
348
|
+
error100: string;
|
|
349
|
+
error300: string;
|
|
350
|
+
error500: string;
|
|
351
|
+
error600: string;
|
|
352
|
+
error700: string;
|
|
353
|
+
warning100: string;
|
|
354
|
+
warning300: string;
|
|
355
|
+
warning500: string;
|
|
356
|
+
warning600: string;
|
|
357
|
+
warning700: string;
|
|
358
|
+
info: string;
|
|
359
|
+
info100: string;
|
|
360
|
+
info300: string;
|
|
361
|
+
info500: string;
|
|
362
|
+
info600: string;
|
|
363
|
+
info700: string;
|
|
364
|
+
success100: string;
|
|
365
|
+
success300: string;
|
|
366
|
+
success500: string;
|
|
367
|
+
success600: string;
|
|
368
|
+
success700: string;
|
|
369
|
+
background: string;
|
|
370
|
+
foreground: string;
|
|
371
|
+
};
|
|
372
|
+
space: {
|
|
373
|
+
0: string;
|
|
374
|
+
5: string;
|
|
375
|
+
10: string;
|
|
376
|
+
15: string;
|
|
377
|
+
20: string;
|
|
378
|
+
25: string;
|
|
379
|
+
30: string;
|
|
380
|
+
40: string;
|
|
381
|
+
46: string;
|
|
382
|
+
50: string;
|
|
383
|
+
60: string;
|
|
384
|
+
70: string;
|
|
385
|
+
80: string;
|
|
386
|
+
90: string;
|
|
387
|
+
100: string;
|
|
388
|
+
2: string;
|
|
389
|
+
4: string;
|
|
390
|
+
6: string;
|
|
391
|
+
8: string;
|
|
392
|
+
12: string;
|
|
393
|
+
16: string;
|
|
394
|
+
24: string;
|
|
395
|
+
28: string;
|
|
396
|
+
32: string;
|
|
397
|
+
};
|
|
398
|
+
radii: {
|
|
399
|
+
xs: string;
|
|
400
|
+
sm: string;
|
|
401
|
+
xm: string;
|
|
402
|
+
md: string;
|
|
403
|
+
xl: string;
|
|
404
|
+
lg: string;
|
|
405
|
+
primary: string;
|
|
406
|
+
secondary: string;
|
|
407
|
+
};
|
|
408
|
+
fontSizes: {
|
|
409
|
+
10: string;
|
|
410
|
+
12: string;
|
|
411
|
+
14: string;
|
|
412
|
+
16: string;
|
|
413
|
+
18: string;
|
|
414
|
+
20: string;
|
|
415
|
+
22: string;
|
|
416
|
+
24: string;
|
|
417
|
+
28: string;
|
|
418
|
+
32: string;
|
|
419
|
+
36: string;
|
|
420
|
+
40: string;
|
|
421
|
+
48: string;
|
|
422
|
+
};
|
|
423
|
+
fonts: {
|
|
424
|
+
primary: string;
|
|
425
|
+
widget: string;
|
|
426
|
+
};
|
|
427
|
+
fontWeights: {
|
|
428
|
+
regular: number;
|
|
429
|
+
medium: number;
|
|
430
|
+
semiBold: number;
|
|
431
|
+
bold: number;
|
|
432
|
+
};
|
|
433
|
+
lineHeights: {
|
|
434
|
+
12: string;
|
|
435
|
+
16: string;
|
|
436
|
+
20: string;
|
|
437
|
+
24: string;
|
|
438
|
+
26: string;
|
|
439
|
+
28: string;
|
|
440
|
+
30: string;
|
|
441
|
+
36: string;
|
|
442
|
+
40: string;
|
|
443
|
+
44: string;
|
|
444
|
+
52: string;
|
|
445
|
+
64: string;
|
|
446
|
+
};
|
|
447
|
+
letterSpacings: {};
|
|
448
|
+
sizes: {
|
|
449
|
+
4: string;
|
|
450
|
+
6: string;
|
|
451
|
+
8: string;
|
|
452
|
+
12: string;
|
|
453
|
+
16: string;
|
|
454
|
+
18: string;
|
|
455
|
+
20: string;
|
|
456
|
+
24: string;
|
|
457
|
+
28: string;
|
|
458
|
+
32: string;
|
|
459
|
+
36: string;
|
|
460
|
+
40: string;
|
|
461
|
+
45: string;
|
|
462
|
+
48: string;
|
|
463
|
+
};
|
|
464
|
+
borderWidths: {};
|
|
465
|
+
borderStyles: {};
|
|
466
|
+
shadows: {
|
|
467
|
+
s: string;
|
|
468
|
+
};
|
|
469
|
+
zIndices: {};
|
|
470
|
+
transitions: {};
|
|
471
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
472
|
+
//# sourceMappingURL=QuoteInfo.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteInfo.styles.d.ts","sourceRoot":"","sources":["../../../src/containers/QuoteInfo/QuoteInfo.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAE1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGtB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { QuoteProps } from '../../components/Quote/Quote.types';
|
|
2
|
+
import type { QuoteError, QuoteWarning } from '../../types';
|
|
3
|
+
import type { BestRouteResponse } from 'rango-sdk';
|
|
4
|
+
export type PropTypes = {
|
|
5
|
+
quote: BestRouteResponse | null;
|
|
6
|
+
type: QuoteProps['type'];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
error: QuoteError | null;
|
|
9
|
+
warning: QuoteWarning | null;
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
refetchQuote: () => void;
|
|
12
|
+
showWarningModal: boolean;
|
|
13
|
+
onOpenWarningModal: () => void;
|
|
14
|
+
onCloseWarningModal: () => void;
|
|
15
|
+
onConfirmWarningModal: () => void;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=QuoteInfo.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/QuoteInfo/QuoteInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/QuoteInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmSwap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmSwap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmSwap/useConfirmSwap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,wBAAwB,CAAC;AAqBlE,wBAAgB,cAAc,IAAI,WAAW,CAkH5C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConfirmSwapFetchResult } from './useConfirmSwap.types';
|
|
2
|
+
import type { ConfirmSwapWarnings, Wallet } from '../../types';
|
|
3
|
+
import type { BestRouteResponse, Token } from 'rango-sdk';
|
|
4
|
+
/**
|
|
5
|
+
* A request can be successful but in body of the response, it can be some case which is considered as failed.
|
|
6
|
+
*/
|
|
7
|
+
export declare function throwErrorIfResponseIsNotValid(response: BestRouteResponse): BestRouteResponse;
|
|
8
|
+
export declare function generateWarnings(previousQuote: BestRouteResponse, currentQuote: BestRouteResponse, params: {
|
|
9
|
+
fromToken: Token;
|
|
10
|
+
toToken: Token;
|
|
11
|
+
tokens: Token[];
|
|
12
|
+
selectedWallets: Wallet[];
|
|
13
|
+
userSlippage: number;
|
|
14
|
+
}): ConfirmSwapWarnings;
|
|
15
|
+
export declare function handleQuoteErrors(error: any): ConfirmSwapFetchResult;
|
|
16
|
+
//# sourceMappingURL=useConfirmSwap.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmSwap.helpers.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAuB1D;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,iBAAiB,qBAsCzE;AAED,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,iBAAiB,EAC/B,MAAM,EAAE;IACN,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,mBAAmB,CA6DrB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,sBAAsB,CA0BpE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PendingSwap } from '
|
|
1
|
+
import type { ConfirmSwapWarnings, QuoteError, Wallet } from '../../types';
|
|
2
|
+
import type { PendingSwap } from 'rango-types/lib';
|
|
3
3
|
export type ConfirmSwapFetchResult = {
|
|
4
4
|
swap: PendingSwap | null;
|
|
5
|
-
error:
|
|
5
|
+
error: QuoteError | null;
|
|
6
6
|
warnings: ConfirmSwapWarnings | null;
|
|
7
7
|
};
|
|
8
8
|
export type ConfirmSwap = {
|
|
@@ -10,10 +10,8 @@ export type ConfirmSwap = {
|
|
|
10
10
|
fetch: (params: Params) => Promise<ConfirmSwapFetchResult>;
|
|
11
11
|
cancelFetch: () => void;
|
|
12
12
|
};
|
|
13
|
-
type Params = {
|
|
13
|
+
export type Params = {
|
|
14
14
|
selectedWallets: Wallet[];
|
|
15
15
|
customDestination?: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=useConfirmSwap.d.ts.map
|
|
17
|
+
//# sourceMappingURL=useConfirmSwap.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmSwap.types.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmSwap/useConfirmSwap.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC3D,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|