Skip to content

Commit dc0c108

Browse files
committed
block explorers and public rpcs for new chains
1 parent 098b433 commit dc0c108

File tree

1 file changed

+12
-0
lines changed
  • packages/cli/src/command-helpers

1 file changed

+12
-0
lines changed

packages/cli/src/command-helpers/abi.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ const getEtherscanLikeAPIUrl = (network: string) => {
346346
return 'https://unichain-sepolia.blockscout.com/api';
347347
case 'lens-testnet':
348348
return 'https://block-explorer-api.testnet.lens.dev/api';
349+
case 'abstract-testnet':
350+
return 'https://block-explorer-api.testnet.abs.xyz/api';
351+
case 'corn':
352+
return 'https://maizenet-explorer.usecorn.com/api';
353+
case 'corn-testnet':
354+
return 'https://testnet-explorer.usecorn.com/api';
349355
default:
350356
return `https://api-${network}.etherscan.io/api`;
351357
}
@@ -504,6 +510,12 @@ const getPublicRPCEndpoint = (network: string) => {
504510
return 'https://sepolia.unichain.org';
505511
case 'lens-testnet':
506512
return 'https://api.staging.lens.zksync.dev';
513+
case 'abstract-testnet':
514+
return 'https://api.testnet.abs.xyz';
515+
case 'corn':
516+
return 'https://maizenet-rpc.usecorn.com';
517+
case 'corn-testnet':
518+
return 'https://testnet-rpc.usecorn.com';
507519
default:
508520
throw new Error(`Unknown network: ${network}`);
509521
}

0 commit comments

Comments
 (0)