## Temporary graph node for gentry Graph node - https://8000-muskbuster-graphnode-56330i6osyt.ws-us115.gitpod.io/ IPFS - https://5001-muskbuster-graphnode-56330i6osyt.ws-us115.gitpod.io/ ## Example Deployment guide - Clone the [repository](https://github.com/graphprotocol/graph-tooling/tree/main/examples/ethereum-gravatar) by graph protocol - Install dependencies by running `yarn` then `yarn global add @graphprotocol/graph-cli` - modify the package.json to this ``` { "name": "example-ethereum-gravatar", "version": "0.1.0", "repository": { "type": "git", "url": "https://github.com/graphprotocol/graph-tooling", "directory": "examples/ethereum-gravatar" }, "license": "MIT", "private": true, "scripts": { "build": "graph build", "build:contract": "hardhat compile", "codegen": "graph codegen", "create": "graph create example --node https://api.thegraph.com/deploy/", "create-local": "graph create example --node https://8000-muskbuster-graphnode-56330i6osyt.ws-us115.gitpod.io/deploy/", "deploy": "graph deploy example --ipfs https://5001-muskbuster-graphnode-56330i6osyt.ws-us115.gitpod.io/ipfs/ --node https://8000-muskbuster-graphnode-56330i6osyt.ws-us115.gitpod.io/deploy/", "deploy-local": "graph deploy example --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020" }, "devDependencies": { "@graphprotocol/graph-cli": "0.71.2", "@graphprotocol/graph-ts": "0.35.1", "@nomicfoundation/hardhat-toolbox": "^2.0.2", "hardhat": "^2.13.1" } } ``` - run yarn build:contract - Deploy the contract to gentry testnet - copy the address and paste here ``` specVersion: 0.0.1 description: Gravatar for Ethereum repository: https://github.com/graphprotocol/example-subgraph schema: file: ./schema.graphql dataSources: - kind: ethereum name: Gravity network: inco-gentry-1 source: address: 'address' abi: Gravity startBlock: 132074 mapping: kind: ethereum/events apiVersion: 0.0.6 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 ``` - run `yarn create-local` - then `yarn deploy` - This returns the deployment URL for your subgraph which can be used in your application