-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph-matic.yaml
380 lines (380 loc) · 10.3 KB
/
subgraph-matic.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
specVersion: 0.0.3
description: Liquidity Pool Balances for an Address
repository: https://github.com/apyvision/amm_lp_share_subgraph
schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: StablePoolFactory
network: matic
source:
address: "0xc66Ba2B6595D3613CCab350C886aCE23866EDe24"
abi: StablePoolFactory
startBlock: 16138680
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/balancerv2/poolFactory.ts
entities:
- Balancer
- Pool
abis:
- name: StablePoolFactory
file: ./abis/balancerv2/StablePoolFactory.json
- name: StablePool
file: ./abis/balancerv2/StablePool.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewStablePool
- kind: ethereum/contract
name: WeightedPoolFactory
network: matic
source:
address: "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9"
abi: WeightedPoolFactory
startBlock: 15832998
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/balancerv2/poolFactory.ts
entities:
- Balancer
- Pool
abis:
- name: Vault
file: ./abis/balancerv2/Vault.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPoolFactory
file: ./abis/balancerv2/WeightedPoolFactory.json
- name: WeightedPool
file: ./abis/balancerv2/WeightedPool.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewWeightedPool
- kind: ethereum/contract
name: DmmFactory
network: matic
source:
address: '0x5f1fe642060b5b9658c15721ea22e982643c095c'
abi: DmmFactory
startBlock: 15968294 # contract creation block
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/kyber/factory.ts
entities: # defines which entities are written to stores
- Pair
- Token
abis:
- name: DmmFactory
file: ./abis/kyber/DmmFactory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PoolCreated(indexed address,indexed address,address,uint32,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: DfynFactory
network: matic
source:
address: '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B'
abi: Factory
startBlock: 5436831
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/dfyn/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/uniswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: ElkFactory
network: matic
source:
address: '0xE3BD06c7ac7E1CeB17BdD2E5BA83E40D1515AF2a'
abi: Factory
startBlock: 13103735
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/elk/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/uniswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: QuickswapFactory
network: matic
source:
address: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32'
abi: Factory
startBlock: 4931780
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/quickswap/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/uniswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: SushiswapFactory
network: matic
source:
address: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4'
abi: Factory
startBlock: 11333218
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/sushiswap/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/uniswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: ComethFactory
network: matic
source:
address: '0x800b052609c355cA8103E06F022aA30647eAd60a'
abi: Factory
startBlock: 11633169
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/cometh/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/uniswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
templates:
- kind: ethereum/contract
name: StablePool
network: matic
source:
abi: StablePool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/balancerv2/mapping.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: StablePool
file: ./abis/balancerv2/StablePool.json
- name: BalancerPoolToken
file: ./abis/balancerv2/BalancerPoolToken.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferStable
- kind: ethereum/contract
name: WeightedPool
network: matic
source:
abi: WeightedPool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/balancerv2/mapping.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: WeightedPool
file: ./abis/balancerv2/WeightedPool.json
- name: BalancerPoolToken
file: ./abis/balancerv2/BalancerPoolToken.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferWeighted
- kind: ethereum/contract
name: KyberPool
network: matic
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/kyber/mapping.ts
entities:
- Pool
- Token
abis:
- name: Pool
file: ./abis/kyber/DmmPool.json
- name: Factory
file: ./abis/kyber/DmmFactory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: DfynPair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/dfyn/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/uniswap/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: ElkPair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/elk/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/uniswap/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: QuickswapPair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/quickswap/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/uniswap/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: SushiswapPair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/sushiswap/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/uniswap/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: ComethPair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/cometh/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/uniswap/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer