File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export type SandboxChain =
1515 | 'arbitrumsepolia'
1616 | 'lineasepolia'
1717 | 'scrollsepolia'
18+ | 'basesepolia'
1819 | 'columbus'
1920 | 'grand' ;
2021
@@ -25,6 +26,7 @@ export type ProductionChain =
2526 | 'arbitrum'
2627 | 'linea'
2728 | 'scroll'
29+ | 'base'
2830 | 'camino'
2931 | 'noble' ;
3032
@@ -40,6 +42,8 @@ export type EvmChainId =
4042 | 501 // camino columbus
4143 | 137 // polygon
4244 | 80002 // polygon amoy
45+ | 8453 // base
46+ | 84532 // base sepolia
4347 | 42161 // arbitrum
4448 | 421614 // arbitrum sepolia
4549 | 59141 // linea sepolia
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ const isValidEvmName = (chain: string) => {
6464 switch ( chain ) {
6565 case 'ethereum' :
6666 case 'sepolia' :
67+ case 'basesepolia' :
68+ case 'base' :
6769 case 'polygon' :
6870 case 'amoy' :
6971 case 'gnosis' :
@@ -239,6 +241,10 @@ export const getChain = (chainId: number): Chain => {
239241 return 'polygon' ;
240242 case 80002 :
241243 return 'amoy' ;
244+ case 8453 :
245+ return 'base' ;
246+ case 84532 :
247+ return 'basesepolia' ;
242248 case 42161 :
243249 return 'arbitrum' ;
244250 case 421614 :
@@ -300,6 +306,8 @@ const chainNameBackwardsCompatibility = (
300306 switch ( chain ) {
301307 case 'ethereum' :
302308 return 'sepolia' ;
309+ case 'base' :
310+ return 'basesepolia' ;
303311 case 'polygon' :
304312 return 'amoy' ;
305313 case 'gnosis' :
You can’t perform that action at this time.
0 commit comments