Skip to content

Commit

Permalink
Add Optimism mainnet and kovan networks
Browse files Browse the repository at this point in the history
Added OPTIMISM mainnet and kovan tesnet id's and URLs
ethereum-optimism/optimism#983


Also, @smartcontracts from OP says hi 👋 ❤
  • Loading branch information
ayushm2003 committed May 29, 2021
1 parent 0625c12 commit 9e8ed28
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 @@ -30,6 +30,9 @@ enum NetworkID {
HECO_TESTNET = 256,
// Fantom mainnet
OPERA = 250,
//Optimistim
OPTIMISM = 10,
OPTIMISM_KOVAN = 69,
}

const networkIDtoEndpoints: NetworkMap = {
Expand Down Expand Up @@ -73,6 +76,14 @@ const networkIDtoEndpoints: NetworkMap = {
apiURL: "https://api.ftmscan.com/api",
browserURL: "https://ftmscan.com",
},
[NetworkID.OPTIMISM]: {
apiURL: "https://api-optimistic.etherscan.io",
browserURL: "https://optimistic.etherscan.io/",
},
[NetworkID.OPTIMISM_KOVAN]: {
apiURL: "https://api-kovan-optimistic.etherscan.io",
browserURL: "https://kovan-optimistic.etherscan.io/",
},
};

export async function getEtherscanEndpoints(
Expand Down

0 comments on commit 9e8ed28

Please sign in to comment.