-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
144 lines (143 loc) · 4.54 KB
/
subgraph.template.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
specVersion: 0.0.2
description: Graph for Yield Farming and Governance of the DAO
repository: https://github.com/UniverseXYZ/DAO-Graph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Token
network: {{network}}
source:
address: '{{Token}}'
abi: Token
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Overview
abis:
- name: Token
file: ./abis/Token.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mappings.ts
- kind: ethereum/contract
name: Staking
network: {{network}}
source:
address: '{{Staking}}'
abi: Staking
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transaction
- TransactionCount
- Voter
abis:
- name: Staking
file: ./abis/Staking.json
eventHandlers:
- event: Deposit(indexed address,indexed address,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,indexed address,uint256)
handler: handleWithdraw
file: ./src/staking/mapping.ts
- kind: ethereum/contract
name: Kernel
network: {{network}}
source:
address: '{{Kernel}}'
abi: Kernel
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transaction
- TransactionCount
- Voter
abis:
- name: Kernel
file: ./abis/KernelFacet.json
eventHandlers:
- event: Deposit(indexed address,uint256,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,uint256,uint256)
handler: handleWithdraw
- event: Lock(indexed address,uint256)
handler: handleLock
- event: Delegate(indexed address,indexed address)
handler: handleDelegate
- event: DelegatedPowerIncreased(indexed address,indexed address,uint256,uint256)
handler: handleDelegatedPowerIncreased
- event: DelegatedPowerDecreased(indexed address,indexed address,uint256,uint256)
handler: handleDelegatedPowerDecreased
file: ./src/mappings.ts
- kind: ethereum/contract
name: Governance
network: {{network}}
source:
address: '{{Governance}}'
abi: Governance
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Proposal
- ProposalStateEvent
- Voter
abis:
- name: Governance
file: ./abis/Governance.json
eventHandlers:
- event: ProposalCreated(indexed uint256)
handler: handleProposalCreated
- event: Vote(indexed uint256,indexed address,bool,uint256)
handler: handleVote
- event: VoteCanceled(indexed uint256,indexed address)
handler: handleVoteCanceled
- event: ProposalQueued(indexed uint256,address,uint256)
handler: handleProposalQueued
- event: ProposalExecuted(indexed uint256,address)
handler: handleProposalExecuted
- event: ProposalCanceled(indexed uint256,address)
handler: handleProposalCanceled
- event: AbrogationProposalStarted(indexed uint256,address)
handler: handleAbrogationProposalStarted
- event: AbrogationProposalExecuted(indexed uint256,address)
handler: handleAbrogationProposalExecuted
- event: AbrogationProposalVote(indexed uint256,indexed address,bool,uint256)
handler: handleAbrogationProposalVote
- event: AbrogationProposalVoteCancelled(indexed uint256,indexed address)
handler: handleAbrogationProposalVoteCancelled
file: ./src/mappings.ts
- kind: ethereum/contract
name: MerkleDistributor
network: {{network}}
source:
address: "{{MerkleDistributor}}"
abi: MerkleDistributor
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Claim
- Overview
abis:
- name: MerkleDistributor
file: ./abis/MerkleDistributor.json
eventHandlers:
- event: Claimed(uint256,address,uint256,uint256)
handler: handleClaim
file: ./src/mappings.ts