graph/subgraph.yaml

43 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2020-02-14 12:05:25 +00:00
specVersion: 0.0.2
description: Open, economic ranking for Ethereum
repository: https://github.com/dap-ps/graph
2020-02-14 11:05:08 +00:00
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
2020-02-14 12:05:25 +00:00
name: Discover
2020-02-14 11:05:08 +00:00
network: mainnet
source:
address: "0x5bCF2767F86f14eDd82053bfBfd5069F68C2C5F8"
2020-02-14 12:05:25 +00:00
abi: Discover
startBlock: 8302637
2020-02-14 11:05:08 +00:00
mapping:
kind: ethereum/events
2020-02-14 12:05:25 +00:00
apiVersion: 0.0.3
2020-02-14 11:05:08 +00:00
language: wasm/assemblyscript
entities:
2020-02-14 12:05:25 +00:00
- DappMeta
# - DAppCreated
# - Upvote
# - Downvote
# - Withdraw
# - MetadataUpdated
# - CeilingUpdated
2020-02-14 11:05:08 +00:00
abis:
2020-02-14 12:05:25 +00:00
- name: Discover
file: ./abis/Discover.json
2020-02-14 11:05:08 +00:00
eventHandlers:
- event: DAppCreated(indexed bytes32,uint256)
handler: handleDAppCreated
2020-02-14 12:05:25 +00:00
# - 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
2020-02-14 11:05:08 +00:00
file: ./src/mapping.ts