@rango-dev/widget-embedded 0.33.4-next.1 → 0.33.4-next.3

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.
Files changed (92) hide show
  1. package/dist/components/BlockchainList/BlockchainList.d.ts.map +1 -1
  2. package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
  3. package/dist/components/CustomDestination/CustomDestination.d.ts.map +1 -1
  4. package/dist/components/CustomTokenModal/CustomTokenModal.d.ts.map +1 -1
  5. package/dist/components/FilterSelector/FilterSelector.d.ts.map +1 -1
  6. package/dist/components/FilterSelector/FilterSelectorContent.d.ts.map +1 -1
  7. package/dist/components/HeaderButtons/BackButton.d.ts.map +1 -1
  8. package/dist/components/HeaderButtons/CancelButton.d.ts.map +1 -1
  9. package/dist/components/HeaderButtons/HeaderButtons.d.ts.map +1 -1
  10. package/dist/components/HeaderButtons/RefreshButton.d.ts.map +1 -1
  11. package/dist/components/HeaderButtons/WalletButton.d.ts.map +1 -1
  12. package/dist/components/NoResult/NoResult.d.ts.map +1 -1
  13. package/dist/components/Quote/QuoteCostDetails.d.ts.map +1 -1
  14. package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts.map +1 -1
  15. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +1 -1
  16. package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts.map +1 -1
  17. package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts.map +1 -1
  18. package/dist/components/Quotes/Quotes.d.ts.map +1 -1
  19. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  20. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.Warning.d.ts.map +1 -1
  21. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.d.ts.map +1 -1
  22. package/dist/components/SwapDetailsModal/SwapDetailsCompleteModal.d.ts.map +1 -1
  23. package/dist/components/SwapDetailsModal/SwapDetailsModal.Cancel.d.ts.map +1 -1
  24. package/dist/components/SwapDetailsModal/SwapDetailsModal.Delete.d.ts.map +1 -1
  25. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  26. package/dist/components/WalletStatefulConnect/DerivationPath.d.ts.map +1 -1
  27. package/dist/components/WalletStatefulConnect/ExperimentalChain.d.ts.map +1 -1
  28. package/dist/components/WalletStatefulConnect/Namespaces.d.ts.map +1 -1
  29. package/dist/components/common/ActivateTabAlert/ActivateTabAlert.d.ts.map +1 -1
  30. package/dist/components/common/ActivateTabModal/ActivateTabModal.d.ts.map +1 -1
  31. package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +1 -1
  32. package/dist/hooks/useFetchCustomToken.d.ts +1 -1
  33. package/dist/hooks/useFetchCustomToken.d.ts.map +1 -1
  34. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts.map +1 -1
  35. package/dist/index.js +2 -2
  36. package/dist/index.js.map +3 -3
  37. package/dist/pages/AddCustomTokenPage.d.ts.map +1 -1
  38. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  39. package/dist/pages/CustomTokensPage.d.ts.map +1 -1
  40. package/dist/pages/HistoryPage.d.ts.map +1 -1
  41. package/dist/pages/Home.d.ts.map +1 -1
  42. package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
  43. package/dist/pages/SettingsPage.d.ts.map +1 -1
  44. package/dist/test-utils/fixtures.d.ts.map +1 -1
  45. package/dist/utils/quote.d.ts.map +1 -1
  46. package/dist/widget-embedded.build.json +1 -1
  47. package/package.json +10 -10
  48. package/src/components/BlockchainList/BlockchainList.tsx +2 -1
  49. package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +3 -0
  50. package/src/components/CustomDestination/CustomDestination.tsx +8 -2
  51. package/src/components/CustomTokenModal/CustomTokenModal.tsx +1 -0
  52. package/src/components/FilterSelector/FilterSelector.tsx +1 -0
  53. package/src/components/FilterSelector/FilterSelectorContent.tsx +5 -1
  54. package/src/components/HeaderButtons/BackButton.tsx +5 -1
  55. package/src/components/HeaderButtons/CancelButton.tsx +5 -1
  56. package/src/components/HeaderButtons/HeaderButtons.tsx +14 -3
  57. package/src/components/HeaderButtons/RefreshButton.tsx +1 -0
  58. package/src/components/HeaderButtons/WalletButton.tsx +5 -1
  59. package/src/components/NoResult/NoResult.tsx +1 -0
  60. package/src/components/Quote/QuoteCostDetails.tsx +4 -1
  61. package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +1 -0
  62. package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +1 -0
  63. package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +2 -0
  64. package/src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx +1 -0
  65. package/src/components/Quotes/Quotes.tsx +6 -1
  66. package/src/components/SwapDetails/SwapDetails.tsx +3 -0
  67. package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.Warning.tsx +2 -0
  68. package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.tsx +1 -0
  69. package/src/components/SwapDetailsModal/SwapDetailsCompleteModal.tsx +8 -1
  70. package/src/components/SwapDetailsModal/SwapDetailsModal.Cancel.tsx +7 -1
  71. package/src/components/SwapDetailsModal/SwapDetailsModal.Delete.tsx +7 -1
  72. package/src/components/TokenList/TokenList.tsx +1 -0
  73. package/src/components/WalletStatefulConnect/DerivationPath.tsx +1 -0
  74. package/src/components/WalletStatefulConnect/ExperimentalChain.tsx +1 -0
  75. package/src/components/WalletStatefulConnect/Namespaces.tsx +1 -0
  76. package/src/components/common/ActivateTabAlert/ActivateTabAlert.tsx +1 -0
  77. package/src/components/common/ActivateTabModal/ActivateTabModal.tsx +1 -0
  78. package/src/containers/Settings/Lists.tsx +6 -6
  79. package/src/hooks/useConfirmSwap/useConfirmSwap.ts +4 -0
  80. package/src/hooks/useFetchConfirmQuote.ts +1 -1
  81. package/src/hooks/useFetchCustomToken.ts +13 -17
  82. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts +135 -4
  83. package/src/pages/AddCustomTokenPage.tsx +5 -1
  84. package/src/pages/ConfirmSwapPage.tsx +2 -0
  85. package/src/pages/CustomTokensPage.tsx +4 -0
  86. package/src/pages/HistoryPage.tsx +3 -0
  87. package/src/pages/Home.tsx +2 -0
  88. package/src/pages/LanguagePage.tsx +1 -1
  89. package/src/pages/LiquiditySourcePage.tsx +16 -3
  90. package/src/pages/SettingsPage.tsx +5 -1
  91. package/src/test-utils/fixtures.ts +1 -0
  92. package/src/utils/quote.ts +2 -0
@@ -94,6 +94,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
94
94
  blockExplorerUrls: ['https://etherscan.io'],
95
95
  addressUrl: 'https://etherscan.io/address/{wallet}',
96
96
  transactionUrl: 'https://etherscan.io/tx/{txHash}',
97
+ enableGasV2: true,
97
98
  },
98
99
  },
99
100
  {
@@ -127,6 +128,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
127
128
  blockExplorerUrls: ['https://bscscan.com'],
128
129
  addressUrl: 'https://bscscan.com/address/{wallet}',
129
130
  transactionUrl: 'https://bscscan.com/tx/{txHash}',
131
+ enableGasV2: true,
130
132
  },
131
133
  },
132
134
  {
@@ -160,6 +162,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
160
162
  blockExplorerUrls: ['https://arbiscan.io'],
161
163
  addressUrl: 'https://arbiscan.io/address/{wallet}',
162
164
  transactionUrl: 'https://arbiscan.io/tx/{txHash}',
165
+ enableGasV2: true,
163
166
  },
164
167
  },
165
168
  {
@@ -193,6 +196,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
193
196
  blockExplorerUrls: ['https://polygonscan.com'],
194
197
  addressUrl: 'https://polygonscan.com/address/{wallet}',
195
198
  transactionUrl: 'https://polygonscan.com/tx/{txHash}',
199
+ enableGasV2: true,
196
200
  },
197
201
  },
198
202
  {
@@ -226,6 +230,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
226
230
  blockExplorerUrls: ['https://explorer.zksync.io'],
227
231
  addressUrl: 'https://explorer.zksync.io/address/{wallet}',
228
232
  transactionUrl: 'https://explorer.zksync.io/tx/{txHash}',
233
+ enableGasV2: true,
229
234
  },
230
235
  },
231
236
  {
@@ -292,6 +297,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
292
297
  blockExplorerUrls: ['https://optimistic.etherscan.io'],
293
298
  addressUrl: 'https://optimistic.etherscan.io/address/{wallet}',
294
299
  transactionUrl: 'https://optimistic.etherscan.io/tx/{txHash}',
300
+ enableGasV2: true,
295
301
  },
296
302
  },
297
303
  {
@@ -325,6 +331,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
325
331
  blockExplorerUrls: ['https://snowtrace.io'],
326
332
  addressUrl: 'https://snowtrace.io/address/{wallet}',
327
333
  transactionUrl: 'https://snowtrace.io/tx/{txHash}',
334
+ enableGasV2: true,
328
335
  },
329
336
  },
330
337
  {
@@ -358,6 +365,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
358
365
  blockExplorerUrls: ['https://zkevm.polygonscan.com'],
359
366
  addressUrl: 'https://zkevm.polygonscan.com/address/{wallet}',
360
367
  transactionUrl: 'https://zkevm.polygonscan.com/tx/{txHash}',
368
+ enableGasV2: true,
361
369
  },
362
370
  },
363
371
  {
@@ -391,6 +399,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
391
399
  blockExplorerUrls: ['https://explorer.linea.build'],
392
400
  addressUrl: 'https://explorer.linea.build/address/{wallet}',
393
401
  transactionUrl: 'https://explorer.linea.build/tx/{txHash}',
402
+ enableGasV2: true,
394
403
  },
395
404
  },
396
405
  {
@@ -424,6 +433,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
424
433
  blockExplorerUrls: ['https://tronscan.org/#'],
425
434
  addressUrl: 'https://tronscan.org/#/address/{wallet}',
426
435
  transactionUrl: 'https://tronscan.org/#/tx/{txHash}',
436
+ enableGasV2: true,
427
437
  },
428
438
  },
429
439
  {
@@ -447,7 +457,12 @@ export const sampleBlockchains: BlockchainMeta[] = [
447
457
  enabled: true,
448
458
  type: TransactionType.TRANSFER,
449
459
  chainId: null,
450
- info: null,
460
+ info: {
461
+ infoType: 'TransferMetaInfo',
462
+ blockExplorerUrls: ['https://www.blockchain.com/btc/'],
463
+ addressUrl: 'https://www.blockchain.com/btc/address/{wallet}',
464
+ transactionUrl: 'https://www.blockchain.com/btc/tx/{txHash}',
465
+ },
451
466
  },
452
467
  {
453
468
  name: 'COSMOS',
@@ -470,6 +485,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
470
485
  chainId: 'cosmoshub-4',
471
486
  info: {
472
487
  infoType: 'CosmosMetaInfo',
488
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
489
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
490
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
473
491
  experimental: false,
474
492
  rpc: 'https://cosmos-rpc.polkachu.com',
475
493
  rest: 'https://lcd-cosmoshub.blockapsis.com',
@@ -544,6 +562,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
544
562
  chainId: 'osmosis-1',
545
563
  info: {
546
564
  infoType: 'CosmosMetaInfo',
565
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
566
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
567
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
547
568
  experimental: false,
548
569
  rpc: 'https://osmosis-rpc.polkachu.com',
549
570
  rest: 'https://lcd.osmosis.zone',
@@ -625,6 +646,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
625
646
  chainId: 'neutron-1',
626
647
  info: {
627
648
  infoType: 'CosmosMetaInfo',
649
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
650
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
651
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
628
652
  experimental: false,
629
653
  rpc: 'https://rpc-kralum.neutron-1.neutron.org',
630
654
  rest: 'https://rest-kralum.neutron-1.neutron.org',
@@ -699,6 +723,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
699
723
  chainId: 'noble-1',
700
724
  info: {
701
725
  infoType: 'CosmosMetaInfo',
726
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
727
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
728
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
702
729
  experimental: false,
703
730
  rpc: 'https://noble-rpc.polkachu.com',
704
731
  rest: 'https://noble-api.polkachu.com',
@@ -771,7 +798,12 @@ export const sampleBlockchains: BlockchainMeta[] = [
771
798
  enabled: true,
772
799
  type: TransactionType.SOLANA,
773
800
  chainId: 'mainnet-beta',
774
- info: null,
801
+ info: {
802
+ infoType: 'SolanaMetaInfo',
803
+ blockExplorerUrls: ['https://www.blockchain.com/btc/'],
804
+ addressUrl: 'https://www.blockchain.com/btc/address/{wallet}',
805
+ transactionUrl: 'https://www.blockchain.com/btc/tx/{txHash}',
806
+ },
775
807
  },
776
808
  {
777
809
  name: 'CRONOS',
@@ -804,6 +836,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
804
836
  blockExplorerUrls: ['https://cronoscan.com'],
805
837
  addressUrl: 'https://cronoscan.com/address/{wallet}',
806
838
  transactionUrl: 'https://cronoscan.com/tx/{txHash}',
839
+ enableGasV2: true,
807
840
  },
808
841
  },
809
842
  {
@@ -858,6 +891,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
858
891
  blockExplorerUrls: ['https://explorer.mainnet.aurora.dev'],
859
892
  addressUrl: 'https://explorer.mainnet.aurora.dev/address/{wallet}',
860
893
  transactionUrl: 'https://explorer.mainnet.aurora.dev/tx/{txHash}',
894
+ enableGasV2: true,
861
895
  },
862
896
  },
863
897
  {
@@ -933,6 +967,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
933
967
  blockExplorerUrls: ['https://bobascan.com/'],
934
968
  addressUrl: 'https://bobascan.com//address/{wallet}',
935
969
  transactionUrl: 'https://bobascan.com//tx/{txHash}',
970
+ enableGasV2: true,
936
971
  },
937
972
  },
938
973
  {
@@ -966,6 +1001,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
966
1001
  blockExplorerUrls: ['https://moonbeam.moonscan.io'],
967
1002
  addressUrl: 'https://moonbeam.moonscan.io/address/{wallet}',
968
1003
  transactionUrl: 'https://moonbeam.moonscan.io/tx/{txHash}',
1004
+ enableGasV2: true,
969
1005
  },
970
1006
  },
971
1007
  {
@@ -999,6 +1035,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
999
1035
  blockExplorerUrls: ['https://moonriver.moonscan.io'],
1000
1036
  addressUrl: 'https://moonriver.moonscan.io/address/{wallet}',
1001
1037
  transactionUrl: 'https://moonriver.moonscan.io/tx/{txHash}',
1038
+ enableGasV2: true,
1002
1039
  },
1003
1040
  },
1004
1041
  {
@@ -1032,6 +1069,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
1032
1069
  blockExplorerUrls: ['https://www.oklink.com/en/okc'],
1033
1070
  addressUrl: 'https://www.oklink.com/en/okc/address/{wallet}',
1034
1071
  transactionUrl: 'https://www.oklink.com/en/okc/tx/{txHash}',
1072
+ enableGasV2: true,
1035
1073
  },
1036
1074
  },
1037
1075
  {
@@ -1065,6 +1103,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
1065
1103
  blockExplorerUrls: ['https://blockexplorer.avax.boba.network'],
1066
1104
  addressUrl: 'https://blockexplorer.avax.boba.network/address/{wallet}',
1067
1105
  transactionUrl: 'https://blockexplorer.avax.boba.network/tx/{txHash}',
1106
+ enableGasV2: true,
1068
1107
  },
1069
1108
  },
1070
1109
  {
@@ -1086,7 +1125,12 @@ export const sampleBlockchains: BlockchainMeta[] = [
1086
1125
  enabled: true,
1087
1126
  type: TransactionType.TRANSFER,
1088
1127
  chainId: null,
1089
- info: null,
1128
+ info: {
1129
+ infoType: 'TransferMetaInfo',
1130
+ blockExplorerUrls: ['https://www.blockchain.com/btc/'],
1131
+ addressUrl: 'https://www.blockchain.com/btc/address/{wallet}',
1132
+ transactionUrl: 'https://www.blockchain.com/btc/tx/{txHash}',
1133
+ },
1090
1134
  },
1091
1135
  {
1092
1136
  name: 'BCH',
@@ -1107,7 +1151,12 @@ export const sampleBlockchains: BlockchainMeta[] = [
1107
1151
  enabled: true,
1108
1152
  type: TransactionType.TRANSFER,
1109
1153
  chainId: null,
1110
- info: null,
1154
+ info: {
1155
+ infoType: 'TransferMetaInfo',
1156
+ blockExplorerUrls: ['https://www.blockchain.com/btc/'],
1157
+ addressUrl: 'https://www.blockchain.com/btc/address/{wallet}',
1158
+ transactionUrl: 'https://www.blockchain.com/btc/tx/{txHash}',
1159
+ },
1111
1160
  },
1112
1161
  {
1113
1162
  name: 'HECO',
@@ -1140,6 +1189,7 @@ export const sampleBlockchains: BlockchainMeta[] = [
1140
1189
  blockExplorerUrls: ['https://hecoinfo.com'],
1141
1190
  addressUrl: 'https://hecoinfo.com/address/{wallet}',
1142
1191
  transactionUrl: 'https://hecoinfo.com/tx/{txHash}',
1192
+ enableGasV2: true,
1143
1193
  },
1144
1194
  },
1145
1195
  {
@@ -1163,6 +1213,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1163
1213
  chainId: 'stargaze-1',
1164
1214
  info: {
1165
1215
  infoType: 'CosmosMetaInfo',
1216
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1217
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1218
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1166
1219
  experimental: false,
1167
1220
  rpc: 'https://rpc.stargaze-apis.com',
1168
1221
  rest: 'https://rest.stargaze-apis.com',
@@ -1237,6 +1290,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1237
1290
  chainId: 'crypto-org-chain-mainnet-1',
1238
1291
  info: {
1239
1292
  infoType: 'CosmosMetaInfo',
1293
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1294
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1295
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1240
1296
  experimental: false,
1241
1297
  rpc: 'https://rpc.mainnet.crypto.org',
1242
1298
  rest: 'https://rest.mainnet.crypto.org',
@@ -1311,6 +1367,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1311
1367
  chainId: 'chihuahua-1',
1312
1368
  info: {
1313
1369
  infoType: 'CosmosMetaInfo',
1370
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1371
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1372
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1314
1373
  experimental: true,
1315
1374
  rpc: 'https://rpc.chihuahua.wtf',
1316
1375
  rest: 'https://api.chihuahua.wtf',
@@ -1385,6 +1444,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1385
1444
  chainId: 'laozi-mainnet',
1386
1445
  info: {
1387
1446
  infoType: 'CosmosMetaInfo',
1447
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1448
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1449
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1388
1450
  experimental: true,
1389
1451
  rpc: 'https://rpc.laozi3.bandchain.org/',
1390
1452
  rest: 'https://laozi1.bandchain.org/api',
@@ -1455,6 +1517,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1455
1517
  chainId: 'comdex-1',
1456
1518
  info: {
1457
1519
  infoType: 'CosmosMetaInfo',
1520
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1521
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1522
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1458
1523
  experimental: true,
1459
1524
  rpc: 'https://rpc.comdex.one',
1460
1525
  rest: 'https://rest.comdex.one',
@@ -1525,6 +1590,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1525
1590
  chainId: 'regen-1',
1526
1591
  info: {
1527
1592
  infoType: 'CosmosMetaInfo',
1593
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1594
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1595
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1528
1596
  experimental: false,
1529
1597
  rpc: 'https://rpc-regen.ecostake.com',
1530
1598
  rest: 'https://regen.stakesystems.io',
@@ -1599,6 +1667,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1599
1667
  chainId: 'irishub-1',
1600
1668
  info: {
1601
1669
  infoType: 'CosmosMetaInfo',
1670
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1671
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1672
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1602
1673
  experimental: false,
1603
1674
  rpc: 'https://rpc.nyancat.irisnet.org',
1604
1675
  rest: 'https://lcd.nyancat.irisnet.org',
@@ -1673,6 +1744,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1673
1744
  chainId: 'emoney-3',
1674
1745
  info: {
1675
1746
  infoType: 'CosmosMetaInfo',
1747
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1748
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1749
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1676
1750
  experimental: true,
1677
1751
  rpc: 'https://emoney.validator.network/',
1678
1752
  rest: 'https://emoney.validator.network/api',
@@ -1755,6 +1829,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1755
1829
  chainId: 'juno-1',
1756
1830
  info: {
1757
1831
  infoType: 'CosmosMetaInfo',
1832
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1833
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1834
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1758
1835
  experimental: false,
1759
1836
  rpc: 'https://rpc-juno.itastakers.com:443/',
1760
1837
  rest: 'https://lcd-juno.itastakers.com',
@@ -1829,6 +1906,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1829
1906
  chainId: 'stride-1',
1830
1907
  info: {
1831
1908
  infoType: 'CosmosMetaInfo',
1909
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
1910
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
1911
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1832
1912
  experimental: false,
1833
1913
  rpc: 'https://stride-rpc.polkachu.com',
1834
1914
  rest: 'https://stride-api.polkachu.com',
@@ -1945,6 +2025,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
1945
2025
  chainId: 'mars-1',
1946
2026
  info: {
1947
2027
  infoType: 'CosmosMetaInfo',
2028
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2029
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2030
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
1948
2031
  experimental: false,
1949
2032
  rpc: 'https://rpc.marsprotocol.io',
1950
2033
  rest: 'https://rest.marsprotocol.io',
@@ -2019,6 +2102,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2019
2102
  chainId: 'phoenix-1',
2020
2103
  info: {
2021
2104
  infoType: 'CosmosMetaInfo',
2105
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2106
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2107
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2022
2108
  experimental: false,
2023
2109
  rpc: 'https://phoenix-rpc.terra.dev',
2024
2110
  rest: 'https://phoenix-lcd.terra.dev',
@@ -2093,6 +2179,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2093
2179
  chainId: 'bitsong-2b',
2094
2180
  info: {
2095
2181
  infoType: 'CosmosMetaInfo',
2182
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2183
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2184
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2096
2185
  experimental: true,
2097
2186
  rpc: 'https://rpc.explorebitsong.com',
2098
2187
  rest: 'https://lcd.explorebitsong.com',
@@ -2163,6 +2252,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2163
2252
  chainId: 'akashnet-2',
2164
2253
  info: {
2165
2254
  infoType: 'CosmosMetaInfo',
2255
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2256
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2257
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2166
2258
  experimental: false,
2167
2259
  rpc: 'https://rpc.akashnet.net',
2168
2260
  rest: 'https://api.akashnet.net',
@@ -2237,6 +2329,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2237
2329
  chainId: 'kichain-2',
2238
2330
  info: {
2239
2331
  infoType: 'CosmosMetaInfo',
2332
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2333
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2334
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2240
2335
  experimental: true,
2241
2336
  rpc: 'https://rpc-mainnet.blockchain.ki',
2242
2337
  rest: 'https://api-mainnet.blockchain.ki',
@@ -2307,6 +2402,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2307
2402
  chainId: 'core-1',
2308
2403
  info: {
2309
2404
  infoType: 'CosmosMetaInfo',
2405
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2406
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2407
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2310
2408
  experimental: false,
2311
2409
  rpc: 'https://rpc.core.persistence.one',
2312
2410
  rest: 'https://rest.core.persistence.one',
@@ -2381,6 +2479,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2381
2479
  chainId: 'panacea-3',
2382
2480
  info: {
2383
2481
  infoType: 'CosmosMetaInfo',
2482
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2483
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2484
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2384
2485
  experimental: true,
2385
2486
  rpc: 'https://rpc.gopanacea.org',
2386
2487
  rest: 'https://api.gopanacea.org',
@@ -2455,6 +2556,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2455
2556
  chainId: 'kaiyo-1',
2456
2557
  info: {
2457
2558
  infoType: 'CosmosMetaInfo',
2559
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2560
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2561
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2458
2562
  experimental: true,
2459
2563
  rpc: 'https://kujira-rpc.lavenderfive.com',
2460
2564
  rest: 'https://kujira-api.lavenderfive.com',
@@ -2529,6 +2633,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2529
2633
  chainId: 'sentinelhub-2',
2530
2634
  info: {
2531
2635
  infoType: 'CosmosMetaInfo',
2636
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2637
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2638
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2532
2639
  experimental: false,
2533
2640
  rpc: 'https://sentinel-rpc.publicnode.com',
2534
2641
  rest: 'https://sentinel-rest.publicnode.com',
@@ -2603,6 +2710,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2603
2710
  chainId: 'injective-1',
2604
2711
  info: {
2605
2712
  infoType: 'CosmosMetaInfo',
2713
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2714
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2715
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2606
2716
  experimental: true,
2607
2717
  rpc: 'https://tm.injective.network',
2608
2718
  rest: 'https://lcd.injective.network',
@@ -2678,6 +2788,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2678
2788
  info: {
2679
2789
  infoType: 'CosmosMetaInfo',
2680
2790
  experimental: false,
2791
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2792
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2793
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2681
2794
  rpc: 'https://rpc.secret.express',
2682
2795
  rest: 'https://lcd.secret.express',
2683
2796
  cosmostationLcdUrl: 'https://lcd.secret.express',
@@ -2751,6 +2864,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2751
2864
  chainId: 'darchub',
2752
2865
  info: {
2753
2866
  infoType: 'CosmosMetaInfo',
2867
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2868
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2869
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2754
2870
  experimental: true,
2755
2871
  rpc: 'https://node1.konstellation.tech:26657',
2756
2872
  rest: 'https://node1.konstellation.tech:1318',
@@ -2821,6 +2937,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2821
2937
  chainId: 'iov-mainnet-ibc',
2822
2938
  info: {
2823
2939
  infoType: 'CosmosMetaInfo',
2940
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
2941
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
2942
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2824
2943
  experimental: false,
2825
2944
  rpc: 'https://rpc-starname-ia.cosmosia.notional.ventures',
2826
2945
  rest: 'https://api-starname-ia.cosmosia.notional.ventures',
@@ -2895,6 +3014,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2895
3014
  chainId: 'bitcanna-1',
2896
3015
  info: {
2897
3016
  infoType: 'CosmosMetaInfo',
3017
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
3018
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
3019
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2898
3020
  experimental: true,
2899
3021
  rpc: 'https://rpc.bitcanna.io',
2900
3022
  rest: 'https://lcd.bitcanna.io',
@@ -2965,6 +3087,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
2965
3087
  chainId: 'umee-1',
2966
3088
  info: {
2967
3089
  infoType: 'CosmosMetaInfo',
3090
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
3091
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
3092
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
2968
3093
  experimental: false,
2969
3094
  rpc: 'https://umee-rpc.polkachu.com',
2970
3095
  rest: 'https://api.mainnet.network.umee.cc',
@@ -3039,6 +3164,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
3039
3164
  chainId: 'desmos-mainnet',
3040
3165
  info: {
3041
3166
  infoType: 'CosmosMetaInfo',
3167
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
3168
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
3169
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
3042
3170
  experimental: true,
3043
3171
  rpc: 'https://rpc.mainnet.desmos.network',
3044
3172
  rest: 'https://api.mainnet.desmos.network',
@@ -3109,6 +3237,9 @@ export const sampleBlockchains: BlockchainMeta[] = [
3109
3237
  chainId: 'lum-network-1',
3110
3238
  info: {
3111
3239
  infoType: 'CosmosMetaInfo',
3240
+ blockExplorerUrls: ['https://www.mintscan.io/cosmos/'],
3241
+ addressUrl: 'https://www.mintscan.io/cosmos/account/{wallet}',
3242
+ transactionUrl: 'https://www.mintscan.io/cosmos/txs/{txHash}',
3112
3243
  experimental: true,
3113
3244
  rpc: 'https://node0.mainnet.lum.network/rpc',
3114
3245
  rest: 'https://node0.mainnet.lum.network/rest',
@@ -154,6 +154,7 @@ export function AddCustomTokenPage() {
154
154
  </div>
155
155
 
156
156
  <Button
157
+ id="widget-add-custom-token-import-btn"
157
158
  disabled={isImportDisabled}
158
159
  type="primary"
159
160
  variant="contained"
@@ -176,8 +177,11 @@ export function AddCustomTokenPage() {
176
177
  }>
177
178
  <Divider size={40} />
178
179
  <Divider size={10} />
179
-
180
+ {/* eslint-disable-next-line jsx-id-attribute-enforcement/missing-ids */}
180
181
  <Button
182
+ id={`widget-add-custom-token-${
183
+ networkError ? 'retry' : 'add-another'
184
+ }-btn`}
181
185
  variant="contained"
182
186
  size="large"
183
187
  type="primary"
@@ -243,6 +243,7 @@ export function ConfirmSwapPage() {
243
243
  <Buttons>
244
244
  <div className={confirmBtnStyles()}>
245
245
  <Button
246
+ id="widget-confirm-swap-start-btn"
246
247
  variant="contained"
247
248
  type="primary"
248
249
  size="large"
@@ -254,6 +255,7 @@ export function ConfirmSwapPage() {
254
255
  </Button>
255
256
  </div>
256
257
  <IconButton
258
+ id="widget-confirm-swap-wallet-icon-btn"
257
259
  variant="contained"
258
260
  type="primary"
259
261
  size="large"
@@ -110,6 +110,7 @@ export function CustomTokensPage() {
110
110
  showTitle={false}
111
111
  action={(token) => (
112
112
  <DeleteIconButton
113
+ id="widget-custom-token-delete-icon-btn"
113
114
  variant="ghost"
114
115
  onClick={() => {
115
116
  setIsDeleteModalOpen(true);
@@ -140,6 +141,7 @@ export function CustomTokensPage() {
140
141
  <Divider size={20} />
141
142
 
142
143
  <Button
144
+ id="widget-custom-token-add-btn"
143
145
  type="primary"
144
146
  variant="contained"
145
147
  size="large"
@@ -161,6 +163,7 @@ export function CustomTokensPage() {
161
163
 
162
164
  <Button
163
165
  fullWidth
166
+ id="widget-custom-token-delete-modal-yes-btn"
164
167
  variant="contained"
165
168
  type="primary"
166
169
  size="large"
@@ -169,6 +172,7 @@ export function CustomTokensPage() {
169
172
  </Button>
170
173
  <Divider size={12} />
171
174
  <Button
175
+ id="widget-custom-token-delete-modal-no-btn"
172
176
  fullWidth
173
177
  variant="outlined"
174
178
  type="primary"
@@ -140,6 +140,7 @@ export function HistoryPage() {
140
140
  suffix: (
141
141
  <SuffixContainer>
142
142
  <Button
143
+ id="widget-history-clear-btn"
143
144
  disabled={isClearButtonDisabled}
144
145
  variant="ghost"
145
146
  size="xsmall"
@@ -234,6 +235,7 @@ export function HistoryPage() {
234
235
  />
235
236
  <Divider size={30} />
236
237
  <Button
238
+ id="widget-history-clear-modal-yes-btn"
237
239
  variant="contained"
238
240
  type="primary"
239
241
  size="large"
@@ -242,6 +244,7 @@ export function HistoryPage() {
242
244
  </Button>
243
245
  <Divider size={10} />
244
246
  <Button
247
+ id="widget-history-clear-modal-no-btn"
245
248
  variant="outlined"
246
249
  type="primary"
247
250
  size="large"
@@ -128,7 +128,9 @@ export function Home() {
128
128
  <Layout
129
129
  height="auto"
130
130
  footer={
131
+ // eslint-disable-next-line jsx-id-attribute-enforcement/missing-ids
131
132
  <Button
133
+ id={`widget-swap-${swapButtonState.action}-btn`}
132
134
  type="primary"
133
135
  size="large"
134
136
  disabled={swapButtonState.disabled || !isActiveTab}
@@ -21,7 +21,7 @@ export function LanguagePage() {
21
21
  const languageList = languages.map((languageItem) => {
22
22
  const { local, label, SVGFlag } = languageItem;
23
23
  return {
24
- id: local,
24
+ id: `widget-setting-languages-${local}-item-btn`,
25
25
  value: local,
26
26
  title: (
27
27
  <Typography variant="title" size="xmedium">
@@ -68,8 +68,11 @@ export function LiquiditySourcePage({ sourceType }: PropTypes) {
68
68
  };
69
69
 
70
70
  const list = liquiditySources.map((sourceItem) => {
71
- const { selected, groupTitle, logo } = sourceItem;
71
+ const { selected, groupTitle, logo, id, ...restSourceItem } = sourceItem;
72
72
  return {
73
+ id: `widget-setting-liquidity-source-${id
74
+ .toLowerCase()
75
+ .replace(/\s+/g, '-')}-item-btn`,
73
76
  start: <Image src={logo} size={22} type="circular" />,
74
77
  onClick: () => {
75
78
  if (!campaignMode) {
@@ -82,7 +85,10 @@ export function LiquiditySourcePage({ sourceType }: PropTypes) {
82
85
  {i18n.t(groupTitle)}
83
86
  </Typography>
84
87
  ),
85
- ...sourceItem,
88
+ selected,
89
+ groupTitle,
90
+ logo,
91
+ ...restSourceItem,
86
92
  };
87
93
  });
88
94
 
@@ -104,7 +110,14 @@ export function LiquiditySourcePage({ sourceType }: PropTypes) {
104
110
  title: i18n.t(sourceType),
105
111
  suffix: (
106
112
  <LiquiditySourceSuffix>
107
- <Button variant="ghost" size="xsmall" onClick={toggleAllSources}>
113
+ {/* eslint-disable-next-line jsx-id-attribute-enforcement/missing-ids */}
114
+ <Button
115
+ id={`widget-liquidity-source-${
116
+ hasSelectAll ? 'deselect-all' : 'select-all'
117
+ }-btn`}
118
+ variant="ghost"
119
+ size="xsmall"
120
+ onClick={toggleAllSources}>
108
121
  {hasSelectAll ? i18n.t('Deselect all') : i18n.t('Select all')}
109
122
  </Button>
110
123
  </LiquiditySourceSuffix>
@@ -47,7 +47,11 @@ export function SettingsPage() {
47
47
  )}
48
48
  action={
49
49
  <ResetAction>
50
- <Button type="secondary" size="small" onClick={onClick}>
50
+ <Button
51
+ id="widget-setting-exit-campaign-mode-btn"
52
+ type="secondary"
53
+ size="small"
54
+ onClick={onClick}>
51
55
  {i18n.t('Reset')}
52
56
  </Button>
53
57
  </ResetAction>
@@ -215,6 +215,7 @@ export function createEvmBlockchain(): EvmBlockchainMeta {
215
215
  blockExplorerUrls: faker.helpers.multiple(faker.internet.url),
216
216
  addressUrl: faker.internet.url(),
217
217
  transactionUrl: faker.internet.url(),
218
+ enableGasV2: faker.datatype.boolean(),
218
219
  },
219
220
  };
220
221
  }