Skip to content

Commit

Permalink
chore: Add Blast constants (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl authored Jul 9, 2024
1 parent 0705b9e commit 63e7483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/BlockUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const cacheTTL = 60 * 15;
const now = getCurrentTime(); // Seed the cache with initial values.
const blockTimes: { [chainId: number]: BlockTimeAverage } = {
[CHAIN_IDs.BASE]: { average: 2, timestamp: now, blockRange: 1 },
[CHAIN_IDs.BLAST]: { average: 2, timestamp: now, blockRange: 1 },
[CHAIN_IDs.LINEA]: { average: 3, timestamp: now, blockRange: 1 },
[CHAIN_IDs.LISK]: { average: 2, timestamp: now, blockRange: 1 },
[CHAIN_IDs.MAINNET]: { average: 12.5, timestamp: now, blockRange: 1 },
Expand Down
2 changes: 2 additions & 0 deletions src/utils/NetworkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ export function chainIsOPStack(chainId: number): boolean {
return [
CHAIN_IDs.OPTIMISM,
CHAIN_IDs.BASE,
CHAIN_IDs.BLAST,
CHAIN_IDs.LISK,
CHAIN_IDs.MODE,
CHAIN_IDs.OPTIMISM_SEPOLIA,
CHAIN_IDs.BASE_SEPOLIA,
CHAIN_IDs.BLAST_SEPOLIA,
CHAIN_IDs.LISK_SEPOLIA,
CHAIN_IDs.MODE_SEPOLIA,
].includes(chainId);
Expand Down

0 comments on commit 63e7483

Please sign in to comment.