Swap-Aggregator-Subgraph/node_modules/@graphprotocol/graph-cli/examples/example-subgraph/dist/subgraph.yaml
2022-07-03 07:27:35 +05:30

27 lines
752 B
YAML

specVersion: 0.0.1
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: ExampleSubgraph/ExampleSubgraph.wasm
entities:
- ExampleEntity
- OtherEntity
abis:
- name: ExampleContract
file: ExampleSubgraph/abis/ExampleContract.json
eventHandlers:
- event: ExampleEvent(indexed string)
handler: handleExampleEvent