Skip to content

Commit 121843e

Browse files
shiyasmohdsaihaj
andauthored
fix: added Etherlink testnest ABI fetching API URL (#1623)
* fix: added Etherlink testnest abi fetching API URL * fix: added Public RPC endpoint for etherlink-testnet * Apply suggestions from code review --------- Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent b48c3ee commit 121843e

File tree

3 files changed

+5926
-0
lines changed

3 files changed

+5926
-0
lines changed

.changeset/hip-spoons-promise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
cli: added etherscan API URL & public RPC endpoint for etherlink-testnet

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

+4
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
235235
return `https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan/api`;
236236
case 'blast-mainnet':
237237
return `https://api.routescan.io/v2/network/mainnet/evm/81457/etherscan/api`;
238+
case 'etherlink-testnet':
239+
return `https://testnet-explorer.etherlink.com/api`;
238240
default:
239241
return `https://api-${network}.etherscan.io/api`;
240242
}
@@ -329,6 +331,8 @@ const getPublicRPCEndpoint = (network: string) => {
329331
return 'https://rpc.blast.io';
330332
case 'optimism-sepolia':
331333
return 'https://sepolia.optimism.io';
334+
case 'etherlink-testnet':
335+
return `https://node.ghostnet.etherlink.com`;
332336
default:
333337
throw new Error(`Unknown network: ${network}`);
334338
}

0 commit comments

Comments
 (0)