Skip to content

Commit

Permalink
Avalanche verify support
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelomorgado committed Nov 6, 2021
1 parent 951ccb4 commit 0191594
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/hardhat-etherscan/src/network/prober.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ enum NetworkID {
// Arbitrum
ARBITRUM_ONE = 42161,
ARBITRUM_TESTNET = 421611,
// Avalanche
AVALANCHE = 43114,
AVALANCHE_FUJI_TESTNET = 43113,
}

const networkIDtoEndpoints: NetworkMap = {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0191594

Please sign in to comment.