-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
218 lines (213 loc) · 6.93 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
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
217
218
specVersion: 0.0.2
description: A subgraph for wildcards.world smart contracts.
repository: https://github.com/wildcards/subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Steward
network: mainnet
source:
address: "0x6D47CF86F6A490c6410fC082Fd1Ad29CF61492d0"
abi: Steward
startBlock: 8752677
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 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: mainnet
source:
address: "0x6aD0f855c97eb80665F2D0C7d8204895e052C373"
abi: Token
startBlock: 8752679
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: mainnet
source:
address: "0x803445597c2a42114A527b0b6191936bC61b492f"
abi: VitalikStewardLegacy
startBlock: 8041107
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: mainnet
source:
address: "0x231570F1ea43DE41adb3Ee04188CE18c8d10dEED"
abi: VitalikTokenLegacy
startBlock: 8041105
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: mainnet
source:
address: "0x773c75c2277eD3e402BDEfd28Ec3b51A3AfbD8a4"
abi: LoyaltyToken
startBlock: 9766767
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: mainnet
source:
address: "0x03e051b7e42480Cc9D54F1caB525D2Fea2cF4d83" #this is wrong doesn't exist yet
abi: Dao
startBlock: 10012315
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