@rango-dev/widget-embedded 0.17.1-next.9 → 0.19.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 +4 -0
- package/dist/QueueManager.d.ts +1 -2
- package/dist/QueueManager.d.ts.map +1 -1
- package/dist/Wallets.d.ts +0 -1
- package/dist/Wallets.d.ts.map +1 -1
- package/dist/Widget.d.ts +1 -1
- package/dist/Widget.d.ts.map +1 -1
- package/dist/components/AppRouter.d.ts +2 -0
- package/dist/components/AppRouter.d.ts.map +1 -1
- package/dist/components/AppRoutes.d.ts +6 -1
- package/dist/components/AppRoutes.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts +3 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts +3 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/WalletList.type.d.ts +4 -1
- package/dist/components/ConfirmWalletsModal/WalletList.type.d.ts.map +1 -1
- package/dist/components/NoRoutes/NoRoutes.d.ts +4 -0
- package/dist/components/NoRoutes/NoRoutes.d.ts.map +1 -0
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts +3 -0
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts.map +1 -0
- package/dist/components/{NoResult/NoResult.styles.d.ts → NoRoutes/NoRoutes.styles.d.ts} +1 -1
- package/dist/components/{NoResult/NoResult.styles.d.ts.map → NoRoutes/NoRoutes.styles.d.ts.map} +1 -1
- package/dist/components/{NoResult/NoResult.types.d.ts → NoRoutes/NoRoutes.types.d.ts} +3 -3
- package/dist/components/NoRoutes/NoRoutes.types.d.ts.map +1 -0
- package/dist/components/NoRoutes/index.d.ts +2 -0
- package/dist/components/NoRoutes/index.d.ts.map +1 -0
- package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/RouteErrors/RouteErrors.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrors.d.ts.map +1 -0
- package/dist/components/{QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts → RouteErrors/RouteErrors.styles.d.ts} +1 -1
- package/dist/components/RouteErrors/RouteErrors.styles.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrors.types.d.ts +24 -0
- package/dist/components/RouteErrors/RouteErrors.types.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts.map +1 -0
- package/dist/components/RouteErrors/index.d.ts +2 -0
- package/dist/components/RouteErrors/index.d.ts.map +1 -0
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.d.ts.map +1 -1
- package/dist/components/UpdateUrl.d.ts +6 -1
- package/dist/components/UpdateUrl.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/searchParams.d.ts +1 -2
- package/dist/constants/searchParams.d.ts.map +1 -1
- package/dist/constants/warnings.d.ts +2 -2
- package/dist/constants/warnings.d.ts.map +1 -1
- package/dist/hooks/{useConfirmSwap/useConfirmSwap.types.d.ts → useConfirmSwap.d.ts} +7 -5
- package/dist/hooks/useConfirmSwap.d.ts.map +1 -0
- package/dist/hooks/{useFetchQuote.d.ts → useFetchBestRoute.d.ts} +3 -3
- package/dist/hooks/useFetchBestRoute.d.ts.map +1 -0
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +2 -2
- package/dist/hooks/useSwapInput.d.ts +2 -4
- package/dist/hooks/useSwapInput.d.ts.map +1 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts +2 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/pages/ConfirmSwapPage.d.ts +6 -1
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/pages/LiquiditySourcePage.d.ts +2 -1
- package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
- package/dist/pages/SelectBlockchainPage.d.ts.map +1 -1
- package/dist/pages/SettingsPage.d.ts +6 -1
- package/dist/pages/SettingsPage.d.ts.map +1 -1
- package/dist/pages/WalletsPage.d.ts +8 -1
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/store/app.d.ts +23 -5
- package/dist/store/app.d.ts.map +1 -1
- package/dist/store/{quote.d.ts → bestRoute.d.ts} +27 -39
- package/dist/store/bestRoute.d.ts.map +1 -0
- package/dist/store/meta.d.ts +23 -0
- package/dist/store/meta.d.ts.map +1 -0
- package/dist/store/settings.d.ts +2 -3
- package/dist/store/settings.d.ts.map +1 -1
- package/dist/store/slices/config.d.ts +2 -3
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/store/slices/data.d.ts +0 -3
- package/dist/store/slices/data.d.ts.map +1 -1
- package/dist/store/wallets.d.ts +4 -5
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/types/config.d.ts +5 -5
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/routing.d.ts +65 -0
- package/dist/types/routing.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/{quote.d.ts → routing.d.ts} +12 -16
- package/dist/utils/routing.d.ts.map +1 -0
- package/dist/utils/settings.d.ts +2 -3
- package/dist/utils/settings.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +22 -25
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +2 -2
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/QueueManager.tsx +14 -14
- package/src/Wallets.tsx +15 -35
- package/src/Widget.tsx +24 -11
- package/src/components/AppRouter.tsx +5 -6
- package/src/components/AppRoutes.tsx +39 -6
- package/src/components/BlockchainList/BlockchainList.tsx +4 -4
- package/src/components/BlockchainsSection/BlockchainsSection.tsx +7 -7
- package/src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts +64 -2
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +40 -28
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.types.ts +3 -1
- package/src/components/ConfirmWalletsModal/WalletList.tsx +5 -6
- package/src/components/ConfirmWalletsModal/WalletList.type.ts +4 -1
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +3 -3
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.tsx +6 -6
- package/src/components/{NoResult/NoResult.helpers.ts → NoRoutes/NoRoutes.helper.ts} +9 -16
- package/src/components/{NoResult/NoResult.styles.ts → NoRoutes/NoRoutes.styles.ts} +0 -2
- package/src/components/{NoResult/NoResult.tsx → NoRoutes/NoRoutes.tsx} +12 -10
- package/src/components/{NoResult/NoResult.types.ts → NoRoutes/NoRoutes.types.ts} +2 -3
- package/src/components/NoRoutes/index.ts +1 -0
- package/src/components/NotificationContent/NotificationContent.tsx +2 -3
- package/src/components/RouteErrors/RouteErrors.tsx +79 -0
- package/src/components/RouteErrors/RouteErrors.types.ts +29 -0
- package/src/components/RouteErrors/RouteErrorsModal.tsx +129 -0
- package/src/components/{QuoteWarningsAndErrors/QuoteErrorsModalItem.tsx → RouteErrors/RouteErrorsModalItem.tsx} +3 -3
- package/src/components/RouteErrors/index.ts +1 -0
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.tsx +22 -18
- package/src/components/SwitchFromAndTo.tsx +2 -2
- package/src/components/TokenList/TokenList.tsx +6 -5
- package/src/components/UpdateUrl.tsx +26 -36
- package/src/components/WidgetEvents.tsx +2 -4
- package/src/constants/errors.ts +10 -8
- package/src/constants/messages.ts +1 -1
- package/src/constants/searchParams.ts +0 -1
- package/src/constants/warnings.ts +7 -7
- package/src/hooks/useConfirmSwap.ts +303 -0
- package/src/hooks/{useFetchQuote.ts → useFetchBestRoute.ts} +3 -3
- package/src/hooks/useNavigateBack.ts +3 -3
- package/src/hooks/useSwapInput.ts +23 -58
- package/src/hooks/useSyncStoresWithConfig.ts +19 -22
- package/src/hooks/useWalletList.ts +5 -3
- package/src/pages/ConfirmSwapPage.tsx +235 -58
- package/src/pages/HistoryPage.tsx +1 -1
- package/src/pages/Home.tsx +247 -58
- package/src/pages/LanguagePage.tsx +1 -1
- package/src/pages/LiquiditySourcePage.tsx +32 -23
- package/src/pages/SelectBlockchainPage.tsx +7 -6
- package/src/pages/SelectSwapItemsPage.tsx +5 -5
- package/src/pages/SettingsPage.tsx +13 -9
- package/src/pages/SwapDetailsPage.tsx +3 -3
- package/src/pages/ThemePage.tsx +1 -1
- package/src/pages/WalletsPage.tsx +12 -5
- package/src/store/app.ts +6 -18
- package/src/store/{quote.ts → bestRoute.ts} +60 -68
- package/src/store/meta.ts +39 -0
- package/src/store/settings.ts +4 -7
- package/src/store/slices/config.ts +15 -25
- package/src/store/slices/data.ts +29 -64
- package/src/store/wallets.ts +8 -11
- package/src/types/config.ts +5 -5
- package/src/types/index.ts +1 -1
- package/src/types/routing.ts +77 -0
- package/src/utils/numbers.ts +1 -1
- package/src/utils/routing.ts +321 -0
- package/src/utils/settings.ts +7 -8
- package/src/utils/swap.ts +85 -113
- package/src/utils/wallets.ts +17 -29
- package/dist/components/NoResult/NoResult.d.ts +0 -4
- package/dist/components/NoResult/NoResult.d.ts.map +0 -1
- package/dist/components/NoResult/NoResult.helpers.d.ts +0 -4
- package/dist/components/NoResult/NoResult.helpers.d.ts.map +0 -1
- package/dist/components/NoResult/NoResult.types.d.ts.map +0 -1
- package/dist/components/NoResult/index.d.ts +0 -2
- package/dist/components/NoResult/index.d.ts.map +0 -1
- package/dist/components/Quote/Quote.d.ts +0 -4
- package/dist/components/Quote/Quote.d.ts.map +0 -1
- package/dist/components/Quote/Quote.styles.d.ts +0 -1429
- package/dist/components/Quote/Quote.styles.d.ts.map +0 -1
- package/dist/components/Quote/Quote.types.d.ts +0 -22
- package/dist/components/Quote/Quote.types.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSkeleton.d.ts +0 -4
- package/dist/components/Quote/QuoteSkeleton.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSkeleton.styles.d.ts +0 -319
- package/dist/components/Quote/QuoteSkeleton.styles.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSkeleton.types.d.ts +0 -6
- package/dist/components/Quote/QuoteSkeleton.types.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSummary.d.ts +0 -11
- package/dist/components/Quote/QuoteSummary.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSummary.styles.d.ts +0 -158
- package/dist/components/Quote/QuoteSummary.styles.d.ts.map +0 -1
- package/dist/components/Quote/index.d.ts +0 -4
- package/dist/components/Quote/index.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts +0 -4
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts +0 -4
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts +0 -9
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts +0 -22
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/index.d.ts +0 -2
- package/dist/components/QuoteWarningsAndErrors/index.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts +0 -4
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +0 -472
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts +0 -17
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/index.d.ts +0 -2
- package/dist/containers/QuoteInfo/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/index.d.ts +0 -2
- package/dist/hooks/useConfirmSwap/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts +0 -3
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +0 -16
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts.map +0 -1
- package/dist/hooks/useFetchQuote.d.ts.map +0 -1
- package/dist/hooks/useForceAutoConnect.d.ts +0 -2
- package/dist/hooks/useForceAutoConnect.d.ts.map +0 -1
- package/dist/store/AppStore.d.ts +0 -11
- package/dist/store/AppStore.d.ts.map +0 -1
- package/dist/store/quote.d.ts.map +0 -1
- package/dist/types/quote.d.ts +0 -82
- package/dist/types/quote.d.ts.map +0 -1
- package/dist/utils/quote.d.ts.map +0 -1
- package/src/components/NoResult/index.ts +0 -1
- package/src/components/Quote/Quote.styles.ts +0 -212
- package/src/components/Quote/Quote.tsx +0 -345
- package/src/components/Quote/Quote.types.ts +0 -16
- package/src/components/Quote/QuoteSkeleton.styles.ts +0 -110
- package/src/components/Quote/QuoteSkeleton.tsx +0 -108
- package/src/components/Quote/QuoteSkeleton.types.ts +0 -5
- package/src/components/Quote/QuoteSummary.styles.ts +0 -15
- package/src/components/Quote/QuoteSummary.tsx +0 -46
- package/src/components/Quote/index.ts +0 -3
- package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +0 -107
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +0 -67
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +0 -103
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.ts +0 -24
- package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +0 -77
- package/src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx +0 -38
- package/src/components/QuoteWarningsAndErrors/index.ts +0 -1
- package/src/containers/QuoteInfo/QuoteInfo.styles.ts +0 -15
- package/src/containers/QuoteInfo/QuoteInfo.tsx +0 -97
- package/src/containers/QuoteInfo/QuoteInfo.types.ts +0 -17
- package/src/containers/QuoteInfo/index.ts +0 -1
- package/src/hooks/useConfirmSwap/index.ts +0 -1
- package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +0 -168
- package/src/hooks/useConfirmSwap/useConfirmSwap.ts +0 -136
- package/src/hooks/useConfirmSwap/useConfirmSwap.types.ts +0 -19
- package/src/hooks/useForceAutoConnect.ts +0 -27
- package/src/store/AppStore.tsx +0 -35
- package/src/types/quote.ts +0 -107
- package/src/utils/quote.ts +0 -338
- /package/src/components/{QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts → RouteErrors/RouteErrors.styles.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|
|
@@ -1,472 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/QuoteInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmSwap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchQuote.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetchQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAMrE,UAAU,aAAa;IACrB,KAAK,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACrE,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,aAAa,IAAI,aAAa,CAyB7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForceAutoConnect.d.ts","sourceRoot":"","sources":["../../src/hooks/useForceAutoConnect.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,IAAI,IAAI,CAoB1C"}
|
package/dist/store/AppStore.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { WidgetConfig } from '../types';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
type AppStoreProviderProps = PropsWithChildren<{
|
|
5
|
-
config?: WidgetConfig;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const AppStoreContext: React.Context<import("zustand").UseBoundStore<import("zustand").StoreApi<import("./app").AppStoreState>> | null>;
|
|
8
|
-
export declare function useAppStore(): import("./app").AppStoreState;
|
|
9
|
-
export declare function AppStoreProvider(props: AppStoreProviderProps): React.JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=AppStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppStore.d.ts","sourceRoot":"","sources":["../../src/store/AppStore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAA4C,MAAM,OAAO,CAAC;AAKjE,KAAK,qBAAqB,GAAG,iBAAiB,CAAC;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,kHAAuC,CAAC;AAEpE,wBAAgB,WAAW,kCAQ1B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAY5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../src/store/quote.ts"],"names":[],"mappings":"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"}
|
package/dist/types/quote.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { PriceImpactWarningLevel } from '@rango-dev/ui';
|
|
2
|
-
import type BigNumber from 'bignumber.js';
|
|
3
|
-
import type { SwapResult } from 'rango-sdk';
|
|
4
|
-
export declare enum QuoteErrorType {
|
|
5
|
-
NO_RESULT = 0,
|
|
6
|
-
REQUEST_FAILED = 1,
|
|
7
|
-
REQUEST_CANCELED = 2,
|
|
8
|
-
BRIDGE_LIMIT = 3,
|
|
9
|
-
INSUFFICIENT_SLIPPAGE = 4
|
|
10
|
-
}
|
|
11
|
-
export type NoResultError = {
|
|
12
|
-
type: QuoteErrorType.NO_RESULT;
|
|
13
|
-
diagnosisMessage?: string;
|
|
14
|
-
};
|
|
15
|
-
export type BridgeLimitError = {
|
|
16
|
-
type: QuoteErrorType.BRIDGE_LIMIT;
|
|
17
|
-
swap: SwapResult;
|
|
18
|
-
recommendation: string;
|
|
19
|
-
fromAmountRangeError: string;
|
|
20
|
-
};
|
|
21
|
-
export type InsufficientSlippageError = {
|
|
22
|
-
type: QuoteErrorType.INSUFFICIENT_SLIPPAGE;
|
|
23
|
-
recommendedSlippages: RecommendedSlippages | null;
|
|
24
|
-
minRequiredSlippage: string | null;
|
|
25
|
-
};
|
|
26
|
-
export type QuoteRequestFailed = {
|
|
27
|
-
type: QuoteErrorType.REQUEST_FAILED;
|
|
28
|
-
};
|
|
29
|
-
export type QuoteRequestCanceled = {
|
|
30
|
-
type: QuoteErrorType.REQUEST_CANCELED;
|
|
31
|
-
};
|
|
32
|
-
export type QuoteError = NoResultError | BridgeLimitError | InsufficientSlippageError | QuoteRequestFailed | QuoteRequestCanceled;
|
|
33
|
-
export declare enum QuoteWarningType {
|
|
34
|
-
HIGH_VALUE_LOSS = 0,
|
|
35
|
-
UNKNOWN_PRICE = 1,
|
|
36
|
-
INSUFFICIENT_SLIPPAGE = 2,
|
|
37
|
-
HIGH_SLIPPAGE = 3
|
|
38
|
-
}
|
|
39
|
-
export declare enum QuoteUpdateType {
|
|
40
|
-
QUOTE_UPDATED = 0,
|
|
41
|
-
QUOTE_SWAPPERS_UPDATED = 1,
|
|
42
|
-
QUOTE_COINS_UPDATED = 2,
|
|
43
|
-
QUOTE_AND_OUTPUT_AMOUNT_UPDATED = 3,
|
|
44
|
-
QUOTE_UPDATED_WITH_HIGH_VALUE_LOSS = 4
|
|
45
|
-
}
|
|
46
|
-
export type QuoteUpdateWarning = {
|
|
47
|
-
type: QuoteUpdateType.QUOTE_AND_OUTPUT_AMOUNT_UPDATED;
|
|
48
|
-
newOutputAmount: string;
|
|
49
|
-
percentageChange: string;
|
|
50
|
-
} | {
|
|
51
|
-
type: Exclude<QuoteUpdateType, QuoteUpdateType.QUOTE_AND_OUTPUT_AMOUNT_UPDATED>;
|
|
52
|
-
};
|
|
53
|
-
export type RecommendedSlippages = Map<number, string>;
|
|
54
|
-
export type InsufficientSlippageWarning = {
|
|
55
|
-
type: QuoteWarningType.INSUFFICIENT_SLIPPAGE;
|
|
56
|
-
recommendedSlippages: RecommendedSlippages | null;
|
|
57
|
-
minRequiredSlippage: string | null;
|
|
58
|
-
};
|
|
59
|
-
export type HighSlippageWarning = {
|
|
60
|
-
type: QuoteWarningType.HIGH_SLIPPAGE;
|
|
61
|
-
slippage: string | null;
|
|
62
|
-
};
|
|
63
|
-
export type HighValueLossWarning = {
|
|
64
|
-
type: QuoteWarningType.HIGH_VALUE_LOSS;
|
|
65
|
-
warningLevel: PriceImpactWarningLevel;
|
|
66
|
-
inputUsdValue: BigNumber;
|
|
67
|
-
outputUsdValue: BigNumber;
|
|
68
|
-
totalFee: BigNumber;
|
|
69
|
-
priceImpact: number;
|
|
70
|
-
};
|
|
71
|
-
export type UnknownPriceWarning = {
|
|
72
|
-
type: QuoteWarningType.UNKNOWN_PRICE;
|
|
73
|
-
};
|
|
74
|
-
export type QuoteWarning = HighValueLossWarning | InsufficientSlippageWarning | HighSlippageWarning | UnknownPriceWarning;
|
|
75
|
-
export type ConfirmSwapWarnings = {
|
|
76
|
-
quote: QuoteWarning | null;
|
|
77
|
-
quoteUpdate: QuoteUpdateWarning | null;
|
|
78
|
-
balance: {
|
|
79
|
-
messages: string[];
|
|
80
|
-
} | null;
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=quote.d.ts.map
|