Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update Sourcify networks
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed Nov 22, 2022
1 parent 3950dca commit 281c938
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/source-fetcher/lib/networks.ts
Expand Up @@ -10,13 +10,15 @@ export const networkNamesById: { [id: number]: string } = {
10: "optimistic",
69: "kovan-optimistic",
420: "goerli-optimistic",
28528: "goerli-bedrock-optimistic",
42161: "arbitrum",
42170: "nova-arbitrum",
421611: "rinkeby-arbitrum",
421613: "goerli-arbitrum",
137: "polygon",
80001: "mumbai-polygon",
100: "gnosis", //formerly known as xdai
10200: "chiado-gnosis",
300: "optimism-gnosis", //optimism on gnosis, not vice versa
99: "core-poa",
77: "sokol-poa",
Expand Down Expand Up @@ -78,6 +80,7 @@ export const networkNamesById: { [id: number]: string } = {
51: "apothem-xinfin",
7700: "canto",
592: "astar",
336: "shiden-astar",
8217: "cypress-klaytn", //not presently supported by either fetcher, but...
1001: "baobab-klaytn"
//I'm not including crystaleum as it has network ID different from chain ID
Expand Down
6 changes: 5 additions & 1 deletion packages/source-fetcher/lib/sourcify.ts
Expand Up @@ -49,12 +49,14 @@ const SourcifyFetcher: FetcherConstructor = class SourcifyFetcher
"optimistic",
"kovan-optimistic", //can no longer verify but can still fetch existing
"goerli-optimistic",
"goerli-bedrock-optimistic",
"arbitrum",
"rinkeby-arbitrum", //can no longer verify but can still fetch existing
"goerli-arbitrum",
"polygon",
"mumbai-polygon",
"gnosis",
"chiado-gnosis",
"optimism-gnosis",
"core-poa",
"sokol-poa",
Expand Down Expand Up @@ -106,9 +108,11 @@ const SourcifyFetcher: FetcherConstructor = class SourcifyFetcher
"apothem-xinfin",
"canto",
"astar",
//sourcify does *not* support klaytn mainnet cypress...?
"shiden-astar",
"cypress-klaytn",
"baobab-klaytn"
//I'm excluding crystaleum as it has network ID different from chain ID
//excluding kekchain for the same reason
]);

constructor(networkId: number) {
Expand Down

0 comments on commit 281c938

Please sign in to comment.