@rango-dev/widget-embedded 0.33.4-next.0 → 0.33.4-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.33.4-next.0",
3
+ "version": "0.33.4-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,23 +25,23 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.6.0",
28
- "@rango-dev/provider-all": "^0.37.4-next.0",
28
+ "@rango-dev/provider-all": "^0.37.4-next.2",
29
29
  "@rango-dev/queue-manager-core": "^0.27.0",
30
- "@rango-dev/queue-manager-rango-preset": "^0.37.1-next.3",
30
+ "@rango-dev/queue-manager-rango-preset": "^0.37.1-next.4",
31
31
  "@rango-dev/queue-manager-react": "^0.27.0",
32
- "@rango-dev/signer-solana": "^0.32.1-next.1",
33
- "@rango-dev/ui": "^0.39.1-next.6",
34
- "@rango-dev/wallets-core": "^0.38.1-next.1",
35
- "@rango-dev/wallets-react": "^0.23.1-next.3",
36
- "@rango-dev/wallets-shared": "^0.37.1-next.3",
32
+ "@rango-dev/signer-solana": "^0.32.1-next.2",
33
+ "@rango-dev/ui": "^0.39.1-next.7",
34
+ "@rango-dev/wallets-core": "^0.38.1-next.2",
35
+ "@rango-dev/wallets-react": "^0.23.1-next.4",
36
+ "@rango-dev/wallets-shared": "^0.37.1-next.4",
37
37
  "bignumber.js": "^9.1.1",
38
38
  "copy-to-clipboard": "^3.3.3",
39
39
  "dayjs": "^1.11.7",
40
40
  "ethers": "^6.13.2",
41
41
  "immer": "^9.0.19",
42
42
  "mitt": "^3.0.0",
43
- "rango-sdk": "^0.1.49",
44
- "rango-types": "^0.1.69",
43
+ "rango-sdk": "^0.1.57",
44
+ "rango-types": "^0.1.74",
45
45
  "react-i18next": "^12.2.0",
46
46
  "react-router-dom": "^6.8.0",
47
47
  "values.js": "2.1.1",
@@ -49,6 +49,7 @@ export function Quotes(props: PropTypes) {
49
49
  }
50
50
  const mergedQuote: SelectedQuote = {
51
51
  requestAmount: quotes.requestAmount, // Assuming quotes is an array
52
+ validationStatus: null,
52
53
  ...quote,
53
54
  };
54
55
 
@@ -112,7 +113,11 @@ export function Quotes(props: PropTypes) {
112
113
  container={container}
113
114
  selected={selectedQuote?.requestId === quote.requestId}
114
115
  tagHidden={false}
115
- quote={{ ...quote, requestAmount: quotes.requestAmount }}
116
+ quote={{
117
+ ...quote,
118
+ requestAmount: quotes.requestAmount,
119
+ validationStatus: null,
120
+ }}
116
121
  loading={loading}
117
122
  error={quoteError?.options || null}
118
123
  warning={quoteWarning}
@@ -71,6 +71,10 @@ export function useConfirmSwap(): ConfirmSwap {
71
71
  return await fetchQuote(requestBody, true).then((response) => {
72
72
  const { result } = response;
73
73
 
74
+ if (!result) {
75
+ throw new Error('Error fetching updated route');
76
+ }
77
+
74
78
  throwErrorIfResponseIsNotValid({
75
79
  diagnosisMessages: result.diagnosisMessages,
76
80
  requestId: result.requestId,
@@ -14,7 +14,7 @@ export function useFetchConfirmQuote(): UseFetchResult<
14
14
  ConfirmRouteResponse
15
15
  >({
16
16
  request: async (requestBody, options) =>
17
- await httpService().confirmRouteRequest(requestBody, options),
17
+ await httpService().confirmRoute(requestBody, options),
18
18
  });
19
19
 
20
20
  return { fetch, loading, cancelFetch };
@@ -3,8 +3,8 @@ import type { Token } from 'rango-sdk';
3
3
  import { i18n } from '@lingui/core';
4
4
  import { useState } from 'react';
5
5
 
6
+ import { httpService } from '../services/httpService';
6
7
  import { useAppStore } from '../store/AppStore';
7
- import { getConfig } from '../utils/configs';
8
8
 
9
9
  type ErrorType = {
10
10
  title: string;
@@ -18,7 +18,7 @@ interface UseFetchCustomToken {
18
18
  }: {
19
19
  blockchain: string;
20
20
  tokenAddress: string;
21
- }) => Promise<Token>;
21
+ }) => Promise<Token | undefined>;
22
22
  loading: boolean;
23
23
  error?: ErrorType;
24
24
  }
@@ -77,27 +77,23 @@ export function useFetchCustomToken(): UseFetchCustomToken {
77
77
  return undefined;
78
78
  }
79
79
 
80
- const res = await fetch(
81
- `${getConfig('BASE_URL')}/meta/token?apiKey=${getConfig(
82
- 'API_KEY'
83
- )}&blockchain=${blockchain}&address=${tokenAddress}`
84
- );
85
- const contentType = res.headers.get('content-type');
86
- const response =
87
- contentType &&
88
- contentType.includes('application/json') &&
89
- (await res.json());
90
- if (!response || response.error) {
80
+ const response = await httpService().getCustomToken({
81
+ blockchain,
82
+ address: tokenAddress,
83
+ });
84
+
85
+ if (!response || !response.token || response.error) {
91
86
  const errorMessage = produceErrorMessage('not-found', blockchain);
92
87
  setError(errorMessage);
93
88
  return undefined;
94
89
  }
95
90
 
96
91
  // Check if token is already in the system
92
+ const token = response.token;
97
93
  const isTokenFound = findToken({
98
- blockchain: response.blockchain,
99
- address: response.address,
100
- symbol: response.symbol,
94
+ blockchain: token.blockchain,
95
+ address: token.address,
96
+ symbol: token.symbol,
101
97
  });
102
98
  if (isTokenFound) {
103
99
  const errorMessage = produceErrorMessage('token-exist');
@@ -105,7 +101,7 @@ export function useFetchCustomToken(): UseFetchCustomToken {
105
101
  return undefined;
106
102
  }
107
103
 
108
- return response;
104
+ return token;
109
105
  } catch (error: any) {
110
106
  setError(undefined);
111
107
  throw new Error(error.message);
@@ -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',
@@ -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
  }
@@ -331,6 +331,7 @@ export const getDefaultQuote = (
331
331
  // Handle the case where currentQuote is null
332
332
  return {
333
333
  requestAmount: requestAmount,
334
+ validationStatus: null,
334
335
  ...quotes[0], // Return the first quote from the quotes array
335
336
  };
336
337
  }
@@ -353,6 +354,7 @@ export const getDefaultQuote = (
353
354
  // Return the matchedQuote if found, otherwise return the first quote from the quotes array
354
355
  return {
355
356
  requestAmount: requestAmount,
357
+ validationStatus: null,
356
358
  ...(matchedQuote || quotes[0]),
357
359
  };
358
360
  };