Skip to content

Commit

Permalink
Add new chains: abstract-testnet, corn and corn-testnet (#1774)
Browse files Browse the repository at this point in the history
* block explorers and public rpcs for new chains

* rename testnets

---------

Co-authored-by: Ali Kim <alikim@gmail.com>
Co-authored-by: YaroShkvorets <shkvorets@gmail.com>
  • Loading branch information
3 people authored Nov 27, 2024
1 parent 51453c2 commit 5d9f0c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-bottles-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

Add new chains: `abstract-testnet`, `corn` and `corn-testnet`
12 changes: 12 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return 'https://unichain-sepolia.blockscout.com/api';
case 'lens-testnet':
return 'https://block-explorer-api.testnet.lens.dev/api';
case 'abstract-sepolia':
return 'https://block-explorer-api.testnet.abs.xyz/api';
case 'corn':
return 'https://maizenet-explorer.usecorn.com/api';
case 'corn-sepolia':
return 'https://testnet-explorer.usecorn.com/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -510,6 +516,12 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://sepolia.unichain.org';
case 'lens-testnet':
return 'https://api.staging.lens.zksync.dev';
case 'abstract-sepolia':
return 'https://api.testnet.abs.xyz';
case 'corn':
return 'https://maizenet-rpc.usecorn.com';
case 'corn-sepolia':
return 'https://testnet-rpc.usecorn.com';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 5d9f0c9

Please sign in to comment.