-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
225 lines (222 loc) · 7.09 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
{{#twabController}}
- kind: ethereum
name: TwabController
network: {{network}}
source:
address: "{{twabController.address}}"
abi: TwabController
startBlock: {{twabController.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PrizeVault
- User
- Account
- AccountBalanceUpdate
- VaultBalanceUpdate
- AccountObservation
- VaultObservation
abis:
- name: TwabController
file: ./abis/TwabController.json
eventHandlers:
- event: DecreasedBalance(indexed address,indexed address,uint96,uint96)
handler: handleDecreasedBalance
- event: DecreasedTotalSupply(indexed address,uint96,uint96)
handler: handleDecreasedTotalSupply
- event: Delegated(indexed address,indexed address,indexed address)
handler: handleDelegated
- event: IncreasedBalance(indexed address,indexed address,uint96,uint96)
handler: handleIncreasedBalance
- event: IncreasedTotalSupply(indexed address,uint96,uint96)
handler: handleIncreasedTotalSupply
- event: ObservationRecorded(indexed address,indexed address,uint96,uint96,bool,(uint128,uint96,uint32))
handler: handleObservationRecorded
- event: TotalSupplyObservationRecorded(indexed address,uint96,uint96,bool,(uint128,uint96,uint32))
handler: handleTotalSupplyObservationRecorded
file: ./src/mappings/twabController.ts
{{/twabController}}
{{#prizePool}}
- kind: ethereum
name: PrizePool
network: {{network}}
source:
address: "{{prizePool.address}}"
abi: PrizePool
startBlock: {{prizePool.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PrizeClaim
- Draw
abis:
- name: PrizePool
file: ./abis/PrizePool.json
eventHandlers:
- event: ClaimedPrize(indexed address,indexed address,indexed address,uint24,uint8,uint32,uint152,uint96,address)
handler: handleClaimedPrize
receipt: true
- event: DrawAwarded(indexed uint24,uint256,uint8,uint8,uint104,uint128,uint48)
handler: handleDrawAwarded
file: ./src/mappings/prizePool.ts
{{/prizePool}}
{{#tpdaLiquidationPairFactory}}
- kind: ethereum
name: TpdaLiquidationPairFactory
network: {{network}}
source:
address: "{{tpdaLiquidationPairFactory.address}}"
abi: TpdaLiquidationPairFactory
startBlock: {{tpdaLiquidationPairFactory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- LiquidationPair
abis:
- name: TpdaLiquidationPairFactory
file: ./abis/TpdaLiquidationPairFactory.json
eventHandlers:
- event: PairCreated(indexed address,address,indexed address,indexed address,uint256,uint192,uint256)
handler: handlePairCreated
receipt: true
file: ./src/mappings/tpdaLiquidationPairFactory.ts
{{/tpdaLiquidationPairFactory}}
{{#tpdaLiquidationRouter}}
- kind: ethereum
name: TpdaLiquidationRouter
network: {{network}}
source:
address: "{{tpdaLiquidationRouter.address}}"
abi: TpdaLiquidationRouter
startBlock: {{tpdaLiquidationRouter.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Liquidation
abis:
- name: TpdaLiquidationRouter
file: ./abis/TpdaLiquidationRouter.json
eventHandlers:
- event: SwappedExactAmountOut(indexed address,indexed address,indexed address,uint256,uint256,uint256,uint256)
handler: handleSwappedExactAmountOut
receipt: true
file: ./src/mappings/tpdaLiquidationRouter.ts
{{/tpdaLiquidationRouter}}
{{#prizeVaultFactory}}
- kind: ethereum
name: PrizeVaultFactory
network: {{network}}
source:
address: "{{prizeVaultFactory.address}}"
abi: PrizeVaultFactory
startBlock: {{prizeVaultFactory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PrizeVault
abis:
- name: PrizeVaultFactory
file: ./abis/PrizeVaultFactory.json
eventHandlers:
- event: NewPrizeVault(indexed address,indexed address,indexed address,string,string)
handler: handleNewPrizeVault
receipt: true
file: ./src/mappings/prizeVaultFactory.ts
{{/prizeVaultFactory}}
{{#prizeVaultFactory2}}
- kind: ethereum
name: PrizeVaultFactory2
network: {{network}}
source:
address: "{{prizeVaultFactory.address}}"
abi: PrizeVaultFactory
startBlock: {{prizeVaultFactory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PrizeVault
abis:
- name: PrizeVaultFactory
file: ./abis/PrizeVaultFactory.json
eventHandlers:
- event: NewPrizeVault(indexed address,indexed address,indexed address,string,string)
handler: handleNewPrizeVault
receipt: true
file: ./src/mappings/prizeVaultFactory.ts
{{/prizeVaultFactory2}}
{{#vaultBoostFactory}}
- kind: ethereum
name: VaultBoostFactory
network: {{network}}
source:
address: "{{vaultBoostFactory.address}}"
abi: VaultBoostFactory
startBlock: {{vaultBoostFactory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Vault
abis:
- name: VaultBoostFactory
file: ./abis/VaultBoostFactory.json
eventHandlers:
- event: CreatedVaultBooster(indexed address,indexed address,indexed address,address)
handler: handleCreatedVaultBooster
receipt: true
file: ./src/mappings/vaultBoostFactory.ts
{{/vaultBoostFactory}}
templates:
- name: PrizeVault
kind: ethereum/contract
network: {{network}}
source:
abi: PrizeVault
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/prizeVault.ts
entities:
- PrizeVault
abis:
- name: PrizeVault
file: ./abis/PrizeVault.json
eventHandlers:
- event: LiquidationPairSet(indexed address,indexed address)
handler: handleLiquidationPairSet
- name: VaultBooster
kind: ethereum/contract
network: {{network}}
source:
abi: VaultBooster
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/vaultBooster.ts
entities:
- VaultBooster
abis:
- name: VaultBooster
file: ./abis/VaultBooster.json
eventHandlers:
- event: LiquidationPairSet(indexed address,indexed address)
handler: handleLiquidationPairSet