@lifi/widget 1.27.1 → 1.28.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/AppDrawer.style.d.ts +1 -1
- package/AppRoutes.js +15 -33
- package/README.md +1 -1
- package/cjs/AppDrawer.style.d.ts +1 -1
- package/cjs/AppRoutes.js +15 -33
- package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
- package/cjs/components/Card/Card.d.ts +1 -1
- package/cjs/components/ChainSelect/ChainSelect.style.d.ts +1 -1
- package/cjs/components/ContractComponent/ContractComponent.d.ts +3 -0
- package/cjs/components/ContractComponent/ContractComponent.js +14 -0
- package/cjs/components/ContractComponent/index.d.ts +1 -0
- package/cjs/components/ContractComponent/index.js +17 -0
- package/cjs/components/Header/Header.style.d.ts +2 -2
- package/cjs/components/Header/NavigationHeader.js +10 -2
- package/cjs/components/Header/WalletHeader.js +1 -1
- package/cjs/components/NFT/NFT.d.ts +4 -0
- package/cjs/components/NFT/NFT.js +41 -0
- package/cjs/components/NFT/NFT.style.d.ts +16 -0
- package/cjs/components/NFT/NFT.style.js +11 -0
- package/cjs/components/NFT/index.d.ts +2 -0
- package/cjs/components/NFT/index.js +18 -0
- package/cjs/components/NFT/types.d.ts +15 -0
- package/cjs/components/NFT/types.js +2 -0
- package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/cjs/components/Select.d.ts +1 -1
- package/cjs/components/SelectChainAndToken.js +12 -2
- package/cjs/components/SelectTokenButton/SelectTokenButton.js +5 -2
- package/cjs/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/cjs/components/SmallAvatar.d.ts +1 -1
- package/cjs/components/Step/StepProcess.style.d.ts +1 -1
- package/cjs/components/StepActions/StepActions.d.ts +6 -7
- package/cjs/components/StepActions/StepActions.js +41 -12
- package/cjs/components/StepActions/StepActions.style.d.ts +1 -1
- package/cjs/components/StepActions/types.d.ts +5 -0
- package/cjs/components/SwapInput/SwapInput.d.ts +2 -1
- package/cjs/components/SwapInput/SwapInput.js +15 -3
- package/cjs/components/SwapInput/SwapInput.style.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/cjs/components/SwapRouteCard/SwapRouteCard.js +3 -1
- package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
- package/cjs/components/Token/Token.d.ts +1 -1
- package/cjs/components/Token/Token.js +12 -12
- package/cjs/components/TokenAvatar/TokenAvatar.d.ts +5 -3
- package/cjs/components/TokenAvatar/TokenAvatar.js +10 -9
- package/cjs/components/TokenList/TokenList.style.js +6 -0
- package/cjs/components/TokenList/VirtualizedTokenList.js +4 -2
- package/cjs/config/theme.js +3 -5
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/hooks/useSwapRoutes.d.ts +5 -2
- package/cjs/hooks/useSwapRoutes.js +64 -14
- package/cjs/hooks/useToken.d.ts +1 -1
- package/cjs/hooks/useTokenSearch.d.ts +1 -1
- package/cjs/i18n/de.json +214 -214
- package/cjs/i18n/en.json +218 -214
- package/cjs/i18n/es.json +191 -191
- package/cjs/i18n/fr.json +214 -214
- package/cjs/i18n/it.json +214 -214
- package/cjs/i18n/uk.json +214 -214
- package/cjs/i18n/zh.json +214 -214
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +4 -1
- package/cjs/pages/MainPage/MainPage.js +5 -1
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/cjs/pages/SettingsPage/LanguageSelect.js +1 -2
- package/cjs/providers/SwapFormProvider/types.d.ts +10 -0
- package/cjs/providers/SwapFormProvider/types.js +5 -0
- package/cjs/stores/chains/useChainOrderStore.d.ts +1 -1
- package/cjs/stores/routes/useRouteExecutionStore.d.ts +1 -1
- package/cjs/stores/settings/useSettingsStore.d.ts +1 -1
- package/cjs/types/widget.d.ts +12 -6
- package/cjs/types/widget.js +2 -0
- package/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
- package/components/Card/Card.d.ts +1 -1
- package/components/ChainSelect/ChainSelect.style.d.ts +1 -1
- package/components/ContractComponent/ContractComponent.d.ts +3 -0
- package/components/ContractComponent/ContractComponent.js +10 -0
- package/components/ContractComponent/index.d.ts +1 -0
- package/components/ContractComponent/index.js +1 -0
- package/components/Header/Header.style.d.ts +2 -2
- package/components/Header/NavigationHeader.js +12 -4
- package/components/Header/WalletHeader.js +1 -1
- package/components/NFT/NFT.d.ts +4 -0
- package/components/NFT/NFT.js +37 -0
- package/components/NFT/NFT.style.d.ts +16 -0
- package/components/NFT/NFT.style.js +8 -0
- package/components/NFT/index.d.ts +2 -0
- package/components/NFT/index.js +2 -0
- package/components/NFT/types.d.ts +15 -0
- package/components/NFT/types.js +1 -0
- package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/components/Select.d.ts +1 -1
- package/components/SelectChainAndToken.js +12 -2
- package/components/SelectTokenButton/SelectTokenButton.js +5 -2
- package/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/components/SmallAvatar.d.ts +1 -1
- package/components/Step/StepProcess.style.d.ts +1 -1
- package/components/StepActions/StepActions.d.ts +6 -7
- package/components/StepActions/StepActions.js +40 -12
- package/components/StepActions/StepActions.style.d.ts +1 -1
- package/components/StepActions/types.d.ts +5 -0
- package/components/SwapInput/SwapInput.d.ts +2 -1
- package/components/SwapInput/SwapInput.js +15 -3
- package/components/SwapInput/SwapInput.style.d.ts +1 -1
- package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/components/SwapRouteCard/SwapRouteCard.js +3 -1
- package/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
- package/components/Token/Token.d.ts +1 -1
- package/components/Token/Token.js +13 -13
- package/components/TokenAvatar/TokenAvatar.d.ts +5 -3
- package/components/TokenAvatar/TokenAvatar.js +10 -9
- package/components/TokenList/TokenList.style.js +6 -0
- package/components/TokenList/VirtualizedTokenList.js +4 -2
- package/config/theme.js +3 -5
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/useSwapRoutes.d.ts +5 -2
- package/hooks/useSwapRoutes.js +64 -14
- package/hooks/useToken.d.ts +1 -1
- package/hooks/useTokenSearch.d.ts +1 -1
- package/i18n/de.json +214 -214
- package/i18n/en.json +218 -214
- package/i18n/es.json +191 -191
- package/i18n/fr.json +214 -214
- package/i18n/it.json +214 -214
- package/i18n/uk.json +214 -214
- package/i18n/zh.json +214 -214
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +15 -13
- package/pages/MainPage/MainPage.js +5 -1
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/pages/SettingsPage/LanguageSelect.js +1 -2
- package/providers/SwapFormProvider/types.d.ts +10 -0
- package/providers/SwapFormProvider/types.js +5 -0
- package/stores/chains/useChainOrderStore.d.ts +1 -1
- package/stores/routes/useRouteExecutionStore.d.ts +1 -1
- package/stores/settings/useSettingsStore.d.ts +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/widget.d.ts +12 -6
- package/types/widget.js +2 -0
- package/cjs/fonts/Inter-Black.woff +0 -0
- package/cjs/fonts/Inter-Black.woff2 +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Bold.woff +0 -0
- package/cjs/fonts/Inter-Bold.woff2 +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Italic.woff +0 -0
- package/cjs/fonts/Inter-Italic.woff2 +0 -0
- package/cjs/fonts/Inter-Light.woff +0 -0
- package/cjs/fonts/Inter-Light.woff2 +0 -0
- package/cjs/fonts/Inter-LightItalic.woff +0 -0
- package/cjs/fonts/Inter-LightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Medium.woff +0 -0
- package/cjs/fonts/Inter-Medium.woff2 +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Regular.woff +0 -0
- package/cjs/fonts/Inter-Regular.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBold.woff +0 -0
- package/cjs/fonts/Inter-SemiBold.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Thin.woff +0 -0
- package/cjs/fonts/Inter-Thin.woff2 +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff2 +0 -0
- package/cjs/fonts/Inter-italic.var.woff2 +0 -0
- package/cjs/fonts/Inter-roman.var.woff2 +0 -0
- package/cjs/fonts/Inter.var.woff2 +0 -0
- package/cjs/fonts/inter.css +0 -200
- package/fonts/Inter-Black.woff +0 -0
- package/fonts/Inter-Black.woff2 +0 -0
- package/fonts/Inter-BlackItalic.woff +0 -0
- package/fonts/Inter-BlackItalic.woff2 +0 -0
- package/fonts/Inter-Bold.woff +0 -0
- package/fonts/Inter-Bold.woff2 +0 -0
- package/fonts/Inter-BoldItalic.woff +0 -0
- package/fonts/Inter-BoldItalic.woff2 +0 -0
- package/fonts/Inter-ExtraBold.woff +0 -0
- package/fonts/Inter-ExtraBold.woff2 +0 -0
- package/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter-ExtraLight.woff +0 -0
- package/fonts/Inter-ExtraLight.woff2 +0 -0
- package/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter-Italic.woff +0 -0
- package/fonts/Inter-Italic.woff2 +0 -0
- package/fonts/Inter-Light.woff +0 -0
- package/fonts/Inter-Light.woff2 +0 -0
- package/fonts/Inter-LightItalic.woff +0 -0
- package/fonts/Inter-LightItalic.woff2 +0 -0
- package/fonts/Inter-Medium.woff +0 -0
- package/fonts/Inter-Medium.woff2 +0 -0
- package/fonts/Inter-MediumItalic.woff +0 -0
- package/fonts/Inter-MediumItalic.woff2 +0 -0
- package/fonts/Inter-Regular.woff +0 -0
- package/fonts/Inter-Regular.woff2 +0 -0
- package/fonts/Inter-SemiBold.woff +0 -0
- package/fonts/Inter-SemiBold.woff2 +0 -0
- package/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter-Thin.woff +0 -0
- package/fonts/Inter-Thin.woff2 +0 -0
- package/fonts/Inter-ThinItalic.woff +0 -0
- package/fonts/Inter-ThinItalic.woff2 +0 -0
- package/fonts/Inter-italic.var.woff2 +0 -0
- package/fonts/Inter-roman.var.woff2 +0 -0
- package/fonts/Inter.var.woff2 +0 -0
- package/fonts/inter.css +0 -200
package/i18n/zh.json
CHANGED
|
@@ -1,223 +1,223 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
"format": {
|
|
31
|
-
"currency": "{{value, currency(currency: USD)}}",
|
|
32
|
-
"number": "{{value, number(maximumFractionDigits: 4)}}"
|
|
33
|
-
},
|
|
34
|
-
"header": {
|
|
35
|
-
"activeSwaps": "正在进行的兑换",
|
|
36
|
-
"from": "兑换自",
|
|
37
|
-
"gas": "Gas",
|
|
38
|
-
"gasSwap": "Gas swap",
|
|
39
|
-
"routes": "你会得到",
|
|
40
|
-
"selectChain": "选择链",
|
|
41
|
-
"selectWallet": "选择你的钱包",
|
|
42
|
-
"settings": "设置",
|
|
43
|
-
"swap": "兑换",
|
|
44
|
-
"swapDetails": "兑换详情",
|
|
45
|
-
"swapHistory": "兑换历史记录",
|
|
46
|
-
"to": "兑换为",
|
|
47
|
-
"walletConnected": "连接钱包"
|
|
48
|
-
},
|
|
49
|
-
"language": {
|
|
50
|
-
"name": "中文",
|
|
51
|
-
"title": "语言"
|
|
52
|
-
},
|
|
53
|
-
"settings": {
|
|
54
|
-
"advancedPreferences": "偏好设置",
|
|
55
|
-
"enabledBridges": "已选中的跨链桥",
|
|
56
|
-
"enabledExchanges": "已选中的交易所",
|
|
57
|
-
"gasPrice": {
|
|
58
|
-
"fast": "快速",
|
|
59
|
-
"normal": "正常",
|
|
60
|
-
"slow": "缓慢",
|
|
61
|
-
"title": "手续费"
|
|
2
|
+
"button": {
|
|
3
|
+
"auto": "自动",
|
|
4
|
+
"cancel": "取消",
|
|
5
|
+
"connectWallet": "连接钱包",
|
|
6
|
+
"contactSupport": "联系我们",
|
|
7
|
+
"continue": "继续",
|
|
8
|
+
"copyAddress": "复制地址",
|
|
9
|
+
"dark": "深色模式",
|
|
10
|
+
"delete": "删除",
|
|
11
|
+
"disconnectWallet": "断开钱包",
|
|
12
|
+
"done": "已完成",
|
|
13
|
+
"getGas": "Get gas",
|
|
14
|
+
"hide": "隐藏",
|
|
15
|
+
"lifiSwap": "LI.FI代币兑换",
|
|
16
|
+
"light": "浅色模式",
|
|
17
|
+
"max": "最大",
|
|
18
|
+
"ok": "确认",
|
|
19
|
+
"okay": "确认",
|
|
20
|
+
"removeSwap": "删除该兑换",
|
|
21
|
+
"restartSwap": "重新兑换",
|
|
22
|
+
"reviewSwap": "查看该兑换",
|
|
23
|
+
"seeDetails": "查看详情",
|
|
24
|
+
"showAll": "显示所有",
|
|
25
|
+
"startGasSwap": "Start gas swap",
|
|
26
|
+
"startSwap": "开始兑换",
|
|
27
|
+
"swap": "兑换",
|
|
28
|
+
"tryAgain": "再试一次"
|
|
62
29
|
},
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"selectEnabledExchanges": "选择要使用的交易所",
|
|
67
|
-
"showDestinationWallet": "显示收款钱包",
|
|
68
|
-
"slippage": "滑点"
|
|
69
|
-
},
|
|
70
|
-
"swap": {
|
|
71
|
-
"crossStepDetails": "通过{{tool}}把资产从{{from}}链跨到{{to}}链上",
|
|
72
|
-
"currentAmount": "Current amount",
|
|
73
|
-
"error": {
|
|
74
|
-
"message": {
|
|
75
|
-
"slippageThreshold": "The slippage is larger than the defined threshold. Please request a new route to get a fresh quote.",
|
|
76
|
-
"transactionFailed": "请查看区块浏览器以了解更多信息。",
|
|
77
|
-
"transactionNotSent": "交易未发送,资金仍在您的钱包中({{chainName}}链上{{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}})。",
|
|
78
|
-
"transactionRejected": "需要您签名来完成此次交易。不用担心,{{chainName}}链上{{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}}仍在您的钱包里。",
|
|
79
|
-
"unknown": "Please try again or contact support."
|
|
80
|
-
},
|
|
81
|
-
"title": {
|
|
82
|
-
"balanceIsTooLow": "The balance is too low",
|
|
83
|
-
"chainSwitch": "需要切换当前链",
|
|
84
|
-
"failed": "兑换失败。",
|
|
85
|
-
"gasLimitIsTooLow": "The gas limit is too low",
|
|
86
|
-
"slippageNotMet": "Slippage conditions not met",
|
|
87
|
-
"transactionCanceled": "Transaction canceled",
|
|
88
|
-
"transactionFailed": "交易失败。",
|
|
89
|
-
"transactionRejected": "交易需要签名。",
|
|
90
|
-
"transactionUnderpriced": "交易价格过低。",
|
|
91
|
-
"transactionUnprepared": "无法准备该交易。",
|
|
92
|
-
"unknown": "未知错误。",
|
|
93
|
-
"walletAddressInvalid": "钱包地址无效。",
|
|
94
|
-
"walletEnsAddressInvalid": "钱包地址无效或者当前网络不支持ENS。"
|
|
95
|
-
}
|
|
30
|
+
"format": {
|
|
31
|
+
"currency": "{{value, currency(currency: USD)}}",
|
|
32
|
+
"number": "{{value, number(maximumFractionDigits: 4)}}"
|
|
96
33
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
},
|
|
112
|
-
"title": {
|
|
113
|
-
"emptyActiveSwaps": "没有正在进行的兑换",
|
|
114
|
-
"emptySwapHistory": "空兑换历史记录",
|
|
115
|
-
"routeNotFound": "没有可用的路由"
|
|
116
|
-
}
|
|
34
|
+
"header": {
|
|
35
|
+
"activeSwaps": "正在进行的兑换",
|
|
36
|
+
"from": "兑换自",
|
|
37
|
+
"gas": "Gas",
|
|
38
|
+
"gasSwap": "Gas swap",
|
|
39
|
+
"routes": "你会得到",
|
|
40
|
+
"selectChain": "选择链",
|
|
41
|
+
"selectWallet": "选择你的钱包",
|
|
42
|
+
"settings": "设置",
|
|
43
|
+
"swap": "兑换",
|
|
44
|
+
"swapDetails": "兑换详情",
|
|
45
|
+
"swapHistory": "兑换历史记录",
|
|
46
|
+
"to": "兑换为",
|
|
47
|
+
"walletConnected": "连接钱包"
|
|
117
48
|
},
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"crossChain": {
|
|
122
|
-
"actionRequired": "请签署此交易。",
|
|
123
|
-
"done": "交易已批准。",
|
|
124
|
-
"pending": "等待交易完成。",
|
|
125
|
-
"started": "准备执行交易。"
|
|
126
|
-
},
|
|
127
|
-
"receivingChain": {
|
|
128
|
-
"done": "资金已到账。",
|
|
129
|
-
"partial": "Bridge partially completed",
|
|
130
|
-
"pending": "等待接收链。",
|
|
131
|
-
"refunded": "Bridge transaction refunded"
|
|
132
|
-
},
|
|
133
|
-
"swap": {
|
|
134
|
-
"actionRequired": "请签署此交易。",
|
|
135
|
-
"done": "兑换完成。",
|
|
136
|
-
"pending": "代币兑换中。",
|
|
137
|
-
"started": "准备兑换。"
|
|
138
|
-
},
|
|
139
|
-
"switchChain": {
|
|
140
|
-
"actionRequired": "需要切换当前链。",
|
|
141
|
-
"done": "链切换成功。"
|
|
142
|
-
},
|
|
143
|
-
"tokenAllowance": {
|
|
144
|
-
"done": "已批准代币限额。",
|
|
145
|
-
"pending": "等待代币限额批准完成。",
|
|
146
|
-
"started": "设置代币限额。"
|
|
147
|
-
}
|
|
49
|
+
"language": {
|
|
50
|
+
"name": "中文",
|
|
51
|
+
"title": "语言"
|
|
148
52
|
},
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
"swapSuccessful": "现在有 {{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}}在{{chainName}}链上的{{walletAddress}}钱包。"
|
|
166
|
-
},
|
|
167
|
-
"title": {
|
|
168
|
-
"gasSwapSuccessful": "Gas swap successful",
|
|
169
|
-
"refundIssued": "Refund issued",
|
|
170
|
-
"swapPartiallySuccessful": "Swap partially successful",
|
|
171
|
-
"swapSuccessful": "兑换成功"
|
|
172
|
-
}
|
|
53
|
+
"settings": {
|
|
54
|
+
"advancedPreferences": "偏好设置",
|
|
55
|
+
"enabledBridges": "已选中的跨链桥",
|
|
56
|
+
"enabledExchanges": "已选中的交易所",
|
|
57
|
+
"gasPrice": {
|
|
58
|
+
"fast": "快速",
|
|
59
|
+
"normal": "正常",
|
|
60
|
+
"slow": "缓慢",
|
|
61
|
+
"title": "手续费"
|
|
62
|
+
},
|
|
63
|
+
"resetToDefault": "重置为默认值",
|
|
64
|
+
"routePriority": "路由优先级",
|
|
65
|
+
"selectEnabledBridges": "选择要使用的跨链桥",
|
|
66
|
+
"selectEnabledExchanges": "选择要使用的交易所",
|
|
67
|
+
"showDestinationWallet": "显示收款钱包",
|
|
68
|
+
"slippage": "滑点"
|
|
173
69
|
},
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
70
|
+
"swap": {
|
|
71
|
+
"crossStepDetails": "通过{{tool}}把资产从{{from}}链跨到{{to}}链上",
|
|
72
|
+
"currentAmount": "Current amount",
|
|
73
|
+
"error": {
|
|
74
|
+
"message": {
|
|
75
|
+
"slippageThreshold": "The slippage is larger than the defined threshold. Please request a new route to get a fresh quote.",
|
|
76
|
+
"transactionFailed": "请查看区块浏览器以了解更多信息。",
|
|
77
|
+
"transactionNotSent": "交易未发送,资金仍在您的钱包中({{chainName}}链上{{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}})。",
|
|
78
|
+
"transactionRejected": "需要您签名来完成此次交易。不用担心,{{chainName}}链上{{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}}仍在您的钱包里。",
|
|
79
|
+
"unknown": "Please try again or contact support."
|
|
80
|
+
},
|
|
81
|
+
"title": {
|
|
82
|
+
"balanceIsTooLow": "The balance is too low",
|
|
83
|
+
"chainSwitch": "需要切换当前链",
|
|
84
|
+
"failed": "兑换失败。",
|
|
85
|
+
"gasLimitIsTooLow": "The gas limit is too low",
|
|
86
|
+
"slippageNotMet": "Slippage conditions not met",
|
|
87
|
+
"transactionCanceled": "Transaction canceled",
|
|
88
|
+
"transactionFailed": "交易失败。",
|
|
89
|
+
"transactionRejected": "交易需要签名。",
|
|
90
|
+
"transactionUnderpriced": "交易价格过低。",
|
|
91
|
+
"transactionUnprepared": "无法准备该交易。",
|
|
92
|
+
"unknown": "未知错误。",
|
|
93
|
+
"walletAddressInvalid": "钱包地址无效。",
|
|
94
|
+
"walletEnsAddressInvalid": "钱包地址无效或者当前网络不支持ENS。"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"estimatedTime": "{{value}}分钟",
|
|
98
|
+
"featuredTokens": "精选代币",
|
|
99
|
+
"from": "从",
|
|
100
|
+
"fromAmount": "需要支付",
|
|
101
|
+
"gasCost": "交易费",
|
|
102
|
+
"gasFeeEstimated": "estimated gas fee",
|
|
103
|
+
"gasFeePaid": "gas fee paid",
|
|
104
|
+
"inProgress": "进行中",
|
|
105
|
+
"info": {
|
|
106
|
+
"message": {
|
|
107
|
+
"emptyActiveSwaps": "正在进行的兑换将出现在这里。一旦完成,你可在兑换记录中找到它们。",
|
|
108
|
+
"emptySwapHistory": "兑换历史记录只存储在本地,如果你清除浏览器数据,他们将被删除。",
|
|
109
|
+
"emptyTokenList": "我们无法在{{chainName}}链上找到这些代币,或者你的钱包内没有这些代币。请再次搜索或者选择其他链再试一次。",
|
|
110
|
+
"routeNotFound": "试试另一个路由。"
|
|
111
|
+
},
|
|
112
|
+
"title": {
|
|
113
|
+
"emptyActiveSwaps": "没有正在进行的兑换",
|
|
114
|
+
"emptySwapHistory": "空兑换历史记录",
|
|
115
|
+
"routeNotFound": "没有可用的路由"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"onChain": "on {{chainName}}",
|
|
119
|
+
"otherTokens": "其他代币",
|
|
120
|
+
"process": {
|
|
121
|
+
"crossChain": {
|
|
122
|
+
"actionRequired": "请签署此交易。",
|
|
123
|
+
"done": "交易已批准。",
|
|
124
|
+
"pending": "等待交易完成。",
|
|
125
|
+
"started": "准备执行交易。"
|
|
126
|
+
},
|
|
127
|
+
"receivingChain": {
|
|
128
|
+
"done": "资金已到账。",
|
|
129
|
+
"partial": "Bridge partially completed",
|
|
130
|
+
"pending": "等待接收链。",
|
|
131
|
+
"refunded": "Bridge transaction refunded"
|
|
132
|
+
},
|
|
133
|
+
"swap": {
|
|
134
|
+
"actionRequired": "请签署此交易。",
|
|
135
|
+
"done": "兑换完成。",
|
|
136
|
+
"pending": "代币兑换中。",
|
|
137
|
+
"started": "准备兑换。"
|
|
138
|
+
},
|
|
139
|
+
"switchChain": {
|
|
140
|
+
"actionRequired": "需要切换当前链。",
|
|
141
|
+
"done": "链切换成功。"
|
|
142
|
+
},
|
|
143
|
+
"tokenAllowance": {
|
|
144
|
+
"done": "已批准代币限额。",
|
|
145
|
+
"pending": "等待代币限额批准完成。",
|
|
146
|
+
"started": "设置代币限额。"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"quotedAmount": "Quoted amount",
|
|
150
|
+
"rateChange": "Rate change",
|
|
151
|
+
"receiving": "接收",
|
|
152
|
+
"routes": "你会得到",
|
|
153
|
+
"selectChain": "链",
|
|
154
|
+
"selectChainAndToken": "选择链和代币",
|
|
155
|
+
"selectToken": "代币",
|
|
156
|
+
"sendToAddress": "Send to {{address}}",
|
|
157
|
+
"sendToWallet": "发送到另外的钱包",
|
|
158
|
+
"sentToAddress": "Sent to {{address}}",
|
|
159
|
+
"stepBridge": "跨链",
|
|
160
|
+
"stepSwap": "兑换",
|
|
161
|
+
"stepSwapAndBridge": "兑换和跨链",
|
|
162
|
+
"success": {
|
|
163
|
+
"message": {
|
|
164
|
+
"swapPartiallySuccessful": "We've tried to complete the swap, but {{tool}} ran out of liquidity for {{tokenSymbol}} token.",
|
|
165
|
+
"swapSuccessful": "现在有 {{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}}在{{chainName}}链上的{{walletAddress}}钱包。"
|
|
166
|
+
},
|
|
167
|
+
"title": {
|
|
168
|
+
"gasSwapSuccessful": "Gas swap successful",
|
|
169
|
+
"refundIssued": "Refund issued",
|
|
170
|
+
"swapPartiallySuccessful": "Swap partially successful",
|
|
171
|
+
"swapSuccessful": "兑换成功"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"supportId": "支持ID",
|
|
175
|
+
"swapStepDetails": "通过{{tool}}在{{chain}}链上兑换代币",
|
|
176
|
+
"swapping": "兑换",
|
|
177
|
+
"tags": {
|
|
178
|
+
"ALTERNATIVE": "可用",
|
|
179
|
+
"CHEAPEST": "便宜",
|
|
180
|
+
"FASTEST": "快捷",
|
|
181
|
+
"RECOMMENDED": "推荐",
|
|
182
|
+
"SAFEST": "安全"
|
|
183
|
+
},
|
|
184
|
+
"to": "到",
|
|
185
|
+
"tokenOnChain": "{{chainName}}链上的{{tokenSymbol}}",
|
|
186
|
+
"tokenOnChainAmount": "{{chainName}}链上{{amount, number(maximumFractionDigits: 4)}}个{{tokenSymbol}}",
|
|
187
|
+
"tokenSearch": "搜索代币",
|
|
188
|
+
"valueLoss": "资金损失",
|
|
189
|
+
"walletAddressOrEns": "钱包地址或ENS名称",
|
|
190
|
+
"warning": {
|
|
191
|
+
"message": {
|
|
192
|
+
"deleteActiveSwaps": "正在进行的兑换记录只存储在本地,如果删除它们,我们将无法恢复这些记录。",
|
|
193
|
+
"deleteSwapHistory": "兑换历史记录只存储在本地,如果你删除它,我们将无法恢复这些记录。",
|
|
194
|
+
"highValueLoss": "收到的代币的价值明显低于要被兑换代币和交易成本。",
|
|
195
|
+
"insufficientFunds": "你没有足够的资金来执行这笔交易。",
|
|
196
|
+
"insufficientGas": "你至少需要:",
|
|
197
|
+
"rateChanged": "The exchange rate has changed. By continuing the swap, you'll accept the new rate."
|
|
198
|
+
},
|
|
199
|
+
"title": {
|
|
200
|
+
"deleteActiveSwaps": "确定要清空正在进行的兑换记录?",
|
|
201
|
+
"deleteSwap": "确定要删除这个兑换记录?",
|
|
202
|
+
"deleteSwapHistory": "确定要清空兑换历史记录?",
|
|
203
|
+
"highValueLoss": "大额资金损失",
|
|
204
|
+
"insufficientGas": "手续费不足",
|
|
205
|
+
"rateChanged": "Rate changed"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
183
208
|
},
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"highValueLoss": "收到的代币的价值明显低于要被兑换代币和交易成本。",
|
|
195
|
-
"insufficientFunds": "你没有足够的资金来执行这笔交易。",
|
|
196
|
-
"insufficientGas": "你至少需要:",
|
|
197
|
-
"rateChanged": "The exchange rate has changed. By continuing the swap, you'll accept the new rate."
|
|
198
|
-
},
|
|
199
|
-
"title": {
|
|
200
|
-
"deleteActiveSwaps": "确定要清空正在进行的兑换记录?",
|
|
201
|
-
"deleteSwap": "确定要删除这个兑换记录?",
|
|
202
|
-
"deleteSwapHistory": "确定要清空兑换历史记录?",
|
|
203
|
-
"highValueLoss": "大额资金损失",
|
|
204
|
-
"insufficientGas": "手续费不足",
|
|
205
|
-
"rateChanged": "Rate changed"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"tooltip": {
|
|
210
|
-
"estimatedNetworkFee": "预估网络手续费。",
|
|
211
|
-
"estimatedTime": "预计兑换的执行时间(分钟)。",
|
|
212
|
-
"notFound": {
|
|
213
|
-
"text": "我们找不到这个页面。",
|
|
214
|
-
"title": "404"
|
|
209
|
+
"tooltip": {
|
|
210
|
+
"estimatedNetworkFee": "预估网络手续费。",
|
|
211
|
+
"estimatedTime": "预计兑换的执行时间(分钟)。",
|
|
212
|
+
"notFound": {
|
|
213
|
+
"text": "我们找不到这个页面。",
|
|
214
|
+
"title": "404"
|
|
215
|
+
},
|
|
216
|
+
"numberOfSteps": "兑换步骤。每个步骤可以包含1-2个需要签名的交易。",
|
|
217
|
+
"progressToNextUpdate": "数据将在{{value}}秒后自动刷新。点击这里可以手动更新。",
|
|
218
|
+
"settingsModified": "设置(已修改)"
|
|
215
219
|
},
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
"wallet": {
|
|
221
|
-
"extensionNotFound": "在选择钱包之前,请确保只有{{name}}浏览器的扩展应用处于激活状态。"
|
|
222
|
-
}
|
|
220
|
+
"wallet": {
|
|
221
|
+
"extensionNotFound": "在选择钱包之前,请确保只有{{name}}浏览器的扩展应用处于激活状态。"
|
|
222
|
+
}
|
|
223
223
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './fonts/inter.css';
|
|
3
3
|
export type { WidgetDrawer } from './AppDrawer';
|
|
4
|
+
export * from './components/NFT';
|
|
4
5
|
export { useWidgetEvents, widgetEvents } from './hooks';
|
|
6
|
+
export { useWallet } from './providers/WalletProvider';
|
|
5
7
|
export * from './types';
|
|
6
8
|
export declare const LiFiWidget: import("react").FC<import("./types").WidgetProps>;
|
|
7
9
|
/**
|
package/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { App } from './App';
|
|
2
2
|
import { AppDrawer } from './AppDrawer';
|
|
3
3
|
import './fonts/inter.css';
|
|
4
|
+
export * from './components/NFT';
|
|
4
5
|
export { useWidgetEvents, widgetEvents } from './hooks';
|
|
6
|
+
export { useWallet } from './providers/WalletProvider';
|
|
5
7
|
export * from './types';
|
|
6
8
|
// ClassNameGenerator.configure((componentName) =>
|
|
7
9
|
// componentName.replace('Mui', 'LiFi'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
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",
|
|
@@ -39,31 +39,33 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@emotion/react": "^11.10.5",
|
|
41
41
|
"@emotion/styled": "^11.10.5",
|
|
42
|
+
"@ethersproject/abstract-signer": "^5.7.0",
|
|
42
43
|
"@ethersproject/address": "^5.7.0",
|
|
43
44
|
"@ethersproject/experimental": "^5.7.0",
|
|
44
45
|
"@ethersproject/providers": "^5.7.2",
|
|
45
46
|
"@lifi/sdk": "^1.7.2",
|
|
46
|
-
"@lifi/wallet-management": "^1.2.
|
|
47
|
+
"@lifi/wallet-management": "^1.2.3",
|
|
47
48
|
"@mui/icons-material": "^5.11.0",
|
|
48
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
49
|
-
"@mui/material": "^5.11.
|
|
50
|
-
"@sentry/integrations": "^7.
|
|
51
|
-
"@sentry/react": "^7.
|
|
52
|
-
"@sentry/tracing": "^7.
|
|
53
|
-
"@tanstack/react-query": "^4.
|
|
54
|
-
"@tanstack/react-virtual": "^3.0.0-beta.
|
|
49
|
+
"@mui/lab": "^5.0.0-alpha.114",
|
|
50
|
+
"@mui/material": "^5.11.3",
|
|
51
|
+
"@sentry/integrations": "^7.29.0",
|
|
52
|
+
"@sentry/react": "^7.29.0",
|
|
53
|
+
"@sentry/tracing": "^7.29.0",
|
|
54
|
+
"@tanstack/react-query": "^4.20.9",
|
|
55
|
+
"@tanstack/react-virtual": "^3.0.0-beta.34",
|
|
55
56
|
"big.js": "^6.2.1",
|
|
56
|
-
"i18next": "22.4.
|
|
57
|
+
"i18next": "^22.4.8",
|
|
57
58
|
"i18next-browser-languagedetector": "^7.0.1",
|
|
58
59
|
"microdiff": "^1.3.1",
|
|
59
60
|
"mitt": "^3.0.0",
|
|
60
61
|
"react": "^18.2.0",
|
|
61
62
|
"react-dom": "^18.2.0",
|
|
62
|
-
"react-hook-form": "^7.
|
|
63
|
+
"react-hook-form": "^7.41.5",
|
|
63
64
|
"react-i18next": "^12.1.1",
|
|
64
|
-
"react-router-dom": "^6.
|
|
65
|
+
"react-router-dom": "^6.6.1",
|
|
65
66
|
"react-timer-hook": "^3.0.5",
|
|
66
|
-
"
|
|
67
|
+
"uuid": "^9.0.0",
|
|
68
|
+
"zustand": "^4.2.0"
|
|
67
69
|
},
|
|
68
70
|
"peerDependencies": {
|
|
69
71
|
"@types/react": "^18.0.0",
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
3
|
import { ActiveSwaps } from '../../components/ActiveSwaps';
|
|
4
|
+
import { ContractComponent } from '../../components/ContractComponent';
|
|
4
5
|
import { GasSufficiencyMessage } from '../../components/GasSufficiencyMessage';
|
|
5
6
|
import { SelectChainAndToken } from '../../components/SelectChainAndToken';
|
|
6
7
|
import { SendToWallet, SendToWalletButton, } from '../../components/SendToWallet';
|
|
7
8
|
import { SwapInput } from '../../components/SwapInput';
|
|
8
9
|
import { SwapRoutes } from '../../components/SwapRoutes';
|
|
9
10
|
import { useExpandableVariant } from '../../hooks';
|
|
11
|
+
import { useWidgetConfig } from '../../providers';
|
|
10
12
|
import { FormContainer } from './MainPage.style';
|
|
11
13
|
import { MainSwapButton } from './MainSwapButton';
|
|
12
14
|
export const MainPage = () => {
|
|
13
15
|
const expandable = useExpandableVariant();
|
|
14
|
-
|
|
16
|
+
const { variant } = useWidgetConfig();
|
|
17
|
+
const nft = variant === 'nft';
|
|
18
|
+
return (_jsxs(FormContainer, Object.assign({ disableGutters: true }, { children: [_jsx(ActiveSwaps, { mx: 3, mt: 1, mb: 2 }), nft ? _jsx(ContractComponent, { mx: 3, mt: 1, mb: 1 }) : null, _jsx(SelectChainAndToken, { mt: 1, mx: 3, mb: 3 }), !nft ? _jsx(SwapInput, { formType: "from", mx: 3, mb: 3 }) : null, !expandable ? _jsx(SwapRoutes, { mx: 3, mb: 3 }) : null, _jsx(GasSufficiencyMessage, { mx: 3, mb: 3 }), _jsxs(Box, Object.assign({ mx: 3, mb: 1 }, { children: [_jsx(SendToWallet, { mb: 3 }), _jsxs(Box, Object.assign({ sx: { display: 'flex' } }, { children: [_jsx(MainSwapButton, {}), _jsx(SendToWalletButton, {})] }))] }))] })));
|
|
15
19
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ToggleButton: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
|
|
5
|
-
color?: "success" | "warning" | "error" | "
|
|
5
|
+
color?: "success" | "warning" | "error" | "primary" | "secondary" | "info" | "standard" | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
disableFocusRipple?: boolean | undefined;
|
|
8
8
|
fullWidth?: boolean | undefined;
|
|
@@ -9,9 +9,8 @@ import { useSettings, useSettingsStore } from '../../stores';
|
|
|
9
9
|
import { HiddenUI } from '../../types';
|
|
10
10
|
export const LanguageSelect = () => {
|
|
11
11
|
var _a;
|
|
12
|
-
const { t } = useTranslation();
|
|
12
|
+
const { t, i18n } = useTranslation();
|
|
13
13
|
const { languages, hiddenUI } = useWidgetConfig();
|
|
14
|
-
const { i18n } = useTranslation();
|
|
15
14
|
const setValue = useSettingsStore((state) => state.setValue);
|
|
16
15
|
const { language } = useSettings(['language']);
|
|
17
16
|
if (hiddenUI === null || hiddenUI === void 0 ? void 0 : hiddenUI.includes(HiddenUI.Language)) {
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
export declare enum SwapFormKey {
|
|
2
|
+
ContractOutputsToken = "contractOutputsToken",
|
|
2
3
|
FromAmount = "fromAmount",
|
|
3
4
|
FromChain = "fromChain",
|
|
4
5
|
FromToken = "fromToken",
|
|
5
6
|
ToAddress = "toAddress",
|
|
7
|
+
ToAmount = "toAmount",
|
|
6
8
|
ToChain = "toChain",
|
|
9
|
+
ToContractAddress = "toContractAddress",
|
|
10
|
+
ToContractCallData = "toContractCallData",
|
|
11
|
+
ToContractGasLimit = "ToContractGasLimit",
|
|
7
12
|
ToToken = "toToken",
|
|
8
13
|
TokenSearchFilter = "tokenSearchFilter"
|
|
9
14
|
}
|
|
10
15
|
export type SwapFormValues = {
|
|
16
|
+
[SwapFormKey.ContractOutputsToken]: string;
|
|
11
17
|
[SwapFormKey.FromAmount]: string;
|
|
12
18
|
[SwapFormKey.FromChain]: number;
|
|
13
19
|
[SwapFormKey.FromToken]: string;
|
|
14
20
|
[SwapFormKey.ToAddress]: string;
|
|
21
|
+
[SwapFormKey.ToAmount]: string;
|
|
15
22
|
[SwapFormKey.ToChain]: number;
|
|
23
|
+
[SwapFormKey.ToContractAddress]: string;
|
|
24
|
+
[SwapFormKey.ToContractCallData]: string;
|
|
25
|
+
[SwapFormKey.ToContractGasLimit]: string;
|
|
16
26
|
[SwapFormKey.ToToken]: string;
|
|
17
27
|
[SwapFormKey.TokenSearchFilter]: string;
|
|
18
28
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export var SwapFormKey;
|
|
2
2
|
(function (SwapFormKey) {
|
|
3
|
+
SwapFormKey["ContractOutputsToken"] = "contractOutputsToken";
|
|
3
4
|
SwapFormKey["FromAmount"] = "fromAmount";
|
|
4
5
|
SwapFormKey["FromChain"] = "fromChain";
|
|
5
6
|
SwapFormKey["FromToken"] = "fromToken";
|
|
6
7
|
SwapFormKey["ToAddress"] = "toAddress";
|
|
8
|
+
SwapFormKey["ToAmount"] = "toAmount";
|
|
7
9
|
SwapFormKey["ToChain"] = "toChain";
|
|
10
|
+
SwapFormKey["ToContractAddress"] = "toContractAddress";
|
|
11
|
+
SwapFormKey["ToContractCallData"] = "toContractCallData";
|
|
12
|
+
SwapFormKey["ToContractGasLimit"] = "ToContractGasLimit";
|
|
8
13
|
SwapFormKey["ToToken"] = "toToken";
|
|
9
14
|
SwapFormKey["TokenSearchFilter"] = "tokenSearchFilter";
|
|
10
15
|
})(SwapFormKey || (SwapFormKey = {}));
|
|
@@ -6,7 +6,7 @@ export declare const useChainOrderStore: import("zustand").UseBoundStore<Omit<im
|
|
|
6
6
|
chainOrder: number[];
|
|
7
7
|
}>>) => void;
|
|
8
8
|
clearStorage: () => void;
|
|
9
|
-
rehydrate: () => Promise<void>;
|
|
9
|
+
rehydrate: () => void | Promise<void>;
|
|
10
10
|
hasHydrated: () => boolean;
|
|
11
11
|
onHydrate: (fn: (state: ChainOrderStore) => void) => () => void;
|
|
12
12
|
onFinishHydration: (fn: (state: ChainOrderStore) => void) => () => void;
|
|
@@ -5,7 +5,7 @@ export declare const useRouteExecutionStore: import("zustand").UseBoundStore<Omi
|
|
|
5
5
|
routes: Partial<Record<string, import("./types").RouteExecution>>;
|
|
6
6
|
}>>) => void;
|
|
7
7
|
clearStorage: () => void;
|
|
8
|
-
rehydrate: () => Promise<void>;
|
|
8
|
+
rehydrate: () => void | Promise<void>;
|
|
9
9
|
hasHydrated: () => boolean;
|
|
10
10
|
onHydrate: (fn: (state: RouteExecutionStore) => void) => () => void;
|
|
11
11
|
onFinishHydration: (fn: (state: RouteExecutionStore) => void) => () => void;
|
|
@@ -20,7 +20,7 @@ export declare const useSettingsStore: import("zustand").UseBoundStore<Omit<impo
|
|
|
20
20
|
_enabledExchanges?: Record<string, boolean> | undefined;
|
|
21
21
|
}>>) => void;
|
|
22
22
|
clearStorage: () => void;
|
|
23
|
-
rehydrate: () => Promise<void>;
|
|
23
|
+
rehydrate: () => void | Promise<void>;
|
|
24
24
|
hasHydrated: () => boolean;
|
|
25
25
|
onHydrate: (fn: (state: SettingsStore) => void) => () => void;
|
|
26
26
|
onFinishHydration: (fn: (state: SettingsStore) => void) => () => void;
|