mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
27 lines
720 B
YAML
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
|