-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
342 lines (342 loc) · 11.9 KB
/
subgraph.template.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
specVersion: 0.0.5
schema:
file: ./schema.graphql
features:
- nonFatalErrors
graft:
base:
block:
dataSources:
- kind: ethereum
name: MarketFactory
network: arbitrum-one
source:
abi: MarketFactory
address: "0xDaD8A103473dfd47F90168A0E46766ed48e26EC7"
startBlock: 135921706
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Initialized
- InstanceRegistered
- MarketCreated
- OperatorUpdated
- OwnerUpdated
- ParameterUpdated
- Paused
- PauserUpdated
- PendingOwnerUpdated
- Unpaused
abis:
- name: MarketFactory
file: ./abis/MarketFactory.json
eventHandlers:
- event: Initialized(uint256)
handler: handleInitialized
- event: InstanceRegistered(indexed address)
handler: handleInstanceRegistered
- event: MarketCreated(indexed address,(address,address,address))
handler: handleMarketCreated
- event: OperatorUpdated(indexed address,indexed address,bool)
handler: handleOperatorUpdated
- event: OwnerUpdated(indexed address)
handler: handleOwnerUpdated
- event: ParameterUpdated((uint256,uint256,uint256,uint256,uint256,uint256,uint256))
handler: handleParameterUpdated
- event: Paused()
handler: handlePaused
- event: PauserUpdated(indexed address)
handler: handlePauserUpdated
- event: PendingOwnerUpdated(indexed address)
handler: handlePendingOwnerUpdated
- event: Unpaused()
handler: handleUnpaused
file: ./src/market-factory.ts
- kind: ethereum
name: OracleFactory
network: arbitrum-one
source:
abi: OracleFactory
address: "0x8CDa59615C993f925915D3eb4394BAdB3feEF413"
startBlock: 135921387
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CallerAuthorized
- FactoryRegistered
- OracleFactoryInitialized
- OracleFactoryInstanceRegistered
- MaxClaimUpdated
- OracleCreated
- OracleFactoryOwnerUpdated
- OracleFactoryPaused
- OracleFactoryPauserUpdated
- OracleFactoryPendingOwnerUpdated
- OracleFactoryUnpaused
abis:
- name: OracleFactory
file: ./abis/OracleFactory.json
eventHandlers:
- event: CallerAuthorized(address)
handler: handleCallerAuthorized
- event: FactoryRegistered(address)
handler: handleFactoryRegistered
- event: Initialized(uint256)
handler: handleInitialized
- event: InstanceRegistered(indexed address)
handler: handleInstanceRegistered
- event: MaxClaimUpdated(uint256)
handler: handleMaxClaimUpdated
- event: OracleCreated(indexed address,indexed bytes32)
handler: handleOracleCreated
- event: OwnerUpdated(indexed address)
handler: handleOwnerUpdated
- event: Paused()
handler: handlePaused
- event: PauserUpdated(indexed address)
handler: handlePauserUpdated
- event: PendingOwnerUpdated(indexed address)
handler: handlePendingOwnerUpdated
- event: Unpaused()
handler: handleUnpaused
file: ./src/oracle-factory.ts
- kind: ethereum
name: VaultFactory
network: arbitrum-one
source:
abi: VaultFactory
address: "0xad3565680aEcEe27A39249D8c2D55dAc79BE5Ad0"
startBlock: 135921947
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- VaultFactoryInitialized
- VaultFactoryInstanceRegistered
- VaultFactoryOperatorUpdated
- VaultFactoryOwnerUpdated
- VaultFactoryPaused
- VaultFactoryPauserUpdated
- VaultFactoryPendingOwnerUpdated
- VaultFactoryUnpaused
- VaultCreated
abis:
- name: VaultFactory
file: ./abis/VaultFactory.json
eventHandlers:
- event: Initialized(uint256)
handler: handleInitialized
- event: InstanceRegistered(indexed address)
handler: handleInstanceRegistered
- event: OperatorUpdated(indexed address,indexed address,bool)
handler: handleOperatorUpdated
- event: OwnerUpdated(indexed address)
handler: handleOwnerUpdated
- event: Paused()
handler: handlePaused
- event: PauserUpdated(indexed address)
handler: handlePauserUpdated
- event: PendingOwnerUpdated(indexed address)
handler: handlePendingOwnerUpdated
- event: Unpaused()
handler: handleUnpaused
- event: VaultCreated(indexed address,indexed address,address)
handler: handleVaultCreated
file: ./src/vault-factory.ts
- kind: ethereum
name: MultiInvoker
network: arbitrum-one
source:
abi: MultiInvoker
address: "0x431603567EcBb4aa1Ce5a4fdBe5554cAEa658832"
startBlock: 135921999
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- MultiInvokerFeeCharged
- MultiInvokerInitialized
- MultiInvokerKeeperCall
- MultiInvokerKeeperFeeCharged
- MultiInvokerOrderCancelled
- MultiInvokerOrderExecuted
- MultiInvokerOrderPlaced
abis:
- name: MultiInvoker
file: ./abis/MultiInvoker.json
eventHandlers:
- event: InterfaceFeeCharged(indexed address,indexed
address,(uint256,address,bool))
handler: handleInterfaceFeeCharged
- event: Initialized(uint256)
handler: handleInitialized
- event: KeeperCall(indexed address,uint256,uint256,uint256,uint256,uint256)
handler: handleKeeperCall
- event: KeeperFeeCharged(indexed address,indexed address,indexed address,uint256)
handler: handleKeeperFeeCharged
- event: OrderCancelled(indexed address,indexed address,uint256)
handler: handleOrderCancelled
- event: OrderExecuted(indexed address,indexed address,uint256)
handler: handleOrderExecuted
- event: OrderPlaced(indexed address,indexed address,indexed uint256,(uint8,int8,uint256,int256,int256,(uint256,address,bool),(uint256,address,bool)))
handler: handleOrderPlaced
file: ./src/multi-invoker.ts
- kind: ethereum
name: PythFactory
network: arbitrum-one
source:
abi: PythFactory
address: "0x9F35B78c6502e2B19D45Dc275f24462B0fa577B4"
startBlock: 135921431
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- GranularityUpdated
- PythFactoryInitialized
- PythFactoryInstanceRegistered
- PythFactoryOracleCreated
- PythFactoryOwnerUpdated
- PythFactoryPaused
- PythFactoryPauserUpdated
- PythFactoryPendingOwnerUpdated
- PythFactoryUnpaused
abis:
- name: PythFactory
file: ./abis/PythFactory.json
eventHandlers:
- event: GranularityUpdated(uint256,uint256)
handler: handleGranularityUpdated
- event: Initialized(uint256)
handler: handleInitialized
- event: InstanceRegistered(indexed address)
handler: handleInstanceRegistered
- event: OracleCreated(indexed address,indexed bytes32)
handler: handleOracleCreated
- event: OwnerUpdated(indexed address)
handler: handleOwnerUpdated
- event: Paused()
handler: handlePaused
- event: PauserUpdated(indexed address)
handler: handlePauserUpdated
- event: PendingOwnerUpdated(indexed address)
handler: handlePendingOwnerUpdated
- event: Unpaused()
handler: handleUnpaused
file: ./src/pyth-factory.ts
templates:
- kind: ethereum
name: Market
network: arbitrum-one
source:
abi: Market
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AccountPositionProcessed
- BeneficiaryUpdated
- CoordinatorUpdated
- FeeClaimed
- MarketInitialized
- MarketParameterUpdated
- PositionProcessed
- RiskParameterUpdated
- Updated
abis:
- name: Market
file: ./abis/Market.json
- name: OracleProvider
file: ./abis/OracleProvider.json
- name: PayoffProvider
file: ./abis/PayoffProvider.json
eventHandlers:
- event: BeneficiaryUpdated(address)
handler: handleBeneficiaryUpdated
- event: CoordinatorUpdated(address)
handler: handleCoordinatorUpdated
- event: FeeClaimed(indexed address,uint256)
handler: handleFeeClaimed
- event: Initialized(uint256)
handler: handleInitialized
- event: ParameterUpdated((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,bool,bool))
handler: handleParameterUpdated
- event: RiskParameterUpdated((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,(uint256,uint256,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,bool))
handler: handleRiskParameterUpdated
- event: Updated(indexed address,indexed
address,uint256,uint256,uint256,uint256,int256,bool)
handler: handleUpdated
receipt: true
- event: OrderCreated(indexed address,uint256,(int256,int256,int256,int256,uint256,int256,int256,int256,int256,uint256),int256)
handler: handleOrderCreated
receipt: true
- event: PositionProcessed(indexed uint256,indexed
uint256,uint256,uint256,(int256,uint256,int256,int256,int256,uint256,int256,int256,int256,uint256,int256,int256,int256,uint256,uint256,uint256))
handler: handlePositionProcessed
- event: AccountPositionProcessed(indexed address,indexed uint256,indexed
uint256,uint256,uint256,(int256,uint256,int256,uint256))
handler: handleAccountPositionProcessed
file: ./src/market.ts
- kind: ethereum
name: Vault
network: arbitrum-one
source:
abi: Vault
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- VaultInitialized
- MarketRegistered
- MarketUpdated
- VaultParameterUpdated
- Update
abis:
- name: Vault
file: ./abis/Vault.json
eventHandlers:
- event: Initialized(uint256)
handler: handleInitialized
- event: MarketRegistered(indexed uint256,address)
handler: handleMarketRegistered
- event: MarketUpdated(indexed uint256,uint256,uint256)
handler: handleMarketUpdated
- event: ParameterUpdated((uint256))
handler: handleParameterUpdated
- event: Updated(indexed address,indexed address,uint256,uint256,uint256,uint256)
handler: handleUpdate
file: ./src/vault.ts
- kind: ethereum
name: PythOracle
network: arbitrum-one
source:
abi: KeeperOracle
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PythOracleInitialized
- PythOracleKeeperCall
- OracleProviderVersionFulfilled
- OracleProviderVersionRequested
abis:
- name: KeeperOracle
file: ./abis/KeeperOracle.json
eventHandlers:
- event: Initialized(uint256)
handler: handleInitialized
- event: OracleProviderVersionFulfilled((uint256,int256,bool))
handler: handleOracleProviderVersionFulfilled
- event: OracleProviderVersionRequested(indexed uint256)
handler: handleOracleProviderVersionRequested
file: ./src/pyth-oracle.ts