graph/subgraph.yaml

43 lines
1.3 KiB
YAML

specVersion: 0.0.2
description: Open, economic ranking for Ethereum
repository: https://github.com/dap-ps/graph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Discover
network: mainnet
source:
address: "0x5bCF2767F86f14eDd82053bfBfd5069F68C2C5F8"
abi: Discover
startBlock: 8302637
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- DappMeta
# - DAppCreated
# - Upvote
# - Downvote
# - Withdraw
# - MetadataUpdated
# - CeilingUpdated
abis:
- name: Discover
file: ./abis/Discover.json
eventHandlers:
- event: DAppCreated(indexed bytes32,uint256)
handler: handleDAppCreated
# - event: Upvote(indexed bytes32,uint256)
# handler: handleUpvote
# - event: Downvote(indexed bytes32,uint256)
# handler: handleDownvote
# - event: Withdraw(indexed bytes32,uint256)
# handler: handleWithdraw
# - event: MetadataUpdated(indexed bytes32)
# handler: handleMetadataUpdated
# - event: CeilingUpdated(uint256,uint256)
# handler: handleCeilingUpdated
file: ./src/mapping.ts