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

Commit

Permalink
Add Sourcify networks for July 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed Jul 1, 2022
1 parent d30ce8f commit df41cc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion packages/source-fetcher/lib/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const networkNamesById: { [id: number]: string } = {
43113: "fuji-avalanche",
11111: "wagmi-avalanche",
53935: "dfk-avalanche",
432201: "dexalot-avalanche",
335: "testnet-dfk-avalance",
40: "telos",
41: "testnet-telos",
Expand Down Expand Up @@ -64,7 +65,12 @@ export const networkNamesById: { [id: number]: string } = {
534: "candle",
192837465: "gather",
486217935: "devnet-gather",
356256156: "testnet-gather"
356256156: "testnet-gather",
246: "energyweb",
73799: "volta-energyweb",
71402: "godwoken", //not presently supported by either fetcher, but...
71401: "testnet-godwoken"
//I'm not including crystaleum as it has network ID different from chain ID
};

export const networksByName: Types.SupportedNetworks = Object.fromEntries(
Expand Down
12 changes: 9 additions & 3 deletions packages/source-fetcher/lib/sourcify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const SourcifyFetcher: FetcherConstructor = class SourcifyFetcher

private static readonly supportedNetworks = new Set([
"mainnet",
"ropsten",
"kovan",
"ropsten", //can no longer verify but can still fetch existing
"kovan", //can no longer verify but can still fetch existing
"rinkeby",
"goerli",
"kovan",
Expand All @@ -61,6 +61,7 @@ const SourcifyFetcher: FetcherConstructor = class SourcifyFetcher
"wagmi-avalanche",
"dfk-avalanche",
"testnet-dfk-avalanche",
"dexalot-avalanche",
"telos",
"testnet-telos",
"ubiq",
Expand Down Expand Up @@ -89,7 +90,12 @@ const SourcifyFetcher: FetcherConstructor = class SourcifyFetcher
"candle",
"gather",
"devnet-gather",
"testnet-gather"
"testnet-gather",
"energyweb",
"volta-energyweb",
//sourcify does *not* support godwoken mainnet...?
"testnet-godwoken"
//I'm excluding crystaleum as it has network ID different from chain ID
]);

constructor(networkId: number) {
Expand Down

0 comments on commit df41cc9

Please sign in to comment.