From 1b58a2e46777fe8a165e2293878223c6367761c4 Mon Sep 17 00:00:00 2001 From: Hedi EDELBLOUTE Date: Tue, 14 Jan 2025 09:56:22 +0100 Subject: [PATCH] chore: update evm explorers in currency config --- .changeset/bright-kiwis-travel.md | 5 +++ .../src/families/evm/config.ts | 42 +++++++++---------- 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 .changeset/bright-kiwis-travel.md diff --git a/.changeset/bright-kiwis-travel.md b/.changeset/bright-kiwis-travel.md new file mode 100644 index 000000000000..2400b62157ca --- /dev/null +++ b/.changeset/bright-kiwis-travel.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +Update several evm explorers diff --git a/libs/ledger-live-common/src/families/evm/config.ts b/libs/ledger-live-common/src/families/evm/config.ts index e4ca95e956c5..ef10c08c97d7 100644 --- a/libs/ledger-live-common/src/families/evm/config.ts +++ b/libs/ledger-live-common/src/families/evm/config.ts @@ -270,8 +270,8 @@ const evmConfig: CurrencyLiveConfigDefinition = { uri: "https://arb1.arbitrum.io/rpc", }, explorer: { - type: "etherscan", - uri: "https://api.arbiscan.io/api", + type: "blockscout", + uri: "https://arbitrum.blockscout.com/api", }, }, }, @@ -286,8 +286,8 @@ const evmConfig: CurrencyLiveConfigDefinition = { uri: "https://evm.cronos.org", }, explorer: { - type: "etherscan", - uri: "https://api.cronoscan.com/api", + type: "blockscout", + uri: "https://cronos.org/explorer/api", }, }, }, @@ -303,7 +303,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "etherscan", - uri: "https://api.ftmscan.com/api", + uri: "https://proxyetherscan.api.live.ledger.com/v2/api/250", }, }, }, @@ -351,7 +351,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "etherscan", - uri: "https://api-moonbeam.moonscan.io/api", + uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1284", }, }, }, @@ -383,7 +383,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "etherscan", - uri: "https://api.bttcscan.com/api", + uri: "https://proxyetherscan.api.live.ledger.com/v2/api/199", }, }, }, @@ -398,8 +398,8 @@ const evmConfig: CurrencyLiveConfigDefinition = { uri: "https://mainnet.optimism.io", }, explorer: { - type: "etherscan", - uri: "https://api-optimistic.etherscan.io/api", + type: "blockscout", + uri: "https://optimism.blockscout.com/api", }, }, }, @@ -408,7 +408,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://sepolia.optimism.io" }, - explorer: { type: "etherscan", uri: "https://api-sepolia-optimistic.etherscan.io/api" }, + explorer: { type: "blockscout", uri: "https://optimism-sepolia.blockscout.com/api" }, }, }, config_currency_energy_web: { @@ -487,7 +487,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "etherscan", - uri: "https://api-moonriver.moonscan.io/api", + uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1285", }, }, }, @@ -551,7 +551,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "blockscout", - uri: "https://zkevm.blockscout.com/api", + uri: "https://explorer-ui.cardona.zkevm-rpc.com/api", }, }, }, @@ -631,7 +631,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { }, explorer: { type: "etherscan", - uri: "https://api.lineascan.build/api", + uri: "https://proxyetherscan.api.live.ledger.com/v2/api/59144", }, }, }, @@ -658,7 +658,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { type: "object", default: { node: { type: "external", uri: "https://sepolia-rollup.arbitrum.io/rpc" }, - explorer: { type: "etherscan", uri: "https://api-sepolia.arbiscan.io/api" }, + explorer: { type: "blockscout", uri: "https://arbitrum-sepolia.blockscout.com/api" }, }, }, config_currency_polygon_zk_evm_testnet: { @@ -674,7 +674,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://sepolia.base.org" }, - explorer: { type: "etherscan", uri: "https://api-sepolia.basescan.org/api" }, + explorer: { type: "blockscout", uri: "https://base-sepolia.blockscout.com/api" }, }, }, config_currency_linea_sepolia: { @@ -682,7 +682,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://rpc.sepolia.linea.build" }, - explorer: { type: "etherscan", uri: "https://api-sepolia.lineascan.build/api" }, + explorer: { type: "blockscout", uri: "https://explorer.goerli.linea.build/api" }, }, }, config_currency_blast: { @@ -690,7 +690,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://rpc.blast.io" }, - explorer: { type: "etherscan", uri: "https://api.blastscan.io/api" }, + explorer: { type: "blockscout", uri: "https://blast.blockscout.com/api" }, }, }, config_currency_blast_sepolia: { @@ -698,7 +698,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://sepolia.blast.io" }, - explorer: { type: "etherscan", uri: "https://api-sepolia.blastscan.io/api" }, + explorer: { type: "blockscout", uri: "https://blast-testnet.blockscout.com/api" }, }, }, config_currency_scroll: { @@ -706,7 +706,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://rpc.scroll.io" }, - explorer: { type: "etherscan", uri: "https://api.scrollscan.com/api" }, + explorer: { type: "blockscout", uri: "https://scroll.blockscout.com/api" }, }, }, config_currency_scroll_sepolia: { @@ -714,7 +714,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://sepolia-rpc.scroll.io" }, - explorer: { type: "etherscan", uri: "https://api-sepolia.scrollscan.com/api" }, + explorer: { type: "blockscout", uri: "https://scroll-sepolia.blockscout.com/api" }, }, }, config_currency_etherlink: { @@ -722,7 +722,7 @@ const evmConfig: CurrencyLiveConfigDefinition = { default: { status: { type: "active" }, node: { type: "external", uri: "https://node.mainnet.etherlink.com" }, - explorer: { type: "etherscan", uri: "https://explorer.etherlink.com/api" }, + explorer: { type: "blockscout", uri: "https://explorer.etherlink.com/api" }, }, }, config_currency_zksync: {