@lifi/widget 4.9.0 → 4.10.1
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/README.md +28 -10
- package/dist/esm/components/TokenList/TokenDetailsSheet.js +5 -8
- package/dist/esm/components/TokenList/TokenDetailsSheet.js.map +1 -1
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.js +30 -2
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.js.map +1 -1
- package/dist/esm/components/TokenList/TokenListItem.js +36 -47
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.d.ts.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +2 -2
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TokenList/tokenVerificationIcons.js +29 -0
- package/dist/esm/components/TokenList/tokenVerificationIcons.js.map +1 -0
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/hooks/usePacedValue.js +1 -1
- package/dist/esm/hooks/usePacedValue.js.map +1 -1
- package/dist/esm/hooks/useRouteExecutionMessage.d.ts.map +1 -1
- package/dist/esm/hooks/useRouteExecutionMessage.js +4 -8
- package/dist/esm/hooks/useRouteExecutionMessage.js.map +1 -1
- package/dist/esm/i18n/bn.json +567 -266
- package/dist/esm/i18n/de.json +552 -251
- package/dist/esm/i18n/en.json +12 -62
- package/dist/esm/i18n/es.json +522 -221
- package/dist/esm/i18n/fr.json +541 -240
- package/dist/esm/i18n/hi.json +592 -291
- package/dist/esm/i18n/id.json +485 -184
- package/dist/esm/i18n/it.json +546 -245
- package/dist/esm/i18n/ja.json +512 -211
- package/dist/esm/i18n/ko.json +553 -252
- package/dist/esm/i18n/pl.json +598 -297
- package/dist/esm/i18n/pt.json +513 -212
- package/dist/esm/i18n/th.json +554 -253
- package/dist/esm/i18n/tr.json +538 -237
- package/dist/esm/i18n/uk.json +514 -213
- package/dist/esm/i18n/vi.json +550 -249
- package/dist/esm/i18n/zh.json +528 -227
- package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js +70 -18
- package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js.map +1 -1
- package/dist/esm/pages/TransactionPage/utils.d.ts +3 -0
- package/dist/esm/pages/TransactionPage/utils.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/utils.js +27 -1
- package/dist/esm/pages/TransactionPage/utils.js.map +1 -1
- package/dist/esm/shared.d.ts +2 -2
- package/dist/esm/shared.js +2 -2
- package/dist/esm/stores/routes/utils.d.ts +1 -1
- package/dist/esm/stores/routes/utils.d.ts.map +1 -1
- package/dist/esm/stores/routes/utils.js +13 -1
- package/dist/esm/stores/routes/utils.js.map +1 -1
- package/dist/esm/utils/getErrorMessage.js +4 -0
- package/dist/esm/utils/getErrorMessage.js.map +1 -1
- package/dist/esm/utils/token.js +13 -1
- package/dist/esm/utils/token.js.map +1 -1
- package/package.json +4 -4
- package/src/components/TokenList/TokenDetailsSheet.tsx +5 -9
- package/src/components/TokenList/TokenDetailsSheetContent.tsx +46 -4
- package/src/components/TokenList/TokenListItem.tsx +44 -68
- package/src/components/TokenList/VirtualizedTokenList.tsx +3 -6
- package/src/components/TokenList/tokenVerificationIcons.ts +15 -0
- package/src/components/TokenList/types.ts +3 -11
- package/src/config/version.ts +1 -1
- package/src/hooks/usePacedValue.ts +1 -1
- package/src/hooks/useRouteExecutionMessage.ts +10 -13
- package/src/pages/TransactionPage/TransactionFailedButtons.test.tsx +497 -0
- package/src/pages/TransactionPage/TransactionFailedButtons.tsx +78 -9
- package/src/pages/TransactionPage/utils.ts +81 -0
- package/src/shared.ts +1 -0
- package/src/stores/routes/utils.ts +24 -1
- package/src/utils/getErrorMessage.ts +5 -0
- package/src/utils/token.ts +48 -0
package/dist/esm/i18n/en.json
CHANGED
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
},
|
|
6
6
|
"format": {
|
|
7
7
|
"currency": "{{value, currencyExt(currency: USD)}}",
|
|
8
|
-
"number": "{{value, number(maximumFractionDigits: 9)}}",
|
|
9
8
|
"percent": "{{value, percent(maximumFractionDigits: 2)}}",
|
|
10
9
|
"tokenAmount": "{{value, numberExt}}"
|
|
11
10
|
},
|
|
12
11
|
"button": {
|
|
13
12
|
"auto": "Auto",
|
|
14
13
|
"bookmark": "Bookmark",
|
|
15
|
-
"bookmarks": "Bookmarks",
|
|
16
14
|
"bridge": "Bridge",
|
|
17
15
|
"bridgeReview": "Review bridge",
|
|
18
16
|
"buy": "Buy",
|
|
@@ -41,17 +39,14 @@
|
|
|
41
39
|
"done": "Done",
|
|
42
40
|
"exchange": "Exchange",
|
|
43
41
|
"getGas": "Get gas",
|
|
44
|
-
"learnMore": "Learn more",
|
|
45
42
|
"light": "Light",
|
|
46
43
|
"max": "MAX",
|
|
47
|
-
"ok": "Ok",
|
|
48
44
|
"options": "Options",
|
|
49
45
|
"requestRefund": "Request refund",
|
|
50
46
|
"reset": "Reset",
|
|
51
47
|
"resetSettings": "Reset settings",
|
|
52
48
|
"resumeTransaction": "Resume transaction",
|
|
53
49
|
"review": "Review",
|
|
54
|
-
"seeDetails": "See details",
|
|
55
50
|
"topUp": "Top up",
|
|
56
51
|
"viewRefund": "View refund",
|
|
57
52
|
"viewRefundStatus": "View refund status",
|
|
@@ -60,12 +55,12 @@
|
|
|
60
55
|
"showLess": "Show less",
|
|
61
56
|
"showMore": "Show {{count}} more",
|
|
62
57
|
"startBridging": "Start bridging",
|
|
58
|
+
"startNewSwap": "Start a new swap",
|
|
63
59
|
"startSwapping": "Start swapping",
|
|
64
60
|
"swap": "Swap",
|
|
65
61
|
"swapReview": "Review swap",
|
|
66
62
|
"system": "System",
|
|
67
63
|
"tryAgain": "Try again",
|
|
68
|
-
"viewCoverage": "View coverage",
|
|
69
64
|
"viewOnExplorer": "View on explorer"
|
|
70
65
|
},
|
|
71
66
|
"header": {
|
|
@@ -94,7 +89,6 @@
|
|
|
94
89
|
"recentWallets": "Recent wallets",
|
|
95
90
|
"refunded": "Refunded",
|
|
96
91
|
"selectChain": "Select chain",
|
|
97
|
-
"selectWallet": "Select your wallet",
|
|
98
92
|
"sell": "Sell",
|
|
99
93
|
"send": "Send",
|
|
100
94
|
"sendToWallet": "Send to wallet",
|
|
@@ -104,8 +98,6 @@
|
|
|
104
98
|
"to": "Exchange to",
|
|
105
99
|
"transactionDetails": "Transaction details",
|
|
106
100
|
"activities": "Activities",
|
|
107
|
-
"walletConnected": "Wallet connected",
|
|
108
|
-
"youGet": "You get",
|
|
109
101
|
"youPay": "You pay"
|
|
110
102
|
},
|
|
111
103
|
"limitOrder": {
|
|
@@ -184,6 +176,7 @@
|
|
|
184
176
|
"error": {
|
|
185
177
|
"message": {
|
|
186
178
|
"allowanceRequired": "Transfer amount for {{tokenSymbol}} exceeds your current allowance. Please increase your allowance and try again.",
|
|
179
|
+
"callBundleNotFound": "Your wallet has no record of this transaction. If you approved it, it can still complete. Check your wallet balance before you swap again.",
|
|
187
180
|
"insufficientFunds": "You don't have enough gas to cover the cost of the transaction.",
|
|
188
181
|
"rateLimitExceeded": "Too many requests have been made in a short period of time. Please wait a moment and try again or contact support if the issue persists.",
|
|
189
182
|
"remainInYourWallet": "{{amount, numberExt}} {{tokenSymbol}} on {{chainName}} remain in your wallet.",
|
|
@@ -205,6 +198,7 @@
|
|
|
205
198
|
"balanceIsTooLow": "The balance is too low",
|
|
206
199
|
"bookmarkAlreadyExists": "Wallet is already bookmarked as {{name}}",
|
|
207
200
|
"bookmarkNameRequired": "Bookmark name is required",
|
|
201
|
+
"callBundleNotFound": "Transaction not found in your wallet",
|
|
208
202
|
"chainSwitch": "Chain switch required",
|
|
209
203
|
"exchangeRateUpdateCanceled": "Exchange rate update canceled",
|
|
210
204
|
"gasLimitIsTooLow": "The gas limit is too low",
|
|
@@ -266,17 +260,14 @@
|
|
|
266
260
|
"fees": {
|
|
267
261
|
"defaultIntegrator": "Integrator fee",
|
|
268
262
|
"relayerService": "Gasless service",
|
|
269
|
-
"estimated": "estimated costs",
|
|
270
263
|
"free": "Free",
|
|
271
264
|
"network": "Network cost",
|
|
272
|
-
"paid": "paid costs",
|
|
273
265
|
"provider": "Provider fee"
|
|
274
266
|
},
|
|
275
267
|
"from": "From",
|
|
276
268
|
"maxSlippage": "Max. slippage",
|
|
277
269
|
"minReceived": "Min. received",
|
|
278
270
|
"myTokens": "My tokens",
|
|
279
|
-
"onChain": "on {{chainName}}",
|
|
280
271
|
"ownedBy": "Owned by",
|
|
281
272
|
"pinnedTokens": "Pinned tokens",
|
|
282
273
|
"popularTokens": "Popular tokens",
|
|
@@ -298,8 +289,7 @@
|
|
|
298
289
|
"receivingChain": {
|
|
299
290
|
"done": "Bridge completed",
|
|
300
291
|
"partial": "Bridge partially completed",
|
|
301
|
-
"pending": "Waiting for destination chain"
|
|
302
|
-
"refunded": "Bridge transaction refunded"
|
|
292
|
+
"pending": "Waiting for destination chain"
|
|
303
293
|
},
|
|
304
294
|
"swap": {
|
|
305
295
|
"actionRequired": "Sign swap transaction",
|
|
@@ -329,20 +319,8 @@
|
|
|
329
319
|
"refuelStepDetails": "Get gas via {{tool}}",
|
|
330
320
|
"route": "Route",
|
|
331
321
|
"select": "Select",
|
|
332
|
-
"sendToAddress": "Send to {{address}}",
|
|
333
322
|
"sendToWallet": "Send to a different wallet",
|
|
334
323
|
"sending": "Sending",
|
|
335
|
-
"sentToAddress": "Sent to {{address}}",
|
|
336
|
-
"stepBridge": "Bridge",
|
|
337
|
-
"stepBridgeAndBuy": "Bridge and buy",
|
|
338
|
-
"stepBridgeAndDeposit": "Bridge and deposit",
|
|
339
|
-
"stepBuy": "Buy",
|
|
340
|
-
"stepDeposit": "Deposit",
|
|
341
|
-
"stepDetails": "{{tool}} via LI.FI",
|
|
342
|
-
"stepSwap": "Swap",
|
|
343
|
-
"stepSwapAndBridge": "Swap and bridge",
|
|
344
|
-
"stepSwapAndBuy": "Swap and buy",
|
|
345
|
-
"stepSwapAndDeposit": "Swap and deposit",
|
|
346
324
|
"swapStepDetails": "Swap on {{chain}} via {{tool}}",
|
|
347
325
|
"receipts": "Receipts",
|
|
348
326
|
"sentToWallet": "Sent to wallet",
|
|
@@ -410,7 +388,11 @@
|
|
|
410
388
|
"currentPrice": "Current price",
|
|
411
389
|
"contractAddress": "Contract address",
|
|
412
390
|
"marketCap": "Market cap",
|
|
413
|
-
"volume24h": "Volume 24h"
|
|
391
|
+
"volume24h": "Volume 24h",
|
|
392
|
+
"status": "Status",
|
|
393
|
+
"statusFlagged": "Flagged as malicious by Hypernative. Trading this token can result in a total loss of funds.",
|
|
394
|
+
"statusUnverified": "Unverified by Hypernative",
|
|
395
|
+
"statusVerified": "Verified by Hypernative. False positives can occur, and we accept no liability for these alerts. Always do your own research before taking action."
|
|
414
396
|
},
|
|
415
397
|
"tags": {
|
|
416
398
|
"connected": "Connected",
|
|
@@ -456,11 +438,8 @@
|
|
|
456
438
|
"transferDeposit": {
|
|
457
439
|
"warning": "Send at least <b>{{amount}} {{symbol}}</b> on <b>{{chain}}</b>. Wrong token or chain may be unrecoverable.",
|
|
458
440
|
"expiresIn": "Deposit address expires in {{minutes}}:{{seconds}}",
|
|
459
|
-
"addressLabel": "Deposit address",
|
|
460
441
|
"copyAddress": "Copy address",
|
|
461
442
|
"addressCopied": "Copied!",
|
|
462
|
-
"regenerate": "Generate new deposit address",
|
|
463
|
-
"expired": "This deposit window expired. Generate a new one to continue.",
|
|
464
443
|
"polling": "Watching for your deposit…",
|
|
465
444
|
"detailsTitle": "Deposit details",
|
|
466
445
|
"table": {
|
|
@@ -503,10 +482,6 @@
|
|
|
503
482
|
"marketMoved": {
|
|
504
483
|
"title": "Transaction failed",
|
|
505
484
|
"description": "The exchange rate moved before your order could complete. Your funds are safe — a refund has been started."
|
|
506
|
-
},
|
|
507
|
-
"refunding": {
|
|
508
|
-
"title": "Transaction failed — refunding",
|
|
509
|
-
"description": "We couldn't complete the transfer after several attempts. Your funds are being refunded to the wallet that sent them."
|
|
510
485
|
}
|
|
511
486
|
}
|
|
512
487
|
},
|
|
@@ -519,9 +494,7 @@
|
|
|
519
494
|
"cashQuote": {
|
|
520
495
|
"totalFeesLabel": "Total fees",
|
|
521
496
|
"feeFallback": "Fee {{index}}",
|
|
522
|
-
"
|
|
523
|
-
"refundNote": "You'll receive at least {{value}}, or a full refund.",
|
|
524
|
-
"error": "Unable to refresh the quote right now. Try again."
|
|
497
|
+
"refundNote": "You'll receive at least {{value}}, or a full refund."
|
|
525
498
|
},
|
|
526
499
|
"cashHandoff": {
|
|
527
500
|
"title": "You'll finish paying in Transak",
|
|
@@ -531,15 +504,6 @@
|
|
|
531
504
|
"continue": "Continue to Transak",
|
|
532
505
|
"goBack": "Go back"
|
|
533
506
|
},
|
|
534
|
-
"paymentMethod": {
|
|
535
|
-
"label": "Payment method"
|
|
536
|
-
},
|
|
537
|
-
"flowSummary": {
|
|
538
|
-
"wallet": "From your wallet",
|
|
539
|
-
"transfer": "Transfer crypto",
|
|
540
|
-
"exchange": "From an exchange",
|
|
541
|
-
"cash": "Buy with cash"
|
|
542
|
-
},
|
|
543
507
|
"transactionStatus": {
|
|
544
508
|
"detailsTitle": "Transaction details",
|
|
545
509
|
"watching": "Watching for transaction",
|
|
@@ -547,7 +511,6 @@
|
|
|
547
511
|
"success": "Transaction successful",
|
|
548
512
|
"seeDetails": "See details",
|
|
549
513
|
"steps": {
|
|
550
|
-
"transferInitiated": "Transfer initiated",
|
|
551
514
|
"receive": {
|
|
552
515
|
"upcoming": "Receive {{symbol}}",
|
|
553
516
|
"loading": "Receiving {{symbol}}",
|
|
@@ -567,9 +530,6 @@
|
|
|
567
530
|
},
|
|
568
531
|
"chooseFundingSource": "Choose funding source",
|
|
569
532
|
"whereToSendIt": "Where to send it",
|
|
570
|
-
"sendingTo": "Sending to",
|
|
571
|
-
"required": "Required",
|
|
572
|
-
"addWalletToReceive": "Add a wallet to receive your {{token}}",
|
|
573
533
|
"walletAddressOrEns": "Wallet address or ENS name",
|
|
574
534
|
"insufficientFunds": "Insufficient funds — You don't have enough {{symbol}} on {{chain}}. Select a different token to try again.",
|
|
575
535
|
"routeNotFound": {
|
|
@@ -581,7 +541,6 @@
|
|
|
581
541
|
"or": "or",
|
|
582
542
|
"payFromWallet": "Pay from Wallet",
|
|
583
543
|
"payFromWalletSubtitle": "Connect a browser wallet",
|
|
584
|
-
"payFromWalletConnectedSubtitle": "Select token & amount",
|
|
585
544
|
"transferCrypto": "Transfer Crypto",
|
|
586
545
|
"transferCryptoSubtitle": "From any wallet",
|
|
587
546
|
"connectExchange": "Connect Exchange",
|
|
@@ -592,14 +551,11 @@
|
|
|
592
551
|
"depositWithCashSubtitle": "Debit or credit card",
|
|
593
552
|
"connectWallet": "Connect wallet",
|
|
594
553
|
"useAnotherWallet": "Use another wallet",
|
|
595
|
-
"moreWallets": "More",
|
|
596
554
|
"progress": {
|
|
597
555
|
"title": "Purchase in progress",
|
|
598
556
|
"description": "We're processing your purchase. This may take a few minutes."
|
|
599
557
|
},
|
|
600
558
|
"onramp": {
|
|
601
|
-
"dialogTitle": "Deposit with {{providerName}}",
|
|
602
|
-
"close": "Close",
|
|
603
559
|
"errors": {
|
|
604
560
|
"MISSING_API_URL": "{{providerName}} is not configured: set sdkConfig.apiUrl on the checkout.",
|
|
605
561
|
"MISSING_API_KEY": "{{providerName}} is not configured: set widget apiKey to call checkout sessions.",
|
|
@@ -610,10 +566,6 @@
|
|
|
610
566
|
"generic": "Something went wrong. Try again later."
|
|
611
567
|
},
|
|
612
568
|
"failure": {
|
|
613
|
-
"connectionTitle": "Connection failed",
|
|
614
|
-
"connectionDescription": "We couldn't connect to {{providerName}}. Try again or contact support.",
|
|
615
|
-
"withdrawalTitle": "Withdrawal failed",
|
|
616
|
-
"withdrawalDescription": "{{providerName}} couldn't process your withdrawal. Your funds remain in your account.",
|
|
617
569
|
"transferTitle": "Transaction failed - refunding",
|
|
618
570
|
"transferDescription": "We couldn't complete the transfer after several attempts. Your funds are being refunded to the wallet that sent them."
|
|
619
571
|
}
|
|
@@ -637,8 +589,7 @@
|
|
|
637
589
|
},
|
|
638
590
|
"pendingRefund": {
|
|
639
591
|
"title": "Refund in progress",
|
|
640
|
-
"description": "We're sending your funds back. This usually takes a few minutes."
|
|
641
|
-
"sentTo": "Sent to:"
|
|
592
|
+
"description": "We're sending your funds back. This usually takes a few minutes."
|
|
642
593
|
},
|
|
643
594
|
"pendingRetrying": {
|
|
644
595
|
"title": "Retrying transaction",
|
|
@@ -702,8 +653,7 @@
|
|
|
702
653
|
},
|
|
703
654
|
"walletPendingRefund": {
|
|
704
655
|
"title": "Refund in progress",
|
|
705
|
-
"description": "We're sending your funds back to the wallet you paid from. This usually takes a few minutes."
|
|
706
|
-
"sentToWallet": "Sent to wallet:"
|
|
656
|
+
"description": "We're sending your funds back to the wallet you paid from. This usually takes a few minutes."
|
|
707
657
|
},
|
|
708
658
|
"walletSuccessRefund": {
|
|
709
659
|
"title": "Refund complete",
|