Skip to content

Instantly share code, notes, and snippets.

@iandjx
Created July 19, 2023 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iandjx/f2a56ba0e9bccf20554818386391660b to your computer and use it in GitHub Desktop.
Save iandjx/f2a56ba0e9bccf20554818386391660b to your computer and use it in GitHub Desktop.
specVersion: 0.0.5
description: Graph for Greeter contracts
repository: https://github.com/hashgraph/hedera-subgraph-example
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Greeting
network: localhost
source:
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
abi: Greeting
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Greeting
abis:
- name: Greeting
file: ./abis/Greeting.json
eventHandlers:
- event: GreetingChanged(string,address)
handler: handleGreetingChanged
file: ./src/mappings.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment