Skip to content

Commit 58dbd28

Browse files
alinobrasil0237h
andauthored
Add new chain: Lens testnet (#1763)
* new chain urls * Create lovely-grapes-relate.md * Fix lint and improve changeset --------- Co-authored-by: Etienne Donneger <[email protected]>
1 parent baf36b4 commit 58dbd28

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/lovely-grapes-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
Add new chain: Lens testnet

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
340340
return 'https://rootstock-testnet.blockscout.com/api';
341341
case 'unichain-testnet':
342342
return 'https://unichain-sepolia.blockscout.com/api';
343+
case 'lens-testnet':
344+
return 'https://block-explorer-api.testnet.lens.dev/api';
343345
default:
344346
return `https://api-${network}.etherscan.io/api`;
345347
}
@@ -496,6 +498,8 @@ const getPublicRPCEndpoint = (network: string) => {
496498
return 'https://public-en.kairos.node.kaia.io';
497499
case 'unichain-testnet':
498500
return 'https://sepolia.unichain.org';
501+
case 'lens-testnet':
502+
return 'https://api.staging.lens.zksync.dev';
499503
default:
500504
throw new Error(`Unknown network: ${network}`);
501505
}

0 commit comments

Comments
 (0)