diff --git a/.changeset/swift-bottles-trade.md b/.changeset/swift-bottles-trade.md new file mode 100644 index 00000000..26b75ea3 --- /dev/null +++ b/.changeset/swift-bottles-trade.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': patch +--- + +Add new chains: `abstract-testnet`, `corn` and `corn-testnet` diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index b30dcb6d..5ef8a7cd 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -346,6 +346,12 @@ const getEtherscanLikeAPIUrl = (network: string) => { return 'https://unichain-sepolia.blockscout.com/api'; case 'lens-testnet': return 'https://block-explorer-api.testnet.lens.dev/api'; + case 'abstract-sepolia': + return 'https://block-explorer-api.testnet.abs.xyz/api'; + case 'corn': + return 'https://maizenet-explorer.usecorn.com/api'; + case 'corn-sepolia': + return 'https://testnet-explorer.usecorn.com/api'; default: return `https://api-${network}.etherscan.io/api`; } @@ -504,6 +510,12 @@ const getPublicRPCEndpoint = (network: string) => { return 'https://sepolia.unichain.org'; case 'lens-testnet': return 'https://api.staging.lens.zksync.dev'; + case 'abstract-sepolia': + return 'https://api.testnet.abs.xyz'; + case 'corn': + return 'https://maizenet-rpc.usecorn.com'; + case 'corn-sepolia': + return 'https://testnet-rpc.usecorn.com'; default: throw new Error(`Unknown network: ${network}`); }