Swap-Aggregator-Subgraph/node_modules/@graphprotocol/graph-cli/examples/example-subgraph/subgraph.yaml
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

27 lines
720 B
YAML

specVersion: 0.0.2
description: "example of a subgraph"
repository: https://github.com/graphprotocol/graph-cli.git
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ExampleSubgraph
network: mainnet
source:
address: '0x22843e74c59580b3eaf6c233fa67d8b7c561a835'
abi: ExampleContract
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- ExampleEntity
- OtherEntity
abis:
- name: ExampleContract
file: ./abis/ExampleContract.json
eventHandlers:
- event: ExampleEvent(indexed string)
handler: handleExampleEvent