-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df50b3f
commit 997b81c
Showing
4 changed files
with
156 additions
and
28 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
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 |
---|---|---|
@@ -0,0 +1,142 @@ | ||
import { Chain, sepolia as sepoliaDefault } from 'wagmi' | ||
|
||
import { ether } from '../constants' | ||
import { ChainId, explorerUrls, rpcURLs } from './networks' | ||
|
||
export const sepolia: Chain = { | ||
...sepoliaDefault, | ||
rpcUrls: { | ||
...sepoliaDefault.rpcUrls, | ||
// override the default public RPC with the Infura RPC | ||
// public RPCs are getting rate limited | ||
default: { | ||
http: [rpcURLs[ChainId.Sepolia]!] | ||
} | ||
} | ||
} | ||
|
||
export const holesky: Chain = { | ||
id: ChainId.Holesky, | ||
name: 'Holesky', | ||
network: 'holesky', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.Holesky]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.Holesky]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
etherscan: { | ||
name: 'Etherscan', | ||
url: explorerUrls[ChainId.Holesky]! | ||
}, | ||
default: { name: 'Etherscan', url: explorerUrls[ChainId.Holesky]! } | ||
} | ||
} | ||
|
||
export const arbitrumSepolia: Chain = { | ||
id: ChainId.ArbitrumSepolia, | ||
name: 'Arbitrum Sepolia', | ||
network: 'arbitrum-sepolia', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.ArbitrumSepolia]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.ArbitrumSepolia]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
etherscan: { | ||
name: 'Arbiscan', | ||
url: explorerUrls[ChainId.ArbitrumSepolia]! | ||
}, | ||
default: { name: 'Arbiscan', url: explorerUrls[ChainId.ArbitrumSepolia]! } | ||
} | ||
} | ||
|
||
export const arbitrumNova: Chain = { | ||
id: ChainId.ArbitrumNova, | ||
name: 'Arbitrum Nova', | ||
network: 'arbitrum-nova', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.ArbitrumNova]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.ArbitrumNova]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
etherscan: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' }, | ||
default: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' } | ||
} | ||
} | ||
|
||
/** | ||
* For e2e testing | ||
*/ | ||
export const localL1Network: Chain = { | ||
id: ChainId.Local, | ||
name: 'Ethereum Local', | ||
network: 'custom-localhost', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.Local]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.Local]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
default: { name: 'Blockscout', url: '' } | ||
} | ||
} | ||
|
||
/** | ||
* For e2e testing | ||
*/ | ||
export const localL2Network: Chain = { | ||
id: ChainId.ArbitrumLocal, | ||
name: 'Arbitrum Local', | ||
network: 'arbitrum-localhost', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.ArbitrumLocal]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.ArbitrumLocal]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
default: { name: 'Blockscout', url: 'https://etherscan.io' } | ||
} | ||
} | ||
|
||
/** | ||
* For e2e testing | ||
*/ | ||
export const localL3Network: Chain = { | ||
id: ChainId.L3Local, | ||
name: 'L3 Local', | ||
network: 'l3-localhost', | ||
nativeCurrency: ether, | ||
rpcUrls: { | ||
default: { | ||
http: [rpcURLs[ChainId.L3Local]!] | ||
}, | ||
public: { | ||
http: [rpcURLs[ChainId.L3Local]!] | ||
} | ||
}, | ||
blockExplorers: { | ||
default: { name: 'Blockscout', url: 'https://etherscan.io' } | ||
} | ||
} |