From 7bc3f114b325373f3ad6a136b62b96468cad91c6 Mon Sep 17 00:00:00 2001 From: Scott Terry Date: Fri, 22 Sep 2023 18:12:26 -0700 Subject: [PATCH 1/3] add support for arbitrum --- src/plugins/explorer/api/arbiscan-factory.js | 2 ++ src/plugins/explorer/api/factory.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/explorer/api/arbiscan-factory.js b/src/plugins/explorer/api/arbiscan-factory.js index 973cdbe..c85b200 100644 --- a/src/plugins/explorer/api/arbiscan-factory.js +++ b/src/plugins/explorer/api/arbiscan-factory.js @@ -7,6 +7,8 @@ const createArbiscanApi = (chainId) => { case '421613': baseURL = 'https://api-goerli.arbiscan.io/api' break + case '42161': + baseURL = 'https://api.arbiscan.io/api' default: throw new Error(`Unsupported chain ${chainId}`) } diff --git a/src/plugins/explorer/api/factory.js b/src/plugins/explorer/api/factory.js index 1f2f6c7..6a1e3e1 100644 --- a/src/plugins/explorer/api/factory.js +++ b/src/plugins/explorer/api/factory.js @@ -15,8 +15,9 @@ const createExplorerApis = (chainId) => { const etherscanApi = createEtherscanApi(chainId) const blockscoutApi = createBlockscoutApi(chainId) apis.push(etherscanApi, blockscoutApi) - break; + break case '421613': + case '42161': const arbiscanApi = createArbiscanApi(chainId) apis.push(arbiscanApi) break From fbc82f121c760fe9310f15821b8f9f241b7c4788 Mon Sep 17 00:00:00 2001 From: Scott Terry Date: Fri, 22 Sep 2023 18:12:48 -0700 Subject: [PATCH 2/3] add missing break --- src/plugins/explorer/api/arbiscan-factory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/explorer/api/arbiscan-factory.js b/src/plugins/explorer/api/arbiscan-factory.js index c85b200..d84c59b 100644 --- a/src/plugins/explorer/api/arbiscan-factory.js +++ b/src/plugins/explorer/api/arbiscan-factory.js @@ -9,6 +9,7 @@ const createArbiscanApi = (chainId) => { break case '42161': baseURL = 'https://api.arbiscan.io/api' + break default: throw new Error(`Unsupported chain ${chainId}`) } From 207c7a52f4250cf505f62d3a4cfb6ce4aa42dd9d Mon Sep 17 00:00:00 2001 From: Scott Terry Date: Fri, 22 Sep 2023 18:17:43 -0700 Subject: [PATCH 3/3] increment version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a36258d..d458cfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lumerin/wallet-core", - "version": "1.0.69", + "version": "1.0.70", "author": { "name": "Lumerin", "email": "developer@lumerin.io",