I followed this tutorial on the graph document: https://thegraph.com/docs/quick-start#local-development
However, I got an error message after I run
Failed to deploy to Graph node http://127.0.0.1:8020/: Ethereum network not supported by registrar: mainnet
Is there anything I am missing here?
This is the whole log
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2 Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3 Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4 Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2 ✔ Apply migrations ⚠ Warnings loading subgraph from subgraph.yaml: Warnings in subgraph.yaml: Path: repository The repository is still set to https://github.com/graphprotocol/example-subgraph. Please replace it with a link to your subgraph source code. Path: description The description is still the one from the example subgraph. Please update it to tell users more about your subgraph. ✔ Load subgraph from subgraph.yaml Compile data source: Gravity => build/Gravity/Gravity.wasm ✔ Compile subgraph Copy schema file build/schema.graphql Write subgraph file build/Gravity/abis/Gravity.json Write subgraph manifest build/subgraph.yaml ✔ Write compiled subgraph to build/ Add file to IPFS build/schema.graphql .. QmbSFRGGvHM7Cn8YSjDL41diDMxN4LQUDEMqaa5VVc5sC4 Add file to IPFS build/Gravity/abis/Gravity.json .. QmajZTadknSpgsCWRz9fG6bXFHdpVXPMWpx9yMipz3VtMQ Add file to IPFS build/Gravity/Gravity.wasm .. QmbK8bwncci52cstF3P8Q8i4oGjrMt1pUqdv5Uf1VXqXdb ✔ Upload subgraph to IPFS Build completed: QmYc13fDLwyvTT5crdGWGuFbaN23YxJ8RG8EGNW4Bac24j ✖ Failed to deploy to Graph node http://127.0.0.1:8020/: Ethereum network not supported by registrar: mainnet error Command failed with exit code 1.
Here is my
specVersion: 0.0.2 description: Gravatar for Ethereum repository: https://github.com/graphprotocol/example-subgraph schema: file: ./schema.graphql dataSources: - kind: ethereum/contract name: Gravity network: mainnet source: address: '0x2E645469f354BB4F5c8a05B3b30A929361cf77eC' abi: Gravity mapping: kind: ethereum/events apiVersion: 0.0.4 language: wasm/assemblyscript entities: - Gravatar abis: - name: Gravity file: ./abis/Gravity.json eventHandlers: - event: NewGravatar(uint256,address,string,string) handler: handleNewGravatar - event: UpdatedGravatar(uint256,address,string,string) handler: handleUpdatedGravatar file: ./src/mapping.ts