@rango-dev/widget-embedded 0.1.20-next.0 → 0.1.20-next.2
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/QueueManager.d.ts +3 -3
- package/dist/QueueManager.d.ts.map +1 -1
- package/dist/Widget.d.ts +8 -0
- package/dist/Widget.d.ts.map +1 -0
- package/dist/components/AppRouter.d.ts +7 -7
- package/dist/components/AppRouter.d.ts.map +1 -1
- package/dist/components/AppRoutes.d.ts +7 -7
- package/dist/components/AppRoutes.d.ts.map +1 -1
- package/dist/components/BottomLogo.d.ts +2 -2
- package/dist/components/BottomLogo.d.ts.map +1 -1
- package/dist/components/ChangeSlippageButton.d.ts +2 -2
- package/dist/components/ChangeSlippageButton.d.ts.map +1 -1
- package/dist/components/ConfirmSwapErrors.d.ts +3 -3
- package/dist/components/ConfirmSwapErrors.d.ts.map +1 -1
- package/dist/components/ConfirmSwapWarnings.d.ts +2 -2
- package/dist/components/ConfirmSwapWarnings.d.ts.map +1 -1
- package/dist/components/Footer.d.ts +111 -111
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/HeaderButtons.d.ts +6 -6
- package/dist/components/HeaderButtons.d.ts.map +1 -1
- package/dist/components/Layout.d.ts +6 -6
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/PercentageChange.d.ts +8 -8
- package/dist/components/PercentageChange.d.ts.map +1 -1
- package/dist/components/RoutesOverview.d.ts +119 -119
- package/dist/components/RoutesOverview.d.ts.map +1 -1
- package/dist/components/SwapDetailsPlaceholder.d.ts +119 -119
- package/dist/components/SwapDetailsPlaceholder.d.ts.map +1 -1
- package/dist/components/SwitchFromAndTo.d.ts +3 -3
- package/dist/components/SwitchFromAndTo.d.ts.map +1 -1
- package/dist/components/TokenInfo.d.ts +17 -17
- package/dist/components/TokenInfo.d.ts.map +1 -1
- package/dist/components/TokenPreview.d.ts +20 -20
- package/dist/components/TokenPreview.d.ts.map +1 -1
- package/dist/components/UpdateUrl.d.ts +1 -1
- package/dist/components/UpdateUrl.d.ts.map +1 -1
- package/dist/components/warnings/BalanceErrors.d.ts +6 -6
- package/dist/components/warnings/BalanceErrors.d.ts.map +1 -1
- package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts +6 -6
- package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts.map +1 -1
- package/dist/components/warnings/HighSlippageWarning.d.ts +6 -6
- package/dist/components/warnings/HighSlippageWarning.d.ts.map +1 -1
- package/dist/components/warnings/MinRequiredSlippage.d.ts +6 -6
- package/dist/components/warnings/MinRequiredSlippage.d.ts.map +1 -1
- package/dist/constants/errors.d.ts +3 -3
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/constants/navigationRoutes.d.ts +13 -13
- package/dist/constants/navigationRoutes.d.ts.map +1 -1
- package/dist/constants/numbers.d.ts +2 -2
- package/dist/constants/numbers.d.ts.map +1 -1
- package/dist/constants/searchParams.d.ts +7 -7
- package/dist/constants/searchParams.d.ts.map +1 -1
- package/dist/constants/swapSettings.d.ts +5 -5
- package/dist/constants/swapSettings.d.ts.map +1 -1
- package/dist/globalStyles.d.ts +1 -1
- package/dist/globalStyles.d.ts.map +1 -1
- package/dist/hooks/useConfirmSwap.d.ts +10 -10
- package/dist/hooks/useConfirmSwap.d.ts.map +1 -1
- package/dist/hooks/useNavigateBack.d.ts +3 -3
- package/dist/hooks/useNavigateBack.d.ts.map +1 -1
- package/dist/hooks/usePrevious.d.ts +1 -1
- package/dist/hooks/usePrevious.d.ts.map +1 -1
- package/dist/hooks/useSelectLanguage.d.ts +4 -4
- package/dist/hooks/useSelectLanguage.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts +30 -4
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.d.ts.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +7 -0
- package/dist/mockData/pendingSwap.d.ts +1 -1
- package/dist/mockData/pendingSwap.d.ts.map +1 -1
- package/dist/pages/ConfirmSwapPage.d.ts +2 -2
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/pages/HistoryPage.d.ts +2 -2
- package/dist/pages/HistoryPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts +2 -2
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/pages/LiquiditySourcesPage.d.ts +6 -6
- package/dist/pages/LiquiditySourcesPage.d.ts.map +1 -1
- package/dist/pages/SelectChainPage.d.ts +7 -7
- package/dist/pages/SelectChainPage.d.ts.map +1 -1
- package/dist/pages/SelectTokenPage.d.ts +14 -14
- package/dist/pages/SelectTokenPage.d.ts.map +1 -1
- package/dist/pages/SettingsPage.d.ts +7 -7
- package/dist/pages/SettingsPage.d.ts.map +1 -1
- package/dist/pages/SwapDetailsPage.d.ts +2 -2
- package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
- package/dist/pages/WalletsPage.d.ts +8 -8
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/services/httpService.d.ts +3 -3
- package/dist/services/httpService.d.ts.map +1 -1
- package/dist/store/bestRoute.d.ts +67 -31
- package/dist/store/bestRoute.d.ts.map +1 -1
- package/dist/store/meta.d.ts +17 -8
- package/dist/store/meta.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +10 -10
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/settings.d.ts +55 -18
- package/dist/store/settings.d.ts.map +1 -1
- package/dist/store/ui.d.ts +22 -1
- package/dist/store/ui.d.ts.map +1 -1
- package/dist/store/wallets.d.ts +55 -33
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/types/config.d.ts +114 -114
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/routing.d.ts +57 -57
- package/dist/types/routing.d.ts.map +1 -1
- package/dist/types/swap.d.ts +16 -16
- package/dist/types/swap.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +6 -6
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/common.d.ts +3 -3
- package/dist/utils/common.d.ts.map +1 -1
- package/dist/utils/configs.d.ts +6 -6
- package/dist/utils/configs.d.ts.map +1 -1
- package/dist/utils/date.d.ts +2 -2
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/numbers.d.ts +13 -13
- package/dist/utils/numbers.d.ts.map +1 -1
- package/dist/utils/queue.d.ts +3 -3
- package/dist/utils/queue.d.ts.map +1 -1
- package/dist/utils/routing.d.ts +17 -17
- package/dist/utils/routing.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +50 -50
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/time.d.ts +3 -3
- package/dist/utils/time.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +27 -27
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +13 -20
- package/src/QueueManager.tsx +1 -1
- package/src/{index.tsx → Widget.tsx} +1 -8
- package/src/index.ts +18 -0
- package/dist/widget-embedded.cjs.development.js +0 -3401
- package/dist/widget-embedded.cjs.development.js.map +0 -1
- package/dist/widget-embedded.cjs.production.min.js +0 -3401
- package/dist/widget-embedded.cjs.production.min.js.map +0 -1
- package/dist/widget-embedded.esm.js +0 -3392
- package/dist/widget-embedded.esm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["../../src/components/RoutesOverview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkBpB,CAAC;AAEH,UAAU,SAAS;IACjB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,iBAAS,cAAc,CAAC,KAAK,EAAE,SAAS,sBA0BvC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const LoaderContainer: import("@stitches/react/types/styled-component").StyledComponent<
|
|
3
|
-
sm: string;
|
|
4
|
-
md: string;
|
|
5
|
-
lg: string;
|
|
6
|
-
}, import("@stitches/react/types/css-util").CSS<{
|
|
7
|
-
sm: string;
|
|
8
|
-
md: string;
|
|
9
|
-
lg: string;
|
|
10
|
-
}, {
|
|
11
|
-
colors: {
|
|
12
|
-
primary: string;
|
|
13
|
-
primary100: string;
|
|
14
|
-
primary200: string;
|
|
15
|
-
primary300: string;
|
|
16
|
-
primary400: string;
|
|
17
|
-
primary500: string;
|
|
18
|
-
primary600: string;
|
|
19
|
-
primary700: string;
|
|
20
|
-
primary800: string;
|
|
21
|
-
primary900: string;
|
|
22
|
-
surface: string;
|
|
23
|
-
neutral100: string;
|
|
24
|
-
neutral200: string;
|
|
25
|
-
neutral300: string;
|
|
26
|
-
neutral400: string;
|
|
27
|
-
neutral500: string;
|
|
28
|
-
neutral600: string;
|
|
29
|
-
neutral700: string;
|
|
30
|
-
neutral800: string;
|
|
31
|
-
neutral900: string;
|
|
32
|
-
background: string;
|
|
33
|
-
foreground: string;
|
|
34
|
-
success: string;
|
|
35
|
-
success100: string;
|
|
36
|
-
success300: string;
|
|
37
|
-
success500: string;
|
|
38
|
-
success700: string;
|
|
39
|
-
warning: string;
|
|
40
|
-
warning100: string;
|
|
41
|
-
warning300: string;
|
|
42
|
-
warning500: string;
|
|
43
|
-
warning700: string;
|
|
44
|
-
error: string;
|
|
45
|
-
error100: string;
|
|
46
|
-
error300: string;
|
|
47
|
-
error500: string;
|
|
48
|
-
error700: string;
|
|
49
|
-
white: string;
|
|
50
|
-
};
|
|
51
|
-
space: {
|
|
52
|
-
2: string;
|
|
53
|
-
4: string;
|
|
54
|
-
6: string;
|
|
55
|
-
8: string;
|
|
56
|
-
10: string;
|
|
57
|
-
12: string;
|
|
58
|
-
16: string;
|
|
59
|
-
20: string;
|
|
60
|
-
24: string;
|
|
61
|
-
28: string;
|
|
62
|
-
30: string;
|
|
63
|
-
32: string;
|
|
64
|
-
};
|
|
65
|
-
fontSizes: {
|
|
66
|
-
10: string;
|
|
67
|
-
12: string;
|
|
68
|
-
14: string;
|
|
69
|
-
16: string;
|
|
70
|
-
18: string;
|
|
71
|
-
20: string;
|
|
72
|
-
24: string;
|
|
73
|
-
32: string;
|
|
74
|
-
36: string;
|
|
75
|
-
40: string;
|
|
76
|
-
48: string;
|
|
77
|
-
};
|
|
78
|
-
fonts: {};
|
|
79
|
-
fontWeights: {
|
|
80
|
-
400: string;
|
|
81
|
-
500: string;
|
|
82
|
-
600: string;
|
|
83
|
-
700: string;
|
|
84
|
-
};
|
|
85
|
-
lineHeights: {};
|
|
86
|
-
letterSpacings: {};
|
|
87
|
-
sizes: {
|
|
88
|
-
4: string;
|
|
89
|
-
6: string;
|
|
90
|
-
8: string;
|
|
91
|
-
12: string;
|
|
92
|
-
16: string;
|
|
93
|
-
20: string;
|
|
94
|
-
24: string;
|
|
95
|
-
28: string;
|
|
96
|
-
32: string;
|
|
97
|
-
36: string;
|
|
98
|
-
40: string;
|
|
99
|
-
48: string;
|
|
100
|
-
};
|
|
101
|
-
borderWidths: {};
|
|
102
|
-
borderStyles: {};
|
|
103
|
-
radii: {
|
|
104
|
-
5: string;
|
|
105
|
-
10: string;
|
|
106
|
-
};
|
|
107
|
-
shadows: {
|
|
108
|
-
s: string;
|
|
109
|
-
};
|
|
110
|
-
zIndices: {};
|
|
111
|
-
transitions: {};
|
|
112
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
113
|
-
interface PropTypes {
|
|
114
|
-
requestId: string;
|
|
115
|
-
loading: boolean;
|
|
116
|
-
onBack: () => void;
|
|
117
|
-
}
|
|
118
|
-
export declare function SwapDetailsPlaceholder(props: PropTypes): JSX.Element;
|
|
119
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const LoaderContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
}, {
|
|
11
|
+
colors: {
|
|
12
|
+
primary: string;
|
|
13
|
+
primary100: string;
|
|
14
|
+
primary200: string;
|
|
15
|
+
primary300: string;
|
|
16
|
+
primary400: string;
|
|
17
|
+
primary500: string;
|
|
18
|
+
primary600: string;
|
|
19
|
+
primary700: string;
|
|
20
|
+
primary800: string;
|
|
21
|
+
primary900: string;
|
|
22
|
+
surface: string;
|
|
23
|
+
neutral100: string;
|
|
24
|
+
neutral200: string;
|
|
25
|
+
neutral300: string;
|
|
26
|
+
neutral400: string;
|
|
27
|
+
neutral500: string;
|
|
28
|
+
neutral600: string;
|
|
29
|
+
neutral700: string;
|
|
30
|
+
neutral800: string;
|
|
31
|
+
neutral900: string;
|
|
32
|
+
background: string;
|
|
33
|
+
foreground: string;
|
|
34
|
+
success: string;
|
|
35
|
+
success100: string;
|
|
36
|
+
success300: string;
|
|
37
|
+
success500: string;
|
|
38
|
+
success700: string;
|
|
39
|
+
warning: string;
|
|
40
|
+
warning100: string;
|
|
41
|
+
warning300: string;
|
|
42
|
+
warning500: string;
|
|
43
|
+
warning700: string;
|
|
44
|
+
error: string;
|
|
45
|
+
error100: string;
|
|
46
|
+
error300: string;
|
|
47
|
+
error500: string;
|
|
48
|
+
error700: string;
|
|
49
|
+
white: string;
|
|
50
|
+
};
|
|
51
|
+
space: {
|
|
52
|
+
2: string;
|
|
53
|
+
4: string;
|
|
54
|
+
6: string;
|
|
55
|
+
8: string;
|
|
56
|
+
10: string;
|
|
57
|
+
12: string;
|
|
58
|
+
16: string;
|
|
59
|
+
20: string;
|
|
60
|
+
24: string;
|
|
61
|
+
28: string;
|
|
62
|
+
30: string;
|
|
63
|
+
32: string;
|
|
64
|
+
};
|
|
65
|
+
fontSizes: {
|
|
66
|
+
10: string;
|
|
67
|
+
12: string;
|
|
68
|
+
14: string;
|
|
69
|
+
16: string;
|
|
70
|
+
18: string;
|
|
71
|
+
20: string;
|
|
72
|
+
24: string;
|
|
73
|
+
32: string;
|
|
74
|
+
36: string;
|
|
75
|
+
40: string;
|
|
76
|
+
48: string;
|
|
77
|
+
};
|
|
78
|
+
fonts: {};
|
|
79
|
+
fontWeights: {
|
|
80
|
+
400: string;
|
|
81
|
+
500: string;
|
|
82
|
+
600: string;
|
|
83
|
+
700: string;
|
|
84
|
+
};
|
|
85
|
+
lineHeights: {};
|
|
86
|
+
letterSpacings: {};
|
|
87
|
+
sizes: {
|
|
88
|
+
4: string;
|
|
89
|
+
6: string;
|
|
90
|
+
8: string;
|
|
91
|
+
12: string;
|
|
92
|
+
16: string;
|
|
93
|
+
20: string;
|
|
94
|
+
24: string;
|
|
95
|
+
28: string;
|
|
96
|
+
32: string;
|
|
97
|
+
36: string;
|
|
98
|
+
40: string;
|
|
99
|
+
48: string;
|
|
100
|
+
};
|
|
101
|
+
borderWidths: {};
|
|
102
|
+
borderStyles: {};
|
|
103
|
+
radii: {
|
|
104
|
+
5: string;
|
|
105
|
+
10: string;
|
|
106
|
+
};
|
|
107
|
+
shadows: {
|
|
108
|
+
s: string;
|
|
109
|
+
};
|
|
110
|
+
zIndices: {};
|
|
111
|
+
transitions: {};
|
|
112
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
113
|
+
interface PropTypes {
|
|
114
|
+
requestId: string;
|
|
115
|
+
loading: boolean;
|
|
116
|
+
onBack: () => void;
|
|
117
|
+
}
|
|
118
|
+
export declare function SwapDetailsPlaceholder(props: PropTypes): JSX.Element;
|
|
119
|
+
export {};
|
|
120
120
|
//# sourceMappingURL=SwapDetailsPlaceholder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["../../src/components/SwapDetailsPlaceholder.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,eAmBtD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function SwithFromAndTo({ count }: {
|
|
2
|
-
count: number;
|
|
3
|
-
}): null;
|
|
1
|
+
export declare function SwithFromAndTo({ count }: {
|
|
2
|
+
count: number;
|
|
3
|
+
}): null;
|
|
4
4
|
//# sourceMappingURL=SwitchFromAndTo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchFromAndTo.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"SwitchFromAndTo.d.ts","sourceRoot":"","sources":["../../src/components/SwitchFromAndTo.tsx"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,QAwB1D"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BlockchainMeta, Token } from 'rango-sdk';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
|
|
5
|
-
type: 'From';
|
|
6
|
-
inputAmount: string;
|
|
7
|
-
onAmountChange: (amount: string) => void;
|
|
8
|
-
} | {
|
|
9
|
-
type: 'To';
|
|
10
|
-
outputAmount: BigNumber | null;
|
|
11
|
-
outputUsdValue: BigNumber | null;
|
|
12
|
-
}) & {
|
|
13
|
-
chain: BlockchainMeta | null;
|
|
14
|
-
token: Token | null;
|
|
15
|
-
};
|
|
16
|
-
export declare function TokenInfo(props: PropTypes): JSX.Element;
|
|
17
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BlockchainMeta, Token } from 'rango-sdk';
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
type PropTypes = ({
|
|
5
|
+
type: 'From';
|
|
6
|
+
inputAmount: string;
|
|
7
|
+
onAmountChange: (amount: string) => void;
|
|
8
|
+
} | {
|
|
9
|
+
type: 'To';
|
|
10
|
+
outputAmount: BigNumber | null;
|
|
11
|
+
outputUsdValue: BigNumber | null;
|
|
12
|
+
}) & {
|
|
13
|
+
chain: BlockchainMeta | null;
|
|
14
|
+
token: Token | null;
|
|
15
|
+
};
|
|
16
|
+
export declare function TokenInfo(props: PropTypes): JSX.Element;
|
|
17
|
+
export {};
|
|
18
18
|
//# sourceMappingURL=TokenInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenInfo.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"TokenInfo.d.ts","sourceRoot":"","sources":["../../src/components/TokenInfo.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlD,OAAO,SAAS,MAAM,cAAc,CAAC;AAMrC,KAAK,SAAS,GAAG,CACb;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GACD;IACE,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC,CACJ,GAAG;IAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CAAE,CAAC;AA4F1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,eAwMzC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { LoadingStatus } from '../store/meta';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
interface PropTypes {
|
|
5
|
-
label: string;
|
|
6
|
-
amount: string;
|
|
7
|
-
usdValue?: BigNumber;
|
|
8
|
-
loadingStatus: LoadingStatus;
|
|
9
|
-
chain: {
|
|
10
|
-
displayName: string;
|
|
11
|
-
logo: string;
|
|
12
|
-
};
|
|
13
|
-
token: {
|
|
14
|
-
symbol: string;
|
|
15
|
-
image: string;
|
|
16
|
-
};
|
|
17
|
-
percentageChange?: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare function TokenPreview(props: PropTypes): JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LoadingStatus } from '../store/meta';
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
interface PropTypes {
|
|
5
|
+
label: string;
|
|
6
|
+
amount: string;
|
|
7
|
+
usdValue?: BigNumber;
|
|
8
|
+
loadingStatus: LoadingStatus;
|
|
9
|
+
chain: {
|
|
10
|
+
displayName: string;
|
|
11
|
+
logo: string;
|
|
12
|
+
};
|
|
13
|
+
token: {
|
|
14
|
+
symbol: string;
|
|
15
|
+
image: string;
|
|
16
|
+
};
|
|
17
|
+
percentageChange?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function TokenPreview(props: PropTypes): JSX.Element;
|
|
20
|
+
export {};
|
|
21
21
|
//# sourceMappingURL=TokenPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenPreview.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"TokenPreview.d.ts","sourceRoot":"","sources":["../../src/components/TokenPreview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,SAAS,MAAM,cAAc,CAAC;AA8ErC,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,eAkF5C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function UpdateUrl(): null;
|
|
1
|
+
export declare function UpdateUrl(): null;
|
|
2
2
|
//# sourceMappingURL=UpdateUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateUrl.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"UpdateUrl.d.ts","sourceRoot":"","sources":["../../src/components/UpdateUrl.tsx"],"names":[],"mappings":"AAaA,wBAAgB,SAAS,SAmHxB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PropTypes {
|
|
3
|
-
messages: string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function BalanceErrors({ messages }: PropTypes): JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PropTypes {
|
|
3
|
+
messages: string[];
|
|
4
|
+
}
|
|
5
|
+
export declare function BalanceErrors({ messages }: PropTypes): JSX.Element;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=BalanceErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceErrors.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"BalanceErrors.d.ts","sourceRoot":"","sources":["../../../src/components/warnings/BalanceErrors.tsx"],"names":[],"mappings":";AAGA,UAAU,SAAS;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAwBD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,eAiBpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PropTypes {
|
|
3
|
-
selectedSlippage: number;
|
|
4
|
-
}
|
|
5
|
-
export declare function ConfirmSwapExtraMessages(props: PropTypes): JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PropTypes {
|
|
3
|
+
selectedSlippage: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function ConfirmSwapExtraMessages(props: PropTypes): JSX.Element;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=ConfirmSwapExtraMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmSwapExtraMessages.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ConfirmSwapExtraMessages.d.ts","sourceRoot":"","sources":["../../../src/components/warnings/ConfirmSwapExtraMessages.tsx"],"names":[],"mappings":";AAIA,UAAU,SAAS;IACjB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,SAAS,eAWxD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PropTypes {
|
|
3
|
-
selectedSlippage: number;
|
|
4
|
-
}
|
|
5
|
-
export declare function HighSlippageWarning(props: PropTypes): JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PropTypes {
|
|
3
|
+
selectedSlippage: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function HighSlippageWarning(props: PropTypes): JSX.Element;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=HighSlippageWarning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighSlippageWarning.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"HighSlippageWarning.d.ts","sourceRoot":"","sources":["../../../src/components/warnings/HighSlippageWarning.tsx"],"names":[],"mappings":";AAIA,UAAU,SAAS;IACjB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,eASnD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PropTypes {
|
|
3
|
-
minRequiredSlippage: string | null;
|
|
4
|
-
}
|
|
5
|
-
export declare function MinRequiredSlippage({ minRequiredSlippage }: PropTypes): JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PropTypes {
|
|
3
|
+
minRequiredSlippage: string | null;
|
|
4
|
+
}
|
|
5
|
+
export declare function MinRequiredSlippage({ minRequiredSlippage }: PropTypes): JSX.Element;
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=MinRequiredSlippage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinRequiredSlippage.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"MinRequiredSlippage.d.ts","sourceRoot":"","sources":["../../../src/components/warnings/MinRequiredSlippage.tsx"],"names":[],"mappings":";AAIA,UAAU,SAAS;IACjB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAMD,wBAAgB,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,EAAE,SAAS,eAUrE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const errorMessages: {
|
|
2
|
-
genericServerError: string;
|
|
3
|
-
};
|
|
1
|
+
export declare const errorMessages: {
|
|
2
|
+
genericServerError: string;
|
|
3
|
+
};
|
|
4
4
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;CAEzB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const navigationRoutes: {
|
|
2
|
-
home: string;
|
|
3
|
-
fromChain: string;
|
|
4
|
-
fromToken: string;
|
|
5
|
-
toChain: string;
|
|
6
|
-
toToken: string;
|
|
7
|
-
settings: string;
|
|
8
|
-
liquiditySources: string;
|
|
9
|
-
swaps: string;
|
|
10
|
-
wallets: string;
|
|
11
|
-
confirmSwap: string;
|
|
12
|
-
swapDetails: string;
|
|
13
|
-
};
|
|
1
|
+
export declare const navigationRoutes: {
|
|
2
|
+
home: string;
|
|
3
|
+
fromChain: string;
|
|
4
|
+
fromToken: string;
|
|
5
|
+
toChain: string;
|
|
6
|
+
toToken: string;
|
|
7
|
+
settings: string;
|
|
8
|
+
liquiditySources: string;
|
|
9
|
+
swaps: string;
|
|
10
|
+
wallets: string;
|
|
11
|
+
confirmSwap: string;
|
|
12
|
+
swapDetails: string;
|
|
13
|
+
};
|
|
14
14
|
//# sourceMappingURL=navigationRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationRoutes.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"navigationRoutes.d.ts","sourceRoot":"","sources":["../../src/constants/navigationRoutes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAY5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
export declare const ZERO: BigNumber;
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare const ZERO: BigNumber;
|
|
3
3
|
//# sourceMappingURL=numbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/constants/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAO,MAAM,IAAI,WAAmB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum SearchParams {
|
|
2
|
-
'FROM_CHAIN' = "fromChain",
|
|
3
|
-
'FROM_TOKEN' = "fromToken",
|
|
4
|
-
'TO_CHAIN' = "toChain",
|
|
5
|
-
'TO_TOKEN' = "toToken",
|
|
6
|
-
'FROM_AMOUNT' = "fromAmount"
|
|
7
|
-
}
|
|
1
|
+
export declare enum SearchParams {
|
|
2
|
+
'FROM_CHAIN' = "fromChain",
|
|
3
|
+
'FROM_TOKEN' = "fromToken",
|
|
4
|
+
'TO_CHAIN' = "toChain",
|
|
5
|
+
'TO_TOKEN' = "toToken",
|
|
6
|
+
'FROM_AMOUNT' = "fromAmount"
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=searchParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["../../src/constants/searchParams.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,YAAY,cAAc;IAC1B,YAAY,cAAc;IAC1B,UAAU,YAAY;IACtB,UAAU,YAAY;IACtB,aAAa,eAAe;CAC7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const SLIPPAGES: number[];
|
|
2
|
-
export declare const DEFAULT_SLIPPAGE = 1;
|
|
3
|
-
export declare const HIGH_SLIPPAGE = 5;
|
|
4
|
-
export declare const MAX_SLIPPAGE = 100;
|
|
5
|
-
export declare const MIN_SLIPPGAE = 0;
|
|
1
|
+
export declare const SLIPPAGES: number[];
|
|
2
|
+
export declare const DEFAULT_SLIPPAGE = 1;
|
|
3
|
+
export declare const HIGH_SLIPPAGE = 5;
|
|
4
|
+
export declare const MAX_SLIPPAGE = 100;
|
|
5
|
+
export declare const MIN_SLIPPGAE = 0;
|
|
6
6
|
//# sourceMappingURL=swapSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapSettings.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"swapSettings.d.ts","sourceRoot":"","sources":["../../src/constants/swapSettings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,UAA4B,CAAC;AAEnD,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,eAAO,MAAM,YAAY,IAAI,CAAC"}
|
package/dist/globalStyles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const globalFont: (fontFamily: string) =>
|
|
1
|
+
export declare const globalFont: (fontFamily: string) => string;
|
|
2
2
|
//# sourceMappingURL=globalStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.d.ts","sourceRoot":"","sources":["src/globalStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"globalStyles.d.ts","sourceRoot":"","sources":["../src/globalStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAgB,MAAM,WASvC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConfirmSwapError, ConfirmSwapWarnings } from '../types';
|
|
2
|
-
import { PendingSwap } from '@rango-dev/ui/dist/containers/History/types';
|
|
3
|
-
|
|
4
|
-
loading: boolean;
|
|
5
|
-
errors: ConfirmSwapError[];
|
|
6
|
-
warnings: ConfirmSwapWarnings[];
|
|
7
|
-
confirmSwap: (() => Promise<PendingSwap | undefined>) | null;
|
|
8
|
-
};
|
|
9
|
-
export declare function useConfirmSwap(): ConfirmSwap;
|
|
10
|
-
export {};
|
|
1
|
+
import { ConfirmSwapError, ConfirmSwapWarnings } from '../types';
|
|
2
|
+
import { PendingSwap } from '@rango-dev/ui/dist/containers/History/types';
|
|
3
|
+
type ConfirmSwap = {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
errors: ConfirmSwapError[];
|
|
6
|
+
warnings: ConfirmSwapWarnings[];
|
|
7
|
+
confirmSwap: (() => Promise<PendingSwap | undefined>) | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function useConfirmSwap(): ConfirmSwap;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=useConfirmSwap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfirmSwap.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useConfirmSwap.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfirmSwap.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAGhB,mBAAmB,EAEpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAyB1E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,WAAW,EAAE,CAAC,MAAM,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC;CAC9D,CAAC;AAEF,wBAAgB,cAAc,IAAI,WAAW,CAyN5C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useNavigateBack(): {
|
|
2
|
-
navigateBackFrom: (currentRoute: string) => void;
|
|
3
|
-
};
|
|
1
|
+
export declare function useNavigateBack(): {
|
|
2
|
+
navigateBackFrom: (currentRoute: string) => void;
|
|
3
|
+
};
|
|
4
4
|
//# sourceMappingURL=useNavigateBack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigateBack.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useNavigateBack.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavigateBack.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe;qCAMW,MAAM;EA6B/C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function usePrevious(value: string): string | undefined;
|
|
1
|
+
export default function usePrevious(value: string): string | undefined;
|
|
2
2
|
//# sourceMappingURL=usePrevious.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrevious.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,sBAUhD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default function useSelectLanguage(): {
|
|
2
|
-
changeLanguage: (value: string) => void;
|
|
3
|
-
currentLanguage:
|
|
4
|
-
};
|
|
1
|
+
export default function useSelectLanguage(): {
|
|
2
|
+
changeLanguage: (value: string) => void;
|
|
3
|
+
currentLanguage: string;
|
|
4
|
+
};
|
|
5
5
|
//# sourceMappingURL=useSelectLanguage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectLanguage.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useSelectLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useSelectLanguage.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,iBAAiB;4BAIR,MAAM;;EAQtC"}
|