From 5178e9e8bbd80eb2f13b1eb590b35e2b46496252 Mon Sep 17 00:00:00 2001 From: qperrot Date: Mon, 30 Dec 2024 16:17:46 +0100 Subject: [PATCH] fix: use blockscout --- .changeset/kind-dodos-marry.md | 5 ++++ .../src/families/evm/config.ts | 24 +++++++++---------- 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .changeset/kind-dodos-marry.md diff --git a/.changeset/kind-dodos-marry.md b/.changeset/kind-dodos-marry.md new file mode 100644 index 000000000000..6894fdf49f64 --- /dev/null +++ b/.changeset/kind-dodos-marry.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +Migration from etherscan to blockscout diff --git a/libs/ledger-live-common/src/families/evm/config.ts b/libs/ledger-live-common/src/families/evm/config.ts index e4ca95e956c5..09f0b86a47b4 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", }, }, }, @@ -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: { @@ -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: { @@ -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: { @@ -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: {