@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
23 lines (22 loc) • 547 B
YAML
specVersion: 0.0.1
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: DataSource
source:
address: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
abi: ExampleContract
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./mapping.ts
entities:
- ExampleEntity
abis:
- name: ExampleContract
file: ./Abi.json
eventHandlers:
- event: ExampleEvent(string)
handler: handleExampleEvent