Skip to content

Commit

Permalink
Add Meld network (#419)
Browse files Browse the repository at this point in the history
* Add meld network

* add kanazawa
  • Loading branch information
shahnami authored Nov 9, 2023
1 parent 90d1cf5 commit eba0993
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/base/src/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ type PublicNetwork =
| 'linea-goerli'
| 'mantle'
| 'scroll'
| 'scroll-sepolia';
| 'scroll-sepolia'
| 'meld'
| 'meld-kanazawa';

type CustomNetwork = 'x-dfk-avax-chain' | 'x-dfk-avax-chain-test';

Expand Down Expand Up @@ -87,6 +89,8 @@ export const Networks: Network[] = [
'mantle',
'scroll',
'scroll-sepolia',
'meld',
'meld-kanazawa',
];
export function isValidNetwork(text: string): text is Network {
return (Networks as string[]).includes(text);
Expand Down Expand Up @@ -142,4 +146,6 @@ const chainIds: { [key in Network]: number } = {
'mantle': 5000,
'scroll': 534352,
'scroll-sepolia': 534351,
'meld': 0x13d92e8d,
'meld-kanazawa': 0xd3b745e,
};

0 comments on commit eba0993

Please sign in to comment.