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}`); }