From 6b2368367088a7739cef35ac20e24a03884009fe Mon Sep 17 00:00:00 2001 From: AK Date: Fri, 8 Nov 2024 09:58:36 -0500 Subject: [PATCH] Add new chain: Lens testnet (#1763) * new chain urls * Create lovely-grapes-relate.md * Fix lint and improve changeset --------- Co-authored-by: Etienne Donneger --- .changeset/lovely-grapes-relate.md | 5 +++++ packages/cli/src/command-helpers/abi.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/lovely-grapes-relate.md diff --git a/.changeset/lovely-grapes-relate.md b/.changeset/lovely-grapes-relate.md new file mode 100644 index 00000000..f14dcb4d --- /dev/null +++ b/.changeset/lovely-grapes-relate.md @@ -0,0 +1,5 @@ +--- +"@graphprotocol/graph-cli": minor +--- + +Add new chain: Lens testnet diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index 281ee1a0..bce9e117 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -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`; } @@ -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}`); }