@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
23 lines (22 loc) • 582 B
YAML
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ExampleSubgraph
source:
address: '22843e74c59580b3eaf6c233fa67d8b7c561a835'
abi: ExampleContract
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./mapping.ts
entities:
- ExampleEntity
abis:
- name: ExampleContract
file: ./Abi.json
callHandlers:
- function: doSomething(uint256,(bytes32,bytes32,uint256),bool)
handler: handleDoSomething