@lifi/widget 2.0.0-beta.1 → 2.0.0-beta.10
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/App.d.ts +4 -3
- package/AppDrawer.d.ts +1 -1
- package/AppDrawer.js +2 -1
- package/AppProvider.js +1 -1
- package/README.md +11 -12
- package/cjs/App.d.ts +4 -3
- package/cjs/AppDrawer.d.ts +1 -1
- package/cjs/AppDrawer.js +2 -1
- package/cjs/AppProvider.js +1 -1
- package/cjs/components/ChainSelect/ChainSelect.d.ts +1 -2
- package/cjs/components/ChainSelect/ChainSelect.style.js +1 -1
- package/cjs/components/ChainSelect/useChainSelect.js +6 -0
- package/cjs/components/GasMessage/FundsSufficiencyMessage.d.ts +1 -2
- package/cjs/components/GasMessage/GasMessage.js +1 -6
- package/cjs/components/Header/Header.js +2 -2
- package/cjs/components/Header/Header.style.d.ts +10 -3
- package/cjs/components/Header/Header.style.js +3 -0
- package/cjs/components/Header/NavigationHeader.js +23 -7
- package/cjs/components/Header/NavigationTabs.d.ts +1 -0
- package/cjs/components/Header/NavigationTabs.js +26 -0
- package/cjs/components/Header/NavigationTabs.style.d.ts +34 -0
- package/cjs/components/Header/NavigationTabs.style.js +61 -0
- package/cjs/components/Header/WalletHeader.d.ts +1 -0
- package/cjs/components/Header/WalletHeader.js +16 -9
- package/cjs/components/Header/useHeaderActionStore.js +0 -1
- package/cjs/components/Insurance/Insurance.js +2 -2
- package/cjs/components/Insurance/InsuranceCard.js +34 -12
- package/cjs/components/Insurance/InsuranceCollapsed.js +9 -11
- package/cjs/components/Insurance/index.d.ts +1 -0
- package/cjs/components/Insurance/index.js +1 -0
- package/cjs/components/Insurance/types.d.ts +12 -9
- package/cjs/components/NFT/NFT.js +2 -2
- package/cjs/components/NFT/types.d.ts +1 -1
- package/cjs/components/PoweredBy/PoweredBy.js +2 -3
- package/cjs/components/SelectChainAndToken.js +8 -7
- package/cjs/components/SelectTokenButton/SelectTokenButton.js +6 -3
- package/cjs/components/SendToWallet/SendToWallet.js +2 -2
- package/cjs/components/SmallAvatar.d.ts +1 -1
- package/cjs/components/Step/CircularProgress.d.ts +1 -2
- package/cjs/components/Step/Step.js +15 -5
- package/cjs/components/Step/StepList.d.ts +1 -2
- package/cjs/components/StepActions/StepActions.js +4 -20
- package/cjs/components/SwapButton/SwapButton.js +16 -4
- package/cjs/components/SwapInput/FormPriceHelperText.js +1 -1
- package/cjs/components/SwapInput/SwapInput.js +2 -2
- package/cjs/components/SwapInput/SwapInputEndAdornment.d.ts +1 -2
- package/cjs/components/SwapInput/SwapInputEndAdornment.js +2 -2
- package/cjs/components/SwapRouteCard/SwapRouteCard.js +19 -3
- package/cjs/components/SwapRouteCard/SwapRouteCardEssentials.js +1 -1
- package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.js +1 -1
- package/cjs/components/SwapRoutes/SwapRoutes.js +1 -1
- package/cjs/components/SwapRoutes/SwapRoutesExpanded.d.ts +2 -3
- package/cjs/components/SwapRoutes/SwapRoutesExpanded.js +2 -2
- package/cjs/components/SwapRoutes/SwapRoutesExpanded.style.js +1 -0
- package/cjs/components/Token/Token.js +1 -1
- package/cjs/components/TokenAvatar/TokenAvatar.d.ts +4 -4
- package/cjs/components/TokenList/TokenList.js +9 -4
- package/cjs/components/TokenList/TokenList.style.d.ts +5 -2
- package/cjs/components/TokenList/TokenList.style.js +20 -1
- package/cjs/components/TokenList/TokenListItem.d.ts +1 -1
- package/cjs/components/TokenList/TokenListItem.js +28 -5
- package/cjs/components/TokenList/VirtualizedTokenList.js +3 -3
- package/cjs/components/TokenList/types.d.ts +6 -3
- package/cjs/config/theme.js +15 -3
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/hooks/index.d.ts +2 -1
- package/cjs/hooks/index.js +2 -1
- package/cjs/hooks/useContentHeight.js +3 -5
- package/cjs/hooks/useFeaturedTokens.d.ts +1 -1
- package/cjs/hooks/useFundsSufficiency.js +2 -2
- package/cjs/hooks/useGasRefuel.d.ts +1 -1
- package/cjs/hooks/useGasRefuel.js +5 -15
- package/cjs/hooks/useGasSufficiency.js +12 -3
- package/cjs/hooks/useInitializer.js +0 -1
- package/cjs/hooks/useProcessMessage.d.ts +2 -1
- package/cjs/hooks/useProcessMessage.js +27 -9
- package/cjs/hooks/useRouteExecution.js +6 -5
- package/cjs/hooks/useSwapOnly.d.ts +1 -0
- package/cjs/hooks/useSwapOnly.js +9 -0
- package/cjs/hooks/useSwapRoutes.d.ts +1 -2
- package/cjs/hooks/useSwapRoutes.js +32 -18
- package/cjs/hooks/useToken.d.ts +1 -1
- package/cjs/hooks/useTokenAddressBalance.d.ts +2 -2
- package/cjs/hooks/useTokenBalance.js +6 -7
- package/cjs/hooks/useTokenBalances.d.ts +5 -5
- package/cjs/hooks/useTokenBalances.js +4 -19
- package/cjs/hooks/useTokenSearch.d.ts +2 -2
- package/cjs/hooks/useTokens.d.ts +2 -2
- package/cjs/i18n/bn.json +8 -0
- package/cjs/i18n/en.json +30 -5
- package/cjs/i18n/fr.json +8 -0
- package/cjs/i18n/id.json +22 -7
- package/cjs/i18n/ko.json +22 -7
- package/cjs/i18n/pt.json +32 -7
- package/cjs/i18n/th.json +21 -6
- package/cjs/i18n/uk.json +43 -18
- package/cjs/i18n/zh.json +23 -8
- package/cjs/icons/InsuraceLogo.d.ts +1 -1
- package/cjs/icons/LiFiFullLogo.d.ts +1 -1
- package/cjs/icons/LiFiLogo.d.ts +1 -1
- package/cjs/icons/LiFiToolLogo.d.ts +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +1 -2
- package/cjs/pages/SelectTokenPage/SearchTokenInput.d.ts +1 -2
- package/cjs/pages/SelectTokenPage/SelectTokenPage.js +3 -1
- package/cjs/pages/SelectWalletPage/SelectWalletPage.d.ts +1 -2
- package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +1 -2
- package/cjs/pages/SettingsPage/LanguageSelect.js +1 -1
- package/cjs/pages/SettingsPage/SettingsPage.d.ts +1 -2
- package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +1 -2
- package/cjs/pages/SettingsPage/SlippageInput.d.ts +1 -2
- package/cjs/pages/SwapDetailsPage/SwapDetailsPage.js +6 -2
- package/cjs/pages/SwapPage/ExchangeRateBottomSheet.js +1 -1
- package/cjs/pages/SwapPage/StatusBottomSheet.js +15 -9
- package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +1 -1
- package/cjs/pages/SwapPage/StatusBottomSheet.style.js +2 -2
- package/cjs/pages/SwapPage/SwapPage.js +31 -10
- package/cjs/pages/SwapPage/TokenValueBottomSheet.js +7 -12
- package/cjs/pages/SwapPage/utils.d.ts +2 -0
- package/cjs/pages/SwapPage/utils.js +10 -0
- package/cjs/providers/I18nProvider/I18nProvider.js +3 -3
- package/cjs/providers/SDKProvider/SDKProvider.js +2 -0
- package/cjs/providers/SwapFormProvider/FormUpdater.js +3 -0
- package/cjs/providers/WalletProvider/WalletProvider.js +77 -49
- package/cjs/providers/WalletProvider/types.d.ts +3 -5
- package/cjs/providers/WidgetProvider/WidgetProvider.js +1 -1
- package/cjs/stores/StoreProvider.d.ts +2 -2
- package/cjs/stores/StoreProvider.js +3 -2
- package/cjs/stores/routes/RouteExecutionStore.d.ts +1 -1
- package/cjs/stores/routes/RouteExecutionStore.js +0 -1
- package/cjs/stores/settings/index.d.ts +1 -0
- package/cjs/stores/settings/index.js +1 -0
- package/cjs/stores/settings/types.d.ts +11 -0
- package/cjs/stores/settings/useSplitSubvariantStore.d.ts +7 -0
- package/cjs/stores/settings/useSplitSubvariantStore.js +44 -0
- package/cjs/types/events.d.ts +9 -1
- package/cjs/types/events.js +1 -0
- package/cjs/types/token.d.ts +2 -2
- package/cjs/types/widget.d.ts +13 -8
- package/cjs/types/widget.js +4 -2
- package/cjs/utils/format.d.ts +1 -1
- package/cjs/utils/format.js +7 -12
- package/cjs/utils/wallet.d.ts +1 -1
- package/cjs/utils/wallet.js +3 -3
- package/components/ChainSelect/ChainSelect.d.ts +1 -2
- package/components/ChainSelect/ChainSelect.style.js +1 -1
- package/components/ChainSelect/useChainSelect.js +7 -1
- package/components/GasMessage/FundsSufficiencyMessage.d.ts +1 -2
- package/components/GasMessage/GasMessage.js +2 -7
- package/components/Header/Header.js +3 -3
- package/components/Header/Header.style.d.ts +10 -3
- package/components/Header/Header.style.js +3 -0
- package/components/Header/NavigationHeader.js +23 -7
- package/components/Header/NavigationTabs.d.ts +1 -0
- package/components/Header/NavigationTabs.js +22 -0
- package/components/Header/NavigationTabs.style.d.ts +34 -0
- package/components/Header/NavigationTabs.style.js +58 -0
- package/components/Header/WalletHeader.d.ts +1 -0
- package/components/Header/WalletHeader.js +14 -8
- package/components/Header/useHeaderActionStore.js +0 -1
- package/components/Insurance/Insurance.js +2 -2
- package/components/Insurance/InsuranceCard.js +37 -15
- package/components/Insurance/InsuranceCollapsed.js +9 -11
- package/components/Insurance/index.d.ts +1 -0
- package/components/Insurance/index.js +1 -0
- package/components/Insurance/types.d.ts +12 -9
- package/components/NFT/NFT.js +2 -2
- package/components/NFT/types.d.ts +1 -1
- package/components/PoweredBy/PoweredBy.js +2 -3
- package/components/SelectChainAndToken.js +9 -8
- package/components/SelectTokenButton/SelectTokenButton.js +7 -4
- package/components/SendToWallet/SendToWallet.js +2 -2
- package/components/SmallAvatar.d.ts +1 -1
- package/components/Step/CircularProgress.d.ts +1 -2
- package/components/Step/Step.js +16 -6
- package/components/Step/StepList.d.ts +1 -2
- package/components/StepActions/StepActions.js +4 -20
- package/components/SwapButton/SwapButton.js +16 -4
- package/components/SwapInput/FormPriceHelperText.js +2 -2
- package/components/SwapInput/SwapInput.js +3 -3
- package/components/SwapInput/SwapInputEndAdornment.d.ts +1 -2
- package/components/SwapInput/SwapInputEndAdornment.js +2 -2
- package/components/SwapRouteCard/SwapRouteCard.js +21 -5
- package/components/SwapRouteCard/SwapRouteCardEssentials.js +1 -1
- package/components/SwapRouteCard/SwapRouteCardSkeleton.js +1 -1
- package/components/SwapRoutes/SwapRoutes.js +1 -1
- package/components/SwapRoutes/SwapRoutesExpanded.d.ts +2 -3
- package/components/SwapRoutes/SwapRoutesExpanded.js +2 -2
- package/components/SwapRoutes/SwapRoutesExpanded.style.js +1 -0
- package/components/Token/Token.js +1 -1
- package/components/TokenAvatar/TokenAvatar.d.ts +4 -4
- package/components/TokenList/TokenList.js +10 -5
- package/components/TokenList/TokenList.style.d.ts +5 -2
- package/components/TokenList/TokenList.style.js +21 -2
- package/components/TokenList/TokenListItem.d.ts +1 -1
- package/components/TokenList/TokenListItem.js +32 -9
- package/components/TokenList/VirtualizedTokenList.js +3 -3
- package/components/TokenList/types.d.ts +6 -3
- package/config/theme.js +15 -3
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +2 -1
- package/hooks/useContentHeight.js +4 -6
- package/hooks/useFeaturedTokens.d.ts +1 -1
- package/hooks/useFundsSufficiency.js +2 -2
- package/hooks/useGasRefuel.d.ts +1 -1
- package/hooks/useGasRefuel.js +5 -15
- package/hooks/useGasSufficiency.js +13 -4
- package/hooks/useInitializer.js +0 -1
- package/hooks/useProcessMessage.d.ts +2 -1
- package/hooks/useProcessMessage.js +27 -9
- package/hooks/useRouteExecution.js +6 -5
- package/hooks/useSwapOnly.d.ts +1 -0
- package/hooks/useSwapOnly.js +5 -0
- package/hooks/useSwapRoutes.d.ts +1 -2
- package/hooks/useSwapRoutes.js +32 -18
- package/hooks/useToken.d.ts +1 -1
- package/hooks/useTokenAddressBalance.d.ts +2 -2
- package/hooks/useTokenBalance.js +6 -7
- package/hooks/useTokenBalances.d.ts +5 -5
- package/hooks/useTokenBalances.js +4 -19
- package/hooks/useTokenSearch.d.ts +2 -2
- package/hooks/useTokens.d.ts +2 -2
- package/i18n/bn.json +8 -0
- package/i18n/en.json +30 -5
- package/i18n/fr.json +8 -0
- package/i18n/id.json +22 -7
- package/i18n/ko.json +22 -7
- package/i18n/pt.json +32 -7
- package/i18n/th.json +21 -6
- package/i18n/uk.json +43 -18
- package/i18n/zh.json +23 -8
- package/icons/InsuraceLogo.d.ts +1 -1
- package/icons/LiFiFullLogo.d.ts +1 -1
- package/icons/LiFiLogo.d.ts +1 -1
- package/icons/LiFiToolLogo.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +13 -13
- package/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +1 -2
- package/pages/SelectTokenPage/SearchTokenInput.d.ts +1 -2
- package/pages/SelectTokenPage/SelectTokenPage.js +4 -2
- package/pages/SelectWalletPage/SelectWalletPage.d.ts +1 -2
- package/pages/SettingsPage/GasPriceSelect.d.ts +1 -2
- package/pages/SettingsPage/LanguageSelect.js +1 -1
- package/pages/SettingsPage/SettingsPage.d.ts +1 -2
- package/pages/SettingsPage/ShowDestinationWallet.d.ts +1 -2
- package/pages/SettingsPage/SlippageInput.d.ts +1 -2
- package/pages/SwapDetailsPage/SwapDetailsPage.js +6 -2
- package/pages/SwapPage/ExchangeRateBottomSheet.js +2 -2
- package/pages/SwapPage/StatusBottomSheet.js +18 -12
- package/pages/SwapPage/StatusBottomSheet.style.d.ts +1 -1
- package/pages/SwapPage/StatusBottomSheet.style.js +1 -1
- package/pages/SwapPage/SwapPage.js +33 -12
- package/pages/SwapPage/TokenValueBottomSheet.js +8 -13
- package/pages/SwapPage/utils.d.ts +2 -0
- package/pages/SwapPage/utils.js +6 -0
- package/providers/I18nProvider/I18nProvider.js +3 -3
- package/providers/SDKProvider/SDKProvider.js +2 -0
- package/providers/SwapFormProvider/FormUpdater.js +3 -0
- package/providers/WalletProvider/WalletProvider.js +78 -50
- package/providers/WalletProvider/types.d.ts +3 -5
- package/providers/WidgetProvider/WidgetProvider.js +2 -2
- package/stores/StoreProvider.d.ts +2 -2
- package/stores/StoreProvider.js +3 -2
- package/stores/routes/RouteExecutionStore.d.ts +1 -1
- package/stores/routes/RouteExecutionStore.js +0 -1
- package/stores/settings/index.d.ts +1 -0
- package/stores/settings/index.js +1 -0
- package/stores/settings/types.d.ts +11 -0
- package/stores/settings/useSplitSubvariantStore.d.ts +7 -0
- package/stores/settings/useSplitSubvariantStore.js +37 -0
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/events.d.ts +9 -1
- package/types/events.js +1 -0
- package/types/token.d.ts +2 -2
- package/types/widget.d.ts +13 -8
- package/types/widget.js +4 -2
- package/utils/format.d.ts +1 -1
- package/utils/format.js +5 -10
- package/utils/wallet.d.ts +1 -1
- package/utils/wallet.js +1 -1
package/i18n/th.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"done": "เสร็จสิ้น",
|
|
13
13
|
"getGas": "รับแก็ส",
|
|
14
14
|
"hide": "ซ่อน",
|
|
15
|
+
"learnMore": "เรียนรู้เพิ่มเติม",
|
|
15
16
|
"lifiSwap": "การแลกเปลี่ยนของ LI.FI",
|
|
16
17
|
"light": "สว่าง",
|
|
17
18
|
"max": "สูงสุด",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"startSwap": "เริ่มต้นการแลกเปลี่ยน",
|
|
30
31
|
"swap": "การแลกเปลี่ยน",
|
|
31
32
|
"tryAgain": "ลองใหม่",
|
|
33
|
+
"viewCoverage": "ดูความคุ้มครอง",
|
|
32
34
|
"viewOnExplorer": "ดูในการสำรวจ"
|
|
33
35
|
},
|
|
34
36
|
"format": {
|
|
@@ -104,14 +106,22 @@
|
|
|
104
106
|
"gasFeeEstimated": "ค่าแก๊สโดยประมาณ",
|
|
105
107
|
"gasFeePaid": "จ่ายค่าทำเนียมแล้ว",
|
|
106
108
|
"inProgress": "กำลังดำเนินการ",
|
|
109
|
+
"insurance": {
|
|
110
|
+
"bridgeExploits": "การบริดจ์ทำงานผิดปกติ แฮ็กหรือหาผลประโยชน์",
|
|
111
|
+
"insure": "ประกัน 100% ของโทเค็นระหว่างการโอน",
|
|
112
|
+
"insured": "คุณได้รับการประกันโทเค็น 100% ระหว่างการโอน",
|
|
113
|
+
"slippageError": "เกิดข้อผิดพลาดในการคลาดเคลื่อนของโทเค็นที่ได้รับ"
|
|
114
|
+
},
|
|
107
115
|
"info": {
|
|
108
116
|
"message": {
|
|
117
|
+
"autoRefuel": "คุณใช้แก็ส {{chainName}} เหลือน้อย เมื่อดำเนินการต่อ คุณจะได้รับแก็สเพียงพอสำหรับการแลกเปลี่ยนให้เสร็จสมบูรณ์",
|
|
109
118
|
"emptyActiveSwaps": "การแลกเปลี่ยนที่กำลังดำเนินการจะปรากฏที่นี่. เมื่อเสร็จสิ้น, จะพบประวัติการแลกเปลี่ยน.",
|
|
110
119
|
"emptySwapHistory": "ประวัติการแลกเปลี่ยนจะถูกเก็บไว้ในเครื่องเท่านั้นและจะถูกลบหากคุณล้างข้อมูลเบราว์เซอร์ของคุณ.",
|
|
111
120
|
"emptyTokenList": "เราไม่พบโทเค็นใน {{chainName}} เชนหรือคุณไม่มีโทเค็น. โปรดลองอีกครั้งหรือเลือกเชนอื่น.",
|
|
112
121
|
"routeNotFound": "ลองจับคู่แลกเปลี่ยนโทเค็นใหม่."
|
|
113
122
|
},
|
|
114
123
|
"title": {
|
|
124
|
+
"autoRefuel": "รับแก็ส",
|
|
115
125
|
"emptyActiveSwaps": "ไม่พบการแลกเปลี่ยนที่ใช้งานอยู่.",
|
|
116
126
|
"emptySwapHistory": "ไม่พบการแลกเปลี่ยนล่าสุด.",
|
|
117
127
|
"routeNotFound": "ไม่พบเส้นทาง"
|
|
@@ -154,6 +164,7 @@
|
|
|
154
164
|
"quotedAmount": "จำนวนทั้งหมดที่เสนอ",
|
|
155
165
|
"rateChange": "อัตราแลกเปลี่ยน",
|
|
156
166
|
"receiving": "ได้รับ",
|
|
167
|
+
"refuelStepDetails": "รับแก๊สผ่าน {{tool}}",
|
|
157
168
|
"routes": "คุณได้รับ",
|
|
158
169
|
"selectChain": "เชน",
|
|
159
170
|
"selectChainAndToken": "เลือกเชนและโทเค็น",
|
|
@@ -162,6 +173,7 @@
|
|
|
162
173
|
"sendToWallet": "ส่งไปยังกระเป๋าเงินอื่น",
|
|
163
174
|
"sentToAddress": "ส่งไปยัง {{address}}",
|
|
164
175
|
"stepBridge": "บริดจ์",
|
|
176
|
+
"stepDetails": "{{tool}} โดย LI.FI",
|
|
165
177
|
"stepSwap": "แลกเปลี่ยน",
|
|
166
178
|
"stepSwapAndBridge": "แลกเปลี่ยนและบริดจ์",
|
|
167
179
|
"success": {
|
|
@@ -180,11 +192,13 @@
|
|
|
180
192
|
"swapStepDetails": "แลกเปลี่ยนบน {{chain}} ผ่าน {{tool}}",
|
|
181
193
|
"swapping": "การแลกเปลี่ยน",
|
|
182
194
|
"tags": {
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
195
|
+
"cheapest": "ราคาถูก",
|
|
196
|
+
"fastest": "รวดเร็ว",
|
|
197
|
+
"insurable": "การประกัน",
|
|
198
|
+
"insurance": "การประกัน",
|
|
199
|
+
"insured": "ประกัน",
|
|
200
|
+
"recommended": "แนะนำ",
|
|
201
|
+
"safest": "ปลอดภัย"
|
|
188
202
|
},
|
|
189
203
|
"to": "ถึง",
|
|
190
204
|
"tokenOnChain": "{{tokenSymbol}} บน {{chainName}}",
|
|
@@ -198,7 +212,7 @@
|
|
|
198
212
|
"deleteSwapHistory": "ประวัติการแลกเปลี่ยนจะถูกจัดเก็บไว้ในเครื่องเท่านั้นและไม่สามารถกู้คืนได้หากคุณลบออก",
|
|
199
213
|
"highValueLoss": "มูลค่าของโทเค็นที่ได้รับนั้นต่ำกว่าโทเค็นที่แลกเปลี่ยนและต้นทุนการทำธุรกรรมอย่างมาก.",
|
|
200
214
|
"insufficientFunds": "คุณมีเงินไม่เพียงพอที่จะดำเนินการแลกเปลี่ยน.",
|
|
201
|
-
"insufficientGas": "คุณต้องเพิ่มอย่างน้อย:",
|
|
215
|
+
"insufficientGas": "คุณมีแก๊สไม่เพียงพอที่จะแลกเปลี่ยนให้เสร็จสมบูรณ์ คุณต้องเพิ่มอย่างน้อย:",
|
|
202
216
|
"rateChanged": "อัตราแลกเปลี่ยนมีการเปลี่ยนแปลง คุณจะยอมรับอัตราใหม่.",
|
|
203
217
|
"resetSettings": "การดำเนินการนี้จะรีเซ็ตลำดับความสำคัญของเส้นทาง การคลาดเลื่อน ค่าแก็ส บริดจ์ที่เปิดใช้งานและการแลกเปลี่ยน"
|
|
204
218
|
},
|
|
@@ -214,6 +228,7 @@
|
|
|
214
228
|
}
|
|
215
229
|
},
|
|
216
230
|
"tooltip": {
|
|
231
|
+
"additionalProviderFee": "บริดจ์เพิ่มเติม DEX และค่าบริการ",
|
|
217
232
|
"estimatedNetworkFee": "ค่าธรรรมเนียมโดยประมาณของเครือข่าย",
|
|
218
233
|
"estimatedTime": "เวลาดำเนินการแลกเปลี่ยนโดยประมาณเป็นนาที.",
|
|
219
234
|
"notFound": {
|
package/i18n/uk.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "Авто",
|
|
4
|
+
"buy": "Придбати",
|
|
5
|
+
"buyNow": "Придбати",
|
|
4
6
|
"cancel": "Скасувати",
|
|
5
7
|
"connectWallet": "Під'єднати гаманець",
|
|
6
8
|
"contactSupport": "Служба підтримки",
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
"done": "Готово",
|
|
13
15
|
"getGas": "Отримати газ",
|
|
14
16
|
"hide": "Сховати",
|
|
17
|
+
"learnMore": "Докладніше",
|
|
15
18
|
"lifiSwap": "LI.FI Swap",
|
|
16
19
|
"light": "Світла",
|
|
17
20
|
"max": "макс",
|
|
@@ -22,6 +25,7 @@
|
|
|
22
25
|
"resetSettings": "Скинути налаштування",
|
|
23
26
|
"restartSwap": "Перезапустити своп",
|
|
24
27
|
"reviewGasSwap": "Переглянути своп газу",
|
|
28
|
+
"reviewPurchase": "Перегляд покупки",
|
|
25
29
|
"reviewSwap": "Переглянути своп",
|
|
26
30
|
"seeDetails": "Детальніше",
|
|
27
31
|
"showAll": "Показати всі",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"startSwap": "Почати своп",
|
|
30
34
|
"swap": "Своп",
|
|
31
35
|
"tryAgain": "Спробувати ще раз",
|
|
36
|
+
"viewCoverage": "Переглянути покриття",
|
|
32
37
|
"viewOnExplorer": "Переглянути в оглядачі"
|
|
33
38
|
},
|
|
34
39
|
"format": {
|
|
@@ -37,12 +42,16 @@
|
|
|
37
42
|
},
|
|
38
43
|
"header": {
|
|
39
44
|
"activeSwaps": "Активні свопи",
|
|
45
|
+
"bridge": "Бридж",
|
|
40
46
|
"checkout": "Розрахунок",
|
|
41
47
|
"from": "Своп з",
|
|
42
48
|
"gas": "Газ",
|
|
43
49
|
"gasSwap": "Своп газу",
|
|
50
|
+
"payWith": "Сплатити за допомогою",
|
|
51
|
+
"purchase": "Купівля",
|
|
52
|
+
"purchaseDetails": "Деталі покупки",
|
|
44
53
|
"routes": "Ви отримаєте",
|
|
45
|
-
"selectChain": "
|
|
54
|
+
"selectChain": "Виберіть чейн",
|
|
46
55
|
"selectWallet": "Виберіть свій гаманець",
|
|
47
56
|
"settings": "Налаштування",
|
|
48
57
|
"swap": "Своп",
|
|
@@ -56,7 +65,7 @@
|
|
|
56
65
|
"title": "Мова"
|
|
57
66
|
},
|
|
58
67
|
"settings": {
|
|
59
|
-
"enabledBridges": "Увімкнені
|
|
68
|
+
"enabledBridges": "Увімкнені бриджі",
|
|
60
69
|
"enabledExchanges": "Увімкнені обмінники",
|
|
61
70
|
"gasPrice": {
|
|
62
71
|
"fast": "Швидко",
|
|
@@ -69,10 +78,12 @@
|
|
|
69
78
|
"slippage": "Прослизання"
|
|
70
79
|
},
|
|
71
80
|
"swap": {
|
|
72
|
-
"crossStepDetails": "
|
|
81
|
+
"crossStepDetails": "Бридж з {{from}} до {{to}} через {{tool}}",
|
|
73
82
|
"currentAmount": "Поточна сума",
|
|
74
83
|
"error": {
|
|
75
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "Сума переказу для {{tokenSymbol}} перевищує поточну межу. Збільшіть доступну кількість у гаманці та спробуйте ще раз.",
|
|
86
|
+
"insufficientFunds": "Не вистачає газу для покриття вартості транзакції.",
|
|
76
87
|
"slippageThreshold": "Прослизання перевищує визначений поріг. Будь ласка, зробіть запит на новий маршрут, щоб отримати нову пропозицію.",
|
|
77
88
|
"transactionFailed": "Будь ласка, перевірте провідник блоків для отримання додаткової інформації.",
|
|
78
89
|
"transactionNotSent": "Транзакція не була відправлена. {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} на {{chainName}} все ще знаходяться у вашому гаманці.",
|
|
@@ -80,10 +91,12 @@
|
|
|
80
91
|
"unknown": "Будь ласка, спробуйте ще раз або зверніться до служби підтримки."
|
|
81
92
|
},
|
|
82
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "Недостатня дозволена кількість",
|
|
83
95
|
"balanceIsTooLow": "Баланс занадто низький",
|
|
84
96
|
"chainSwitch": "Потрібно переключити чейн.",
|
|
85
97
|
"failed": "Помилка обміну.",
|
|
86
98
|
"gasLimitIsTooLow": "Занадто низький ліміт газу",
|
|
99
|
+
"insufficientFunds": "Недостатньо коштів",
|
|
87
100
|
"slippageNotMet": "Не виконані умови прослизання",
|
|
88
101
|
"transactionCanceled": "Транзакцію скасовано",
|
|
89
102
|
"transactionFailed": "Транзакція не вдалася.",
|
|
@@ -104,6 +117,12 @@
|
|
|
104
117
|
"gasFeeEstimated": "орієнтована комісія за газ",
|
|
105
118
|
"gasFeePaid": "оплата за газ",
|
|
106
119
|
"inProgress": "в процесі",
|
|
120
|
+
"insurance": {
|
|
121
|
+
"bridgeExploits": "Збої в роботі бриджу, зломи чи експлойти",
|
|
122
|
+
"insure": "Застрахуйте 100% токенів транзакції.",
|
|
123
|
+
"insured": "Ви застрахували 100% токенів транзакції:",
|
|
124
|
+
"slippageError": "Помилка в прослизанні для отриманих токенів"
|
|
125
|
+
},
|
|
107
126
|
"info": {
|
|
108
127
|
"message": {
|
|
109
128
|
"autoRefuel": "У вас замало {{chainName}} газу. Продовжуючи, ви отримаєте достатньо газу, щоб завершити обмін.",
|
|
@@ -123,19 +142,21 @@
|
|
|
123
142
|
"onChain": "на {{chainName}}",
|
|
124
143
|
"otherTokens": "Інші токени",
|
|
125
144
|
"ownedBy": "Власник",
|
|
126
|
-
"payWith": "Оплатити з",
|
|
127
145
|
"process": {
|
|
128
146
|
"crossChain": {
|
|
129
147
|
"actionRequired": "Будь ласка, підпишіть транзакцію",
|
|
130
|
-
"done": "
|
|
131
|
-
"pending": "Очікування
|
|
132
|
-
"started": "Підготовка
|
|
148
|
+
"done": "Бридж транзакцію схвалено",
|
|
149
|
+
"pending": "Очікування бридж транзакції",
|
|
150
|
+
"started": "Підготовка бридж транзакції"
|
|
151
|
+
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "Придбано NFT"
|
|
133
154
|
},
|
|
134
155
|
"receivingChain": {
|
|
135
|
-
"done": "
|
|
136
|
-
"partial": "
|
|
156
|
+
"done": "Бридж завершено",
|
|
157
|
+
"partial": "Бридж частково завершено",
|
|
137
158
|
"pending": "В очікуванні чейна що приймає",
|
|
138
|
-
"refunded": "
|
|
159
|
+
"refunded": "Бридж транзакція відшкодована"
|
|
139
160
|
},
|
|
140
161
|
"swap": {
|
|
141
162
|
"actionRequired": "Будь ласка, підпишіть транзакцію",
|
|
@@ -157,24 +178,27 @@
|
|
|
157
178
|
"rateChange": "Зміна курсу",
|
|
158
179
|
"receiving": "Отримання",
|
|
159
180
|
"refuelStepDetails": "Отримати газ через {{tool}}",
|
|
160
|
-
"
|
|
161
|
-
"selectChain": "Чейн",
|
|
181
|
+
"selectChain": "Виберіть чейн",
|
|
162
182
|
"selectChainAndToken": "Виберіть чейн і токен",
|
|
163
|
-
"selectToken": "
|
|
183
|
+
"selectToken": "Виберіть токен",
|
|
164
184
|
"sendToAddress": "Відправити на {{address}}",
|
|
165
185
|
"sendToWallet": "Надіслати на інший гаманець",
|
|
166
186
|
"sentToAddress": "Відправлено на {{address}}",
|
|
167
|
-
"stepBridge": "
|
|
187
|
+
"stepBridge": "Бридж",
|
|
188
|
+
"stepBridgeAndBuy": "Бридж та покупка",
|
|
168
189
|
"stepDetails": "{{tool}} через LI.FI",
|
|
169
190
|
"stepSwap": "Своп",
|
|
170
|
-
"stepSwapAndBridge": "Своп та
|
|
191
|
+
"stepSwapAndBridge": "Своп та бридж",
|
|
192
|
+
"stepSwapAndBuy": "Своп та покупка",
|
|
171
193
|
"success": {
|
|
172
194
|
"message": {
|
|
173
195
|
"swapPartiallySuccessful": "Ми намагалися завершити своп, але {{tool}} не вистачило ліквідності токену {{tokenSymbol}}.",
|
|
196
|
+
"purchaseSuccessful": "Тепер ви маєте {{assetName}} в {{walletAddress}} гаманці на ланцюжку {{chainName}}.",
|
|
174
197
|
"swapSuccessful": "Зараз є {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} у гаманці {{walletAddress}} на чейні {{chainName}}."
|
|
175
198
|
},
|
|
176
199
|
"title": {
|
|
177
200
|
"gasSwapSuccessful": "Своп газу успішний",
|
|
201
|
+
"purchaseSuccessful": "Покупка успішна",
|
|
178
202
|
"refundIssued": "Здійснено повернення коштів",
|
|
179
203
|
"swapPartiallySuccessful": "Своп частково успішний",
|
|
180
204
|
"swapSuccessful": "Своп успішний"
|
|
@@ -195,7 +219,7 @@
|
|
|
195
219
|
"to": "До",
|
|
196
220
|
"tokenOnChain": "{{tokenSymbol}} на {{chainName}}",
|
|
197
221
|
"tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} на {{chainName}}",
|
|
198
|
-
"tokenSearch": "
|
|
222
|
+
"tokenSearch": "Шукати за ім'ям або адресою",
|
|
199
223
|
"valueLoss": "Втрата вартості",
|
|
200
224
|
"walletAddressOrEns": "Адреса гаманця або ім’я ENS",
|
|
201
225
|
"warning": {
|
|
@@ -206,7 +230,7 @@
|
|
|
206
230
|
"insufficientFunds": "У вас недостатньо коштів для здійснення свопу.",
|
|
207
231
|
"insufficientGas": "Для завершення свопа у вас недостатньо газу. Вам необхідно додати хоча б:",
|
|
208
232
|
"rateChanged": "Курс обміну змінився. Продовжуючи своп, ви приймете новий курс.",
|
|
209
|
-
"resetSettings": "Це скине пріоритет вашого маршруту, прослизання, ціну газу, увімкнені
|
|
233
|
+
"resetSettings": "Це скине пріоритет вашого маршруту, прослизання, ціну газу, увімкнені бриджі та обмінники."
|
|
210
234
|
},
|
|
211
235
|
"title": {
|
|
212
236
|
"deleteActiveSwaps": "Видалити всі активні свопи?",
|
|
@@ -220,7 +244,7 @@
|
|
|
220
244
|
}
|
|
221
245
|
},
|
|
222
246
|
"tooltip": {
|
|
223
|
-
"additionalProviderFee": "Додаткові комісії
|
|
247
|
+
"additionalProviderFee": "Додаткові комісії бриджів, обмінників та послуг.",
|
|
224
248
|
"estimatedNetworkFee": "Орієнтовна мережева плата.",
|
|
225
249
|
"estimatedTime": "Орієнтовний час виконання свопу в хвилинах.",
|
|
226
250
|
"notFound": {
|
|
@@ -229,6 +253,7 @@
|
|
|
229
253
|
},
|
|
230
254
|
"numberOfSteps": "Кількість кроків свопу. Кожен крок може містити 1-3 транзакції, які потребують підпису.",
|
|
231
255
|
"progressToNextUpdate": "Зображені дані автоматично оновляться через {{value}} секунд. Натисніть тут, щоб оновити вручну.",
|
|
256
|
+
"recommended": "Дешевий маршрут, який балансує складність і легкість використання.",
|
|
232
257
|
"settingsModified": "Налаштування (змінено)"
|
|
233
258
|
},
|
|
234
259
|
"wallet": {
|
package/i18n/zh.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"done": "已完成",
|
|
13
13
|
"getGas": "开始兑换燃气费",
|
|
14
14
|
"hide": "隐藏",
|
|
15
|
+
"learnMore": "了解更多",
|
|
15
16
|
"lifiSwap": "LI.FI兑换",
|
|
16
17
|
"light": "浅色主题",
|
|
17
18
|
"max": "最大",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"startSwap": "开始兑换",
|
|
30
31
|
"swap": "兑换",
|
|
31
32
|
"tryAgain": "重试",
|
|
33
|
+
"viewCoverage": "查看我们的覆盖范围",
|
|
32
34
|
"viewOnExplorer": "在区块链浏览器上查看"
|
|
33
35
|
},
|
|
34
36
|
"format": {
|
|
@@ -104,14 +106,22 @@
|
|
|
104
106
|
"gasFeeEstimated": "预估燃气费",
|
|
105
107
|
"gasFeePaid": "已支付燃气费",
|
|
106
108
|
"inProgress": "进行中",
|
|
109
|
+
"insurance": {
|
|
110
|
+
"bridgeExploits": "跨链桥故障、被黑或者被利用漏洞",
|
|
111
|
+
"insure": "为跨链代币提供100%的保障",
|
|
112
|
+
"insured": "您已经对100%的跨链代币投保:",
|
|
113
|
+
"slippageError": "目标链代币的滑点错误"
|
|
114
|
+
},
|
|
107
115
|
"info": {
|
|
108
116
|
"message": {
|
|
117
|
+
"autoRefuel": "您在 {{chainName}} 链上的燃气费很低。如果启用该选项,您将获得足够的燃气费完成此次兑换。",
|
|
109
118
|
"emptyActiveSwaps": "正在进行的兑换将在这里显示。一旦完成,你可在兑换记录中找到它们。",
|
|
110
119
|
"emptySwapHistory": "兑换记录只存储在本地,如果你清除浏览器数据,他们将被删除。",
|
|
111
120
|
"emptyTokenList": "我们无法在 {{chainName}} 链上找到这些代币,或者你的钱包内没有这些代币。请再次搜索或者选择其他链再试一次。",
|
|
112
121
|
"routeNotFound": "试试另一个代币组合。"
|
|
113
122
|
},
|
|
114
123
|
"title": {
|
|
124
|
+
"autoRefuel": "获得燃气费",
|
|
115
125
|
"emptyActiveSwaps": "没有正在进行的兑换",
|
|
116
126
|
"emptySwapHistory": "没有兑换记录",
|
|
117
127
|
"routeNotFound": "没有可用的路由"
|
|
@@ -154,6 +164,7 @@
|
|
|
154
164
|
"quotedAmount": "报价金额",
|
|
155
165
|
"rateChange": "波动率",
|
|
156
166
|
"receiving": "接收",
|
|
167
|
+
"refuelStepDetails": "通过 {{tool}} 获取燃气费",
|
|
157
168
|
"routes": "你会收到",
|
|
158
169
|
"selectChain": "网络",
|
|
159
170
|
"selectChainAndToken": "选择链和代币",
|
|
@@ -162,6 +173,7 @@
|
|
|
162
173
|
"sendToWallet": "发送到另外的钱包",
|
|
163
174
|
"sentToAddress": "发送到{{address}}",
|
|
164
175
|
"stepBridge": "跨链",
|
|
176
|
+
"stepDetails": "通过 LI.FI {{tool}}",
|
|
165
177
|
"stepSwap": "兑换",
|
|
166
178
|
"stepSwapAndBridge": "兑换和跨链",
|
|
167
179
|
"success": {
|
|
@@ -180,11 +192,13 @@
|
|
|
180
192
|
"swapStepDetails": "通过{{tool}}在{{chain}}链上兑换代币",
|
|
181
193
|
"swapping": "兑换中",
|
|
182
194
|
"tags": {
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
195
|
+
"cheapest": "便宜的",
|
|
196
|
+
"fastest": "快速的",
|
|
197
|
+
"insurable": "可保性",
|
|
198
|
+
"insurance": "保险",
|
|
199
|
+
"insured": "受保的",
|
|
200
|
+
"recommended": "建议的",
|
|
201
|
+
"safest": "最佳/安全"
|
|
188
202
|
},
|
|
189
203
|
"to": "到",
|
|
190
204
|
"tokenOnChain": "{{chainName}}链上的{{tokenSymbol}}",
|
|
@@ -197,8 +211,8 @@
|
|
|
197
211
|
"deleteActiveSwaps": "正在进行的兑换记录只存储在本地,如果删除它们,我们将无法恢复这些记录。",
|
|
198
212
|
"deleteSwapHistory": "兑换记录只存储在本地,如果你删除它,我们将无法恢复这些记录。",
|
|
199
213
|
"highValueLoss": "收到的代币的价值明显低于要被兑换的代币和交易成本。",
|
|
200
|
-
"insufficientFunds": "
|
|
201
|
-
"insufficientGas": "
|
|
214
|
+
"insufficientFunds": "你没有足够的资金来完成这笔交易。",
|
|
215
|
+
"insufficientGas": "您没有足够的燃气费来完成此次交易。您至少需要添加:",
|
|
202
216
|
"rateChanged": "兑换比例已经改变,如果继续兑换,您将接受新的兑换比例。",
|
|
203
217
|
"resetSettings": "这将重置您的路由优先级,滑点,燃气费,选中的跨链桥和链上交易所。"
|
|
204
218
|
},
|
|
@@ -207,13 +221,14 @@
|
|
|
207
221
|
"deleteSwap": "确定要删除这个兑换记录?",
|
|
208
222
|
"deleteSwapHistory": "确定要清空兑换记录?",
|
|
209
223
|
"highValueLoss": "大额资金损失",
|
|
210
|
-
"insufficientGas": "
|
|
224
|
+
"insufficientGas": "燃气费不足",
|
|
211
225
|
"rateChanged": "兑换比例变动",
|
|
212
226
|
"resetSettings": "确定要恢复默认设置吗?"
|
|
213
227
|
}
|
|
214
228
|
}
|
|
215
229
|
},
|
|
216
230
|
"tooltip": {
|
|
231
|
+
"additionalProviderFee": "跨链和交易所的手续费。",
|
|
217
232
|
"estimatedNetworkFee": "预估网络手续费。",
|
|
218
233
|
"estimatedTime": "预计兑换的执行时间(分钟)。",
|
|
219
234
|
"notFound": {
|
package/icons/InsuraceLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const InsuraceLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
2
|
+
export declare const InsuraceLogo: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/icons/LiFiFullLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const LiFiFullLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
2
|
+
export declare const LiFiFullLogo: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/icons/LiFiLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const LiFiLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
2
|
+
export declare const LiFiLogo: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/icons/LiFiToolLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const LiFiToolLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
2
|
+
export declare const LiFiToolLogo: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/index.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export * from './config/version';
|
|
|
6
6
|
export { useWidgetEvents, widgetEvents } from './hooks';
|
|
7
7
|
export { useWallet } from './providers/WalletProvider';
|
|
8
8
|
export * from './types';
|
|
9
|
-
export declare const LiFiWidget: import("react").
|
|
9
|
+
export declare const LiFiWidget: import("react").ForwardRefExoticComponent<import("./types").WidgetDrawerProps & import("./types").WidgetConfig & import("./types").WidgetConfigPartialProps & import("react").RefAttributes<import("./AppDrawer").WidgetDrawer>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,33 +37,33 @@
|
|
|
37
37
|
"lifi"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@emotion/react": "^11.
|
|
41
|
-
"@emotion/styled": "^11.
|
|
40
|
+
"@emotion/react": "^11.11.0",
|
|
41
|
+
"@emotion/styled": "^11.11.0",
|
|
42
42
|
"@ethersproject/abstract-signer": "^5.7.0",
|
|
43
43
|
"@ethersproject/address": "^5.7.0",
|
|
44
44
|
"@ethersproject/experimental": "^5.7.0",
|
|
45
45
|
"@ethersproject/providers": "^5.7.2",
|
|
46
|
-
"@lifi/sdk": "^2.0.0-beta.
|
|
47
|
-
"@lifi/wallet-management": "^2.0.0-beta.
|
|
46
|
+
"@lifi/sdk": "^2.0.0-beta.13",
|
|
47
|
+
"@lifi/wallet-management": "^2.0.0-beta.7",
|
|
48
48
|
"@mui/icons-material": "^5.11.16",
|
|
49
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
50
|
-
"@mui/material": "^5.
|
|
51
|
-
"@tanstack/react-query": "^4.29.
|
|
49
|
+
"@mui/lab": "^5.0.0-alpha.131",
|
|
50
|
+
"@mui/material": "^5.13.2",
|
|
51
|
+
"@tanstack/react-query": "^4.29.7",
|
|
52
52
|
"@tanstack/react-virtual": "^3.0.0-beta.54",
|
|
53
53
|
"big.js": "^6.2.1",
|
|
54
|
-
"i18next": "^22.
|
|
54
|
+
"i18next": "^22.5.0",
|
|
55
55
|
"i18next-browser-languagedetector": "^7.0.1",
|
|
56
56
|
"microdiff": "^1.3.2",
|
|
57
57
|
"mitt": "^3.0.0",
|
|
58
58
|
"react": "^18.2.0",
|
|
59
59
|
"react-dom": "^18.2.0",
|
|
60
60
|
"react-hook-form": "^7.43.9",
|
|
61
|
-
"react-i18next": "^12.
|
|
61
|
+
"react-i18next": "^12.3.1",
|
|
62
62
|
"react-intersection-observer": "^9.4.3",
|
|
63
|
-
"react-router-dom": "^6.
|
|
64
|
-
"react-timer-hook": "^3.0.
|
|
63
|
+
"react-router-dom": "^6.11.2",
|
|
64
|
+
"react-timer-hook": "^3.0.6",
|
|
65
65
|
"uuid": "^9.0.0",
|
|
66
|
-
"zustand": "^4.3.
|
|
66
|
+
"zustand": "^4.3.8"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@types/react": "^18.0.0",
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ActiveSwapsPage: () => JSX.Element;
|
|
1
|
+
export declare const ActiveSwapsPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SearchTokenInput: () => JSX.Element;
|
|
1
|
+
export declare const SearchTokenInput: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Box, Container } from '@mui/material';
|
|
|
3
3
|
import { useLayoutEffect, useRef, useState } from 'react';
|
|
4
4
|
import { ChainSelect } from '../../components/ChainSelect';
|
|
5
5
|
import { TokenList } from '../../components/TokenList';
|
|
6
|
-
import { useContentHeight, useNavigateBack, useScrollableOverflowHidden, } from '../../hooks';
|
|
6
|
+
import { useContentHeight, useNavigateBack, useScrollableOverflowHidden, useSwapOnly, } from '../../hooks';
|
|
7
7
|
import { SearchTokenInput } from './SearchTokenInput';
|
|
8
8
|
const minTokenListHeight = 360;
|
|
9
9
|
export const SelectTokenPage = ({ formType }) => {
|
|
@@ -12,8 +12,10 @@ export const SelectTokenPage = ({ formType }) => {
|
|
|
12
12
|
const headerRef = useRef(null);
|
|
13
13
|
const contentHeight = useContentHeight();
|
|
14
14
|
const [tokenListHeight, setTokenListHeight] = useState(0);
|
|
15
|
+
const swapOnly = useSwapOnly();
|
|
15
16
|
useLayoutEffect(() => {
|
|
16
17
|
setTokenListHeight(Math.max(contentHeight - (headerRef.current?.offsetHeight ?? 0), minTokenListHeight));
|
|
17
18
|
}, [contentHeight]);
|
|
18
|
-
|
|
19
|
+
const hideChainSelect = swapOnly && formType === 'to';
|
|
20
|
+
return (_jsxs(Container, { disableGutters: true, children: [_jsxs(Box, { pt: 1, pb: 2, px: 3, ref: headerRef, children: [!hideChainSelect ? _jsx(ChainSelect, { formType: formType }) : null, _jsx(Box, { mt: !hideChainSelect ? 2 : 0, children: _jsx(SearchTokenInput, {}) })] }), _jsx(TokenList, { height: tokenListHeight, onClick: navigateBack, formType: formType })] }));
|
|
19
21
|
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SelectWalletPage: () => JSX.Element;
|
|
1
|
+
export declare const SelectWalletPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const GasPriceSelect: () => JSX.Element;
|
|
1
|
+
export declare const GasPriceSelect: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,7 +24,7 @@ export const LanguageSelect = () => {
|
|
|
24
24
|
if (filteredLanguages.length <= 1) {
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
const value = filteredLanguages.includes(language || i18n.resolvedLanguage)
|
|
27
|
+
const value = filteredLanguages.includes(language || i18n.resolvedLanguage || '')
|
|
28
28
|
? language || i18n.resolvedLanguage
|
|
29
29
|
: languages?.default || languages?.allow?.[0];
|
|
30
30
|
return (_jsxs(Card, { mb: 2, children: [_jsx(CardTitle, { children: t(`language.title`) }), _jsx(FormControl, { fullWidth: true, children: _jsx(Select, { MenuProps: { elevation: 2 }, value: value, onChange: handleChangeLanguage, IconComponent: KeyboardArrowDownIcon, dense: true, children: filteredLanguages.map((lng) => {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SettingsPage: () => JSX.Element;
|
|
1
|
+
export declare const SettingsPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ShowDestinationWallet: () => JSX.Element | null;
|
|
1
|
+
export declare const ShowDestinationWallet: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SlippageInput: () => JSX.Element;
|
|
1
|
+
export declare const SlippageInput: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,16 +7,20 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import { useLocation } from 'react-router-dom';
|
|
8
8
|
import { shallow } from 'zustand/shallow';
|
|
9
9
|
import { Card, CardTitle } from '../../components/Card';
|
|
10
|
+
import { ContractComponent } from '../../components/ContractComponent';
|
|
10
11
|
import { Dialog } from '../../components/Dialog';
|
|
11
12
|
import { useHeaderActionStore } from '../../components/Header';
|
|
12
13
|
import { Insurance } from '../../components/Insurance';
|
|
13
14
|
import { getStepList } from '../../components/Step';
|
|
14
15
|
import { useNavigateBack } from '../../hooks';
|
|
16
|
+
import { useWidgetConfig } from '../../providers';
|
|
15
17
|
import { useRouteExecutionStore } from '../../stores';
|
|
18
|
+
import { formatTokenAmount } from '../../utils';
|
|
16
19
|
import { Container } from './SwapDetailsPage.style';
|
|
17
20
|
export const SwapDetailsPage = () => {
|
|
18
21
|
const { t, i18n } = useTranslation();
|
|
19
22
|
const { navigateBack } = useNavigateBack();
|
|
23
|
+
const { variant } = useWidgetConfig();
|
|
20
24
|
const { state } = useLocation();
|
|
21
25
|
const [routeExecution, deleteRoute] = useRouteExecutionStore((store) => [store.routes[state?.routeId], store.deleteRoute], shallow);
|
|
22
26
|
const [open, setOpen] = useState(false);
|
|
@@ -50,8 +54,8 @@ export const SwapDetailsPage = () => {
|
|
|
50
54
|
justifyContent: 'space-between',
|
|
51
55
|
}, pb: 1, children: [_jsx(Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, { dateStyle: 'long' }).format(startedAt) }), _jsx(Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, {
|
|
52
56
|
timeStyle: 'short',
|
|
53
|
-
}).format(startedAt) })] }), getStepList(routeExecution?.route), routeExecution?.route?.insurance?.state === 'INSURED' ? (_jsx(Insurance, { mt: 2, status: routeExecution.status, feeAmountUsd: routeExecution.route.insurance.feeAmountUsd, insurableRouteId: routeExecution.route.id, insuranceCoverageId: insuranceCoverageId })) : null, _jsxs(Card, { mt: 2, children: [_jsxs(Box, { sx: {
|
|
57
|
+
}).format(startedAt) })] }), getStepList(routeExecution?.route), variant === 'nft' ? _jsx(ContractComponent, { mt: 2 }) : null, routeExecution?.route?.insurance?.state === 'INSURED' ? (_jsx(Insurance, { mt: 2, status: routeExecution.status, feeAmountUsd: routeExecution.route.insurance.feeAmountUsd, insuredAmount: formatTokenAmount(routeExecution.route.toAmountMin, routeExecution.route.toToken.decimals), insuredTokenSymbol: routeExecution.route.toToken.symbol, insurableRouteId: routeExecution.route.id, insuranceCoverageId: insuranceCoverageId })) : null, _jsxs(Card, { mt: 2, children: [_jsxs(Box, { sx: {
|
|
54
58
|
display: 'flex',
|
|
55
59
|
flex: 1,
|
|
56
|
-
}, children: [_jsx(CardTitle, { flex: 1, children: t('swap.supportId') }), _jsx(Box, { mr: 1, mt: 1, children: _jsx(IconButton, { size: "medium", onClick: copySupportId, children: _jsx(ContentCopyIcon, { fontSize: "small" }) }) })] }), _jsx(Typography, { variant: "body2", pt: 1, pb: 2, px: 2, sx: { wordBreak: 'break-all' }, children: supportId })] }), _jsx(Box, { mt: 2, children: _jsx(Button, { href: "https://discord.
|
|
60
|
+
}, children: [_jsx(CardTitle, { flex: 1, children: t('swap.supportId') }), _jsx(Box, { mr: 1, mt: 1, children: _jsx(IconButton, { size: "medium", onClick: copySupportId, children: _jsx(ContentCopyIcon, { fontSize: "small" }) }) })] }), _jsx(Typography, { variant: "body2", pt: 1, pb: 2, px: 2, sx: { wordBreak: 'break-all' }, children: supportId })] }), _jsx(Box, { mt: 2, children: _jsx(Button, { href: "https://discord.gg/lifi", target: "_blank", rel: "nofollow noreferrer", fullWidth: true, children: t('button.contactSupport') }) }), _jsxs(Dialog, { open: open, onClose: toggleDialog, children: [_jsx(DialogTitle, { children: t('swap.warning.title.deleteSwap') }), _jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('swap.warning.message.deleteSwapHistory') }) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: toggleDialog, children: t('button.cancel') }), _jsx(Button, { variant: "contained", onClick: handleDeleteRoute, autoFocus: true, children: t('button.delete') })] })] })] }));
|
|
57
61
|
};
|
|
@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import { BottomSheet } from '../../components/BottomSheet';
|
|
8
8
|
import { useSetContentHeight } from '../../hooks';
|
|
9
9
|
import { formatTokenAmount } from '../../utils';
|
|
10
|
-
import {
|
|
10
|
+
import { CenterContainer, IconCircle } from './StatusBottomSheet.style';
|
|
11
11
|
export const ExchangeRateBottomSheet = forwardRef(({ onContinue, onCancel }, ref) => {
|
|
12
12
|
const [data, setData] = useState();
|
|
13
13
|
const bottomSheetRef = useRef(null);
|
|
@@ -44,7 +44,7 @@ const ExchangeRateBottomSheetContent = ({ data, onCancel, onContinue }) => {
|
|
|
44
44
|
const { t } = useTranslation();
|
|
45
45
|
const ref = useRef();
|
|
46
46
|
useSetContentHeight(ref);
|
|
47
|
-
return (_jsxs(Box, { p: 3, ref: ref, children: [_jsxs(
|
|
47
|
+
return (_jsxs(Box, { p: 3, ref: ref, children: [_jsxs(CenterContainer, { children: [_jsx(IconCircle, { status: "warning", mb: 1, children: _jsx(WarningRoundedIcon, { color: "warning" }) }), _jsx(Typography, { py: 1, fontSize: 18, fontWeight: 700, children: t('swap.warning.title.rateChanged') })] }), _jsx(Typography, { py: 1, children: t('swap.warning.message.rateChanged') }), _jsxs(Box, { display: "flex", justifyContent: "space-between", mt: 1, children: [_jsx(Typography, { children: t('swap.quotedAmount') }), _jsxs(Typography, { fontWeight: 600, children: [t('format.number', {
|
|
48
48
|
value: formatTokenAmount(data?.oldToAmount, data?.toToken.decimals, 5),
|
|
49
49
|
}), ' ', data?.toToken.symbol] })] }), _jsxs(Box, { display: "flex", justifyContent: "space-between", mt: 0.25, children: [_jsx(Typography, { children: t('swap.currentAmount') }), _jsxs(Typography, { fontWeight: 600, children: [t('format.number', {
|
|
50
50
|
value: formatTokenAmount(data?.newToAmount, data?.toToken.decimals, 5),
|