Skip to content

Commit

Permalink
fix: linea ABI and start block issue (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj authored Feb 2, 2024
1 parent 05d5a30 commit bc61adb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-buckets-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

fix line and linea-goerli API URLs
8 changes: 8 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return `https://api-sepolia.scrollscan.dev/api`;
case 'scroll':
return `https://blockscout.scroll.io/api`;
case 'linea':
return `https://api.lineascan.build/api`;
case 'linea-goerli':
return `https://api.linea-goerli.build/api`;
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -305,6 +309,10 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://rpc.ankr.com/scroll_sepolia_testnet';
case 'scroll':
return 'https://rpc.ankr.com/scroll';
case 'linea':
return 'https://linea-mainnet.public.blastapi.io';
case 'linea-goerli':
return 'https://linea-goerli.public.blastapi.io';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc61adb

Please sign in to comment.