Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blastscan #95

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/ethereum-viewer/src/explorer/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const explorerApiUrls = {
gnosisscan: "https://api.gnosisscan.io/api",
fraxscan: "https://api.fraxscan.com/api",
"holesky.fraxscan": "https://api-holesky.fraxscan.com/api",
blastscan: "https://api.blastscan.io/api",
"sepolia.blastscan": "https://api-sepolia.blastscan.io/api",
};

/**
Expand Down Expand Up @@ -60,6 +62,8 @@ export const networkNames: Record<ApiName, string> = {
gnosisscan: "gnosisscan",
fraxscan: "frax",
"holesky.fraxscan": "fraxHolesky",
blastscan: "blast",
"sepolia.blastscan": "blastSepolia",
};

const ETHERSCAN_KEY = "862Y3WJ4JB4B34PZQRFEV3IK6SZ8GNR9N5";
Expand All @@ -74,6 +78,7 @@ const CRONOSCAN_KEY = "BGAN1CWT8E1A2XRS3FU61UP7XXFMHBWNSY";
const BASESCAN_KEY = "ICQQDUA1C8R2EZY6M4QIIV7WUEZM8INNA7";
const GNOSISSCAN_KEY = "7PWN1FIPXW6WDSGH3PIHRW1EEU4A882QSQ";
const FRAXSCAN_KEY = "TEUJWRCAKIXQCUR7XZRKCFRH3QHH344PAM";
const BLASTSCAN_KEY = "G6DR1ZFYP54GG49SJ9GID37SFQPV96H77E";

// @todo this should be possible to override using VSCode settings
export const explorerApiKeys: Record<ApiName, string> = {
Expand Down Expand Up @@ -111,4 +116,7 @@ export const explorerApiKeys: Record<ApiName, string> = {

fraxscan: FRAXSCAN_KEY,
"holesky.fraxscan": FRAXSCAN_KEY,

blastscan: BLASTSCAN_KEY,
"sepolia.blastscan": BLASTSCAN_KEY,
};
Loading