-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
143 lines (142 loc) · 4.58 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
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
specVersion: 0.0.2
description: Graph for Yield Farming and Governance of the DAO
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Token
network: mainnet
source:
address: "0x618679dF9EfCd19694BB1daa8D00718Eacfa2883"
abi: Token
startBlock: 12502616
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: mainnet
source:
address: "0x2d615795a8bdb804541C69798F13331126BA0c09"
abi: Staking
startBlock: 12503000
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: mainnet
source:
address: "0x7b86600211e62B597E7CEA03476b9EFEb6872962"
abi: Kernel
startBlock: 12502765
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: mainnet
source:
address: "0xa8047C2a86D5A188B0e15C3C10E2bc144cB272C2"
abi: Governance
startBlock: 12502576
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: mainnet
source:
address: "0x2400bf0a2b50882505480a41Be3c21e878cb9c45"
abi: MerkleDistributor
startBlock: 12832990
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