-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migrate explorer from SDK consts to registry - Update to latest hyperlane libs - Fix problems with delivery checking - Remove status badge from message table - Update react-query lib - Remove unused, outdated wagmi + rainbowkit libs - Fix error when filtering to all mainnets - Avoid misleading status check for non-evm chains - Hide v2 link banner
- Loading branch information
Showing
35 changed files
with
2,953 additions
and
2,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
import { ChainLogo as ChainLogoInner } from '@hyperlane-xyz/widgets'; | ||
|
||
import { getChainName } from '../../features/chains/utils'; | ||
import { useMultiProvider } from '../../features/providers/multiProvider'; | ||
import { useMultiProvider, useRegistry } from '../../store'; | ||
|
||
export function ChainLogo(props: ComponentProps<typeof ChainLogoInner>) { | ||
const { chainName, chainId, ...rest } = props; | ||
export function ChainLogo({ | ||
chainId, | ||
chainName, | ||
background, | ||
size, | ||
}: { | ||
chainId: ChainId; | ||
chainName?: string; | ||
background?: boolean; | ||
size?: number; | ||
}) { | ||
const multiProvider = useMultiProvider(); | ||
const name = chainName || getChainName(multiProvider, props.chainId); | ||
return <ChainLogoInner {...rest} chainName={name} chainId={chainId} />; | ||
const registry = useRegistry(); | ||
const name = chainName || multiProvider.tryGetChainName(chainId) || ''; | ||
return ( | ||
<ChainLogoInner chainName={name} registry={registry} size={size} background={background} /> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.