-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
272 lines (272 loc) · 8.25 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
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
specVersion: 0.0.5
description: Subgraph for the Kōyō Finance exchange on the Boba mainnet.
repository: https://github.com/koyo-finance/exchange-subgraph
schema:
file: ./schema.graphql
dataSources:
- name: Vault
kind: ethereum/contract
network: boba
source:
abi: Vault
address: "0x2A4409Cc7d2AE7ca1E3D915337D1B6Ba2350D6a3"
startBlock: 668337
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/core.ts
entities:
- Koyo
- Account
- AccountInternalBalance
- TokenSnapshot
- KoyoSnapshot
abis:
- name: Vault
file: ./abis/Vault.abi
- name: ERC20
file: ./abis/ERC20.abi
- name: OracleWeightedPoolFactory
file: ./abis/OracleWeightedPoolFactory.abi
- name: OracleWeightedPool
file: ./abis/OracleWeightedPool.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
eventHandlers:
- event: Swap(indexed bytes32,indexed address,indexed address,uint256,uint256)
handler: handleSwapEvent
- event: PoolBalanceChanged(indexed bytes32,indexed
address,address[],int256[],uint256[])
handler: handleBalanceChange
- event: InternalBalanceChanged(indexed address,indexed address,int256)
handler: handleInternalBalanceChange
- name: GaugeController
kind: ethereum/contract
network: boba
source:
abi: GaugeController
address: "0xe8c8dbCcE7450B1100A5e416525B2F6C5F7eaDba"
startBlock: 653581
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/gauges/controller.ts
abis:
- name: GaugeController
file: ./abis/GaugeController.abi
- name: Gauge
file: ./abis/Gauge.abi
- name: ERC20
file: ./abis/ERC20.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
entities:
- Gauge
- GaugeType
- GaugeWeight
- GaugeWeightVote
eventHandlers:
- event: AddType(string,int128)
handler: handleAddType
- event: NewGauge(address,int128,uint256)
handler: handleNewGauge
- event: NewGaugeWeight(address,uint256,uint256,uint256)
handler: handleNewGaugeWeight
- event: NewTypeWeight(int128,uint256,uint256,uint256)
handler: handleNewTypeWeight
- event: VoteForGauge(uint256,address,address,uint256)
handler: handleVoteForGauge
- name: OracleWeightedPoolFactory
kind: ethereum/contract
network: boba
source:
abi: OracleWeightedPoolFactory
address: "0x06f607EC266BB98bcb9Bae402D61Ab5E008ab018"
startBlock: 673576
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/oracleWeightedFactory.ts
entities:
- Koyo
- Pool
abis:
- name: Vault
file: ./abis/Vault.abi
- name: ERC20
file: ./abis/ERC20.abi
- name: OracleWeightedPoolFactory
file: ./abis/OracleWeightedPoolFactory.abi
- name: OracleWeightedPool
file: ./abis/OracleWeightedPool.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewOracleWeightedPool
- name: WeightedPoolFactory
kind: ethereum/contract
network: boba
source:
abi: WeightedPoolFactory
address: "0xEa34bb7F24F3BB120DAF64Cd1BC9e958FFF9ED0c"
startBlock: 673848
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/weightedFactory.ts
entities:
- Koyo
- Pool
abis:
- name: Vault
file: ./abis/Vault.abi
- name: ERC20
file: ./abis/ERC20.abi
- name: WeightedPoolFactory
file: ./abis/WeightedPoolFactory.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
- name: OracleWeightedPool
file: ./abis/OracleWeightedPool.abi
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewWeightedPool
- name: StablePoolFactory
kind: ethereum/contract
network: boba
source:
abi: StablePoolFactory
address: "0xb4455B572b4dBF39d76a10de530988803C13d854"
startBlock: 684091
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/stableFactory.ts
entities:
- Balancer
- Pool
abis:
- name: Vault
file: ./abis/Vault.abi
- name: ERC20
file: ./abis/ERC20.abi
- name: StablePoolFactory
file: ./abis/StablePoolFactory.abi
- name: StablePool
file: ./abis/StablePool.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewStablePool
templates:
- name: Gauge
kind: ethereum/contract
network: boba
source:
abi: Gauge
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/gauges/gauge.ts
entities: []
abis:
- name: Gauge
file: ./abis/Gauge.abi
eventHandlers:
- event: Deposit(indexed address,uint256)
handler: handleDeposit
- event: UpdateLiquidityLimit(address,uint256,uint256,uint256,uint256)
handler: handleUpdateLiquidityLimit
- event: Withdraw(indexed address,uint256)
handler: handleWithdraw
- name: OracleWeightedPool
kind: ethereum/contract
network: boba
source:
abi: OracleWeightedPool
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/oracleWeightedPool.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: OracleWeightedPool
file: ./abis/OracleWeightedPool.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.abi
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SwapFeePercentageChanged(uint256)
handler: handleSwapFeePercentageChange
- name: WeightedPool
kind: ethereum/contract
network: boba
source:
abi: WeightedPool
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/weightedPool.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: WeightedPool
file: ./abis/WeightedPool.abi
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.abi
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SwapFeePercentageChanged(uint256)
handler: handleSwapFeePercentageChange
- name: StablePool
kind: ethereum/contract
network: boba
source:
abi: StablePool
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault/pools/stablePool.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: StablePool
file: ./abis/StablePool.abi
- name: WeightedPool
file: ./abis/WeightedPool.abi
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.abi
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SwapFeePercentageChanged(uint256)
handler: handleSwapFeePercentageChange
- event: AmpUpdateStarted(uint256,uint256,uint256,uint256)
handler: handleAmpUpdateStarted
- event: AmpUpdateStopped(uint256)
handler: handleAmpUpdateStopped