Skip to content

Commit

Permalink
Add new chain: Lens testnet (graphprotocol#1763)
Browse files Browse the repository at this point in the history
* new chain urls

* Create lovely-grapes-relate.md

* Fix lint and improve changeset

---------

Co-authored-by: Etienne Donneger <etienne@pinax.network>
  • Loading branch information
alinobrasil and 0237h committed Nov 8, 2024
1 parent c758f57 commit 6b23683
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-grapes-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

Add new chain: Lens testnet
4 changes: 4 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return 'https://rootstock-testnet.blockscout.com/api';
case 'unichain-testnet':
return 'https://unichain-sepolia.blockscout.com/api';
case 'lens-testnet':
return 'https://block-explorer-api.testnet.lens.dev/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -500,6 +502,8 @@ const getPublicRPCEndpoint = (network: string) => {
return 'https://public-en.kairos.node.kaia.io';
case 'unichain-testnet':
return 'https://sepolia.unichain.org';
case 'lens-testnet':
return 'https://api.staging.lens.zksync.dev';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 6b23683

Please sign in to comment.