-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.goerli.yaml
216 lines (211 loc) · 6.78 KB
/
subgraph.goerli.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Steward
network: goerli
source:
address: "0x0C00CFE8EbB34fE7C31d4915a43Cde211e9F0F3B"
abi: Steward
startBlock: 1521810
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- LogBuy
- LogPriceChange
- LogForeclosure
- LogCollection
- LogRemainingDepositUpdate
- AddToken
- Buy
- PriceChange
- Foreclosure
- RemainingDepositUpdate
- CollectPatronage
- CollectLoyalty
- AddTokenV3
- UpgradeToV3
abis:
- name: Steward
file: ./abis/Steward.json
- name: Token
file: ./abis/Token.json
eventHandlers:
# v0 events
- event: LogBuy(indexed address,indexed uint256)
handler: handleLogBuy
- event: LogPriceChange(indexed uint256)
handler: handleLogPriceChange
- event: LogForeclosure(indexed address)
handler: handleLogForeclosure
- event: LogCollection(indexed uint256)
handler: handleLogCollection
- event: LogRemainingDepositUpdate(indexed address,indexed uint256)
handler: handleLogRemainingDepositUpdate
# v0 and v1 events
- event: AddToken(indexed uint256,uint256)
handler: handleAddToken
# v1 and v2 events
- event: Buy(indexed uint256,indexed address,uint256)
handler: handleBuy
- event: PriceChange(indexed uint256,uint256)
handler: handlePriceChange
- event: Foreclosure(indexed address)
handler: handleForeclosure
- event: RemainingDepositUpdate(indexed address,uint256)
handler: handleRemainingDepositUpdate
- event: CollectPatronage(indexed uint256,indexed address,uint256,uint256)
handler: handleCollectPatronage
# v2 events
- event: AddToken(indexed uint256,uint256,uint256)
handler: handleAddTokenV2
- event: CollectLoyalty(indexed uint256,indexed address,uint256)
handler: handleCollectLoyalty
# v3 events
- event: AddTokenV3(indexed uint256,uint256,uint256)
handler: handleAddTokenV3
- event: UpgradeToV3()
handler: handleUpgradeToV3
file: ./src/steward.ts
- kind: ethereum/contract
name: Token
network: goerli
source:
address: "0x6Da7DD22A9c1B6bC7b2Ba9A540A37EC786E30eA7"
abi: Token
startBlock: 1521812
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- MinterAdded
- MinterRemoved
- Transfer
- Approval
- ApprovalForAll
abis:
- name: Token
file: ./abis/Token.json
eventHandlers:
- event: MinterAdded(indexed address)
handler: handleMinterAdded
- event: MinterRemoved(indexed address)
handler: handleMinterRemoved
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
file: ./src/token.ts
- kind: ethereum/contract
name: VitalikStewardLegacy
network: goerli
source:
address: "0xdC0884f78b17913d4EE7bfcd046e13407FFAb56B"
abi: VitalikStewardLegacy
startBlock: 800782
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- LogBuy
- LogPriceChange
- LogForeclosure
- LogCollection
abis:
- name: VitalikStewardLegacy
file: ./abis/VitalikStewardLegacy.json
eventHandlers:
- event: LogBuy(indexed address,indexed uint256)
handler: handleLogBuy
- event: LogPriceChange(indexed uint256)
handler: handleLogPriceChange
- event: LogForeclosure(indexed address)
handler: handleLogForeclosure
- event: LogCollection(indexed uint256)
handler: handleLogCollection
file: ./src/vitalikStewardLegacy.ts
- kind: ethereum/contract
name: VitalikTokenLegacy
network: goerli
source:
address: "0x64Fde89bae3e52b3b853A0ba8F8184D72a398F5b"
abi: VitalikTokenLegacy
startBlock: 800781
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transfer
- Approval
- ApprovalForAll
abis:
- name: VitalikTokenLegacy
file: ./abis/VitalikTokenLegacy.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
# callHandlers:
# - function: setup()
# handler: handleSetupVitalk
file: ./src/vitalikTokenLegacy.ts
- kind: ethereum/contract
name: LoyaltyToken
network: goerli
source:
address: "0xd7D8c42Ab5B83aA3D4114e5297989DC27BDfb715"
abi: LoyaltyToken
startBlock: 2426452
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: LoyaltyToken
file: ./abis/LoyaltyToken.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleTransfer
# - event: MinterAdded(indexed address)
# - event: MinterRemoved(indexed address)
# - event: Transfer(indexed address,indexed address,uint256)
# callHandlers:
file: ./src/LoyaltyToken.ts
- kind: ethereum/contract
name: Dao
network: goerli
source:
address: "0x316C5f8867B21923db8A0Bd6890A6BFE0Ab6F9d2"
abi: Dao
startBlock: 2653890
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: Dao
file: ./abis/Dao.json
eventHandlers:
- event: LogVote(indexed uint256,indexed uint256,uint256,uint256,indexed address)
handler: handleLogVote
- event: LogFundsDistributed(indexed uint256,indexed uint256,uint256,indexed uint256,uint256,uint256)
handler: handleLogFundsDistributed
# - event: MinterRemoved(indexed address)
# - event: Transfer(indexed address,indexed address,uint256)
# callHandlers:
file: ./src/dao.ts