From 0191594d48060c13f3ab095003091a512c8546c4 Mon Sep 17 00:00:00 2001 From: Marcelo Morgado Date: Thu, 4 Nov 2021 14:33:03 +0000 Subject: [PATCH] Avalanche verify support --- packages/hardhat-etherscan/src/network/prober.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/hardhat-etherscan/src/network/prober.ts b/packages/hardhat-etherscan/src/network/prober.ts index 41d39db82d..569da90604 100644 --- a/packages/hardhat-etherscan/src/network/prober.ts +++ b/packages/hardhat-etherscan/src/network/prober.ts @@ -40,6 +40,9 @@ enum NetworkID { // Arbitrum ARBITRUM_ONE = 42161, ARBITRUM_TESTNET = 421611, + // Avalanche + AVALANCHE = 43114, + AVALANCHE_FUJI_TESTNET = 43113, } const networkIDtoEndpoints: NetworkMap = { @@ -111,6 +114,14 @@ const networkIDtoEndpoints: NetworkMap = { apiURL: "https://api-testnet.arbiscan.io/api", browserURL: "https://testnet.arbiscan.io/", }, + [NetworkID.AVALANCHE]: { + apiURL: "https://api.snowtrace.io/api", + browserURL: "https://snowtrace.io/", + }, + [NetworkID.AVALANCHE_FUJI_TESTNET]: { + apiURL: "https://api-testnet.snowtrace.io/api", + browserURL: "https://testnet.snowtrace.io/", + }, }; export async function getEtherscanEndpoints(