Skip to content

Commit

Permalink
feat: add chain Scroll (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn authored Oct 17, 2024
1 parent 5b8e146 commit 23179e5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ type ChainName =
| 'zkSyncTestnet'
| 'zora'
| 'zoraSepolia'
| 'zoraTestnet';
| 'zoraTestnet'
| 'scroll'
| 'scrollSepolia';

type IconMetadata = {
iconUrl: () => Promise<string>;
Expand Down Expand Up @@ -164,6 +166,11 @@ const roninIcon: IconMetadata = {
iconUrl: async () => (await import('./chainIcons/ronin.svg')).default,
};

const scrollIcon: IconMetadata = {
iconBackground: '#000000',
iconUrl: async () => (await import('./chainIcons/scroll.svg')).default,
};

const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
arbitrum: { chainId: 42_161, name: 'Arbitrum', ...arbitrumIcon },
arbitrumGoerli: { chainId: 421_613, ...arbitrumIcon },
Expand Down Expand Up @@ -218,6 +225,8 @@ const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
zora: { chainId: 7777777, name: 'Zora', ...zoraIcon },
zoraSepolia: { chainId: 999999999, ...zoraIcon },
zoraTestnet: { chainId: 999, ...zoraIcon },
scroll: { chainId: 534352, ...scrollIcon },
scrollSepolia: { chainId: 534351, ...scrollIcon },
};

const chainMetadataById = Object.fromEntries(
Expand Down

0 comments on commit 23179e5

Please sign in to comment.