From 5a6bcbfa263ee4809223f1e2d8409d959c520939 Mon Sep 17 00:00:00 2001 From: Kaan Uzdogan Date: Thu, 23 Feb 2023 17:09:58 +0100 Subject: [PATCH] Add chain 84531 --- src/sourcify-chains.ts | 7 +++++++ test/chains/chain-tests.js | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/sourcify-chains.ts b/src/sourcify-chains.ts index 1cd66ec7d..3b2b07113 100644 --- a/src/sourcify-chains.ts +++ b/src/sourcify-chains.ts @@ -683,6 +683,13 @@ const sourcifyChainsExtensions: SourcifyChainsExtensionsObject = { rpc: ["https://brnkc-mainnet.bearnetwork.net"], txRegex: getBlockscoutRegex(), }, + "84531": { + // Base Goerli Testnet + supported: true, + monitored: true, + contractFetchAddress: "https://goerli.basescan.org/" + ETHERSCAN_SUFFIX, + txRegex: ETHERSCAN_REGEX, + }, }; const sourcifyChainsMap: SourcifyChainMap = {}; diff --git a/test/chains/chain-tests.js b/test/chains/chain-tests.js index d3de13b5a..f377036ac 100644 --- a/test/chains/chain-tests.js +++ b/test/chains/chain-tests.js @@ -1336,6 +1336,24 @@ describe("Test Supported Chains", function () { "shared/withImmutables.metadata.json" ); + // Base Goerli Testnet + verifyContract( + "0x8F78b9c92a68DdF719849a40702cFBfa4EB60dD0", + "84531", + "Base Goerli Testnet", + ["shared/1_Storage.sol"], + "shared/1_Storage.metadata.json" + ); + verifyContractWithImmutables( + "0xd46fd24ea21F04459407Fb0B518451e54d0b07a1", + "84531", + "Base Goerli Testnet", + ["uint256"], + [12345], + ["shared/WithImmutables.sol"], + "shared/withImmutables.metadata.json" + ); + ////////////////////// // Helper functions // //////////////////////