@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
60 lines (58 loc) • 1.44 kB
YAML
specVersion: 0.0.1
repository: https://github.com/graphprotocol/test-subgraph
description: Test subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ExampleSubgraph
source:
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
templates:
- kind: ethereum/contract
name: ExampleSubgraph
source:
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
- kind: ethereum/contract
name: ExampleSubgraph
source:
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