diff --git a/.changeset/young-buckets-divide.md b/.changeset/young-buckets-divide.md new file mode 100644 index 00000000..249c37e8 --- /dev/null +++ b/.changeset/young-buckets-divide.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': patch +--- + +fix line and linea-goerli API URLs diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index 4bacb322..4b795ad6 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -223,6 +223,10 @@ const getEtherscanLikeAPIUrl = (network: string) => { return `https://api-sepolia.scrollscan.dev/api`; case 'scroll': return `https://blockscout.scroll.io/api`; + case 'linea': + return `https://api.lineascan.build/api`; + case 'linea-goerli': + return `https://api.linea-goerli.build/api`; default: return `https://api-${network}.etherscan.io/api`; } @@ -305,6 +309,10 @@ const getPublicRPCEndpoint = (network: string) => { return 'https://rpc.ankr.com/scroll_sepolia_testnet'; case 'scroll': return 'https://rpc.ankr.com/scroll'; + case 'linea': + return 'https://linea-mainnet.public.blastapi.io'; + case 'linea-goerli': + return 'https://linea-goerli.public.blastapi.io'; default: throw new Error(`Unknown network: ${network}`); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9d5e517..32d09225 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,7 +47,7 @@ importers: examples/arweave-blocks-transactions: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -63,7 +63,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -82,7 +82,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -101,7 +101,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -120,7 +120,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -172,7 +172,7 @@ importers: version: 5.0.4 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -190,7 +190,7 @@ importers: examples/ethereum-gravatar: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -211,7 +211,7 @@ importers: examples/matic-lens-protocol-posts-subgraph: dependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -224,7 +224,7 @@ importers: examples/near-blocks: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -233,7 +233,7 @@ importers: examples/near-receipts: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.32.0 @@ -242,7 +242,7 @@ importers: examples/substreams-powered-subgraph: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.67.1 + specifier: 0.67.2 version: link:../../packages/cli packages/cli: