Skip to content

Commit d43b219

Browse files
alinobrasil0237h
andauthored
block explorers and public rpcs for new chains (#1772)
* Add new chains: `abstract-testnet`, `corn` and `corn-testnet` --------- Co-authored-by: Etienne Donneger <[email protected]>
1 parent 93271b0 commit d43b219

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/swift-bottles-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
Add new chains: `abstract-testnet`, `corn` and `corn-testnet`

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ const getEtherscanLikeAPIUrl = (network: string) => {
352352
return 'https://unichain-sepolia.blockscout.com/api';
353353
case 'lens-testnet':
354354
return 'https://block-explorer-api.testnet.lens.dev/api';
355+
case 'abstract-testnet':
356+
return 'https://block-explorer-api.testnet.abs.xyz/api';
357+
case 'corn':
358+
return 'https://maizenet-explorer.usecorn.com/api';
359+
case 'corn-testnet':
360+
return 'https://testnet-explorer.usecorn.com/api';
355361
default:
356362
return `https://api-${network}.etherscan.io/api`;
357363
}
@@ -510,6 +516,12 @@ const getPublicRPCEndpoint = (network: string) => {
510516
return 'https://sepolia.unichain.org';
511517
case 'lens-testnet':
512518
return 'https://api.staging.lens.zksync.dev';
519+
case 'abstract-testnet':
520+
return 'https://api.testnet.abs.xyz';
521+
case 'corn':
522+
return 'https://maizenet-rpc.usecorn.com';
523+
case 'corn-testnet':
524+
return 'https://testnet-rpc.usecorn.com';
513525
default:
514526
throw new Error(`Unknown network: ${network}`);
515527
}

0 commit comments

Comments
 (0)