Skip to content

Commit

Permalink
Added Sepolia network (ethers-io#3325).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 6fa3672 commit cc404a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/networks/src.ts/index.ts
Expand Up @@ -49,7 +49,7 @@ function ethDefaultProvider(network: string | Network): Renetworkable {
// network does not handle the Berlin hardfork, which is
// live on these ones.
// @TODO: This goes away once Pocket has upgraded their nodes
const skip = [ "goerli", "ropsten", "rinkeby" ];
const skip = [ "goerli", "ropsten", "rinkeby", "sepolia" ];
try {
const provider = new providers.PocketProvider(network, options.pocket);
if (provider.network && skip.indexOf(provider.network.name) === -1) {
Expand Down Expand Up @@ -166,6 +166,12 @@ const networks: { [name: string]: Network } = {

kintsugi: { chainId: 1337702, name: "kintsugi" },

sepolia: {
chainId: 11155111,
name: "sepolia",
_defaultProvider: ethDefaultProvider("sepolia")
},


// ETC (See: #351)
classic: {
Expand Down
2 changes: 2 additions & 0 deletions packages/providers/src.ts/etherscan-provider.ts
Expand Up @@ -179,6 +179,8 @@ export class EtherscanProvider extends BaseProvider{
return "https:/\/api-kovan.etherscan.io";
case "goerli":
return "https:/\/api-goerli.etherscan.io";
case "sepolia":
return "https:/\/api-sepolia.etherscan.io";
case "optimism":
return "https:/\/api-optimistic.etherscan.io";
case "optimism-kovan":
Expand Down
3 changes: 3 additions & 0 deletions packages/providers/src.ts/infura-provider.ts
Expand Up @@ -99,6 +99,9 @@ export class InfuraProvider extends UrlJsonRpcProvider {
case "goerli":
host = "goerli.infura.io";
break;
case "sepolia":
host = "sepolia.infura.io";
break;
case "matic":
host = "polygon-mainnet.infura.io";
break;
Expand Down

0 comments on commit cc404a4

Please sign in to comment.