Skip to content

Commit

Permalink
Add blast to core chains (#59)
Browse files Browse the repository at this point in the history
### Description

#### Type: Updated Network

#### Network(s): Blast

#### Other notes

- Add blast to CoreChain list
- Fix alphabetical ordering of chains

### Backward compatibility

Yes
  • Loading branch information
jmrossy authored Jun 12, 2024
1 parent 594b14e commit 750c136
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-insects-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/registry': patch
---

Add blast to CoreChain enum
18 changes: 10 additions & 8 deletions src/core/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export enum CoreChain {
arbitrum = 'arbitrum',
avalanche = 'avalanche',
base = 'base',
blast = 'blast',
bsc = 'bsc',
bsctestnet = 'bsctestnet',
celo = 'celo',
chiado = 'chiado',
eclipsetestnet = 'eclipsetestnet',
ethereum = 'ethereum',
fraxtal = 'fraxtal',
fuji = 'fuji',
Expand All @@ -37,9 +39,8 @@ export enum CoreChain {
solana = 'solana',
solanadevnet = 'solanadevnet',
solanatestnet = 'solanatestnet',
eclipsetestnet = 'eclipsetestnet',
viction = 'viction',
zetachain = 'zetachain'
zetachain = 'zetachain',
}

export type CoreChainName = keyof typeof CoreChain;
Expand All @@ -48,20 +49,21 @@ export const CoreMainnets: Array<CoreChainName> = [
CoreChain.arbitrum,
CoreChain.ancient8,
CoreChain.avalanche,
CoreChain.base,
CoreChain.blast,
CoreChain.bsc,
CoreChain.celo,
CoreChain.ethereum,
CoreChain.gnosis,
CoreChain.inevm,
CoreChain.injective,
CoreChain.neutron,
CoreChain.mantapacific,
CoreChain.moonbeam,
CoreChain.optimism,
CoreChain.polygon,
CoreChain.gnosis,
CoreChain.base,
CoreChain.scroll,
CoreChain.polygonzkevm,
CoreChain.injective,
CoreChain.inevm,
CoreChain.scroll,
CoreChain.viction,
// CoreChains.solana,
];
Expand All @@ -70,13 +72,13 @@ export const CoreTestnets: Array<CoreChainName> = [
CoreChain.alfajores,
CoreChain.bsctestnet,
CoreChain.chiado,
CoreChain.eclipsetestnet,
CoreChain.fuji,
CoreChain.plumetestnet,
CoreChain.scrollsepolia,
CoreChain.sepolia,
CoreChain.solanadevnet,
CoreChain.solanatestnet,
CoreChain.eclipsetestnet,
];

export const CoreChains: Array<CoreChainName> = [...CoreMainnets, ...CoreTestnets];
5 changes: 2 additions & 3 deletions test/health/explorer-health.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export async function isBlockExplorerHealthy(
console.debug(`Got base url: ${baseUrl}`);

console.debug(`Checking explorer home for ${chainMetadata.name}`);
const homeReq = await fetch(baseUrl);
if (!homeReq.ok) return false;
console.debug(`Explorer home okay for ${chainMetadata.name}`);
await fetch(baseUrl);
console.debug(`Explorer home exists for ${chainMetadata.name}`);

if (address) {
console.debug(`Checking explorer address page for ${chainMetadata.name}`);
Expand Down

0 comments on commit 750c136

Please sign in to comment.