mirror of https://github.com/dap-ps/graph.git
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
specVersion: 0.0.1
|
|
schema:
|
|
file: ./schema.graphql
|
|
dataSources:
|
|
- kind: ethereum/contract
|
|
name: Contract
|
|
network: mainnet
|
|
source:
|
|
address: "0x5bCF2767F86f14eDd82053bfBfd5069F68C2C5F8"
|
|
abi: Contract
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.2
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- DAppCreated
|
|
- Upvote
|
|
- Downvote
|
|
- Withdraw
|
|
- MetadataUpdated
|
|
- CeilingUpdated
|
|
abis:
|
|
- name: Contract
|
|
file: ./abis/Contract.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
|