-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
38 lines (37 loc) · 1.2 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
specVersion: 0.0.2
description: Gitcoindelegates
repository: https://github.com/fishbiscuit/GTC
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GTC
network: mainnet
source:
address: "0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F"
abi: GTC
startBlock: 12422079
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- DelegateChanged
- DelegateVotesChanged
abis:
- name: GTC
file: ./abis/GTC.json
eventHandlers:
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: GTCDistChanged(address,address)
handler: handleGTCDistChanged
- event: MinterChanged(address,address)
handler: handleMinterChanged
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts