Skip to content

Commit bc61adb

Browse files
authored
fix: linea ABI and start block issue (#1579)
1 parent 05d5a30 commit bc61adb

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

.changeset/young-buckets-divide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix line and linea-goerli API URLs

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

+8
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ const getEtherscanLikeAPIUrl = (network: string) => {
223223
return `https://api-sepolia.scrollscan.dev/api`;
224224
case 'scroll':
225225
return `https://blockscout.scroll.io/api`;
226+
case 'linea':
227+
return `https://api.lineascan.build/api`;
228+
case 'linea-goerli':
229+
return `https://api.linea-goerli.build/api`;
226230
default:
227231
return `https://api-${network}.etherscan.io/api`;
228232
}
@@ -305,6 +309,10 @@ const getPublicRPCEndpoint = (network: string) => {
305309
return 'https://rpc.ankr.com/scroll_sepolia_testnet';
306310
case 'scroll':
307311
return 'https://rpc.ankr.com/scroll';
312+
case 'linea':
313+
return 'https://linea-mainnet.public.blastapi.io';
314+
case 'linea-goerli':
315+
return 'https://linea-goerli.public.blastapi.io';
308316
default:
309317
throw new Error(`Unknown network: ${network}`);
310318
}

pnpm-lock.yaml

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)