Skip to content

Commit

Permalink
fix: blast gas (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Jun 4, 2024
1 parent 832f2f0 commit 732f717
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
9 changes: 5 additions & 4 deletions src/core/references/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,17 @@ export const simpleHashSupportedTestnetChainNames = [
] as (ChainName | 'ethereum-sepolia' | 'ethereum')[];

export const meteorologySupportedChains = [
ChainId.arbitrum,
ChainId.avalanche,
ChainId.base,
ChainId.blast,
ChainId.bsc,
ChainId.sepolia,
ChainId.holesky,
ChainId.sepolia,
ChainId.mainnet,
ChainId.polygon,
ChainId.base,
ChainId.arbitrum,
ChainId.optimism,
ChainId.zora,
ChainId.avalanche,
];

export const needsL1SecurityFeeChains = [
Expand Down
33 changes: 22 additions & 11 deletions src/core/resources/gas/meteorology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,37 @@ import {
createQueryKey,
queryClient,
} from '~/core/react-query';
import { meteorologySupportedChains } from '~/core/references/chains';
import { ChainId } from '~/core/types/chains';

const getMeteorologyNetworkFromChainId = (chainId: ChainId) => {
type MeteorologySupportedChain = (typeof meteorologySupportedChains)[number];

const getMeteorologyNetworkFromChainId = (
chainId: MeteorologySupportedChain,
) => {
switch (chainId) {
case ChainId.polygon:
return 'polygon';
case ChainId.bsc:
return 'bsc';
case ChainId.arbitrum:
return 'arbitrum';
case ChainId.avalanche:
return 'avalanche';
case ChainId.base:
return 'base';
case ChainId.blast:
return 'blast';
case ChainId.bsc:
return 'bsc';
case ChainId.holesky:
return 'holesky';
case ChainId.sepolia:
return 'sepolia';
case ChainId.mainnet:
return 'mainnet';
case ChainId.polygon:
return 'polygon';
case ChainId.optimism:
return 'optimism';
case ChainId.arbitrum:
return 'arbitrum';
case ChainId.zora:
return 'zora';
case ChainId.avalanche:
return 'avalanche';
default:
return 'mainnet';
}
};
// ///////////////////////////////////////////////
Expand Down

0 comments on commit 732f717

Please sign in to comment.