From c9a23f16081a704eabf6204e387d19c651af13d3 Mon Sep 17 00:00:00 2001 From: Matthew To Date: Wed, 25 Oct 2023 11:40:14 +0800 Subject: [PATCH] rebrand of rpc endpoints --- src/config/StaticAssets.ts | 12 +- src/config/StaticConfig.ts | 30 ++-- src/config/whitelist_tokens_20220602.json | 156 +++++++++--------- src/layouts/home/home.tsx | 5 +- .../components/GeneralSettingsForm.tsx | 12 +- src/service/cronos/CronosClient.spec.ts | 1 - src/service/rpc/ChainIndexingAPI.spec.ts | 4 +- src/service/storage/StorageService.spec.ts | 4 +- 8 files changed, 111 insertions(+), 113 deletions(-) diff --git a/src/config/StaticAssets.ts b/src/config/StaticAssets.ts index 9357cea7c..7443efff1 100644 --- a/src/config/StaticAssets.ts +++ b/src/config/StaticAssets.ts @@ -75,8 +75,8 @@ export const CRONOS_TENDERMINT_ASSET = (walletConfig: WalletConfig) => { memoSupportDisabled: false, tendermintNetwork: { defaultNodeUrl: isTestnet - ? 'https://rpc-c5.crypto.org' - : 'https://rpc.mainnet.crypto.org', + ? 'https://rpc-c5.cronos-pos.org' + : 'https://rpc.mainnet.cronos-pos.org', chainName: SupportedChainName.CRONOS_TENDERMINT, chainId: isTestnet ? 'testnet-croeseid-5' : MainNetConfig.network.chainId, addressPrefix: isTestnet ? 'tcro' : 'cro', @@ -90,11 +90,11 @@ export const CRONOS_TENDERMINT_ASSET = (walletConfig: WalletConfig) => { }, node: { clientUrl: isTestnet - ? 'https://rpc-c5.crypto.org' - : 'https://rpc.mainnet.crypto.org', + ? 'https://rpc-c5.cronos-pos.org' + : 'https://rpc.mainnet.cronos-pos.org', proxyUrl: isTestnet - ? 'https://rest-c5.crypto.org' - : 'https://rest.mainnet.crypto.org', + ? 'https://rest-c5.cronos-pos.org' + : 'https://rest.mainnet.cronos-pos.org', }, }, }; diff --git a/src/config/StaticConfig.ts b/src/config/StaticConfig.ts index 1a11eac88..b90492ff4 100644 --- a/src/config/StaticConfig.ts +++ b/src/config/StaticConfig.ts @@ -357,7 +357,7 @@ const TestNetConfig: WalletConfig = { }; const TestnetCroeseid4: Network = { - defaultNodeUrl: 'https://rpc-testnet-croeseid-4.crypto.org', + defaultNodeUrl: 'https://rpc-testnet-croeseid-4.cronos-pos.org', chainId: 'testnet-croeseid-4', addressPrefix: 'tcro', validatorAddressPrefix: 'tcrocncl', @@ -370,11 +370,11 @@ const TestnetCroeseid4: Network = { coinType: 1, account: 0, }, - rpcUrl: 'https://rpc-testnet-croeseid-4.crypto.org', + rpcUrl: 'https://rpc-testnet-croeseid-4.cronos-pos.org', }; const TestnetCroeseid5: Network = { - defaultNodeUrl: 'https://rpc-c5.crypto.org', + defaultNodeUrl: 'https://rpc-c5.cronos-pos.org', chainId: 'testnet-croeseid-5', addressPrefix: 'tcro', validatorAddressPrefix: 'tcrocncl', @@ -387,7 +387,7 @@ const TestnetCroeseid5: Network = { coinType: 1, account: 0, }, - rpcUrl: 'https://rpc-c5.crypto.org', + rpcUrl: 'https://rpc-c5.cronos-pos.org', }; export const TestNetCroeseid4Config: WalletConfig = { @@ -415,8 +415,8 @@ export const TestNetCroeseid4Config: WalletConfig = { ...TestnetCroeseid4, chainName: SupportedChainName.CRONOS_TENDERMINT, node: { - clientUrl: 'https://rpc-testnet-croeseid-4.crypto.org', - proxyUrl: 'https://rest-testnet-croeseid-4.crypto.org', + clientUrl: 'https://rpc-testnet-croeseid-4.cronos-pos.org', + proxyUrl: 'https://rest-testnet-croeseid-4.cronos-pos.org', } } }; @@ -447,8 +447,8 @@ export const TestNetCroeseid5Config: WalletConfig = { ...TestnetCroeseid5, chainName: SupportedChainName.CRONOS_TENDERMINT, node: { - clientUrl: 'https://rpc-c5.crypto.org', - proxyUrl: 'https://rest-c5.crypto.org' + clientUrl: 'https://rpc-c5.cronos-pos.org', + proxyUrl: 'https://rest-c5.cronos-pos.org' } } }; @@ -457,7 +457,7 @@ export const MainNetConfig: WalletConfig = { enabled: true, name: NetworkName.MAINNET, derivationPath: 'm/44\'/394\'/0\'/0/0', - nodeUrl: 'https://rpc.mainnet.crypto.org', + nodeUrl: 'https://rpc.mainnet.cronos-pos.org', explorer: { baseUrl: 'https://cronos-pos.org/explorer/', tx: 'https://cronos-pos.org/explorer/tx', @@ -468,8 +468,8 @@ export const MainNetConfig: WalletConfig = { indexingUrl: 'https://cronos-pos.org/explorer/api/v1/', network: { ...CroNetwork.Mainnet, - defaultNodeUrl: 'https://rpc.mainnet.crypto.org', - rpcUrl: 'https://rpc.mainnet.crypto.org', + defaultNodeUrl: 'https://rpc.mainnet.cronos-pos.org', + rpcUrl: 'https://rpc.mainnet.cronos-pos.org', }, disableDefaultClientMemo: false, enableGeneralSettings: false, @@ -480,12 +480,12 @@ export const MainNetConfig: WalletConfig = { }, tendermintNetwork: { ...CroNetwork.Mainnet, - defaultNodeUrl: 'https://rpc.mainnet.crypto.org', + defaultNodeUrl: 'https://rpc.mainnet.cronos-pos.org', chainName: SupportedChainName.CRONOS_TENDERMINT, - rpcUrl: 'https://rpc.mainnet.crypto.org', + rpcUrl: 'https://rpc.mainnet.cronos-pos.org', node: { - clientUrl: 'https://rpc.mainnet.crypto.org', - proxyUrl: 'https://rest.mainnet.crypto.org', + clientUrl: 'https://rpc.mainnet.cronos-pos.org', + proxyUrl: 'https://rest.mainnet.cronos-pos.org', }, }, }; diff --git a/src/config/whitelist_tokens_20220602.json b/src/config/whitelist_tokens_20220602.json index e92ae04e9..305a3c77a 100644 --- a/src/config/whitelist_tokens_20220602.json +++ b/src/config/whitelist_tokens_20220602.json @@ -732,7 +732,7 @@ "blockchain_symbol": "LUNC", "trading_symbol": "LUNC", "code": "LUNC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -746,7 +746,7 @@ "denom": "", "parent": "terra-lunc-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0x9278C8693e7328bef49804BacbFb63253565dffD", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0x9278C8693e7328bef49804BacbFb63253565dffD", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -1540,7 +1540,7 @@ "blockchain_symbol": "xVVS", "trading_symbol": "xVVS", "code": "xVVS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -1919,7 +1919,7 @@ "blockchain_symbol": "ANN", "trading_symbol": "ANN", "code": "ANN", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -2381,7 +2381,7 @@ "blockchain_symbol": "ETH", "trading_symbol": "ETH", "code": "ETH", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000000000000000", @@ -2395,7 +2395,7 @@ "denom": "", "parent": "ethereum-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0xe44Fd7fCb2b1581822D0c862B68222998a0c299a", + "balance_explorer_url": "https://cronos.org/explorer/address/0xe44Fd7fCb2b1581822D0c862B68222998a0c299a", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -2423,7 +2423,7 @@ "blockchain_symbol": "BIFI", "trading_symbol": "BIFI", "code": "BIFI", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -2437,7 +2437,7 @@ "denom": "", "parent": "bifi-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xe6801928061CDbE32AC5AD0634427E140EFd05F9", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xe6801928061CDbE32AC5AD0634427E140EFd05F9", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -2885,7 +2885,7 @@ "blockchain_symbol": "VVS", "trading_symbol": "VVS", "code": "VVS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -2899,7 +2899,7 @@ "denom": "", "parent": "", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0x2D03bECE6747ADC00E1a131BBA1469C15fD11e03", + "balance_explorer_url": "https://cronos.org/explorer/address/0x2D03bECE6747ADC00E1a131BBA1469C15fD11e03", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -2929,7 +2929,7 @@ "blockchain_symbol": "TONIC", "trading_symbol": "TONIC", "code": "TONIC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -2943,7 +2943,7 @@ "denom": "", "parent": "tectoni-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xDD73dEa10ABC2Bff99c60882EC5b2B81Bb1Dc5B2", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xDD73dEa10ABC2Bff99c60882EC5b2B81Bb1Dc5B2", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -3863,7 +3863,7 @@ "blockchain_symbol": "AVAX", "trading_symbol": "AVAX", "code": "AVAX", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -4493,7 +4493,7 @@ "blockchain_symbol": "SVN", "trading_symbol": "SVN", "code": "SVN", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -4535,7 +4535,7 @@ "blockchain_symbol": "CGS", "trading_symbol": "CGS", "code": "CGS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -4955,7 +4955,7 @@ "blockchain_symbol": "NESS", "trading_symbol": "NESS", "code": "NESS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -4997,7 +4997,7 @@ "blockchain_symbol": "MIMAS", "trading_symbol": "MIMAS", "code": "MIMAS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5039,7 +5039,7 @@ "blockchain_symbol": "METF", "trading_symbol": "METF", "code": "METF", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5081,7 +5081,7 @@ "blockchain_symbol": "CRN", "trading_symbol": "CRN", "code": "CRN", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5123,7 +5123,7 @@ "blockchain_symbol": "GRVE", "trading_symbol": "GRVE", "code": "GRVE", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5165,7 +5165,7 @@ "blockchain_symbol": "DOT", "trading_symbol": "DOT", "code": "DOT", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5585,7 +5585,7 @@ "blockchain_symbol": "PRQ", "trading_symbol": "PRQ", "code": "PRQ", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5627,7 +5627,7 @@ "blockchain_symbol": "AURORA", "trading_symbol": "AURORA", "code": "AURORA", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5669,7 +5669,7 @@ "blockchain_symbol": "SOL", "trading_symbol": "SOL", "code": "SOL", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5711,7 +5711,7 @@ "blockchain_symbol": "FTM", "trading_symbol": "FTM", "code": "FTM", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5753,7 +5753,7 @@ "blockchain_symbol": "AKT", "trading_symbol": "AKT", "code": "AKT", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -5837,7 +5837,7 @@ "blockchain_symbol": "USDC", "trading_symbol": "USDC", "code": "USDC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -5851,7 +5851,7 @@ "denom": "", "parent": "usd-coin-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0xc21223249CA28397B4B6541dfFaEcC539BfF0c59", + "balance_explorer_url": "https://cronos.org/explorer/address/0xc21223249CA28397B4B6541dfFaEcC539BfF0c59", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -5923,7 +5923,7 @@ "blockchain_symbol": "MATIC", "trading_symbol": "MATIC", "code": "MATIC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -6595,7 +6595,7 @@ "blockchain_symbol": "ALI", "trading_symbol": "ALI", "code": "ALI", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -6637,7 +6637,7 @@ "blockchain_symbol": "APE", "trading_symbol": "APE", "code": "APE", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -7267,7 +7267,7 @@ "blockchain_symbol": "SINGLE", "trading_symbol": "SINGLE", "code": "SINGLE", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -7281,7 +7281,7 @@ "denom": "", "parent": "single-finance-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0x0804702a4E749d39A35FDe73d1DF0B1f1D6b8347/", + "balance_explorer_url": "https://cronos.org/explorer/token/0x0804702a4E749d39A35FDe73d1DF0B1f1D6b8347/", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -8489,7 +8489,7 @@ "blockchain_symbol": "EOS", "trading_symbol": "EOS", "code": "EOS", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -8531,7 +8531,7 @@ "blockchain_symbol": "QRDO", "trading_symbol": "QRDO", "code": "QRDO", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -9504,7 +9504,7 @@ "blockchain_symbol": "USDT", "trading_symbol": "USDT", "code": "USDT", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -9518,7 +9518,7 @@ "denom": "", "parent": "tether-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0x66e428c3f67a68878562e79A0234c1F83c208770", + "balance_explorer_url": "https://cronos.org/explorer/address/0x66e428c3f67a68878562e79A0234c1F83c208770", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -9546,7 +9546,7 @@ "blockchain_symbol": "DAI", "trading_symbol": "DAI", "code": "DAI", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -9560,7 +9560,7 @@ "denom": "", "parent": "multi-collateral-dai-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0xF2001B145b43032AAF5Ee2884e456CCd805F677D", + "balance_explorer_url": "https://cronos.org/explorer/address/0xF2001B145b43032AAF5Ee2884e456CCd805F677D", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -9723,7 +9723,7 @@ "blockchain_symbol": "SHIB", "trading_symbol": "SHIB", "code": "SHIB", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -9737,7 +9737,7 @@ "denom": "", "parent": "shiba-inu-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xbED48612BC69fA1CaB67052b42a95FB30C1bcFee/", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xbED48612BC69fA1CaB67052b42a95FB30C1bcFee/", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -10269,7 +10269,7 @@ "blockchain_symbol": "DERC", "trading_symbol": "DERC", "code": "DERC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -10311,7 +10311,7 @@ "blockchain_symbol": "RADAR", "trading_symbol": "RADAR", "code": "RADAR", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -10353,7 +10353,7 @@ "blockchain_symbol": "XLM", "trading_symbol": "XLM", "code": "XLM", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -10437,7 +10437,7 @@ "blockchain_symbol": "PENDLE", "trading_symbol": "PENDLE", "code": "PENDLE", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -11371,7 +11371,7 @@ "blockchain_symbol": "CRO", "trading_symbol": "CRO", "code": "CRO", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 21000, "token_decimal_value": "100000000000000000", @@ -11385,7 +11385,7 @@ "denom": "", "parent": "cro-asset", "chain": "cronos", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/", + "balance_explorer_url": "https://cronos.org/explorer/address/", "enabled": true, "is_new": false, "withdrawal_eta": ["6 secs"], @@ -11707,7 +11707,7 @@ "blockchain_symbol": "ADA", "trading_symbol": "ADA", "code": "ADA", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -11800,7 +11800,7 @@ "blockchain_symbol": "LINK", "trading_symbol": "LINK", "code": "LINK", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -11814,7 +11814,7 @@ "denom": "", "parent": "chainlink-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xBc6f24649CCd67eC42342AccdCECCB2eFA27c9d9", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xBc6f24649CCd67eC42342AccdCECCB2eFA27c9d9", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -12347,7 +12347,7 @@ "blockchain_symbol": "MMF", "trading_symbol": "MMF", "code": "MMF", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -12361,7 +12361,7 @@ "denom": "", "parent": "mm-finance-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0x97749c9B61F878a880DfE312d2594AE07AEd7656/", + "balance_explorer_url": "https://cronos.org/explorer/token/0x97749c9B61F878a880DfE312d2594AE07AEd7656/", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -12389,7 +12389,7 @@ "blockchain_symbol": "MMO", "trading_symbol": "MMO", "code": "MMO", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -12403,7 +12403,7 @@ "denom": "", "parent": "mm-optimizer-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0x50c0C5bda591bc7e89A342A3eD672FB59b3C46a7/", + "balance_explorer_url": "https://cronos.org/explorer/token/0x50c0C5bda591bc7e89A342A3eD672FB59b3C46a7/", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -12641,7 +12641,7 @@ "blockchain_symbol": "CRYSTL", "trading_symbol": "CRYSTL", "code": "CRYSTL", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -12655,7 +12655,7 @@ "denom": "", "parent": "polycrystal-finance-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0xCbDE0E17d14F49e10a10302a32d17AE88a7Ecb8B/", + "balance_explorer_url": "https://cronos.org/explorer/token/0xCbDE0E17d14F49e10a10302a32d17AE88a7Ecb8B/", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -13863,7 +13863,7 @@ "blockchain_symbol": "LUNA", "trading_symbol": "LUNA", "code": "LUNA", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -13877,7 +13877,7 @@ "denom": "", "parent": "terra-luna-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0x9278C8693e7328bef49804BacbFb63253565dffD", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0x9278C8693e7328bef49804BacbFb63253565dffD", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -15081,7 +15081,7 @@ "blockchain_symbol": "TUSD", "trading_symbol": "TUSD", "code": "TUSD", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -15095,7 +15095,7 @@ "denom": "", "parent": "trueusd-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0x87EFB3ec1576Dec8ED47e58B832bEdCd86eE186e", + "balance_explorer_url": "https://cronos.org/explorer/token/0x87EFB3ec1576Dec8ED47e58B832bEdCd86eE186e", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -15711,7 +15711,7 @@ "blockchain_symbol": "ENJ", "trading_symbol": "ENJ", "code": "ENJ", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -15725,7 +15725,7 @@ "denom": "", "parent": "enjin-coin-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0x0A92ea8a197919aCb9BC26660Ed0D43D01ed26b7", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0x0A92ea8a197919aCb9BC26660Ed0D43D01ed26b7", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -15837,7 +15837,7 @@ "blockchain_symbol": "ELON", "trading_symbol": "ELON", "code": "ELON", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -15851,7 +15851,7 @@ "denom": "", "parent": "dogelon-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0x02DCcaf514C98451320a9365C5b46C61d3246ff3", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0x02DCcaf514C98451320a9365C5b46C61d3246ff3", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -16341,7 +16341,7 @@ "blockchain_symbol": "ATOM", "trading_symbol": "ATOM", "code": "ATOM", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -16355,7 +16355,7 @@ "denom": "", "parent": "cosmos-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0xB888d8Dd1733d72681b30c00ee76BDE93ae7aa93", + "balance_explorer_url": "https://cronos.org/explorer/address/0xB888d8Dd1733d72681b30c00ee76BDE93ae7aa93", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -16805,7 +16805,7 @@ "blockchain_symbol": "DOGE", "trading_symbol": "DOGE", "code": "DOGE", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -16819,7 +16819,7 @@ "denom": "", "parent": "dogecoin-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/token/0x1a8E39ae59e5556B56b76fCBA98d22c9ae557396", + "balance_explorer_url": "https://cronos.org/explorer/token/0x1a8E39ae59e5556B56b76fCBA98d22c9ae557396", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -17981,7 +17981,7 @@ "blockchain_symbol": "ELK", "trading_symbol": "ELK", "code": "ELK", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -17995,7 +17995,7 @@ "denom": "", "parent": "elk-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xE1C110E1B1b4A1deD0cAf3E42BfBdbB7b5d7cE1C", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xE1C110E1B1b4A1deD0cAf3E42BfBdbB7b5d7cE1C", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -18023,7 +18023,7 @@ "blockchain_symbol": "SWAPP", "trading_symbol": "SWAPP", "code": "SWAPP", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -18037,7 +18037,7 @@ "denom": "", "parent": "swapp-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0x245a551ee0F55005e510B239c917fA34b41B3461", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0x245a551ee0F55005e510B239c917fA34b41B3461", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -18065,7 +18065,7 @@ "blockchain_symbol": "CRX", "trading_symbol": "CRX", "code": "CRX", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "1000000000000000000", @@ -18079,7 +18079,7 @@ "denom": "", "parent": "", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/tokens/0xe243CCab9E66E6cF1215376980811ddf1eb7F689/token-transfers", + "balance_explorer_url": "https://cronos.org/explorer/tokens/0xe243CCab9E66E6cF1215376980811ddf1eb7F689/token-transfers", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -18779,7 +18779,7 @@ "blockchain_symbol": "WCRO", "trading_symbol": "WCRO", "code": "WCRO", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -18793,7 +18793,7 @@ "denom": "", "parent": "", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23", + "balance_explorer_url": "https://cronos.org/explorer/address/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], @@ -19997,7 +19997,7 @@ "blockchain_symbol": "WBTC", "trading_symbol": "WBTC", "code": "WBTC", - "explorer": "https://cronos.crypto.org/explorer/tx/", + "explorer": "https://cronos.org/explorer/tx/", "is_erc20": false, "gas_limit": 200000, "token_decimal_value": "100000", @@ -20011,7 +20011,7 @@ "denom": "", "parent": "wbtc-asset", "chain": "cronos-crc20", - "balance_explorer_url": "https://cronos.crypto.org/explorer/address/0x062E66477Faf219F25D27dCED647BF57C3107d52", + "balance_explorer_url": "https://cronos.org/explorer/address/0x062E66477Faf219F25D27dCED647BF57C3107d52", "enabled": true, "is_new": false, "withdrawal_eta": ["30 secs", "2 mins", "30 mins"], diff --git a/src/layouts/home/home.tsx b/src/layouts/home/home.tsx index 651b9bf5d..281aa9205 100644 --- a/src/layouts/home/home.tsx +++ b/src/layouts/home/home.tsx @@ -334,7 +334,7 @@ function HomeLayout(props: HomeLayoutProps) { const ethAsset = getEthereumEvmAsset(assets); const isTestnet = checkIfTestnet(walletSession.wallet.config.network); - const checkDefaultCronosPosExplorerUrl = CRONOS_TENDERMINT_ASSET(walletSession.wallet.config).config.explorerUrl; + const { nodeUrl: checkDefaultCronosPosNodeUrl, explorerUrl: checkDefaultCronosPosExplorerUrl } = CRONOS_TENDERMINT_ASSET(walletSession.wallet.config).config; const checkDefaultCronosExplorerUrl = isTestnet ? TestNetEvmConfig.explorerUrl @@ -345,12 +345,11 @@ function HomeLayout(props: HomeLayoutProps) { : MAINNET_ETHEREUM_EXPLORER_URL; setTimeout(async () => { - - console.log('checkCorrectExplorerUrl', cronosTendermintAsset?.config?.explorerUrl, checkDefaultCronosPosExplorerUrl); if ( !walletSession.activeAsset?.config?.explorer || // Check if explorerUrl has been updated with latest default cronosTendermintAsset?.config?.explorerUrl !== checkDefaultCronosPosExplorerUrl || + cronosTendermintAsset?.config?.nodeUrl !== checkDefaultCronosPosNodeUrl || cronosAsset?.config?.explorerUrl !== checkDefaultCronosExplorerUrl || ethAsset?.config?.explorerUrl !== checkDefaultEthExplorerUrl || // Check if there are latest tendermintNetwork on Cronos Tendermint diff --git a/src/pages/settings/components/GeneralSettingsForm.tsx b/src/pages/settings/components/GeneralSettingsForm.tsx index b7e759198..a84a0941b 100644 --- a/src/pages/settings/components/GeneralSettingsForm.tsx +++ b/src/pages/settings/components/GeneralSettingsForm.tsx @@ -120,9 +120,9 @@ export const GeneralSettingsForm = props => { function onApplyTestnetCroeseid4() { props.form.setFieldsValue({ - nodeUrl: 'https://rpc-testnet-croeseid-4.crypto.org', - clientUrl: 'https://rpc-testnet-croeseid-4.crypto.org', - proxyUrl: 'https://rest-testnet-croeseid-4.crypto.org', + nodeUrl: 'https://rpc-testnet-croeseid-4.cronos-pos.org', + clientUrl: 'https://rpc-testnet-croeseid-4.cronos-pos.org', + proxyUrl: 'https://rest-testnet-croeseid-4.cronos-pos.org', indexingUrl: 'https://cronos-pos.org/explorer/croeseid4/api/v1/', chainId: 'testnet-croeseid-4' }); @@ -130,9 +130,9 @@ export const GeneralSettingsForm = props => { function onApplyTestnetCroeseid5() { props.form.setFieldsValue({ - nodeUrl: 'https://rpc-c5.crypto.org', - clientUrl: 'https://rpc-c5.crypto.org', - proxyUrl: 'https://rest-c5.crypto.org', + nodeUrl: 'https://rpc-c5.cronos-pos.org', + clientUrl: 'https://rpc-c5.cronos-pos.org', + proxyUrl: 'https://rest-c5.cronos-pos.org', indexingUrl: 'https://cronos-pos.org/explorer/croeseid5/api/v1/', chainId: 'testnet-croeseid-5' }); diff --git a/src/service/cronos/CronosClient.spec.ts b/src/service/cronos/CronosClient.spec.ts index aa118de09..5645520c3 100644 --- a/src/service/cronos/CronosClient.spec.ts +++ b/src/service/cronos/CronosClient.spec.ts @@ -124,7 +124,6 @@ describe('CronosClient', () => { }); const cronosClient = new CronosClient( - // 'https://cronos-testnet-3.crypto.org:8545/', 'https://evm-t3.cronos.org:8545/', 'https://cronos.org/explorer/testnet3/api', ); diff --git a/src/service/rpc/ChainIndexingAPI.spec.ts b/src/service/rpc/ChainIndexingAPI.spec.ts index 16eaa698f..9a26d6009 100644 --- a/src/service/rpc/ChainIndexingAPI.spec.ts +++ b/src/service/rpc/ChainIndexingAPI.spec.ts @@ -164,7 +164,7 @@ describe('Testing ChainIndexingApi', () => { power: '17073471821', moniker: 'Pegasus', identity: 'A296556FF603197C', - website: 'https://crypto.org', + website: 'https://cronos-pos.org', securityContact: 'chain-security@crypto.org', details: 'Driving mass adoption of blockchain technology, powered by Bison Trails', commissionRate: '0.200000000000000000', @@ -349,7 +349,7 @@ describe('Testing ChainIndexingApi', () => { power: '17073471821', moniker: 'Pegasus', identity: 'A296556FF603197C', - website: 'https://crypto.org', + website: 'https://cronos-pos.org', securityContact: 'chain-security@crypto.org', details: 'Driving mass adoption of blockchain technology, powered by Bison Trails', commissionRate: '0.200000000000000000', diff --git a/src/service/storage/StorageService.spec.ts b/src/service/storage/StorageService.spec.ts index 167eeefe5..3fef64f11 100644 --- a/src/service/storage/StorageService.spec.ts +++ b/src/service/storage/StorageService.spec.ts @@ -359,7 +359,7 @@ describe('Testing Full Storage Service', () => { const dataSettings: SettingsDataUpdate = { chainId: 'testnet-xxx-2', gasLimit: '330000', - indexingUrl: 'https://crypto.org/explorer/croeseid/api/v1/', + indexingUrl: 'https://cronos-pos.org/explorer/croeseid/api/v1/', networkFee: '12020', nodeUrl: 'https://www.new-node-url-croeseid.crypto.org', walletId: walletTestnet1ID, @@ -390,7 +390,7 @@ describe('Testing Full Storage Service', () => { const dataSettingsMainnet: SettingsDataUpdate = { chainId: 'MainnetZZ-ChainID', gasLimit: '3300022', - indexingUrl: 'https://crypto.org/explorer/mainnet/api/v1/', + indexingUrl: 'https://cronos-pos.org/explorer/mainnet/api/v1/', networkFee: '12022', nodeUrl: 'https://www.new-node-url-mainnet.crypto.org', walletId: walletMainnet1ID,