Skip to content

Commit 6b23683

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

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
@@ -344,6 +344,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
344344
return 'https://rootstock-testnet.blockscout.com/api';
345345
case 'unichain-testnet':
346346
return 'https://unichain-sepolia.blockscout.com/api';
347+
case 'lens-testnet':
348+
return 'https://block-explorer-api.testnet.lens.dev/api';
347349
default:
348350
return `https://api-${network}.etherscan.io/api`;
349351
}
@@ -500,6 +502,8 @@ const getPublicRPCEndpoint = (network: string) => {
500502
return 'https://public-en.kairos.node.kaia.io';
501503
case 'unichain-testnet':
502504
return 'https://sepolia.unichain.org';
505+
case 'lens-testnet':
506+
return 'https://api.staging.lens.zksync.dev';
503507
default:
504508
throw new Error(`Unknown network: ${network}`);
505509
}

0 commit comments

Comments
 (0)